snm_mobileadminc - Version 1.6.0

Version Notes

No Notes

Download this release

Release Info

Developer snm-portal
Extension snm_mobileadminc
Version 1.6.0
Comparing to
See all releases


Version 1.6.0

Files changed (82) hide show
  1. app/code/local/AuIt/MAdmin/Block/Orders.php +69 -0
  2. app/code/local/AuIt/MAdmin/Block/Stock.php +22 -0
  3. app/code/local/AuIt/MAdmin/Helper/Arrayconfig.php +47 -0
  4. app/code/local/AuIt/MAdmin/Helper/Config.php +21 -0
  5. app/code/local/AuIt/MAdmin/Helper/Data.php +41 -0
  6. app/code/local/AuIt/MAdmin/Model/Adminhtml/Arraytemplate.php +65 -0
  7. app/code/local/AuIt/MAdmin/Model/Adminhtml/Idtemplate.php +42 -0
  8. app/code/local/AuIt/MAdmin/Model/Adminhtml/System/Config/Product/Attribute.php +34 -0
  9. app/code/local/AuIt/MAdmin/Model/Config/Arraytemplate.php +66 -0
  10. app/code/local/AuIt/MAdmin/Model/Config/Idtemplate.php +43 -0
  11. app/code/local/AuIt/MAdmin/Model/Observer.php +21 -0
  12. app/code/local/AuIt/MAdmin/Model/Session.php +8 -0
  13. app/code/local/AuIt/MAdmin/controllers/DashboardController.php +9 -0
  14. app/code/local/AuIt/MAdmin/controllers/IndexController.php +67 -0
  15. app/code/local/AuIt/MAdmin/controllers/OrdersController.php +41 -0
  16. app/code/local/AuIt/MAdmin/controllers/StockController.php +87 -0
  17. app/code/local/AuIt/MAdmin/etc/adminhtml.xml +64 -0
  18. app/code/local/AuIt/MAdmin/etc/config.xml +80 -0
  19. app/code/local/AuIt/MAdmin/etc/history.xml +14 -0
  20. app/code/local/AuIt/MAdmin/etc/system.xml +43 -0
  21. app/design/adminhtml/default/default/layout/auit_madmin.xml +3 -0
  22. app/design/adminhtml/default/default/template/auit/madmin/renderer/array.phtml +167 -0
  23. app/design/adminhtml/default/default/template/auit/madmin/renderer/array_date.phtml +182 -0
  24. app/design/adminhtml/default/snm-mobile/layout/auit_madmin.xml +111 -0
  25. app/design/adminhtml/default/snm-mobile/template/auit/madmin/aboutus.phtml +54 -0
  26. app/design/adminhtml/default/snm-mobile/template/auit/madmin/dashboard.phtml +32 -0
  27. app/design/adminhtml/default/snm-mobile/template/auit/madmin/orders.phtml +104 -0
  28. app/design/adminhtml/default/snm-mobile/template/auit/madmin/orders/items.phtml +70 -0
  29. app/design/adminhtml/default/snm-mobile/template/auit/madmin/orders/orders_dialog.phtml +15 -0
  30. app/design/adminhtml/default/snm-mobile/template/auit/madmin/orders/show.phtml +78 -0
  31. app/design/adminhtml/default/snm-mobile/template/auit/madmin/page.phtml +30 -0
  32. app/design/adminhtml/default/snm-mobile/template/auit/madmin/page_dlg.phtml +21 -0
  33. app/design/adminhtml/default/snm-mobile/template/auit/madmin/renderer/array.phtml +167 -0
  34. app/design/adminhtml/default/snm-mobile/template/auit/madmin/renderer/array_date.phtml +182 -0
  35. app/design/adminhtml/default/snm-mobile/template/auit/madmin/stock.phtml +60 -0
  36. app/design/adminhtml/default/snm-mobile/template/auit/madmin/test.phtml +204 -0
  37. app/design/adminhtml/default/snm-mobile/template/dashboard/grid.phtml +88 -0
  38. app/design/adminhtml/default/snm-mobile/template/dashboard/index.phtml +14 -0
  39. app/design/adminhtml/default/snm-mobile/template/dashboard/salebar.phtml +36 -0
  40. app/design/adminhtml/default/snm-mobile/template/login.phtml +64 -0
  41. app/design/adminhtml/default/snm-mobile/template/page/head.phtml +6 -0
  42. app/design/adminhtml/default/snm-mobile/template/page/header.phtml +6 -0
  43. app/design/adminhtml/default/snm-mobile/template/page/header_dlg.phtml +7 -0
  44. app/etc/modules/XAuIt_MAdmin.xml +11 -0
  45. app/locale/de_DE/AuIt_MAdmin.csv +2 -0
  46. package.xml +22 -0
  47. skin/adminhtml/default/snm-mobile/auit/mobile.fullpage.js +58 -0
  48. skin/adminhtml/default/snm-mobile/auit/mobile.hslide.js +53 -0
  49. skin/adminhtml/default/snm-mobile/auit/mobile.pull.orders.js +42 -0
  50. skin/adminhtml/default/snm-mobile/images/aboutus/box-pdf-invoice.png +0 -0
  51. skin/adminhtml/default/snm-mobile/images/aboutus/cms-editor-professional.png +0 -0
  52. skin/adminhtml/default/snm-mobile/images/aboutus/stocklocator.png +0 -0
  53. skin/adminhtml/default/snm-mobile/images/ajax-loader.gif +0 -0
  54. skin/adminhtml/default/snm-mobile/images/ajax-loader.png +0 -0
  55. skin/adminhtml/default/snm-mobile/images/home.png +0 -0
  56. skin/adminhtml/default/snm-mobile/images/home60.png +0 -0
  57. skin/adminhtml/default/snm-mobile/images/icons-18-black.png +0 -0
  58. skin/adminhtml/default/snm-mobile/images/icons-18-white.png +0 -0
  59. skin/adminhtml/default/snm-mobile/images/icons-36-black.png +0 -0
  60. skin/adminhtml/default/snm-mobile/images/icons-36-white.png +0 -0
  61. skin/adminhtml/default/snm-mobile/images/logo2.png +0 -0
  62. skin/adminhtml/default/snm-mobile/images/pager6x6.png +0 -0
  63. skin/adminhtml/default/snm-mobile/images/welcome.png +0 -0
  64. skin/adminhtml/default/snm-mobile/iscrollview/iscroll-pull-icon@2x.png +0 -0
  65. skin/adminhtml/default/snm-mobile/iscrollview/iscroll.js +1080 -0
  66. skin/adminhtml/default/snm-mobile/iscrollview/jquery.mobile.iscrollview-pull.css +112 -0
  67. skin/adminhtml/default/snm-mobile/iscrollview/jquery.mobile.iscrollview.css +72 -0
  68. skin/adminhtml/default/snm-mobile/iscrollview/jquery.mobile.iscrollview.js +1832 -0
  69. skin/adminhtml/default/snm-mobile/jquery.mobile-1.1.0.css +2053 -0
  70. skin/adminhtml/default/snm-mobile/jquery.mobile-1.1.0.min.css +2 -0
  71. skin/adminhtml/default/snm-mobile/jquery.mobile.flip.css +136 -0
  72. skin/adminhtml/default/snm-mobile/jquery.mobile.flip.min.css +1 -0
  73. skin/adminhtml/default/snm-mobile/jquery.mobile.structure-1.1.0.css +946 -0
  74. skin/adminhtml/default/snm-mobile/jquery.mobile.structure-1.1.0.min.css +2 -0
  75. skin/adminhtml/default/snm-mobile/jquery.mobile.theme-1.1.0.css +1167 -0
  76. skin/adminhtml/default/snm-mobile/jquery.mobile.theme-1.1.0.min.css +2 -0
  77. skin/adminhtml/default/snm-mobile/js/MIT-LICENSE.txt +7 -0
  78. skin/adminhtml/default/snm-mobile/js/app.js +7 -0
  79. skin/adminhtml/default/snm-mobile/js/jquery-1.7.2.min.js +5 -0
  80. skin/adminhtml/default/snm-mobile/js/jquery.mobile-1.1.0-patched-listview.min.js +11 -0
  81. skin/adminhtml/default/snm-mobile/js/jquery.mobile-1.1.0.js +7551 -0
  82. skin/adminhtml/default/snm-mobile/js/jquery.mobile-1.1.0.min.js +161 -0
app/code/local/AuIt/MAdmin/Block/Orders.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_MAdmin_Block_Orders extends Mage_Adminhtml_Block_Template
3
+ {
4
+ public function getOrderCollection()
5
+ {
6
+ $page = $this->getCurrentPage();
7
+ $limit= ( $page == 1)?10:10;
8
+ return Mage::Helper('auit_madmin')->getOrderCollection($page,$limit);
9
+ }
10
+ public function getProduct($orderItem)
11
+ {
12
+ if ( !$orderItem->getProduct() )
13
+ {
14
+ $product = Mage::getModel('catalog/product');
15
+
16
+ $product->load($orderItem->getProductId());
17
+ $orderItem->setProduct($product);
18
+ }
19
+ return $orderItem->getProduct();
20
+ }
21
+ public function getProductImg($orderItem)
22
+ {
23
+ $imageUrl='';
24
+ try {
25
+ $imageUrl = ''.$this->getProduct($orderItem)->getImageUrl();
26
+ }catch ( Exception $e )
27
+ {
28
+
29
+ }
30
+ return $imageUrl;
31
+ }
32
+ public function getInfo($order)
33
+ {
34
+ /* @var $order Mage_Sales_Model_Order */
35
+ return $order->getBillingAddress()->format('oneline');
36
+ }
37
+
38
+ public function getCurrentPage()
39
+ {
40
+ if ($page = (int) $this->getRequest()->getParam('p')) {
41
+ return $page;
42
+ }
43
+ return 1;
44
+ }
45
+ public function getOrder()
46
+ {
47
+ return Mage::registry('current_order');
48
+
49
+ }
50
+ public function getOrderOptions($_item)
51
+ {
52
+ /* @var $_items Mage_Sales_Model_Mysql4_Order_Item_Collection */
53
+ $options = @unserialize($_item->getData('product_options'));
54
+ $result = array();
55
+ if ($options ) {
56
+ if (isset($options['options'])) {
57
+ $result = array_merge($result, $options['options']);
58
+ }
59
+ if (isset($options['additional_options'])) {
60
+ $result = array_merge($result, $options['additional_options']);
61
+ }
62
+ if (!empty($options['attributes_info'])) {
63
+ $result = array_merge($options['attributes_info'], $result);
64
+ }
65
+ }
66
+ return $result;
67
+ }
68
+
69
+ }
app/code/local/AuIt/MAdmin/Block/Stock.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_MAdmin_Block_Stock extends Mage_Adminhtml_Block_Template
3
+ {
4
+ public function getProduct()
5
+ {
6
+ return Mage::registry('search_produt');
7
+ }
8
+ public function getStockFieldValue($field)
9
+ {
10
+ if ($this->getProduct()->getStockItem()) {
11
+ return $this->getProduct()->getStockItem()->getDataUsingMethod($field);
12
+ }
13
+ return Mage::getStoreConfig(Mage_CatalogInventory_Model_Stock_Item::XML_PATH_ITEM . $field);
14
+ }
15
+ public function getStockOption()
16
+ {
17
+ if (Mage::helper('catalog')->isModuleEnabled('Mage_CatalogInventory')) {
18
+ return Mage::getSingleton('cataloginventory/source_stock')->toOptionArray();
19
+ }
20
+ return array();
21
+ }
22
+ }
app/code/local/AuIt/MAdmin/Helper/Arrayconfig.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * AuIt
4
+ *
5
+ * @category AuIt
6
+ * @author M Augsten
7
+ * @copyright Copyright (c) 2010 Ingenieurbüro (IT) Dipl.-Ing. Augsten (http://www.au-it.de)
8
+ */
9
+ class AuIt_MAdmin_Helper_Arrayconfig extends Mage_Core_Helper_Abstract
10
+ {
11
+ public function getArrayStoreConfig($key)
12
+ {
13
+ $obj = new Varien_Object();
14
+ $value = Mage::getStoreConfig($key);
15
+ if ( !trim($value))
16
+ {
17
+ $obj->setValue('');
18
+ $value = Mage::helper('auit_madmin/config')->getDefaults($key);
19
+ }
20
+ else {
21
+ if ( strpos($value,'base64:') === 0 )
22
+ {
23
+ $value = base64_decode(substr($value,7));
24
+ }
25
+ }
26
+ if ( !is_array($value) )
27
+ $value=@unserialize($value);
28
+
29
+ $obj->setValue($value);
30
+ return $value;
31
+ }
32
+ public function setArrayStoreConfig($key,$data)
33
+ {
34
+ $value=@serialize($data);
35
+ try {
36
+ $value='base64:'.base64_encode($value);
37
+ Mage::getModel('core/config_data')
38
+ ->load($key, 'path')
39
+ ->setValue($value)
40
+ ->setPath($key)
41
+ ->save();
42
+ Mage::app()->cleanCache(array(Mage_Core_Model_Config::CACHE_TAG));
43
+ } catch (Exception $e) {
44
+ throw new Exception(Mage::helper('cron')->__('Unable to save '.$key));
45
+ }
46
+ }
47
+ }
app/code/local/AuIt/MAdmin/Helper/Config.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * AuIt
4
+ *
5
+ * @category AuIt
6
+ * @author M Augsten
7
+ * @copyright Copyright (c) 2010 Ingenieurbüro (IT) Dipl.-Ing. Augsten (http://www.au-it.de)
8
+ */
9
+ class AuIt_MAdmin_Helper_Config extends Mage_Core_Helper_Abstract
10
+ {
11
+
12
+ public function getDefaults($path)
13
+ {
14
+ return '';
15
+ }
16
+ public function getConfigData()
17
+ {
18
+ return '';
19
+ }
20
+
21
+ }
app/code/local/AuIt/MAdmin/Helper/Data.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_MAdmin_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ static $_sortField;
5
+ protected $_orders;
6
+ public function sortBy(&$items,$field)
7
+ {
8
+ self::$_sortField=$field;
9
+ $oldValue = setlocale ( LC_COLLATE , Mage::app()->getLocale()->getLocaleCode().'.UTF-8' );
10
+ uasort($items, array($this,'mystrcoll')) ;
11
+ return $this;
12
+ }
13
+ static function mystrcoll($item1, $item2)
14
+ {
15
+ return strcoll($item1[self::$_sortField], $item2[self::$_sortField]);
16
+ }
17
+
18
+ public function getOrderCollection($page=1,$limit=15)
19
+ {
20
+ if ( !$this->_orders )
21
+ {
22
+ $collection = Mage::getResourceModel('sales/order_collection')
23
+ //->addFieldToFilter('customer_id', $this->getCustomerId())
24
+ //->addFieldToFilter('store_id', array('in' => $storeIds))
25
+ ->addAttributeToSelect('*')
26
+ ->setOrder('created_at', 'desc')
27
+
28
+
29
+ // $collection = Mage::getResourceModel('reports/order_collection')
30
+ // ->addItemCountExpr()
31
+ //->joinCustomerName('customer')
32
+ //$collection->addRevenueToSelect(true);
33
+ ->setPageSize((int) $limit)
34
+ ->setCurPage((int) $page)
35
+ // ->load();
36
+ ;
37
+ $this->_orders = $collection;
38
+ }
39
+ return $this->_orders;
40
+ }
41
+ }
app/code/local/AuIt/MAdmin/Model/Adminhtml/Arraytemplate.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * AuIt
4
+ *
5
+ * @category AuIt
6
+ * @author M Augsten
7
+ * @copyright Copyright (c) 2010 Ingenieurbüro (IT) Dipl.-Ing. Augsten (http://www.au-it.de)
8
+ */
9
+ class AuIt_MAdmin_Model_Adminhtml_Arraytemplate extends Mage_Adminhtml_Model_System_Config_Backend_Serialized
10
+ {
11
+ function masort(&$data, $sortby)
12
+ {
13
+ static $sort_funcs = array();
14
+ if (empty($sort_funcs[$sortby])) {
15
+ $code = "\$c=0;";
16
+ foreach (split(',', $sortby) as $key) {
17
+ $code .= "if ( (\$c = strcasecmp(\$a['$key'],\$b['$key'])) != 0 ) return \$c;\n";
18
+ }
19
+ $code .= 'return $c;';
20
+ $sort_func = $sort_funcs[$sortby] = create_function('$a, $b', $code);
21
+ } else {
22
+ $sort_func = $sort_funcs[$sortby];
23
+ }
24
+ $sort_func = $sort_funcs[$sortby];
25
+ uasort($data, $sort_func);
26
+ }
27
+ protected function _getDefault()
28
+ {
29
+ return Mage::helper('auit_shipping/config')->getDefaults($this->getPath());
30
+ }
31
+ protected function _afterLoad()
32
+ {
33
+ $v = $this->getValue();
34
+ if ( !is_array($v) && !is_string($v) )
35
+ $v='';
36
+ if ( empty($v) )
37
+ {
38
+ $v = $this->_getDefault();
39
+ }
40
+ if (!is_array($v))
41
+ {
42
+ if ( strpos($v,'base64:') === 0 )
43
+ {
44
+ $v = base64_decode(substr($v,7));
45
+ }
46
+ $v=@unserialize($v);
47
+ }
48
+ $this->setValue($v);
49
+ }
50
+ protected function checkData(&$value)
51
+ {
52
+ }
53
+ protected function _beforeSave()
54
+ {
55
+ $value = $this->getValue();
56
+ if (is_array($value)) {
57
+ unset($value['__empty']);
58
+ }
59
+ if (is_array($value)) {
60
+ $this->checkData($value);
61
+ $this->setValue('base64:'.base64_encode(serialize($value)));
62
+ }
63
+ //parent::_beforeSave();
64
+ }
65
+ }
app/code/local/AuIt/MAdmin/Model/Adminhtml/Idtemplate.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * AuIt
4
+ *
5
+ * @category AuIt
6
+ * @author M Augsten
7
+ * @copyright Copyright (c) 2010 Ingenieurbüro (IT) Dipl.-Ing. Augsten (http://www.au-it.de)
8
+ */
9
+ class AuIt_MAdmin_Model_Adminhtml_Idtemplate extends AuIt_Shipping_Model_Adminhtml_Arraytemplate
10
+ {
11
+ protected function getNextId($value)
12
+ {
13
+ $id = 50;
14
+ foreach ( $value as &$item )
15
+ {
16
+ if ( isset($item['id']) && ($item['id']>0) && $item['id'] > $id )
17
+ {
18
+ $id = $item['id'];
19
+ }
20
+ }
21
+ $id++;
22
+ return $id;
23
+ }
24
+ protected function _beforeSave()
25
+ {
26
+ $value = $this->getValue();
27
+ if (is_array($value)) {
28
+ unset($value['__empty']);
29
+ foreach ( $value as &$item )
30
+ {
31
+ if ( !isset($item['id']) || !($item['id']>0) )
32
+ {
33
+ $item['id'] = $this->getNextId($value);
34
+ }
35
+ }
36
+ }
37
+ if (is_array($value)) {
38
+ $this->setValue('base64:'.base64_encode(serialize($value)));
39
+ }
40
+ //parent::_beforeSave();
41
+ }
42
+ }
app/code/local/AuIt/MAdmin/Model/Adminhtml/System/Config/Product/Attribute.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_MAdmin_Model_Adminhtml_System_Config_Product_Attribute
3
+ {
4
+ protected $_options;
5
+ protected function _getProductAttributes()
6
+ {
7
+ $hash=array();
8
+ //$allowedAttributes=array('date','price','boolean','text','textarea','select','multiselect','media_image');
9
+ $allowedAttributes=array('boolean','select','multiselect','text','textarea');
10
+ $allowedAttributes=array('text','textarea');
11
+ $collection = Mage::getResourceModel('catalog/product_attribute_collection')
12
+ ->addVisibleFilter();
13
+ $hashOpt=array();
14
+ foreach ( $collection as $attr )
15
+ {
16
+ $code = $attr->getAttributeCode();
17
+ $type = $attr->getFrontendInput();
18
+ if (!in_array($type, $allowedAttributes) /*|| $attr->getFrontendInput() == 'hidden'*/) {
19
+ continue;
20
+ }
21
+ $hash[$attr->getAttributeCode()]=$attr->getFrontendLabel();
22
+ }
23
+ asort($hash);
24
+ return $hash;
25
+ }
26
+ public function toOptionArray()
27
+ {
28
+ if (!$this->_options) {
29
+ $this->_options = $this->_getProductAttributes();
30
+ array_unshift($this->_options, array('value'=> '', 'label'=> Mage::helper('adminhtml')->__('-- Please Select --')));
31
+ }
32
+ return $this->_options;
33
+ }
34
+ }
app/code/local/AuIt/MAdmin/Model/Config/Arraytemplate.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * AuIt
4
+ *
5
+ * @category AuIt
6
+ * @author M Augsten
7
+ * @copyright Copyright (c) 2010 Ingenieurbüro (IT) Dipl.-Ing. Augsten (http://www.au-it.de)
8
+ */
9
+ class AuIt_MAdmin_Model_Config_Arraytemplate extends Mage_Adminhtml_Model_System_Config_Backend_Serialized
10
+ {
11
+ function masort(&$data, $sortby)
12
+ {
13
+ static $sort_funcs = array();
14
+ if (empty($sort_funcs[$sortby])) {
15
+ $code = "\$c=0;";
16
+ foreach (split(',', $sortby) as $key) {
17
+ $code .= "if ( (\$c = strcasecmp(\$a['$key'],\$b['$key'])) != 0 ) return \$c;\n";
18
+ }
19
+ $code .= 'return $c;';
20
+ $sort_func = $sort_funcs[$sortby] = create_function('$a, $b', $code);
21
+ } else {
22
+ $sort_func = $sort_funcs[$sortby];
23
+ }
24
+ $sort_func = $sort_funcs[$sortby];
25
+ uasort($data, $sort_func);
26
+ }
27
+ protected function _getDefault()
28
+ {
29
+ return Mage::helper('auit_madmin/config')->getDefaults($this->getPath());
30
+ }
31
+ protected function _afterLoad()
32
+ {
33
+ $v = $this->getValue();
34
+ if ( !is_array($v) && !is_string($v) )
35
+ $v='';
36
+ if ( empty($v) )
37
+ {
38
+ $v = $this->_getDefault();
39
+ }
40
+ if (!is_array($v))
41
+ {
42
+ if ( strpos($v,'base64:') === 0 )
43
+ {
44
+ $v = base64_decode(substr($v,7));
45
+ }
46
+ $v=@unserialize($v);
47
+ }
48
+ $this->setValue($v);
49
+ }
50
+ protected function checkData(&$value)
51
+ {
52
+ }
53
+ protected function _beforeSave()
54
+ {
55
+ $value = $this->getValue();
56
+ if (is_array($value)) {
57
+ unset($value['__empty']);
58
+ }
59
+ if (is_array($value)) {
60
+ $this->checkData($value);
61
+
62
+ $this->setValue('base64:'.base64_encode(serialize($value)));
63
+ }
64
+ //parent::_beforeSave();
65
+ }
66
+ }
app/code/local/AuIt/MAdmin/Model/Config/Idtemplate.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * AuIt
4
+ *
5
+ * @category AuIt
6
+ * @author M Augsten
7
+ * @copyright Copyright (c) 2010 Ingenieurbüro (IT) Dipl.-Ing. Augsten (http://www.au-it.de)
8
+ */
9
+ class AuIt_MAdmin_Model_Config_Idtemplate extends AuIt_MAdmin_Model_Config_Arraytemplate
10
+ {
11
+ protected function getNextId($value)
12
+ {
13
+ $id = 50;
14
+ foreach ( $value as &$item )
15
+ {
16
+ if ( isset($item['id']) && ($item['id']>0) && $item['id'] > $id )
17
+ {
18
+ $id = $item['id'];
19
+ }
20
+ }
21
+ $id++;
22
+ return $id;
23
+ }
24
+ protected function _beforeSave()
25
+ {
26
+ $value = $this->getValue();
27
+
28
+ if (is_array($value)) {
29
+ unset($value['__empty']);
30
+ foreach ( $value as &$item )
31
+ {
32
+ if ( !isset($item['id']) || !($item['id']>0) )
33
+ {
34
+ $item['id'] = $this->getNextId($value);
35
+ }
36
+ }
37
+ }
38
+ if (is_array($value)) {
39
+ $this->setValue('base64:'.base64_encode(serialize($value)));
40
+ }
41
+ //parent::_beforeSave();
42
+ }
43
+ }
app/code/local/AuIt/MAdmin/Model/Observer.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_MAdmin_Model_Observer
3
+ {
4
+ /**
5
+ * Predispath admin action controller
6
+ *
7
+ * @param Varien_Event_Observer $observer
8
+ */
9
+ public function predispatch_start(Varien_Event_Observer $observer)
10
+ {
11
+ if ( Mage::getSingleton('adminhtml/session')->getData('SNM-USE-MOBILE') == 1 )
12
+ {
13
+
14
+ Mage::getDesign()->setTheme('layout','snm-mobile');
15
+ Mage::getDesign()->setTheme('template','snm-mobile');
16
+ Mage::getDesign()->setTheme('skin','snm-mobile');
17
+
18
+ }
19
+
20
+ }
21
+ }
app/code/local/AuIt/MAdmin/Model/Session.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_MAdmin_Model_Session extends Mage_Core_Model_Session_Abstract
3
+ {
4
+ public function __construct()
5
+ {
6
+ $this->init('auit-mobile-admin');
7
+ }
8
+ }
app/code/local/AuIt/MAdmin/controllers/DashboardController.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_MAdmin_DashboardController extends Mage_Adminhtml_Controller_Action
3
+ {
4
+ public function indexAction()
5
+ {
6
+ $this->loadLayout();
7
+ $this->renderLayout();
8
+ }
9
+ }
app/code/local/AuIt/MAdmin/controllers/IndexController.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_MAdmin_IndexController extends Mage_Adminhtml_Controller_Action
3
+ {
4
+
5
+ public function preDispatch()
6
+ {
7
+ if ( $this->getRequest()->getActionName() != 'classic' )
8
+ $this->_getSession()->setData('SNM-USE-MOBILE',1);
9
+ else
10
+ $this->_getSession()->setData('SNM-USE-MOBILE',null);
11
+ return parent::preDispatch();
12
+ }
13
+ protected function _initAction()
14
+ {
15
+ // load layout, set active menu and breadcrumbs
16
+ $this->loadLayout();
17
+
18
+ return $this;
19
+ }
20
+
21
+ /**
22
+ * Index action
23
+ */
24
+ public function indexAction()
25
+ {
26
+ $this->_redirect('adminhtml/index');
27
+ }
28
+ public function logoutAction()
29
+ {
30
+ /** @var $adminSession Mage_Admin_Model_Session */
31
+ $adminSession = Mage::getSingleton('admin/session');
32
+ $adminSession->unsetAll();
33
+ $adminSession->getCookie()->delete($adminSession->getSessionName());
34
+ $adminSession->addSuccess(Mage::helper('adminhtml')->__('You have logged out.'));
35
+
36
+ $this->_redirect('mobile_admin');
37
+ }
38
+ public function logAction()
39
+ {
40
+
41
+ $response = new Varien_Object();
42
+ $response->setError(true);
43
+ if (Mage::getSingleton('admin/session')->isLoggedIn()) {
44
+ $response->setError(false);
45
+ }
46
+
47
+ $this->getResponse()->setBody($response->toJson());
48
+ /** @var $adminSession Mage_Admin_Model_Session */
49
+
50
+ }
51
+ public function testAction()
52
+ {
53
+ $this->_initAction();
54
+ $this->renderLayout();
55
+ }
56
+ public function aboutusAction()
57
+ {
58
+ $this->_initAction();
59
+ $this->renderLayout();
60
+ }
61
+
62
+ public function classicAction()
63
+ {
64
+ $this->_getSession()->setData('SNM-USE-MOBILE',-1);
65
+ $this->_redirect('adminhtml/index');
66
+ }
67
+ }
app/code/local/AuIt/MAdmin/controllers/OrdersController.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_MAdmin_OrdersController extends Mage_Adminhtml_Controller_Action
3
+ {
4
+ public function preDispatch()
5
+ {
6
+ if ( $this->_getSession()->getData('SNM-USE-MOBILE') != -1 )
7
+ $this->_getSession()->setData('SNM-USE-MOBILE',1);
8
+ return parent::preDispatch();
9
+ }
10
+ public function indexAction()
11
+ {
12
+
13
+ $this->loadLayout();
14
+ $this->renderLayout();
15
+ }
16
+
17
+ public function nextAction()
18
+ {
19
+
20
+ $this->loadLayout();
21
+ $this->renderLayout();
22
+ }
23
+ public function itemsAction()
24
+ {
25
+
26
+ $id = $this->getRequest()->getParam('id');
27
+ $order = Mage::getModel('sales/order')->load($id);
28
+
29
+ if (!$order->getId()) {
30
+ $this->_getSession()->addError($this->__('This order no longer exists.'));
31
+ $this->_redirect('*/*/');
32
+ $this->setFlag('', self::FLAG_NO_DISPATCH, true);
33
+ return false;
34
+ }
35
+ Mage::register('sales_order', $order);
36
+ Mage::register('current_order', $order);
37
+
38
+ $this->loadLayout();
39
+ $this->renderLayout();
40
+ }
41
+ }
app/code/local/AuIt/MAdmin/controllers/StockController.php ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_MAdmin_StockController extends Mage_Adminhtml_Controller_Action
3
+ {
4
+ const MAX_QTY_VALUE = 99999999.9999; // see Mage_Adminhtml_Catalog_ProductController
5
+ protected function _getSession()
6
+ {
7
+ return Mage::getSingleton('adminhtml/session');
8
+ }
9
+ public function preDispatch()
10
+ {
11
+ if ( $this->_getSession()->getData('SNM-USE-MOBILE') != -1 )
12
+ $this->_getSession()->setData('SNM-USE-MOBILE',1);
13
+ return parent::preDispatch();
14
+ }
15
+ public function indexAction()
16
+ {
17
+ $this->loadLayout();
18
+ $this->renderLayout();
19
+ }
20
+ public function searchAction()
21
+ {
22
+ if ( $searchvalue = $this->getRequest()->getParam('searchvalue') )
23
+ {
24
+ $product = Mage::getModel('catalog/product')->loadByAttribute(Mage::getStoreConfig('auit_madmin/stock/attribute'),$searchvalue);
25
+ if ( $product )
26
+ {
27
+ $product = Mage::getModel('catalog/product')->load($product->getId());
28
+ if ( $product->getId() )
29
+ Mage::register('search_produt', $product);
30
+ else
31
+ $this->_getSession()->addError($this->__('No records found.'));
32
+ }else
33
+ $this->_getSession()->addError($this->__('No records found.'));
34
+ }
35
+ $this->_forward('index');
36
+ }
37
+ public function saveAction()
38
+ {
39
+ if ( $data = $this->getRequest()->getParam('product') )
40
+ {
41
+ if ( $pid = $this->getRequest()->getParam('product_id') )
42
+ {
43
+ $product = Mage::getModel('catalog/product')->load($pid);
44
+ if ( $product->getId() )
45
+ {
46
+ if ( isset($data['stock_data']) )
47
+ {
48
+ $this->_filterStockData($data['stock_data']);
49
+ }
50
+
51
+ $product->addData($data);
52
+ try {
53
+ $product->save();
54
+ $productId = $product->getId();
55
+ $this->_getSession()->addSuccess($this->__('The product has been saved.'));
56
+ } catch (Mage_Core_Exception $e) {
57
+ $this->_getSession()->addError($e->getMessage());
58
+ $redirectBack = true;
59
+ } catch (Exception $e) {
60
+ Mage::logException($e);
61
+ $this->_getSession()->addError($e->getMessage());
62
+ $redirectBack = true;
63
+ }
64
+
65
+ }
66
+ }
67
+ }
68
+ $this->_forward('index');
69
+ }
70
+ protected function _filterStockData(&$stockData) {
71
+
72
+
73
+ if (!isset($stockData['use_config_manage_stock'])) {
74
+ $stockData['use_config_manage_stock'] = 0;
75
+ }
76
+ if (isset($stockData['qty']) && (float)$stockData['qty'] > self::MAX_QTY_VALUE) {
77
+ $stockData['qty'] = self::MAX_QTY_VALUE;
78
+ }
79
+ if (isset($stockData['min_qty']) && (int)$stockData['min_qty'] < 0) {
80
+ $stockData['min_qty'] = 0;
81
+ }
82
+ if (!isset($stockData['is_decimal_divided']) || $stockData['is_qty_decimal'] == 0) {
83
+ $stockData['is_decimal_divided'] = 0;
84
+ }
85
+ }
86
+
87
+ }
app/code/local/AuIt/MAdmin/etc/adminhtml.xml ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <menu>
4
+ <snm >
5
+ <title>SNM-Portal</title>
6
+ <sort_order>71</sort_order>
7
+ <children>
8
+ <auit_madmin translate="title" module="auit_madmin">
9
+ <title>SNM Mobile</title>
10
+ <sort_order>5</sort_order>
11
+ <children>
12
+ <address translate="title" module="auit_madmin">
13
+ <title>Stock</title>
14
+ <sort_order>5</sort_order>
15
+ <action>auit_madmin/index</action>
16
+ </address>
17
+ </children>
18
+ </auit_madmin>
19
+ </children>
20
+ </snm>
21
+ </menu>
22
+ <acl>
23
+ <resources>
24
+ <admin>
25
+ <children>
26
+ <snm>
27
+ <title>SNM-Portal</title>
28
+ <sort_order>70</sort_order>
29
+ <children>
30
+ <auit_madmin>
31
+ <title>Mobile</title>
32
+ <sort_order>40</sort_order>
33
+ <children>
34
+ <address translate="title">
35
+ <title>Stock</title>
36
+ <sort_order>10</sort_order>
37
+ </address>
38
+ </children>
39
+ </auit_madmin>
40
+ </children>
41
+ </snm>
42
+ </children>
43
+ </admin>
44
+ </resources>
45
+ <resources>
46
+ <admin>
47
+ <children>
48
+ <system>
49
+ <children>
50
+ <config>
51
+ <children>
52
+ <auit_madmin>
53
+ <title>Admin Mobile</title>
54
+ </auit_madmin>
55
+ </children>
56
+ </config>
57
+ </children>
58
+ </system>
59
+ </children>
60
+ </admin>
61
+ </resources>
62
+ </acl>
63
+
64
+ </config>
app/code/local/AuIt/MAdmin/etc/config.xml ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <AuIt_MAdmin>
5
+ <version>1.6.0</version>
6
+ </AuIt_MAdmin>
7
+ </modules>
8
+
9
+ <global>
10
+ <models>
11
+ <auit_madmin>
12
+ <class>AuIt_MAdmin_Model</class>
13
+ </auit_madmin>
14
+ </models>
15
+ <blocks>
16
+ <auit_madmin>
17
+ <class>AuIt_MAdmin_Block</class>
18
+ </auit_madmin>
19
+ </blocks>
20
+ <helpers>
21
+ <auit_madmin>
22
+ <class>AuIt_MAdmin_Helper</class>
23
+ </auit_madmin>
24
+ </helpers>
25
+ </global>
26
+ <admin>
27
+ <routers>
28
+ <auit_madmin>
29
+ <use>admin</use>
30
+ <args>
31
+ <module>AuIt_MAdmin</module>
32
+ <frontName>mobile_admin</frontName>
33
+ </args>
34
+ </auit_madmin>
35
+ </routers>
36
+
37
+ </admin>
38
+
39
+ <adminhtml>
40
+ <translate>
41
+ <modules>
42
+ <AuIt_MAdmin>
43
+ <files>
44
+ <default>AuIt_MAdmin.csv</default>
45
+ </files>
46
+ </AuIt_MAdmin>
47
+ </modules>
48
+ </translate>
49
+ <layout>
50
+ <updates>
51
+ <auit_madmin>
52
+ <file>auit_madmin.xml</file>
53
+ </auit_madmin>
54
+ </updates>
55
+ </layout>
56
+
57
+
58
+
59
+ </adminhtml>
60
+ <global>
61
+ <events>
62
+ <adminhtml_controller_action_predispatch_start>
63
+ <observers>
64
+ <auit_madmin>
65
+ <class>auit_madmin/observer</class>
66
+ <method>predispatch_start</method>
67
+ </auit_madmin>
68
+ </observers>
69
+ </adminhtml_controller_action_predispatch_start>
70
+ </events>
71
+
72
+ </global>
73
+ <default>
74
+ <auit_madmin>
75
+ <stock>
76
+ <attribute>sku</attribute>
77
+ </stock>
78
+ </auit_madmin>
79
+ </default>
80
+ </config>
app/code/local/AuIt/MAdmin/etc/history.xml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <history>
3
+ <version>
4
+ <number>1.6.0</number>
5
+ <date>2012-07-03</date>
6
+ <channel>mobileAdmin</channel>
7
+ <comment></comment>
8
+ <features><![CDATA[
9
+ Initial
10
+ ]]></features>
11
+ <fixes><![CDATA[]]></fixes>
12
+ </version>
13
+
14
+ </history>
app/code/local/AuIt/MAdmin/etc/system.xml ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+
4
+ <tabs>
5
+ <auit_all>
6
+ <label>SNM-Portal</label>
7
+ <sort_order>300</sort_order>
8
+ </auit_all>
9
+ </tabs>
10
+ <sections>
11
+ <auit_madmin translate="label" module="auit_madmin">
12
+ <label>Mobile Admin</label>
13
+ <tab>auit_all</tab>
14
+ <sort_order>210</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <stock translate="label">
20
+ <label>Stock</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>210</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <attribute translate="label">
28
+ <label>Product Attribute</label>
29
+ <frontend_type>select</frontend_type>
30
+ <source_model>auit_madmin/adminhtml_system_config_product_attribute</source_model>
31
+ <sort_order>20</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ <comment><![CDATA[Attribute for search form]]></comment>
36
+ </attribute>
37
+ </fields>
38
+ </stock>
39
+ </groups>
40
+ </auit_madmin>
41
+ </sections>
42
+
43
+ </config>
app/design/adminhtml/default/default/layout/auit_madmin.xml ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout>
3
+ </layout>
app/design/adminhtml/default/default/template/auit/madmin/renderer/array.phtml ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ ?>
4
+
5
+ <?php
6
+ $_htmlId = $this->getHtmlId() ? $this->getHtmlId() : '_' . uniqid();
7
+
8
+ $_colspan = 2;
9
+ if (!$this->_addAfter) {
10
+ $_colspan -= 1;
11
+ }
12
+ $_colspan = $_colspan > 1 ? 'colspan="' . $_colspan . '"' : '';
13
+ ?>
14
+
15
+ <div class="grid" id="grid<?php echo $_htmlId ?>">
16
+ <table cellpadding="0" cellspacing="0" class="border">
17
+ <tbody>
18
+
19
+ <tr class="headings" id="headings<?php echo $_htmlId ?>">
20
+ <?php foreach ($this->_columns as $columnName => $column):?>
21
+ <th><?php echo $column['label'] ?></th>
22
+ <?php endforeach;?>
23
+ <th <?php echo $_colspan?>></th>
24
+ </tr>
25
+
26
+ <tr id="addRow<?php echo $_htmlId ?>">
27
+ <td colspan="<?php echo count($this->_columns) ?>"></td>
28
+ <td <?php echo $_colspan?>>
29
+ <button style="" onclick="" class="scalable add" type="button" id="addToEndBtn<?php echo $_htmlId ?>">
30
+ <span><?php echo $this->_addButtonLabel ?></span>
31
+ </button>
32
+ </td>
33
+ </tr>
34
+
35
+ </tbody>
36
+ </table>
37
+ <input type="hidden" name="<?php echo $this->getElement()->getName() ?>[__empty]" value="" />
38
+ </div>
39
+ <div id="empty<?php echo $_htmlId ?>">
40
+ <button style="" onclick="" class="scalable add" type="button" id="emptyAddBtn<?php echo $_htmlId ?>">
41
+ <span><?php echo $this->_addButtonLabel ?></span>
42
+ </button>
43
+ </div>
44
+
45
+ <script type="text/javascript">
46
+ //<![CDATA[
47
+ // create row creator
48
+ var arrayRow<?php echo $_htmlId ?> = {
49
+ // define row prototypeJS template
50
+ template : new Template(
51
+ '<tr id="#{_id}">'
52
+ <?php foreach ($this->_columns as $columnName => $column):?>
53
+ //+'<td>'
54
+ +'<td class="#{_id}-<?php echo $columnName?>">'
55
+ +'<?php echo $this->_renderCellTemplate($columnName)?>'
56
+ +'<\/td>'
57
+ <?php endforeach;?>
58
+ <?php if ($this->_addAfter):?>
59
+ +'<td><button onclick="" class="scalable add" type="button" id="addAfterBtn#{_id}"><span><?php echo Mage::helper('adminhtml')->__('Add after') ?><\/span><\/button><\/td>'
60
+ <?php endif;?>
61
+ +'<td><button onclick="arrayRow<?php echo $_htmlId ?>.del(\'#{_id}\')" class="scalable delete" type="button"><span><?php echo Mage::helper('adminhtml')->__('Delete') ?><\/span><\/button><\/td>'
62
+ +'<\/tr>'
63
+ ),
64
+
65
+ rowsCount : 0,
66
+
67
+ add : function(templateData, insertAfterId)
68
+ {
69
+ // generate default template data
70
+ if ('' == templateData) {
71
+ var d = new Date();
72
+ var templateData = {
73
+ <?php foreach ($this->_columns as $columnName => $column):?>
74
+ <?php echo $columnName ?> : '',
75
+ <?php endforeach;?>
76
+ _id : '_' + d.getTime() + '_' + d.getMilliseconds()
77
+ };
78
+ }
79
+
80
+ // insert before last row
81
+ if ('' == insertAfterId) {
82
+ Element.insert($('addRow<?php echo $_htmlId ?>'), {before: this.template.evaluate(templateData)});
83
+ }
84
+ // insert after specified row
85
+ else {
86
+ Element.insert($(insertAfterId), {after: this.template.evaluate(templateData)});
87
+ }
88
+ //NEW CODE
89
+ <?php foreach ($this->_columns as $columnName => $column):?>
90
+ var options = $$('td.' + templateData._id + '-' + '<?php echo $columnName?>' + ' option')
91
+ if ( templateData.<?php echo $columnName?> )
92
+ {
93
+ var vv = templateData.<?php echo $columnName?>.split(',');
94
+
95
+ for(var index = 0; index < options.length; ++index)
96
+ {
97
+ var option = options[index];
98
+ for ( var x=0; x < vv.length; x++ )
99
+ {
100
+ if(option.getAttribute('value') == vv[x])
101
+ {
102
+ option.selected = true
103
+ }
104
+ }
105
+ /**
106
+ if(option.getAttribute('value') == templateData.<?php echo $columnName?>)
107
+ {
108
+ option.selected = true
109
+ }
110
+ */
111
+ }
112
+ }
113
+ <?php endforeach;?>
114
+ //END CODE
115
+ <?php if ($this->_addAfter):?>
116
+ Event.observe('addAfterBtn' + templateData._id, 'click', this.add.bind(this, '', templateData._id));
117
+ <?php endif;?>
118
+
119
+ this.rowsCount += 1;
120
+ },
121
+
122
+ del : function(rowId)
123
+ {
124
+ $(rowId).remove();
125
+ this.rowsCount -= 1;
126
+ if (0 == this.rowsCount) {
127
+ this.showButtonOnly();
128
+ }
129
+ },
130
+
131
+ showButtonOnly : function()
132
+ {
133
+ $('grid<?php echo $_htmlId ?>').hide();
134
+ $('empty<?php echo $_htmlId ?>').show();
135
+ }
136
+ }
137
+
138
+ // bind add action to "Add" button in last row
139
+ Event.observe('addToEndBtn<?php echo $_htmlId ?>', 'click', arrayRow<?php echo $_htmlId ?>.add.bind(arrayRow<?php echo $_htmlId ?>, '', ''));
140
+
141
+ // add existing rows
142
+ <?php
143
+ $_addAfterId = "headings{$_htmlId}";
144
+ foreach ($this->getArrayRows() as $_rowId => $_row) {
145
+ echo "arrayRow{$_htmlId}.add(" . $_row->toJson() . ", '{$_addAfterId}');\n";
146
+ $_addAfterId = $_rowId;
147
+ }
148
+ ?>
149
+ // initialize standalone button
150
+ $('empty<?php echo $_htmlId ?>').hide();
151
+ Event.observe('emptyAddBtn<?php echo $_htmlId ?>', 'click', function () {
152
+ $('grid<?php echo $_htmlId ?>').show();
153
+ $('empty<?php echo $_htmlId ?>').hide();
154
+ arrayRow<?php echo $_htmlId ?>.add('', '');
155
+ });
156
+
157
+ // if no rows, hide grid and show button only
158
+ <?php if (!$this->getArrayRows()):?>
159
+ arrayRow<?php echo $_htmlId ?>.showButtonOnly();
160
+ <?php endif;?>
161
+
162
+ // toggle the grid, if element is disabled (depending on scope)
163
+ <?php if ($this->getElement()->getDisabled()):?>
164
+ toggleValueElements({checked:true}, $('grid<?php echo $_htmlId ?>').parentNode);
165
+ <?php endif;?>
166
+ //]]>
167
+ </script>
app/design/adminhtml/default/default/template/auit/madmin/renderer/array_date.phtml ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ ?>
4
+
5
+ <?php
6
+ $_htmlId = $this->getHtmlId() ? $this->getHtmlId() : '_' . uniqid();
7
+
8
+ $_colspan = 2;
9
+ if (!$this->_addAfter) {
10
+ $_colspan -= 1;
11
+ }
12
+ $_colspan = $_colspan > 1 ? 'colspan="' . $_colspan . '"' : '';
13
+ ?>
14
+
15
+ <div class="grid" id="grid<?php echo $_htmlId ?>">
16
+ <table cellpadding="0" cellspacing="0" class="border">
17
+ <tbody>
18
+
19
+ <tr class="headings" id="headings<?php echo $_htmlId ?>">
20
+ <?php foreach ($this->_columns as $columnName => $column):?>
21
+ <th><?php echo $column['label'] ?></th>
22
+ <?php endforeach;?>
23
+ <th <?php echo $_colspan?>></th>
24
+ </tr>
25
+
26
+ <tr id="addRow<?php echo $_htmlId ?>">
27
+ <td colspan="<?php echo count($this->_columns) ?>"></td>
28
+ <td <?php echo $_colspan?>>
29
+ <button style="" onclick="" class="scalable add" type="button" id="addToEndBtn<?php echo $_htmlId ?>">
30
+ <span><?php echo $this->_addButtonLabel ?></span>
31
+ </button>
32
+ </td>
33
+ </tr>
34
+
35
+ </tbody>
36
+ </table>
37
+ <input type="hidden" name="<?php echo $this->getElement()->getName() ?>[__empty]" value="" />
38
+ </div>
39
+ <div id="empty<?php echo $_htmlId ?>">
40
+ <button style="" onclick="" class="scalable add" type="button" id="emptyAddBtn<?php echo $_htmlId ?>">
41
+ <span><?php echo $this->_addButtonLabel ?></span>
42
+ </button>
43
+ </div>
44
+
45
+ <script type="text/javascript">
46
+ //<![CDATA[
47
+ // create row creator
48
+ var arrayRow<?php echo $_htmlId ?> = {
49
+ // define row prototypeJS template
50
+ template : new Template(
51
+ '<tr id="#{_id}<?php echo $_htmlId?>">'
52
+ <?php foreach ($this->_columns as $columnName => $column):?>
53
+ //+'<td>'
54
+ +'<td class="#{_id}-<?php echo $columnName?>">'
55
+ +'<?php echo $this->_renderCellTemplate($columnName)?>'
56
+ +'<\/td>'
57
+ <?php endforeach;?>
58
+ <?php if ($this->_addAfter):?>
59
+ +'<td><button onclick="" class="scalable add" type="button" id="addAfterBtn#{_id}<?php echo $_htmlId ?>"><span><?php echo Mage::helper('adminhtml')->__('Add after') ?><\/span><\/button><\/td>'
60
+ <?php endif;?>
61
+ +'<td>'
62
+ +'<input id="#{_id}<?php echo $_htmlId?>_rowdel" type="hidden" value="0" name="<?php echo $this->getElement()->getName() ?>[__deleted][#{_id}]" />'
63
+ +'<button onclick="arrayRow<?php echo $_htmlId ?>.del(\'#{_id}<?php echo $_htmlId ?>\')" class="scalable delete" type="button"><span><?php echo Mage::helper('adminhtml')->__('Delete') ?><\/span><\/button><\/td>'
64
+ +'<\/tr>'
65
+ ),
66
+
67
+ rowsCount : 0,
68
+
69
+ add : function(templateData, insertAfterId)
70
+ {
71
+ // generate default template data
72
+ if ('' == templateData) {
73
+ var d = new Date();
74
+ var templateData = {
75
+ <?php foreach ($this->_columns as $columnName => $column):?>
76
+ <?php echo $columnName ?> : '',
77
+ <?php endforeach;?>
78
+ _id : '_' + d.getTime() + '_' + d.getMilliseconds()
79
+ };
80
+ }
81
+
82
+ // insert before last row
83
+ if ('' == insertAfterId) {
84
+ Element.insert($('addRow<?php echo $_htmlId ?>'), {before: this.template.evaluate(templateData)});
85
+ }
86
+ // insert after specified row
87
+ else {
88
+ Element.insert($(insertAfterId), {after: this.template.evaluate(templateData)});
89
+ }
90
+ //NEW CODE
91
+ <?php foreach ($this->_columns as $columnName => $column):?>
92
+ var options = $$('td.' + templateData._id + '-' + '<?php echo $columnName?>' + ' option')
93
+ if ( templateData.<?php echo $columnName?> )
94
+ {
95
+ var vv = templateData.<?php echo $columnName?>.split(',');
96
+ for(var index = 0; index < options.length; ++index)
97
+ {
98
+ var option = options[index];
99
+ for ( var x=0; x < vv.length; x++ )
100
+ {
101
+ if(option.getAttribute('value') == vv[x])
102
+ {
103
+ option.selected = true
104
+ }
105
+ }
106
+ }
107
+ }
108
+ <?php endforeach;?>
109
+ <?php foreach ($this->_columns as $columnName => $column):?>
110
+ <?php if ( strpos($column['class'],'datetime') !== false ) : ?>
111
+ var delelm = $$('td.' + templateData._id + '-' + '<?php echo $columnName?>' + ' input');
112
+ var delbtn = $$('td.' + templateData._id + '-' + '<?php echo $columnName?>' + ' img');
113
+ Calendar.setup({
114
+ inputField : delelm[0],
115
+ ifFormat : '<?php echo $this->getDateFormat() ?>',
116
+ button : delbtn[0],
117
+ align : 'Bl',
118
+ //showsTime:true,
119
+ singleClick : true
120
+ //, timeFormat: 12
121
+ });
122
+ <?php endif; ?>
123
+ <?php endforeach;?>
124
+
125
+ //END CODE
126
+ <?php if ($this->_addAfter):?>
127
+ Event.observe('addAfterBtn' + templateData._id + '<?php echo $_htmlId ?>', 'click', this.add.bind(this, '', templateData._id+'<?php echo $_htmlId ?>'));
128
+ <?php endif;?>
129
+
130
+ this.rowsCount += 1;
131
+ },
132
+
133
+ del : function(rowId)
134
+ {
135
+ //$(rowId).remove();
136
+ $(rowId).hide();
137
+ $(rowId+'_rowdel').value=1;
138
+ this.rowsCount -= 1;
139
+ if (0 == this.rowsCount) {
140
+ this.showButtonOnly();
141
+ }
142
+ },
143
+
144
+ showButtonOnly : function()
145
+ {
146
+ $('grid<?php echo $_htmlId ?>').hide();
147
+ $('empty<?php echo $_htmlId ?>').show();
148
+ }
149
+ }
150
+
151
+ // bind add action to "Add" button in last row
152
+ Event.observe('addToEndBtn<?php echo $_htmlId ?>', 'click', arrayRow<?php echo $_htmlId ?>.add.bind(arrayRow<?php echo $_htmlId ?>, '', ''));
153
+
154
+ // add existing rows
155
+ <?php
156
+ $_addAfterId = "headings{$_htmlId}";
157
+
158
+ foreach ($this->getArrayRows() as $_rowId => $_row) {
159
+ echo "arrayRow{$_htmlId}.add(" . $_row->toJson() . ", '{$_addAfterId}');\n";
160
+ $_addAfterId = $_rowId.''.$_htmlId;
161
+ }
162
+ ?>
163
+
164
+ // initialize standalone button
165
+ $('empty<?php echo $_htmlId ?>').hide();
166
+ Event.observe('emptyAddBtn<?php echo $_htmlId ?>', 'click', function () {
167
+ $('grid<?php echo $_htmlId ?>').show();
168
+ $('empty<?php echo $_htmlId ?>').hide();
169
+ arrayRow<?php echo $_htmlId ?>.add('', '');
170
+ });
171
+
172
+ // if no rows, hide grid and show button only
173
+ <?php if (!$this->getArrayRows()):?>
174
+ arrayRow<?php echo $_htmlId ?>.showButtonOnly();
175
+ <?php endif;?>
176
+
177
+ // toggle the grid, if element is disabled (depending on scope)
178
+ <?php if ($this->getElement()->getDisabled()):?>
179
+ toggleValueElements({checked:true}, $('grid<?php echo $_htmlId ?>').parentNode);
180
+ <?php endif;?>
181
+ //]]>
182
+ </script>
app/design/adminhtml/default/snm-mobile/layout/auit_madmin.xml ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout>
3
+ <default>
4
+ <reference name="root">
5
+ <action method="setTemplate" ><title>auit/madmin/page.phtml</title></action>
6
+ <remove name="head"/>
7
+ <remove name="global_notices"/>
8
+ <remove name="header"/>
9
+ <remove name="notifications"/>
10
+ <remove name="js_translate"/>
11
+ <remove name="left"/>
12
+ <remove name="js"/>
13
+ <remove name="footer"/>
14
+ <remove name="profiler"/>
15
+ <block type="adminhtml/page_head" name="head2" as="head" template="page/head.phtml">
16
+ <action method="setTitle" translate="title"><title>SNM Mobile Admin</title></action>
17
+ <action method="addCss"><name>jquery.mobile-1.1.0.min.css</name></action>
18
+ <action method="addCss"><name>iscrollview/jquery.mobile.iscrollview.css</name></action>
19
+ <action method="addCss"><name>iscrollview/jquery.mobile.iscrollview-pull.css</name></action>
20
+ <action method="addCss"><name>style.css</name></action>
21
+ <action method="addItem"><type>skin_js</type><name>js/jquery-1.7.2.min.js</name></action>
22
+ <action method="addItem"><type>skin_js</type><name>js/jquery.mobile-1.1.0-patched-listview.min.js</name></action>
23
+ <action method="addItem"><type>skin_js</type><name>auit/mobile.pull.orders.js</name></action>
24
+ <action method="addItem"><type>skin_js</type><name>js/app.js</name></action>
25
+ <action method="addItem"><type>skin_js</type><name>iscrollview/iscroll.js</name></action>
26
+ <action method="addItem"><type>skin_js</type><name>iscrollview/jquery.mobile.iscrollview.js</name></action>
27
+
28
+ </block>
29
+ <block type="adminhtml/page_header" name="header2" as="header" template="page/header.phtml">
30
+ </block>
31
+ </reference>
32
+ </default>
33
+
34
+ <auit_madmin_index_index>
35
+ <reference name="content">
36
+ </reference>
37
+ </auit_madmin_index_index>
38
+ <auit_madmin_index_test>
39
+ <reference name="content">
40
+ <block type="adminhtml/dashboard" name="dashboard" template="auit/madmin/test.phtml">
41
+ </block>
42
+ </reference>
43
+ </auit_madmin_index_test>
44
+ <auit_madmin_index_aboutus>
45
+ <reference name="content">
46
+ <block type="adminhtml/dashboard" name="dashboard" template="auit/madmin/aboutus.phtml">
47
+ </block>
48
+ </reference>
49
+ </auit_madmin_index_aboutus>
50
+ <auit_madmin_dashboard_index>
51
+ <reference name="content">
52
+ <block type="adminhtml/dashboard" name="dashboard" template="auit/madmin/dashboard.phtml">
53
+ <!--
54
+ <block type="adminhtml/store_switcher" name="store_switcher" as="store_switcher" template="store/switcher.phtml">
55
+ <action method="setUseConfirm"><params>0</params></action>
56
+ </block>
57
+ -->
58
+ </block>
59
+ </reference>
60
+ </auit_madmin_dashboard_index>
61
+ <auit_madmin_orders_index>
62
+ <reference name="root">
63
+ <action method="setDataDomCache"><value>true</value></action>
64
+ </reference>
65
+ <reference name="content">
66
+ <block type="auit_madmin/orders" name="orders" template="auit/madmin/orders.phtml">
67
+ <block type="auit_madmin/orders" name="orders.items" template="auit/madmin/orders/items.phtml">
68
+ </block>
69
+ </block>
70
+ </reference>
71
+
72
+ </auit_madmin_orders_index>
73
+ <auit_madmin_orders_next>
74
+ <block type="auit_madmin/orders" name="root" output="toHtml" template="auit/madmin/orders/items.phtml">
75
+ </block>
76
+ </auit_madmin_orders_next>
77
+ <auit_madmin_orders_items>
78
+ <reference name="root">
79
+ <action method="setTemplate" ><title>auit/madmin/page_dlg.phtml</title></action>
80
+ </reference>
81
+ <reference name="content">
82
+ <block type="auit_madmin/orders" name="orders.items" template="auit/madmin/orders/show.phtml">
83
+
84
+ </block>
85
+ </reference>
86
+ </auit_madmin_orders_items>
87
+ <auit_madmin_stock_index>
88
+ <reference name="content">
89
+ <block type="auit_madmin/stock" name="stock.from" template="auit/madmin/stock.phtml">
90
+ </block>
91
+ </reference>
92
+ </auit_madmin_stock_index>
93
+ <adminhtml_index_login>
94
+ <reference name="content">
95
+ <block type="adminhtml/page_head" name="head2" as="head" template="page/head.phtml">
96
+ <action method="setTitle" translate="title"><title>SNM Mobile Admin</title></action>
97
+ <action method="addCss"><name>jquery.mobile-1.1.0.min.css</name></action>
98
+ <action method="addCss"><name>iscrollview/jquery.mobile.iscrollview.css</name></action>
99
+ <action method="addCss"><name>iscrollview/jquery.mobile.iscrollview-pull.css</name></action>
100
+ <action method="addCss"><name>style.css</name></action>
101
+ <action method="addItem"><type>skin_js</type><name>js/jquery-1.7.2.min.js</name></action>
102
+ <action method="addItem"><type>skin_js</type><name>js/jquery.mobile-1.1.0-patched-listview.min.js</name></action>
103
+ <action method="addItem"><type>skin_js</type><name>auit/mobile.pull.orders.js</name></action>
104
+ <action method="addItem"><type>skin_js</type><name>js/app.js</name></action>
105
+ <action method="addItem"><type>skin_js</type><name>iscrollview/iscroll.js</name></action>
106
+ <action method="addItem"><type>skin_js</type><name>iscrollview/jquery.mobile.iscrollview.js</name></action>
107
+ </block>
108
+ </reference>
109
+ </adminhtml_index_login>
110
+
111
+ </layout>
app/design/adminhtml/default/snm-mobile/template/auit/madmin/aboutus.phtml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <div data-role=content data-iscroll>
3
+ <h1>
4
+ <?php echo $this->__('About Us')?>
5
+ </h1>
6
+ <p>You can find more extensions, get information about extensions, and
7
+ rate extensions that you used.</p>
8
+ <p>
9
+ Visit the website: <a href="http://www.snm-portal.com">SNM-Portal.com</a>
10
+ <p>
11
+ <h2>Top Extension from SNM-Portal</h2>
12
+ <ul data-role="listview">
13
+ <li>
14
+ <div class="ui-grid-a">
15
+ <div class="ui-block-a">
16
+ <img style="max-width: 100%"
17
+ src="<?php echo $this->getSkinUrl('images/aboutus/box-pdf-invoice.png')?>" />
18
+ </div>
19
+ <div class="ui-block-b">
20
+ <a
21
+ href="http://www.snm-portal.com/magento-extensions/pdf-print.html">pdfPRINT</a>
22
+ <p></p>
23
+ </div>
24
+ </div>
25
+ </li>
26
+ <li>
27
+ <div class="ui-grid-a">
28
+ <div class="ui-block-a">
29
+ <img style="max-width: 100%"
30
+ src="<?php echo $this->getSkinUrl('images/aboutus/stocklocator.png')?>" />
31
+ </div>
32
+ <div class="ui-block-b">
33
+ <a
34
+ href="http://www.snm-portal.com/magento-extensions/store-locator.html">storeLOCATOR</a>
35
+ <p></p>
36
+ </div>
37
+ </div>
38
+ </li>
39
+ <li>
40
+ <div class="ui-grid-a">
41
+ <div class="ui-block-a">
42
+ <img style="max-width: 100%"
43
+ src="<?php echo $this->getSkinUrl('images/aboutus/cms-editor-professional.png')?>" />
44
+ </div>
45
+ <div class="ui-block-b">
46
+ <a
47
+ href="http://www.snm-portal.com/magento-extensions/cms-content-editor-professional.html">CMS-Content-Editor
48
+ &ndash; Professional</a>
49
+ <p></p>
50
+ </div>
51
+ </div>
52
+ </li>
53
+ </ul>
54
+ </div>
app/design/adminhtml/default/snm-mobile/template/auit/madmin/dashboard.phtml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ ?>
3
+
4
+
5
+ <div data-role=content data-iscroll>
6
+ <div data-role="collapsible-set">
7
+
8
+ <div data-role="collapsible" data-collapsed="false">
9
+ <h3><?php echo $this->__('Dashboard') ?></h3>
10
+ <p>
11
+ <?php echo $this->getChildHtml('sales') ?>
12
+ </p>
13
+ </div>
14
+
15
+ <div data-role="collapsible">
16
+ <h3><?php echo $this->__('Last 5 Orders') ?></h3>
17
+ <p><?php echo $this->getChildHtml('lastOrders'); ?></p>
18
+ </div>
19
+
20
+ <div data-role="collapsible">
21
+ <h3><?php echo $this->__('Last 5 Search Terms') ?></h3>
22
+ <p><?php echo $this->getChildHtml('lastSearches'); ?></p>
23
+ </div>
24
+
25
+ <div data-role="collapsible">
26
+ <h3><?php echo $this->__('Top 5 Search Terms') ?></h3>
27
+ <p><?php echo $this->getChildHtml('topSearches'); ?></p>
28
+ </div>
29
+
30
+ </div>
31
+ <?php /*echo $this->getChildHtml('store_switcher') */?>
32
+ </div>
app/design/adminhtml/default/snm-mobile/template/auit/madmin/orders.phtml ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //data-flip-show-pager="true" data-flip-forward-dir="btot" data-flip-loop="true" data-flip-effect="slide"
3
+ //data-flip-height="200px"
4
+ $collection = $this->getOrderCollection();
5
+ $baseCurrencyCode = Mage::app()->getStore((int)$this->getParam('store'))->getBaseCurrencyCode();
6
+ $shelper=$this->helper('adminhtml/sales');
7
+ $url=$this->getUrl('auit_madmin/orders/next');
8
+ ?>
9
+
10
+ <div data-role=content data-iscroll class="pull-orders-page" data-auit-url="<?php echo $url;?>" >
11
+ <?php if ( $collection): ?>
12
+ <div class="content-primary">
13
+ <ul data-role="listview" data-theme="d" data-split-iconXXXXX="arrow-r" >
14
+ <?php echo $this->getChildHtml('orders.items');?>
15
+ </ul>
16
+ <div class="iscroll-pullup">
17
+ <span class="iscroll-pull-icon"></span>
18
+ <span
19
+ data-iscroll-pulled-text="<?php echo $this->__('Let go');?>"
20
+ data-iscroll-loading-text="<?php echo $this->__('Please wait...');?>"
21
+ class="iscroll-pull-label" ><?php echo $this->__('Pull up for next orders');?></span>
22
+ </div>
23
+
24
+ </div>
25
+ <?php endif; ?>
26
+ </div>
27
+
28
+ <?php /*
29
+ <div class="ui-grid-a">
30
+ <div class="ui-block-a"><?php echo $this->__('Sku')?></div>
31
+ <div class="ui-block-b"><?php echo $_item->getSku()?></div>
32
+ <div class="ui-block-a"><?php echo $this->__('Name')?></div>
33
+ <div class="ui-block-b"><?php echo $_item->getName()?></div>
34
+
35
+ <div class="ui-block-a"><?php echo $this->__('Qty')?></div>
36
+ <div class="ui-block-b"><?php echo $_item->getQtyOrdered()?></div>
37
+ <div class="ui-block-a"><?php echo $this->__('Price')?></div>
38
+ <div class="ui-block-b"><?php echo $shelper->displayPrices($_order,$_item->getData('row_total_incl_tax'), $_item->getData('row_total_incl_tax')) ?></div>
39
+ </div>
40
+
41
+
42
+ </ul>
43
+
44
+
45
+
46
+
47
+ <div class="page">
48
+ <h3><?php echo Mage::helper('sales')->__('Order # %s', $_order->getRealOrderId()) ?></h3>
49
+ <div class="article-list" data-auit-swipe="enable">
50
+ <div class="article-list-container" >
51
+ <?php $_items = $_order->getItemsCollection() ?>
52
+ <?php
53
+ $i=0;
54
+ if ( 1)
55
+ for ($x=0; $x < 10; $x++)
56
+ foreach ($_items as $_item):?>
57
+ <?php if ($_item->getParentItem()) continue; else $i++;?>
58
+
59
+ <div class="item">
60
+ <?php if ( $imageUrl = $this->getProductImg($_item) ) :?>
61
+ <img src="<?php echo $imageUrl?>"/>
62
+ <?php endif;?>
63
+ <h4><?php echo $_item->getName()?> <?php echo $this->__(' (%d / %d)',$i,count($_items));?></h4>
64
+
65
+ <div class="ui-grid-a">
66
+ <div class="ui-block-a"><?php echo $this->__('Sku')?></div>
67
+ <div class="ui-block-b"><?php echo $_item->getSku()?></div>
68
+ <div class="ui-block-a"><?php echo $this->__('Name')?></div>
69
+ <div class="ui-block-b"><?php echo $_item->getName()?></div>
70
+
71
+ <div class="ui-block-a"><?php echo $this->__('Qty')?></div>
72
+ <div class="ui-block-b"><?php echo $_item->getQtyOrdered()?></div>
73
+ <div class="ui-block-a"><?php echo $this->__('Price')?></div>
74
+ <div class="ui-block-b"><?php echo $shelper->displayPrices($_order,$_item->getData('row_total_incl_tax'), $_item->getData('row_total_incl_tax')) ?></div>
75
+ </div>
76
+
77
+ </div>
78
+ <?php endforeach; ?>
79
+ </div>
80
+ </div>
81
+ <br clear="all"/>
82
+ <div class="head">
83
+
84
+ <span style="font-size:0.6em"><br/>(<?php echo $_email ?>)</span>
85
+
86
+ <div class="ui-grid-a">
87
+ <div class="ui-block-a bold"><?php echo $this->__('Order Status')?></div>
88
+ <div class="ui-block-b"><?php echo $orderAdminDate;?></div>
89
+ <div class="ui-block-a bold"><?php echo $this->__('Order Status')?></div>
90
+ <div class="ui-block-b"><?php echo $_order->getStatusLabel();?></div>
91
+ <div class="ui-block-a bold"><?php echo $this->__('Grand Total')?></div>
92
+ <div class="ui-block-b"><?php echo $shelper->displayPrices($_order,$_order->getGrandTotal(),$_order->getGrandTotal());?></div>
93
+ <div class="ui-block-a bold"><?php echo Mage::helper('sales')->__('Billing Address') ?></div>
94
+ <div class="ui-block-b"><a href="#addr<?php echo $_order->getId()?>" data-rel="dialog" data-inline="true" data-role="button"><?php echo $this->__('Open')?></a></div>
95
+ </div>
96
+ </div>
97
+
98
+ </div>
99
+ <?php endforeach;?>
100
+ </div>
101
+
102
+
103
+ </div>
104
+ */?>
app/design/adminhtml/default/snm-mobile/template/auit/madmin/orders/items.phtml ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $collection = $this->getOrderCollection();
3
+ $baseCurrencyCode = Mage::app()->getStore((int)$this->getParam('store'))->getBaseCurrencyCode();
4
+ $shelper=$this->helper('adminhtml/sales');
5
+ ?>
6
+
7
+ <?php foreach ( $collection as $idx => $_order ):?>
8
+ <?php
9
+ /* @var $_order Mage_Sales_Model_Order */
10
+ $orderAdminDate = $this->formatDate($_order->getCreatedAtDate(), 'medium', true);
11
+ $orderStoreDate = $this->formatDate($_order->getCreatedAtStoreDate(), 'medium', true);
12
+ if ($_order->getEmailSent()){
13
+ $_email = Mage::helper('sales')->__('the order confirmation email was sent');
14
+ }else{
15
+ $_email = Mage::helper('sales')->__('the order confirmation email is not sent');
16
+ }
17
+ ?>
18
+ <li ><a href="<?php echo $this->getUrl('auit_madmin/orders/items',array('id'=>$_order->getId()));?>" >
19
+ <h3><?php echo Mage::helper('sales')->__('Order # %s', $_order->getRealOrderId()) ?></h3>
20
+ <p ><strong><?php echo $shelper->displayPrices($_order,$_order->getGrandTotal(),$_order->getGrandTotal());?></strong> - <?php echo $orderAdminDate;?></p>
21
+
22
+ <p><?php echo $this->getInfo($_order);?></p>
23
+ </a>
24
+
25
+ <?php
26
+
27
+ /*
28
+ * <a href="#" ></a>
29
+ <h3><?php echo Mage::helper('sales')->__('Order # %s', $_order->getRealOrderId()) ?>&#160;<span style="font-size:0.8em"><?php echo $orderAdminDate;?></span></h3>
30
+ <p><?php echo $this->getInfo($_order);?></p>
31
+
32
+
33
+ <?php $_items = $_order->getItemsCollection();?>
34
+
35
+ <span class="ui-li-count"><?php echo $shelper->displayPrices($_order,$_order->getGrandTotal(),$_order->getGrandTotal());?></span>
36
+ */?>
37
+
38
+ <?php /*
39
+ <ul data-add-back-btn="true" data-theme="d" data-auit-fullpage="enable" data-list-icon="gear">
40
+ <li>
41
+ <div style="overflow:hidden;height:50%" data-auit-swipe="enable">
42
+ <?php
43
+ $i=0;
44
+ for ($x=0; $x < 10; $x++)
45
+ foreach ($_items as $_item):?>
46
+ <?php if ($_item->getParentItem()) continue; else $i++;?>
47
+ <div>
48
+ <h3><?php echo $_item->getName()?> <?php echo $this->__(' (%d / %d)',$i,count($_items));?></h3>
49
+ <p>
50
+ <?php if ( $imageUrl = $this->getProductImg($_item) ) :?>
51
+ <img src="<?php echo $imageUrl?>"/>
52
+ <?php endif;?>
53
+
54
+ All your favorites from aarkvarks to zebras.</p>
55
+ </div>
56
+ <?php endforeach; ?>
57
+
58
+ </div>
59
+
60
+ </li>
61
+ </ul>
62
+ */?>
63
+ </li>
64
+ <?php endforeach; ?>
65
+ <?php
66
+ /*
67
+ <?php echo $this->__('Article');?><?php echo count($_items)?>
68
+ data-iscroll
69
+ */
70
+ ?>
app/design/adminhtml/default/snm-mobile/template/auit/madmin/orders/orders_dialog.phtml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $collection = $this->getOrderCollection();
3
+ ?>
4
+ <?php if ($collection): ?>
5
+ <?php foreach ( $collection as $idx => $_order ):?>
6
+ <div data-role="page" id="addr<?php echo $_order->getId()?>" data-theme="b">
7
+ <div data-role="header">
8
+ <h1><?php echo Mage::helper('adminhtml')->__('Billingaddress') ?></h1>
9
+ </div>
10
+ <div data-role="content" data-inset="true">
11
+ <?php echo $_order->getBillingAddress()->getFormated(true) ?>
12
+ </div>
13
+ </div>
14
+ <?php endforeach;?>
15
+ <?php endif; ?>
app/design/adminhtml/default/snm-mobile/template/auit/madmin/orders/show.phtml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* @var $_order Mage_Sales_Model_Order */
3
+ $_order = $this->getOrder();
4
+ $shelper=$this->helper('adminhtml/sales');
5
+ $orderAdminDate = $this->formatDate($_order->getCreatedAtDate(), 'medium', true);
6
+
7
+ ?>
8
+ <?php
9
+ $name = '';
10
+ $action = Mage::app()->getFrontController()->getAction();
11
+ if ($action) {
12
+ $name =$action->getFullActionName();
13
+ }
14
+ ?>
15
+
16
+ <div data-role="page" id="<?php echo $name;?>">
17
+
18
+ <div data-role="header" data-position="fixed" >
19
+ <a data-role="button" data-rel="back" data-icon="back"><?php echo $this->__('Back')?></a>
20
+
21
+
22
+ <h1><?php echo Mage::helper('sales')->__('Order # %s', $_order->getRealOrderId()) ?></h1>
23
+ <div id="messages"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
24
+ </div>
25
+
26
+ <div data-role="content" data-iscroll="enable" >
27
+
28
+ <div class="content-primary auit-order-item">
29
+ <?php if ( $_order ) : ?>
30
+ <h3><span class="date"><?php echo $orderAdminDate;?></span><?php echo $shelper->displayPrices($_order,$_order->getGrandTotal(),$_order->getGrandTotal());?></h3>
31
+ <p><?php echo $this->getInfo($_order);?></p>
32
+
33
+ <?php $_items = $_order->getItemsCollection();?>
34
+
35
+ <ul data-role="listview" data-theme="d" data-inset="true" >
36
+ <?php
37
+ $i=0;
38
+ for ($x=0; $x < 1; $x++)
39
+ foreach ($_items as $_item):?> <?php if ($_item->getParentItem()) continue; else $i++;?>
40
+ <li>
41
+ <h3>
42
+ <?php echo $_item->getName()?>
43
+ <?php echo $this->__(' (%d / %d)',$i,count($_items));?>
44
+ </h3>
45
+ <p><?php echo $this->htmlEscape($_item->getDescription()) ?></p>
46
+ <div class="ui-grid-a">
47
+ <div class="ui-block-a">
48
+ <?php if ( $imageUrl = $this->getProductImg($_item) ) :?>
49
+ <img class="p-image" src="<?php echo $imageUrl?>" />
50
+ <?php endif;?>
51
+ </div>
52
+ <div class="ui-block-b">
53
+ <h4><?php echo $this->__('SKU')?></h4>
54
+ <p><?php echo $_item->getSku();?></p>
55
+ <h4><?php echo $this->__('Price')?></h4>
56
+ <p><?php echo $shelper->displayPrices($_order,$_item->getData('row_total_incl_tax'), $_item->getData('row_total_incl_tax'));?></p>
57
+ <br/>
58
+ <?php foreach ($this->getOrderOptions($_item) as $_option): ?>
59
+ <h4><?php echo $_option['label'] ?></h4>
60
+ <p class="auit-text-break">
61
+ <?php if (isset($_option['custom_view']) && $_option['custom_view']): ?>
62
+ <?php echo $_option['value']; ?>
63
+ <?php else: ?>
64
+ <?php echo $_option['value']; ?>
65
+ <?php endif; ?>
66
+ </p>
67
+ <?php endforeach; ?>
68
+
69
+
70
+ </div>
71
+ </div>
72
+ </li>
73
+ <?php endforeach; ?>
74
+ </ul>
75
+ <?php endif; ?>
76
+ </div>
77
+ </div>
78
+ </div>
app/design/adminhtml/default/snm-mobile/template/auit/madmin/page.phtml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ ?>
3
+ <!DOCTYPE html>
4
+ <html>
5
+ <head>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <?php echo $this->getChildHtml('head') ?>
8
+ </head>
9
+ <body>
10
+
11
+ <?php
12
+
13
+ $name = '';
14
+ $action = Mage::app()->getFrontController()->getAction();
15
+ if ($action) {
16
+ $name =$action->getFullActionName();
17
+
18
+ }
19
+ ?>
20
+
21
+ <div data-role="page" id="<?php echo $name;?>" <?php if ( $this->getDataDomCache()) echo 'data-dom-cache="'.$this->getDataDomCache().'"';?>>
22
+ <?php echo $this->getChildHtml('header') ?>
23
+ <?php echo $this->getChildHtml('content') ?>
24
+ </div>
25
+ <?php echo $this->getChildHtml('before_body_end')
26
+
27
+
28
+ ?>
29
+ </body>
30
+ </html>
app/design/adminhtml/default/snm-mobile/template/auit/madmin/page_dlg.phtml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ ?>
3
+ <!DOCTYPE html>
4
+ <html>
5
+ <head>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <?php echo $this->getChildHtml('head') ?>
8
+ </head>
9
+ <body>
10
+ <?php
11
+ $name = '';
12
+ $action = Mage::app()->getFrontController()->getAction();
13
+ if ($action) {
14
+ $name =$action->getFullActionName();
15
+ }
16
+ ?>
17
+ <?php echo $this->getChildHtml('content') ?>
18
+ <?php echo $this->getChildHtml('before_body_end') ?>
19
+
20
+ </body>
21
+ </html>
app/design/adminhtml/default/snm-mobile/template/auit/madmin/renderer/array.phtml ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ ?>
4
+
5
+ <?php
6
+ $_htmlId = $this->getHtmlId() ? $this->getHtmlId() : '_' . uniqid();
7
+
8
+ $_colspan = 2;
9
+ if (!$this->_addAfter) {
10
+ $_colspan -= 1;
11
+ }
12
+ $_colspan = $_colspan > 1 ? 'colspan="' . $_colspan . '"' : '';
13
+ ?>
14
+
15
+ <div class="grid" id="grid<?php echo $_htmlId ?>">
16
+ <table cellpadding="0" cellspacing="0" class="border">
17
+ <tbody>
18
+
19
+ <tr class="headings" id="headings<?php echo $_htmlId ?>">
20
+ <?php foreach ($this->_columns as $columnName => $column):?>
21
+ <th><?php echo $column['label'] ?></th>
22
+ <?php endforeach;?>
23
+ <th <?php echo $_colspan?>></th>
24
+ </tr>
25
+
26
+ <tr id="addRow<?php echo $_htmlId ?>">
27
+ <td colspan="<?php echo count($this->_columns) ?>"></td>
28
+ <td <?php echo $_colspan?>>
29
+ <button style="" onclick="" class="scalable add" type="button" id="addToEndBtn<?php echo $_htmlId ?>">
30
+ <span><?php echo $this->_addButtonLabel ?></span>
31
+ </button>
32
+ </td>
33
+ </tr>
34
+
35
+ </tbody>
36
+ </table>
37
+ <input type="hidden" name="<?php echo $this->getElement()->getName() ?>[__empty]" value="" />
38
+ </div>
39
+ <div id="empty<?php echo $_htmlId ?>">
40
+ <button style="" onclick="" class="scalable add" type="button" id="emptyAddBtn<?php echo $_htmlId ?>">
41
+ <span><?php echo $this->_addButtonLabel ?></span>
42
+ </button>
43
+ </div>
44
+
45
+ <script type="text/javascript">
46
+ //<![CDATA[
47
+ // create row creator
48
+ var arrayRow<?php echo $_htmlId ?> = {
49
+ // define row prototypeJS template
50
+ template : new Template(
51
+ '<tr id="#{_id}">'
52
+ <?php foreach ($this->_columns as $columnName => $column):?>
53
+ //+'<td>'
54
+ +'<td class="#{_id}-<?php echo $columnName?>">'
55
+ +'<?php echo $this->_renderCellTemplate($columnName)?>'
56
+ +'<\/td>'
57
+ <?php endforeach;?>
58
+ <?php if ($this->_addAfter):?>
59
+ +'<td><button onclick="" class="scalable add" type="button" id="addAfterBtn#{_id}"><span><?php echo Mage::helper('adminhtml')->__('Add after') ?><\/span><\/button><\/td>'
60
+ <?php endif;?>
61
+ +'<td><button onclick="arrayRow<?php echo $_htmlId ?>.del(\'#{_id}\')" class="scalable delete" type="button"><span><?php echo Mage::helper('adminhtml')->__('Delete') ?><\/span><\/button><\/td>'
62
+ +'<\/tr>'
63
+ ),
64
+
65
+ rowsCount : 0,
66
+
67
+ add : function(templateData, insertAfterId)
68
+ {
69
+ // generate default template data
70
+ if ('' == templateData) {
71
+ var d = new Date();
72
+ var templateData = {
73
+ <?php foreach ($this->_columns as $columnName => $column):?>
74
+ <?php echo $columnName ?> : '',
75
+ <?php endforeach;?>
76
+ _id : '_' + d.getTime() + '_' + d.getMilliseconds()
77
+ };
78
+ }
79
+
80
+ // insert before last row
81
+ if ('' == insertAfterId) {
82
+ Element.insert($('addRow<?php echo $_htmlId ?>'), {before: this.template.evaluate(templateData)});
83
+ }
84
+ // insert after specified row
85
+ else {
86
+ Element.insert($(insertAfterId), {after: this.template.evaluate(templateData)});
87
+ }
88
+ //NEW CODE
89
+ <?php foreach ($this->_columns as $columnName => $column):?>
90
+ var options = $$('td.' + templateData._id + '-' + '<?php echo $columnName?>' + ' option')
91
+ if ( templateData.<?php echo $columnName?> )
92
+ {
93
+ var vv = templateData.<?php echo $columnName?>.split(',');
94
+
95
+ for(var index = 0; index < options.length; ++index)
96
+ {
97
+ var option = options[index];
98
+ for ( var x=0; x < vv.length; x++ )
99
+ {
100
+ if(option.getAttribute('value') == vv[x])
101
+ {
102
+ option.selected = true
103
+ }
104
+ }
105
+ /**
106
+ if(option.getAttribute('value') == templateData.<?php echo $columnName?>)
107
+ {
108
+ option.selected = true
109
+ }
110
+ */
111
+ }
112
+ }
113
+ <?php endforeach;?>
114
+ //END CODE
115
+ <?php if ($this->_addAfter):?>
116
+ Event.observe('addAfterBtn' + templateData._id, 'click', this.add.bind(this, '', templateData._id));
117
+ <?php endif;?>
118
+
119
+ this.rowsCount += 1;
120
+ },
121
+
122
+ del : function(rowId)
123
+ {
124
+ $(rowId).remove();
125
+ this.rowsCount -= 1;
126
+ if (0 == this.rowsCount) {
127
+ this.showButtonOnly();
128
+ }
129
+ },
130
+
131
+ showButtonOnly : function()
132
+ {
133
+ $('grid<?php echo $_htmlId ?>').hide();
134
+ $('empty<?php echo $_htmlId ?>').show();
135
+ }
136
+ }
137
+
138
+ // bind add action to "Add" button in last row
139
+ Event.observe('addToEndBtn<?php echo $_htmlId ?>', 'click', arrayRow<?php echo $_htmlId ?>.add.bind(arrayRow<?php echo $_htmlId ?>, '', ''));
140
+
141
+ // add existing rows
142
+ <?php
143
+ $_addAfterId = "headings{$_htmlId}";
144
+ foreach ($this->getArrayRows() as $_rowId => $_row) {
145
+ echo "arrayRow{$_htmlId}.add(" . $_row->toJson() . ", '{$_addAfterId}');\n";
146
+ $_addAfterId = $_rowId;
147
+ }
148
+ ?>
149
+ // initialize standalone button
150
+ $('empty<?php echo $_htmlId ?>').hide();
151
+ Event.observe('emptyAddBtn<?php echo $_htmlId ?>', 'click', function () {
152
+ $('grid<?php echo $_htmlId ?>').show();
153
+ $('empty<?php echo $_htmlId ?>').hide();
154
+ arrayRow<?php echo $_htmlId ?>.add('', '');
155
+ });
156
+
157
+ // if no rows, hide grid and show button only
158
+ <?php if (!$this->getArrayRows()):?>
159
+ arrayRow<?php echo $_htmlId ?>.showButtonOnly();
160
+ <?php endif;?>
161
+
162
+ // toggle the grid, if element is disabled (depending on scope)
163
+ <?php if ($this->getElement()->getDisabled()):?>
164
+ toggleValueElements({checked:true}, $('grid<?php echo $_htmlId ?>').parentNode);
165
+ <?php endif;?>
166
+ //]]>
167
+ </script>
app/design/adminhtml/default/snm-mobile/template/auit/madmin/renderer/array_date.phtml ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ ?>
4
+
5
+ <?php
6
+ $_htmlId = $this->getHtmlId() ? $this->getHtmlId() : '_' . uniqid();
7
+
8
+ $_colspan = 2;
9
+ if (!$this->_addAfter) {
10
+ $_colspan -= 1;
11
+ }
12
+ $_colspan = $_colspan > 1 ? 'colspan="' . $_colspan . '"' : '';
13
+ ?>
14
+
15
+ <div class="grid" id="grid<?php echo $_htmlId ?>">
16
+ <table cellpadding="0" cellspacing="0" class="border">
17
+ <tbody>
18
+
19
+ <tr class="headings" id="headings<?php echo $_htmlId ?>">
20
+ <?php foreach ($this->_columns as $columnName => $column):?>
21
+ <th><?php echo $column['label'] ?></th>
22
+ <?php endforeach;?>
23
+ <th <?php echo $_colspan?>></th>
24
+ </tr>
25
+
26
+ <tr id="addRow<?php echo $_htmlId ?>">
27
+ <td colspan="<?php echo count($this->_columns) ?>"></td>
28
+ <td <?php echo $_colspan?>>
29
+ <button style="" onclick="" class="scalable add" type="button" id="addToEndBtn<?php echo $_htmlId ?>">
30
+ <span><?php echo $this->_addButtonLabel ?></span>
31
+ </button>
32
+ </td>
33
+ </tr>
34
+
35
+ </tbody>
36
+ </table>
37
+ <input type="hidden" name="<?php echo $this->getElement()->getName() ?>[__empty]" value="" />
38
+ </div>
39
+ <div id="empty<?php echo $_htmlId ?>">
40
+ <button style="" onclick="" class="scalable add" type="button" id="emptyAddBtn<?php echo $_htmlId ?>">
41
+ <span><?php echo $this->_addButtonLabel ?></span>
42
+ </button>
43
+ </div>
44
+
45
+ <script type="text/javascript">
46
+ //<![CDATA[
47
+ // create row creator
48
+ var arrayRow<?php echo $_htmlId ?> = {
49
+ // define row prototypeJS template
50
+ template : new Template(
51
+ '<tr id="#{_id}<?php echo $_htmlId?>">'
52
+ <?php foreach ($this->_columns as $columnName => $column):?>
53
+ //+'<td>'
54
+ +'<td class="#{_id}-<?php echo $columnName?>">'
55
+ +'<?php echo $this->_renderCellTemplate($columnName)?>'
56
+ +'<\/td>'
57
+ <?php endforeach;?>
58
+ <?php if ($this->_addAfter):?>
59
+ +'<td><button onclick="" class="scalable add" type="button" id="addAfterBtn#{_id}<?php echo $_htmlId ?>"><span><?php echo Mage::helper('adminhtml')->__('Add after') ?><\/span><\/button><\/td>'
60
+ <?php endif;?>
61
+ +'<td>'
62
+ +'<input id="#{_id}<?php echo $_htmlId?>_rowdel" type="hidden" value="0" name="<?php echo $this->getElement()->getName() ?>[__deleted][#{_id}]" />'
63
+ +'<button onclick="arrayRow<?php echo $_htmlId ?>.del(\'#{_id}<?php echo $_htmlId ?>\')" class="scalable delete" type="button"><span><?php echo Mage::helper('adminhtml')->__('Delete') ?><\/span><\/button><\/td>'
64
+ +'<\/tr>'
65
+ ),
66
+
67
+ rowsCount : 0,
68
+
69
+ add : function(templateData, insertAfterId)
70
+ {
71
+ // generate default template data
72
+ if ('' == templateData) {
73
+ var d = new Date();
74
+ var templateData = {
75
+ <?php foreach ($this->_columns as $columnName => $column):?>
76
+ <?php echo $columnName ?> : '',
77
+ <?php endforeach;?>
78
+ _id : '_' + d.getTime() + '_' + d.getMilliseconds()
79
+ };
80
+ }
81
+
82
+ // insert before last row
83
+ if ('' == insertAfterId) {
84
+ Element.insert($('addRow<?php echo $_htmlId ?>'), {before: this.template.evaluate(templateData)});
85
+ }
86
+ // insert after specified row
87
+ else {
88
+ Element.insert($(insertAfterId), {after: this.template.evaluate(templateData)});
89
+ }
90
+ //NEW CODE
91
+ <?php foreach ($this->_columns as $columnName => $column):?>
92
+ var options = $$('td.' + templateData._id + '-' + '<?php echo $columnName?>' + ' option')
93
+ if ( templateData.<?php echo $columnName?> )
94
+ {
95
+ var vv = templateData.<?php echo $columnName?>.split(',');
96
+ for(var index = 0; index < options.length; ++index)
97
+ {
98
+ var option = options[index];
99
+ for ( var x=0; x < vv.length; x++ )
100
+ {
101
+ if(option.getAttribute('value') == vv[x])
102
+ {
103
+ option.selected = true
104
+ }
105
+ }
106
+ }
107
+ }
108
+ <?php endforeach;?>
109
+ <?php foreach ($this->_columns as $columnName => $column):?>
110
+ <?php if ( strpos($column['class'],'datetime') !== false ) : ?>
111
+ var delelm = $$('td.' + templateData._id + '-' + '<?php echo $columnName?>' + ' input');
112
+ var delbtn = $$('td.' + templateData._id + '-' + '<?php echo $columnName?>' + ' img');
113
+ Calendar.setup({
114
+ inputField : delelm[0],
115
+ ifFormat : '<?php echo $this->getDateFormat() ?>',
116
+ button : delbtn[0],
117
+ align : 'Bl',
118
+ //showsTime:true,
119
+ singleClick : true
120
+ //, timeFormat: 12
121
+ });
122
+ <?php endif; ?>
123
+ <?php endforeach;?>
124
+
125
+ //END CODE
126
+ <?php if ($this->_addAfter):?>
127
+ Event.observe('addAfterBtn' + templateData._id + '<?php echo $_htmlId ?>', 'click', this.add.bind(this, '', templateData._id+'<?php echo $_htmlId ?>'));
128
+ <?php endif;?>
129
+
130
+ this.rowsCount += 1;
131
+ },
132
+
133
+ del : function(rowId)
134
+ {
135
+ //$(rowId).remove();
136
+ $(rowId).hide();
137
+ $(rowId+'_rowdel').value=1;
138
+ this.rowsCount -= 1;
139
+ if (0 == this.rowsCount) {
140
+ this.showButtonOnly();
141
+ }
142
+ },
143
+
144
+ showButtonOnly : function()
145
+ {
146
+ $('grid<?php echo $_htmlId ?>').hide();
147
+ $('empty<?php echo $_htmlId ?>').show();
148
+ }
149
+ }
150
+
151
+ // bind add action to "Add" button in last row
152
+ Event.observe('addToEndBtn<?php echo $_htmlId ?>', 'click', arrayRow<?php echo $_htmlId ?>.add.bind(arrayRow<?php echo $_htmlId ?>, '', ''));
153
+
154
+ // add existing rows
155
+ <?php
156
+ $_addAfterId = "headings{$_htmlId}";
157
+
158
+ foreach ($this->getArrayRows() as $_rowId => $_row) {
159
+ echo "arrayRow{$_htmlId}.add(" . $_row->toJson() . ", '{$_addAfterId}');\n";
160
+ $_addAfterId = $_rowId.''.$_htmlId;
161
+ }
162
+ ?>
163
+
164
+ // initialize standalone button
165
+ $('empty<?php echo $_htmlId ?>').hide();
166
+ Event.observe('emptyAddBtn<?php echo $_htmlId ?>', 'click', function () {
167
+ $('grid<?php echo $_htmlId ?>').show();
168
+ $('empty<?php echo $_htmlId ?>').hide();
169
+ arrayRow<?php echo $_htmlId ?>.add('', '');
170
+ });
171
+
172
+ // if no rows, hide grid and show button only
173
+ <?php if (!$this->getArrayRows()):?>
174
+ arrayRow<?php echo $_htmlId ?>.showButtonOnly();
175
+ <?php endif;?>
176
+
177
+ // toggle the grid, if element is disabled (depending on scope)
178
+ <?php if ($this->getElement()->getDisabled()):?>
179
+ toggleValueElements({checked:true}, $('grid<?php echo $_htmlId ?>').parentNode);
180
+ <?php endif;?>
181
+ //]]>
182
+ </script>
app/design/adminhtml/default/snm-mobile/template/auit/madmin/stock.phtml ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ ?>
3
+ <div data-role="content" data-iscroll >
4
+ <?php if ( $product = $this->getProduct() ) :?>
5
+ <?php
6
+ /* @var $product Mage_Catalog_Model_Product */
7
+ ?>
8
+
9
+ <form action="<?php echo $this->getUrl('*/*/save');?>" method="POST" class="ui-body ui-body-a ui-corner-all">
10
+
11
+ <?php if ( $product->getStockItem()->getManageStock() && !$product->isComposite()) :?>
12
+ <h2><?php echo Mage::helper('catalog')->__('Inventory') ?></h2>
13
+ <div data-role="fieldcontain">
14
+ <label for="inventory_qty"><?php echo Mage::helper('catalog')->__('Qty') ?></label>
15
+ <input type="text" id="inventory_qty" name="product[stock_data][qty]" value="<?php echo $this->getStockFieldValue('qty')*1 ?>" />
16
+ <input type="hidden" id="original_inventory_qty" name="product[stock_data][original_inventory_qty]" value="<?php echo $this->getStockFieldValue('qty')*1 ?>"/>
17
+ </div>
18
+ <div data-role="fieldcontain">
19
+ <label for="inventory_stock_availability"><?php echo Mage::helper('catalog')->__('Stock Availability') ?></label>
20
+ <select id="inventory_stock_availability" name="product[stock_data][is_in_stock]" class="select" >
21
+ <?php foreach ($this->getStockOption() as $option): ?>
22
+ <?php $_selected = ($option['value'] == $this->getStockFieldValue('is_in_stock')) ? 'selected="selected"' : '' ?>
23
+ <option value="<?php echo $option['value'] ?>" <?php echo $_selected ?>><?php echo $option['label'] ?></option>
24
+ <?php endforeach; ?>
25
+ </select>
26
+ </div>
27
+ <?php endif;?>
28
+ <br/>
29
+ <div data-role="fieldcontain">
30
+ <label for="product[price]"><?php echo $this->__('Price') ?></label>
31
+ <input type="text" name="product[price]" id="product[price]" value="<?php echo sprintf("%.2f",Mage::app()->getStore()->roundPrice($product->getFinalPrice()));?>"/>
32
+ </div>
33
+ <div data-role="fieldcontain">
34
+ <label for="product[name]"><?php echo $this->__('Name') ?></label>
35
+ <input type="text" name="product[name]" id="product[name]" value="<?php echo $product->getName();?>"/>
36
+ </div>
37
+ <div data-role="fieldcontain">
38
+ <label for="product[sku]"><?php echo $this->__('SKU') ?></label>
39
+ <input type="text" name="product[sku]" id="product[sku]" value="<?php echo $product->getSku();?>"/>
40
+ </div>
41
+ <div class="ui-block-b"><button type="submit" data-theme="a"><?php echo $this->__('Save') ?></button></div>
42
+ <input type="hidden" name="mode" value="update"/>
43
+ <input type="hidden" name="product_id" value="<?php echo $product->getId()?>"/>
44
+ <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey()?>"/>
45
+ </form>
46
+ <br/><br/>
47
+ <?php endif;?>
48
+
49
+ <form action="<?php echo $this->getUrl('mobile_admin/stock/search');?>" method="POST" class="ui-body ui-body-b ui-corner-all">
50
+ <h2><?php echo Mage::helper('catalog')->__('Search') ?></h2>
51
+ <div data-role="fieldcontain">
52
+ <label for="searchvalue"><?php echo Mage::helper('adminhtml')->__('Filter Attribute: %s (see config)',Mage::getStoreConfig('auit_madmin/stock/attribute')) ?></label>
53
+ <input type="text" id="searchvalue" name="searchvalue" value="" />
54
+
55
+ </div>
56
+
57
+ <input type="submit" data-role="button" data-inline="true" data-theme="b" value="<?php echo Mage::helper('adminhtml')->__('Search') ?>"/>
58
+ <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey()?>"/>
59
+ </form>
60
+ </div>
app/design/adminhtml/default/snm-mobile/template/auit/madmin/test.phtml ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ ?>
3
+ <!--
4
+ <block type="adminhtml/store_switcher" name="store_switcher" as="store_switcher" template="store/switcher.phtml">
5
+ <action method="setUseConfirm"><params>0</params></action>
6
+ </block>
7
+ -->
8
+ <div data-role="content" data-iscroll>
9
+ <div class="content-primary">
10
+ <ul data-role="listview">
11
+ <li>
12
+ <h3>Order #122</h3>
13
+ <p>All your favorites from aarkvarks to zebras.</p>
14
+ <span class="ui-li-count">12</span>
15
+ <ul data-add-back-btn="true" data-theme="d">
16
+ <li>
17
+ <h3>Pets</h3>
18
+ <p>All your favorites from aarkvarks to zebras.</p>
19
+ <ul data-add-back-btn="true">
20
+ <li><a href="index.html">Canary</a></li>
21
+ <li><a href="index.html">Cat</a></li>
22
+ <li><a href="index.html">Dog</a></li>
23
+ <li><a href="index.html">Gerbil</a></li>
24
+ <li><a href="index.html">Iguana</a></li>
25
+ <li><a href="index.html">Mouse</a></li>
26
+ </ul>
27
+ </li>
28
+ </ul>
29
+ </li>
30
+ <li>
31
+ <h3>Order #122</h3>
32
+ <p>All your favorites from aarkvarks to zebras.</p>
33
+ <span class="ui-li-count">12</span>
34
+ <ul data-add-back-btn="true" data-theme="d">
35
+ <li>
36
+ <h3>Pets</h3>
37
+ <p>All your favorites from aarkvarks to zebras.</p>
38
+ <ul data-add-back-btn="true">
39
+ <li><a href="index.html">Canary</a></li>
40
+ <li><a href="index.html">Cat</a></li>
41
+ <li><a href="index.html">Dog</a></li>
42
+ <li><a href="index.html">Gerbil</a></li>
43
+ <li><a href="index.html">Iguana</a></li>
44
+ <li><a href="index.html">Mouse</a></li>
45
+ </ul>
46
+ </li>
47
+ </ul>
48
+ </li>
49
+ <li>
50
+ <h3>Order #122</h3>
51
+ <p>All your favorites from aarkvarks to zebras.</p>
52
+ <span class="ui-li-count">12</span>
53
+ <ul data-add-back-btn="true" data-theme="d">
54
+ <li>
55
+ <h3>Pets</h3>
56
+ <p>All your favorites from aarkvarks to zebras.</p>
57
+ <ul data-add-back-btn="true">
58
+ <li><a href="index.html">Canary</a></li>
59
+ <li><a href="index.html">Cat</a></li>
60
+ <li><a href="index.html">Dog</a></li>
61
+ <li><a href="index.html">Gerbil</a></li>
62
+ <li><a href="index.html">Iguana</a></li>
63
+ <li><a href="index.html">Mouse</a></li>
64
+ </ul>
65
+ </li>
66
+ </ul>
67
+ </li>
68
+ <li>
69
+ <h3>Order #122</h3>
70
+ <p>All your favorites from aarkvarks to zebras.</p>
71
+ <span class="ui-li-count">12</span>
72
+ <ul data-add-back-btn="true" data-theme="d">
73
+ <li>
74
+ <h3>Pets</h3>
75
+ <p>All your favorites from aarkvarks to zebras.</p>
76
+ <ul data-add-back-btn="true">
77
+ <li><a href="index.html">Canary</a></li>
78
+ <li><a href="index.html">Cat</a></li>
79
+ <li><a href="index.html">Dog</a></li>
80
+ <li><a href="index.html">Gerbil</a></li>
81
+ <li><a href="index.html">Iguana</a></li>
82
+ <li><a href="index.html">Mouse</a></li>
83
+ </ul>
84
+ </li>
85
+ </ul>
86
+ </li>
87
+ <li>
88
+ <h3>Order #122</h3>
89
+ <p>All your favorites from aarkvarks to zebras.</p>
90
+ <span class="ui-li-count">12</span>
91
+ <ul data-add-back-btn="true" data-theme="d">
92
+ <li>
93
+ <h3>Pets</h3>
94
+ <p>All your favorites from aarkvarks to zebras.</p>
95
+ <ul data-add-back-btn="true">
96
+ <li><a href="index.html">Canary</a></li>
97
+ <li><a href="index.html">Cat</a></li>
98
+ <li><a href="index.html">Dog</a></li>
99
+ <li><a href="index.html">Gerbil</a></li>
100
+ <li><a href="index.html">Iguana</a></li>
101
+ <li><a href="index.html">Mouse</a></li>
102
+ </ul>
103
+ </li>
104
+ </ul>
105
+ </li>
106
+ <li>
107
+ <h3>Order #122</h3>
108
+ <p>All your favorites from aarkvarks to zebras.</p>
109
+ <span class="ui-li-count">12</span>
110
+ <ul data-add-back-btn="true" data-theme="d">
111
+ <li>
112
+ <h3>Pets</h3>
113
+ <p>All your favorites from aarkvarks to zebras.</p>
114
+ <ul data-add-back-btn="true">
115
+ <li><a href="index.html">Canary</a></li>
116
+ <li><a href="index.html">Cat</a></li>
117
+ <li><a href="index.html">Dog</a></li>
118
+ <li><a href="index.html">Gerbil</a></li>
119
+ <li><a href="index.html">Iguana</a></li>
120
+ <li><a href="index.html">Mouse</a></li>
121
+ </ul>
122
+ </li>
123
+ </ul>
124
+ </li>
125
+ <li>
126
+ <h3>Order #122</h3>
127
+ <p>All your favorites from aarkvarks to zebras.</p>
128
+ <span class="ui-li-count">12</span>
129
+ <ul data-add-back-btn="true" data-theme="d">
130
+ <li>
131
+ <h3>Pets</h3>
132
+ <p>All your favorites from aarkvarks to zebras.</p>
133
+ <ul data-add-back-btn="true">
134
+ <li><a href="index.html">Canary</a></li>
135
+ <li><a href="index.html">Cat</a></li>
136
+ <li><a href="index.html">Dog</a></li>
137
+ <li><a href="index.html">Gerbil</a></li>
138
+ <li><a href="index.html">Iguana</a></li>
139
+ <li><a href="index.html">Mouse</a></li>
140
+ </ul>
141
+ </li>
142
+ </ul>
143
+ </li>
144
+ <li>
145
+ <h3>Order #122</h3>
146
+ <p>All your favorites from aarkvarks to zebras.</p>
147
+ <span class="ui-li-count">12</span>
148
+ <ul data-add-back-btn="true" data-theme="d">
149
+ <li>
150
+ <h3>Pets</h3>
151
+ <p>All your favorites from aarkvarks to zebras.</p>
152
+ <ul data-add-back-btn="true">
153
+ <li><a href="index.html">Canary</a></li>
154
+ <li><a href="index.html">Cat</a></li>
155
+ <li><a href="index.html">Dog</a></li>
156
+ <li><a href="index.html">Gerbil</a></li>
157
+ <li><a href="index.html">Iguana</a></li>
158
+ <li><a href="index.html">Mouse</a></li>
159
+ </ul>
160
+ </li>
161
+ </ul>
162
+ </li>
163
+ <li>
164
+ <h3>Order #122</h3>
165
+ <p>All your favorites from aarkvarks to zebras.</p>
166
+ <span class="ui-li-count">12</span>
167
+ <ul data-add-back-btn="true" data-theme="d">
168
+ <li>
169
+ <h3>Pets</h3>
170
+ <p>All your favorites from aarkvarks to zebras.</p>
171
+ <ul data-add-back-btn="true">
172
+ <li><a href="index.html">Canary</a></li>
173
+ <li><a href="index.html">Cat</a></li>
174
+ <li><a href="index.html">Dog</a></li>
175
+ <li><a href="index.html">Gerbil</a></li>
176
+ <li><a href="index.html">Iguana</a></li>
177
+ <li><a href="index.html">Mouse</a></li>
178
+ </ul>
179
+ </li>
180
+ </ul>
181
+ </li>
182
+ <li>
183
+ <h3>Order #1232</h3>
184
+ <p>All your favorites from aarkvarks to zebras.</p>
185
+ <span class="ui-li-count">12</span>
186
+ <ul data-add-back-btn="true" data-theme="d">
187
+ <li>
188
+ <h3>Pets</h3>
189
+ <p>All your favorites from aarkvarks to zebras.</p>
190
+ <ul data-add-back-btn="true">
191
+ <li><a href="index.html">Canary</a></li>
192
+ <li><a href="index.html">Cat</a></li>
193
+ <li><a href="index.html">Dog</a></li>
194
+ <li><a href="index.html">Gerbil</a></li>
195
+ <li><a href="index.html">Iguana</a></li>
196
+ <li><a href="index.html">Mouse</a></li>
197
+ </ul>
198
+ </li>
199
+ </ul>
200
+ </li>
201
+ </ul>
202
+ </div>
203
+ </div>
204
+
app/design/adminhtml/default/snm-mobile/template/dashboard/grid.phtml ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package default_default
23
+ * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+
29
+ $numColumns = sizeof($this->getColumns());
30
+ ?>
31
+ <?php if($this->getCollection()): ?>
32
+ <div class="grid np">
33
+ <table cellspacing="0" style="border:0;" id="<?php echo $this->getId() ?>_table">
34
+ <?php foreach ($this->getColumns() as $_column): ?>
35
+ <col <?php echo $_column->getHtmlProperty() ?> />
36
+ <?php endforeach; ?>
37
+ <?php if ($this->getHeadersVisibility() || $this->getFilterVisibility()): ?>
38
+ <thead>
39
+ <?php if ($this->getHeadersVisibility()): ?>
40
+ <tr class="headings">
41
+ <?php foreach ($this->getColumns() as $_column): ?>
42
+ <th <?php echo $_column->getHeaderHtmlProperty() ?>><span class="nobr"><?php echo $_column->getHeaderHtml() ?></span></th>
43
+ <?php endforeach; ?>
44
+ </tr>
45
+ <?php endif; ?>
46
+ </thead>
47
+ <?php endif; ?>
48
+ <tbody>
49
+ <?php if (($this->getCollection()->getSize()>0) && (!$this->getIsCollapsed())): ?>
50
+ <?php foreach ($this->getCollection() as $_index=>$_item): ?>
51
+ <tr title="<?php echo $this->getRowId($_item) ?>">
52
+ <?php $i=0;foreach ($this->getColumns() as $_column): ?>
53
+ <td class="<?php echo $_column->getCssProperty() ?> <?php echo ++$i==$numColumns?'last':'' ?>"><?php echo (($_html = $_column->getRowField($_item)) != '' ? $_html : '&nbsp;') ?></td>
54
+ <?php endforeach; ?>
55
+ </tr>
56
+ <?php endforeach; ?>
57
+ <?php elseif ($this->getEmptyText()): ?>
58
+ <tr>
59
+ <td class="empty-text <?php echo $this->getEmptyTextClass() ?>" colspan="100"><?php echo $this->getEmptyText() ?></td>
60
+ </tr>
61
+ <?php endif; ?>
62
+ </tbody>
63
+ </table>
64
+ </div>
65
+ <?php /*
66
+ <?php if($this->canDisplayContainer()): ?>
67
+ <script type="text/javascript">
68
+ //<![CDATA[
69
+ <?php echo $this->getJsObjectName() ?> = new varienGrid('<?php echo $this->getId() ?>', '<?php echo $this->getGridUrl() ?>', '<?php echo $this->getVarNamePage() ?>', '<?php echo $this->getVarNameSort() ?>', '<?php echo $this->getVarNameDir() ?>', '<?php echo $this->getVarNameFilter() ?>');
70
+ <?php echo $this->getJsObjectName() ?>.useAjax = '<?php echo $this->getUseAjax() ?>';
71
+ <?php if($this->getRowClickCallback()): ?>
72
+ <?php echo $this->getJsObjectName() ?>.rowClickCallback = <?php echo $this->getRowClickCallback() ?>;
73
+ <?php endif; ?>
74
+ <?php if($this->getCheckboxCheckCallback()): ?>
75
+ <?php echo $this->getJsObjectName() ?>.checkboxCheckCallback = <?php echo $this->getCheckboxCheckCallback() ?>;
76
+ <?php endif; ?>
77
+ <?php if($this->getRowInitCallback()): ?>
78
+ <?php echo $this->getJsObjectName() ?>.initRowCallback = <?php echo $this->getRowInitCallback() ?>;
79
+ <?php echo $this->getJsObjectName() ?>.rows.each(function(row){<?php echo $this->getRowInitCallback() ?>(<?php echo $this->getJsObjectName() ?>, row)});
80
+ <?php endif; ?>
81
+ <?php if($this->getMassactionBlock()->isAvailable()): ?>
82
+ <?php echo $this->getMassactionBlock()->getJavaScript() ?>
83
+ <?php endif ?>
84
+ //]]>
85
+ </script>
86
+ <?php endif; ?>
87
+ */?>
88
+ <?php endif ?>
app/design/adminhtml/default/snm-mobile/template/dashboard/index.phtml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ ?>
3
+ <div data-role="content" data-iscroll>
4
+ <a href="<?php echo $this->getUrl('mobile_admin/stock')?>" data-role="button"><?php echo $this->__('Stock Manager')?></a>
5
+ <a class="ui-disabled" href="#" data-role="button"><?php echo $this->__('POS')?></a>
6
+ <br/>
7
+ <a href="<?php echo $this->getUrl('mobile_admin/dashboard')?>" data-role="button"><?php echo $this->__('Dashboard')?></a>
8
+ <a href="<?php echo $this->getUrl('mobile_admin/orders')?>" data-role="button"><?php echo $this->__('Orders')?></a>
9
+ <br/>
10
+ <a href="<?php echo $this->getUrl('mobile_admin/index/aboutus')?>" data-role="button"><?php echo $this->__('About Us')?></a>
11
+ <?php /*
12
+ <a href="<?php echo $this->getUrl('mobile_admin/index/test')?>" data-role="button"><?php echo $this->__('Test')?></a>
13
+ */?>
14
+ </div>
app/design/adminhtml/default/snm-mobile/template/dashboard/salebar.phtml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package default_default
23
+ * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if( sizeof($this->getTotals()) > 0 ): ?>
28
+ <?php foreach( $this->getTotals() as $_total ): ?>
29
+ <div class="ui-grid-a">
30
+ <div class="ui-block-a bold" ><?php echo $_total['label'] ?></div>
31
+ <div class="ui-block-b ">
32
+ <?php echo $_total['value'] ?><?php echo $_total['decimals']?>
33
+ </div>
34
+ </div>
35
+ <?php endforeach; ?>
36
+ <?php endif; ?>
app/design/adminhtml/default/snm-mobile/template/login.phtml ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ ?>
3
+ <!DOCTYPE html>
4
+ <html lang="en">
5
+ <head>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1"/>
7
+ <link rel="apple-touch-icon" href="<?php echo $this->getSkinUrl('images/home60.png') ?>" />
8
+ <link rel="icon" href="<?php echo $this->getSkinUrl('images/home.png') ?>" type="image/x-icon"/>
9
+ <link rel="shortcut icon" href="<?php echo $this->getSkinUrl('images/home.png') ?>" type="image/x-icon"/>
10
+ <?php
11
+ $head = $this->getChild('head');
12
+ if ( $head)
13
+ {
14
+ echo $head->toHtml();
15
+
16
+ } else {
17
+ ?>
18
+ <link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('jquery.mobile-1.1.0.min.css') ?>" media="all" />
19
+ <?php /*
20
+ <link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('jquery.mobile.flip.css') ?>" media="all" />
21
+ */?>
22
+ <link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('iscrollview/jquery.mobile.iscrollview.css') ?>" media="all" />
23
+ <link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('iscrollview/jquery.mobile.iscrollview-pull.css') ?>" media="all" />
24
+
25
+ <link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('style.css') ?>" media="all" />
26
+
27
+
28
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery-1.7.2.min.js') ?>"></script>
29
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery.mobile-1.1.0-patched-listview.min.js') ?>"></script>
30
+
31
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('iscrollview/iscroll.js') ?>"></script>
32
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('iscrollview/jquery.mobile.iscrollview.js') ?>"></script>
33
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('auit/mobile.pull.orders.js') ?>"></script>
34
+
35
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/app.js') ?>"></script>
36
+
37
+
38
+ <?php }
39
+ ?>
40
+ </head>
41
+
42
+ <body>
43
+ <div data-role=page id="home" data-theme=b>
44
+ <div data-role=header data-position=fixed>
45
+ <h1><?php echo $this->__('Magento Admin')?></h1>
46
+ <a data-ajax="false" data-rel="external" class="ui-btn-right" href="<?php echo $this->getUrl('mobile_admin/index/classic')?>" data-theme="e"><?php echo $this->__('Classic') ?></a>
47
+ </div>
48
+ <div data-role=content >
49
+ <div id="messages"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
50
+ <form action="<?php echo $this->getUrl('mobile_admin/index/index');?>" method="POST" >
51
+ <fieldset>
52
+ <label for="username"><?php echo Mage::helper('adminhtml')->__('User Name:') ?></label>
53
+ <input type="text" id="username" name="login[username]" value="" />
54
+ <label for="login"><?php echo Mage::helper('adminhtml')->__('Password:') ?></label>
55
+ <input type="password" id="login" name="login[password]" class="required-entry input-text" value="" />
56
+ <input type="submit" data-role="button" data-inline="true" data-theme="b" value="<?php echo Mage::helper('adminhtml')->__('Login') ?>"/>
57
+ <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey()?>"/>
58
+ </fieldset>
59
+ </form>
60
+ </div>
61
+ <div data-role=footer data-position=fixed>
62
+ <h1 ><a href="http://www.snm-portal.com"><img style="max-height:3em;vertical-align: middle;" src="<?php echo $this->getSkinUrl('images/logo2.png')?>"/><?php echo $this->__('powered by SNM-Portal.com')?></a></h1>
63
+ </div>
64
+ </div>
app/design/adminhtml/default/snm-mobile/template/page/head.phtml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <meta http-equiv="Content-Type" content="<?php echo $this->getContentType() ?>"/>
2
+ <title><?php echo htmlspecialchars(html_entity_decode($this->getTitle())) ?></title>
3
+ <link rel="apple-touch-icon" href="<?php echo $this->getSkinUrl('images/home60.png') ?>" />
4
+ <link rel="icon" href="<?php echo $this->getSkinUrl('images/home.png') ?>" type="image/x-icon"/>
5
+ <link rel="shortcut icon" href="<?php echo $this->getSkinUrl('images/home.png') ?>" type="image/x-icon"/>
6
+ <?php echo $this->getCssJsHtml() ?>
app/design/adminhtml/default/snm-mobile/template/page/header.phtml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <div data-role="header" data-position="fixed" >
2
+ <a href="<?php echo $this->getUrl('adminhtml/dashboard/index')?>" data-icon="home" data-iconpos="notext" title="Home">Home</a>
3
+ <h1><?php echo $this->__('Magento Admin')?></h1>
4
+ <a class="ui-btn-right" href="<?php echo $this->getUrl('mobile_admin/index/logout')?>" ><?php echo $this->__('Log Out') ?></a>
5
+ <div id="messages"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
6
+ </div>
app/design/adminhtml/default/snm-mobile/template/page/header_dlg.phtml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <div data-role="header" data-position="fixed" >
2
+ <a data-role="button" data-rel="back" data-icon="home"><?php echo $this->__('ddddBack')?></a>
3
+ <a href="<?php echo $this->getUrl('adminhtml/dashboard/index')?>" data-icon="home" data-iconpos="notext" title="Home">Home</a>
4
+ <h1><?php echo $this->__('Magento Admin')?></h1>
5
+ <a class="ui-btn-right" href="<?php echo $this->getUrl('mobile_admin/index/logout')?>" data-theme="e"><?php echo $this->__('Log Out') ?></a>
6
+ <div id="messages"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
7
+ </div>
app/etc/modules/XAuIt_MAdmin.xml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <AuIt_MAdmin>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ <depends>
8
+ </depends>
9
+ </AuIt_MAdmin>
10
+ </modules>
11
+ </config>
app/locale/de_DE/AuIt_MAdmin.csv ADDED
@@ -0,0 +1,2 @@
 
 
1
+ "A","A"
2
+
package.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>snm_mobileadminc</name>
4
+ <version>1.6.0</version>
5
+ <stability>stable</stability>
6
+ <license>see snm-portal.com</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>mobileAdmin</summary>
10
+ <description>snm_mobileadminc extension from snm-portal.com</description>
11
+ <notes>No Notes</notes>
12
+ <authors><author><name>snm-portal</name><user>augsten</user><email>develop@snm-portal.com</email></author></authors>
13
+ <date>2012-07-03</date>
14
+ <time>12:43:27</time>
15
+ <contents><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="snm-mobile"><dir name="auit"><file name="mobile.pull.orders.js" hash="c58a43b88e053d5c342a93e412d9b451"/><file name="mobile.hslide.js" hash="833a830527bd031205838afe584af2f1"/><file name="mobile.fullpage.js" hash="6211296d9e8c0bfb29e1a6487ed0d67e"/></dir><file name="jquery.mobile.theme-1.1.0.css" hash="4ecb95acfd97c6f5cfc9cbcd6c1047be"/><dir name="images"><file name="icons-18-white.png" hash="b3da1f56006b8f830af6dde218d72185"/><file name="icons-36-white.png" hash="632ff9bef83adcf1cd745c938a4216af"/><file name="ajax-loader.gif" hash="08a3028fda91d443f4d5e93307c96fcd"/><file name="pager6x6.png" hash="67e81223db7d3ec35e2cfc34aafcb1fc"/><dir name="aboutus"><file name="stocklocator.png" hash="7ef6c92c31513ed55e91c045e5c2d516"/><file name="cms-editor-professional.png" hash="ea781e182d39217985f20c289564af7d"/><file name="box-pdf-invoice.png" hash="15babaed441fb648ca557278188ac952"/></dir><file name="icons-36-black.png" hash="24bde6ae0459e200a2b2ac290787022d"/><file name="icons-18-black.png" hash="f9e3c93059ef0fc1ca1ead499f19d489"/><file name="ajax-loader.png" hash="3bdd7116009b8f7b091b44e5e71a967c"/><file name="home60.png" hash="43163e27fec024f37b3350fecf8354f5"/><file name="home.png" hash="6ebb3f1f752f2be54e9443240d310ff6"/><file name="welcome.png" hash="d147e0b4d7bb2b5d2cae30f83fc857bd"/><file name="logo2.png" hash="d799cec90a6847abbd324bf6dcd0ccc3"/></dir><file name="jquery.mobile.flip.css" hash="9a8229c6a2665e2cf26cae031a913d1b"/><file name="jquery.mobile-1.1.0.css" hash="3dffa535dd27a2d6958142d38a2b658b"/><file name="style.css" hash="7d3696f111ca0a359ea26365a5f12fa1"/><file name="jquery.mobile.theme-1.1.0.min.css" hash="88829c6d6d0daa32e6a707de7c9c4898"/><file name="jquery.mobile.structure-1.1.0.min.css" hash="98c662d9e5d2306c04016e53898bc8fc"/><dir name="js"><file name="jquery.mobile.flip.min.js" hash="562338a6748bb5cdddbd6fa2fb286669"/><file name="jquery.mobile-1.1.0-patched-listview.min.js" hash="56042460e816750a9704c9dd72134b4a"/><file name="jquery.mobile.flip.js" hash="3a194cc46610b41aade49737c5585024"/><file name="MIT-LICENSE.txt" hash="2c4c624f470b4e8dcbdb44adeec95401"/><file name="app.js" hash="65d829aa5d843ae7c4c4a716e8abf29c"/><file name="jquery-1.7.2.min.js" hash="88b9c8df4902811815db2a3a2f3083f8"/><file name="jquery.mobile-1.1.0.js" hash="e6f54f0c1382094f97d433c89db0b29e"/><file name="jquery.mobile-1.1.0.min.js" hash="702b5a3685f5a402f9e57517dc49bfc8"/></dir><file name="jquery.mobile.flip.min.css" hash="80aef5dd3bbb28e9733d7b5b8280a4ac"/><file name="jquery.mobile.structure-1.1.0.css" hash="b7042e92d776e569896ef2a0a9cd6adc"/><dir name="iscrollview"><file name="iscroll-pull-icon@2x.png" hash="a94e463e98ae4bfa2018627c045f5b7d"/><file name="jquery.mobile.iscrollview-pull.css" hash="7d60d0f6717a88275342d50cc4d0c3d7"/><file name="iscroll.js" hash="93d89471b2c0d70087b3c808c6962530"/><file name="jquery.mobile.iscrollview.js" hash="3fe5c18394c10683ab34de8c9e5eef23"/><file name="jquery.mobile.iscrollview.css" hash="4bf1158cd9dc2c22b7fd9a314aa60b20"/></dir><file name="jquery.mobile-1.1.0.min.css" hash="d4b9413583aaec3c1067c0e0bc5e6d1d"/></dir></dir></dir></target><target name="magelocal"><dir name="AuIt"><dir name="MAdmin"><dir name="controllers"><file name="IndexController.php" hash="a5ff78fc0df4332140602a273dada774"/><file name="DashboardController.php" hash="4d6d86a66c798b96645da9beded64662"/><file name="OrdersController.php" hash="e31fe83656656f2f864dc60d9a6e5b73"/><file name="StockController.php" hash="f24a392fe939e25ed36b77ad67a5bf33"/></dir><dir name="Model"><file name="Observer.php" hash="5b1f2cc2f8f5f75b93a50ceb0663cbf5"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Product"><file name="Attribute.php" hash="e0875322e92279f92b6d72a1c6fbeb9e"/></dir></dir></dir><file name="Arraytemplate.php" hash="a6d747e9bd41b84226e371f966ef2f22"/><file name="Idtemplate.php" hash="b3d2b0f07d040bdaeb9fe93352c6f4fc"/></dir><dir name="Config"><file name="Arraytemplate.php" hash="43599a4645886418c525e96485ba564c"/><file name="Idtemplate.php" hash="d27bdb98f1cea5f7f8be2c22eb3910b6"/></dir><file name="Session.php" hash="0d358809d6ea3a70103539bd1e791220"/></dir><dir name="Helper"><file name="Arrayconfig.php" hash="9d3cb47bc1c8a4fde8e69c3db63c1212"/><file name="Data.php" hash="01083d01b31005fd601a653435363ce1"/><file name="Config.php" hash="1fef5fce6ab2680859782139b3e5ff06"/></dir><dir name="etc"><file name="system.xml" hash="4f32b41af8bbb055ee03fcb648308e34"/><file name="config.xml" hash="0a8eaadafd5cda51f7f2754051061a48"/><file name="adminhtml.xml" hash="fc8d48fa63cfcd0928b52d553e4fbfb3"/><file name="history.xml" hash="6c0c1f01934662aaa20e502de3d9d0e2"/></dir><dir name="Block"><file name="Orders.php" hash="096e2c3ab98973bcab44c952f943841c"/><file name="Stock.php" hash="3d61e59f3ad779af458ae861d3d668a4"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="snm-mobile"><dir name="layout"><file name="auit_madmin.xml" hash="7909ed2594d9e0788a6ea8a6192d5a91"/></dir><dir name="template"><dir name="auit"><dir name="madmin"><file name="stock.phtml" hash="814701e7ef7208983ecb69597a15d5c9"/><file name="orders.phtml" hash="2b04636cbf1ee459f4c650487461a38a"/><file name="page_dlg.phtml" hash="70a71163b6d21d9eeb46f1c5a89c2198"/><file name="aboutus.phtml" hash="9c2567d9f6c1160487d5b907addf9542"/><file name="test.phtml" hash="c09303a7e265156781bac54bd14c6b33"/><file name="dashboard.phtml" hash="a77f1df7ee961b4d7372e3b098727b66"/><file name="page.phtml" hash="c76d85f8a6c2132057be9432f2ab0229"/><dir name="orders"><file name="orders_dialog.phtml" hash="99584fd66b979f4ccf98e03d4466078f"/><file name="items.phtml" hash="d791b939bc23b44070b6b516f76ab1b0"/><file name="show.phtml" hash="9cbed9bcb0f926eabf1c803eecf13e27"/></dir><dir name="renderer"><file name="array_date.phtml" hash="1387ef94e7178d7f6d0ef150597d6fb2"/><file name="array.phtml" hash="d9b4eb7a36418ee84e80a6e1aaf215ab"/></dir></dir></dir><file name="login.phtml" hash="87fffd815d8623fe24657b0acbc1a103"/><dir name="dashboard"><file name="index.phtml" hash="f76bc0b523de7d821fda8c2d8c83ebb5"/><file name="grid.phtml" hash="2a984f63408a57bab977f6645e3428b7"/><file name="salebar.phtml" hash="3a9c22e6102da5354690b1a56d2d08a5"/></dir><dir name="page"><file name="header_dlg.phtml" hash="7004aeb5c016ddaeb885ae83a6fe60de"/><file name="header.phtml" hash="8276f9ed63a4be1fcd60bad89bb05472"/><file name="head.phtml" hash="b7cb85231d1a7f166114c6c4d5bee466"/></dir></dir></dir><dir name="default"><dir name="layout"><file name="auit_madmin.xml" hash="ddf806ffbea95d30848d2649d62eab2f"/></dir><dir name="template"><dir name="auit"><dir name="madmin"><dir name="renderer"><file name="array_date.phtml" hash="1387ef94e7178d7f6d0ef150597d6fb2"/><file name="array.phtml" hash="d9b4eb7a36418ee84e80a6e1aaf215ab"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="XAuIt_MAdmin.xml" hash="2b776513e4c39cc5246149a33073bf06"/></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies>
18
+ <required>
19
+ <php><min>5.2.0</min><max>6.0.0</max></php>
20
+ </required>
21
+ </dependencies>
22
+ </package>
skin/adminhtml/default/snm-mobile/auit/mobile.fullpage.js ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($,window){
2
+ $.widget("mobile.auitfullpage",$.mobile.widget,{
3
+ wallpaper: undefined,
4
+ content: undefined,
5
+ fixedHeightSelector: ":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='contentinfo')",
6
+ _init: function() {
7
+ var self = this;
8
+ $(window).bind("resize orientationchange", function(event) {
9
+ self.resizePane();
10
+ });
11
+ $( document ).ready( function( ){
12
+ self.resizePane();
13
+ });
14
+ },
15
+ calculateBarsHeight:function(page) {
16
+ var barsHeight = 0,
17
+ $barsInPage = page.find(this.fixedHeightSelector);
18
+
19
+ $barsInPage.each(function() {
20
+ barsHeight += $(this).outerHeight(true);
21
+ });
22
+ return barsHeight;
23
+ },
24
+ resizePane: function() {
25
+ var page = this.element.parents(':jqmData(role="page")');
26
+ var newWrapperHeight,viewportHeight,barsHeight;
27
+ page.trigger("updatelayout");
28
+ viewportHeight = $(window).height();
29
+ barsHeight = this.calculateBarsHeight(page);
30
+ newWrapperHeight =
31
+ viewportHeight -
32
+ barsHeight // Height of fixed bars or "other stuff" outside of the wrapper
33
+ // (IsMobileSafari && !IsIPad ? 60 : 0) + // Add 60px for space recovered from Mobile Safari address bar
34
+ ; // User-supplied fudge-factor if needed
35
+ /**
36
+ this.element.css({
37
+ "padding": "0px",
38
+ "height": newWrapperHeight,
39
+ "overflow": 'hidden'
40
+ });
41
+ **/
42
+ this.element.css({
43
+ "height": newWrapperHeight,
44
+ });
45
+ this.element.addClass('auit-fullpage');
46
+
47
+ }
48
+ });
49
+
50
+ $( ":jqmData(role='page')" ).live( "pagecreate", function() {
51
+ $( ":jqmData(auit-fullpage)", this ).each(function() {
52
+ $(this).auitfullpage();
53
+ });
54
+ });
55
+
56
+
57
+ $.mobile.page.prototype.options.addBackBtn = true;
58
+ }) (jQuery,this);
skin/adminhtml/default/snm-mobile/auit/mobile.hslide.js ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($,window){
2
+ $.widget("mobile.auitswipe",$.mobile.widget,{
3
+ curPage: 0,
4
+ _init: function() {
5
+ var self = this;
6
+ //var THIS = $(this),page = THIS.parents(":jqmData(role='page')");
7
+ this.element.bind('swiperight', function (e) {
8
+
9
+ self.scrollTo(self.curPage-1);
10
+ e.stopImmediatePropagation();
11
+ return false;
12
+ });
13
+ this.element.bind('swipeleft', function (e) {
14
+ self.scrollTo(self.curPage+1);
15
+ e.stopImmediatePropagation();
16
+ return false;
17
+ });
18
+ $(window).bind("resize orientationchange", function(event) {
19
+ self.resizePane();
20
+ });
21
+ $( document ).ready( function( ){
22
+ self.resizePane();
23
+ });
24
+ },
25
+ scrollTo:function(curPage)
26
+ {
27
+ var wrapper = this.element.children(":first");
28
+ if ( curPage < 0 ) curPage = 0;
29
+ var w = this.element.width();
30
+ var w2 = wrapper.width();
31
+ var p = curPage*w;
32
+ if ( p >= w2 ) {
33
+ p=0;
34
+ curPage=0;
35
+ }
36
+ this.curPage=curPage;
37
+ wrapper.stop().animate({'left':'-'+p+'px'});
38
+ return curPage;
39
+ },
40
+ resizePane: function() {
41
+ var w = this.element.width();
42
+ var wrapper = this.element.children(":first");
43
+ wrapper.children().css('width',w+'px');
44
+ }
45
+ });
46
+
47
+ $( ":jqmData(role='page')" ).live( "pagecreate", function() {
48
+ $( ":jqmData(auit-swipe)", this ).each(function() {
49
+ $(this).auitswipe();
50
+ });
51
+ });
52
+
53
+ }) (jQuery,this);
skin/adminhtml/default/snm-mobile/auit/mobile.pull.orders.js ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function pullPagePullImplementation($) {
2
+ "use strict";
3
+ var currentPage = 1,
4
+ listSelector = "div.pull-orders-page ul.ui-listview",
5
+ lastItemSelector = listSelector + " > li:last-child";
6
+
7
+ function onPullUp (event, data) {
8
+ var url = $(this).attr('data-auit-url');
9
+ var iscrollview = data.iscrollview;
10
+ jQuery.ajax({
11
+ type: "GET",
12
+ url: url+'?p='+(++currentPage),
13
+ cache: false,
14
+ //data: formData,
15
+ success: function(data, status){
16
+ $(listSelector).append(data).listview("refresh");
17
+ /*
18
+ iscrollview.refresh(null, null,
19
+ $.proxy(function afterRefreshCallback(iscrollview) {
20
+ this.scrollToElement(lastItemSelector, 400);
21
+ }, iscrollview) );
22
+ */
23
+ iscrollview.refresh();
24
+ },
25
+ error: function(data, status)
26
+ {
27
+ alert ( "fail:"+status);
28
+
29
+ }
30
+ });
31
+ }
32
+
33
+ // Set-up jQuery event callbacks
34
+ $(document).delegate("#auit_madmin_orders_index", "pageinit",
35
+ function bindPullPagePullCallbacks(event) {
36
+ $(".iscroll-wrapper", this).bind( {
37
+ // iscroll_onpulldown : onPullDown,
38
+ iscroll_onpullup : onPullUp
39
+ } );
40
+ } );
41
+
42
+ }(jQuery));
skin/adminhtml/default/snm-mobile/images/aboutus/box-pdf-invoice.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/images/aboutus/cms-editor-professional.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/images/aboutus/stocklocator.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/images/ajax-loader.gif ADDED
Binary file
skin/adminhtml/default/snm-mobile/images/ajax-loader.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/images/home.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/images/home60.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/images/icons-18-black.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/images/icons-18-white.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/images/icons-36-black.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/images/icons-36-white.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/images/logo2.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/images/pager6x6.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/images/welcome.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/iscrollview/iscroll-pull-icon@2x.png ADDED
Binary file
skin/adminhtml/default/snm-mobile/iscrollview/iscroll.js ADDED
@@ -0,0 +1,1080 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * iScroll v4.1.9 ~ Copyright (c) 2011 Matteo Spinelli, http://cubiq.org
3
+ * Released under MIT license, http://cubiq.org/license
4
+ */
5
+ (function(){
6
+ var m = Math,
7
+ mround = function (r) { return r >> 0; },
8
+ vendor = (/webkit/i).test(navigator.appVersion) ? 'webkit' :
9
+ (/firefox/i).test(navigator.userAgent) ? 'Moz' :
10
+ (/trident/i).test(navigator.userAgent) ? 'ms' :
11
+ 'opera' in window ? 'O' : '',
12
+
13
+ // Browser capabilities
14
+ isAndroid = (/android/gi).test(navigator.appVersion),
15
+ isIDevice = (/iphone|ipad/gi).test(navigator.appVersion),
16
+ isPlaybook = (/playbook/gi).test(navigator.appVersion),
17
+ isTouchPad = (/hp-tablet/gi).test(navigator.appVersion),
18
+
19
+ has3d = 'WebKitCSSMatrix' in window && 'm11' in new WebKitCSSMatrix(),
20
+ hasTouch = 'ontouchstart' in window && !isTouchPad,
21
+ hasTransform = vendor + 'Transform' in document.documentElement.style,
22
+ hasTransitionEnd = isIDevice || isPlaybook,
23
+
24
+ nextFrame = (function() {
25
+ return window.requestAnimationFrame
26
+ || window.webkitRequestAnimationFrame
27
+ || window.mozRequestAnimationFrame
28
+ || window.oRequestAnimationFrame
29
+ || window.msRequestAnimationFrame
30
+ || function(callback) { return setTimeout(callback, 1); };
31
+ })(),
32
+ cancelFrame = (function () {
33
+ return window.cancelRequestAnimationFrame
34
+ || window.webkitCancelAnimationFrame
35
+ || window.webkitCancelRequestAnimationFrame
36
+ || window.mozCancelRequestAnimationFrame
37
+ || window.oCancelRequestAnimationFrame
38
+ || window.msCancelRequestAnimationFrame
39
+ || clearTimeout;
40
+ })(),
41
+
42
+ // Events
43
+ RESIZE_EV = 'onorientationchange' in window ? 'orientationchange' : 'resize',
44
+ START_EV = hasTouch ? 'touchstart' : 'mousedown',
45
+ MOVE_EV = hasTouch ? 'touchmove' : 'mousemove',
46
+ END_EV = hasTouch ? 'touchend' : 'mouseup',
47
+ CANCEL_EV = hasTouch ? 'touchcancel' : 'mouseup',
48
+ WHEEL_EV = vendor == 'Moz' ? 'DOMMouseScroll' : 'mousewheel',
49
+
50
+ // Helpers
51
+ trnOpen = 'translate' + (has3d ? '3d(' : '('),
52
+ trnClose = has3d ? ',0)' : ')',
53
+
54
+ // Constructor
55
+ iScroll = function (el, options) {
56
+ var that = this,
57
+ doc = document,
58
+ i;
59
+
60
+ that.wrapper = typeof el == 'object' ? el : doc.getElementById(el);
61
+ that.wrapper.style.overflow = 'hidden';
62
+ that.scroller = that.wrapper.children[0];
63
+
64
+ // Default options
65
+ that.options = {
66
+ hScroll: true,
67
+ vScroll: true,
68
+ x: 0,
69
+ y: 0,
70
+ bounce: true,
71
+ bounceLock: false,
72
+ momentum: true,
73
+ lockDirection: true,
74
+ useTransform: true,
75
+ useTransition: false,
76
+ topOffset: 0,
77
+ checkDOMChanges: false, // Experimental
78
+
79
+ // Scrollbar
80
+ hScrollbar: true,
81
+ vScrollbar: true,
82
+ fixedScrollbar: isAndroid,
83
+ hideScrollbar: isIDevice,
84
+ fadeScrollbar: isIDevice && has3d,
85
+ scrollbarClass: '',
86
+
87
+ // Zoom
88
+ zoom: false,
89
+ zoomMin: 1,
90
+ zoomMax: 4,
91
+ doubleTapZoom: 2,
92
+ wheelAction: 'scroll',
93
+
94
+ // Snap
95
+ snap: false,
96
+ snapThreshold: 1,
97
+
98
+ // Events
99
+ onRefresh: null,
100
+ onBeforeScrollStart: function (e) { e.preventDefault(); },
101
+ onScrollStart: null,
102
+ onBeforeScrollMove: null,
103
+ onScrollMove: null,
104
+ onBeforeScrollEnd: null,
105
+ onScrollEnd: null,
106
+ onTouchEnd: null,
107
+ onDestroy: null,
108
+ onZoomStart: null,
109
+ onZoom: null,
110
+ onZoomEnd: null
111
+ };
112
+
113
+ // User defined options
114
+ for (i in options) that.options[i] = options[i];
115
+
116
+ // Set starting position
117
+ that.x = that.options.x;
118
+ that.y = that.options.y;
119
+
120
+ // Normalize options
121
+ that.options.useTransform = hasTransform ? that.options.useTransform : false;
122
+ that.options.hScrollbar = that.options.hScroll && that.options.hScrollbar;
123
+ that.options.vScrollbar = that.options.vScroll && that.options.vScrollbar;
124
+ that.options.zoom = that.options.useTransform && that.options.zoom;
125
+ that.options.useTransition = hasTransitionEnd && that.options.useTransition;
126
+
127
+ // Helpers FIX ANDROID BUG!
128
+ // translate3d and scale doesn't work together!
129
+ // Ignoring 3d ONLY WHEN YOU SET that.options.zoom
130
+ if ( that.options.zoom && isAndroid ){
131
+ trnOpen = 'translate(';
132
+ trnClose = ')';
133
+ }
134
+
135
+ // Set some default styles
136
+ that.scroller.style[vendor + 'TransitionProperty'] = that.options.useTransform ? '-' + vendor.toLowerCase() + '-transform' : 'top left';
137
+ that.scroller.style[vendor + 'TransitionDuration'] = '0';
138
+ that.scroller.style[vendor + 'TransformOrigin'] = '0 0';
139
+ if (that.options.useTransition) that.scroller.style[vendor + 'TransitionTimingFunction'] = 'cubic-bezier(0.33,0.66,0.66,1)';
140
+
141
+ if (that.options.useTransform) that.scroller.style[vendor + 'Transform'] = trnOpen + that.x + 'px,' + that.y + 'px' + trnClose;
142
+ else that.scroller.style.cssText += ';position:absolute;top:' + that.y + 'px;left:' + that.x + 'px';
143
+
144
+ if (that.options.useTransition) that.options.fixedScrollbar = true;
145
+
146
+ that.refresh();
147
+
148
+ that._bind(RESIZE_EV, window);
149
+ that._bind(START_EV);
150
+ if (!hasTouch) {
151
+ that._bind('mouseout', that.wrapper);
152
+ if (that.options.wheelAction != 'none')
153
+ that._bind(WHEEL_EV);
154
+ }
155
+
156
+ if (that.options.checkDOMChanges) that.checkDOMTime = setInterval(function () {
157
+ that._checkDOMChanges();
158
+ }, 500);
159
+ };
160
+
161
+ // Prototype
162
+ iScroll.prototype = {
163
+ enabled: true,
164
+ x: 0,
165
+ y: 0,
166
+ steps: [],
167
+ scale: 1,
168
+ currPageX: 0, currPageY: 0,
169
+ pagesX: [], pagesY: [],
170
+ aniTime: null,
171
+ wheelZoomCount: 0,
172
+
173
+ handleEvent: function (e) {
174
+ var that = this;
175
+ switch(e.type) {
176
+ case START_EV:
177
+ if (!hasTouch && e.button !== 0) return;
178
+ that._start(e);
179
+ break;
180
+ case MOVE_EV: that._move(e); break;
181
+ case END_EV:
182
+ case CANCEL_EV: that._end(e); break;
183
+ case RESIZE_EV: that._resize(); break;
184
+ case WHEEL_EV: that._wheel(e); break;
185
+ case 'mouseout': that._mouseout(e); break;
186
+ case 'webkitTransitionEnd': that._transitionEnd(e); break;
187
+ }
188
+ },
189
+
190
+ _checkDOMChanges: function () {
191
+ if (this.moved || this.zoomed || this.animating ||
192
+ (this.scrollerW == this.scroller.offsetWidth * this.scale && this.scrollerH == this.scroller.offsetHeight * this.scale)) return;
193
+
194
+ this.refresh();
195
+ },
196
+
197
+ _scrollbar: function (dir) {
198
+ var that = this,
199
+ doc = document,
200
+ bar;
201
+
202
+ if (!that[dir + 'Scrollbar']) {
203
+ if (that[dir + 'ScrollbarWrapper']) {
204
+ if (hasTransform) that[dir + 'ScrollbarIndicator'].style[vendor + 'Transform'] = '';
205
+ that[dir + 'ScrollbarWrapper'].parentNode.removeChild(that[dir + 'ScrollbarWrapper']);
206
+ that[dir + 'ScrollbarWrapper'] = null;
207
+ that[dir + 'ScrollbarIndicator'] = null;
208
+ }
209
+
210
+ return;
211
+ }
212
+
213
+ if (!that[dir + 'ScrollbarWrapper']) {
214
+ // Create the scrollbar wrapper
215
+ bar = doc.createElement('div');
216
+
217
+ if (that.options.scrollbarClass) bar.className = that.options.scrollbarClass + dir.toUpperCase();
218
+ else bar.style.cssText = 'position:absolute;z-index:100;' + (dir == 'h' ? 'height:7px;bottom:1px;left:2px;right:' + (that.vScrollbar ? '7' : '2') + 'px' : 'width:7px;bottom:' + (that.hScrollbar ? '7' : '2') + 'px;top:2px;right:1px');
219
+
220
+ bar.style.cssText += ';pointer-events:none;-' + vendor + '-transition-property:opacity;-' + vendor + '-transition-duration:' + (that.options.fadeScrollbar ? '350ms' : '0') + ';overflow:hidden;opacity:' + (that.options.hideScrollbar ? '0' : '1');
221
+
222
+ that.wrapper.appendChild(bar);
223
+ that[dir + 'ScrollbarWrapper'] = bar;
224
+
225
+ // Create the scrollbar indicator
226
+ bar = doc.createElement('div');
227
+ if (!that.options.scrollbarClass) {
228
+ bar.style.cssText = 'position:absolute;z-index:100;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);-' + vendor + '-background-clip:padding-box;-' + vendor + '-box-sizing:border-box;' + (dir == 'h' ? 'height:100%' : 'width:100%') + ';-' + vendor + '-border-radius:3px;border-radius:3px';
229
+ }
230
+ bar.style.cssText += ';pointer-events:none;-' + vendor + '-transition-property:-' + vendor + '-transform;-' + vendor + '-transition-timing-function:cubic-bezier(0.33,0.66,0.66,1);-' + vendor + '-transition-duration:0;-' + vendor + '-transform:' + trnOpen + '0,0' + trnClose;
231
+ if (that.options.useTransition) bar.style.cssText += ';-' + vendor + '-transition-timing-function:cubic-bezier(0.33,0.66,0.66,1)';
232
+
233
+ that[dir + 'ScrollbarWrapper'].appendChild(bar);
234
+ that[dir + 'ScrollbarIndicator'] = bar;
235
+ }
236
+
237
+ if (dir == 'h') {
238
+ that.hScrollbarSize = that.hScrollbarWrapper.clientWidth;
239
+ that.hScrollbarIndicatorSize = m.max(mround(that.hScrollbarSize * that.hScrollbarSize / that.scrollerW), 8);
240
+ that.hScrollbarIndicator.style.width = that.hScrollbarIndicatorSize + 'px';
241
+ that.hScrollbarMaxScroll = that.hScrollbarSize - that.hScrollbarIndicatorSize;
242
+ that.hScrollbarProp = that.hScrollbarMaxScroll / that.maxScrollX;
243
+ } else {
244
+ that.vScrollbarSize = that.vScrollbarWrapper.clientHeight;
245
+ that.vScrollbarIndicatorSize = m.max(mround(that.vScrollbarSize * that.vScrollbarSize / that.scrollerH), 8);
246
+ that.vScrollbarIndicator.style.height = that.vScrollbarIndicatorSize + 'px';
247
+ that.vScrollbarMaxScroll = that.vScrollbarSize - that.vScrollbarIndicatorSize;
248
+ that.vScrollbarProp = that.vScrollbarMaxScroll / that.maxScrollY;
249
+ }
250
+
251
+ // Reset position
252
+ that._scrollbarPos(dir, true);
253
+ },
254
+
255
+ _resize: function () {
256
+ var that = this;
257
+ setTimeout(function () { that.refresh(); }, isAndroid ? 200 : 0);
258
+ },
259
+
260
+ _pos: function (x, y) {
261
+ if (this.zoomed) return;
262
+
263
+ x = this.hScroll ? x : 0;
264
+ y = this.vScroll ? y : 0;
265
+
266
+ if (this.options.useTransform) {
267
+ this.scroller.style[vendor + 'Transform'] = trnOpen + x + 'px,' + y + 'px' + trnClose + ' scale(' + this.scale + ')';
268
+ } else {
269
+ x = mround(x);
270
+ y = mround(y);
271
+ this.scroller.style.left = x + 'px';
272
+ this.scroller.style.top = y + 'px';
273
+ }
274
+
275
+ this.x = x;
276
+ this.y = y;
277
+
278
+ this._scrollbarPos('h');
279
+ this._scrollbarPos('v');
280
+ },
281
+
282
+ _scrollbarPos: function (dir, hidden) {
283
+ var that = this,
284
+ pos = dir == 'h' ? that.x : that.y,
285
+ size;
286
+
287
+ if (!that[dir + 'Scrollbar']) return;
288
+
289
+ pos = that[dir + 'ScrollbarProp'] * pos;
290
+
291
+ if (pos < 0) {
292
+ if (!that.options.fixedScrollbar) {
293
+ size = that[dir + 'ScrollbarIndicatorSize'] + mround(pos * 3);
294
+ if (size < 8) size = 8;
295
+ that[dir + 'ScrollbarIndicator'].style[dir == 'h' ? 'width' : 'height'] = size + 'px';
296
+ }
297
+ pos = 0;
298
+ } else if (pos > that[dir + 'ScrollbarMaxScroll']) {
299
+ if (!that.options.fixedScrollbar) {
300
+ size = that[dir + 'ScrollbarIndicatorSize'] - mround((pos - that[dir + 'ScrollbarMaxScroll']) * 3);
301
+ if (size < 8) size = 8;
302
+ that[dir + 'ScrollbarIndicator'].style[dir == 'h' ? 'width' : 'height'] = size + 'px';
303
+ pos = that[dir + 'ScrollbarMaxScroll'] + (that[dir + 'ScrollbarIndicatorSize'] - size);
304
+ } else {
305
+ pos = that[dir + 'ScrollbarMaxScroll'];
306
+ }
307
+ }
308
+
309
+ that[dir + 'ScrollbarWrapper'].style[vendor + 'TransitionDelay'] = '0';
310
+ that[dir + 'ScrollbarWrapper'].style.opacity = hidden && that.options.hideScrollbar ? '0' : '1';
311
+ that[dir + 'ScrollbarIndicator'].style[vendor + 'Transform'] = trnOpen + (dir == 'h' ? pos + 'px,0' : '0,' + pos + 'px') + trnClose;
312
+ },
313
+
314
+ _start: function (e) {
315
+ var that = this,
316
+ point = hasTouch ? e.touches[0] : e,
317
+ matrix, x, y,
318
+ c1, c2;
319
+
320
+ if (!that.enabled) return;
321
+
322
+ if (that.options.onBeforeScrollStart) that.options.onBeforeScrollStart.call(that, e);
323
+
324
+ if (that.options.useTransition || that.options.zoom) that._transitionTime(0);
325
+
326
+ that.moved = false;
327
+ that.animating = false;
328
+ that.zoomed = false;
329
+ that.distX = 0;
330
+ that.distY = 0;
331
+ that.absDistX = 0;
332
+ that.absDistY = 0;
333
+ that.dirX = 0;
334
+ that.dirY = 0;
335
+
336
+ // Gesture start
337
+ if (that.options.zoom && hasTouch && e.touches.length > 1) {
338
+ c1 = m.abs(e.touches[0].pageX-e.touches[1].pageX);
339
+ c2 = m.abs(e.touches[0].pageY-e.touches[1].pageY);
340
+ that.touchesDistStart = m.sqrt(c1 * c1 + c2 * c2);
341
+
342
+ that.originX = m.abs(e.touches[0].pageX + e.touches[1].pageX - that.wrapperOffsetLeft * 2) / 2 - that.x;
343
+ that.originY = m.abs(e.touches[0].pageY + e.touches[1].pageY - that.wrapperOffsetTop * 2) / 2 - that.y;
344
+
345
+ if (that.options.onZoomStart) that.options.onZoomStart.call(that, e);
346
+ }
347
+
348
+ if (that.options.momentum) {
349
+ if (that.options.useTransform) {
350
+ // Very lame general purpose alternative to CSSMatrix
351
+ matrix = getComputedStyle(that.scroller, null)[vendor + 'Transform'].replace(/[^0-9-.,]/g, '').split(',');
352
+ x = matrix[4] * 1;
353
+ y = matrix[5] * 1;
354
+ } else {
355
+ x = getComputedStyle(that.scroller, null).left.replace(/[^0-9-]/g, '') * 1;
356
+ y = getComputedStyle(that.scroller, null).top.replace(/[^0-9-]/g, '') * 1;
357
+ }
358
+
359
+ if (x != that.x || y != that.y) {
360
+ if (that.options.useTransition) that._unbind('webkitTransitionEnd');
361
+ else cancelFrame(that.aniTime);
362
+ that.steps = [];
363
+ that._pos(x, y);
364
+ }
365
+ }
366
+
367
+ that.absStartX = that.x; // Needed by snap threshold
368
+ that.absStartY = that.y;
369
+
370
+ that.startX = that.x;
371
+ that.startY = that.y;
372
+ that.pointX = point.pageX;
373
+ that.pointY = point.pageY;
374
+
375
+ that.startTime = e.timeStamp || Date.now();
376
+
377
+ if (that.options.onScrollStart) that.options.onScrollStart.call(that, e);
378
+
379
+ that._bind(MOVE_EV);
380
+ that._bind(END_EV);
381
+ that._bind(CANCEL_EV);
382
+ },
383
+
384
+ _move: function (e) {
385
+ var that = this,
386
+ point = hasTouch ? e.touches[0] : e,
387
+ deltaX = point.pageX - that.pointX,
388
+ deltaY = point.pageY - that.pointY,
389
+ newX = that.x + deltaX,
390
+ newY = that.y + deltaY,
391
+ c1, c2, scale,
392
+ timestamp = e.timeStamp || Date.now();
393
+
394
+ if (that.options.onBeforeScrollMove) that.options.onBeforeScrollMove.call(that, e);
395
+
396
+ // Zoom
397
+ if (that.options.zoom && hasTouch && e.touches.length > 1) {
398
+ c1 = m.abs(e.touches[0].pageX - e.touches[1].pageX);
399
+ c2 = m.abs(e.touches[0].pageY - e.touches[1].pageY);
400
+ that.touchesDist = m.sqrt(c1*c1+c2*c2);
401
+
402
+ that.zoomed = true;
403
+
404
+ scale = 1 / that.touchesDistStart * that.touchesDist * this.scale;
405
+
406
+ if (scale < that.options.zoomMin) scale = 0.5 * that.options.zoomMin * Math.pow(2.0, scale / that.options.zoomMin);
407
+ else if (scale > that.options.zoomMax) scale = 2.0 * that.options.zoomMax * Math.pow(0.5, that.options.zoomMax / scale);
408
+
409
+ that.lastScale = scale / this.scale;
410
+
411
+ newX = this.originX - this.originX * that.lastScale + this.x,
412
+ newY = this.originY - this.originY * that.lastScale + this.y;
413
+
414
+ this.scroller.style[vendor + 'Transform'] = trnOpen + newX + 'px,' + newY + 'px' + trnClose + ' scale(' + scale + ')';
415
+
416
+ if (that.options.onZoom) that.options.onZoom.call(that, e);
417
+ return;
418
+ }
419
+
420
+ that.pointX = point.pageX;
421
+ that.pointY = point.pageY;
422
+
423
+ // Slow down if outside of the boundaries
424
+ if (newX > 0 || newX < that.maxScrollX) {
425
+ newX = that.options.bounce ? that.x + (deltaX / 2) : newX >= 0 || that.maxScrollX >= 0 ? 0 : that.maxScrollX;
426
+ }
427
+ if (newY > that.minScrollY || newY < that.maxScrollY) {
428
+ newY = that.options.bounce ? that.y + (deltaY / 2) : newY >= that.minScrollY || that.maxScrollY >= 0 ? that.minScrollY : that.maxScrollY;
429
+ }
430
+
431
+ that.distX += deltaX;
432
+ that.distY += deltaY;
433
+ that.absDistX = m.abs(that.distX);
434
+ that.absDistY = m.abs(that.distY);
435
+
436
+ if (that.absDistX < 6 && that.absDistY < 6) {
437
+ return;
438
+ }
439
+
440
+ // Lock direction
441
+ if (that.options.lockDirection) {
442
+ if (that.absDistX > that.absDistY + 5) {
443
+ newY = that.y;
444
+ deltaY = 0;
445
+ } else if (that.absDistY > that.absDistX + 5) {
446
+ newX = that.x;
447
+ deltaX = 0;
448
+ }
449
+ }
450
+
451
+ that.moved = true;
452
+ that._pos(newX, newY);
453
+ that.dirX = deltaX > 0 ? -1 : deltaX < 0 ? 1 : 0;
454
+ that.dirY = deltaY > 0 ? -1 : deltaY < 0 ? 1 : 0;
455
+
456
+ if (timestamp - that.startTime > 300) {
457
+ that.startTime = timestamp;
458
+ that.startX = that.x;
459
+ that.startY = that.y;
460
+ }
461
+
462
+ if (that.options.onScrollMove) that.options.onScrollMove.call(that, e);
463
+ },
464
+
465
+ _end: function (e) {
466
+ if (hasTouch && e.touches.length != 0) return;
467
+
468
+ var that = this,
469
+ point = hasTouch ? e.changedTouches[0] : e,
470
+ target, ev,
471
+ momentumX = { dist:0, time:0 },
472
+ momentumY = { dist:0, time:0 },
473
+ duration = (e.timeStamp || Date.now()) - that.startTime,
474
+ newPosX = that.x,
475
+ newPosY = that.y,
476
+ distX, distY,
477
+ newDuration,
478
+ snap,
479
+ scale;
480
+
481
+ that._unbind(MOVE_EV);
482
+ that._unbind(END_EV);
483
+ that._unbind(CANCEL_EV);
484
+
485
+ if (that.options.onBeforeScrollEnd) that.options.onBeforeScrollEnd.call(that, e);
486
+
487
+ if (that.zoomed) {
488
+ scale = that.scale * that.lastScale;
489
+ scale = Math.max(that.options.zoomMin, scale);
490
+ scale = Math.min(that.options.zoomMax, scale);
491
+ that.lastScale = scale / that.scale;
492
+ that.scale = scale;
493
+
494
+ that.x = that.originX - that.originX * that.lastScale + that.x;
495
+ that.y = that.originY - that.originY * that.lastScale + that.y;
496
+
497
+ that.scroller.style[vendor + 'TransitionDuration'] = '200ms';
498
+ that.scroller.style[vendor + 'Transform'] = trnOpen + that.x + 'px,' + that.y + 'px' + trnClose + ' scale(' + that.scale + ')';
499
+
500
+ that.zoomed = false;
501
+ that.refresh();
502
+
503
+ if (that.options.onZoomEnd) that.options.onZoomEnd.call(that, e);
504
+ return;
505
+ }
506
+
507
+ if (!that.moved) {
508
+ if (hasTouch) {
509
+ if (that.doubleTapTimer && that.options.zoom) {
510
+ // Double tapped
511
+ clearTimeout(that.doubleTapTimer);
512
+ that.doubleTapTimer = null;
513
+ if (that.options.onZoomStart) that.options.onZoomStart.call(that, e);
514
+ that.zoom(that.pointX, that.pointY, that.scale == 1 ? that.options.doubleTapZoom : 1);
515
+ if (that.options.onZoomEnd) {
516
+ setTimeout(function() {
517
+ that.options.onZoomEnd.call(that, e);
518
+ }, 200); // 200 is default zoom duration
519
+ }
520
+ } else {
521
+ that.doubleTapTimer = setTimeout(function () {
522
+ that.doubleTapTimer = null;
523
+
524
+ // Find the last touched element
525
+ target = point.target;
526
+ while (target.nodeType != 1) target = target.parentNode;
527
+
528
+ if (target.tagName != 'SELECT' && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA') {
529
+ ev = document.createEvent('MouseEvents');
530
+ ev.initMouseEvent('click', true, true, e.view, 1,
531
+ point.screenX, point.screenY, point.clientX, point.clientY,
532
+ e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,
533
+ 0, null);
534
+ ev._fake = true;
535
+ target.dispatchEvent(ev);
536
+ }
537
+ }, that.options.zoom ? 250 : 0);
538
+ }
539
+ }
540
+
541
+ that._resetPos(200);
542
+
543
+ if (that.options.onTouchEnd) that.options.onTouchEnd.call(that, e);
544
+ return;
545
+ }
546
+
547
+ if (duration < 300 && that.options.momentum) {
548
+ momentumX = newPosX ? that._momentum(newPosX - that.startX, duration, -that.x, that.scrollerW - that.wrapperW + that.x, that.options.bounce ? that.wrapperW : 0) : momentumX;
549
+ momentumY = newPosY ? that._momentum(newPosY - that.startY, duration, -that.y, (that.maxScrollY < 0 ? that.scrollerH - that.wrapperH + that.y - that.minScrollY : 0), that.options.bounce ? that.wrapperH : 0) : momentumY;
550
+
551
+ newPosX = that.x + momentumX.dist;
552
+ newPosY = that.y + momentumY.dist;
553
+
554
+ if ((that.x > 0 && newPosX > 0) || (that.x < that.maxScrollX && newPosX < that.maxScrollX)) momentumX = { dist:0, time:0 };
555
+ if ((that.y > that.minScrollY && newPosY > that.minScrollY) || (that.y < that.maxScrollY && newPosY < that.maxScrollY)) momentumY = { dist:0, time:0 };
556
+ }
557
+
558
+ if (momentumX.dist || momentumY.dist) {
559
+ newDuration = m.max(m.max(momentumX.time, momentumY.time), 10);
560
+
561
+ // Do we need to snap?
562
+ if (that.options.snap) {
563
+ distX = newPosX - that.absStartX;
564
+ distY = newPosY - that.absStartY;
565
+ if (m.abs(distX) < that.options.snapThreshold && m.abs(distY) < that.options.snapThreshold) { that.scrollTo(that.absStartX, that.absStartY, 200); }
566
+ else {
567
+ snap = that._snap(newPosX, newPosY);
568
+ newPosX = snap.x;
569
+ newPosY = snap.y;
570
+ newDuration = m.max(snap.time, newDuration);
571
+ }
572
+ }
573
+
574
+ that.scrollTo(mround(newPosX), mround(newPosY), newDuration);
575
+
576
+ if (that.options.onTouchEnd) that.options.onTouchEnd.call(that, e);
577
+ return;
578
+ }
579
+
580
+ // Do we need to snap?
581
+ if (that.options.snap) {
582
+ distX = newPosX - that.absStartX;
583
+ distY = newPosY - that.absStartY;
584
+ if (m.abs(distX) < that.options.snapThreshold && m.abs(distY) < that.options.snapThreshold) that.scrollTo(that.absStartX, that.absStartY, 200);
585
+ else {
586
+ snap = that._snap(that.x, that.y);
587
+ if (snap.x != that.x || snap.y != that.y) that.scrollTo(snap.x, snap.y, snap.time);
588
+ }
589
+
590
+ if (that.options.onTouchEnd) that.options.onTouchEnd.call(that, e);
591
+ return;
592
+ }
593
+
594
+ that._resetPos(200);
595
+ if (that.options.onTouchEnd) that.options.onTouchEnd.call(that, e);
596
+ },
597
+
598
+ _resetPos: function (time) {
599
+ var that = this,
600
+ resetX = that.x >= 0 ? 0 : that.x < that.maxScrollX ? that.maxScrollX : that.x,
601
+ resetY = that.y >= that.minScrollY || that.maxScrollY > 0 ? that.minScrollY : that.y < that.maxScrollY ? that.maxScrollY : that.y;
602
+
603
+ if (resetX == that.x && resetY == that.y) {
604
+ if (that.moved) {
605
+ that.moved = false;
606
+ if (that.options.onScrollEnd) that.options.onScrollEnd.call(that); // Execute custom code on scroll end
607
+ }
608
+
609
+ if (that.hScrollbar && that.options.hideScrollbar) {
610
+ if (vendor == 'webkit') that.hScrollbarWrapper.style[vendor + 'TransitionDelay'] = '300ms';
611
+ that.hScrollbarWrapper.style.opacity = '0';
612
+ }
613
+ if (that.vScrollbar && that.options.hideScrollbar) {
614
+ if (vendor == 'webkit') that.vScrollbarWrapper.style[vendor + 'TransitionDelay'] = '300ms';
615
+ that.vScrollbarWrapper.style.opacity = '0';
616
+ }
617
+
618
+ return;
619
+ }
620
+
621
+ that.scrollTo(resetX, resetY, time || 0);
622
+ },
623
+
624
+ _wheel: function (e) {
625
+ var that = this,
626
+ wheelDeltaX, wheelDeltaY,
627
+ deltaX, deltaY,
628
+ deltaScale;
629
+
630
+ if ('wheelDeltaX' in e) {
631
+ wheelDeltaX = e.wheelDeltaX / 12;
632
+ wheelDeltaY = e.wheelDeltaY / 12;
633
+ } else if('wheelDelta' in e) {
634
+ wheelDeltaX = wheelDeltaY = e.wheelDelta / 12;
635
+ } else if ('detail' in e) {
636
+ wheelDeltaX = wheelDeltaY = -e.detail * 3;
637
+ } else {
638
+ return;
639
+ }
640
+
641
+ if (that.options.wheelAction == 'zoom') {
642
+ deltaScale = that.scale * Math.pow(2, 1/3 * (wheelDeltaY ? wheelDeltaY / Math.abs(wheelDeltaY) : 0));
643
+ if (deltaScale < that.options.zoomMin) deltaScale = that.options.zoomMin;
644
+ if (deltaScale > that.options.zoomMax) deltaScale = that.options.zoomMax;
645
+
646
+ if (deltaScale != that.scale) {
647
+ if (!that.wheelZoomCount && that.options.onZoomStart) that.options.onZoomStart.call(that, e);
648
+ that.wheelZoomCount++;
649
+
650
+ that.zoom(e.pageX, e.pageY, deltaScale, 400);
651
+
652
+ setTimeout(function() {
653
+ that.wheelZoomCount--;
654
+ if (!that.wheelZoomCount && that.options.onZoomEnd) that.options.onZoomEnd.call(that, e);
655
+ }, 400);
656
+ }
657
+
658
+ return;
659
+ }
660
+
661
+ deltaX = that.x + wheelDeltaX;
662
+ deltaY = that.y + wheelDeltaY;
663
+
664
+ if (deltaX > 0) deltaX = 0;
665
+ else if (deltaX < that.maxScrollX) deltaX = that.maxScrollX;
666
+
667
+ if (deltaY > that.minScrollY) deltaY = that.minScrollY;
668
+ else if (deltaY < that.maxScrollY) deltaY = that.maxScrollY;
669
+
670
+ if(that.maxScrollY < 0){
671
+ that.scrollTo(deltaX, deltaY, 0);
672
+ }
673
+ },
674
+
675
+ _mouseout: function (e) {
676
+ var t = e.relatedTarget;
677
+
678
+ if (!t) {
679
+ this._end(e);
680
+ return;
681
+ }
682
+
683
+ while (t = t.parentNode) if (t == this.wrapper) return;
684
+
685
+ this._end(e);
686
+ },
687
+
688
+ _transitionEnd: function (e) {
689
+ var that = this;
690
+
691
+ if (e.target != that.scroller) return;
692
+
693
+ that._unbind('webkitTransitionEnd');
694
+
695
+ that._startAni();
696
+ },
697
+
698
+
699
+ /**
700
+ *
701
+ * Utilities
702
+ *
703
+ */
704
+ _startAni: function () {
705
+ var that = this,
706
+ startX = that.x, startY = that.y,
707
+ startTime = Date.now(),
708
+ step, easeOut,
709
+ animate;
710
+
711
+ if (that.animating) return;
712
+
713
+ if (!that.steps.length) {
714
+ that._resetPos(400);
715
+ return;
716
+ }
717
+
718
+ step = that.steps.shift();
719
+
720
+ if (step.x == startX && step.y == startY) step.time = 0;
721
+
722
+ that.animating = true;
723
+ that.moved = true;
724
+
725
+ if (that.options.useTransition) {
726
+ that._transitionTime(step.time);
727
+ that._pos(step.x, step.y);
728
+ that.animating = false;
729
+ if (step.time) that._bind('webkitTransitionEnd');
730
+ else that._resetPos(0);
731
+ return;
732
+ }
733
+
734
+ animate = function () {
735
+ var now = Date.now(),
736
+ newX, newY;
737
+
738
+ if (now >= startTime + step.time) {
739
+ that._pos(step.x, step.y);
740
+ that.animating = false;
741
+ if (that.options.onAnimationEnd) that.options.onAnimationEnd.call(that); // Execute custom code on animation end
742
+ that._startAni();
743
+ return;
744
+ }
745
+
746
+ now = (now - startTime) / step.time - 1;
747
+ easeOut = m.sqrt(1 - now * now);
748
+ newX = (step.x - startX) * easeOut + startX;
749
+ newY = (step.y - startY) * easeOut + startY;
750
+ that._pos(newX, newY);
751
+ if (that.animating) that.aniTime = nextFrame(animate);
752
+ };
753
+
754
+ animate();
755
+ },
756
+
757
+ _transitionTime: function (time) {
758
+ time += 'ms';
759
+ this.scroller.style[vendor + 'TransitionDuration'] = time;
760
+ if (this.hScrollbar) this.hScrollbarIndicator.style[vendor + 'TransitionDuration'] = time;
761
+ if (this.vScrollbar) this.vScrollbarIndicator.style[vendor + 'TransitionDuration'] = time;
762
+ },
763
+
764
+ _momentum: function (dist, time, maxDistUpper, maxDistLower, size) {
765
+ var deceleration = 0.0006,
766
+ speed = m.abs(dist) / time,
767
+ newDist = (speed * speed) / (2 * deceleration),
768
+ newTime = 0, outsideDist = 0;
769
+
770
+ // Proportinally reduce speed if we are outside of the boundaries
771
+ if (dist > 0 && newDist > maxDistUpper) {
772
+ outsideDist = size / (6 / (newDist / speed * deceleration));
773
+ maxDistUpper = maxDistUpper + outsideDist;
774
+ speed = speed * maxDistUpper / newDist;
775
+ newDist = maxDistUpper;
776
+ } else if (dist < 0 && newDist > maxDistLower) {
777
+ outsideDist = size / (6 / (newDist / speed * deceleration));
778
+ maxDistLower = maxDistLower + outsideDist;
779
+ speed = speed * maxDistLower / newDist;
780
+ newDist = maxDistLower;
781
+ }
782
+
783
+ newDist = newDist * (dist < 0 ? -1 : 1);
784
+ newTime = speed / deceleration;
785
+
786
+ return { dist: newDist, time: mround(newTime) };
787
+ },
788
+
789
+ _offset: function (el) {
790
+ var left = -el.offsetLeft,
791
+ top = -el.offsetTop;
792
+
793
+ while (el = el.offsetParent) {
794
+ left -= el.offsetLeft;
795
+ top -= el.offsetTop;
796
+ }
797
+
798
+ if (el != this.wrapper) {
799
+ left *= this.scale;
800
+ top *= this.scale;
801
+ }
802
+
803
+ return { left: left, top: top };
804
+ },
805
+
806
+ _snap: function (x, y) {
807
+ var that = this,
808
+ i, l,
809
+ page, time,
810
+ sizeX, sizeY;
811
+
812
+ // Check page X
813
+ page = that.pagesX.length - 1;
814
+ for (i=0, l=that.pagesX.length; i<l; i++) {
815
+ if (x >= that.pagesX[i]) {
816
+ page = i;
817
+ break;
818
+ }
819
+ }
820
+ if (page == that.currPageX && page > 0 && that.dirX < 0) page--;
821
+ x = that.pagesX[page];
822
+ sizeX = m.abs(x - that.pagesX[that.currPageX]);
823
+ sizeX = sizeX ? m.abs(that.x - x) / sizeX * 500 : 0;
824
+ that.currPageX = page;
825
+
826
+ // Check page Y
827
+ page = that.pagesY.length-1;
828
+ for (i=0; i<page; i++) {
829
+ if (y >= that.pagesY[i]) {
830
+ page = i;
831
+ break;
832
+ }
833
+ }
834
+ if (page == that.currPageY && page > 0 && that.dirY < 0) page--;
835
+ y = that.pagesY[page];
836
+ sizeY = m.abs(y - that.pagesY[that.currPageY]);
837
+ sizeY = sizeY ? m.abs(that.y - y) / sizeY * 500 : 0;
838
+ that.currPageY = page;
839
+
840
+ // Snap with constant speed (proportional duration)
841
+ time = mround(m.max(sizeX, sizeY)) || 200;
842
+
843
+ return { x: x, y: y, time: time };
844
+ },
845
+
846
+ _bind: function (type, el, bubble) {
847
+ (el || this.scroller).addEventListener(type, this, !!bubble);
848
+ },
849
+
850
+ _unbind: function (type, el, bubble) {
851
+ (el || this.scroller).removeEventListener(type, this, !!bubble);
852
+ },
853
+
854
+
855
+ /**
856
+ *
857
+ * Public methods
858
+ *
859
+ */
860
+ destroy: function () {
861
+ var that = this;
862
+
863
+ that.scroller.style[vendor + 'Transform'] = '';
864
+
865
+ // Remove the scrollbars
866
+ that.hScrollbar = false;
867
+ that.vScrollbar = false;
868
+ that._scrollbar('h');
869
+ that._scrollbar('v');
870
+
871
+ // Remove the event listeners
872
+ that._unbind(RESIZE_EV, window);
873
+ that._unbind(START_EV);
874
+ that._unbind(MOVE_EV);
875
+ that._unbind(END_EV);
876
+ that._unbind(CANCEL_EV);
877
+
878
+ if (!that.options.hasTouch) {
879
+ that._unbind('mouseout', that.wrapper);
880
+ that._unbind(WHEEL_EV);
881
+ }
882
+
883
+ if (that.options.useTransition) that._unbind('webkitTransitionEnd');
884
+
885
+ if (that.options.checkDOMChanges) clearInterval(that.checkDOMTime);
886
+
887
+ if (that.options.onDestroy) that.options.onDestroy.call(that);
888
+ },
889
+
890
+ refresh: function () {
891
+ var that = this,
892
+ offset,
893
+ i, l,
894
+ els,
895
+ pos = 0,
896
+ page = 0;
897
+
898
+ if (that.scale < that.options.zoomMin) that.scale = that.options.zoomMin;
899
+ that.wrapperW = that.wrapper.clientWidth || 1;
900
+ that.wrapperH = that.wrapper.clientHeight || 1;
901
+
902
+ that.minScrollY = -that.options.topOffset || 0;
903
+ that.scrollerW = mround(that.scroller.offsetWidth * that.scale);
904
+ that.scrollerH = mround((that.scroller.offsetHeight + that.minScrollY) * that.scale);
905
+ that.maxScrollX = that.wrapperW - that.scrollerW;
906
+ that.maxScrollY = that.wrapperH - that.scrollerH + that.minScrollY;
907
+ that.dirX = 0;
908
+ that.dirY = 0;
909
+
910
+ if (that.options.onRefresh) that.options.onRefresh.call(that);
911
+
912
+ that.hScroll = that.options.hScroll && that.maxScrollX < 0;
913
+ that.vScroll = that.options.vScroll && (!that.options.bounceLock && !that.hScroll || that.scrollerH > that.wrapperH);
914
+
915
+ that.hScrollbar = that.hScroll && that.options.hScrollbar;
916
+ that.vScrollbar = that.vScroll && that.options.vScrollbar && that.scrollerH > that.wrapperH;
917
+
918
+ offset = that._offset(that.wrapper);
919
+ that.wrapperOffsetLeft = -offset.left;
920
+ that.wrapperOffsetTop = -offset.top;
921
+
922
+ // Prepare snap
923
+ if (typeof that.options.snap == 'string') {
924
+ that.pagesX = [];
925
+ that.pagesY = [];
926
+ els = that.scroller.querySelectorAll(that.options.snap);
927
+ for (i=0, l=els.length; i<l; i++) {
928
+ pos = that._offset(els[i]);
929
+ pos.left += that.wrapperOffsetLeft;
930
+ pos.top += that.wrapperOffsetTop;
931
+ that.pagesX[i] = pos.left < that.maxScrollX ? that.maxScrollX : pos.left * that.scale;
932
+ that.pagesY[i] = pos.top < that.maxScrollY ? that.maxScrollY : pos.top * that.scale;
933
+ }
934
+ } else if (that.options.snap) {
935
+ that.pagesX = [];
936
+ while (pos >= that.maxScrollX) {
937
+ that.pagesX[page] = pos;
938
+ pos = pos - that.wrapperW;
939
+ page++;
940
+ }
941
+ if (that.maxScrollX%that.wrapperW) that.pagesX[that.pagesX.length] = that.maxScrollX - that.pagesX[that.pagesX.length-1] + that.pagesX[that.pagesX.length-1];
942
+
943
+ pos = 0;
944
+ page = 0;
945
+ that.pagesY = [];
946
+ while (pos >= that.maxScrollY) {
947
+ that.pagesY[page] = pos;
948
+ pos = pos - that.wrapperH;
949
+ page++;
950
+ }
951
+ if (that.maxScrollY%that.wrapperH) that.pagesY[that.pagesY.length] = that.maxScrollY - that.pagesY[that.pagesY.length-1] + that.pagesY[that.pagesY.length-1];
952
+ }
953
+
954
+ // Prepare the scrollbars
955
+ that._scrollbar('h');
956
+ that._scrollbar('v');
957
+
958
+ if (!that.zoomed) {
959
+ that.scroller.style[vendor + 'TransitionDuration'] = '0';
960
+ that._resetPos(200);
961
+ }
962
+ },
963
+
964
+ scrollTo: function (x, y, time, relative) {
965
+ var that = this,
966
+ step = x,
967
+ i, l;
968
+
969
+ that.stop();
970
+
971
+ if (!step.length) step = [{ x: x, y: y, time: time, relative: relative }];
972
+
973
+ for (i=0, l=step.length; i<l; i++) {
974
+ if (step[i].relative) { step[i].x = that.x - step[i].x; step[i].y = that.y - step[i].y; }
975
+ that.steps.push({ x: step[i].x, y: step[i].y, time: step[i].time || 0 });
976
+ }
977
+
978
+ that._startAni();
979
+ },
980
+
981
+ scrollToElement: function (el, time) {
982
+ var that = this, pos;
983
+ el = el.nodeType ? el : that.scroller.querySelector(el);
984
+ if (!el) return;
985
+
986
+ pos = that._offset(el);
987
+ pos.left += that.wrapperOffsetLeft;
988
+ pos.top += that.wrapperOffsetTop;
989
+
990
+ pos.left = pos.left > 0 ? 0 : pos.left < that.maxScrollX ? that.maxScrollX : pos.left;
991
+ pos.top = pos.top > that.minScrollY ? that.minScrollY : pos.top < that.maxScrollY ? that.maxScrollY : pos.top;
992
+ time = time === undefined ? m.max(m.abs(pos.left)*2, m.abs(pos.top)*2) : time;
993
+
994
+ that.scrollTo(pos.left, pos.top, time);
995
+ },
996
+
997
+ scrollToPage: function (pageX, pageY, time) {
998
+ var that = this, x, y;
999
+
1000
+ time = time === undefined ? 400 : time;
1001
+
1002
+ if (that.options.onScrollStart) that.options.onScrollStart.call(that);
1003
+
1004
+ if (that.options.snap) {
1005
+ pageX = pageX == 'next' ? that.currPageX+1 : pageX == 'prev' ? that.currPageX-1 : pageX;
1006
+ pageY = pageY == 'next' ? that.currPageY+1 : pageY == 'prev' ? that.currPageY-1 : pageY;
1007
+
1008
+ pageX = pageX < 0 ? 0 : pageX > that.pagesX.length-1 ? that.pagesX.length-1 : pageX;
1009
+ pageY = pageY < 0 ? 0 : pageY > that.pagesY.length-1 ? that.pagesY.length-1 : pageY;
1010
+
1011
+ that.currPageX = pageX;
1012
+ that.currPageY = pageY;
1013
+ x = that.pagesX[pageX];
1014
+ y = that.pagesY[pageY];
1015
+ } else {
1016
+ x = -that.wrapperW * pageX;
1017
+ y = -that.wrapperH * pageY;
1018
+ if (x < that.maxScrollX) x = that.maxScrollX;
1019
+ if (y < that.maxScrollY) y = that.maxScrollY;
1020
+ }
1021
+
1022
+ that.scrollTo(x, y, time);
1023
+ },
1024
+
1025
+ disable: function () {
1026
+ this.stop();
1027
+ this._resetPos(0);
1028
+ this.enabled = false;
1029
+
1030
+ // If disabled after touchstart we make sure that there are no left over events
1031
+ this._unbind(MOVE_EV);
1032
+ this._unbind(END_EV);
1033
+ this._unbind(CANCEL_EV);
1034
+ },
1035
+
1036
+ enable: function () {
1037
+ this.enabled = true;
1038
+ },
1039
+
1040
+ stop: function () {
1041
+ if (this.options.useTransition) this._unbind('webkitTransitionEnd');
1042
+ else cancelFrame(this.aniTime);
1043
+ this.steps = [];
1044
+ this.moved = false;
1045
+ this.animating = false;
1046
+ },
1047
+
1048
+ zoom: function (x, y, scale, time) {
1049
+ var that = this,
1050
+ relScale = scale / that.scale;
1051
+
1052
+ if (!that.options.useTransform) return;
1053
+
1054
+ that.zoomed = true;
1055
+ time = time === undefined ? 200 : time;
1056
+ x = x - that.wrapperOffsetLeft - that.x;
1057
+ y = y - that.wrapperOffsetTop - that.y;
1058
+ that.x = x - x * relScale + that.x;
1059
+ that.y = y - y * relScale + that.y;
1060
+
1061
+ that.scale = scale;
1062
+ that.refresh();
1063
+
1064
+ that.x = that.x > 0 ? 0 : that.x < that.maxScrollX ? that.maxScrollX : that.x;
1065
+ that.y = that.y > that.minScrollY ? that.minScrollY : that.y < that.maxScrollY ? that.maxScrollY : that.y;
1066
+
1067
+ that.scroller.style[vendor + 'TransitionDuration'] = time + 'ms';
1068
+ that.scroller.style[vendor + 'Transform'] = trnOpen + that.x + 'px,' + that.y + 'px' + trnClose + ' scale(' + scale + ')';
1069
+ that.zoomed = false;
1070
+ },
1071
+
1072
+ isReady: function () {
1073
+ return !this.moved && !this.zoomed && !this.animating;
1074
+ }
1075
+ };
1076
+
1077
+ if (typeof exports !== 'undefined') exports.iScroll = iScroll;
1078
+ else window.iScroll = iScroll;
1079
+
1080
+ })();
skin/adminhtml/default/snm-mobile/iscrollview/jquery.mobile.iscrollview-pull.css ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*******************************************
2
+ Default Pull-up and Pull-down styling
3
+ Replace/modify/override to your preferences
4
+ *******************************************/
5
+ .iscroll-pullup {
6
+ /* The wrapper is position:relative or position:absolute, so the pullUp is positioned here
7
+ relative to the scroller, not the page. If we don't do this, the pullUp will initially
8
+ appear briefly at the bottom of content if content is shorter than the wrapper.
9
+ */
10
+ position: absolute; /* relative to the scroller */
11
+ bottom: 0; /* at the bottom of the scroller */
12
+ width: 100%;
13
+ }
14
+
15
+ .iscroll-pulldown,
16
+ .iscroll-pullup {
17
+ background: #fff;
18
+ height: 40px;
19
+ line-height: 40px; /* Center text vertically */
20
+ font-weight: bold;
21
+ font-size: 14px;
22
+ color: #888;
23
+ }
24
+
25
+
26
+ /* MSIE not supported by iScroll, so not MSIE transitions or animation */
27
+ .iscroll-pulldown .iscroll-pull-icon,
28
+ .iscroll-pullup .iscroll-pull-icon {
29
+ margin-left: 0.5em;
30
+ display: block;
31
+ float: left;
32
+ width: 40px;
33
+ height: 40px;
34
+ background: url(iscroll-pull-icon@2x.png) 0 0 no-repeat;
35
+ -webkit-background-size: 40px 80px;
36
+ -moz-background-size: 40px 80px;
37
+ -o-background-size: 40px 80px;
38
+ background-size: 40px 80px;
39
+ -webkit-transition: -webkit-transform 250ms linear;
40
+ -moz-transition: -moz-transform 250ms linear;
41
+ -o-transition: -o-transform 250ms linear;
42
+ transition: transform 250ms linear;
43
+ }
44
+
45
+ /* Note that translateZ(0) triggers hardware acceleration on WebKit browsers
46
+ Acceleration is automatic on Mozilla */
47
+
48
+ .iscroll-pulldown .iscroll-pull-icon {
49
+ -webkit-transform: rotate(0deg) translateZ(0);
50
+ -moz-transform: rotate(0deg);
51
+ -o-transform: rotate(0deg);
52
+ transform: rotate(0deg) translateZ(0);
53
+ }
54
+
55
+ .iscroll-pullup .iscroll-pull-icon {
56
+ -webkit-transform: rotate(-180deg) translateZ(0);
57
+ -moz-transform: rotate(-180deg);
58
+ -o-transform: rotate(-180deg);
59
+ transform: rotate(-180deg) translateZ(0);
60
+ }
61
+
62
+ .iscroll-pulldown.iscroll-pull-pulled .iscroll-pull-icon {
63
+ -webkit-transform: rotate(-180deg) translateZ(0);
64
+ -moz-transform: rotate(-180deg);
65
+ -o-transform: rotate(-180deg);
66
+ transform: rotate(-180deg) translateZ(0);
67
+ }
68
+
69
+ .iscroll-pullup.iscroll-pull-pulled .iscroll-pull-icon {
70
+ -webkit-transform: rotate(0deg) translateZ(0);
71
+ -moz-transform: rotate(0deg);
72
+ -o-transform: rotate(0deg);
73
+ transform: rotate(0deg) translateZ(0);
74
+ }
75
+
76
+ .iscroll-pulldown.iscroll-pull-loading .iscroll-pull-icon,
77
+ .iscroll-pullup.iscroll-pull-loading .iscroll-pull-icon {
78
+ background-position: 0 100%;
79
+ -webkit-transform: rotate(0deg) translateZ(0);
80
+ -webkit-transition-duration: 0ms;
81
+ -webkit-animation: iscroll-pull-loading 2s infinite linear;
82
+ -moz-transform: rotate(0deg);
83
+ -moz-transition-duration: 0ms;
84
+ -moz-animation: iscroll-pull-loading 2s infinite linear;
85
+ -o-transform: rotate(0deg);
86
+ -o-transition-duration: 0ms;
87
+ -o-animation: iscroll-pull-loading 2s infinite linear; /* Opera 12+ only */
88
+ transform: rotate(0deg) translateZ(0);
89
+ transition: transform 0ms linear;
90
+ animation: iscroll-pull-loading 2s infinite linear;
91
+ }
92
+
93
+ @-webkit-keyframes iscroll-pull-loading {
94
+ from { -webkit-transform: rotate(0deg); }
95
+ to { -webkit-transform: rotate(360deg); }
96
+ }
97
+
98
+ @-moz-keyframes iscroll-pull-loading {
99
+ from { -moz-transform: rotate(0deg); }
100
+ to { -moz-transform: rotate(360deg); }
101
+ }
102
+
103
+ @-o-keyframes iscroll-pull-loading {
104
+ from { -o-transform: rotate(0deg); }
105
+ to { -o-transform: rotate(360deg); }
106
+ }
107
+
108
+ @-keyframes iscroll-pull-loading {
109
+ from { transform: rotate(0deg); }
110
+ to { transform: rotate(360deg); }
111
+ }
112
+
skin/adminhtml/default/snm-mobile/iscrollview/jquery.mobile.iscrollview.css ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* The widget adds some styling that needs to be computed at run-time (min-height of scroller
2
+ * content so that pull-up will be hidden, and scroller margin transferred from wrapper padding.)
3
+ * All styles that are added staticly are added through this stylesheet, for maximum flexibility
4
+ *
5
+ * The widget adds these styles to page elements when it is constructed, and removes them when
6
+ * it is destroyed. The styling itself is added by this style sheet. So, any styles added here
7
+ * will be removed when the widget is destroyed. (For example, if you call "destroy" on the widget.)
8
+ */
9
+
10
+ /* The iscroll-page style is added to the page when the first iscrollview widget is created
11
+ * on the page, and removed when the last iscrollview widget on the page is destroyed.
12
+ */
13
+ .iscroll-page {
14
+ /* Add any styles that you want on pages that use iScroll */
15
+ }
16
+
17
+ /* The wrapper is the element that contains the scroller. In the most typical usage, this
18
+ * is .ui-content, but could be any element. */
19
+ .iscroll-wrapper {
20
+ min-height: 0; /* Override any min-height, for example, in case a background image is
21
+ used on ui-content div used as wrapper. */
22
+
23
+ /* The wrapper needs to be positioned relative or absolute for proper positioning of the
24
+ scrollbar with iscroll4 default styling of the scrollbar. Either relative or absolute on the
25
+ wrapper will cause the absolute positioning of the scrollbar in iScroll to be relative to
26
+ the wrapper. */
27
+ position: relative;
28
+
29
+ /* iScroll examples all show the z-index of the wrapper raised to 1 (default is 0). There may
30
+ be an issue related to touch/click that this solves on specific platforms or depending on
31
+ the ordering of elements in the HTML source if elements are fixed positioned.
32
+ This would make sure that the wrapper sees click before underlying content. '
33
+
34
+ Howver, raising the wrapper Z-index creates a serious problem on page transitions on
35
+ iPhone, so I don't use it here. */
36
+
37
+ }
38
+
39
+ /* The scroller is the element that contains the elements that are scrolled. The height of this
40
+ * element is typically longer than the wrapper. (It's the stuff that we scroll.) The widget
41
+ * creates this element for you. It wraps all of the children of the wrapper.
42
+ */
43
+ .iscroll-scroller {
44
+ /* Add any styles that you want to add to scrollers */
45
+ }
46
+
47
+ /* The "fixed" elements are the elements that are outside of the wrapper. The widget will
48
+ * set headers and footers to this style, as well as any element that has a data-iscroll-fixed
49
+ * attribute. The widget adds-up the height of these elements when it sizes the wrapper.
50
+ */
51
+ .iscroll-fixed {
52
+ /* One often sees headers/footers/etc. raised to a z-index of 1000 in iScroll examples. This
53
+ is probably because the scroll bar has been mis-placed, and raising the z-index of the
54
+ header/footer masks the problem. I don't do it here. */
55
+
56
+ /* Add any styles that you want to add to fixed elements */
57
+ }
58
+
59
+ /* iscroll-content is the content that is scrolled - NOT including any pull-down and pull-up
60
+ * element, and also not including a special placeholder element used when there is a pull-up.
61
+ */
62
+ .iscroll-content {
63
+ /* Add any styles that you want to add to iscroll content */
64
+ }
65
+
66
+
67
+ /* Note on scrollbar styles: iscroll4 adds inline CSS to the scrollbar when it creates it.
68
+ It sets the z-index to 100 and positions it relative to the wrapper, at the right edge of
69
+ the wrapper. If you want to override this behaviour, set the scrollBarClass option, and then
70
+ style that class as you please */
71
+
72
+ /* See jquery.mobile.iscroll-pulldown.css for styling of pull-down and pull-up elements */
skin/adminhtml/default/snm-mobile/iscrollview/jquery.mobile.iscrollview.js ADDED
@@ -0,0 +1,1832 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******************************************************************************
2
+ jslint directives. In case you hate yourself, and need that reinforced...
3
+
4
+ You will still get a few warnings that can't be turned off, or that I'm just
5
+ too stubborn to "fix"
6
+
7
+ sloppy, white: let me indent any way I damn please! I like to line things
8
+ up nice and purty.
9
+
10
+ nomen: tolerate leading _ for variable names. Leading _ is a requirement for
11
+ JQuery Widget Factory private members
12
+ *******************************************************************************/
13
+
14
+ /*jslint browser: true, sloppy: true, white: true, nomen: true, regexp: true, maxerr: 50, indent: 2 */
15
+ /*global jQuery:false, iScroll:false, console:false, Event:false*/
16
+
17
+ /*******************************************************************************
18
+ But instead, be kind to yourself, and use jshint.
19
+
20
+ Note jshint nomen and white options are opposite of jslint
21
+
22
+ You can't specify an indent of you use white: false, otherwise it will
23
+ still complain
24
+ *******************************************************************************/
25
+
26
+ /*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, strict:true,
27
+ undef:true, curly:true, browser:true, jquery:true, indent:2, maxerr:50,
28
+ white:false, nomen:false */
29
+
30
+ /*
31
+ jquery.mobile.iscrollview.js
32
+ Version: 1.2pre1
33
+ jQuery Mobile iScroll4 view widget
34
+ Copyright (c), 2012 Watusiware Corporation
35
+ Distributed under the MIT License
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
38
+ software and associated documentation files (the "Software"), to deal in the Software
39
+ without restriction, including without limitation the rights to use, copy, modify,
40
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
41
+ permit persons to whom the Software is furnished to do so, subject to the following
42
+ conditions: NO ADDITIONAl CONDITIONS.
43
+
44
+ The above copyright notice and this permission notice shall be included in all copies
45
+ or substantial portions of the Software.
46
+
47
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
48
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
49
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
50
+ FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
51
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
52
+ DEALINGS IN THE SOFTWARE.
53
+
54
+ Derived in part from jquery.mobile.iscroll.js:
55
+ Portions Copyright (c) Kazuhiro Osawa
56
+ Dual licensed under the MIT or GPL Version 2 licenses.
57
+
58
+ Derived in part from (jQuery mobile) jQuery UI Widget-factory
59
+ plugin boilerplate (for 1.8/9+)
60
+ Author: @scottjehl
61
+ Further changes: @addyosmani
62
+ Licensed under the MIT license
63
+
64
+ dependency: iScroll 4.1.9 https://github.com/cubiq/iscroll or later or,
65
+ iScroll fork https://github.com/watusi/iscroll (watusi branch) preferably
66
+ jquery.actual 1.0.6 https://github.com/dreamerslab/jquery.actual
67
+ jQuery 1.6.4 (JQM 1.0.1) or 1.7.1 (JQM 1.1)
68
+ JQuery Mobile = 1.0.1 or 1.1
69
+ */
70
+
71
+ ; // Ignore jslint/jshint warning - for safety - terminate previous file if unterminated
72
+
73
+ (function ($, window, document, undefined) { /* Ignore islint warning on "undefined" */
74
+ "use strict";
75
+
76
+ //----------------------------------
77
+ // "class constants"
78
+ //----------------------------------
79
+ var IsWebkit = (/webkit/i).test(navigator.appVersion),
80
+ IsAndroid = (/android/gi).test(navigator.appVersion),
81
+ IsFirefox = (/firefox/i).test(navigator.userAgent),
82
+ IsTouchPad = (/hp-tablet/gi).test(navigator.appVersion),
83
+ IsIDevice = (/(iPhone|iPad|iPod).*AppleWebKit/).test(navigator.appVersion),
84
+ IsIPad = (/iPad.*AppleWebKit/).test(navigator.appVersion),
85
+ // IDevice running Mobile Safari - not embedded UIWebKit or Standalone (= saved to desktop)
86
+ IsMobileSafari = (/(iPhone|iPad|iPod).*AppleWebKit.*Safari/).test(navigator.appVersion),
87
+ // IDevice native app using embedded UIWebView
88
+ IsUIWebView = (/(iPhone|iPad|iPod).*AppleWebKit.(?!.*Safari)/).test(navigator.appVersion),
89
+ // Standalone is when running a website saved to the desktop (SpringBoard)
90
+ IsIDeviceStandalone = IsIDevice && (window.navigator.Standalone !== undefined),
91
+
92
+ // Kludgey way to seeing if we have JQM v1.0.x, since there apparently is no
93
+ // way to access the version number!
94
+ JQMIsV1_0 = $.mobile.ignoreContentEnabled === undefined,
95
+
96
+ nextPageID = 1; // Used to generate event namespaces
97
+
98
+
99
+ /* Placed here instead of anonymous functions to facilitate debugging.
100
+ No logging, because these events are too frequent */
101
+
102
+ function _pageTouchmoveFunc(e) {
103
+ e.preventDefault();
104
+ }
105
+
106
+ //===============================================================================
107
+ // This essentially subclasses iScroll. Originally, this was just so that we could
108
+ // inject an iscrollview variable at the time of construction (so that it is
109
+ // available from the refresh callback which is first called during construction).
110
+ // But now we override several iScroll methods, as well.
111
+ //===============================================================================
112
+ // See: www.golimojo.com/etc/js-subclass.html
113
+ function _subclass(constructor, superConstructor) {
114
+ function SurrogateConstructor() {}
115
+ SurrogateConstructor.prototype = superConstructor.prototype;
116
+ var prototypeObject = new SurrogateConstructor();
117
+ prototypeObject.constructor = constructor;
118
+ constructor.prototype = prototypeObject;
119
+ }
120
+
121
+ function IScroll(iscrollview, scroller, options) {
122
+
123
+ // We need to add an iscrollview member to iScroll, so that we can efficiently
124
+ // pass the iscrollview when triggering jQuery events. Otherwise, we'd have to
125
+ // make a call to $(wrapper).jqmData() on each event trigger, which could have an impact
126
+ // on performance for high-frequency events.
127
+ this.iscrollview = iscrollview;
128
+
129
+ // The following functions are called from the proxy event functions. These are things
130
+ // we want to do in certain iScroll4 events.
131
+
132
+ // Emulate bottomOffset functionality in case iScroll doesn't have patch for bottomOffset
133
+ this._emulateBottomOffset = function(e) {
134
+ if (this.iscrollview.options.emulateBottomOffset) {
135
+ this.maxScrollY = this.wrapperH - this.scrollerH +
136
+ this.minScrollY + this.iscrollview.options.bottomOffset;
137
+ }
138
+ };
139
+
140
+ // Allow mouse clicks through to input elements
141
+ // Note that this is not an issue for touch devices, just mouse
142
+ this._fixInput = function(e) {
143
+ if (this.iscrollview.options.fixInput ) {
144
+ var tagName,
145
+ target = e.target;
146
+ while (target.nodeType !== 1) { target = target.parentNode; }
147
+ tagName = target.tagName.toLowerCase();
148
+ if (tagName === "select" || tagName === "input" || tagName === "textarea") {
149
+ return;
150
+ }
151
+ }
152
+
153
+ // If preventTouchHover, stop hover from occuring inside scroller for jQuery Mobile 1.0
154
+ // (Not used for 1.1)
155
+ if (this.iscrollview.options.preventTouchHover) { e.stopImmediatePropagation(); }
156
+ else { e.preventDefault(); }
157
+ };
158
+
159
+ // Perform an iScroll callback.
160
+ this._doCallback = function(callbackName, e, f) {
161
+ var v = this.iscrollview,
162
+ then = v._logCallback(callbackName, e);
163
+ if (f) { f.call(this, e); } // Perform passed function if present
164
+ v._trigger(callbackName.toLowerCase, e, {"iscrollview": v}); // Then trigger widget event
165
+ v._logCallback(callbackName, e, then);
166
+ };
167
+
168
+ // Override _bind and _unbind functions in iScroll, so that we can monitor performance,
169
+ // gain control over events reaching/not reaching iScroll, and potentially use jQuery events
170
+ // instead of addEventListener().
171
+ //
172
+ // As of v1.2, using jQuery events is an experimental feature, and does not work in all
173
+ // scenarios. For example, jQuery 1.7.1 breaks mousewheel support. This feature is left in
174
+ // only to permit further experimentation.
175
+ //
176
+ // If using jQuery events, we ignore bubble (really, useCapture) parameter. Fortunately,
177
+ // iScroll never uses it.
178
+ //
179
+ // If using jQuery events, we substitute jQuery's mouseleave for mouseout, to prevent iScroll
180
+ // from getting a cascade of events when the mouse enters some inner element within the
181
+ // scroller. iScroll is only interested in the mouse leaving the scroller to the OUTSIDE.
182
+ // While iScroll doesn't spend much time in the callback if moving to an inner element,
183
+ // the cascade of events is annoying when monitoring performance with the debug option.
184
+
185
+ this._bind = function (type, el, bubble) {
186
+ var jqEvents = this.iscrollview.options.bindIscrollUsingJqueryEvents,
187
+ _type = jqEvents && type === "mouseout" ? "mouseleave" : type;
188
+ // Ignore attempt to bind to orientationchange or resize, since the widget handles that
189
+ if (type === "orientationchange" || type === "resize") {
190
+ this.iscrollview._logIscrollEvent("iScroll bind (ignored)", type);
191
+ return;
192
+ }
193
+ this.iscrollview._logIscrollEvent("iScroll bind", type);
194
+ if (jqEvents) { (el ? $(el) : this.iscrollview.$scroller).bind(_type, $.proxy(this.handleEvent, this)); }
195
+ else { (el || this.scroller).addEventListener(_type, this, !!bubble); }
196
+ };
197
+
198
+ this._unbind = function(type, el, bubble) {
199
+ var jqEvents = this.iscrollview.options.bindIscrollUsingJqueryEvents,
200
+ _type = jqEvents && type === "mouseout" ? "mouseleave" : type;
201
+ if (type === "orientationchange" || type === "resize") {
202
+ this.iscrollview._logIscrollEvent("iScroll unbind (ignored)");
203
+ return;
204
+ }
205
+ this.iscrollview._logIscrollEvent("iScroll unbind", type);
206
+ if (jqEvents) { $(el || this.iscrollview.$scroller).unbind(_type, this.handleEvent); }
207
+ else { (el || this.scroller).removeEventListener(_type, this, !!bubble); }
208
+ };
209
+
210
+ // Save a reference to the original handleEvent in iScroll. We'll need to call it from our
211
+ // override.
212
+ this._origHandleEvent = iScroll.prototype.handleEvent;
213
+
214
+ // Shim around iScroll.handleEvent, allows us to trace
215
+ this.handleEvent = function(e) {
216
+ var jqEvents = this.iscrollview.options.bindIscrollUsingJqueryEvents,
217
+ then;
218
+ then = this.iscrollview._logIscrollEvent("iScroll.handleEvent", e);
219
+ // If jQuery mouseleave, make iScroll think we are handling a mouseout event
220
+ if (jqEvents && e.type === "mouseleave") {
221
+ e.type = "mouseout";
222
+ this._origHandleEvent(e);
223
+ e.type = "mouseleave";
224
+ }
225
+ else { this._origHandleEvent(e); }
226
+ this.iscrollview._logIscrollEvent("iScroll.handleEvent", e, then);
227
+ };
228
+
229
+ // Override _resize function in iScroll, which calls refresh() and is only called on resize
230
+ // and orientationchange events. We call refresh() when necessary, so these are redundant.
231
+ // As well, some refreshes are deferred, and the user will need to refresh any jQuery Mobile
232
+ // widgets using a callbackBefore. So, it makes no sense to have iScroll do event-based
233
+ // refresh.
234
+ this._resize = function() { };
235
+
236
+ iScroll.call(this, scroller, options);
237
+ }
238
+
239
+ _subclass(IScroll, iScroll);
240
+ $.widget("mobile.iscrollview", $.mobile.widget, {
241
+
242
+ widgetEventPrefix: "iscroll_",
243
+
244
+ //=========================================================
245
+ // All instance variables are declared here. This is not
246
+ // strictly necessary, but is helpful to document the use
247
+ // of instance variables.
248
+ //=========================================================
249
+
250
+ iscroll: null, // The underlying iScroll object
251
+ $window: $(window),
252
+ $wrapper: [], // The wrapper element
253
+ $scroller: [], // The scroller element (first child of wrapper)
254
+ $pullDown: [], // The pull-down element (if any)
255
+ $pullUp: [], // The pull-up element (if any)
256
+ $pullUpSpacer: [],
257
+ $page: [], // The page element that contains the wrapper
258
+ _wrapperHeightAdjustForBoxModel: 0, // This is set in _create
259
+
260
+ _firstScrollerExpand: true, // True on first scroller expand, so we can capture original CSS
261
+
262
+ createdAt: null, // Time when created - used as unique ID
263
+ pageID: null, // Each page that has 1 or more iscrollviews gets a unique page ID #
264
+ instanceID: null, // Each isntance of iscrollview created on a page gets a unique instance ID #
265
+
266
+ // True if this scroller content is "dirty" - i.e. needs refresh because refresh
267
+ // was deferred when the page was not the active page. This does NOT imply that the wrapper
268
+ // needs to be refreshed - see _sizeDirty, below.
269
+ _dirty: false,
270
+ _dirtyCallbackBefore: null,
271
+ _dirtyCallbackAfter: null,
272
+ _sizeDirty: false, // True if wrapper resize is needed because page size or fixed content
273
+ // size changed
274
+
275
+ //----------------------------------------------------
276
+ // Options to be used as defaults
277
+ //----------------------------------------------------
278
+ options: {
279
+ // iScroll4 options
280
+ // We only define those options here which have values that differ from
281
+ // iscroll4 defaults.
282
+ hScroll: false, // iScroll4 default is true
283
+ hScrollbar: false, // iScroll4 default is true
284
+
285
+ // Additional iScroll4 options will be back-filled from iscroll4
286
+
287
+ // iscrollview widget options
288
+
289
+ debug: false, // Enable some messages to console
290
+ // Debug true needed for any trace options
291
+ traceResizeWrapper: false, // Enable to trace resize wrapper
292
+ traceRefresh: false, // Enable to trace refresh
293
+ traceCreateDestroy: false, // Enable to trace create/destroy
294
+ traceIscrollEvents: false, // Enable to trace events handled by iScroll
295
+ tracedIscrollEvents: [], // List of specific iScroll events to trace, empty list for all
296
+ // Items are strings, like "touchstart"
297
+ traceWidgetEvents: false, // Enable to trace events registered by widget
298
+ // Note: in some cases we might bind to multiple events. You will have to include the multiple
299
+ // events in one string to filter on such a bind. For example, "resize orientationchange"
300
+ tracedWidgetEvents: [], // List of specific widget events to trace
301
+ traceIscrollCallbacks: false, // Enable to trace iScroll callbacks to the widget
302
+ tracedIscrollCallbacks: [], // List of specific iScroll callbacks to trace, empty list for all
303
+ // Items are strings, like "onRefresh"
304
+ traceWidgetCallbacks: false,
305
+ tracedWidgetCallbacks: [],
306
+
307
+
308
+ // bottomOffset is currently only in Watusi-patched iScroll. We emulate it in case it isn't
309
+ // there.
310
+ bottomOffset: 0,
311
+ emulateBottomOffset: true,
312
+
313
+ pageClass: "iscroll-page", // Class to be applied to pages containing this widget
314
+ wrapperClass: "iscroll-wrapper", // Class to be applied to wrapper containing this widget
315
+ scrollerClass: "iscroll-scroller", // Class to be applied to scroller within wrapper
316
+ pullDownClass: "iscroll-pulldown", // Class for pulldown element (if any)
317
+ pullUpClass: "iscroll-pullup", // Class for pullup element (if any)
318
+ pullLabelClass: "iscroll-pull-label", // Class for pull element label span
319
+ pullUpSpacerClass: "iscroll-pullup-spacer", // Class added to generated pullup spacer
320
+ scrollerContentClass: "iscroll-content", // Real content of scroller, not including pull-up, pull-down
321
+ fixedHeightClass: "iscroll-fixed", // Class applied to elements that match fixedHeightSelector
322
+
323
+ // The widget adds the fixedHeightClass to all elements that match fixedHeightSelector.
324
+ // Don't add the fixedHeightClass to elements manually. Use data-iscroll-fixed instead.
325
+ fixedHeightSelector: ":jqmData(role='header'), :jqmData(role='footer'), :jqmData(iscroll-fixed)",
326
+
327
+ // true to resize the wrapper to take all viewport space after fixed-height elements
328
+ // (typically header/footer)
329
+ // false to not change the size of the wrapper
330
+ // For example, if using multiple iscrollview widgets on the same page, a maximum
331
+ // of one of them could resize to remaining space. You would need to explicitly
332
+ // set the height of additional iscrollviews and give them the fixed height class.
333
+ resizeWrapper: true,
334
+
335
+ // Space-separated list of events on which to resize/refresh iscroll4
336
+ // On some mobile devices you may wish to add/substitute orientationchange event
337
+ // iOS 4.x will trigger resize twice then orientationchange
338
+ // iOS 5.x will trigger resize once then orientationchange
339
+ // Android devices can trigger multiple events, but generally orientationchange before resize
340
+ // Devices are inconsistent as to when they first report the new width/height
341
+ // Android tends to first trigger orientationchange with the width/height unchanged, the
342
+ // orientationchange with the new width/height.
343
+ // Experimentation with other devices would be useful
344
+ resizeEvents: "resize" + ($.support.orientation ? " orientationchange" : ""),
345
+
346
+ // Refresh iscrollview on page show event. This should be true if content inside a
347
+ // scrollview might change while the page is cached but not shown, and application hasn't
348
+ // called refresh(), or deferRefresh is false.
349
+ refreshOnPageBeforeShow: false,
350
+
351
+ // true to fix iscroll4 input element focus problem in the widget.
352
+ // false if you are using a patched iscroll4 with different fix or to
353
+ // disable for some other reason
354
+ fixInput: true,
355
+
356
+ wrapperAdd: 0, // Shouldn't be necessary, but in case user needs to fudge
357
+ // Can be + or -
358
+
359
+ // Timeout to allow page to render prior to refresh()
360
+ refreshDelay: IsAndroid ? 200 : 0, // Wild-ass guesses
361
+
362
+ // true to set the minimum height of scroller content (not including
363
+ // any pull-down or pull-up) to the height of the wrapper. Note that
364
+ // if there is a pull-down or pull-up, then this is done regardless of
365
+ // this option, because you have to be able to scroll the empty content
366
+ // to access the pull-down or pull-up. Set this option false if you do
367
+ // not want to show a scrollbar on short content. However, this will have
368
+ // the side-effect of making the "empty" part of the scroller non-draggable.
369
+ // Leaving this true provides a more consistent UI behaviour.
370
+ scrollShortContent: true,
371
+
372
+ // Normally, we need the wrapper to have no padding. Otherwise, the result will look awkward,
373
+ // you won't be able to grab the padded area to scroll, etc.
374
+ removeWrapperPadding: true,
375
+
376
+ // But we want to add that padding back inside the scroller. We add a div around the content
377
+ // inside any pull-down/pull-up to replace the padding removed from the wrapper.
378
+ addScrollerPadding: true,
379
+
380
+ // On some platforms (iOS, for example) we need to scroll to top after orientation change,
381
+ // because the address bar pushed the window down. jQuery Mobile handles this for page links,
382
+ // but doesn't for orientationchange.
383
+ // If you have multiple scrollers, only enable this for one of them
384
+ scrollTopOnResize: true,
385
+
386
+ scrollTopOnOrientatationChange: true,
387
+
388
+ // iScroll scrolls the first child of the wrapper. I don't see a use case for having more
389
+ // than one child. What kind of mess is going to be shown in that case? So, by default, we
390
+ // just wrap ALL of the children of the wrapper with a new <div> that will be the scroller.
391
+ // This way you don't need to worry about wrapping all the elements to be scrolled if there
392
+ // is more than one. If there is only one child, we create this <div> unnecessarily, but -
393
+ // big deal. If, for some reason, you want to create the markup for the scroller yourself,
394
+ // set this to false.
395
+ createScroller: true,
396
+
397
+ // True to defer refresh() on non-active pages until pagebeforeshow. This avoids
398
+ // unnecessary refresh in case of resize/orientation change when pages are cached,
399
+ // as well as unnecessary refresh when pages are updated when they are not the active
400
+ // page.
401
+ deferNonActiveRefresh: true,
402
+
403
+ // Same deal, for re-sizing the wrapper
404
+ deferNonActiveResize: true,
405
+
406
+ // True to prevent hover in scroller touch devices. If this is false, you will get
407
+ // "piano keyboard" effect in JQM <1.1 when scrolling due to hover, which is both
408
+ // time-consuming and distracting. A negative is that with the current implementation, you will
409
+ // never get a "hover" visual effect within a scroller on touch devices, even when not scrolling.
410
+ // But you still will on desktop browser with mouse, and you will still get "down" effect
411
+ // when a link is selected. This really is a jQuery Mobile problem with listview, and is
412
+ // fixed in JQM 1.1.
413
+ preventTouchHover: JQMIsV1_0 && $.support.touch, // Enable if touch device and JQM version is < 1.1
414
+
415
+ // This is an experimental feature under development and DOES NOT WORK completely!
416
+ // For one, it breaks mousewheel with jQuery Mobile 1.1 (because jQuery Mobile 1.1 breaks
417
+ // mousewheel...)
418
+ bindIscrollUsingJqueryEvents: false,
419
+
420
+ // If fastDestroy is true, don't tear down the widget on destroy. The assumption is destroy
421
+ // will only be called when the page is removed, so there is no need. Is anyone really
422
+ // going to un-enhance a scroller? If so, set this to false, but then you will have to
423
+ // fix the unbind issue...
424
+ fastDestroy: false,
425
+
426
+ // Prevent scrolling the page by grabbing areas outside of the scroller.
427
+ // Normally, this should be true. Set this false if you are NOT using a fixed-height page,
428
+ // but instead are using iScroll to scroll an area within a scollable page. If you have
429
+ // multiple scrollers on a scrollable page, then set this false for all of them.
430
+ // Note that we ALWAYS prevent scrolling the page by dragging inside the scroller.
431
+ preventPageScroll: true,
432
+
433
+ pullDownResetText : "Pull down to refresh...",
434
+ pullDownPulledText : "Release to refresh...",
435
+ pullDownLoadingText : "Loading...",
436
+ pullUpResetText : "Pull up to refresh...",
437
+ pullUpPulledText : "Release to refresh...",
438
+ pullUpLoadingText : "Loading...",
439
+
440
+ pullPulledClass : "iscroll-pull-pulled",
441
+ pullLoadingClass : "iscroll-pull-loading",
442
+
443
+ //-------------------------------------------------------------
444
+ // For better or worse, widgets have two mechanisms for dealing
445
+ // with events. The needs to be a set of options that correspond
446
+ // to each event. If present, the option is a function. As
447
+ // well, the widget prepends the widget event prefix ("iscroll_")
448
+ // to each event name and triggers a jQuery event by that name.
449
+ // BOTH mechanisms can be used simultaneously, though not sure
450
+ // why you'd want to. If you need to handle an event during
451
+ // iScroll4 instantiation, (only one I know about that might be
452
+ // called is refresh) then you have to use a function option.
453
+ //-------------------------------------------------------------
454
+ onrefresh: null,
455
+ onbeforescrollstart: null,
456
+ onscrollstart: null,
457
+ onbeforescrollmove: null,
458
+ onscrollmove: null,
459
+ onbeforescrollend: null,
460
+ onscrollend: null,
461
+ ontouchend: null,
462
+ ondestroy: null,
463
+ onzoomstart: null,
464
+ onzoom: null,
465
+ onzoomend: null,
466
+
467
+ onpulldownreset: null,
468
+ onpulldownpulled: null,
469
+ onpulldown: null,
470
+ onpullupreset: null,
471
+ onpulluppulled: null,
472
+ onpullup: null,
473
+
474
+ onbeforerefresh: null,
475
+ onafterrefresh: null
476
+ },
477
+
478
+ //---------------------------------------------------------------------------------------
479
+ // Array of keys of options that are widget-only options (not options in iscroll4 object)
480
+ //---------------------------------------------------------------------------------------
481
+ _widgetOnlyOptions: [
482
+ "debug",
483
+ "traceIscrollEvents",
484
+ "tracedIscrollEvents",
485
+ "traceIscrollCallbacks",
486
+ "tracedIscrollCallbacks",
487
+ "traceWidgetEvents",
488
+ "tracedWidgetEvents",
489
+ "traceWidgetCallbacks",
490
+ "tracedWidgetCallbacks",
491
+ "traceResizeWrapper",
492
+ "traceRefresh",
493
+ "traceCreateDestroy",
494
+ "bottomOffset",
495
+ "emulateBottomOffset",
496
+ "pageClass",
497
+ "wrapperClass",
498
+ "scrollerClass",
499
+ "pullDownClass",
500
+ "pullUpClass",
501
+ "scrollerContentClass",
502
+ "pullLabelClass",
503
+ "pullUpSpacerClass",
504
+ "fixedHeightSelector",
505
+ "resizeWrapper",
506
+ "resizeEvents",
507
+ "refreshOnPageBeforeShow",
508
+ "fixInput",
509
+ "wrapperAdd",
510
+ "refreshDelay",
511
+ "scrollShortContent",
512
+ "removeWrapperPadding",
513
+ "addScrollerPadding",
514
+ "createScroller",
515
+ "deferNonActiveRefresh",
516
+ "preventTouchHover",
517
+ "deferNonActiveResize",
518
+ "bindIscrollUsingJqueryEvents",
519
+ "scrollTopOnResize",
520
+ "scrollTopOnOrientationChange",
521
+ "pullDownResetText",
522
+ "pullDownPulledText",
523
+ "pullDownLoadingText",
524
+ "pullUpResetText",
525
+ "pullUpPulledText",
526
+ "pullUpLoadingText",
527
+ "pullPulledClass",
528
+ "pullLoadingClass",
529
+ "onpulldownreset",
530
+ "onpulldownpulled",
531
+ "onpulldown",
532
+ "onpullupreset",
533
+ "onpulluppulled",
534
+ "onpullup",
535
+ "onbeforerefresh",
536
+ "onafterrefresh",
537
+ "fastDestroy"
538
+ ],
539
+
540
+ //-----------------------------------------------------------------------
541
+ // Map of widget event names to corresponding iscroll4 object event names
542
+ //-----------------------------------------------------------------------
543
+ _event_map: {
544
+ onrefresh: "onRefresh",
545
+ onbeforescrollstart: "onBeforeScrollStart",
546
+ onscrollstart: "onScrollStart",
547
+ onbeforescrollmove: "onBeforeScrollMove",
548
+ onscrollmove: 'onScrollMove',
549
+ onbeforescrollend: 'onBeforeScrollEnd',
550
+ onscrollend: "onScrollEnd",
551
+ ontouchend: "onTouchEnd",
552
+ ondestroy: "onDetroy",
553
+ onzoomstart: "onZoomStart",
554
+ onzoom: "onZoom",
555
+ onzoomend: "onZoomEnd"
556
+ },
557
+
558
+ //------------------------------------------------------------------------------
559
+ // Functions that adapt iscroll callbacks to Widget Factory conventions.
560
+ // These are copied to the iscroll object's options object on instantiation.
561
+ // They call the private _trigger method provided by the widget factory
562
+ // base object. Normally, iscroll4 callbacks can be null or omitted. But since
563
+ // we can't know in advance whether the corresponding widget events might be bound
564
+ // or delegated in the future, we have set a callback for each that calls _trigger.
565
+ // This will call the corresponding widget callback as well as trigger the
566
+ // corresponding widget event if bound.
567
+ //
568
+ // Event callbacks are passed two values:
569
+ //
570
+ // e The underlying DOM event (if any) associated with this event
571
+ // d Data map
572
+ // iscrollview : The iscrollview object
573
+ //------------------------------------------------------------------------------
574
+
575
+ _proxy_event_funcs: {
576
+
577
+ onRefresh: function(e) {
578
+ this._doCallback("onRefresh", e, function(e) {
579
+ this._emulateBottomOffset();
580
+ this.iscrollview._pullOnRefresh.call(this.iscrollview,e);
581
+ });
582
+ },
583
+
584
+ onBeforeScrollStart: function(e) {
585
+ this._doCallback("onBeforeScrollStart", e, function(e) {
586
+ this._fixInput(e);
587
+ });
588
+ },
589
+
590
+ onScrollStart: function(e) { this._doCallback("onScrollStart", e); },
591
+
592
+ onBeforeScrollMove: function(e) {
593
+ this._doCallback("onBeforeScrollMove", e);
594
+ e.preventDefault(); // Don't scroll the page for touchmove inside scroller
595
+ },
596
+
597
+ onScrollMove: function(e) {
598
+ this._doCallback("onScrollMove", e, function(e) {
599
+ this.iscrollview._pullOnScrollMove.call(this.iscrollview, e);
600
+ });
601
+ },
602
+
603
+ onBeforeScrollEnd: function(e) { this._doCallback("onBeforeScrollEnd", e); },
604
+
605
+ onScrollEnd: function(e) {
606
+ this._doCallback("onScrollEnd", e, function(e){
607
+ this.iscrollview._pullOnScrollEnd.call(this.iscrollview, e);
608
+ });
609
+ },
610
+
611
+ onTouchEnd: function(e) { this._doCallback("onTouchEnd", e); },
612
+ onDestroy: function(e) { this._doCallback("onDestroy", e); },
613
+ onZoomStart: function(e) { this._doCallback("onZoomStart", e); },
614
+ onZoom: function(e) { this._doCallback("onZoom", e); },
615
+ onZoomEnd: function(e) { this._doCallback("onZoomEnd", e); }
616
+ },
617
+
618
+ // Merge options from the iscroll object into the widget options
619
+ // So, this will backfill iscroll4 defaults that we don't set in
620
+ // the widget, giving a full set of iscroll options, and leaving
621
+ // widget-only options untouched.
622
+ _merge_from_iscroll_options: function() {
623
+ var options = $.extend(true, {}, this.iscroll.options);
624
+ // Delete event options from the temp options
625
+ $.each(this._proxy_event_funcs, function(k,v) {delete options[k];});
626
+ if (this.options.emulateBottomOffset) { delete options.bottomOffset; }
627
+ $.extend(this.options, options); // Merge result into widget options
628
+ },
629
+
630
+ // Create a set of iscroll4 object options from the widget options.
631
+ // We have to omit any widget-specific options that are
632
+ // not also iscroll4 options. Also, copy the proxy event functions to the
633
+ // iscroll4 options.
634
+ _create_iscroll_options: function() {
635
+ var options = $.extend(true, {}, this.options); // temporary copy of widget options
636
+ // Remove options that are widget-only options
637
+ $.each(this._widgetOnlyOptions, function(i,v) {delete options[v];});
638
+ // Remove widget event options
639
+ $.each(this._event_map, function(k,v) {delete options[k];});
640
+ if (this.options.emulateBottomOffset) { delete options.bottomOffset; }
641
+ // Add proxy event functions
642
+ return $.extend(options, this._proxy_event_funcs);
643
+ },
644
+
645
+ // Formats number with fixed digits
646
+ _pad: function(num, digits, padChar) {
647
+ var str = num.toString(),
648
+ _padChar = padChar || "0";
649
+ while (str.length < digits) { str = _padChar + str; }
650
+ return str;
651
+ },
652
+
653
+ // Format time for logging
654
+ _toTime: function(date) {
655
+ return this._pad(date.getHours(), 2) + ":" +
656
+ this._pad(date.getMinutes(), 2) + ":" +
657
+ this._pad(date.getSeconds(), 2) + "." +
658
+ this._pad(date.getMilliseconds(), 3);
659
+ },
660
+
661
+ // Log a message to console
662
+ // text - message to log
663
+ // now - optional timestamp, if missing generates new timestamp
664
+ // Returns timestamp
665
+ _log: function(text, now) {
666
+ var _now, id, idStr;
667
+ if (!this.options.debug) { return null; }
668
+ _now = now || new Date();
669
+ id = this.$wrapper.attr("id");
670
+ idStr = id ? "#" + id : "";
671
+ console.log(this._toTime(_now) + " " +
672
+ $.mobile.path.parseUrl(this.$page.jqmData("url")).filename + idStr + " " +
673
+ text );
674
+ return _now;
675
+ },
676
+
677
+ // Log elapsed time from then to now
678
+ _logInterval: function(text, then) {
679
+ var now;
680
+ if (!this.options.debug) { return null; }
681
+ now = new Date();
682
+ return this._log(text + " " + (now - then) + "mS from " + this._toTime(then), now );
683
+ },
684
+
685
+ // Log an event
686
+ // Like _logInterval, but additional optional parameter e
687
+ // If e is present, additionally show interval from original event to now
688
+ _logEvent: function(text, e, then) {
689
+ var now,
690
+ eventTime,
691
+ haveEvent = e && e instanceof Object,
692
+ type = haveEvent ? e.type : e,
693
+ _text = type + " " + text;
694
+
695
+ if (!this.options.debug) { return null; }
696
+
697
+ now = new Date();
698
+
699
+ if (then) {
700
+ _text += " end " + (+(now-then)) + "mS from " + this._toTime(then);
701
+ }
702
+ else if (haveEvent) {
703
+ _text += " begin";
704
+ }
705
+ if (haveEvent) {
706
+ eventTime = new Date(e.timeStamp);
707
+ _text += " (" + (now - eventTime) + "mS from " +e.type + " @ " + this._toTime(eventTime) + ")";
708
+ }
709
+
710
+ return this._log(_text, now);
711
+ },
712
+
713
+ // Log a callback issued by iScroll
714
+ _logCallback: function(callbackName, e, then) {
715
+ if (!this.options.debug ||
716
+ !this.options.traceIscrollCallbacks ||
717
+ (this.options.tracedIscrollCallbacks.length !== 0 &&
718
+ $.inArray(callbackName, this.options.tracedIscrollCallbacks) === -1) ) {
719
+ return null;
720
+ }
721
+ if (e) { return this._logEvent(callbackName, e, then); }
722
+ if (then) { return this._logInterval(callbackName + " end", then); }
723
+ return this._log(callbackName + " begin");
724
+ },
725
+
726
+ // Log an event handled by Iscroll
727
+ // e can be Event or event name
728
+ _logIscrollEvent: function(text, e, then) {
729
+ var haveEvent = e instanceof Event,
730
+ type = haveEvent ? e.type : e;
731
+ if (!this.options.debug ||
732
+ !this.options.traceIscrollEvents ||
733
+ (this.options.tracedIscrollEvents.length !== 0 &&
734
+ $.inArray(type, this.options.tracedIscrollEvents) === -1)) {
735
+ return null;
736
+ }
737
+ return this._logEvent(text, e, then);
738
+ },
739
+
740
+ // Log an event handled by the widget
741
+ _logWidgetEvent: function(text, e, then) {
742
+ var haveEvent = e instanceof Object,
743
+ type = haveEvent ? e.type : e;
744
+ if (!this.options.debug ||
745
+ !this.options.traceWidgetEvents ||
746
+ (this.options.tracedWidgetEvents.length !== 0 &&
747
+ $.inArray(type, this.options.tracedWidgetEvents) === -1)) {
748
+ return null;
749
+ }
750
+ return this._logEvent(text, e, then);
751
+ },
752
+
753
+ // Log a callback issued by the widtet
754
+ _logWidgetCallback: function(callbackName, e, then) {
755
+ if (!this.options.debug ||
756
+ !this.options.traceWidgetCallbacks ||
757
+ (this.options.tracedWidgetCallbacks.length !== 0 &&
758
+ $.inArray(callbackName, this.options.tracedWidgetCallbacks) === -1) ) {
759
+ return null;
760
+ }
761
+ if (e) { return this._logEvent(callbackName, e, then); }
762
+ if (then) { return this._logInterval(callbackName + " end", then); }
763
+ return this._log(callbackName + " begin");
764
+ },
765
+
766
+ // Log elapsed time from then to now and later to now
767
+ _logInterval2: function(text, then, later) {
768
+ var now;
769
+ if (!this.options.debug) { return; }
770
+ now = new Date();
771
+ this._log(text + " " +
772
+ (now - later) + "mS from " + this._toTime(later) +
773
+ " (" + (now - then) + "mS from " + this._toTime(then) + ")" );
774
+ },
775
+
776
+ _startTiming: function() {
777
+ if (!this.options.debug) { return null; }
778
+ return new Date();
779
+ },
780
+
781
+ // Returns the event namespace for the page containing this widget
782
+ _pageEventNamespace: function() {
783
+ return ".iscroll_" + this.pageID;
784
+ },
785
+
786
+ // Returns the event namespace for this widget
787
+ _instanceEventNamespace: function() {
788
+ return this._pageEventNamespace() + "_" + this.instanceID;
789
+ },
790
+
791
+ // Takes a space-separated list of event types, and appends the given namespace to each
792
+ _addEventsNamespace: function(types_in, namespace) {
793
+ var types = types_in.split(" ");
794
+ $.each(types, function(k,v) {types[k] += namespace;});
795
+ return types.join(" ");
796
+ },
797
+
798
+ // All bind/unbind done by the widget goes through here, to permit logging
799
+ _bind: function(obj, types_in, func, objName) {
800
+ var types = this._addEventsNamespace(types_in, this._instanceEventNamespace());
801
+ this._logWidgetEvent("bind " + objName, types);
802
+ obj.bind(types, $.proxy(func, this));
803
+ },
804
+
805
+ _bindPage: function(types_in, func) {
806
+ var types = this._addEventsNamespace(types_in, this._pageEventNamespace());
807
+ this._logWidgetEvent("bind $page", types);
808
+ this.$page.bind(types, $.proxy(func, this));
809
+ },
810
+
811
+ _unbind: function(obj, types_in, objName) {
812
+ var types = this._addEventsNamespace(types_in, this._instanceEventNamespace());
813
+ this._logWidgetEvent("unbind " + objName, types);
814
+ obj.unbind(types);
815
+ },
816
+
817
+ _unbindPage: function(types_in) {
818
+ var types = this._addEventsNamespace(types_in, this._instanceEventNamespace());
819
+ this._logWidgetEvent("unbind $page", types);
820
+ this.$page.unbind(types);
821
+ },
822
+
823
+ // Currently unused - just in case we need it
824
+ _delegate: function(obj, selector, type, func, objName) {
825
+ this._logWidgetEvent("delegate " + objName + " " + selector, type);
826
+ obj.delegate(selector, type, $.proxy(func, this));
827
+ },
828
+
829
+ _triggerWidget: function(type, e) {
830
+ var then = this._logWidgetCallback(type);
831
+ this._trigger(type, e, {"iscrollview":this});
832
+ this._logWidgetCallback(type, e, then);
833
+ },
834
+
835
+ //-------------------------------------------------------------------
836
+ // Returns status of dirty flag, indicating that refresh() was called
837
+ // while the page was not active, and refresh will be deferred until
838
+ // pagebeforeshow.
839
+ //-------------------------------------------------------------------
840
+ isDirty: function() {
841
+ return this._dirty;
842
+ },
843
+
844
+ //-----------------------------------------------------------------------------
845
+ // Restore an element's styles to original
846
+
847
+ // If the style was never modified by the widget, the value passed in
848
+ // originalStyle will be undefined.
849
+ //
850
+ //If there originally was no style attribute, but styles were added by the
851
+ // widget, the value passed in originalStyle will be null.
852
+ //
853
+ // If there originally was a style attribute, but the widget modified it
854
+ // (actually, set some CSS, which changes the style, the value is a string in
855
+ // originalStyle.
856
+ //-----------------------------------------------------------------------------
857
+ _restoreStyle: function($ele, originalStyle) {
858
+ if (originalStyle === undefined) { return; }
859
+ if (originalStyle === null) { $ele.removeAttr("style"); }
860
+ else { $ele.attr("style", originalStyle); }
861
+ },
862
+
863
+ //------------------------------------------------------------------------------
864
+ // Functions that we bind to. They are declared as named members rather than as
865
+ // inline closures so we can properly unbind them.
866
+ //------------------------------------------------------------------------------
867
+ _pageBeforeShowFunc: function(e) {
868
+ var then = this._logWidgetEvent("_pageBeforeShowFunc", e);
869
+ if (this._dirty) {
870
+ this.resizeWrapper();
871
+ this.refresh(null, this._dirtyCallbackBefore, this._dirtyCallbackAfter, true);
872
+ this._dirty = false;
873
+ this._dirtyCallbackBefore = null;
874
+ this._dirtyCallbackAfter = null;
875
+ }
876
+ else if (this.options.refreshOnPageBeforeShow || this._sizeDirty) {
877
+ this.refresh(null,$.proxy(this._resizeWrapper, this),null,true);
878
+ }
879
+ this._sizeDirty = false;
880
+ this._logWidgetEvent("_pageBeforeShowFunc", e, then);
881
+ },
882
+
883
+ // Called on resize events
884
+ // TODO: Detect if size is unchanged, and if so just ignore?
885
+ _windowResizeFunc: function(e) {
886
+ var then = this._logWidgetEvent("_windowResizeFunc", e);
887
+ // Defer if not active page
888
+ if (this.options.deferNonActiveResize && !(this.$page.is($.mobile.activePage))) {
889
+ this._sizeDirty = true;
890
+ if (this.options.traceResizeWrapper) { this._log("resizeWrapper() (deferred)"); }
891
+ }
892
+ else {
893
+ this.resizeWrapper();
894
+ this.refresh(null,null,null,true);
895
+ }
896
+ this._logWidgetEvent("_windowResizeFunc", e, then);
897
+ },
898
+
899
+ // On some platforms (iOS, for example) you need to scroll back to top after orientation change,
900
+ // because the address bar pushed the window down. jQuery Mobile handles this for page links,
901
+ // but doesn't for orientationchange
902
+ _orientationChangeFunc: function(e) {
903
+ var then = this._logWidgetEvent("_orientationChangeFunc", e);
904
+ if (this.options.scrollTopOnOrientationChange) {
905
+ $.mobile.silentScroll(0);
906
+ }
907
+ this._logWidgetEvent("_orientationChangeFunc", e, then);
908
+ },
909
+
910
+ // Get or set the count of instances on the page containing the widget
911
+ // This increases or decreases depending on the number of iscrollview widgets currently
912
+ // instantiated on the page.
913
+ _instanceCount: function(count_in) {
914
+ var key = "iscroll-private",
915
+ count = 0,
916
+ data = this.$page.jqmData(key) || {};
917
+ if (count_in !== undefined) {
918
+ count = count_in;
919
+ data.instanceCount = count;
920
+ this.$page.jqmData(key, data);
921
+ }
922
+ else {
923
+ if (data.instanceCount !== undefined) {
924
+ count = data.instanceCount;
925
+ }
926
+ }
927
+ return count;
928
+ },
929
+
930
+ _nextInstanceID: function(id_in) {
931
+ var key = "iscroll-private",
932
+ id = 1,
933
+ data = this.$page.jqmData(key) || {};
934
+ if (id_in !== undefined) {
935
+ id = id_in;
936
+ data.nextInstanceID = id;
937
+ this.$page.jqmData(key, data);
938
+ }
939
+ else {
940
+ if (data.nextInstanceID !== undefined) {
941
+ id = data.nextInstanceID;
942
+ }
943
+ }
944
+ return id;
945
+ },
946
+
947
+ _pageID: function(id_in) {
948
+ var key = "iscroll-private",
949
+ id = 1,
950
+ data = this.$page.jqmData(key) || {};
951
+ if (id_in !== undefined) {
952
+ id = id_in;
953
+ data.pageID = id;
954
+ this.$page.jqmData(key, data);
955
+ }
956
+ else {
957
+ if (data.pageID !== undefined) {
958
+ id = data.pageID;
959
+ }
960
+ }
961
+ return id;
962
+ },
963
+
964
+ //--------------------------------------------------------------------------
965
+ // Adapt the page for this widget
966
+ //--------------------------------------------------------------------------
967
+ _adaptPage: function() {
968
+ var _this = this;
969
+
970
+ // Only adapt the page if this is the only iscrollview widget instantiated on the page
971
+ // If the count >1, then the page has already been adapted. When the count goes back
972
+ // to 0, the changes will be un-done
973
+ if (this._instanceCount() === 1) {
974
+ this.$page.addClass(this.options.pageClass);
975
+ this.$page.find(this.options.fixedHeightSelector).each(function() { // Iterate over headers/footers/etc.
976
+ $(this).addClass(_this.options.fixedHeightClass);
977
+ });
978
+ if ($.support.touch && this.options.preventPageScroll) {
979
+ this._bindPage("touchmove", _pageTouchmoveFunc);
980
+ }
981
+ }
982
+ },
983
+
984
+ _undoAdaptPage: function() {
985
+ var _this = this;
986
+ if (this._instanceCount() === 1) {
987
+ this.$page.find(this.options.fixedHeightSelector).each(function() { // Iterate over headers/footers/etc.
988
+ $(this).removeClass(_this.options.fixedHeightClass);
989
+ });
990
+ this.$page.removeClass(this.options.pageClass);
991
+ }
992
+ },
993
+
994
+ //--------------------------------------------------------
995
+ // Calculate total bar heights.
996
+ //--------------------------------------------------------
997
+ _calculateBarsHeight: function() {
998
+ var barsHeight = 0,
999
+ fixedHeightSelector = "." + this.options.fixedHeightClass,
1000
+ // Persistent footers are sometimes inside the page, sometimes outside of all pages! (as
1001
+ // direct descendant of <body>). And sometimes both. During transitions, the page that
1002
+ // is transitioning in will have had it's persistent footer moved outside of the page,
1003
+ // while all other pages will have their persistent footer internal to the page.
1004
+ //
1005
+ // To deal with this, we find iscroll-fixed elements in the page, as well as outside
1006
+ // of the page (as direct descendants of <body>). We avoid double-counting persistent
1007
+ // footers that have the same data-id. (Experimentally, then, we also permit the user
1008
+ // to place fixed-height elements outside of the page, but unsure if this is of any
1009
+ // practical use.)
1010
+ $barsInPage = this.$page.find(fixedHeightSelector),
1011
+ $barsOutsidePage = $("body").children(fixedHeightSelector);
1012
+
1013
+ $barsInPage.each(function() { // Iterate over headers/footers/etc.
1014
+ barsHeight += $(this).outerHeight(true);
1015
+ });
1016
+
1017
+ $barsOutsidePage.each(function() {
1018
+ var id = $(this).jqmData("id"); // Find data-id if present
1019
+ // Count bars outside of the page if they don't have data-id (so not a persistent
1020
+ // footer, but something the developer put there and tagged with data-iscroll-fixed class),
1021
+ // or if a matching data-id is NOT found among the bars that are inside the page.
1022
+ if (id === "" || !$barsInPage.is(":jqmData(id='" + id + "')'")) {
1023
+ barsHeight += $(this).outerHeight(true);
1024
+ }
1025
+ });
1026
+ return barsHeight;
1027
+ },
1028
+
1029
+ //-----------------------------------------------------------------------
1030
+ // Determine the box-sizing model of an element
1031
+ // While jQuery normalizes box-sizing models when retriving geometry,
1032
+ // it doesn't consider it when SETTING geometry. So, this is useful when
1033
+ // setting geometry. (e.g. the height of the wrapper)
1034
+ //-----------------------------------------------------------------------
1035
+ _getBoxSizing: function($elem) {
1036
+ var boxSizing,
1037
+ prefix = "";
1038
+
1039
+ if (IsFirefox) { prefix = "-moz-"; }
1040
+ else if (IsWebkit) { prefix = "-webkit-"; } // note: can drop prefix for Chrome >=10, Safari >= 5.1 (534.12)
1041
+ boxSizing = $elem.css(prefix + "box-sizing");
1042
+ if (!boxSizing && prefix) { boxSizing = $elem.css("box-sizing"); } // Not found, try again with standard CSS
1043
+ if (!boxSizing) { // Still not found - no CSS property available to guide us.
1044
+ // See what JQuery thinks the global box model is
1045
+ if ($.boxModel) { boxSizing = "content-box"; }
1046
+ else { boxSizing = "border-box"; }
1047
+ }
1048
+ return boxSizing;
1049
+ },
1050
+
1051
+ //-----------------------------------------------------------------
1052
+ // Get the height adjustment for setting the height of an element,
1053
+ // based on the content-box model
1054
+ //-----------------------------------------------------------------
1055
+ _getHeightAdjustForBoxModel: function($elem) {
1056
+ // Take into account the box model. This defaults to either W3C or traditional
1057
+ // model for a given browser, but can be overridden with CSS
1058
+ var adjust;
1059
+ switch (this._getBoxSizing($elem)) {
1060
+ case "border-box": // AKA traditional, or IE5 (old browsers and IE quirks mode)
1061
+ // only subtract margin
1062
+ adjust = $elem.outerHeight(true) - $elem.outerHeight();
1063
+ break;
1064
+
1065
+ case "padding-box": // Firefox-only
1066
+ // subtract margin and border
1067
+ adjust = $elem.outerHeight() - $elem.height();
1068
+ break;
1069
+
1070
+ case "content-box": // AKA W3C Ignore jshint warning
1071
+ default: // Ignore jslint warning
1072
+ // We will subtract padding, border, margin
1073
+ adjust = $elem.outerHeight(true) - $elem.height();
1074
+ break;
1075
+ }
1076
+ return adjust;
1077
+ },
1078
+
1079
+ //--------------------------------------------------------
1080
+ // If there's a pull-down element, we need to set the
1081
+ // topOffset to the height of that element. If user
1082
+ // specified a topOffset option, use that instead, though.
1083
+ //--------------------------------------------------------
1084
+ _setTopOffsetForPullDown: function() {
1085
+ if (this.$pullDown.length && !this.options.topOffset) {
1086
+ this.options.topOffset = this.$pullDown.outerHeight(true);
1087
+ }
1088
+ },
1089
+
1090
+ //--------------------------------------------------------
1091
+ // If there's a pull-up element, we need to set the
1092
+ // bottomOffset to the height of that element. If user
1093
+ // specified a bottomOffset option, use that instead, though.
1094
+ //--------------------------------------------------------
1095
+ _setBottomOffsetForPullUp: function() {
1096
+ if (this.$pullUp.length && !this.options.bottomOffset) {
1097
+ this.options.bottomOffset = this.$pullUp.outerHeight(true);
1098
+ }
1099
+ },
1100
+
1101
+ _removeWrapperPadding: function() {
1102
+ var $wrapper = this.$wrapper;
1103
+ if (this.options.removeWrapperPadding) {
1104
+ // Save padding so we can re-apply it to the iscroll-content div that we create
1105
+ this._origWrapperPaddingLeft = $wrapper.css("padding-left");
1106
+ this._origWrapperPaddingRight = $wrapper.css("padding-right");
1107
+ this._origWrapperPaddingTop = $wrapper.css("padding-top");
1108
+ this._origWrapperPaddingBottom = $wrapper.css("padding-bottom");
1109
+ this.$wrapper.css("padding", 0);
1110
+ }
1111
+ },
1112
+
1113
+ //---------------------------------------------------------
1114
+ // Modify some wrapper CSS
1115
+ //---------------------------------------------------------
1116
+ _modifyWrapperCSS: function() {
1117
+ this._origWrapperStyle = this.$wrapper.attr("style") || null;
1118
+ this._removeWrapperPadding();
1119
+ },
1120
+
1121
+ _undoModifyWrapperCSS: function() {
1122
+ this._restoreStyle(this.$wrapper, this._origWrapperStyle);
1123
+ },
1124
+
1125
+ //---------------------------------------------------------
1126
+ // Adds padding around scrolled content (not including
1127
+ // any pull-down or pull-up) using a div with padding
1128
+ // removed from wrapper.
1129
+ //---------------------------------------------------------
1130
+ _addScrollerPadding: function () {
1131
+ if (this.options.removeWrapperPadding && this.options.addScrollerPadding) {
1132
+ // We do not store $scrollerContent in the object, because elements might be added/deleted
1133
+ // after instantiation. When we undo, we need the CURRENT children in order to unwrap
1134
+ var $scrollerContentWrapper,
1135
+ $scrollerChildren = this.$scroller.children(),
1136
+ $scrollerContent = $scrollerChildren.not(this.$pullDown).not(this.$pullUp).not(this.$pullUpSpacer);
1137
+ $scrollerContent.wrapAll("<div/>");
1138
+
1139
+ $scrollerContentWrapper = $scrollerContent.parent().addClass(this.options.scrollerContentClass);
1140
+ $scrollerContentWrapper.css({
1141
+ "padding-left" : this._origWrapperPaddingLeft,
1142
+ "padding-right" : this._origWrapperPaddingRight,
1143
+ "padding-top" : this._origWrapperPaddingTop,
1144
+ "padding-bottom" : this._origWrapperPaddingBottom
1145
+ });
1146
+ }
1147
+ },
1148
+
1149
+ _undoAddScrollerPadding: function () {
1150
+ if (this.options.removeWrapperPadding && this.options.addScrollerPadding) {
1151
+ $("." + this.options.scrollerContentClass, this.$scroller).children().unwrap();
1152
+ }
1153
+ },
1154
+
1155
+ //---------------------------------------------------------
1156
+ // Add some convenient classes in case user wants to style
1157
+ // wrappers/scrollers that use iscroll.
1158
+ //---------------------------------------------------------
1159
+ _addWrapperClasses: function() {
1160
+ this.$wrapper.addClass(this.options.wrapperClass);
1161
+ this.$scroller.addClass(this.options.scrollerClass);
1162
+ },
1163
+
1164
+ _undoAddWrapperClasses: function() {
1165
+ this.$scroller.removeClass(this.options.scrollerClass);
1166
+ this.$wrapper.removeClass(this.options.wrapperClass);
1167
+ },
1168
+
1169
+ //--------------------------------------------------------
1170
+ // Expands the scroller to fill the wrapper. This permits
1171
+ // dragging an empty scroller, or one that is shorter than
1172
+ // the wrapper. Otherwise, you could never do pull to
1173
+ // refresh if some content wasn't initially present. As
1174
+ // well, this pushes any pull-up element down so that it
1175
+ // will not be visible until the user pulls up.
1176
+ //--------------------------------------------------------
1177
+ _expandScrollerToFillWrapper: function() {
1178
+ if (this.options.scrollShortContent || this.$pullDown.length || this.pullUp.length) {
1179
+ if (this._firstScrollerExpand) {
1180
+ this._origScrollerStyle = this.$scroller.attr("style") || null;
1181
+ this._firstScrollerExpand = false;
1182
+ }
1183
+
1184
+ this.$scroller.css("min-height",
1185
+ this.$wrapper.height() +
1186
+ (this.$pullDown.length ? this.$pullDown.outerHeight(true) : 0) +
1187
+ (this.$pullUp.length ? this.$pullUp.outerHeight(true) : 0)
1188
+ );
1189
+ }
1190
+ },
1191
+
1192
+ _undoExpandScrollerToFillWrapper: function() {
1193
+ this._restoreStyle(this.$scroller, this._origScrollerStyle);
1194
+ },
1195
+
1196
+ //--------------------------------------------------------
1197
+ //Resize the wrapper for the scrolled region to fill the
1198
+ // viewport remaining after all fixed-height elements
1199
+ //--------------------------------------------------------
1200
+ _resizeWrapper: function() {
1201
+ var then = null,
1202
+ viewportHeight,
1203
+ barsHeight,
1204
+ newWrapperHeight;
1205
+
1206
+ if (!this.options.resizeWrapper) {
1207
+ return;
1208
+ }
1209
+ if (this.options.traceResizeWrapper) {
1210
+ then = this._log("resizeWrapper() start");
1211
+ }
1212
+ this.$page.trigger("updatelayout"); // Let jQuery mobile update fixed header/footer, collapsables, etc.
1213
+ viewportHeight = this.$window.height();
1214
+ barsHeight = this._calculateBarsHeight();
1215
+
1216
+ newWrapperHeight =
1217
+ viewportHeight -
1218
+ barsHeight - // Height of fixed bars or "other stuff" outside of the wrapper
1219
+ this._wrapperHeightAdjustForBoxModel + // Make adjustment based on content-box model
1220
+ // Note: the following will fail for Safari desktop with Develop/User Agent/iPhone
1221
+ // Fake fullscreen or webview by using custom user agent and removing "Safari" from string
1222
+ (IsMobileSafari && !IsIPad ? 60 : 0) + // Add 60px for space recovered from Mobile Safari address bar
1223
+ this.options.wrapperAdd; // User-supplied fudge-factor if needed
1224
+
1225
+ this.$wrapper.css("height", newWrapperHeight);
1226
+
1227
+
1228
+
1229
+ this._expandScrollerToFillWrapper();
1230
+
1231
+
1232
+ if (this.options.traceResizeWrapper) {
1233
+ this._logInterval("resizeWrapper() end" + (this._sizeDirty ? " (dirty)" : ""), then);
1234
+ }
1235
+ },
1236
+
1237
+ resizeWrapper: function () {
1238
+ var hidden = this._setPageVisible();
1239
+ this._resizeWrapper();
1240
+ this._restorePageVisibility(hidden);
1241
+ },
1242
+
1243
+ _undoResizeWrapper: function() {
1244
+ },
1245
+
1246
+ //---------------------------------------------------------
1247
+ // Make various modifications to the wrapper
1248
+ //---------------------------------------------------------
1249
+ _modifyWrapper: function() {
1250
+ this._addWrapperClasses();
1251
+ this._modifyWrapperCSS();
1252
+
1253
+ this._wrapperHeightAdjustForBoxModel = this._getHeightAdjustForBoxModel(this.$wrapper);
1254
+ },
1255
+
1256
+ _undoModifyWrapper: function() {
1257
+ this._undoResizeWrapper();
1258
+ this._undoModifyWrapperCSS();
1259
+ this._undoAddWrapperClasses();
1260
+ },
1261
+
1262
+ //--------------------------------------------------------
1263
+ // Modify the pull-down (if any) with reset text
1264
+ // Also, read data-iscroll-release and data-iscroll-loading
1265
+ // values (if present ) into the corresponding options.
1266
+ //--------------------------------------------------------
1267
+ _modifyPullDown: function () {
1268
+ var $pullDownLabel, pulledText, loadingText;
1269
+ if (this.$pullDown.length === 0) { return; }
1270
+ $pullDownLabel = $("." + this.options.pullLabelClass, this.$pullDown);
1271
+ if ($pullDownLabel.length) {
1272
+ this._origPullDownLabelText = $pullDownLabel.text();
1273
+ if (this._origPullDownLabelText) { this.options.pullDownResetText = this._origPullDownLabelText; }
1274
+ else { $pullDownLabel.text(this.options.pullDownResetText); }
1275
+ pulledText = $pullDownLabel.jqmData("iscroll-pulled-text");
1276
+ if (pulledText) { this.options.pullDownPulledText = pulledText; }
1277
+ loadingText = $pullDownLabel.jqmData("iscroll-loading-text");
1278
+ if (loadingText) { this.options.pullDownLoadingText = loadingText; }
1279
+ }
1280
+ },
1281
+
1282
+ _undoModifyPullDown: function () {
1283
+ if (this.$pullDown.length === 0) { return; }
1284
+ var $pullDownLabel = $("." + this.options.pullLabelClass, this.$pullDown);
1285
+ if ($pullDownLabel.length === 0) { return; }
1286
+ $pullDownLabel.text(this._origPullDownLabelText);
1287
+ },
1288
+
1289
+ //--------------------------------------------------------
1290
+ // Modify the pullup element (if any) to prevent visual
1291
+ // glitching. Position at the bottom of the scroller.
1292
+ //
1293
+ // Modify the pull-up (if any) with reset text
1294
+ // Also, read data-iscroll-release and data-iscroll-loading
1295
+ // values (if present ) into the corresponding options.
1296
+ //--------------------------------------------------------
1297
+ _modifyPullUp: function () {
1298
+ var $pullUpLabel, pulledText, loadingText;
1299
+
1300
+ if (this.$pullUp.length === 0) { return; }
1301
+
1302
+ // Since we are positioning the pullUp element absolutely, it is pulled out of the
1303
+ // document flow. We need to add a dummy <div> with the same height as the pullUp.
1304
+ $("<div></div>").insertBefore(this.$pullUp).css(
1305
+ "height", this.$pullUp.outerHeight(true) );
1306
+ this.$pullUpSpacer = this.$pullUp.prev();
1307
+ this.$pullUpSpacer.addClass(this.options.pullUpSpacerClass);
1308
+
1309
+ $pullUpLabel = $("." + this.options.pullLabelClass, this.$pullUp);
1310
+ if ($pullUpLabel.length) {
1311
+ this._origPullUpLabelText = $pullUpLabel.text();
1312
+ if (this._origPullUpLabelText) { this.options.pullUpResetText = this._origPullUpLabelText; }
1313
+ else { $pullUpLabel.text(this.options.pullUpResetText); }
1314
+ pulledText = $pullUpLabel.jqmData("iscroll-pulled-text");
1315
+ if (pulledText) { this.options.pullUpPulledText = pulledText; }
1316
+ loadingText = $pullUpLabel.jqmData("iscroll-loading-text");
1317
+ if (loadingText) { this.options.pullUpLoadingText = loadingText; }
1318
+ }
1319
+
1320
+ },
1321
+
1322
+ _undoModifyPullUp: function () {
1323
+ if (this.$pullUp.length === 0) { return; }
1324
+ this.$pullUp.prev().remove(); // Remove the dummy div
1325
+ if (this._origPullUpLabelText) {
1326
+ $("." + this.options.pullLabelClass, this.$pullUp).text(this._origPullUpLabelText);
1327
+ }
1328
+ },
1329
+
1330
+ _correctPushedDownPage: function() {
1331
+ // Scroll to top in case address bar pushed the page down
1332
+ if (this.options.resizeWrapper && this.options.scrollTopOnResize) {
1333
+ $.mobile.silentScroll(0);
1334
+ }
1335
+ },
1336
+
1337
+ //----------------------------------------------------------------------
1338
+ // Refresh the iscroll object. Insure that refresh is called with proper
1339
+ // timing. Call optional before and after refresh callbacks and trigger
1340
+ // before and after refresh events.
1341
+ //-----------------------------------------------------------------------
1342
+ refresh: function(delay, callbackBefore, callbackAfter, noDefer) {
1343
+
1344
+ var _this, _delay, _callbackBefore, _callbackAfter, _noDefer, then;
1345
+
1346
+ // If non-active-page refresh is deferred, make a note of it.
1347
+ // Note that each call to refresh() overwrites the callback and context variables.
1348
+ // Our expectation is that callback and context will be identical for all such refresh
1349
+ // calls. In any case, only the last callback and context will be used. This allows
1350
+ // refresh of jQuery Mobile widgets within the scroller to be deferred, as well.
1351
+ if (!noDefer && this.options.deferNonActiveRefresh && !(this.$page.is($.mobile.activePage))) {
1352
+ this._dirty = true;
1353
+ this._dirtyCallbackBefore = callbackBefore;
1354
+ this._dirtyCallbackAfter = callbackAfter;
1355
+ if (this.options.traceRefresh) {
1356
+ this._log("refresh() (deferred)");
1357
+ }
1358
+ return;
1359
+ }
1360
+
1361
+ // Let the browser complete rendering, then refresh the scroller
1362
+ //
1363
+ // Optional delay parameter for timeout before actually calling iscroll.refresh().
1364
+ // If missing (undefined) or null, use options.refreshDelay.
1365
+ //
1366
+ // Optional callback parameters are called if present before and after iScroll internal
1367
+ // refresh() is called. While the caller might bind to the before or after refresh events,
1368
+ // this can be more convenient and avoids any ambiguity over WHICH call to refresh is involved.
1369
+ _this = this;
1370
+ _delay = delay;
1371
+ _callbackBefore = callbackBefore;
1372
+ _callbackAfter = callbackAfter;
1373
+ _noDefer = noDefer;
1374
+ then = this._startTiming();
1375
+ if ((_delay === undefined) || (_delay === null) ) { _delay = this.options.refreshDelay; }
1376
+
1377
+ setTimeout(function() {
1378
+ var later = null,
1379
+ hidden;
1380
+
1381
+ if (_this.options.traceRefresh) {
1382
+ later = _this._logInterval("refresh() start", then);
1383
+ }
1384
+
1385
+ hidden = _this._setPageVisible();
1386
+ if (_callbackBefore) { _callbackBefore(); }
1387
+ _this._triggerWidget("onbeforerefresh");
1388
+ _this.iscroll.refresh();
1389
+ _this._triggerWidget("onafterrefresh");
1390
+ if (_callbackAfter) { _callbackAfter(); }
1391
+ _this._restorePageVisibility(hidden);
1392
+
1393
+ // Scroll to top in case address bar pushed the page down
1394
+ if (!hidden) { _this._correctPushedDownPage(); }
1395
+
1396
+ if (_this.options.traceRefresh) {
1397
+ _this._logInterval2("refresh() end" + (_noDefer ? " (dirty)" : ""), then, later);
1398
+ }
1399
+ }, _delay);
1400
+
1401
+ if (this.options.traceRefresh) {
1402
+ this._log("refresh() will occur after >= " + _delay + "mS");
1403
+ }
1404
+
1405
+ },
1406
+
1407
+
1408
+ //---------------------------
1409
+ // Create the iScroll object
1410
+ //---------------------------
1411
+ _create_iscroll_object: function() {
1412
+ /*jslint newcap:true */
1413
+ this.iscroll = new IScroll(this, this.$wrapper.get(0), this._create_iscroll_options());
1414
+ /* jslint newcap:false */
1415
+ },
1416
+
1417
+ //-----------------------------------------
1418
+ // Create scroller
1419
+ //-----------------------------------------
1420
+ _createScroller: function() {
1421
+ if (this.options.createScroller) {
1422
+ this.$wrapper.children().wrapAll("<div/>");
1423
+ }
1424
+ },
1425
+
1426
+ _undoCreateScroller: function() {
1427
+ if (this.options.createScroller) {
1428
+ this.$scroller.children().unwrap();
1429
+ }
1430
+ },
1431
+
1432
+ // Temporarily change page CSS to make it "visible" so that dimensions can be read.
1433
+ // This can be used in any event callback, and so can be used in _create(), since it's called
1434
+ // from pageinit event. Because event processing is synchronous, the browser won't render the
1435
+ // change, as long as the page style is set back before the callback returns. So, a hidden
1436
+ // page will remain hidden as long as _restorePageVisibility() is called before return.
1437
+ // This way, we can just use normal dimension functions and avoid using jquery.actual, which
1438
+ // slows things down significantly.
1439
+ //
1440
+ // jquery.actual goes up the tree from the element being measured and sets every element to
1441
+ // visible, which is unnecessary. (We only have to be concerned about the page element, which
1442
+ // jQuery Mobile sets to display:none for all but the currently-visible page.) It also does this
1443
+ // for every dimension read. This essentially does the same thing, but then allows us to "batch"
1444
+ // reading dimensions
1445
+ _setPageVisible: function() {
1446
+ var hidden = this.$page.is(":hidden");
1447
+ if (hidden) { this.$page.css("display", "block"); }
1448
+ return hidden;
1449
+ },
1450
+
1451
+ _restorePageVisibility: function(hidden) {
1452
+ if (hidden) { this.$page.css("display", ""); }
1453
+ },
1454
+
1455
+ //-----------------------------------------
1456
+ // Automatically called on page creation
1457
+ //-----------------------------------------
1458
+ _create: function() {
1459
+ var then = new Date(),
1460
+ hidden;
1461
+
1462
+ this.$wrapper = this.element; // JQuery object containing the element we are creating this widget for
1463
+ this.$page = this.$wrapper.parents(":jqmData(role='page')"); // The page containing the wrapper
1464
+
1465
+ if (this.options.debug && this.options.traceCreateDestroy) {
1466
+ this._log("_create() start", then);
1467
+ }
1468
+
1469
+ this.createdAt = then;
1470
+ this._instanceCount(this._instanceCount() + 1); // The count of extant instances of this widget on the page
1471
+ this.instanceID = this._nextInstanceID(); // The serial ID of this instance of this widget on the page
1472
+ this._nextInstanceID(this._instanceID + 1);
1473
+ if (this.instanceID === 1) {
1474
+ this._pageID(nextPageID);
1475
+ nextPageID += 1;
1476
+ }
1477
+ this.pageID = this._pageID();
1478
+
1479
+ hidden = this._setPageVisible(); // Fake page visibility, so dimension functions work
1480
+ this._adaptPage();
1481
+ this._createScroller();
1482
+ this.$scroller = this.$wrapper.children(":first"); // Get the first child of the wrapper, which is the
1483
+ // element that we will scroll
1484
+ if (this.$scroller.length === 0) { return; }
1485
+
1486
+ // Find pull elements, if present
1487
+ this.$pullDown = $("." + this.options.pullDownClass, this.$scroller);
1488
+ this._modifyPullDown();
1489
+
1490
+ this.$pullUp = $("." + this.options.pullUpClass, this.$scroller);
1491
+ this._modifyPullUp();
1492
+
1493
+ // Merge options from data-iscroll, if present
1494
+ $.extend(true, this.options, this.$wrapper.jqmData("iscroll"));
1495
+
1496
+ this._modifyWrapper(); // Various changes to the wrapper
1497
+
1498
+ // Need this for deferred refresh processing
1499
+ this._bindPage("pagebeforeshow", this._pageBeforeShowFunc);
1500
+
1501
+ this._setTopOffsetForPullDown(); // If there's a pull-down, set the top offset
1502
+ this._setBottomOffsetForPullUp(); // If there's a pull-up, set the bottom offset
1503
+
1504
+ this._resizeWrapper(); // Resize the wrapper to fill available space
1505
+ this._addScrollerPadding(); // Put back padding removed from wrapper
1506
+ this._create_iscroll_object();
1507
+ this._merge_from_iscroll_options(); // Merge iscroll options into widget options
1508
+ this._restorePageVisibility(hidden);
1509
+
1510
+ // Setup bindings for window resize and orientationchange
1511
+
1512
+ if (this.options.resizeWrapper) {
1513
+ this._bind(this.$window, this.options.resizeEvents, this._windowResizeFunc, "$window");
1514
+ if (this.options.scrollTopOnOrientationChange) {
1515
+ this._bind(this.$window, "orientationchange", this._orientationChangeFunc, "$window");
1516
+ }
1517
+ }
1518
+
1519
+ if (this.options.debug && this.options.traceCreateDestroy) {
1520
+ this._logInterval("_create() end", then);
1521
+ }
1522
+ },
1523
+
1524
+ //----------------------------------------------------------
1525
+ // Destroy an instantiated plugin and clean up modifications
1526
+ // the widget has made to the DOM
1527
+ //----------------------------------------------------------
1528
+ destroy: function () {
1529
+ var then = null;
1530
+ if (this.options.debug && this.options.traceCreateDestroy) {
1531
+ then = this._log("destroy() start");
1532
+ }
1533
+
1534
+ // Unbind events
1535
+ this._unbind(this.$window, this.options.resizeEvents, "$window");
1536
+ this._unbind(this.$window, "orientationchange", "$window");
1537
+ if (this._instanceCount() === 1) {
1538
+ this._unbindPage("pagebeforeshow");
1539
+ if ($.support.touch) {
1540
+ this._unbindPage("touchmove");
1541
+ }
1542
+ }
1543
+
1544
+ // fastDestroy option skips tearing down the modifications to the page, because we assume
1545
+ // that the page itself is being removed, and nobody is going to be silly enough to
1546
+ // un-ehance a scroller and keep the page.
1547
+ if (!this.options.fastDestroy) {
1548
+ this.iscroll.destroy();
1549
+ this.iscroll = null;
1550
+ this._undoExpandScrollerToFillWrapper();
1551
+ this._undoModifyPullDown();
1552
+ this._undoModifyPullUp();
1553
+ this._undoAddScrollerPadding();
1554
+ this._undoModifyWrapper();
1555
+ this.$wrapper.removeClass(this.options.wrapperClass);
1556
+ this.$scroller.removeClass(this.options.scrollerClass);
1557
+ this._undoCreateScroller();
1558
+ }
1559
+
1560
+ this._instanceCount(this._instanceCount() - 1); // The count of extant instances of this widget on the page
1561
+ if (this._instanceCount() === 0) {
1562
+ this._undoAdaptPage();
1563
+ }
1564
+
1565
+ // For UI 1.8, destroy must be invoked from the
1566
+ // base widget
1567
+ $.Widget.prototype.destroy.call(this);
1568
+ if (this.options.debug && this.options.traceCreateDestroy) {
1569
+ this._logInterval("destroy() end", then);
1570
+ }
1571
+ // For UI 1.9, define _destroy instead and don't
1572
+ // worry about calling the base widget
1573
+ },
1574
+
1575
+ // Enable the widget
1576
+ enable: function() {
1577
+ this.iscroll.enable();
1578
+ $.Widget.prototype.enable.call(this);
1579
+ },
1580
+
1581
+ // Disable the widget
1582
+ disable: function() {
1583
+ this.iscroll.disable();
1584
+ $.Widget.prototype.disable.call(this);
1585
+ },
1586
+
1587
+ //----------------------------------------------------------
1588
+ //Respond to any changes the user makes to the option method
1589
+ //----------------------------------------------------------
1590
+ _setOption: function( key, value ) {
1591
+ var hidden;
1592
+
1593
+ // iScroll4 doesn't officially support changing options after an iscroll object has been
1594
+ // instantiated. However, some changes will work if you do a refresh() after changing the
1595
+ // option. This is undocumented other than from user comments on the iscroll4 Google
1596
+ // Groups support group. If an option change doesn't work with refresh(), then it
1597
+ // is necessary to destroy and re-create the iscroll object. This is a functionality
1598
+ // that the author of iscroll4 intends to support in the future.
1599
+ //
1600
+ // TODO: Research which options can be successfully changed without destroying and
1601
+ // re-creating the iscroll object. For now, I'm taking a safe approach and
1602
+ // always destroying and re-creating the iscroll object.
1603
+ //switch (key) {
1604
+ //case "hScroll":
1605
+ //case "vScroll":
1606
+ //case "hScrollbar":
1607
+ //case "vScrollbar":
1608
+ //this.options[ key ] = value; // Change our options object
1609
+ //this.iscroll.options[ key ] = value; // ... and iscroll's options object
1610
+ //this.iscroll.refresh(); // Don't think we need the timing hack here
1611
+ //break;
1612
+
1613
+ //default:
1614
+ this.options[ key ] = value;
1615
+ this.iscroll.destroy();
1616
+ hidden = this._setPageVisible();
1617
+ this._create_iscroll_object();
1618
+ this._restorePageVisibility(hidden);
1619
+ //break;
1620
+ //}
1621
+ // For UI 1.8, _setOption must be manually invoked from
1622
+ // the base widget
1623
+ $.Widget.prototype._setOption.apply(this, arguments);
1624
+ // For UI 1.9 the _super method can be used instead
1625
+ // this._super( "_setOption", key, value );
1626
+ },
1627
+
1628
+ //----------------------------------------------------
1629
+ // Convenience wrappers around iscroll4 public methods
1630
+ // So, you can use:
1631
+ //
1632
+ // $(".some-class").iscrollview("scrollTo", x, y, time, relative);
1633
+ //
1634
+ // instead of:
1635
+ //
1636
+ // $(".some-class").jqmData("iscrollview").iscroll.scrollTo(x, y, time, relative);
1637
+ //
1638
+ //----------------------------------------------------
1639
+ scrollTo: function(x,y,time,relative) { this.iscroll.scrollTo(x,y,time,relative); },
1640
+ scrollToElement: function(el,time) { this.iscroll.scrollToElement(el,time); },
1641
+ scrollToPage: function(pageX,pageY,time) { this.iscroll.scrollToPage(pageX,pageY,time); },
1642
+ stop: function() { this.iscroll.stop(); },
1643
+ zoom: function(x,y,scale,time) { this.iscroll.zoom(x,y,scale,time); },
1644
+ isReady: function() { return this.iscroll.isReady(); },
1645
+ // See disable() enable() elsewhere above - they are standard widget methods
1646
+
1647
+ //----------------------------------------------------------------------------------
1648
+ // Accessors for iscroll4 internal variables. These are sometimes useful externally.
1649
+ // For example, let's say you are adding elements to the end of a scrolled list.
1650
+ // You'd like to scroll up (using scrollToElement) if the new element would be
1651
+ // below the visible area. But if the list is intially empty, you'd want to avoid
1652
+ // this until the scrolling area is initially full. So you need to compare the
1653
+ // scroller height (scrollerH) to the wrapper height (wrapperH).
1654
+ //
1655
+ // These are also useful for creating "pull to refresh" functionality.
1656
+ //
1657
+ //-----------------------------------------------------------------------------------
1658
+ x: function() { return this.iscroll.x; },
1659
+ y: function() { return this.iscroll.y; },
1660
+ wrapperW: function() { return this.iscroll.wrapperW; },
1661
+ wrapperH: function() { return this.iscroll.wrapperH; },
1662
+ scrollerW: function() { return this.iscroll.scrollerW; },
1663
+ scrollerH: function() { return this.iscroll.scrollerH; },
1664
+
1665
+ // These have setters. Useful for "pull to refresh".
1666
+ minScrollX: function(val) { if (val !== undefined) { this.iscroll.minScrollX = val; } return this.iscroll.minScrollX; },
1667
+ minScrollY: function(val) { if (val !== undefined) { this.iscroll.minScrollY = val; } return this.iscroll.minScrollY; },
1668
+ maxScrollX: function(val) { if (val !== undefined) { this.iscroll.maxScrollX = val; } return this.iscroll.maxScrollX; },
1669
+ maxScrollY: function(val) { if (val !== undefined) { this.iscroll.maxScrollY = val; } return this.iscroll.maxScrollY; },
1670
+
1671
+ //-----------------------------------------------------------------------------------
1672
+ // Pull-down/Pull-up support
1673
+ //-----------------------------------------------------------------------------------
1674
+ // Is pull-down in "pulled" state?
1675
+ _pullDownIsPulled: function () {
1676
+ return this.$pullDown.length && this.$pullDown.hasClass(this.options.pullPulledClass);
1677
+ },
1678
+
1679
+ // Is pull-up in "pulled" state?
1680
+ _pullUpIsPulled: function () {
1681
+ return this.$pullUp.length && this.$pullUp.hasClass(this.options.pullPulledClass);
1682
+ },
1683
+
1684
+ // Replace the text in a pull block
1685
+ _replacePullText: function ($pull, text) {
1686
+ var $label;
1687
+ if (text) {
1688
+ $label = $("." + this.options.pullLabelClass, $pull);
1689
+ if ($label) { $label.text(text); }
1690
+ }
1691
+ },
1692
+
1693
+ // Reset a pull block to the initial state
1694
+ _pullSetStateReset: function ($pull, text) {
1695
+ if ($pull.is("." + this.options.pullLoadingClass + ", ." + this.options.pullPulledClass)) {
1696
+ $pull.removeClass(this.options.pullPulledClass + " " + this.options.pullLoadingClass);
1697
+ this._replacePullText($pull, text);
1698
+ }
1699
+ },
1700
+
1701
+ _pullDownSetStateReset: function(e) {
1702
+ this._pullSetStateReset(this.$pullDown, this.options.pullDownResetText);
1703
+ this._triggerWidget("onpulldownreset", e);
1704
+ },
1705
+
1706
+ _pullUpSetStateReset: function(e) {
1707
+ this._pullSetStateReset(this.$pullUp, this.options.pullUpResetText);
1708
+ this._triggerWidget("onpullupreset", e);
1709
+ },
1710
+
1711
+ // Set a pull block to pulled state
1712
+ _pullSetStatePulled: function($pull, text) {
1713
+ $pull.removeClass(this.options.pullLoadingClass).addClass(this.options.pullPulledClass);
1714
+ this._replacePullText($pull, text);
1715
+ },
1716
+
1717
+ _pullDownSetStatePulled: function(e) {
1718
+ this._pullSetStatePulled(this.$pullDown, this.options.pullDownPulledText);
1719
+ this._triggerWidget("onpulldownpulled", e);
1720
+ },
1721
+
1722
+ _pullUpSetStatePulled: function (e) {
1723
+ this._pullSetStatePulled(this.$pullUp, this.options.pullUpPulledText);
1724
+ this._triggerWidget("onpulluppulled", e);
1725
+ },
1726
+
1727
+ // Set a pull block to the loading state
1728
+ _pullSetStateLoading: function($pull, text) {
1729
+ $pull.removeClass(this.options.pullPulledClass).addClass(this.options.pullLoadingClass);
1730
+ this._replacePullText($pull, text);
1731
+ },
1732
+
1733
+ _pullDownSetStateLoading: function (e) {
1734
+ this._pullSetStateLoading(this.$pullDown, this.options.pullDownLoadingText);
1735
+ this._triggerWidget("onpulldownloading", e);
1736
+ },
1737
+
1738
+ _pullUpSetStateLoading: function(e) {
1739
+ this._pullSetStateLoading(this.$pullUp, this.options.pullUpLoadingText);
1740
+ this._triggerWidget("onpulluploading", e);
1741
+ },
1742
+
1743
+ _pullOnRefresh: function (e) {
1744
+ // It's debatable if this is the right place to do this. On one hand, it might be best
1745
+ // to do this in the pullup/down action function. We expect that we will always do a refresh
1746
+ // after the action, though (unless the action doesn't actually update anything, in which
1747
+ // case it can still call refresh().) On the other hand, it might be desirable to
1748
+ // "reset" the pull if a refresh comes along for some other reason. If the content were
1749
+ // updated because of something other than the user's pull action, then we consider the
1750
+ // pull moot.
1751
+
1752
+ // Reset pull blocks to their initial state
1753
+ if (this.$pullDown.length) { this._pullDownSetStateReset(e); }
1754
+ if (this.$pullUp.length) { this._pullUpSetStateReset(e); }
1755
+ },
1756
+
1757
+ _pullOnScrollMove: function (e) {
1758
+ var pullDownIsPulled, pullUpIsPulled, pullDownHeight, pullDownPast, pullUpHeight, pullUpPast,
1759
+ y = this.y();
1760
+
1761
+ if (this.$pullDown.length) {
1762
+ pullDownIsPulled = this._pullDownIsPulled();
1763
+ pullDownHeight = this.options.topOffset;
1764
+ // User needs to pull down past the top edge of the pulldown element. To prevent false
1765
+ // triggers from aggressive scrolling, they should have to pull down some additional
1766
+ // amount. Half the height of the pulldown seems reasonable, but adjust per preference.
1767
+ pullDownPast = pullDownHeight / 2;
1768
+
1769
+ // Set "pulled" state if not pulled and user has pulled past the pulldown element
1770
+ // by pullDownPast pixels
1771
+ if (!pullDownIsPulled && y > pullDownPast ) {
1772
+ this._pullDownSetStatePulled(e);
1773
+ this.minScrollY(0); // Circumvent top offset so pull-down element doesn't rubber-band
1774
+ }
1775
+
1776
+ // Allow user to "oopsie", and scroll back to cancel and avoid pull-down action
1777
+ // Cancel if pulled and user has scrolled back to top of pulldown element
1778
+ else if (pullDownIsPulled && y <= 0) {
1779
+ this._pullDownSetStateReset(e);
1780
+ this.minScrollY(-pullDownHeight); // Re-instate top offset
1781
+ }
1782
+ }
1783
+
1784
+ if (this.$pullUp.length) {
1785
+ pullUpIsPulled = this._pullUpIsPulled();
1786
+ pullUpHeight = this.options.bottomOffset;
1787
+ pullUpPast = pullUpHeight / 2;
1788
+ if (!pullUpIsPulled && y < this.maxScrollY() - pullUpHeight - pullUpPast ) {
1789
+ this._pullUpSetStatePulled(e);
1790
+ this.maxScrollY(this.wrapperH() - this.scrollerH() + this.minScrollY());
1791
+ }
1792
+
1793
+ else if (pullUpIsPulled && y >= this.maxScrollY() ) {
1794
+ this._pullUpSetStateReset(e);
1795
+ this.maxScrollY(this.wrapperH() - this.scrollerH() + this.minScrollY() + pullUpHeight);
1796
+ }
1797
+ }
1798
+
1799
+ },
1800
+
1801
+ _pullOnScrollEnd: function (e) {
1802
+ if (this._pullDownIsPulled(e)) {
1803
+ this._pullDownSetStateLoading(e);
1804
+ this._triggerWidget("onpulldown", e);
1805
+ }
1806
+ else if (this._pullUpIsPulled(e)) {
1807
+ this._pullUpSetStateLoading(e);
1808
+ this._triggerWidget("onpullup", e);
1809
+ }
1810
+ }
1811
+
1812
+ });
1813
+
1814
+ }( jQuery, window, document ));
1815
+
1816
+ // Self-init
1817
+ jQuery(document).bind("pagecreate", function (e) {
1818
+ "use strict";
1819
+
1820
+ // In here, e.target refers to the page that was created (it's the target of the pagecreate event)
1821
+ // So, we can simply find elements on this page that match a selector of our choosing, and call
1822
+ // our plugin on them.
1823
+
1824
+ // The find() below returns an array of elements within a newly-created page that have
1825
+ // the data-iscroll attribute. The Widget Factory will enumerate these and call the widget
1826
+ // _create() function for each member of the array.
1827
+ // If the array is of zero length, then no _create() fucntion is called.
1828
+ var elements = jQuery(e.target).find(":jqmData(iscroll)");
1829
+ elements.iscrollview();
1830
+ });
1831
+
1832
+
skin/adminhtml/default/snm-mobile/jquery.mobile-1.1.0.css ADDED
@@ -0,0 +1,2053 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery Mobile Framework 1.1.0 db342b1f315c282692791aa870455901fdb46a55
3
+ * http://jquerymobile.com
4
+ *
5
+ * Copyright 2011 (c) jQuery Project
6
+ * Dual licensed under the MIT or GPL Version 2 licenses.
7
+ * http://jquery.org/license
8
+ *
9
+ */
10
+ /* Swatches */
11
+ /* A
12
+ -----------------------------------------------------------------------------------------------------------*/
13
+ .ui-bar-a {
14
+ border: 1px solid #333 /*{a-bar-border}*/;
15
+ background: #111111 /*{a-bar-background-color}*/;
16
+ color: #ffffff /*{a-bar-color}*/;
17
+ font-weight: bold;
18
+ text-shadow: 0 /*{a-bar-shadow-x}*/ -1px /*{a-bar-shadow-y}*/ 1px /*{a-bar-shadow-radius}*/ #000000 /*{a-bar-shadow-color}*/;
19
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #3c3c3c /*{a-bar-background-start}*/), to( #111 /*{a-bar-background-end}*/)); /* Saf4+, Chrome */
20
+ background-image: -webkit-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
21
+ background-image: -moz-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* FF3.6 */
22
+ background-image: -ms-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* IE10 */
23
+ background-image: -o-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* Opera 11.10+ */
24
+ background-image: linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/);
25
+ }
26
+ .ui-bar-a,
27
+ .ui-bar-a input,
28
+ .ui-bar-a select,
29
+ .ui-bar-a textarea,
30
+ .ui-bar-a button {
31
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
32
+ }
33
+ .ui-bar-a .ui-link-inherit {
34
+ color: #fff /*{a-bar-color}*/;
35
+ }
36
+ .ui-bar-a .ui-link {
37
+ color: #7cc4e7 /*{a-bar-link-color}*/;
38
+ font-weight: bold;
39
+ }
40
+ .ui-bar-a .ui-link:hover {
41
+ color: #2489CE /*{a-bar-link-hover}*/;
42
+ }
43
+ .ui-bar-a .ui-link:active {
44
+ color: #2489CE /*{a-bar-link-active}*/;
45
+ }
46
+ .ui-bar-a .ui-link:visited {
47
+ color: #2489CE /*{a-bar-link-visited}*/;
48
+ }
49
+ .ui-body-a,
50
+ .ui-overlay-a {
51
+ border: 1px solid #444 /*{a-body-border}*/;
52
+ background: #222 /*{a-body-background-color}*/;
53
+ color: #fff /*{a-body-color}*/;
54
+ text-shadow: 0 /*{a-body-shadow-x}*/ 1px /*{a-body-shadow-y}*/ 1px /*{a-body-shadow-radius}*/ #111 /*{a-body-shadow-color}*/;
55
+ font-weight: normal;
56
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #444 /*{a-body-background-start}*/), to( #222 /*{a-body-background-end}*/)); /* Saf4+, Chrome */
57
+ background-image: -webkit-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
58
+ background-image: -moz-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* FF3.6 */
59
+ background-image: -ms-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* IE10 */
60
+ background-image: -o-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* Opera 11.10+ */
61
+ background-image: linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/);
62
+ }
63
+ .ui-overlay-a {
64
+ background-image: none;
65
+ border-width: 0;
66
+ }
67
+ .ui-body-a,
68
+ .ui-body-a input,
69
+ .ui-body-a select,
70
+ .ui-body-a textarea,
71
+ .ui-body-a button {
72
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
73
+ }
74
+ .ui-body-a .ui-link-inherit {
75
+ color: #fff /*{a-body-color}*/;
76
+ }
77
+ .ui-body-a .ui-link {
78
+ color: #2489CE /*{a-body-link-color}*/;
79
+ font-weight: bold;
80
+ }
81
+ .ui-body-a .ui-link:hover {
82
+ color: #2489CE /*{a-body-link-hover}*/;
83
+ }
84
+ .ui-body-a .ui-link:active {
85
+ color: #2489CE /*{a-body-link-active}*/;
86
+ }
87
+ .ui-body-a .ui-link:visited {
88
+ color: #2489CE /*{a-body-link-visited}*/;
89
+ }
90
+ .ui-btn-up-a {
91
+ border: 1px solid #111 /*{a-bup-border}*/;
92
+ background: #333 /*{a-bup-background-color}*/;
93
+ font-weight: bold;
94
+ color: #fff /*{a-bup-color}*/;
95
+ text-shadow: 0 /*{a-bup-shadow-x}*/ 1px /*{a-bup-shadow-y}*/ 1px /*{a-bup-shadow-radius}*/ #111 /*{a-bup-shadow-color}*/;
96
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #444444 /*{a-bup-background-start}*/), to( #2d2d2d /*{a-bup-background-end}*/)); /* Saf4+, Chrome */
97
+ background-image: -webkit-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
98
+ background-image: -moz-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* FF3.6 */
99
+ background-image: -ms-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* IE10 */
100
+ background-image: -o-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* Opera 11.10+ */
101
+ background-image: linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/);
102
+ }
103
+ .ui-btn-up-a a.ui-link-inherit {
104
+ color: #fff /*{a-bup-color}*/;
105
+ }
106
+ .ui-btn-hover-a {
107
+ border: 1px solid #000 /*{a-bhover-border}*/;
108
+ background: #444444 /*{a-bhover-background-color}*/;
109
+ font-weight: bold;
110
+ color: #fff /*{a-bhover-color}*/;
111
+ text-shadow: 0 /*{a-bhover-shadow-x}*/ 1px /*{a-bhover-shadow-y}*/ 1px /*{a-bhover-shadow-radius}*/ #111 /*{a-bhover-shadow-color}*/;
112
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #555555 /*{a-bhover-background-start}*/), to( #383838 /*{a-bhover-background-end}*/)); /* Saf4+, Chrome */
113
+ background-image: -webkit-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
114
+ background-image: -moz-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* FF3.6 */
115
+ background-image: -ms-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* IE10 */
116
+ background-image: -o-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* Opera 11.10+ */
117
+ background-image: linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/);
118
+ }
119
+ .ui-btn-hover-a a.ui-link-inherit {
120
+ color: #fff /*{a-bhover-color}*/;
121
+ }
122
+ .ui-btn-down-a {
123
+ border: 1px solid #000 /*{a-bdown-border}*/;
124
+ background: #222 /*{a-bdown-background-color}*/;
125
+ font-weight: bold;
126
+ color: #fff /*{a-bdown-color}*/;
127
+ text-shadow: 0 /*{a-bdown-shadow-x}*/ 1px /*{a-bdown-shadow-y}*/ 1px /*{a-bdown-shadow-radius}*/ #111 /*{a-bdown-shadow-color}*/;
128
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #202020 /*{a-bdown-background-start}*/), to( #2c2c2c /*{a-bdown-background-end}*/)); /* Saf4+, Chrome */
129
+ background-image: -webkit-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
130
+ background-image: -moz-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* FF3.6 */
131
+ background-image: -ms-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* IE10 */
132
+ background-image: -o-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* Opera 11.10+ */
133
+ background-image: linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/);
134
+ }
135
+ .ui-btn-down-a a.ui-link-inherit {
136
+ color: #fff /*{a-bdown-color}*/;
137
+ }
138
+ .ui-btn-up-a,
139
+ .ui-btn-hover-a,
140
+ .ui-btn-down-a {
141
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
142
+ text-decoration: none;
143
+ }
144
+ /* B
145
+ -----------------------------------------------------------------------------------------------------------*/
146
+ .ui-bar-b {
147
+ border: 1px solid #456f9a /*{b-bar-border}*/;
148
+ background: #5e87b0 /*{b-bar-background-color}*/;
149
+ color: #fff /*{b-bar-color}*/;
150
+ font-weight: bold;
151
+ text-shadow: 0 /*{b-bar-shadow-x}*/ 1px /*{b-bar-shadow-y}*/ 1px /*{b-bar-shadow-radius}*/ #3e6790 /*{b-bar-shadow-color}*/;
152
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #6facd5 /*{b-bar-background-start}*/), to( #497bae /*{b-bar-background-end}*/)); /* Saf4+, Chrome */
153
+ background-image: -webkit-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
154
+ background-image: -moz-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* FF3.6 */
155
+ background-image: -ms-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* IE10 */
156
+ background-image: -o-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* Opera 11.10+ */
157
+ background-image: linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/);
158
+ }
159
+ .ui-bar-b,
160
+ .ui-bar-b input,
161
+ .ui-bar-b select,
162
+ .ui-bar-b textarea,
163
+ .ui-bar-b button {
164
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
165
+ }
166
+ .ui-bar-b .ui-link-inherit {
167
+ color: #fff /*{b-bar-color}*/;
168
+ }
169
+ .ui-bar-b .ui-link {
170
+ color: #ddf0f8 /*{b-bar-link-color}*/;
171
+ font-weight: bold;
172
+ }
173
+ .ui-bar-b .ui-link:hover {
174
+ color: #ddf0f8 /*{b-bar-link-hover}*/;
175
+ }
176
+ .ui-bar-b .ui-link:active {
177
+ color: #ddf0f8 /*{b-bar-link-active}*/;
178
+ }
179
+ .ui-bar-b .ui-link:visited {
180
+ color: #ddf0f8 /*{b-bar-link-visited}*/;
181
+ }
182
+ .ui-body-b,
183
+ .ui-overlay-b {
184
+ border: 1px solid #999 /*{b-body-border}*/;
185
+ background: #f3f3f3 /*{b-body-background-color}*/;
186
+ color: #222222 /*{b-body-color}*/;
187
+ text-shadow: 0 /*{b-body-shadow-x}*/ 1px /*{b-body-shadow-y}*/ 0 /*{b-body-shadow-radius}*/ #fff /*{b-body-shadow-color}*/;
188
+ font-weight: normal;
189
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #ddd /*{b-body-background-start}*/), to( #ccc /*{b-body-background-end}*/)); /* Saf4+, Chrome */
190
+ background-image: -webkit-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
191
+ background-image: -moz-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* FF3.6 */
192
+ background-image: -ms-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* IE10 */
193
+ background-image: -o-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* Opera 11.10+ */
194
+ background-image: linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/);
195
+ }
196
+ .ui-overlay-b {
197
+ background-image: none;
198
+ border-width: 0;
199
+ }
200
+ .ui-body-b,
201
+ .ui-body-b input,
202
+ .ui-body-b select,
203
+ .ui-body-b textarea,
204
+ .ui-body-b button {
205
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
206
+ }
207
+ .ui-body-b .ui-link-inherit {
208
+ color: #333333 /*{b-body-color}*/;
209
+ }
210
+ .ui-body-b .ui-link {
211
+ color: #2489CE /*{b-body-link-color}*/;
212
+ font-weight: bold;
213
+ }
214
+ .ui-body-b .ui-link:hover {
215
+ color: #2489CE /*{b-body-link-hover}*/;
216
+ }
217
+ .ui-body-b .ui-link:active {
218
+ color: #2489CE /*{b-body-link-active}*/;
219
+ }
220
+ .ui-body-b .ui-link:visited {
221
+ color: #2489CE /*{b-body-link-visited}*/;
222
+ }
223
+ .ui-btn-up-b {
224
+ border: 1px solid #044062 /*{b-bup-border}*/;
225
+ background: #396b9e /*{b-bup-background-color}*/;
226
+ font-weight: bold;
227
+ color: #fff /*{b-bup-color}*/;
228
+ text-shadow: 0 /*{b-bup-shadow-x}*/ 1px /*{b-bup-shadow-y}*/ 1px /*{b-bup-shadow-radius}*/ #194b7e /*{b-bup-shadow-color}*/;
229
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #5f9cc5 /*{b-bup-background-start}*/), to( #396b9e /*{b-bup-background-end}*/)); /* Saf4+, Chrome */
230
+ background-image: -webkit-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
231
+ background-image: -moz-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* FF3.6 */
232
+ background-image: -ms-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* IE10 */
233
+ background-image: -o-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* Opera 11.10+ */
234
+ background-image: linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/);
235
+ }
236
+ .ui-btn-up-b a.ui-link-inherit {
237
+ color: #fff /*{b-bup-color}*/;
238
+ }
239
+ .ui-btn-hover-b {
240
+ border: 1px solid #00415e /*{b-bhover-border}*/;
241
+ background: #4b88b6 /*{b-bhover-background-color}*/;
242
+ font-weight: bold;
243
+ color: #fff /*{b-bhover-color}*/;
244
+ text-shadow: 0 /*{b-bhover-shadow-x}*/ 1px /*{b-bhover-shadow-y}*/ 1px /*{b-bhover-shadow-radius}*/ #194b7e /*{b-bhover-shadow-color}*/;
245
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #6facd5 /*{b-bhover-background-start}*/), to( #4272a4 /*{b-bhover-background-end}*/)); /* Saf4+, Chrome */
246
+ background-image: -webkit-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
247
+ background-image: -moz-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* FF3.6 */
248
+ background-image: -ms-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* IE10 */
249
+ background-image: -o-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* Opera 11.10+ */
250
+ background-image: linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/);
251
+ }
252
+ .ui-btn-hover-b a.ui-link-inherit {
253
+ color: #fff /*{b-bhover-color}*/;
254
+ }
255
+ .ui-btn-down-b {
256
+ border: 1px solid #225377 /*{b-bdown-border}*/;
257
+ background: #4e89c5 /*{b-bdown-background-color}*/;
258
+ font-weight: bold;
259
+ color: #fff /*{b-bdown-color}*/;
260
+ text-shadow: 0 /*{b-bdown-shadow-x}*/ 1px /*{b-bdown-shadow-y}*/ 1px /*{b-bdown-shadow-radius}*/ #194b7e /*{b-bdown-shadow-color}*/;
261
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #295b8e /*{b-bdown-background-start}*/), to( #3e79b5 /*{b-bdown-background-end}*/)); /* Saf4+, Chrome */
262
+ background-image: -webkit-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
263
+ background-image: -moz-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* FF3.6 */
264
+ background-image: -ms-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* IE10 */
265
+ background-image: -o-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* Opera 11.10+ */
266
+ background-image: linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/);
267
+ }
268
+ .ui-btn-down-b a.ui-link-inherit {
269
+ color: #fff /*{b-bdown-color}*/;
270
+ }
271
+ .ui-btn-up-b,
272
+ .ui-btn-hover-b,
273
+ .ui-btn-down-b {
274
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
275
+ text-decoration: none;
276
+ }
277
+ /* C
278
+ -----------------------------------------------------------------------------------------------------------*/
279
+ .ui-bar-c {
280
+ border: 1px solid #B3B3B3 /*{c-bar-border}*/;
281
+ background: #eeeeee /*{c-bar-background-color}*/;
282
+ color: #3E3E3E /*{c-bar-color}*/;
283
+ font-weight: bold;
284
+ text-shadow: 0 /*{c-bar-shadow-x}*/ 1px /*{c-bar-shadow-y}*/ 1px /*{c-bar-shadow-radius}*/ #fff /*{c-bar-shadow-color}*/;
285
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #f0f0f0 /*{c-bar-background-start}*/), to( #ddd /*{c-bar-background-end}*/)); /* Saf4+, Chrome */
286
+ background-image: -webkit-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
287
+ background-image: -moz-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* FF3.6 */
288
+ background-image: -ms-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* IE10 */
289
+ background-image: -o-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* Opera 11.10+ */
290
+ background-image: linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/);
291
+ }
292
+ .ui-bar-c .ui-link-inherit {
293
+ color: #3E3E3E /*{c-bar-color}*/;
294
+ }
295
+ .ui-bar-c .ui-link {
296
+ color: #7cc4e7 /*{c-bar-link-color}*/;
297
+ font-weight: bold;
298
+ }
299
+ .ui-bar-c .ui-link:hover {
300
+ color: #2489CE /*{c-bar-link-hover}*/;
301
+ }
302
+ .ui-bar-c .ui-link:active {
303
+ color: #2489CE /*{c-bar-link-active}*/;
304
+ }
305
+ .ui-bar-c .ui-link:visited {
306
+ color: #2489CE /*{c-bar-link-visited}*/;
307
+ }
308
+ .ui-bar-c,
309
+ .ui-bar-c input,
310
+ .ui-bar-c select,
311
+ .ui-bar-c textarea,
312
+ .ui-bar-c button {
313
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
314
+ }
315
+ .ui-body-c,
316
+ .ui-overlay-c {
317
+ border: 1px solid #aaa /*{c-body-border}*/;
318
+ color: #333333 /*{c-body-color}*/;
319
+ text-shadow: 0 /*{c-body-shadow-x}*/ 1px /*{c-body-shadow-y}*/ 0 /*{c-body-shadow-radius}*/ #fff /*{c-body-shadow-color}*/;
320
+ background: #f9f9f9 /*{c-body-background-color}*/;
321
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #f9f9f9 /*{c-body-background-start}*/), to( #eeeeee /*{c-body-background-end}*/)); /* Saf4+, Chrome */
322
+ background-image: -webkit-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
323
+ background-image: -moz-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* FF3.6 */
324
+ background-image: -ms-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* IE10 */
325
+ background-image: -o-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* Opera 11.10+ */
326
+ background-image: linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/);
327
+ }
328
+ .ui-overlay-c {
329
+ background-image: none;
330
+ border-width: 0;
331
+ }
332
+ .ui-body-c,
333
+ .ui-body-c input,
334
+ .ui-body-c select,
335
+ .ui-body-c textarea,
336
+ .ui-body-c button {
337
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
338
+ }
339
+ .ui-body-c .ui-link-inherit {
340
+ color: #333333 /*{c-body-color}*/;
341
+ }
342
+ .ui-body-c .ui-link {
343
+ color: #2489CE /*{c-body-link-color}*/;
344
+ font-weight: bold;
345
+ }
346
+ .ui-body-c .ui-link:hover {
347
+ color: #2489CE /*{c-body-link-hover}*/;
348
+ }
349
+ .ui-body-c .ui-link:active {
350
+ color: #2489CE /*{c-body-link-active}*/;
351
+ }
352
+ .ui-body-c .ui-link:visited {
353
+ color: #2489CE /*{c-body-link-visited}*/;
354
+ }
355
+ .ui-btn-up-c {
356
+ border: 1px solid #ccc /*{c-bup-border}*/;
357
+ background: #eee /*{c-bup-background-color}*/;
358
+ font-weight: bold;
359
+ color: #222 /*{c-bup-color}*/;
360
+ text-shadow: 0 /*{c-bup-shadow-x}*/ 1px /*{c-bup-shadow-y}*/ 0 /*{c-bup-shadow-radius}*/ #ffffff /*{c-bup-shadow-color}*/;
361
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #ffffff /*{c-bup-background-start}*/), to( #f1f1f1 /*{c-bup-background-end}*/)); /* Saf4+, Chrome */
362
+ background-image: -webkit-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
363
+ background-image: -moz-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* FF3.6 */
364
+ background-image: -ms-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* IE10 */
365
+ background-image: -o-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* Opera 11.10+ */
366
+ background-image: linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/);
367
+ }
368
+ .ui-btn-up-c a.ui-link-inherit {
369
+ color: #2F3E46 /*{c-bup-color}*/;
370
+ }
371
+ .ui-btn-hover-c {
372
+ border: 1px solid #bbb /*{c-bhover-border}*/;
373
+ background: #dfdfdf /*{c-bhover-background-color}*/;
374
+ font-weight: bold;
375
+ color: #222 /*{c-bhover-color}*/;
376
+ text-shadow: 0 /*{c-bhover-shadow-x}*/ 1px /*{c-bhover-shadow-y}*/ 0 /*{c-bhover-shadow-radius}*/ #ffffff /*{c-bhover-shadow-color}*/;
377
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #f6f6f6 /*{c-bhover-background-start}*/), to( #e0e0e0 /*{c-bhover-background-end}*/)); /* Saf4+, Chrome */
378
+ background-image: -webkit-linear-gradient( #f9f9f9 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
379
+ background-image: -moz-linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* FF3.6 */
380
+ background-image: -ms-linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* IE10 */
381
+ background-image: -o-linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* Opera 11.10+ */
382
+ background-image: linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/);
383
+ }
384
+ .ui-btn-hover-c a.ui-link-inherit {
385
+ color: #2F3E46 /*{c-bhover-color}*/;
386
+ }
387
+ .ui-btn-down-c {
388
+ border: 1px solid #bbb /*{c-bdown-border}*/;
389
+ background: #d6d6d6 /*{c-bdown-background-color}*/;
390
+ font-weight: bold;
391
+ color: #222 /*{c-bdown-color}*/;
392
+ text-shadow: 0 /*{c-bdown-shadow-x}*/ 1px /*{c-bdown-shadow-y}*/ 0 /*{c-bdown-shadow-radius}*/ #ffffff /*{c-bdown-shadow-color}*/;
393
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #d0d0d0 /*{c-bdown-background-start}*/), to( #dfdfdf /*{c-bdown-background-end}*/)); /* Saf4+, Chrome */
394
+ background-image: -webkit-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
395
+ background-image: -moz-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* FF3.6 */
396
+ background-image: -ms-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* IE10 */
397
+ background-image: -o-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* Opera 11.10+ */
398
+ background-image: linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/);
399
+ }
400
+ .ui-btn-down-c a.ui-link-inherit {
401
+ color: #2F3E46 /*{c-bdown-color}*/;
402
+ }
403
+ .ui-btn-up-c,
404
+ .ui-btn-hover-c,
405
+ .ui-btn-down-c {
406
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
407
+ text-decoration: none;
408
+ }
409
+ /* D
410
+ -----------------------------------------------------------------------------------------------------------*/
411
+ .ui-bar-d {
412
+ border: 1px solid #bbb /*{d-bar-border}*/;
413
+ background: #bbb /*{d-bar-background-color}*/;
414
+ color: #333 /*{d-bar-color}*/;
415
+ text-shadow: 0 /*{d-bar-shadow-x}*/ 1px /*{d-bar-shadow-y}*/ 0 /*{d-bar-shadow-radius}*/ #eee /*{d-bar-shadow-color}*/;
416
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #ddd /*{d-bar-background-start}*/), to( #bbb /*{d-bar-background-end}*/)); /* Saf4+, Chrome */
417
+ background-image: -webkit-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
418
+ background-image: -moz-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* FF3.6 */
419
+ background-image: -ms-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* IE10 */
420
+ background-image: -o-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* Opera 11.10+ */
421
+ background-image: linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/);
422
+ }
423
+ .ui-bar-d,
424
+ .ui-bar-d input,
425
+ .ui-bar-d select,
426
+ .ui-bar-d textarea,
427
+ .ui-bar-d button {
428
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
429
+ }
430
+ .ui-bar-d .ui-link-inherit {
431
+ color: #333333 /*{d-bar-color}*/;
432
+ }
433
+ .ui-bar-d .ui-link {
434
+ color: #2489CE /*{d-bar-link-color}*/;
435
+ font-weight: bold;
436
+ }
437
+ .ui-bar-d .ui-link:hover {
438
+ color: #2489CE /*{d-bar-link-hover}*/;
439
+ }
440
+ .ui-bar-d .ui-link:active {
441
+ color: #2489CE /*{d-bar-link-active}*/;
442
+ }
443
+ .ui-bar-d .ui-link:visited {
444
+ color: #2489CE /*{d-bar-link-visited}*/;
445
+ }
446
+ .ui-body-d,
447
+ .ui-overlay-d {
448
+ border: 1px solid #bbb /*{d-body-border}*/;
449
+ color: #333333 /*{d-body-color}*/;
450
+ text-shadow: 0 /*{d-body-shadow-x}*/ 1px /*{d-body-shadow-y}*/ 0 /*{d-body-shadow-radius}*/ #fff /*{d-body-shadow-color}*/;
451
+ background: #ffffff /*{d-body-background-color}*/;
452
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #fff), to( #fff /*{d-body-background-end}*/)); /* Saf4+, Chrome */
453
+ background-image: -webkit-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
454
+ background-image: -moz-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* FF3.6 */
455
+ background-image: -ms-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* IE10 */
456
+ background-image: -o-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* Opera 11.10+ */
457
+ background-image: linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/);
458
+ }
459
+ .ui-overlay-d {
460
+ background-image: none;
461
+ border-width: 0;
462
+ }
463
+ .ui-body-d,
464
+ .ui-body-d input,
465
+ .ui-body-d select,
466
+ .ui-body-d textarea,
467
+ .ui-body-d button {
468
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
469
+ }
470
+ .ui-body-d .ui-link-inherit {
471
+ color: #333333 /*{d-body-color}*/;
472
+ }
473
+ .ui-body-d .ui-link {
474
+ color: #2489CE /*{d-body-link-color}*/;
475
+ font-weight: bold;
476
+ }
477
+ .ui-body-d .ui-link:hover {
478
+ color: #2489CE /*{d-body-link-hover}*/;
479
+ }
480
+ .ui-body-d .ui-link:active {
481
+ color: #2489CE /*{d-body-link-active}*/;
482
+ }
483
+ .ui-body-d .ui-link:visited {
484
+ color: #2489CE /*{d-body-link-visited}*/;
485
+ }
486
+ .ui-btn-up-d {
487
+ border: 1px solid #bbb /*{d-bup-border}*/;
488
+ background: #fff /*{d-bup-background-color}*/;
489
+ font-weight: bold;
490
+ color: #333 /*{d-bup-color}*/;
491
+ text-shadow: 0 /*{d-bup-shadow-x}*/ 1px /*{d-bup-shadow-y}*/ 0 /*{d-bup-shadow-radius}*/ #fff /*{d-bup-shadow-color}*/;
492
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #fafafa), to( #f6f6f6 /*{d-bup-background-end}*/)); /* Saf4+, Chrome */
493
+ background-image: -webkit-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
494
+ background-image: -moz-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* FF3.6 */
495
+ background-image: -ms-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* IE10 */
496
+ background-image: -o-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* Opera 11.10+ */
497
+ background-image: linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/);
498
+ }
499
+ .ui-btn-up-d a.ui-link-inherit {
500
+ color: #333 /*{d-bup-color}*/;
501
+ }
502
+ .ui-btn-hover-d {
503
+ border: 1px solid #aaa /*{d-bhover-border}*/;
504
+ background: #eeeeee /*{d-bhover-background-color}*/;
505
+ font-weight: bold;
506
+ color: #333 /*{d-bhover-color}*/;
507
+ cursor: pointer;
508
+ text-shadow: 0 /*{d-bhover-shadow-x}*/ 1px /*{d-bhover-shadow-y}*/ 0 /*{d-bhover-shadow-radius}*/ #fff /*{d-bhover-shadow-color}*/;
509
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #eee), to( #fff /*{d-bhover-background-end}*/)); /* Saf4+, Chrome */
510
+ background-image: -webkit-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
511
+ background-image: -moz-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* FF3.6 */
512
+ background-image: -ms-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* IE10 */
513
+ background-image: -o-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* Opera 11.10+ */
514
+ background-image: linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/);
515
+ }
516
+ .ui-btn-hover-d a.ui-link-inherit {
517
+ color: #333 /*{d-bhover-color}*/;
518
+ }
519
+ .ui-btn-down-d {
520
+ border: 1px solid #aaa /*{d-bdown-border}*/;
521
+ background: #eee /*{d-bdown-background-color}*/;
522
+ font-weight: bold;
523
+ color: #333 /*{d-bdown-color}*/;
524
+ text-shadow: 0 /*{d-bdown-shadow-x}*/ 1px /*{d-bdown-shadow-y}*/ 0 /*{d-bdown-shadow-radius}*/ #ffffff /*{d-bdown-shadow-color}*/;
525
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #e5e5e5 /*{d-bdown-background-start}*/), to( #f2f2f2 /*{d-bdown-background-end}*/)); /* Saf4+, Chrome */
526
+ background-image: -webkit-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
527
+ background-image: -moz-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* FF3.6 */
528
+ background-image: -ms-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* IE10 */
529
+ background-image: -o-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* Opera 11.10+ */
530
+ background-image: linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/);
531
+ }
532
+ .ui-btn-down-d a.ui-link-inherit {
533
+ color: #333 /*{d-bdown-color}*/;
534
+ }
535
+ .ui-btn-up-d,
536
+ .ui-btn-hover-d,
537
+ .ui-btn-down-d {
538
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
539
+ text-decoration: none;
540
+ }
541
+ /* E
542
+ -----------------------------------------------------------------------------------------------------------*/
543
+ .ui-bar-e {
544
+ border: 1px solid #F7C942 /*{e-bar-border}*/;
545
+ background: #fadb4e /*{e-bar-background-color}*/;
546
+ color: #333 /*{e-bar-color}*/;
547
+ text-shadow: 0 /*{e-bar-shadow-x}*/ 1px /*{e-bar-shadow-y}*/ 0 /*{e-bar-shadow-radius}*/ #fff /*{e-bar-shadow-color}*/;
548
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #fceda7 /*{e-bar-background-start}*/), to( #fbef7e /*{e-bar-background-end}*/)); /* Saf4+, Chrome */
549
+ background-image: -webkit-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
550
+ background-image: -moz-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* FF3.6 */
551
+ background-image: -ms-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* IE10 */
552
+ background-image: -o-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* Opera 11.10+ */
553
+ background-image: linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/);
554
+ }
555
+ .ui-bar-e,
556
+ .ui-bar-e input,
557
+ .ui-bar-e select,
558
+ .ui-bar-e textarea,
559
+ .ui-bar-e button {
560
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
561
+ }
562
+ .ui-bar-e .ui-link-inherit {
563
+ color: #333333 /*{e-bar-color}*/;
564
+ }
565
+ .ui-bar-e .ui-link {
566
+ color: #2489CE /*{e-bar-link-color}*/;
567
+ font-weight: bold;
568
+ }
569
+ .ui-bar-e .ui-link:hover {
570
+ color: #2489CE /*{e-bar-link-hover}*/;
571
+ }
572
+ .ui-bar-e .ui-link:active {
573
+ color: #2489CE /*{e-bar-link-active}*/;
574
+ }
575
+ .ui-bar-e .ui-link:visited {
576
+ color: #2489CE /*{e-bar-link-visited}*/;
577
+ }
578
+ .ui-body-e,
579
+ .ui-overlay-e {
580
+ border: 1px solid #F7C942 /*{e-body-border}*/;
581
+ color: #222222 /*{e-body-color}*/;
582
+ text-shadow: 0 /*{e-body-shadow-x}*/ 1px /*{e-body-shadow-y}*/ 0 /*{e-body-shadow-radius}*/ #fff /*{e-body-shadow-color}*/;
583
+ background: #fff9df /*{e-body-background-color}*/;
584
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #fffadf /*{e-body-background-start}*/), to( #fff3a5 /*{e-body-background-end}*/)); /* Saf4+, Chrome */
585
+ background-image: -webkit-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
586
+ background-image: -moz-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* FF3.6 */
587
+ background-image: -ms-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* IE10 */
588
+ background-image: -o-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* Opera 11.10+ */
589
+ background-image: linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/);
590
+ }
591
+ .ui-overlay-e {
592
+ background-image: none;
593
+ border-width: 0;
594
+ }
595
+ .ui-body-e,
596
+ .ui-body-e input,
597
+ .ui-body-e select,
598
+ .ui-body-e textarea,
599
+ .ui-body-e button {
600
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
601
+ }
602
+ .ui-body-e .ui-link-inherit {
603
+ color: #333333 /*{e-body-color}*/;
604
+ }
605
+ .ui-body-e .ui-link {
606
+ color: #2489CE /*{e-body-link-color}*/;
607
+ font-weight: bold;
608
+ }
609
+ .ui-body-e .ui-link:hover {
610
+ color: #2489CE /*{e-body-link-hover}*/;
611
+ }
612
+ .ui-body-e .ui-link:active {
613
+ color: #2489CE /*{e-body-link-active}*/;
614
+ }
615
+ .ui-body-e .ui-link:visited {
616
+ color: #2489CE /*{e-body-link-visited}*/;
617
+ }
618
+ .ui-btn-up-e {
619
+ border: 1px solid #F4C63f /*{e-bup-border}*/;
620
+ background: #fadb4e /*{e-bup-background-color}*/;
621
+ font-weight: bold;
622
+ color: #222 /*{e-bup-color}*/;
623
+ text-shadow: 0 /*{e-bup-shadow-x}*/ 1px /*{e-bup-shadow-y}*/ 0 /*{e-bup-shadow-radius}*/ #fff /*{e-bup-shadow-color}*/;
624
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #ffefaa /*{e-bup-background-start}*/), to( #ffe155 /*{e-bup-background-end}*/)); /* Saf4+, Chrome */
625
+ background-image: -webkit-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
626
+ background-image: -moz-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* FF3.6 */
627
+ background-image: -ms-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* IE10 */
628
+ background-image: -o-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* Opera 11.10+ */
629
+ background-image: linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/);
630
+ }
631
+ .ui-btn-up-e a.ui-link-inherit {
632
+ color: #222 /*{e-bup-color}*/;
633
+ }
634
+ .ui-btn-hover-e {
635
+ border: 1px solid #F2C43d /*{e-bhover-border}*/;
636
+ background: #fbe26f /*{e-bhover-background-color}*/;
637
+ font-weight: bold;
638
+ color: #111 /*{e-bhover-color}*/;
639
+ text-shadow: 0 /*{e-bhover-shadow-x}*/ 1px /*{e-bhover-shadow-y}*/ 0 /*{e-bhover-shadow-radius}*/ #fff /*{e-bhover-shadow-color}*/;
640
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #fff5ba /*{e-bhover-background-start}*/), to( #fbdd52 /*{e-bhover-background-end}*/)); /* Saf4+, Chrome */
641
+ background-image: -webkit-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
642
+ background-image: -moz-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* FF3.6 */
643
+ background-image: -ms-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* IE10 */
644
+ background-image: -o-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* Opera 11.10+ */
645
+ background-image: linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/);
646
+ }
647
+ .ui-btn-hover-e a.ui-link-inherit {
648
+ color: #333 /*{e-bhover-color}*/;
649
+ }
650
+ .ui-btn-down-e {
651
+ border: 1px solid #F2C43d /*{e-bdown-border}*/;
652
+ background: #fceda7 /*{e-bdown-background-color}*/;
653
+ font-weight: bold;
654
+ color: #111 /*{e-bdown-color}*/;
655
+ text-shadow: 0 /*{e-bdown-shadow-x}*/ 1px /*{e-bdown-shadow-y}*/ 0 /*{e-bdown-shadow-radius}*/ #ffffff /*{e-bdown-shadow-color}*/;
656
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #f8d94c /*{e-bdown-background-start}*/), to( #fadb4e /*{e-bdown-background-end}*/)); /* Saf4+, Chrome */
657
+ background-image: -webkit-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
658
+ background-image: -moz-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* FF3.6 */
659
+ background-image: -ms-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* IE10 */
660
+ background-image: -o-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* Opera 11.10+ */
661
+ background-image: linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/);
662
+ }
663
+ .ui-btn-down-e a.ui-link-inherit {
664
+ color: #333 /*{e-bdown-color}*/;
665
+ }
666
+ .ui-btn-up-e,
667
+ .ui-btn-hover-e,
668
+ .ui-btn-down-e {
669
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
670
+ text-decoration: none;
671
+ }
672
+ /* Structure */
673
+ /* links within "buttons"
674
+ -----------------------------------------------------------------------------------------------------------*/
675
+ a.ui-link-inherit {
676
+ text-decoration: none !important;
677
+ }
678
+ /* Active class used as the "on" state across all themes
679
+ -----------------------------------------------------------------------------------------------------------*/
680
+ .ui-btn-active {
681
+ border: 1px solid #2373a5 /*{global-active-border}*/;
682
+ background: #5393c5 /*{global-active-background-color}*/;
683
+ font-weight: bold;
684
+ color: #fff /*{global-active-color}*/;
685
+ cursor: pointer;
686
+ text-shadow: 0 /*{global-active-shadow-x}*/ 1px /*{global-active-shadow-y}*/ 1px /*{global-active-shadow-radius}*/ #3373a5 /*{global-active-shadow-color}*/;
687
+ text-decoration: none;
688
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #5393c5 /*{global-active-background-start}*/), to( #6facd5 /*{global-active-background-end}*/)); /* Saf4+, Chrome */
689
+ background-image: -webkit-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* Chrome 10+, Saf5.1+ */
690
+ background-image: -moz-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* FF3.6 */
691
+ background-image: -ms-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* IE10 */
692
+ background-image: -o-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* Opera 11.10+ */
693
+ background-image: linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/);
694
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
695
+ }
696
+ .ui-btn-active a.ui-link-inherit {
697
+ color: #fff /*{global-active-color}*/;
698
+ }
699
+ /* button inner top highlight
700
+ -----------------------------------------------------------------------------------------------------------*/
701
+ .ui-btn-inner {
702
+ border-top: 1px solid #fff;
703
+ border-color: rgba(255,255,255,.3);
704
+ }
705
+ /* corner rounding classes
706
+ -----------------------------------------------------------------------------------------------------------*/
707
+ .ui-corner-tl {
708
+ -moz-border-radius-topleft: .6em /*{global-radii-blocks}*/;
709
+ -webkit-border-top-left-radius: .6em /*{global-radii-blocks}*/;
710
+ border-top-left-radius: .6em /*{global-radii-blocks}*/;
711
+ }
712
+ .ui-corner-tr {
713
+ -moz-border-radius-topright: .6em /*{global-radii-blocks}*/;
714
+ -webkit-border-top-right-radius: .6em /*{global-radii-blocks}*/;
715
+ border-top-right-radius: .6em /*{global-radii-blocks}*/;
716
+ }
717
+ .ui-corner-bl {
718
+ -moz-border-radius-bottomleft: .6em /*{global-radii-blocks}*/;
719
+ -webkit-border-bottom-left-radius: .6em /*{global-radii-blocks}*/;
720
+ border-bottom-left-radius: .6em /*{global-radii-blocks}*/;
721
+ }
722
+ .ui-corner-br {
723
+ -moz-border-radius-bottomright: .6em /*{global-radii-blocks}*/;
724
+ -webkit-border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
725
+ border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
726
+ }
727
+ .ui-corner-top {
728
+ -moz-border-radius-topleft: .6em /*{global-radii-blocks}*/;
729
+ -webkit-border-top-left-radius: .6em /*{global-radii-blocks}*/;
730
+ border-top-left-radius: .6em /*{global-radii-blocks}*/;
731
+ -moz-border-radius-topright: .6em /*{global-radii-blocks}*/;
732
+ -webkit-border-top-right-radius: .6em /*{global-radii-blocks}*/;
733
+ border-top-right-radius: .6em /*{global-radii-blocks}*/;
734
+ }
735
+ .ui-corner-bottom {
736
+ -moz-border-radius-bottomleft: .6em /*{global-radii-blocks}*/;
737
+ -webkit-border-bottom-left-radius: .6em /*{global-radii-blocks}*/;
738
+ border-bottom-left-radius: .6em /*{global-radii-blocks}*/;
739
+ -moz-border-radius-bottomright: .6em /*{global-radii-blocks}*/;
740
+ -webkit-border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
741
+ border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
742
+ }
743
+ .ui-corner-right {
744
+ -moz-border-radius-topright: .6em /*{global-radii-blocks}*/;
745
+ -webkit-border-top-right-radius: .6em /*{global-radii-blocks}*/;
746
+ border-top-right-radius: .6em /*{global-radii-blocks}*/;
747
+ -moz-border-radius-bottomright: .6em /*{global-radii-blocks}*/;
748
+ -webkit-border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
749
+ border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
750
+ }
751
+ .ui-corner-left {
752
+ -moz-border-radius-topleft: .6em /*{global-radii-blocks}*/;
753
+ -webkit-border-top-left-radius: .6em /*{global-radii-blocks}*/;
754
+ border-top-left-radius: .6em /*{global-radii-blocks}*/;
755
+ -moz-border-radius-bottomleft: .6em /*{global-radii-blocks}*/;
756
+ -webkit-border-bottom-left-radius: .6em /*{global-radii-blocks}*/;
757
+ border-bottom-left-radius: .6em /*{global-radii-blocks}*/;
758
+ }
759
+ .ui-corner-all {
760
+ -moz-border-radius: .6em /*{global-radii-blocks}*/;
761
+ -webkit-border-radius: .6em /*{global-radii-blocks}*/;
762
+ border-radius: .6em /*{global-radii-blocks}*/;
763
+ }
764
+ .ui-corner-none {
765
+ -moz-border-radius: 0;
766
+ -webkit-border-radius: 0;
767
+ border-radius: 0;
768
+ }
769
+ /* Form field separator
770
+ -----------------------------------------------------------------------------------------------------------*/
771
+ .ui-br {
772
+ border-bottom: rgb(130,130,130);
773
+ border-bottom: rgba(130,130,130,.3);
774
+ border-bottom-width: 1px;
775
+ border-bottom-style: solid;
776
+ }
777
+ /* Interaction cues
778
+ -----------------------------------------------------------------------------------------------------------*/
779
+ .ui-disabled {
780
+ opacity: .3;
781
+ }
782
+ .ui-disabled,
783
+ .ui-disabled a {
784
+ cursor: default !important;
785
+ pointer-events: none;
786
+ }
787
+ .ui-disabled .ui-btn-text {
788
+ -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=30)";
789
+ filter: alpha(opacity=30);
790
+ zoom: 1;
791
+ }
792
+ /* Icons
793
+ -----------------------------------------------------------------------------------------------------------*/
794
+ .ui-icon,
795
+ .ui-icon-searchfield:after {
796
+ background: #666 /*{global-icon-color}*/;
797
+ background: rgba(0,0,0,.4) /*{global-icon-disc}*/;
798
+ background-image: url(images/icons-18-white.png) /*{global-icon-set}*/;
799
+ background-repeat: no-repeat;
800
+ -moz-border-radius: 9px;
801
+ -webkit-border-radius: 9px;
802
+ border-radius: 9px;
803
+ }
804
+ /* Alt icon color
805
+ -----------------------------------------------------------------------------------------------------------*/
806
+ .ui-icon-alt {
807
+ background: #fff;
808
+ background: rgba(255,255,255,.3);
809
+ background-image: url(images/icons-18-black.png);
810
+ background-repeat: no-repeat;
811
+ }
812
+ /* HD/"retina" sprite
813
+ -----------------------------------------------------------------------------------------------------------*/
814
+ @media only screen and (-webkit-min-device-pixel-ratio: 1.5),
815
+ only screen and (min--moz-device-pixel-ratio: 1.5),
816
+ only screen and (min-resolution: 240dpi) {
817
+
818
+ .ui-icon-plus, .ui-icon-minus, .ui-icon-delete, .ui-icon-arrow-r,
819
+ .ui-icon-arrow-l, .ui-icon-arrow-u, .ui-icon-arrow-d, .ui-icon-check,
820
+ .ui-icon-gear, .ui-icon-refresh, .ui-icon-forward, .ui-icon-back,
821
+ .ui-icon-grid, .ui-icon-star, .ui-icon-alert, .ui-icon-info, .ui-icon-home, .ui-icon-search, .ui-icon-searchfield:after,
822
+ .ui-icon-checkbox-off, .ui-icon-checkbox-on, .ui-icon-radio-off, .ui-icon-radio-on {
823
+ background-image: url(images/icons-36-white.png);
824
+ -moz-background-size: 776px 18px;
825
+ -o-background-size: 776px 18px;
826
+ -webkit-background-size: 776px 18px;
827
+ background-size: 776px 18px;
828
+ }
829
+ .ui-icon-alt {
830
+ background-image: url(images/icons-36-black.png);
831
+ }
832
+ }
833
+ /* plus minus */
834
+ .ui-icon-plus {
835
+ background-position: -0 50%;
836
+ }
837
+ .ui-icon-minus {
838
+ background-position: -36px 50%;
839
+ }
840
+ /* delete/close */
841
+ .ui-icon-delete {
842
+ background-position: -72px 50%;
843
+ }
844
+ /* arrows */
845
+ .ui-icon-arrow-r {
846
+ background-position: -108px 50%;
847
+ }
848
+ .ui-icon-arrow-l {
849
+ background-position: -144px 50%;
850
+ }
851
+ .ui-icon-arrow-u {
852
+ background-position: -180px 50%;
853
+ }
854
+ .ui-icon-arrow-d {
855
+ background-position: -216px 50%;
856
+ }
857
+ /* misc */
858
+ .ui-icon-check {
859
+ background-position: -252px 50%;
860
+ }
861
+ .ui-icon-gear {
862
+ background-position: -288px 50%;
863
+ }
864
+ .ui-icon-refresh {
865
+ background-position: -324px 50%;
866
+ }
867
+ .ui-icon-forward {
868
+ background-position: -360px 50%;
869
+ }
870
+ .ui-icon-back {
871
+ background-position: -396px 50%;
872
+ }
873
+ .ui-icon-grid {
874
+ background-position: -432px 50%;
875
+ }
876
+ .ui-icon-star {
877
+ background-position: -468px 50%;
878
+ }
879
+ .ui-icon-alert {
880
+ background-position: -504px 50%;
881
+ }
882
+ .ui-icon-info {
883
+ background-position: -540px 50%;
884
+ }
885
+ .ui-icon-home {
886
+ background-position: -576px 50%;
887
+ }
888
+ .ui-icon-search,
889
+ .ui-icon-searchfield:after {
890
+ background-position: -612px 50%;
891
+ }
892
+ .ui-icon-checkbox-off {
893
+ background-position: -684px 50%;
894
+ }
895
+ .ui-icon-checkbox-on {
896
+ background-position: -648px 50%;
897
+ }
898
+ .ui-icon-radio-off {
899
+ background-position: -756px 50%;
900
+ }
901
+ .ui-icon-radio-on {
902
+ background-position: -720px 50%;
903
+ }
904
+ /* checks,radios */
905
+ .ui-checkbox .ui-icon {
906
+ -moz-border-radius: 3px;
907
+ -webkit-border-radius: 3px;
908
+ border-radius: 3px;
909
+ }
910
+ .ui-icon-checkbox-off,
911
+ .ui-icon-radio-off {
912
+ background-color: transparent;
913
+ }
914
+ .ui-checkbox-on .ui-icon,
915
+ .ui-radio-on .ui-icon {
916
+ background-color: #4596ce /*{global-active-background-color}*/; /* NOTE: this hex should match the active state color. It's repeated here for cascade */
917
+ }
918
+ /* loading icon */
919
+ .ui-icon-loading {
920
+ background: url(images/ajax-loader.gif);
921
+ background-size: 46px 46px;
922
+ }
923
+ /* Button corner classes
924
+ -----------------------------------------------------------------------------------------------------------*/
925
+ .ui-btn-corner-tl {
926
+ -moz-border-radius-topleft: 1em /*{global-radii-buttons}*/;
927
+ -webkit-border-top-left-radius: 1em /*{global-radii-buttons}*/;
928
+ border-top-left-radius: 1em /*{global-radii-buttons}*/;
929
+ }
930
+ .ui-btn-corner-tr {
931
+ -moz-border-radius-topright: 1em /*{global-radii-buttons}*/;
932
+ -webkit-border-top-right-radius: 1em /*{global-radii-buttons}*/;
933
+ border-top-right-radius: 1em /*{global-radii-buttons}*/;
934
+ }
935
+ .ui-btn-corner-bl {
936
+ -moz-border-radius-bottomleft: 1em /*{global-radii-buttons}*/;
937
+ -webkit-border-bottom-left-radius: 1em /*{global-radii-buttons}*/;
938
+ border-bottom-left-radius: 1em /*{global-radii-buttons}*/;
939
+ }
940
+ .ui-btn-corner-br {
941
+ -moz-border-radius-bottomright: 1em /*{global-radii-buttons}*/;
942
+ -webkit-border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
943
+ border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
944
+ }
945
+ .ui-btn-corner-top {
946
+ -moz-border-radius-topleft: 1em /*{global-radii-buttons}*/;
947
+ -webkit-border-top-left-radius: 1em /*{global-radii-buttons}*/;
948
+ border-top-left-radius: 1em /*{global-radii-buttons}*/;
949
+ -moz-border-radius-topright: 1em /*{global-radii-buttons}*/;
950
+ -webkit-border-top-right-radius: 1em /*{global-radii-buttons}*/;
951
+ border-top-right-radius: 1em /*{global-radii-buttons}*/;
952
+ }
953
+ .ui-btn-corner-bottom {
954
+ -moz-border-radius-bottomleft: 1em /*{global-radii-buttons}*/;
955
+ -webkit-border-bottom-left-radius: 1em /*{global-radii-buttons}*/;
956
+ border-bottom-left-radius: 1em /*{global-radii-buttons}*/;
957
+ -moz-border-radius-bottomright: 1em /*{global-radii-buttons}*/;
958
+ -webkit-border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
959
+ border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
960
+ }
961
+ .ui-btn-corner-right {
962
+ -moz-border-radius-topright: 1em /*{global-radii-buttons}*/;
963
+ -webkit-border-top-right-radius: 1em /*{global-radii-buttons}*/;
964
+ border-top-right-radius: 1em /*{global-radii-buttons}*/;
965
+ -moz-border-radius-bottomright: 1em /*{global-radii-buttons}*/;
966
+ -webkit-border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
967
+ border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
968
+ }
969
+ .ui-btn-corner-left {
970
+ -moz-border-radius-topleft: 1em /*{global-radii-buttons}*/;
971
+ -webkit-border-top-left-radius: 1em /*{global-radii-buttons}*/;
972
+ border-top-left-radius: 1em /*{global-radii-buttons}*/;
973
+ -moz-border-radius-bottomleft: 1em /*{global-radii-buttons}*/;
974
+ -webkit-border-bottom-left-radius: 1em /*{global-radii-buttons}*/;
975
+ border-bottom-left-radius: 1em /*{global-radii-buttons}*/;
976
+ }
977
+ .ui-btn-corner-all {
978
+ -moz-border-radius: 1em /*{global-radii-buttons}*/;
979
+ -webkit-border-radius: 1em /*{global-radii-buttons}*/;
980
+ border-radius: 1em /*{global-radii-buttons}*/;
981
+ }
982
+ /* radius clip workaround for cleaning up corner trapping */
983
+ .ui-corner-tl,
984
+ .ui-corner-tr,
985
+ .ui-corner-bl,
986
+ .ui-corner-br,
987
+ .ui-corner-top,
988
+ .ui-corner-bottom,
989
+ .ui-corner-right,
990
+ .ui-corner-left,
991
+ .ui-corner-all,
992
+ .ui-btn-corner-tl,
993
+ .ui-btn-corner-tr,
994
+ .ui-btn-corner-bl,
995
+ .ui-btn-corner-br,
996
+ .ui-btn-corner-top,
997
+ .ui-btn-corner-bottom,
998
+ .ui-btn-corner-right,
999
+ .ui-btn-corner-left,
1000
+ .ui-btn-corner-all {
1001
+ -webkit-background-clip: padding-box;
1002
+ -moz-background-clip: padding;
1003
+ background-clip: padding-box;
1004
+ }
1005
+ /* Overlay / modal
1006
+ -----------------------------------------------------------------------------------------------------------*/
1007
+ .ui-overlay {
1008
+ background: #666;
1009
+ opacity: .5;
1010
+ filter: Alpha(Opacity=50);
1011
+ position: absolute;
1012
+ width: 100%;
1013
+ height: 100%;
1014
+ }
1015
+ .ui-overlay-shadow {
1016
+ -moz-box-shadow: 0px 0px 12px rgba(0,0,0,.6);
1017
+ -webkit-box-shadow: 0px 0px 12px rgba(0,0,0,.6);
1018
+ box-shadow: 0px 0px 12px rgba(0,0,0,.6);
1019
+ }
1020
+ .ui-shadow {
1021
+ -moz-box-shadow: 0px 1px 4px /*{global-box-shadow-size}*/ rgba(0,0,0,.3) /*{global-box-shadow-color}*/;
1022
+ -webkit-box-shadow: 0px 1px 4px /*{global-box-shadow-size}*/ rgba(0,0,0,.3) /*{global-box-shadow-color}*/;
1023
+ box-shadow: 0px 1px 4px /*{global-box-shadow-size}*/ rgba(0,0,0,.3) /*{global-box-shadow-color}*/;
1024
+ }
1025
+ .ui-bar-a .ui-shadow,
1026
+ .ui-bar-b .ui-shadow ,
1027
+ .ui-bar-c .ui-shadow {
1028
+ -moz-box-shadow: 0px 1px 0 rgba(255,255,255,.3);
1029
+ -webkit-box-shadow: 0px 1px 0 rgba(255,255,255,.3);
1030
+ box-shadow: 0px 1px 0 rgba(255,255,255,.3);
1031
+ }
1032
+ .ui-shadow-inset {
1033
+ -moz-box-shadow: inset 0px 1px 4px rgba(0,0,0,.2);
1034
+ -webkit-box-shadow: inset 0px 1px 4px rgba(0,0,0,.2);
1035
+ box-shadow: inset 0px 1px 4px rgba(0,0,0,.2);
1036
+ }
1037
+ .ui-icon-shadow {
1038
+ -moz-box-shadow: 0px 1px 0 rgba(255,255,255,.4) /*{global-icon-shadow}*/;
1039
+ -webkit-box-shadow: 0px 1px 0 rgba(255,255,255,.4) /*{global-icon-shadow}*/;
1040
+ box-shadow: 0px 1px 0 rgba(255,255,255,.4) /*{global-icon-shadow}*/;
1041
+ }
1042
+ /* Focus state - set here for specificity (note: these classes are added by JavaScript)
1043
+ -----------------------------------------------------------------------------------------------------------*/
1044
+ .ui-btn:focus {
1045
+ outline: 0;
1046
+ }
1047
+ .ui-focus,
1048
+ .ui-btn:focus {
1049
+ -moz-box-shadow: 0px 0px 12px #387bbe /*{global-active-background-color}*/;
1050
+ -webkit-box-shadow: 0px 0px 12px #387bbe /*{global-active-background-color}*/;
1051
+ box-shadow: 0px 0px 12px #387bbe /*{global-active-background-color}*/;
1052
+ }
1053
+ /* unset box shadow in browsers that don't do it right
1054
+ -----------------------------------------------------------------------------------------------------------*/
1055
+ .ui-mobile-nosupport-boxshadow * {
1056
+ -moz-box-shadow: none !important;
1057
+ -webkit-box-shadow: none !important;
1058
+ box-shadow: none !important;
1059
+ }
1060
+ /* ...and bring back focus */
1061
+ .ui-mobile-nosupport-boxshadow .ui-focus,
1062
+ .ui-mobile-nosupport-boxshadow .ui-btn:focus {
1063
+ outline-width: 1px;
1064
+ outline-style: dotted;
1065
+ }
1066
+ /* some unsets - more probably needed */
1067
+ .ui-mobile, .ui-mobile body { height: 99.9%; }
1068
+ .ui-mobile fieldset, .ui-page { padding: 0; margin: 0; }
1069
+ .ui-mobile a img, .ui-mobile fieldset { border-width: 0; }
1070
+ /* responsive page widths */
1071
+ .ui-mobile-viewport { margin: 0; overflow-x: visible; -webkit-text-size-adjust: none; -ms-text-size-adjust:none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
1072
+ /* Issue #2066 */
1073
+ body.ui-mobile-viewport,
1074
+ div.ui-mobile-viewport { overflow-x: hidden; }
1075
+ /* "page" containers - full-screen views, one should always be in view post-pageload */
1076
+ .ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page { top: 0; left: 0; width: 100%; min-height: 100%; position: absolute; display: none; border: 0; }
1077
+ .ui-mobile .ui-page-active { display: block; overflow: visible; }
1078
+ /* on ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */
1079
+ .ui-page { outline: none; }
1080
+ /*orientations from js are available */
1081
+ @media screen and (orientation: portrait){
1082
+ .ui-mobile, .ui-mobile .ui-page { min-height: 420px; }
1083
+ }
1084
+ @media screen and (orientation: landscape){
1085
+ .ui-mobile, .ui-mobile .ui-page { min-height: 300px; }
1086
+ }
1087
+ /* loading screen */
1088
+ .ui-loading .ui-loader { display: block; }
1089
+ .ui-loader { display: none; z-index: 9999999; position: fixed; top: 50%; box-shadow: 0 1px 1px -1px #fff; left: 50%; border:0; }
1090
+ .ui-loader-default { background: none; opacity: .18; width: 46px; height: 46px; margin-left: -23px; margin-top: -23px; }
1091
+ .ui-loader-verbose { width: 200px; opacity: .88; height: auto; margin-left: -110px; margin-top: -43px; padding: 10px; }
1092
+ .ui-loader-default h1 { font-size: 0; width: 0; height: 0; overflow: hidden; }
1093
+ .ui-loader-verbose h1 { font-size: 16px; margin: 0; text-align: center; }
1094
+ .ui-loader .ui-icon { background-color: #000; display: block; margin: 0; width: 44px; height: 44px; padding: 1px; -webkit-border-radius: 36px; -moz-border-radius: 36px; border-radius: 36px; }
1095
+ .ui-loader-verbose .ui-icon { margin: 0 auto 10px; opacity: .75; }
1096
+ .ui-loader-textonly { padding: 15px; margin-left: -115px; }
1097
+ .ui-loader-textonly .ui-icon { display: none; }
1098
+ .ui-loader-fakefix { position: absolute; }
1099
+ /*fouc*/
1100
+ .ui-mobile-rendering > * { visibility: hidden; }
1101
+ /*headers, content panels*/
1102
+ .ui-bar, .ui-body { position: relative; padding: .4em 15px; overflow: hidden; display: block; clear:both; }
1103
+ .ui-bar { font-size: 16px; margin: 0; }
1104
+ .ui-bar h1, .ui-bar h2, .ui-bar h3, .ui-bar h4, .ui-bar h5, .ui-bar h6 { margin: 0; padding: 0; font-size: 16px; display: inline-block; }
1105
+ .ui-header, .ui-footer { position: relative; border-left-width: 0; border-right-width: 0; }
1106
+ .ui-header .ui-btn-left,
1107
+ .ui-header .ui-btn-right,
1108
+ .ui-footer .ui-btn-left,
1109
+ .ui-footer .ui-btn-right { position: absolute; top: 3px; }
1110
+ .ui-header .ui-btn-left,
1111
+ .ui-footer .ui-btn-left { left: 5px; }
1112
+ .ui-header .ui-btn-right,
1113
+ .ui-footer .ui-btn-right { right: 5px; }
1114
+ .ui-footer .ui-btn-icon-notext,
1115
+ .ui-header .ui-btn-icon-notext { top: 6px; }
1116
+ .ui-header .ui-title, .ui-footer .ui-title { min-height: 1.1em; text-align: center; font-size: 16px; display: block; margin: .6em 30% .8em; padding: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; outline: 0 !important; }
1117
+ .ui-footer .ui-title { margin: .6em 15px .8em; }
1118
+ /*content area*/
1119
+ .ui-content { border-width: 0; overflow: visible; overflow-x: hidden; padding: 15px; }
1120
+ /* icons sizing */
1121
+ .ui-icon { width: 18px; height: 18px; }
1122
+ /* non-js content hiding */
1123
+ .ui-nojs { position: absolute; left: -9999px; }
1124
+ /* accessible content hiding */
1125
+ .ui-hide-label label,
1126
+ .ui-hidden-accessible { position: absolute !important; left: -9999px; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
1127
+ /* Transitions originally inspired by those from jQtouch, nice work, folks */
1128
+ .ui-mobile-viewport-transitioning,
1129
+ .ui-mobile-viewport-transitioning .ui-page {
1130
+ width: 100%;
1131
+ height: 100%;
1132
+ overflow: hidden;
1133
+ }
1134
+ .in {
1135
+ -webkit-animation-timing-function: ease-out;
1136
+ -webkit-animation-duration: 350ms;
1137
+ -moz-animation-timing-function: ease-out;
1138
+ -moz-animation-duration: 350ms;
1139
+ }
1140
+ .out {
1141
+ -webkit-animation-timing-function: ease-in;
1142
+ -webkit-animation-duration: 225ms;
1143
+ -moz-animation-timing-function: ease-in;
1144
+ -moz-animation-duration: 225;
1145
+ }
1146
+ @-webkit-keyframes fadein {
1147
+ from { opacity: 0; }
1148
+ to { opacity: 1; }
1149
+ }
1150
+ @-moz-keyframes fadein {
1151
+ from { opacity: 0; }
1152
+ to { opacity: 1; }
1153
+ }
1154
+ @-webkit-keyframes fadeout {
1155
+ from { opacity: 1; }
1156
+ to { opacity: 0; }
1157
+ }
1158
+ @-moz-keyframes fadeout {
1159
+ from { opacity: 1; }
1160
+ to { opacity: 0; }
1161
+ }
1162
+ .fade.out {
1163
+ opacity: 0;
1164
+ -webkit-animation-duration: 125ms;
1165
+ -webkit-animation-name: fadeout;
1166
+ -moz-animation-duration: 125ms;
1167
+ -moz-animation-name: fadeout;
1168
+ }
1169
+ .fade.in {
1170
+ opacity: 1;
1171
+ -webkit-animation-duration: 225ms;
1172
+ -webkit-animation-name: fadein;
1173
+ -moz-animation-duration: 225ms;
1174
+ -moz-animation-name: fadein;
1175
+ }
1176
+ .pop {
1177
+ -webkit-transform-origin: 50% 50%;
1178
+ -moz-transform-origin: 50% 50%;
1179
+ }
1180
+ .pop.in {
1181
+ -webkit-transform: scale(1);
1182
+ -moz-transform: scale(1);
1183
+ opacity: 1;
1184
+ -webkit-animation-name: popin;
1185
+ -moz-animation-name: popin;
1186
+ -webkit-animation-duration: 350ms;
1187
+ -moz-animation-duration: 350ms;
1188
+ }
1189
+ .pop.out {
1190
+ -webkit-animation-name: fadeout;
1191
+ -moz-animation-name: fadeout;
1192
+ opacity: 0;
1193
+ -webkit-animation-duration: 100ms;
1194
+ -moz-animation-duration: 100ms;
1195
+ }
1196
+ .pop.in.reverse {
1197
+ -webkit-animation-name: fadein;
1198
+ -moz-animation-name: fadein;
1199
+ }
1200
+ .pop.out.reverse {
1201
+ -webkit-transform: scale(.8);
1202
+ -moz-transform: scale(.8);
1203
+ -webkit-animation-name: popout;
1204
+ -moz-animation-name: popout;
1205
+ }
1206
+ @-webkit-keyframes popin {
1207
+ from {
1208
+ -webkit-transform: scale(.8);
1209
+ opacity: 0;
1210
+ }
1211
+ to {
1212
+ -webkit-transform: scale(1);
1213
+ opacity: 1;
1214
+ }
1215
+ }
1216
+ @-moz-keyframes popin {
1217
+ from {
1218
+ -moz-transform: scale(.8);
1219
+ opacity: 0;
1220
+ }
1221
+ to {
1222
+ -moz-transform: scale(1);
1223
+ opacity: 1;
1224
+ }
1225
+ }
1226
+ @-webkit-keyframes popout {
1227
+ from {
1228
+ -webkit-transform: scale(1);
1229
+ opacity: 1;
1230
+ }
1231
+ to {
1232
+ -webkit-transform: scale(.8);
1233
+ opacity: 0;
1234
+ }
1235
+ }
1236
+ @-moz-keyframes popout {
1237
+ from {
1238
+ -moz-transform: scale(1);
1239
+ opacity: 1;
1240
+ }
1241
+ to {
1242
+ -moz-transform: scale(.8);
1243
+ opacity: 0;
1244
+ }
1245
+ }
1246
+ /* keyframes for slidein from sides */
1247
+ @-webkit-keyframes slideinfromright {
1248
+ from { -webkit-transform: translateX(100%); }
1249
+ to { -webkit-transform: translateX(0); }
1250
+ }
1251
+ @-moz-keyframes slideinfromright {
1252
+ from { -moz-transform: translateX(100%); }
1253
+ to { -moz-transform: translateX(0); }
1254
+ }
1255
+ @-webkit-keyframes slideinfromleft {
1256
+ from { -webkit-transform: translateX(-100%); }
1257
+ to { -webkit-transform: translateX(0); }
1258
+ }
1259
+ @-moz-keyframes slideinfromleft {
1260
+ from { -moz-transform: translateX(-100%); }
1261
+ to { -moz-transform: translateX(0); }
1262
+ }
1263
+ /* keyframes for slideout to sides */
1264
+ @-webkit-keyframes slideouttoleft {
1265
+ from { -webkit-transform: translateX(0); }
1266
+ to { -webkit-transform: translateX(-100%); }
1267
+ }
1268
+ @-moz-keyframes slideouttoleft {
1269
+ from { -moz-transform: translateX(0); }
1270
+ to { -moz-transform: translateX(-100%); }
1271
+ }
1272
+ @-webkit-keyframes slideouttoright {
1273
+ from { -webkit-transform: translateX(0); }
1274
+ to { -webkit-transform: translateX(100%); }
1275
+ }
1276
+ @-moz-keyframes slideouttoright {
1277
+ from { -moz-transform: translateX(0); }
1278
+ to { -moz-transform: translateX(100%); }
1279
+ }
1280
+ .slide.out, .slide.in {
1281
+ -webkit-animation-timing-function: ease-out;
1282
+ -webkit-animation-duration: 350ms;
1283
+ -moz-animation-timing-function: ease-out;
1284
+ -moz-animation-duration: 350ms;
1285
+ }
1286
+ .slide.out {
1287
+ -webkit-transform: translateX(-100%);
1288
+ -webkit-animation-name: slideouttoleft;
1289
+ -moz-transform: translateX(-100%);
1290
+ -moz-animation-name: slideouttoleft;
1291
+ }
1292
+ .slide.in {
1293
+ -webkit-transform: translateX(0);
1294
+ -webkit-animation-name: slideinfromright;
1295
+ -moz-transform: translateX(0);
1296
+ -moz-animation-name: slideinfromright;
1297
+ }
1298
+ .slide.out.reverse {
1299
+ -webkit-transform: translateX(100%);
1300
+ -webkit-animation-name: slideouttoright;
1301
+ -moz-transform: translateX(100%);
1302
+ -moz-animation-name: slideouttoright;
1303
+ }
1304
+ .slide.in.reverse {
1305
+ -webkit-transform: translateX(0);
1306
+ -webkit-animation-name: slideinfromleft;
1307
+ -moz-transform: translateX(0);
1308
+ -moz-animation-name: slideinfromleft;
1309
+ }
1310
+ .slidefade.out {
1311
+ -webkit-transform: translateX(-100%);
1312
+ -webkit-animation-name: slideouttoleft;
1313
+ -moz-transform: translateX(-100%);
1314
+ -moz-animation-name: slideouttoleft;
1315
+ -webkit-animation-duration: 225ms;
1316
+ -moz-animation-duration: 225ms;
1317
+ }
1318
+ .slidefade.in {
1319
+ -webkit-transform: translateX(0);
1320
+ -webkit-animation-name: fadein;
1321
+ -moz-transform: translateX(0);
1322
+ -moz-animation-name: fadein;
1323
+ -webkit-animation-duration: 200ms;
1324
+ -moz-animation-duration: 200ms;
1325
+ }
1326
+ .slidefade.out.reverse {
1327
+ -webkit-transform: translateX(100%);
1328
+ -webkit-animation-name: slideouttoright;
1329
+ -moz-transform: translateX(100%);
1330
+ -moz-animation-name: slideouttoright;
1331
+ -webkit-animation-duration: 200ms;
1332
+ -moz-animation-duration: 200ms;
1333
+ }
1334
+ .slidefade.in.reverse {
1335
+ -webkit-transform: translateX(0);
1336
+ -webkit-animation-name: fadein;
1337
+ -moz-transform: translateX(0);
1338
+ -moz-animation-name: fadein;
1339
+ -webkit-animation-duration: 200ms;
1340
+ -moz-animation-duration: 200ms;
1341
+ }
1342
+ /* slide down */
1343
+ .slidedown.out {
1344
+ -webkit-animation-name: fadeout;
1345
+ -moz-animation-name: fadeout;
1346
+ -webkit-animation-duration: 100ms;
1347
+ -moz-animation-duration: 100ms;
1348
+ }
1349
+ .slidedown.in {
1350
+ -webkit-transform: translateY(0);
1351
+ -webkit-animation-name: slideinfromtop;
1352
+ -moz-transform: translateY(0);
1353
+ -moz-animation-name: slideinfromtop;
1354
+ -webkit-animation-duration: 250ms;
1355
+ -moz-animation-duration: 250ms;
1356
+ }
1357
+ .slidedown.in.reverse {
1358
+ -webkit-animation-name: fadein;
1359
+ -moz-animation-name: fadein;
1360
+ -webkit-animation-duration: 150ms;
1361
+ -moz-animation-duration: 150ms;
1362
+ }
1363
+ .slidedown.out.reverse {
1364
+ -webkit-transform: translateY(-100%);
1365
+ -moz-transform: translateY(-100%);
1366
+ -webkit-animation-name: slideouttotop;
1367
+ -moz-animation-name: slideouttotop;
1368
+ -webkit-animation-duration: 200ms;
1369
+ -moz-animation-duration: 200ms;
1370
+ }
1371
+ @-webkit-keyframes slideinfromtop {
1372
+ from { -webkit-transform: translateY(-100%); }
1373
+ to { -webkit-transform: translateY(0); }
1374
+ }
1375
+ @-moz-keyframes slideinfromtop {
1376
+ from { -moz-transform: translateY(-100%); }
1377
+ to { -moz-transform: translateY(0); }
1378
+ }
1379
+ @-webkit-keyframes slideouttotop {
1380
+ from { -webkit-transform: translateY(0); }
1381
+ to { -webkit-transform: translateY(-100%); }
1382
+ }
1383
+ @-moz-keyframes slideouttotop {
1384
+ from { -moz-transform: translateY(0); }
1385
+ to { -moz-transform: translateY(-100%); }
1386
+ }
1387
+ /* slide up */
1388
+ .slideup.out {
1389
+ -webkit-animation-name: fadeout;
1390
+ -moz-animation-name: fadeout;
1391
+ -webkit-animation-duration: 100ms;
1392
+ -moz-animation-duration: 100ms;
1393
+ }
1394
+ .slideup.in {
1395
+ -webkit-transform: translateY(0);
1396
+ -webkit-animation-name: slideinfrombottom;
1397
+ -moz-transform: translateY(0);
1398
+ -moz-animation-name: slideinfrombottom;
1399
+ -webkit-animation-duration: 250ms;
1400
+ -moz-animation-duration: 250ms;
1401
+ }
1402
+ .slideup.in.reverse {
1403
+ -webkit-animation-name: fadein;
1404
+ -moz-animation-name: fadein;
1405
+ -webkit-animation-duration: 150ms;
1406
+ -moz-animation-duration: 150ms;
1407
+ }
1408
+ .slideup.out.reverse {
1409
+ -webkit-transform: translateY(100%);
1410
+ -moz-transform: translateY(100%);
1411
+ -webkit-animation-name: slideouttobottom;
1412
+ -moz-animation-name: slideouttobottom;
1413
+ -webkit-animation-duration: 200ms;
1414
+ -moz-animation-duration: 200ms;
1415
+ }
1416
+ @-webkit-keyframes slideinfrombottom {
1417
+ from { -webkit-transform: translateY(100%); }
1418
+ to { -webkit-transform: translateY(0); }
1419
+ }
1420
+ @-moz-keyframes slideinfrombottom {
1421
+ from { -moz-transform: translateY(100%); }
1422
+ to { -moz-transform: translateY(0); }
1423
+ }
1424
+ @-webkit-keyframes slideouttobottom {
1425
+ from { -webkit-transform: translateY(0); }
1426
+ to { -webkit-transform: translateY(100%); }
1427
+ }
1428
+ @-moz-keyframes slideouttobottom {
1429
+ from { -moz-transform: translateY(0); }
1430
+ to { -moz-transform: translateY(100%); }
1431
+ }
1432
+ /* The properties in this rule are only necessary for the 'flip' transition.
1433
+ * We need specify the perspective to create a projection matrix. This will add
1434
+ * some depth as the element flips. The depth number represents the distance of
1435
+ * the viewer from the z-plane. According to the CSS3 spec, 1000 is a moderate
1436
+ * value.
1437
+ */
1438
+ .viewport-flip {
1439
+ -webkit-perspective: 1000;
1440
+ -moz-perspective: 1000;
1441
+ position: absolute;
1442
+ }
1443
+ .flip {
1444
+ -webkit-backface-visibility:hidden;
1445
+ -webkit-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
1446
+ -moz-backface-visibility:hidden;
1447
+ -moz-transform:translateX(0);
1448
+ }
1449
+ .flip.out {
1450
+ -webkit-transform: rotateY(-90deg) scale(.9);
1451
+ -webkit-animation-name: flipouttoleft;
1452
+ -webkit-animation-duration: 175ms;
1453
+ -moz-transform: rotateY(-90deg) scale(.9);
1454
+ -moz-animation-name: flipouttoleft;
1455
+ -moz-animation-duration: 175ms;
1456
+ }
1457
+ .flip.in {
1458
+ -webkit-animation-name: flipintoright;
1459
+ -webkit-animation-duration: 225ms;
1460
+ -moz-animation-name: flipintoright;
1461
+ -moz-animation-duration: 225ms;
1462
+ }
1463
+ .flip.out.reverse {
1464
+ -webkit-transform: rotateY(90deg) scale(.9);
1465
+ -webkit-animation-name: flipouttoright;
1466
+ -moz-transform: rotateY(90deg) scale(.9);
1467
+ -moz-animation-name: flipouttoright;
1468
+ }
1469
+ .flip.in.reverse {
1470
+ -webkit-animation-name: flipintoleft;
1471
+ -moz-animation-name: flipintoleft;
1472
+ }
1473
+ @-webkit-keyframes flipouttoleft {
1474
+ from { -webkit-transform: rotateY(0); }
1475
+ to { -webkit-transform: rotateY(-90deg) scale(.9); }
1476
+ }
1477
+ @-moz-keyframes flipouttoleft {
1478
+ from { -moz-transform: rotateY(0); }
1479
+ to { -moz-transform: rotateY(-90deg) scale(.9); }
1480
+ }
1481
+ @-webkit-keyframes flipouttoright {
1482
+ from { -webkit-transform: rotateY(0) ; }
1483
+ to { -webkit-transform: rotateY(90deg) scale(.9); }
1484
+ }
1485
+ @-moz-keyframes flipouttoright {
1486
+ from { -moz-transform: rotateY(0); }
1487
+ to { -moz-transform: rotateY(90deg) scale(.9); }
1488
+ }
1489
+ @-webkit-keyframes flipintoleft {
1490
+ from { -webkit-transform: rotateY(-90deg) scale(.9); }
1491
+ to { -webkit-transform: rotateY(0); }
1492
+ }
1493
+ @-moz-keyframes flipintoleft {
1494
+ from { -moz-transform: rotateY(-90deg) scale(.9); }
1495
+ to { -moz-transform: rotateY(0); }
1496
+ }
1497
+ @-webkit-keyframes flipintoright {
1498
+ from { -webkit-transform: rotateY(90deg) scale(.9); }
1499
+ to { -webkit-transform: rotateY(0); }
1500
+ }
1501
+ @-moz-keyframes flipintoright {
1502
+ from { -moz-transform: rotateY(90deg) scale(.9); }
1503
+ to { -moz-transform: rotateY(0); }
1504
+ }
1505
+ /* The properties in this rule are only necessary for the 'flip' transition.
1506
+ * We need specify the perspective to create a projection matrix. This will add
1507
+ * some depth as the element flips. The depth number represents the distance of
1508
+ * the viewer from the z-plane. According to the CSS3 spec, 1000 is a moderate
1509
+ * value.
1510
+ */
1511
+ .viewport-turn {
1512
+ -webkit-perspective: 1000;
1513
+ -moz-perspective: 1000;
1514
+ position: absolute;
1515
+ }
1516
+ .turn {
1517
+ -webkit-backface-visibility:hidden;
1518
+ -webkit-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
1519
+ -webkit-transform-origin: 0;
1520
+
1521
+ -moz-backface-visibility:hidden;
1522
+ -moz-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
1523
+ -moz-transform-origin: 0;
1524
+ }
1525
+ .turn.out {
1526
+ -webkit-transform: rotateY(-90deg) scale(.9);
1527
+ -webkit-animation-name: flipouttoleft;
1528
+ -moz-transform: rotateY(-90deg) scale(.9);
1529
+ -moz-animation-name: flipouttoleft;
1530
+ -webkit-animation-duration: 125ms;
1531
+ -moz-animation-duration: 125ms;
1532
+ }
1533
+ .turn.in {
1534
+ -webkit-animation-name: flipintoright;
1535
+ -moz-animation-name: flipintoright;
1536
+ -webkit-animation-duration: 250ms;
1537
+ -moz-animation-duration: 250ms;
1538
+
1539
+ }
1540
+ .turn.out.reverse {
1541
+ -webkit-transform: rotateY(90deg) scale(.9);
1542
+ -webkit-animation-name: flipouttoright;
1543
+ -moz-transform: rotateY(90deg) scale(.9);
1544
+ -moz-animation-name: flipouttoright;
1545
+ }
1546
+ .turn.in.reverse {
1547
+ -webkit-animation-name: flipintoleft;
1548
+ -moz-animation-name: flipintoleft;
1549
+ }
1550
+ @-webkit-keyframes flipouttoleft {
1551
+ from { -webkit-transform: rotateY(0); }
1552
+ to { -webkit-transform: rotateY(-90deg) scale(.9); }
1553
+ }
1554
+ @-moz-keyframes flipouttoleft {
1555
+ from { -moz-transform: rotateY(0); }
1556
+ to { -moz-transform: rotateY(-90deg) scale(.9); }
1557
+ }
1558
+ @-webkit-keyframes flipouttoright {
1559
+ from { -webkit-transform: rotateY(0) ; }
1560
+ to { -webkit-transform: rotateY(90deg) scale(.9); }
1561
+ }
1562
+ @-moz-keyframes flipouttoright {
1563
+ from { -moz-transform: rotateY(0); }
1564
+ to { -moz-transform: rotateY(90deg) scale(.9); }
1565
+ }
1566
+ @-webkit-keyframes flipintoleft {
1567
+ from { -webkit-transform: rotateY(-90deg) scale(.9); }
1568
+ to { -webkit-transform: rotateY(0); }
1569
+ }
1570
+ @-moz-keyframes flipintoleft {
1571
+ from { -moz-transform: rotateY(-90deg) scale(.9); }
1572
+ to { -moz-transform: rotateY(0); }
1573
+ }
1574
+ @-webkit-keyframes flipintoright {
1575
+ from { -webkit-transform: rotateY(90deg) scale(.9); }
1576
+ to { -webkit-transform: rotateY(0); }
1577
+ }
1578
+ @-moz-keyframes flipintoright {
1579
+ from { -moz-transform: rotateY(90deg) scale(.9); }
1580
+ to { -moz-transform: rotateY(0); }
1581
+ }
1582
+ /* flow transition */
1583
+ .flow {
1584
+ -webkit-transform-origin: 50% 30%;
1585
+ -moz-transform-origin: 50% 30%;
1586
+ -webkit-box-shadow: 0 0 20px rgba(0,0,0,.4);
1587
+ -moz-box-shadow: 0 0 20px rgba(0,0,0,.4);
1588
+ }
1589
+ .ui-dialog.flow {
1590
+ -webkit-transform-origin: none;
1591
+ -moz-transform-origin: none;
1592
+ -webkit-box-shadow: none;
1593
+ -moz-box-shadow: none;
1594
+ }
1595
+ .flow.out {
1596
+ -webkit-transform: translateX(-100%) scale(.7);
1597
+ -webkit-animation-name: flowouttoleft;
1598
+ -webkit-animation-timing-function: ease;
1599
+ -webkit-animation-duration: 350ms;
1600
+ -moz-transform: translateX(-100%) scale(.7);
1601
+ -moz-animation-name: flowouttoleft;
1602
+ -moz-animation-timing-function: ease;
1603
+ -moz-animation-duration: 350ms;
1604
+ }
1605
+ .flow.in {
1606
+ -webkit-transform: translateX(0) scale(1);
1607
+ -webkit-animation-name: flowinfromright;
1608
+ -webkit-animation-timing-function: ease;
1609
+ -webkit-animation-duration: 350ms;
1610
+ -moz-transform: translateX(0) scale(1);
1611
+ -moz-animation-name: flowinfromright;
1612
+ -moz-animation-timing-function: ease;
1613
+ -moz-animation-duration: 350ms;
1614
+ }
1615
+ .flow.out.reverse {
1616
+ -webkit-transform: translateX(100%);
1617
+ -webkit-animation-name: flowouttoright;
1618
+ -moz-transform: translateX(100%);
1619
+ -moz-animation-name: flowouttoright;
1620
+ }
1621
+ .flow.in.reverse {
1622
+ -webkit-animation-name: flowinfromleft;
1623
+ -moz-animation-name: flowinfromleft;
1624
+ }
1625
+ @-webkit-keyframes flowouttoleft {
1626
+ 0% { -webkit-transform: translateX(0) scale(1); }
1627
+ 60%, 70% { -webkit-transform: translateX(0) scale(.7); }
1628
+ 100% { -webkit-transform: translateX(-100%) scale(.7); }
1629
+ }
1630
+ @-moz-keyframes flowouttoleft {
1631
+ 0% { -moz-transform: translateX(0) scale(1); }
1632
+ 60%, 70% { -moz-transform: translateX(0) scale(.7); }
1633
+ 100% { -moz-transform: translateX(-100%) scale(.7); }
1634
+ }
1635
+ @-webkit-keyframes flowouttoright {
1636
+ 0% { -webkit-transform: translateX(0) scale(1); }
1637
+ 60%, 70% { -webkit-transform: translateX(0) scale(.7); }
1638
+ 100% { -webkit-transform: translateX(100%) scale(.7); }
1639
+ }
1640
+ @-moz-keyframes flowouttoright {
1641
+ 0% { -moz-transform: translateX(0) scale(1); }
1642
+ 60%, 70% { -moz-transform: translateX(0) scale(.7); }
1643
+ 100% { -moz-transform: translateX(100%) scale(.7); }
1644
+ }
1645
+ @-webkit-keyframes flowinfromleft {
1646
+ 0% { -webkit-transform: translateX(-100%) scale(.7); }
1647
+ 30%, 40% { -webkit-transform: translateX(0) scale(.7); }
1648
+ 100% { -webkit-transform: translateX(0) scale(1); }
1649
+ }
1650
+ @-moz-keyframes flowinfromleft {
1651
+ 0% { -moz-transform: translateX(-100%) scale(.7); }
1652
+ 30%, 40% { -moz-transform: translateX(0) scale(.7); }
1653
+ 100% { -moz-transform: translateX(0) scale(1); }
1654
+ }
1655
+ @-webkit-keyframes flowinfromright {
1656
+ 0% { -webkit-transform: translateX(100%) scale(.7); }
1657
+ 30%, 40% { -webkit-transform: translateX(0) scale(.7); }
1658
+ 100% { -webkit-transform: translateX(0) scale(1); }
1659
+ }
1660
+ @-moz-keyframes flowinfromright {
1661
+ 0% { -moz-transform: translateX(100%) scale(.7); }
1662
+ 30%, 40% { -moz-transform: translateX(0) scale(.7); }
1663
+ 100% { -moz-transform: translateX(0) scale(1); }
1664
+ }
1665
+ /* content configurations. */
1666
+ .ui-grid-a, .ui-grid-b, .ui-grid-c, .ui-grid-d { overflow: hidden; }
1667
+ .ui-block-a, .ui-block-b, .ui-block-c, .ui-block-d, .ui-block-e { margin: 0; padding: 0; border: 0; float: left; min-height:1px;}
1668
+ /* grid solo: 100 - single item fallback */
1669
+ .ui-grid-solo .ui-block-a { width: 100%; float: none; }
1670
+ /* grid a: 50/50 */
1671
+ .ui-grid-a .ui-block-a, .ui-grid-a .ui-block-b { width: 50%; }
1672
+ .ui-grid-a .ui-block-a { clear: left; }
1673
+ /* grid b: 33/33/33 */
1674
+ .ui-grid-b .ui-block-a, .ui-grid-b .ui-block-b, .ui-grid-b .ui-block-c { width: 33.333%; }
1675
+ .ui-grid-b .ui-block-a { clear: left; }
1676
+ /* grid c: 25/25/25/25 */
1677
+ .ui-grid-c .ui-block-a, .ui-grid-c .ui-block-b, .ui-grid-c .ui-block-c, .ui-grid-c .ui-block-d { width: 25%; }
1678
+ .ui-grid-c .ui-block-a { clear: left; }
1679
+ /* grid d: 20/20/20/20/20 */
1680
+ .ui-grid-d .ui-block-a, .ui-grid-d .ui-block-b, .ui-grid-d .ui-block-c, .ui-grid-d .ui-block-d, .ui-grid-d .ui-block-e { width: 20%; }
1681
+ .ui-grid-d .ui-block-a { clear: left; }
1682
+ /* fixed page header & footer configuration */
1683
+ .ui-header-fixed,
1684
+ .ui-footer-fixed {
1685
+ left: 0;
1686
+ right: 0;
1687
+ width: 100%;
1688
+ position: fixed;
1689
+ z-index: 1000;
1690
+ }
1691
+ .ui-header-fixed {
1692
+ top: 0;
1693
+ }
1694
+ .ui-footer-fixed {
1695
+ bottom: 0;
1696
+ }
1697
+ .ui-header-fullscreen,
1698
+ .ui-footer-fullscreen {
1699
+ opacity: .9;
1700
+ }
1701
+ .ui-page-header-fixed {
1702
+ padding-top: 2.5em;
1703
+ }
1704
+ .ui-page-footer-fixed {
1705
+ padding-bottom: 3em;
1706
+ }
1707
+ .ui-page-header-fullscreen .ui-content,
1708
+ .ui-page-footer-fullscreen .ui-content {
1709
+ padding: 0;
1710
+ }
1711
+ .ui-fixed-hidden {
1712
+ position: absolute;
1713
+ }
1714
+ .ui-page-header-fullscreen .ui-fixed-hidden,
1715
+ .ui-page-footer-fullscreen .ui-fixed-hidden {
1716
+ left: -99999em;
1717
+ }
1718
+ .ui-header-fixed .ui-btn,
1719
+ .ui-footer-fixed .ui-btn {
1720
+ z-index: 10;
1721
+ }
1722
+ .ui-navbar { overflow: hidden; }
1723
+ .ui-navbar ul, .ui-navbar-expanded ul { list-style:none; padding: 0; margin: 0; position: relative; display: block; border: 0;}
1724
+ .ui-navbar-collapsed ul { float: left; width: 75%; margin-right: -2px; }
1725
+ .ui-navbar-collapsed .ui-navbar-toggle { float: left; width: 25%; }
1726
+ .ui-navbar li.ui-navbar-truncate { position: absolute; left: -9999px; top: -9999px; }
1727
+ .ui-navbar li .ui-btn, .ui-navbar .ui-navbar-toggle .ui-btn { display: block; font-size: 12px; text-align: center; margin: 0; border-right-width: 0; max-width: 100%; }
1728
+ .ui-navbar li .ui-btn { margin-right: -1px; }
1729
+ .ui-navbar li .ui-btn:last-child { margin-right: 0; }
1730
+ .ui-header .ui-navbar li .ui-btn, .ui-header .ui-navbar .ui-navbar-toggle .ui-btn,
1731
+ .ui-footer .ui-navbar li .ui-btn, .ui-footer .ui-navbar .ui-navbar-toggle .ui-btn { border-top-width: 0; border-bottom-width: 0; }
1732
+ .ui-navbar .ui-btn-inner { padding-left: 2px; padding-right: 2px; }
1733
+ .ui-navbar-noicons li .ui-btn .ui-btn-inner, .ui-navbar-noicons .ui-navbar-toggle .ui-btn-inner { padding-top: .8em; padding-bottom: .9em; }
1734
+ /*expanded page styles*/
1735
+ .ui-navbar-expanded .ui-btn { margin: 0; font-size: 14px; }
1736
+ .ui-navbar-expanded .ui-btn-inner { padding-left: 5px; padding-right: 5px; }
1737
+ .ui-navbar-expanded .ui-btn-icon-top .ui-btn-inner { padding: 45px 5px 15px; text-align: center; }
1738
+ .ui-navbar-expanded .ui-btn-icon-top .ui-icon { top: 15px; }
1739
+ .ui-navbar-expanded .ui-btn-icon-bottom .ui-btn-inner { padding: 15px 5px 45px; text-align: center; }
1740
+ .ui-navbar-expanded .ui-btn-icon-bottom .ui-icon { bottom: 15px; }
1741
+ .ui-navbar-expanded li .ui-btn .ui-btn-inner { min-height: 2.5em; }
1742
+ .ui-navbar-expanded .ui-navbar-noicons .ui-btn .ui-btn-inner { padding-top: 1.8em; padding-bottom: 1.9em; }
1743
+ .ui-btn { display: block; text-align: center; cursor:pointer; position: relative; margin: .5em 5px; padding: 0; }
1744
+ .ui-mini { margin: .25em 5px; }
1745
+ .ui-btn-inner { padding: .6em 20px; min-width: .75em; display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; position: relative; zoom: 1; }
1746
+ .ui-btn input, .ui-btn button { z-index: 2; }
1747
+ .ui-btn-left, .ui-btn-right, .ui-btn-inline { display: inline-block; }
1748
+ .ui-btn-block { display: block; }
1749
+ .ui-header .ui-btn,
1750
+ .ui-footer .ui-btn { display: inline-block; margin: 0; }
1751
+ .ui-header .ui-btn-inner,
1752
+ .ui-footer .ui-btn-inner,
1753
+ .ui-mini .ui-btn-inner { font-size: 12.5px; padding: .55em 11px .5em; }
1754
+ .ui-header .ui-fullsize .ui-btn-inner,
1755
+ .ui-footer .ui-fullsize .ui-btn-inner { font-size: 16px; padding: .6em 25px; }
1756
+ .ui-btn-icon-notext { width: 24px; height: 24px; }
1757
+ .ui-btn-icon-notext .ui-btn-inner { padding: 0; height: 100%; }
1758
+ .ui-btn-icon-notext .ui-btn-inner .ui-icon { margin: 2px 1px 2px 3px; }
1759
+ .ui-btn-text { position: relative; z-index: 1; width: 100%; }
1760
+ .ui-btn-icon-notext .ui-btn-text { position: absolute; left: -9999px; }
1761
+ .ui-btn-icon-left .ui-btn-inner { padding-left: 40px; }
1762
+ .ui-btn-icon-right .ui-btn-inner { padding-right: 40px; }
1763
+ .ui-btn-icon-top .ui-btn-inner { padding-top: 40px; }
1764
+ .ui-btn-icon-bottom .ui-btn-inner { padding-bottom: 40px; }
1765
+ .ui-header .ui-btn-icon-left .ui-btn-inner,
1766
+ .ui-footer .ui-btn-icon-left .ui-btn-inner,
1767
+ .ui-mini .ui-btn-icon-left .ui-btn-inner { padding-left: 30px; }
1768
+ .ui-header .ui-btn-icon-right .ui-btn-inner,
1769
+ .ui-footer .ui-btn-icon-right .ui-btn-inner,
1770
+ .ui-mini .ui-btn-icon-right .ui-btn-inner { padding-right: 30px; }
1771
+ .ui-header .ui-btn-icon-top .ui-btn-inner,
1772
+ .ui-footer .ui-btn-icon-top .ui-btn-inner,
1773
+ .ui-mini .ui-btn-icon-top .ui-btn-inner { padding: 30px 3px .5em 3px; }
1774
+ .ui-header .ui-btn-icon-bottom .ui-btn-inner,
1775
+ .ui-footer .ui-btn-icon-bottom .ui-btn-inner,
1776
+ .ui-mini .ui-btn-icon-bottom .ui-btn-inner { padding: .55em 3px 30px 3px; }
1777
+ /*btn icon positioning*/
1778
+ .ui-btn-icon-notext .ui-icon { display: block; z-index: 0;}
1779
+ .ui-btn-icon-left .ui-btn-inner .ui-icon, .ui-btn-icon-right .ui-btn-inner .ui-icon { position: absolute; top: 50%; margin-top: -9px; }
1780
+ .ui-btn-icon-top .ui-btn-inner .ui-icon, .ui-btn-icon-bottom .ui-btn-inner .ui-icon { position: absolute; left: 50%; margin-left: -9px; }
1781
+ .ui-btn-icon-left .ui-icon { left: 10px; }
1782
+ .ui-btn-icon-right .ui-icon { right: 10px; }
1783
+ .ui-btn-icon-top .ui-icon { top: 10px; }
1784
+ .ui-btn-icon-bottom .ui-icon { top: auto; bottom: 10px; }
1785
+ .ui-header .ui-btn-icon-left .ui-icon,
1786
+ .ui-footer .ui-btn-icon-left .ui-icon,
1787
+ .ui-mini.ui-btn-icon-left .ui-icon,
1788
+ .ui-mini .ui-btn-icon-left .ui-icon { left: 5px; }
1789
+ .ui-header .ui-btn-icon-right .ui-icon,
1790
+ .ui-footer .ui-btn-icon-right .ui-icon,
1791
+ .ui-mini.ui-btn-icon-right .ui-icon,
1792
+ .ui-mini .ui-btn-icon-right .ui-icon { right: 5px; }
1793
+ .ui-header .ui-btn-icon-top .ui-icon,
1794
+ .ui-footer .ui-btn-icon-top .ui-icon,
1795
+ .ui-mini.ui-btn-icon-top .ui-icon,
1796
+ .ui-mini .ui-btn-icon-top .ui-icon { top: 5px; }
1797
+ .ui-header .ui-btn-icon-bottom .ui-icon,
1798
+ .ui-footer .ui-btn-icon-bottom .ui-icon,
1799
+ .ui-mini.ui-btn-icon-bottom .ui-icon,
1800
+ .ui-mini .ui-btn-icon-bottom .ui-icon { bottom: 5px; }
1801
+ /*hiding native button,inputs */
1802
+ .ui-btn-hidden { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-appearance: button; opacity: .1; cursor: pointer; background: #fff; background: rgba(255,255,255,0); filter: Alpha(Opacity=.0001); font-size: 1px; border: none; text-indent: -9999px; }
1803
+ .ui-collapsible { margin: .5em 0; }
1804
+ .ui-collapsible-heading { font-size: 16px; display: block; margin: 0 -8px; padding: 0; border-width: 0 0 1px 0; position: relative; }
1805
+ .ui-collapsible-heading a { text-align: left; margin: 0; }
1806
+ .ui-collapsible-heading .ui-btn-inner,
1807
+ .ui-collapsible-heading .ui-btn-icon-left .ui-btn-inner { padding-left: 40px; }
1808
+ .ui-collapsible-heading .ui-btn-icon-right .ui-btn-inner { padding-left: 12px; padding-right: 40px; }
1809
+ .ui-collapsible-heading .ui-btn-icon-top .ui-btn-inner,
1810
+ .ui-collapsible-heading .ui-btn-icon-bottom .ui-btn-inner { padding-right: 40px; text-align: center; }
1811
+ .ui-collapsible-heading a span.ui-btn { position: absolute; left: 6px; top: 50%; margin: -12px 0 0 0; width: 20px; height: 20px; padding: 1px 0px 1px 2px; text-indent: -9999px; }
1812
+ .ui-collapsible-heading a span.ui-btn .ui-btn-inner { padding: 10px 0; }
1813
+ .ui-collapsible-heading a span.ui-btn .ui-icon { left: 0; margin-top: -10px; }
1814
+ .ui-collapsible-heading-status { position: absolute; top: -9999px; left:0px; }
1815
+ .ui-collapsible-content {
1816
+ display: block;
1817
+ margin: 0 -8px;
1818
+ padding: 10px 16px;
1819
+ border-top: none; /* Overrides ui-btn-up-* */
1820
+ background-image: none; /* Overrides ui-btn-up-* */
1821
+ font-weight: normal; /* Overrides ui-btn-up-* */
1822
+ }
1823
+ .ui-collapsible-content-collapsed { display: none; }
1824
+ .ui-collapsible-set { margin: .5em 0; }
1825
+ .ui-collapsible-set .ui-collapsible { margin: -1px 0 0; }
1826
+ .ui-controlgroup, fieldset.ui-controlgroup { padding: 0; margin: 0em 0 .5em; zoom: 1; }
1827
+ .ui-bar .ui-controlgroup { margin: 0 .3em; }
1828
+ .ui-controlgroup-label { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .4em; }
1829
+ .ui-controlgroup-controls { display: block; width: 100%;}
1830
+ .ui-controlgroup li { list-style: none; }
1831
+ .ui-controlgroup-vertical .ui-btn,
1832
+ .ui-controlgroup-vertical .ui-checkbox, .ui-controlgroup-vertical .ui-radio { margin: 0; border-bottom-width: 0; }
1833
+ .ui-controlgroup-controls label.ui-select { position: absolute; left: -9999px; }
1834
+ .ui-controlgroup-vertical .ui-controlgroup-last { border-bottom-width: 1px; }
1835
+ .ui-controlgroup-horizontal { padding: 0; }
1836
+ .ui-controlgroup-horizontal .ui-btn-inner { text-align:center; }
1837
+ .ui-controlgroup-horizontal .ui-btn, .ui-controlgroup-horizontal .ui-select { display: inline-block; margin: 0 -6px 0 0; }
1838
+ .ui-controlgroup-horizontal .ui-checkbox, .ui-controlgroup-horizontal .ui-radio { float: left; clear: none; margin: 0 -1px 0 0; }
1839
+ .ui-controlgroup-horizontal .ui-checkbox .ui-btn, .ui-controlgroup-horizontal .ui-radio .ui-btn,
1840
+ .ui-controlgroup-horizontal .ui-checkbox:last-child, .ui-controlgroup-horizontal .ui-radio:last-child { margin-right: 0; }
1841
+ .ui-controlgroup-horizontal .ui-controlgroup-last { margin-right: 0; }
1842
+ .ui-controlgroup .ui-checkbox label, .ui-controlgroup .ui-radio label { font-size: 16px; }
1843
+ /* conflicts with listview..
1844
+ .ui-controlgroup .ui-btn-icon-notext { width: 30px; height: 30px; text-indent: -9999px; }
1845
+ .ui-controlgroup .ui-btn-icon-notext .ui-btn-inner { padding: 5px 6px 5px 5px; }
1846
+ */
1847
+ @media all and (min-width: 450px){
1848
+ .ui-field-contain .ui-controlgroup-label { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
1849
+ .ui-field-contain .ui-controlgroup-controls { width: 60%; display: inline-block; }
1850
+ .ui-field-contain .ui-controlgroup .ui-select { width: 100%; }
1851
+ .ui-field-contain .ui-controlgroup-horizontal .ui-select { width: auto; }
1852
+ }
1853
+ .ui-dialog {
1854
+ background: none !important; /* this is to ensure that dialog theming does not apply (by default at least) on the page div */
1855
+ }
1856
+ .ui-dialog-contain { width: 92.5%; max-width: 500px; margin: 10% auto 15px auto; padding: 0; }
1857
+ .ui-dialog .ui-header {
1858
+ margin-top: 15%;
1859
+ border: none;
1860
+ overflow: hidden;
1861
+ }
1862
+ .ui-dialog .ui-header,
1863
+ .ui-dialog .ui-content,
1864
+ .ui-dialog .ui-footer {
1865
+ display: block;
1866
+ position: relative;
1867
+ width: auto;
1868
+ }
1869
+ .ui-dialog .ui-header,
1870
+ .ui-dialog .ui-footer {
1871
+ z-index: 10;
1872
+ padding: 0;
1873
+ }
1874
+ .ui-dialog .ui-footer {
1875
+ padding: 0 15px;
1876
+ }
1877
+ .ui-dialog .ui-content {
1878
+ padding: 15px;
1879
+ }
1880
+ .ui-dialog {
1881
+ margin-top: -15px;
1882
+ }
1883
+ .ui-checkbox, .ui-radio { position: relative; clear: both; margin: .2em 0 .5em; z-index: 1; }
1884
+ .ui-checkbox .ui-btn, .ui-radio .ui-btn { margin: 0; text-align: left; z-index: 2; }
1885
+ .ui-checkbox .ui-btn-inner, .ui-radio .ui-btn-inner { white-space: normal; }
1886
+ .ui-checkbox .ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-btn-icon-left .ui-btn-inner { padding-left: 45px; }
1887
+ .ui-checkbox .ui-mini.ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-mini.ui-btn-icon-left .ui-btn-inner { padding-left: 36px; }
1888
+ .ui-checkbox .ui-btn-icon-right .ui-btn-inner, .ui-radio .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; }
1889
+ .ui-checkbox .ui-mini.ui-btn-icon-right .ui-btn-inner, .ui-radio .ui-mini.ui-btn-icon-right .ui-btn-inner { padding-right: 36px; }
1890
+ .ui-checkbox .ui-btn-icon-top .ui-btn-inner,.ui-radio .ui-btn-icon-top .ui-btn-inner { padding-right: 0; padding-left: 0; text-align: center; }
1891
+ .ui-checkbox .ui-btn-icon-bottom .ui-btn-inner, .ui-radio .ui-btn-icon-bottom .ui-btn-inner { padding-right: 0; padding-left: 0; text-align: center; }
1892
+ .ui-checkbox .ui-icon, .ui-radio .ui-icon { top: 1.1em; }
1893
+ .ui-checkbox .ui-btn-icon-left .ui-icon, .ui-radio .ui-btn-icon-left .ui-icon { left: 15px; }
1894
+ .ui-checkbox .ui-mini.ui-btn-icon-left .ui-icon, .ui-radio .ui-mini.ui-btn-icon-left .ui-icon { left: 9px; }
1895
+ .ui-checkbox .ui-btn-icon-right .ui-icon, .ui-radio .ui-btn-icon-right .ui-icon { right: 15px; }
1896
+ .ui-checkbox .ui-mini.ui-btn-icon-right .ui-icon, .ui-radio .ui-mini.ui-btn-icon-right .ui-icon { right: 9px; }
1897
+ .ui-checkbox .ui-btn-icon-top .ui-icon, .ui-radio .ui-btn-icon-top .ui-icon { top: 10px; }
1898
+ .ui-checkbox .ui-btn-icon-bottom .ui-icon, .ui-radio .ui-btn-icon-bottom .ui-icon { top: auto; bottom: 10px; }
1899
+ .ui-checkbox .ui-btn-icon-right .ui-icon, .ui-radio .ui-btn-icon-right .ui-icon { right: 15px; }
1900
+ .ui-checkbox .ui-mini.ui-btn-icon-right .ui-icon, .ui-radio .ui-mini.ui-btn-icon-right .ui-icon { right: 9px; }
1901
+ /* input, label positioning */
1902
+ .ui-checkbox input,.ui-radio input { position:absolute; left:20px; top:50%; width: 10px; height: 10px; margin:-5px 0 0 0; outline: 0 !important; z-index: 1; }
1903
+ .ui-field-contain, fieldset.ui-field-contain { padding: .8em 0; margin: 0; border-width: 0 0 1px 0; overflow: visible; }
1904
+ .ui-field-contain:first-child { border-top-width: 0; }
1905
+ .ui-header .ui-field-contain-left,
1906
+ .ui-header .ui-field-contain-right {
1907
+ position: absolute;
1908
+ top: 0;
1909
+ width: 25%;
1910
+ }
1911
+ .ui-header .ui-field-contain-left {
1912
+ left: 1em;
1913
+ }
1914
+ .ui-header .ui-field-contain-right {
1915
+ right: 1em;
1916
+ }
1917
+ @media all and (min-width: 450px){
1918
+ .ui-field-contain, .ui-mobile fieldset.ui-field-contain { border-width: 0; padding: 0; margin: 1em 0; }
1919
+ }
1920
+ .ui-select { display: block; position: relative; }
1921
+ .ui-select select { position: absolute; left: -9999px; top: -9999px; }
1922
+ .ui-select .ui-btn { overflow: hidden; opacity: 1; margin: 0; }
1923
+ /* Fixes #2588 — When Windows Phone 7.5 (Mango) tries to calculate a numeric opacity for a select—including “inherit”—without explicitly specifying an opacity on the parent to give it context, a bug appears where clicking elsewhere on the page after opening the select will open the select again. */
1924
+ .ui-select .ui-btn select { cursor: pointer; -webkit-appearance: button; left: 0; top:0; width: 100%; min-height: 1.5em; min-height: 100%; height: 3em; max-height: 100%; opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); z-index: 2; }
1925
+ .ui-select .ui-disabled { opacity: .3; }
1926
+ @-moz-document url-prefix() {.ui-select .ui-btn select { opacity: 0.0001; }}
1927
+ .ui-select .ui-btn select.ui-select-nativeonly { opacity: 1; text-indent: 0; }
1928
+ .ui-select .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; }
1929
+ .ui-select .ui-btn-icon-right .ui-icon { right: 15px; }
1930
+ .ui-select .ui-mini.ui-btn-icon-right .ui-icon { right: 7px; }
1931
+ /* labels */
1932
+ label.ui-select { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em; display: block; }
1933
+ /*listbox*/
1934
+ .ui-select .ui-btn-text, .ui-selectmenu .ui-btn-text { display: block; min-height: 1em; overflow: hidden !important;
1935
+ /* This !important is required for iPad Safari specifically. See https://github.com/jquery/jquery-mobile/issues/2647 */ }
1936
+ .ui-select .ui-btn-text { text-overflow: ellipsis; }
1937
+ .ui-selectmenu { position: absolute; padding: 0; z-index: 1100 !important; width: 80%; max-width: 350px; padding: 6px; }
1938
+ .ui-selectmenu .ui-listview { margin: 0; }
1939
+ .ui-selectmenu .ui-btn.ui-li-divider { cursor: default; }
1940
+ .ui-selectmenu-hidden { top: -9999px; left: -9999px; }
1941
+ .ui-selectmenu-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 99; }
1942
+ .ui-screen-hidden, .ui-selectmenu-list .ui-li .ui-icon { display: none; }
1943
+ .ui-selectmenu-list .ui-li .ui-icon { display: block; }
1944
+ .ui-li.ui-selectmenu-placeholder { display: none; }
1945
+ .ui-selectmenu .ui-header .ui-title { margin: 0.6em 46px 0.8em; }
1946
+ @media all and (min-width: 450px){
1947
+ .ui-field-contain label.ui-select { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
1948
+ .ui-field-contain .ui-select { width: 60%; display: inline-block; }
1949
+ }
1950
+ /* when no placeholder is defined in a multiple select, the header height doesn't even extend past the close button. this shim's content in there */
1951
+ .ui-selectmenu .ui-header h1:after { content: '.'; visibility: hidden; }
1952
+ label.ui-input-text { font-size: 16px; line-height: 1.4; display: block; font-weight: normal; margin: 0 0 .3em; }
1953
+ input.ui-input-text, textarea.ui-input-text { background-image: none; padding: .4em; line-height: 1.4; font-size: 16px; display: block; width: 97%; outline: 0; }
1954
+ .ui-header input.ui-input-text,
1955
+ .ui-footer input.ui-input-text { margin-left: 1.25%; padding: .4em 1%; width: 95.5% } /* Note that padding left/right on text inputs is factored into how the element is displayed in Firefox, but does not actually pad the text inside it. */
1956
+ input.ui-input-text { -webkit-appearance: none; }
1957
+ textarea.ui-input-text { height: 50px; -webkit-transition: height 200ms linear; -moz-transition: height 200ms linear; -o-transition: height 200ms linear; transition: height 200ms linear; }
1958
+ .ui-input-search { padding: 0 30px; background-image: none; position: relative; }
1959
+ .ui-icon-searchfield:after { position: absolute; left: 7px; top: 50%; margin-top: -9px; content: ""; width: 18px; height: 18px; opacity: .5; }
1960
+ .ui-input-search input.ui-input-text { border: none; width: 98%; padding: .4em 0; margin: 0; display: block; background: transparent none; outline: 0 !important; }
1961
+ .ui-input-search .ui-input-clear { position: absolute; right: 0; top: 50%; margin-top: -13px; }
1962
+ .ui-mini .ui-input-clear { right: -3px; }
1963
+ .ui-input-search .ui-input-clear-hidden { display: none; }
1964
+ input.ui-mini, .ui-mini input, textarea.ui-mini { font-size: 14px; }
1965
+ textarea.ui-mini { height: 45px; }
1966
+ /* orientation adjustments - incomplete!*/
1967
+ @media all and (min-width: 450px){
1968
+ .ui-field-contain label.ui-input-text { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0 }
1969
+ .ui-field-contain input.ui-input-text,
1970
+ .ui-field-contain textarea.ui-input-text,
1971
+ .ui-field-contain .ui-input-search { width: 60%; display: inline-block; }
1972
+ .ui-field-contain .ui-input-search { width: 50%; }
1973
+ .ui-hide-label input.ui-input-text,
1974
+ .ui-hide-label textarea.ui-input-text,
1975
+ .ui-hide-label .ui-input-search { padding: .4em; width: 97%; }
1976
+ .ui-input-search input.ui-input-text { width: 98%; /*echos rule from above*/ }
1977
+ }
1978
+ .ui-listview { margin: 0; counter-reset: listnumbering; }
1979
+ .ui-content .ui-listview { margin: -15px; }
1980
+ .ui-content .ui-listview-inset { margin: 1em 0; }
1981
+ .ui-listview, .ui-li { list-style:none; padding:0; }
1982
+ .ui-li, .ui-li.ui-field-contain { display: block; margin:0; position: relative; overflow: visible; text-align: left; border-width: 0; border-top-width: 1px; }
1983
+ .ui-li .ui-btn-text a.ui-link-inherit { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
1984
+ .ui-li-divider, .ui-li-static { padding: .5em 15px; font-size: 14px; font-weight: bold; }
1985
+ .ui-li-divider { counter-reset: listnumbering; }
1986
+ ol.ui-listview .ui-link-inherit:before, ol.ui-listview .ui-li-static:before, .ui-li-dec { font-size: .8em; display: inline-block; padding-right: .3em; font-weight: normal;counter-increment: listnumbering; content: counter(listnumbering) ". "; }
1987
+ ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; } /* to avoid chance of duplication */
1988
+ .ui-listview-inset .ui-li { border-right-width: 1px; border-left-width: 1px; }
1989
+ .ui-li:last-child, .ui-li.ui-field-contain:last-child { border-bottom-width: 1px; }
1990
+ .ui-li>.ui-btn-inner { display: block; position: relative; padding: 0; }
1991
+ .ui-li .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li { padding: .7em 15px .7em 15px; display: block; }
1992
+ .ui-li-has-thumb .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-thumb { min-height: 60px; padding-left: 100px; }
1993
+ .ui-li-has-icon .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-icon { min-height: 20px; padding-left: 40px; }
1994
+ .ui-li-has-count .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-count { padding-right: 45px; }
1995
+ .ui-li-has-arrow .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-arrow { padding-right: 30px; }
1996
+ .ui-li-has-arrow.ui-li-has-count .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-arrow.ui-li-has-count { padding-right: 75px; }
1997
+ .ui-li-has-count .ui-btn-text { padding-right: 15px; }
1998
+ .ui-li-heading { font-size: 16px; font-weight: bold; display: block; margin: .6em 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
1999
+ .ui-li-desc { font-size: 12px; font-weight: normal; display: block; margin: -.5em 0 .6em; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
2000
+ .ui-li-thumb, .ui-listview .ui-li-icon { position: absolute; left: 1px; top: 0; max-height: 80px; max-width: 80px; }
2001
+ .ui-listview .ui-li-icon { max-height: 40px; max-width: 40px; left: 10px; top: .9em; }
2002
+ .ui-li-thumb, .ui-listview .ui-li-icon, .ui-li-content { float: left; margin-right: 10px; }
2003
+ .ui-li-aside { float: right; width: 50%; text-align: right; margin: .3em 0; }
2004
+ @media all and (min-width: 480px){
2005
+ .ui-li-aside { width: 45%; }
2006
+ }
2007
+ .ui-li-divider { cursor: default; }
2008
+ .ui-li-has-alt .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-alt { padding-right: 95px; }
2009
+ .ui-li-has-count .ui-li-count { position: absolute; font-size: 11px; font-weight: bold; padding: .2em .5em; top: 50%; margin-top: -.9em; right: 48px; }
2010
+ .ui-li-divider .ui-li-count, .ui-li-static .ui-li-count { right: 10px; }
2011
+ .ui-li-has-alt .ui-li-count { right: 55px; }
2012
+ .ui-li-link-alt { position: absolute; width: 40px; height: 100%; border-width: 0; border-left-width: 1px; top: 0; right: 0; margin: 0; padding: 0; z-index: 2; }
2013
+ .ui-li-link-alt .ui-btn { overflow: hidden; position: absolute; right: 8px; top: 50%; margin: -11px 0 0 0; border-bottom-width: 1px; z-index: -1;}
2014
+ .ui-li-link-alt .ui-btn-inner { padding: 0; height: 100%; position: absolute; width: 100%; top: 0; left: 0;}
2015
+ .ui-li-link-alt .ui-btn .ui-icon { right: 50%; margin-right: -9px; }
2016
+ .ui-listview * .ui-btn-inner > .ui-btn > .ui-btn-inner { border-top: 0px; }
2017
+ .ui-listview-filter { border-width: 0; overflow: hidden; margin: -15px -15px 15px -15px }
2018
+ .ui-listview-filter .ui-input-search { margin: 5px; width: auto; display: block; }
2019
+ .ui-listview-filter-inset { margin: -15px -5px -15px -5px; background: transparent; }
2020
+ .ui-li.ui-screen-hidden{display:none;}
2021
+ /* Odd iPad positioning issue. */
2022
+ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
2023
+ .ui-li .ui-btn-text { overflow: visible; }
2024
+ }
2025
+ label.ui-slider { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em; display: block; }
2026
+ input.ui-slider-input,
2027
+ .ui-field-contain input.ui-slider-input { display: inline-block; width: 50px; }
2028
+ select.ui-slider-switch { display: none; }
2029
+ div.ui-slider { position: relative; display: inline-block; overflow: visible; height: 15px; padding: 0; margin: 0 2% 0 20px; top: 4px; width: 65%; }
2030
+ div.ui-slider-mini { height: 12px; margin-left: 10px; }
2031
+ div.ui-slider-bg { border: none; height: 100%; padding-right: 8px; }
2032
+ .ui-controlgroup a.ui-slider-handle, a.ui-slider-handle { position: absolute; z-index: 1; top: 50%; width: 28px; height: 28px; margin-top: -15px; margin-left: -15px; outline: 0; }
2033
+ a.ui-slider-handle .ui-btn-inner { padding: 0; height: 100%; }
2034
+ div.ui-slider-mini a.ui-slider-handle { height: 14px; width: 14px; margin: -8px 0 0 -7px; }
2035
+ div.ui-slider-mini a.ui-slider-handle .ui-btn-inner { height: 30px; width: 30px; padding: 0; margin: -9px 0 0 -9px; }
2036
+ @media all and (min-width: 450px){
2037
+ .ui-field-contain label.ui-slider { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
2038
+ .ui-field-contain div.ui-slider { width: 43%; }
2039
+ .ui-field-contain div.ui-slider-switch { width: 5.5em; }
2040
+ }
2041
+ div.ui-slider-switch { height: 32px; margin-left: 0; width: 5.8em; }
2042
+ a.ui-slider-handle-snapping { -webkit-transition: left 70ms linear; -moz-transition: left 70ms linear; }
2043
+ div.ui-slider-switch .ui-slider-handle { margin-top: 1px; }
2044
+ .ui-slider-inneroffset { margin: 0 16px; position: relative; z-index: 1; }
2045
+ div.ui-slider-switch.ui-slider-mini { width: 5em; height: 29px; }
2046
+ div.ui-slider-switch.ui-slider-mini .ui-slider-inneroffset { margin: 0 15px 0 14px; }
2047
+ div.ui-slider-switch.ui-slider-mini .ui-slider-handle { width: 25px; height: 25px; margin: 1px 0 0 -13px; }
2048
+ div.ui-slider-switch.ui-slider-mini a.ui-slider-handle .ui-btn-inner { height: 30px; width: 30px; padding: 0; margin: 0; }
2049
+ span.ui-slider-label { position: absolute; text-align: center; width: 100%; overflow: hidden; font-size: 16px; top: 0; line-height: 2; min-height: 100%; border-width: 0; white-space: nowrap; }
2050
+ .ui-slider-mini span.ui-slider-label { font-size: 14px; }
2051
+ span.ui-slider-label-a { z-index: 1; left: 0; text-indent: -1.5em; }
2052
+ span.ui-slider-label-b { z-index: 0; right: 0; text-indent: 1.5em;}
2053
+ .ui-slider-inline { width: 120px; display: inline-block; }
skin/adminhtml/default/snm-mobile/jquery.mobile-1.1.0.min.css ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /*! jQuery Mobile v1.1.0 db342b1f315c282692791aa870455901fdb46a55 jquerymobile.com | jquery.org/license */
2
+ .ui-bar-a{border:1px solid #333;background:#111;color:#fff;font-weight:bold;text-shadow:0 -1px 1px #000;background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#111));background-image:-webkit-linear-gradient(#3c3c3c,#111);background-image:-moz-linear-gradient(#3c3c3c,#111);background-image:-ms-linear-gradient(#3c3c3c,#111);background-image:-o-linear-gradient(#3c3c3c,#111);background-image:linear-gradient(#3c3c3c,#111)}.ui-bar-a,.ui-bar-a input,.ui-bar-a select,.ui-bar-a textarea,.ui-bar-a button{font-family:Helvetica,Arial,sans-serif}.ui-bar-a .ui-link-inherit{color:#fff}.ui-bar-a .ui-link{color:#7cc4e7;font-weight:bold}.ui-bar-a .ui-link:hover{color:#2489ce}.ui-bar-a .ui-link:active{color:#2489ce}.ui-bar-a .ui-link:visited{color:#2489ce}.ui-body-a,.ui-overlay-a{border:1px solid #444;background:#222;color:#fff;text-shadow:0 1px 1px #111;font-weight:normal;background-image:-webkit-gradient(linear,left top,left bottom,from(#444),to(#222));background-image:-webkit-linear-gradient(#444,#222);background-image:-moz-linear-gradient(#444,#222);background-image:-ms-linear-gradient(#444,#222);background-image:-o-linear-gradient(#444,#222);background-image:linear-gradient(#444,#222)}.ui-overlay-a{background-image:none;border-width:0}.ui-body-a,.ui-body-a input,.ui-body-a select,.ui-body-a textarea,.ui-body-a button{font-family:Helvetica,Arial,sans-serif}.ui-body-a .ui-link-inherit{color:#fff}.ui-body-a .ui-link{color:#2489ce;font-weight:bold}.ui-body-a .ui-link:hover{color:#2489ce}.ui-body-a .ui-link:active{color:#2489ce}.ui-body-a .ui-link:visited{color:#2489ce}.ui-btn-up-a{border:1px solid #111;background:#333;font-weight:bold;color:#fff;text-shadow:0 1px 1px #111;background-image:-webkit-gradient(linear,left top,left bottom,from(#444),to(#2d2d2d));background-image:-webkit-linear-gradient(#444,#2d2d2d);background-image:-moz-linear-gradient(#444,#2d2d2d);background-image:-ms-linear-gradient(#444,#2d2d2d);background-image:-o-linear-gradient(#444,#2d2d2d);background-image:linear-gradient(#444,#2d2d2d)}.ui-btn-up-a a.ui-link-inherit{color:#fff}.ui-btn-hover-a{border:1px solid #000;background:#444;font-weight:bold;color:#fff;text-shadow:0 1px 1px #111;background-image:-webkit-gradient(linear,left top,left bottom,from(#555),to(#383838));background-image:-webkit-linear-gradient(#555,#383838);background-image:-moz-linear-gradient(#555,#383838);background-image:-ms-linear-gradient(#555,#383838);background-image:-o-linear-gradient(#555,#383838);background-image:linear-gradient(#555,#383838)}.ui-btn-hover-a a.ui-link-inherit{color:#fff}.ui-btn-down-a{border:1px solid #000;background:#222;font-weight:bold;color:#fff;text-shadow:0 1px 1px #111;background-image:-webkit-gradient(linear,left top,left bottom,from(#202020),to(#2c2c2c));background-image:-webkit-linear-gradient(#202020,#2c2c2c);background-image:-moz-linear-gradient(#202020,#2c2c2c);background-image:-ms-linear-gradient(#202020,#2c2c2c);background-image:-o-linear-gradient(#202020,#2c2c2c);background-image:linear-gradient(#202020,#2c2c2c)}.ui-btn-down-a a.ui-link-inherit{color:#fff}.ui-btn-up-a,.ui-btn-hover-a,.ui-btn-down-a{font-family:Helvetica,Arial,sans-serif;text-decoration:none}.ui-bar-b{border:1px solid #456f9a;background:#5e87b0;color:#fff;font-weight:bold;text-shadow:0 1px 1px #3e6790;background-image:-webkit-gradient(linear,left top,left bottom,from(#6facd5),to(#497bae));background-image:-webkit-linear-gradient(#6facd5,#497bae);background-image:-moz-linear-gradient(#6facd5,#497bae);background-image:-ms-linear-gradient(#6facd5,#497bae);background-image:-o-linear-gradient(#6facd5,#497bae);background-image:linear-gradient(#6facd5,#497bae)}.ui-bar-b,.ui-bar-b input,.ui-bar-b select,.ui-bar-b textarea,.ui-bar-b button{font-family:Helvetica,Arial,sans-serif}.ui-bar-b .ui-link-inherit{color:#fff}.ui-bar-b .ui-link{color:#ddf0f8;font-weight:bold}.ui-bar-b .ui-link:hover{color:#ddf0f8}.ui-bar-b .ui-link:active{color:#ddf0f8}.ui-bar-b .ui-link:visited{color:#ddf0f8}.ui-body-b,.ui-overlay-b{border:1px solid #999;background:#f3f3f3;color:#222;text-shadow:0 1px 0 #fff;font-weight:normal;background-image:-webkit-gradient(linear,left top,left bottom,from(#ddd),to(#ccc));background-image:-webkit-linear-gradient(#ddd,#ccc);background-image:-moz-linear-gradient(#ddd,#ccc);background-image:-ms-linear-gradient(#ddd,#ccc);background-image:-o-linear-gradient(#ddd,#ccc);background-image:linear-gradient(#ddd,#ccc)}.ui-overlay-b{background-image:none;border-width:0}.ui-body-b,.ui-body-b input,.ui-body-b select,.ui-body-b textarea,.ui-body-b button{font-family:Helvetica,Arial,sans-serif}.ui-body-b .ui-link-inherit{color:#333}.ui-body-b .ui-link{color:#2489ce;font-weight:bold}.ui-body-b .ui-link:hover{color:#2489ce}.ui-body-b .ui-link:active{color:#2489ce}.ui-body-b .ui-link:visited{color:#2489ce}.ui-btn-up-b{border:1px solid #044062;background:#396b9e;font-weight:bold;color:#fff;text-shadow:0 1px 1px #194b7e;background-image:-webkit-gradient(linear,left top,left bottom,from(#5f9cc5),to(#396b9e));background-image:-webkit-linear-gradient(#5f9cc5,#396b9e);background-image:-moz-linear-gradient(#5f9cc5,#396b9e);background-image:-ms-linear-gradient(#5f9cc5,#396b9e);background-image:-o-linear-gradient(#5f9cc5,#396b9e);background-image:linear-gradient(#5f9cc5,#396b9e)}.ui-btn-up-b a.ui-link-inherit{color:#fff}.ui-btn-hover-b{border:1px solid #00415e;background:#4b88b6;font-weight:bold;color:#fff;text-shadow:0 1px 1px #194b7e;background-image:-webkit-gradient(linear,left top,left bottom,from(#6facd5),to(#4272a4));background-image:-webkit-linear-gradient(#6facd5,#4272a4);background-image:-moz-linear-gradient(#6facd5,#4272a4);background-image:-ms-linear-gradient(#6facd5,#4272a4);background-image:-o-linear-gradient(#6facd5,#4272a4);background-image:linear-gradient(#6facd5,#4272a4)}.ui-btn-hover-b a.ui-link-inherit{color:#fff}.ui-btn-down-b{border:1px solid #225377;background:#4e89c5;font-weight:bold;color:#fff;text-shadow:0 1px 1px #194b7e;background-image:-webkit-gradient(linear,left top,left bottom,from(#295b8e),to(#3e79b5));background-image:-webkit-linear-gradient(#295b8e,#3e79b5);background-image:-moz-linear-gradient(#295b8e,#3e79b5);background-image:-ms-linear-gradient(#295b8e,#3e79b5);background-image:-o-linear-gradient(#295b8e,#3e79b5);background-image:linear-gradient(#295b8e,#3e79b5)}.ui-btn-down-b a.ui-link-inherit{color:#fff}.ui-btn-up-b,.ui-btn-hover-b,.ui-btn-down-b{font-family:Helvetica,Arial,sans-serif;text-decoration:none}.ui-bar-c{border:1px solid #b3b3b3;background:#eee;color:#3e3e3e;font-weight:bold;text-shadow:0 1px 1px #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#f0f0f0),to(#ddd));background-image:-webkit-linear-gradient(#f0f0f0,#ddd);background-image:-moz-linear-gradient(#f0f0f0,#ddd);background-image:-ms-linear-gradient(#f0f0f0,#ddd);background-image:-o-linear-gradient(#f0f0f0,#ddd);background-image:linear-gradient(#f0f0f0,#ddd)}.ui-bar-c .ui-link-inherit{color:#3e3e3e}.ui-bar-c .ui-link{color:#7cc4e7;font-weight:bold}.ui-bar-c .ui-link:hover{color:#2489ce}.ui-bar-c .ui-link:active{color:#2489ce}.ui-bar-c .ui-link:visited{color:#2489ce}.ui-bar-c,.ui-bar-c input,.ui-bar-c select,.ui-bar-c textarea,.ui-bar-c button{font-family:Helvetica,Arial,sans-serif}.ui-body-c,.ui-overlay-c{border:1px solid #aaa;color:#333;text-shadow:0 1px 0 #fff;background:#f9f9f9;background-image:-webkit-gradient(linear,left top,left bottom,from(#f9f9f9),to(#eee));background-image:-webkit-linear-gradient(#f9f9f9,#eee);background-image:-moz-linear-gradient(#f9f9f9,#eee);background-image:-ms-linear-gradient(#f9f9f9,#eee);background-image:-o-linear-gradient(#f9f9f9,#eee);background-image:linear-gradient(#f9f9f9,#eee)}.ui-overlay-c{background-image:none;border-width:0}.ui-body-c,.ui-body-c input,.ui-body-c select,.ui-body-c textarea,.ui-body-c button{font-family:Helvetica,Arial,sans-serif}.ui-body-c .ui-link-inherit{color:#333}.ui-body-c .ui-link{color:#2489ce;font-weight:bold}.ui-body-c .ui-link:hover{color:#2489ce}.ui-body-c .ui-link:active{color:#2489ce}.ui-body-c .ui-link:visited{color:#2489ce}.ui-btn-up-c{border:1px solid #ccc;background:#eee;font-weight:bold;color:#222;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f1f1f1));background-image:-webkit-linear-gradient(#fff,#f1f1f1);background-image:-moz-linear-gradient(#fff,#f1f1f1);background-image:-ms-linear-gradient(#fff,#f1f1f1);background-image:-o-linear-gradient(#fff,#f1f1f1);background-image:linear-gradient(#fff,#f1f1f1)}.ui-btn-up-c a.ui-link-inherit{color:#2f3e46}.ui-btn-hover-c{border:1px solid #bbb;background:#dfdfdf;font-weight:bold;color:#222;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#f6f6f6),to(#e0e0e0));background-image:-webkit-linear-gradient(#f9f9f9,#e0e0e0);background-image:-moz-linear-gradient(#f6f6f6,#e0e0e0);background-image:-ms-linear-gradient(#f6f6f6,#e0e0e0);background-image:-o-linear-gradient(#f6f6f6,#e0e0e0);background-image:linear-gradient(#f6f6f6,#e0e0e0)}.ui-btn-hover-c a.ui-link-inherit{color:#2f3e46}.ui-btn-down-c{border:1px solid #bbb;background:#d6d6d6;font-weight:bold;color:#222;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#d0d0d0),to(#dfdfdf));background-image:-webkit-linear-gradient(#d0d0d0,#dfdfdf);background-image:-moz-linear-gradient(#d0d0d0,#dfdfdf);background-image:-ms-linear-gradient(#d0d0d0,#dfdfdf);background-image:-o-linear-gradient(#d0d0d0,#dfdfdf);background-image:linear-gradient(#d0d0d0,#dfdfdf)}.ui-btn-down-c a.ui-link-inherit{color:#2f3e46}.ui-btn-up-c,.ui-btn-hover-c,.ui-btn-down-c{font-family:Helvetica,Arial,sans-serif;text-decoration:none}.ui-bar-d{border:1px solid #bbb;background:#bbb;color:#333;text-shadow:0 1px 0 #eee;background-image:-webkit-gradient(linear,left top,left bottom,from(#ddd),to(#bbb));background-image:-webkit-linear-gradient(#ddd,#bbb);background-image:-moz-linear-gradient(#ddd,#bbb);background-image:-ms-linear-gradient(#ddd,#bbb);background-image:-o-linear-gradient(#ddd,#bbb);background-image:linear-gradient(#ddd,#bbb)}.ui-bar-d,.ui-bar-d input,.ui-bar-d select,.ui-bar-d textarea,.ui-bar-d button{font-family:Helvetica,Arial,sans-serif}.ui-bar-d .ui-link-inherit{color:#333}.ui-bar-d .ui-link{color:#2489ce;font-weight:bold}.ui-bar-d .ui-link:hover{color:#2489ce}.ui-bar-d .ui-link:active{color:#2489ce}.ui-bar-d .ui-link:visited{color:#2489ce}.ui-body-d,.ui-overlay-d{border:1px solid #bbb;color:#333;text-shadow:0 1px 0 #fff;background:#fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#fff));background-image:-webkit-linear-gradient(#fff,#fff);background-image:-moz-linear-gradient(#fff,#fff);background-image:-ms-linear-gradient(#fff,#fff);background-image:-o-linear-gradient(#fff,#fff);background-image:linear-gradient(#fff,#fff)}.ui-overlay-d{background-image:none;border-width:0}.ui-body-d,.ui-body-d input,.ui-body-d select,.ui-body-d textarea,.ui-body-d button{font-family:Helvetica,Arial,sans-serif}.ui-body-d .ui-link-inherit{color:#333}.ui-body-d .ui-link{color:#2489ce;font-weight:bold}.ui-body-d .ui-link:hover{color:#2489ce}.ui-body-d .ui-link:active{color:#2489ce}.ui-body-d .ui-link:visited{color:#2489ce}.ui-btn-up-d{border:1px solid #bbb;background:#fff;font-weight:bold;color:#333;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#fafafa),to(#f6f6f6));background-image:-webkit-linear-gradient(#fafafa,#f6f6f6);background-image:-moz-linear-gradient(#fafafa,#f6f6f6);background-image:-ms-linear-gradient(#fafafa,#f6f6f6);background-image:-o-linear-gradient(#fafafa,#f6f6f6);background-image:linear-gradient(#fafafa,#f6f6f6)}.ui-btn-up-d a.ui-link-inherit{color:#333}.ui-btn-hover-d{border:1px solid #aaa;background:#eee;font-weight:bold;color:#333;cursor:pointer;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#eee),to(#fff));background-image:-webkit-linear-gradient(#eee,#fff);background-image:-moz-linear-gradient(#eee,#fff);background-image:-ms-linear-gradient(#eee,#fff);background-image:-o-linear-gradient(#eee,#fff);background-image:linear-gradient(#eee,#fff)}.ui-btn-hover-d a.ui-link-inherit{color:#333}.ui-btn-down-d{border:1px solid #aaa;background:#eee;font-weight:bold;color:#333;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#e5e5e5),to(#f2f2f2));background-image:-webkit-linear-gradient(#e5e5e5,#f2f2f2);background-image:-moz-linear-gradient(#e5e5e5,#f2f2f2);background-image:-ms-linear-gradient(#e5e5e5,#f2f2f2);background-image:-o-linear-gradient(#e5e5e5,#f2f2f2);background-image:linear-gradient(#e5e5e5,#f2f2f2)}.ui-btn-down-d a.ui-link-inherit{color:#333}.ui-btn-up-d,.ui-btn-hover-d,.ui-btn-down-d{font-family:Helvetica,Arial,sans-serif;text-decoration:none}.ui-bar-e{border:1px solid #f7c942;background:#fadb4e;color:#333;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#fceda7),to(#fbef7e));background-image:-webkit-linear-gradient(#fceda7,#fbef7e);background-image:-moz-linear-gradient(#fceda7,#fbef7e);background-image:-ms-linear-gradient(#fceda7,#fbef7e);background-image:-o-linear-gradient(#fceda7,#fbef7e);background-image:linear-gradient(#fceda7,#fbef7e)}.ui-bar-e,.ui-bar-e input,.ui-bar-e select,.ui-bar-e textarea,.ui-bar-e button{font-family:Helvetica,Arial,sans-serif}.ui-bar-e .ui-link-inherit{color:#333}.ui-bar-e .ui-link{color:#2489ce;font-weight:bold}.ui-bar-e .ui-link:hover{color:#2489ce}.ui-bar-e .ui-link:active{color:#2489ce}.ui-bar-e .ui-link:visited{color:#2489ce}.ui-body-e,.ui-overlay-e{border:1px solid #f7c942;color:#222;text-shadow:0 1px 0 #fff;background:#fff9df;background-image:-webkit-gradient(linear,left top,left bottom,from(#fffadf),to(#fff3a5));background-image:-webkit-linear-gradient(#fffadf,#fff3a5);background-image:-moz-linear-gradient(#fffadf,#fff3a5);background-image:-ms-linear-gradient(#fffadf,#fff3a5);background-image:-o-linear-gradient(#fffadf,#fff3a5);background-image:linear-gradient(#fffadf,#fff3a5)}.ui-overlay-e{background-image:none;border-width:0}.ui-body-e,.ui-body-e input,.ui-body-e select,.ui-body-e textarea,.ui-body-e button{font-family:Helvetica,Arial,sans-serif}.ui-body-e .ui-link-inherit{color:#333}.ui-body-e .ui-link{color:#2489ce;font-weight:bold}.ui-body-e .ui-link:hover{color:#2489ce}.ui-body-e .ui-link:active{color:#2489ce}.ui-body-e .ui-link:visited{color:#2489ce}.ui-btn-up-e{border:1px solid #f4c63f;background:#fadb4e;font-weight:bold;color:#222;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#ffefaa),to(#ffe155));background-image:-webkit-linear-gradient(#ffefaa,#ffe155);background-image:-moz-linear-gradient(#ffefaa,#ffe155);background-image:-ms-linear-gradient(#ffefaa,#ffe155);background-image:-o-linear-gradient(#ffefaa,#ffe155);background-image:linear-gradient(#ffefaa,#ffe155)}.ui-btn-up-e a.ui-link-inherit{color:#222}.ui-btn-hover-e{border:1px solid #f2c43d;background:#fbe26f;font-weight:bold;color:#111;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#fff5ba),to(#fbdd52));background-image:-webkit-linear-gradient(#fff5ba,#fbdd52);background-image:-moz-linear-gradient(#fff5ba,#fbdd52);background-image:-ms-linear-gradient(#fff5ba,#fbdd52);background-image:-o-linear-gradient(#fff5ba,#fbdd52);background-image:linear-gradient(#fff5ba,#fbdd52)}.ui-btn-hover-e a.ui-link-inherit{color:#333}.ui-btn-down-e{border:1px solid #f2c43d;background:#fceda7;font-weight:bold;color:#111;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#f8d94c),to(#fadb4e));background-image:-webkit-linear-gradient(#f8d94c,#fadb4e);background-image:-moz-linear-gradient(#f8d94c,#fadb4e);background-image:-ms-linear-gradient(#f8d94c,#fadb4e);background-image:-o-linear-gradient(#f8d94c,#fadb4e);background-image:linear-gradient(#f8d94c,#fadb4e)}.ui-btn-down-e a.ui-link-inherit{color:#333}.ui-btn-up-e,.ui-btn-hover-e,.ui-btn-down-e{font-family:Helvetica,Arial,sans-serif;text-decoration:none}a.ui-link-inherit{text-decoration:none!important}.ui-btn-active{border:1px solid #2373a5;background:#5393c5;font-weight:bold;color:#fff;cursor:pointer;text-shadow:0 1px 1px #3373a5;text-decoration:none;background-image:-webkit-gradient(linear,left top,left bottom,from(#5393c5),to(#6facd5));background-image:-webkit-linear-gradient(#5393c5,#6facd5);background-image:-moz-linear-gradient(#5393c5,#6facd5);background-image:-ms-linear-gradient(#5393c5,#6facd5);background-image:-o-linear-gradient(#5393c5,#6facd5);background-image:linear-gradient(#5393c5,#6facd5);font-family:Helvetica,Arial,sans-serif}.ui-btn-active a.ui-link-inherit{color:#fff}.ui-btn-inner{border-top:1px solid #fff;border-color:rgba(255,255,255,.3)}.ui-corner-tl{-moz-border-radius-topleft:.6em;-webkit-border-top-left-radius:.6em;border-top-left-radius:.6em}.ui-corner-tr{-moz-border-radius-topright:.6em;-webkit-border-top-right-radius:.6em;border-top-right-radius:.6em}.ui-corner-bl{-moz-border-radius-bottomleft:.6em;-webkit-border-bottom-left-radius:.6em;border-bottom-left-radius:.6em}.ui-corner-br{-moz-border-radius-bottomright:.6em;-webkit-border-bottom-right-radius:.6em;border-bottom-right-radius:.6em}.ui-corner-top{-moz-border-radius-topleft:.6em;-webkit-border-top-left-radius:.6em;border-top-left-radius:.6em;-moz-border-radius-topright:.6em;-webkit-border-top-right-radius:.6em;border-top-right-radius:.6em}.ui-corner-bottom{-moz-border-radius-bottomleft:.6em;-webkit-border-bottom-left-radius:.6em;border-bottom-left-radius:.6em;-moz-border-radius-bottomright:.6em;-webkit-border-bottom-right-radius:.6em;border-bottom-right-radius:.6em}.ui-corner-right{-moz-border-radius-topright:.6em;-webkit-border-top-right-radius:.6em;border-top-right-radius:.6em;-moz-border-radius-bottomright:.6em;-webkit-border-bottom-right-radius:.6em;border-bottom-right-radius:.6em}.ui-corner-left{-moz-border-radius-topleft:.6em;-webkit-border-top-left-radius:.6em;border-top-left-radius:.6em;-moz-border-radius-bottomleft:.6em;-webkit-border-bottom-left-radius:.6em;border-bottom-left-radius:.6em}.ui-corner-all{-moz-border-radius:.6em;-webkit-border-radius:.6em;border-radius:.6em}.ui-corner-none{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.ui-br{border-bottom:#828282;border-bottom:rgba(130,130,130,.3);border-bottom-width:1px;border-bottom-style:solid}.ui-disabled{opacity:.3}.ui-disabled,.ui-disabled a{cursor:default!important;pointer-events:none}.ui-disabled .ui-btn-text{-ms-filter:"alpha(opacity=30)";filter:alpha(opacity=30);zoom:1}.ui-icon,.ui-icon-searchfield:after{background:#666;background:rgba(0,0,0,.4);background-image:url(images/icons-18-white.png);background-repeat:no-repeat;-moz-border-radius:9px;-webkit-border-radius:9px;border-radius:9px}.ui-icon-alt{background:#fff;background:rgba(255,255,255,.3);background-image:url(images/icons-18-black.png);background-repeat:no-repeat}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (min-resolution:240dpi){.ui-icon-plus,.ui-icon-minus,.ui-icon-delete,.ui-icon-arrow-r,.ui-icon-arrow-l,.ui-icon-arrow-u,.ui-icon-arrow-d,.ui-icon-check,.ui-icon-gear,.ui-icon-refresh,.ui-icon-forward,.ui-icon-back,.ui-icon-grid,.ui-icon-star,.ui-icon-alert,.ui-icon-info,.ui-icon-home,.ui-icon-search,.ui-icon-searchfield:after,.ui-icon-checkbox-off,.ui-icon-checkbox-on,.ui-icon-radio-off,.ui-icon-radio-on{background-image:url(images/icons-36-white.png);-moz-background-size:776px 18px;-o-background-size:776px 18px;-webkit-background-size:776px 18px;background-size:776px 18px}.ui-icon-alt{background-image:url(images/icons-36-black.png)}}.ui-icon-plus{background-position:-0 50%}.ui-icon-minus{background-position:-36px 50%}.ui-icon-delete{background-position:-72px 50%}.ui-icon-arrow-r{background-position:-108px 50%}.ui-icon-arrow-l{background-position:-144px 50%}.ui-icon-arrow-u{background-position:-180px 50%}.ui-icon-arrow-d{background-position:-216px 50%}.ui-icon-check{background-position:-252px 50%}.ui-icon-gear{background-position:-288px 50%}.ui-icon-refresh{background-position:-324px 50%}.ui-icon-forward{background-position:-360px 50%}.ui-icon-back{background-position:-396px 50%}.ui-icon-grid{background-position:-432px 50%}.ui-icon-star{background-position:-468px 50%}.ui-icon-alert{background-position:-504px 50%}.ui-icon-info{background-position:-540px 50%}.ui-icon-home{background-position:-576px 50%}.ui-icon-search,.ui-icon-searchfield:after{background-position:-612px 50%}.ui-icon-checkbox-off{background-position:-684px 50%}.ui-icon-checkbox-on{background-position:-648px 50%}.ui-icon-radio-off{background-position:-756px 50%}.ui-icon-radio-on{background-position:-720px 50%}.ui-checkbox .ui-icon{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.ui-icon-checkbox-off,.ui-icon-radio-off{background-color:transparent}.ui-checkbox-on .ui-icon,.ui-radio-on .ui-icon{background-color:#4596ce}.ui-icon-loading{background:url(images/ajax-loader.gif);background-size:46px 46px}.ui-btn-corner-tl{-moz-border-radius-topleft:1em;-webkit-border-top-left-radius:1em;border-top-left-radius:1em}.ui-btn-corner-tr{-moz-border-radius-topright:1em;-webkit-border-top-right-radius:1em;border-top-right-radius:1em}.ui-btn-corner-bl{-moz-border-radius-bottomleft:1em;-webkit-border-bottom-left-radius:1em;border-bottom-left-radius:1em}.ui-btn-corner-br{-moz-border-radius-bottomright:1em;-webkit-border-bottom-right-radius:1em;border-bottom-right-radius:1em}.ui-btn-corner-top{-moz-border-radius-topleft:1em;-webkit-border-top-left-radius:1em;border-top-left-radius:1em;-moz-border-radius-topright:1em;-webkit-border-top-right-radius:1em;border-top-right-radius:1em}.ui-btn-corner-bottom{-moz-border-radius-bottomleft:1em;-webkit-border-bottom-left-radius:1em;border-bottom-left-radius:1em;-moz-border-radius-bottomright:1em;-webkit-border-bottom-right-radius:1em;border-bottom-right-radius:1em}.ui-btn-corner-right{-moz-border-radius-topright:1em;-webkit-border-top-right-radius:1em;border-top-right-radius:1em;-moz-border-radius-bottomright:1em;-webkit-border-bottom-right-radius:1em;border-bottom-right-radius:1em}.ui-btn-corner-left{-moz-border-radius-topleft:1em;-webkit-border-top-left-radius:1em;border-top-left-radius:1em;-moz-border-radius-bottomleft:1em;-webkit-border-bottom-left-radius:1em;border-bottom-left-radius:1em}.ui-btn-corner-all{-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em}.ui-corner-tl,.ui-corner-tr,.ui-corner-bl,.ui-corner-br,.ui-corner-top,.ui-corner-bottom,.ui-corner-right,.ui-corner-left,.ui-corner-all,.ui-btn-corner-tl,.ui-btn-corner-tr,.ui-btn-corner-bl,.ui-btn-corner-br,.ui-btn-corner-top,.ui-btn-corner-bottom,.ui-btn-corner-right,.ui-btn-corner-left,.ui-btn-corner-all{-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.ui-overlay{background:#666;opacity:.5;filter:Alpha(Opacity=50);position:absolute;width:100%;height:100%}.ui-overlay-shadow{-moz-box-shadow:0 0 12px rgba(0,0,0,.6);-webkit-box-shadow:0 0 12px rgba(0,0,0,.6);box-shadow:0 0 12px rgba(0,0,0,.6)}.ui-shadow{-moz-box-shadow:0 1px 4px rgba(0,0,0,.3);-webkit-box-shadow:0 1px 4px rgba(0,0,0,.3);box-shadow:0 1px 4px rgba(0,0,0,.3)}.ui-bar-a .ui-shadow,.ui-bar-b .ui-shadow,.ui-bar-c .ui-shadow{-moz-box-shadow:0 1px 0 rgba(255,255,255,.3);-webkit-box-shadow:0 1px 0 rgba(255,255,255,.3);box-shadow:0 1px 0 rgba(255,255,255,.3)}.ui-shadow-inset{-moz-box-shadow:inset 0 1px 4px rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 4px rgba(0,0,0,.2);box-shadow:inset 0 1px 4px rgba(0,0,0,.2)}.ui-icon-shadow{-moz-box-shadow:0 1px 0 rgba(255,255,255,.4);-webkit-box-shadow:0 1px 0 rgba(255,255,255,.4);box-shadow:0 1px 0 rgba(255,255,255,.4)}.ui-btn:focus{outline:0}.ui-focus,.ui-btn:focus{-moz-box-shadow:0 0 12px #387bbe;-webkit-box-shadow:0 0 12px #387bbe;box-shadow:0 0 12px #387bbe}.ui-mobile-nosupport-boxshadow *{-moz-box-shadow:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}.ui-mobile-nosupport-boxshadow .ui-focus,.ui-mobile-nosupport-boxshadow .ui-btn:focus{outline-width:1px;outline-style:dotted}.ui-mobile,.ui-mobile body{height:99.9%}.ui-mobile fieldset,.ui-page{padding:0;margin:0}.ui-mobile a img,.ui-mobile fieldset{border-width:0}.ui-mobile-viewport{margin:0;overflow-x:visible;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}body.ui-mobile-viewport,div.ui-mobile-viewport{overflow-x:hidden}.ui-mobile [data-role=page],.ui-mobile [data-role=dialog],.ui-page{top:0;left:0;width:100%;min-height:100%;position:absolute;display:none;border:0}.ui-mobile .ui-page-active{display:block;overflow:visible}.ui-page{outline:0}@media screen and (orientation:portrait){.ui-mobile,.ui-mobile .ui-page{min-height:420px}}@media screen and (orientation:landscape){.ui-mobile,.ui-mobile .ui-page{min-height:300px}}.ui-loading .ui-loader{display:block}.ui-loader{display:none;z-index:9999999;position:fixed;top:50%;box-shadow:0 1px 1px -1px #fff;left:50%;border:0}.ui-loader-default{background:0;opacity:.18;width:46px;height:46px;margin-left:-23px;margin-top:-23px}.ui-loader-verbose{width:200px;opacity:.88;height:auto;margin-left:-110px;margin-top:-43px;padding:10px}.ui-loader-default h1{font-size:0;width:0;height:0;overflow:hidden}.ui-loader-verbose h1{font-size:16px;margin:0;text-align:center}.ui-loader .ui-icon{background-color:#000;display:block;margin:0;width:44px;height:44px;padding:1px;-webkit-border-radius:36px;-moz-border-radius:36px;border-radius:36px}.ui-loader-verbose .ui-icon{margin:0 auto 10px;opacity:.75}.ui-loader-textonly{padding:15px;margin-left:-115px}.ui-loader-textonly .ui-icon{display:none}.ui-loader-fakefix{position:absolute}.ui-mobile-rendering>*{visibility:hidden}.ui-bar,.ui-body{position:relative;padding:.4em 15px;overflow:hidden;display:block;clear:both}.ui-bar{font-size:16px;margin:0}.ui-bar h1,.ui-bar h2,.ui-bar h3,.ui-bar h4,.ui-bar h5,.ui-bar h6{margin:0;padding:0;font-size:16px;display:inline-block}.ui-header,.ui-footer{position:relative;border-left-width:0;border-right-width:0}.ui-header .ui-btn-left,.ui-header .ui-btn-right,.ui-footer .ui-btn-left,.ui-footer .ui-btn-right{position:absolute;top:3px}.ui-header .ui-btn-left,.ui-footer .ui-btn-left{left:5px}.ui-header .ui-btn-right,.ui-footer .ui-btn-right{right:5px}.ui-footer .ui-btn-icon-notext,.ui-header .ui-btn-icon-notext{top:6px}.ui-header .ui-title,.ui-footer .ui-title{min-height:1.1em;text-align:center;font-size:16px;display:block;margin:.6em 30% .8em;padding:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;outline:0!important}.ui-footer .ui-title{margin:.6em 15px .8em}.ui-content{border-width:0;overflow:visible;overflow-x:hidden;padding:15px}.ui-icon{width:18px;height:18px}.ui-nojs{position:absolute;left:-9999px}.ui-hide-label label,.ui-hidden-accessible{position:absolute!important;left:-9999px;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px)}.ui-mobile-viewport-transitioning,.ui-mobile-viewport-transitioning .ui-page{width:100%;height:100%;overflow:hidden}.in{-webkit-animation-timing-function:ease-out;-webkit-animation-duration:350ms;-moz-animation-timing-function:ease-out;-moz-animation-duration:350ms}.out{-webkit-animation-timing-function:ease-in;-webkit-animation-duration:225ms;-moz-animation-timing-function:ease-in;-moz-animation-duration:225}@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}@-moz-keyframes fadein{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeout{from{opacity:1}to{opacity:0}}@-moz-keyframes fadeout{from{opacity:1}to{opacity:0}}.fade.out{opacity:0;-webkit-animation-duration:125ms;-webkit-animation-name:fadeout;-moz-animation-duration:125ms;-moz-animation-name:fadeout}.fade.in{opacity:1;-webkit-animation-duration:225ms;-webkit-animation-name:fadein;-moz-animation-duration:225ms;-moz-animation-name:fadein}.pop{-webkit-transform-origin:50% 50%;-moz-transform-origin:50% 50%}.pop.in{-webkit-transform:scale(1);-moz-transform:scale(1);opacity:1;-webkit-animation-name:popin;-moz-animation-name:popin;-webkit-animation-duration:350ms;-moz-animation-duration:350ms}.pop.out{-webkit-animation-name:fadeout;-moz-animation-name:fadeout;opacity:0;-webkit-animation-duration:100ms;-moz-animation-duration:100ms}.pop.in.reverse{-webkit-animation-name:fadein;-moz-animation-name:fadein}.pop.out.reverse{-webkit-transform:scale(.8);-moz-transform:scale(.8);-webkit-animation-name:popout;-moz-animation-name:popout}@-webkit-keyframes popin{from{-webkit-transform:scale(.8);opacity:0}to{-webkit-transform:scale(1);opacity:1}}@-moz-keyframes popin{from{-moz-transform:scale(.8);opacity:0}to{-moz-transform:scale(1);opacity:1}}@-webkit-keyframes popout{from{-webkit-transform:scale(1);opacity:1}to{-webkit-transform:scale(.8);opacity:0}}@-moz-keyframes popout{from{-moz-transform:scale(1);opacity:1}to{-moz-transform:scale(.8);opacity:0}}@-webkit-keyframes slideinfromright{from{-webkit-transform:translateX(100%)}to{-webkit-transform:translateX(0)}}@-moz-keyframes slideinfromright{from{-moz-transform:translateX(100%)}to{-moz-transform:translateX(0)}}@-webkit-keyframes slideinfromleft{from{-webkit-transform:translateX(-100%)}to{-webkit-transform:translateX(0)}}@-moz-keyframes slideinfromleft{from{-moz-transform:translateX(-100%)}to{-moz-transform:translateX(0)}}@-webkit-keyframes slideouttoleft{from{-webkit-transform:translateX(0)}to{-webkit-transform:translateX(-100%)}}@-moz-keyframes slideouttoleft{from{-moz-transform:translateX(0)}to{-moz-transform:translateX(-100%)}}@-webkit-keyframes slideouttoright{from{-webkit-transform:translateX(0)}to{-webkit-transform:translateX(100%)}}@-moz-keyframes slideouttoright{from{-moz-transform:translateX(0)}to{-moz-transform:translateX(100%)}}.slide.out,.slide.in{-webkit-animation-timing-function:ease-out;-webkit-animation-duration:350ms;-moz-animation-timing-function:ease-out;-moz-animation-duration:350ms}.slide.out{-webkit-transform:translateX(-100%);-webkit-animation-name:slideouttoleft;-moz-transform:translateX(-100%);-moz-animation-name:slideouttoleft}.slide.in{-webkit-transform:translateX(0);-webkit-animation-name:slideinfromright;-moz-transform:translateX(0);-moz-animation-name:slideinfromright}.slide.out.reverse{-webkit-transform:translateX(100%);-webkit-animation-name:slideouttoright;-moz-transform:translateX(100%);-moz-animation-name:slideouttoright}.slide.in.reverse{-webkit-transform:translateX(0);-webkit-animation-name:slideinfromleft;-moz-transform:translateX(0);-moz-animation-name:slideinfromleft}.slidefade.out{-webkit-transform:translateX(-100%);-webkit-animation-name:slideouttoleft;-moz-transform:translateX(-100%);-moz-animation-name:slideouttoleft;-webkit-animation-duration:225ms;-moz-animation-duration:225ms}.slidefade.in{-webkit-transform:translateX(0);-webkit-animation-name:fadein;-moz-transform:translateX(0);-moz-animation-name:fadein;-webkit-animation-duration:200ms;-moz-animation-duration:200ms}.slidefade.out.reverse{-webkit-transform:translateX(100%);-webkit-animation-name:slideouttoright;-moz-transform:translateX(100%);-moz-animation-name:slideouttoright;-webkit-animation-duration:200ms;-moz-animation-duration:200ms}.slidefade.in.reverse{-webkit-transform:translateX(0);-webkit-animation-name:fadein;-moz-transform:translateX(0);-moz-animation-name:fadein;-webkit-animation-duration:200ms;-moz-animation-duration:200ms}.slidedown.out{-webkit-animation-name:fadeout;-moz-animation-name:fadeout;-webkit-animation-duration:100ms;-moz-animation-duration:100ms}.slidedown.in{-webkit-transform:translateY(0);-webkit-animation-name:slideinfromtop;-moz-transform:translateY(0);-moz-animation-name:slideinfromtop;-webkit-animation-duration:250ms;-moz-animation-duration:250ms}.slidedown.in.reverse{-webkit-animation-name:fadein;-moz-animation-name:fadein;-webkit-animation-duration:150ms;-moz-animation-duration:150ms}.slidedown.out.reverse{-webkit-transform:translateY(-100%);-moz-transform:translateY(-100%);-webkit-animation-name:slideouttotop;-moz-animation-name:slideouttotop;-webkit-animation-duration:200ms;-moz-animation-duration:200ms}@-webkit-keyframes slideinfromtop{from{-webkit-transform:translateY(-100%)}to{-webkit-transform:translateY(0)}}@-moz-keyframes slideinfromtop{from{-moz-transform:translateY(-100%)}to{-moz-transform:translateY(0)}}@-webkit-keyframes slideouttotop{from{-webkit-transform:translateY(0)}to{-webkit-transform:translateY(-100%)}}@-moz-keyframes slideouttotop{from{-moz-transform:translateY(0)}to{-moz-transform:translateY(-100%)}}.slideup.out{-webkit-animation-name:fadeout;-moz-animation-name:fadeout;-webkit-animation-duration:100ms;-moz-animation-duration:100ms}.slideup.in{-webkit-transform:translateY(0);-webkit-animation-name:slideinfrombottom;-moz-transform:translateY(0);-moz-animation-name:slideinfrombottom;-webkit-animation-duration:250ms;-moz-animation-duration:250ms}.slideup.in.reverse{-webkit-animation-name:fadein;-moz-animation-name:fadein;-webkit-animation-duration:150ms;-moz-animation-duration:150ms}.slideup.out.reverse{-webkit-transform:translateY(100%);-moz-transform:translateY(100%);-webkit-animation-name:slideouttobottom;-moz-animation-name:slideouttobottom;-webkit-animation-duration:200ms;-moz-animation-duration:200ms}@-webkit-keyframes slideinfrombottom{from{-webkit-transform:translateY(100%)}to{-webkit-transform:translateY(0)}}@-moz-keyframes slideinfrombottom{from{-moz-transform:translateY(100%)}to{-moz-transform:translateY(0)}}@-webkit-keyframes slideouttobottom{from{-webkit-transform:translateY(0)}to{-webkit-transform:translateY(100%)}}@-moz-keyframes slideouttobottom{from{-moz-transform:translateY(0)}to{-moz-transform:translateY(100%)}}.viewport-flip{-webkit-perspective:1000;-moz-perspective:1000;position:absolute}.flip{-webkit-backface-visibility:hidden;-webkit-transform:translateX(0);-moz-backface-visibility:hidden;-moz-transform:translateX(0)}.flip.out{-webkit-transform:rotateY(-90deg) scale(.9);-webkit-animation-name:flipouttoleft;-webkit-animation-duration:175ms;-moz-transform:rotateY(-90deg) scale(.9);-moz-animation-name:flipouttoleft;-moz-animation-duration:175ms}.flip.in{-webkit-animation-name:flipintoright;-webkit-animation-duration:225ms;-moz-animation-name:flipintoright;-moz-animation-duration:225ms}.flip.out.reverse{-webkit-transform:rotateY(90deg) scale(.9);-webkit-animation-name:flipouttoright;-moz-transform:rotateY(90deg) scale(.9);-moz-animation-name:flipouttoright}.flip.in.reverse{-webkit-animation-name:flipintoleft;-moz-animation-name:flipintoleft}@-webkit-keyframes flipouttoleft{from{-webkit-transform:rotateY(0)}to{-webkit-transform:rotateY(-90deg) scale(.9)}}@-moz-keyframes flipouttoleft{from{-moz-transform:rotateY(0)}to{-moz-transform:rotateY(-90deg) scale(.9)}}@-webkit-keyframes flipouttoright{from{-webkit-transform:rotateY(0)}to{-webkit-transform:rotateY(90deg) scale(.9)}}@-moz-keyframes flipouttoright{from{-moz-transform:rotateY(0)}to{-moz-transform:rotateY(90deg) scale(.9)}}@-webkit-keyframes flipintoleft{from{-webkit-transform:rotateY(-90deg) scale(.9)}to{-webkit-transform:rotateY(0)}}@-moz-keyframes flipintoleft{from{-moz-transform:rotateY(-90deg) scale(.9)}to{-moz-transform:rotateY(0)}}@-webkit-keyframes flipintoright{from{-webkit-transform:rotateY(90deg) scale(.9)}to{-webkit-transform:rotateY(0)}}@-moz-keyframes flipintoright{from{-moz-transform:rotateY(90deg) scale(.9)}to{-moz-transform:rotateY(0)}}.viewport-turn{-webkit-perspective:1000;-moz-perspective:1000;position:absolute}.turn{-webkit-backface-visibility:hidden;-webkit-transform:translateX(0);-webkit-transform-origin:0 0;-moz-backface-visibility:hidden;-moz-transform:translateX(0);-moz-transform-origin:0 0}.turn.out{-webkit-transform:rotateY(-90deg) scale(.9);-webkit-animation-name:flipouttoleft;-moz-transform:rotateY(-90deg) scale(.9);-moz-animation-name:flipouttoleft;-webkit-animation-duration:125ms;-moz-animation-duration:125ms}.turn.in{-webkit-animation-name:flipintoright;-moz-animation-name:flipintoright;-webkit-animation-duration:250ms;-moz-animation-duration:250ms}.turn.out.reverse{-webkit-transform:rotateY(90deg) scale(.9);-webkit-animation-name:flipouttoright;-moz-transform:rotateY(90deg) scale(.9);-moz-animation-name:flipouttoright}.turn.in.reverse{-webkit-animation-name:flipintoleft;-moz-animation-name:flipintoleft}@-webkit-keyframes flipouttoleft{from{-webkit-transform:rotateY(0)}to{-webkit-transform:rotateY(-90deg) scale(.9)}}@-moz-keyframes flipouttoleft{from{-moz-transform:rotateY(0)}to{-moz-transform:rotateY(-90deg) scale(.9)}}@-webkit-keyframes flipouttoright{from{-webkit-transform:rotateY(0)}to{-webkit-transform:rotateY(90deg) scale(.9)}}@-moz-keyframes flipouttoright{from{-moz-transform:rotateY(0)}to{-moz-transform:rotateY(90deg) scale(.9)}}@-webkit-keyframes flipintoleft{from{-webkit-transform:rotateY(-90deg) scale(.9)}to{-webkit-transform:rotateY(0)}}@-moz-keyframes flipintoleft{from{-moz-transform:rotateY(-90deg) scale(.9)}to{-moz-transform:rotateY(0)}}@-webkit-keyframes flipintoright{from{-webkit-transform:rotateY(90deg) scale(.9)}to{-webkit-transform:rotateY(0)}}@-moz-keyframes flipintoright{from{-moz-transform:rotateY(90deg) scale(.9)}to{-moz-transform:rotateY(0)}}.flow{-webkit-transform-origin:50% 30%;-moz-transform-origin:50% 30%;-webkit-box-shadow:0 0 20px rgba(0,0,0,.4);-moz-box-shadow:0 0 20px rgba(0,0,0,.4)}.ui-dialog.flow{-webkit-transform-origin:none;-moz-transform-origin:none;-webkit-box-shadow:none;-moz-box-shadow:none}.flow.out{-webkit-transform:translateX(-100%) scale(.7);-webkit-animation-name:flowouttoleft;-webkit-animation-timing-function:ease;-webkit-animation-duration:350ms;-moz-transform:translateX(-100%) scale(.7);-moz-animation-name:flowouttoleft;-moz-animation-timing-function:ease;-moz-animation-duration:350ms}.flow.in{-webkit-transform:translateX(0) scale(1);-webkit-animation-name:flowinfromright;-webkit-animation-timing-function:ease;-webkit-animation-duration:350ms;-moz-transform:translateX(0) scale(1);-moz-animation-name:flowinfromright;-moz-animation-timing-function:ease;-moz-animation-duration:350ms}.flow.out.reverse{-webkit-transform:translateX(100%);-webkit-animation-name:flowouttoright;-moz-transform:translateX(100%);-moz-animation-name:flowouttoright}.flow.in.reverse{-webkit-animation-name:flowinfromleft;-moz-animation-name:flowinfromleft}@-webkit-keyframes flowouttoleft{0%{-webkit-transform:translateX(0) scale(1)}60%,70%{-webkit-transform:translateX(0) scale(.7)}100%{-webkit-transform:translateX(-100%) scale(.7)}}@-moz-keyframes flowouttoleft{0%{-moz-transform:translateX(0) scale(1)}60%,70%{-moz-transform:translateX(0) scale(.7)}100%{-moz-transform:translateX(-100%) scale(.7)}}@-webkit-keyframes flowouttoright{0%{-webkit-transform:translateX(0) scale(1)}60%,70%{-webkit-transform:translateX(0) scale(.7)}100%{-webkit-transform:translateX(100%) scale(.7)}}@-moz-keyframes flowouttoright{0%{-moz-transform:translateX(0) scale(1)}60%,70%{-moz-transform:translateX(0) scale(.7)}100%{-moz-transform:translateX(100%) scale(.7)}}@-webkit-keyframes flowinfromleft{0%{-webkit-transform:translateX(-100%) scale(.7)}30%,40%{-webkit-transform:translateX(0) scale(.7)}100%{-webkit-transform:translateX(0) scale(1)}}@-moz-keyframes flowinfromleft{0%{-moz-transform:translateX(-100%) scale(.7)}30%,40%{-moz-transform:translateX(0) scale(.7)}100%{-moz-transform:translateX(0) scale(1)}}@-webkit-keyframes flowinfromright{0%{-webkit-transform:translateX(100%) scale(.7)}30%,40%{-webkit-transform:translateX(0) scale(.7)}100%{-webkit-transform:translateX(0) scale(1)}}@-moz-keyframes flowinfromright{0%{-moz-transform:translateX(100%) scale(.7)}30%,40%{-moz-transform:translateX(0) scale(.7)}100%{-moz-transform:translateX(0) scale(1)}}.ui-grid-a,.ui-grid-b,.ui-grid-c,.ui-grid-d{overflow:hidden}.ui-block-a,.ui-block-b,.ui-block-c,.ui-block-d,.ui-block-e{margin:0;padding:0;border:0;float:left;min-height:1px}.ui-grid-solo .ui-block-a{width:100%;float:none}.ui-grid-a .ui-block-a,.ui-grid-a .ui-block-b{width:50%}.ui-grid-a .ui-block-a{clear:left}.ui-grid-b .ui-block-a,.ui-grid-b .ui-block-b,.ui-grid-b .ui-block-c{width:33.333%}.ui-grid-b .ui-block-a{clear:left}.ui-grid-c .ui-block-a,.ui-grid-c .ui-block-b,.ui-grid-c .ui-block-c,.ui-grid-c .ui-block-d{width:25%}.ui-grid-c .ui-block-a{clear:left}.ui-grid-d .ui-block-a,.ui-grid-d .ui-block-b,.ui-grid-d .ui-block-c,.ui-grid-d .ui-block-d,.ui-grid-d .ui-block-e{width:20%}.ui-grid-d .ui-block-a{clear:left}.ui-header-fixed,.ui-footer-fixed{left:0;right:0;width:100%;position:fixed;z-index:1000}.ui-header-fixed{top:0}.ui-footer-fixed{bottom:0}.ui-header-fullscreen,.ui-footer-fullscreen{opacity:.9}.ui-page-header-fixed{padding-top:2.5em}.ui-page-footer-fixed{padding-bottom:3em}.ui-page-header-fullscreen .ui-content,.ui-page-footer-fullscreen .ui-content{padding:0}.ui-fixed-hidden{position:absolute}.ui-page-header-fullscreen .ui-fixed-hidden,.ui-page-footer-fullscreen .ui-fixed-hidden{left:-99999em}.ui-header-fixed .ui-btn,.ui-footer-fixed .ui-btn{z-index:10}.ui-navbar{overflow:hidden}.ui-navbar ul,.ui-navbar-expanded ul{list-style:none;padding:0;margin:0;position:relative;display:block;border:0}.ui-navbar-collapsed ul{float:left;width:75%;margin-right:-2px}.ui-navbar-collapsed .ui-navbar-toggle{float:left;width:25%}.ui-navbar li.ui-navbar-truncate{position:absolute;left:-9999px;top:-9999px}.ui-navbar li .ui-btn,.ui-navbar .ui-navbar-toggle .ui-btn{display:block;font-size:12px;text-align:center;margin:0;border-right-width:0;max-width:100%}.ui-navbar li .ui-btn{margin-right:-1px}.ui-navbar li .ui-btn:last-child{margin-right:0}.ui-header .ui-navbar li .ui-btn,.ui-header .ui-navbar .ui-navbar-toggle .ui-btn,.ui-footer .ui-navbar li .ui-btn,.ui-footer .ui-navbar .ui-navbar-toggle .ui-btn{border-top-width:0;border-bottom-width:0}.ui-navbar .ui-btn-inner{padding-left:2px;padding-right:2px}.ui-navbar-noicons li .ui-btn .ui-btn-inner,.ui-navbar-noicons .ui-navbar-toggle .ui-btn-inner{padding-top:.8em;padding-bottom:.9em}.ui-navbar-expanded .ui-btn{margin:0;font-size:14px}.ui-navbar-expanded .ui-btn-inner{padding-left:5px;padding-right:5px}.ui-navbar-expanded .ui-btn-icon-top .ui-btn-inner{padding:45px 5px 15px;text-align:center}.ui-navbar-expanded .ui-btn-icon-top .ui-icon{top:15px}.ui-navbar-expanded .ui-btn-icon-bottom .ui-btn-inner{padding:15px 5px 45px;text-align:center}.ui-navbar-expanded .ui-btn-icon-bottom .ui-icon{bottom:15px}.ui-navbar-expanded li .ui-btn .ui-btn-inner{min-height:2.5em}.ui-navbar-expanded .ui-navbar-noicons .ui-btn .ui-btn-inner{padding-top:1.8em;padding-bottom:1.9em}.ui-btn{display:block;text-align:center;cursor:pointer;position:relative;margin:.5em 5px;padding:0}.ui-mini{margin:.25em 5px}.ui-btn-inner{padding:.6em 20px;min-width:.75em;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;position:relative;zoom:1}.ui-btn input,.ui-btn button{z-index:2}.ui-btn-left,.ui-btn-right,.ui-btn-inline{display:inline-block}.ui-btn-block{display:block}.ui-header .ui-btn,.ui-footer .ui-btn{display:inline-block;margin:0}.ui-header .ui-btn-inner,.ui-footer .ui-btn-inner,.ui-mini .ui-btn-inner{font-size:12.5px;padding:.55em 11px .5em}.ui-header .ui-fullsize .ui-btn-inner,.ui-footer .ui-fullsize .ui-btn-inner{font-size:16px;padding:.6em 25px}.ui-btn-icon-notext{width:24px;height:24px}.ui-btn-icon-notext .ui-btn-inner{padding:0;height:100%}.ui-btn-icon-notext .ui-btn-inner .ui-icon{margin:2px 1px 2px 3px}.ui-btn-text{position:relative;z-index:1;width:100%}.ui-btn-icon-notext .ui-btn-text{position:absolute;left:-9999px}.ui-btn-icon-left .ui-btn-inner{padding-left:40px}.ui-btn-icon-right .ui-btn-inner{padding-right:40px}.ui-btn-icon-top .ui-btn-inner{padding-top:40px}.ui-btn-icon-bottom .ui-btn-inner{padding-bottom:40px}.ui-header .ui-btn-icon-left .ui-btn-inner,.ui-footer .ui-btn-icon-left .ui-btn-inner,.ui-mini .ui-btn-icon-left .ui-btn-inner{padding-left:30px}.ui-header .ui-btn-icon-right .ui-btn-inner,.ui-footer .ui-btn-icon-right .ui-btn-inner,.ui-mini .ui-btn-icon-right .ui-btn-inner{padding-right:30px}.ui-header .ui-btn-icon-top .ui-btn-inner,.ui-footer .ui-btn-icon-top .ui-btn-inner,.ui-mini .ui-btn-icon-top .ui-btn-inner{padding:30px 3px .5em 3px}.ui-header .ui-btn-icon-bottom .ui-btn-inner,.ui-footer .ui-btn-icon-bottom .ui-btn-inner,.ui-mini .ui-btn-icon-bottom .ui-btn-inner{padding:.55em 3px 30px 3px}.ui-btn-icon-notext .ui-icon{display:block;z-index:0}.ui-btn-icon-left .ui-btn-inner .ui-icon,.ui-btn-icon-right .ui-btn-inner .ui-icon{position:absolute;top:50%;margin-top:-9px}.ui-btn-icon-top .ui-btn-inner .ui-icon,.ui-btn-icon-bottom .ui-btn-inner .ui-icon{position:absolute;left:50%;margin-left:-9px}.ui-btn-icon-left .ui-icon{left:10px}.ui-btn-icon-right .ui-icon{right:10px}.ui-btn-icon-top .ui-icon{top:10px}.ui-btn-icon-bottom .ui-icon{top:auto;bottom:10px}.ui-header .ui-btn-icon-left .ui-icon,.ui-footer .ui-btn-icon-left .ui-icon,.ui-mini.ui-btn-icon-left .ui-icon,.ui-mini .ui-btn-icon-left .ui-icon{left:5px}.ui-header .ui-btn-icon-right .ui-icon,.ui-footer .ui-btn-icon-right .ui-icon,.ui-mini.ui-btn-icon-right .ui-icon,.ui-mini .ui-btn-icon-right .ui-icon{right:5px}.ui-header .ui-btn-icon-top .ui-icon,.ui-footer .ui-btn-icon-top .ui-icon,.ui-mini.ui-btn-icon-top .ui-icon,.ui-mini .ui-btn-icon-top .ui-icon{top:5px}.ui-header .ui-btn-icon-bottom .ui-icon,.ui-footer .ui-btn-icon-bottom .ui-icon,.ui-mini.ui-btn-icon-bottom .ui-icon,.ui-mini .ui-btn-icon-bottom .ui-icon{bottom:5px}.ui-btn-hidden{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-appearance:button;opacity:.1;cursor:pointer;background:#fff;background:rgba(255,255,255,0);filter:Alpha(Opacity=.0001);font-size:1px;border:0;text-indent:-9999px}.ui-collapsible{margin:.5em 0}.ui-collapsible-heading{font-size:16px;display:block;margin:0 -8px;padding:0;border-width:0 0 1px 0;position:relative}.ui-collapsible-heading a{text-align:left;margin:0}.ui-collapsible-heading .ui-btn-inner,.ui-collapsible-heading .ui-btn-icon-left .ui-btn-inner{padding-left:40px}.ui-collapsible-heading .ui-btn-icon-right .ui-btn-inner{padding-left:12px;padding-right:40px}.ui-collapsible-heading .ui-btn-icon-top .ui-btn-inner,.ui-collapsible-heading .ui-btn-icon-bottom .ui-btn-inner{padding-right:40px;text-align:center}.ui-collapsible-heading a span.ui-btn{position:absolute;left:6px;top:50%;margin:-12px 0 0 0;width:20px;height:20px;padding:1px 0 1px 2px;text-indent:-9999px}.ui-collapsible-heading a span.ui-btn .ui-btn-inner{padding:10px 0}.ui-collapsible-heading a span.ui-btn .ui-icon{left:0;margin-top:-10px}.ui-collapsible-heading-status{position:absolute;top:-9999px;left:0}.ui-collapsible-content{display:block;margin:0 -8px;padding:10px 16px;border-top:0;background-image:none;font-weight:normal}.ui-collapsible-content-collapsed{display:none}.ui-collapsible-set{margin:.5em 0}.ui-collapsible-set .ui-collapsible{margin:-1px 0 0}.ui-controlgroup,fieldset.ui-controlgroup{padding:0;margin:0 0 .5em;zoom:1}.ui-bar .ui-controlgroup{margin:0 .3em}.ui-controlgroup-label{font-size:16px;line-height:1.4;font-weight:normal;margin:0 0 .4em}.ui-controlgroup-controls{display:block;width:100%}.ui-controlgroup li{list-style:none}.ui-controlgroup-vertical .ui-btn,.ui-controlgroup-vertical .ui-checkbox,.ui-controlgroup-vertical .ui-radio{margin:0;border-bottom-width:0}.ui-controlgroup-controls label.ui-select{position:absolute;left:-9999px}.ui-controlgroup-vertical .ui-controlgroup-last{border-bottom-width:1px}.ui-controlgroup-horizontal{padding:0}.ui-controlgroup-horizontal .ui-btn-inner{text-align:center}.ui-controlgroup-horizontal .ui-btn,.ui-controlgroup-horizontal .ui-select{display:inline-block;margin:0 -6px 0 0}.ui-controlgroup-horizontal .ui-checkbox,.ui-controlgroup-horizontal .ui-radio{float:left;clear:none;margin:0 -1px 0 0}.ui-controlgroup-horizontal .ui-checkbox .ui-btn,.ui-controlgroup-horizontal .ui-radio .ui-btn,.ui-controlgroup-horizontal .ui-checkbox:last-child,.ui-controlgroup-horizontal .ui-radio:last-child{margin-right:0}.ui-controlgroup-horizontal .ui-controlgroup-last{margin-right:0}.ui-controlgroup .ui-checkbox label,.ui-controlgroup .ui-radio label{font-size:16px}@media all and (min-width:450px){.ui-field-contain .ui-controlgroup-label{vertical-align:top;display:inline-block;width:20%;margin:0 2% 0 0}.ui-field-contain .ui-controlgroup-controls{width:60%;display:inline-block}.ui-field-contain .ui-controlgroup .ui-select{width:100%}.ui-field-contain .ui-controlgroup-horizontal .ui-select{width:auto}}.ui-dialog{background:none!important}.ui-dialog-contain{width:92.5%;max-width:500px;margin:10% auto 15px auto;padding:0}.ui-dialog .ui-header{margin-top:15%;border:0;overflow:hidden}.ui-dialog .ui-header,.ui-dialog .ui-content,.ui-dialog .ui-footer{display:block;position:relative;width:auto}.ui-dialog .ui-header,.ui-dialog .ui-footer{z-index:10;padding:0}.ui-dialog .ui-footer{padding:0 15px}.ui-dialog .ui-content{padding:15px}.ui-dialog{margin-top:-15px}.ui-checkbox,.ui-radio{position:relative;clear:both;margin:.2em 0 .5em;z-index:1}.ui-checkbox .ui-btn,.ui-radio .ui-btn{margin:0;text-align:left;z-index:2}.ui-checkbox .ui-btn-inner,.ui-radio .ui-btn-inner{white-space:normal}.ui-checkbox .ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-btn-icon-left .ui-btn-inner{padding-left:45px}.ui-checkbox .ui-mini.ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-mini.ui-btn-icon-left .ui-btn-inner{padding-left:36px}.ui-checkbox .ui-btn-icon-right .ui-btn-inner,.ui-radio .ui-btn-icon-right .ui-btn-inner{padding-right:45px}.ui-checkbox .ui-mini.ui-btn-icon-right .ui-btn-inner,.ui-radio .ui-mini.ui-btn-icon-right .ui-btn-inner{padding-right:36px}.ui-checkbox .ui-btn-icon-top .ui-btn-inner,.ui-radio .ui-btn-icon-top .ui-btn-inner{padding-right:0;padding-left:0;text-align:center}.ui-checkbox .ui-btn-icon-bottom .ui-btn-inner,.ui-radio .ui-btn-icon-bottom .ui-btn-inner{padding-right:0;padding-left:0;text-align:center}.ui-checkbox .ui-icon,.ui-radio .ui-icon{top:1.1em}.ui-checkbox .ui-btn-icon-left .ui-icon,.ui-radio .ui-btn-icon-left .ui-icon{left:15px}.ui-checkbox .ui-mini.ui-btn-icon-left .ui-icon,.ui-radio .ui-mini.ui-btn-icon-left .ui-icon{left:9px}.ui-checkbox .ui-btn-icon-right .ui-icon,.ui-radio .ui-btn-icon-right .ui-icon{right:15px}.ui-checkbox .ui-mini.ui-btn-icon-right .ui-icon,.ui-radio .ui-mini.ui-btn-icon-right .ui-icon{right:9px}.ui-checkbox .ui-btn-icon-top .ui-icon,.ui-radio .ui-btn-icon-top .ui-icon{top:10px}.ui-checkbox .ui-btn-icon-bottom .ui-icon,.ui-radio .ui-btn-icon-bottom .ui-icon{top:auto;bottom:10px}.ui-checkbox .ui-btn-icon-right .ui-icon,.ui-radio .ui-btn-icon-right .ui-icon{right:15px}.ui-checkbox .ui-mini.ui-btn-icon-right .ui-icon,.ui-radio .ui-mini.ui-btn-icon-right .ui-icon{right:9px}.ui-checkbox input,.ui-radio input{position:absolute;left:20px;top:50%;width:10px;height:10px;margin:-5px 0 0 0;outline:0!important;z-index:1}.ui-field-contain,fieldset.ui-field-contain{padding:.8em 0;margin:0;border-width:0 0 1px 0;overflow:visible}.ui-field-contain:first-child{border-top-width:0}.ui-header .ui-field-contain-left,.ui-header .ui-field-contain-right{position:absolute;top:0;width:25%}.ui-header .ui-field-contain-left{left:1em}.ui-header .ui-field-contain-right{right:1em}@media all and (min-width:450px){.ui-field-contain,.ui-mobile fieldset.ui-field-contain{border-width:0;padding:0;margin:1em 0}}.ui-select{display:block;position:relative}.ui-select select{position:absolute;left:-9999px;top:-9999px}.ui-select .ui-btn{overflow:hidden;opacity:1;margin:0}.ui-select .ui-btn select{cursor:pointer;-webkit-appearance:button;left:0;top:0;width:100%;min-height:1.5em;min-height:100%;height:3em;max-height:100%;opacity:0;-ms-filter:"alpha(opacity=0)";filter:alpha(opacity=0);z-index:2}.ui-select .ui-disabled{opacity:.3}@-moz-document url-prefix(){.ui-select .ui-btn select{opacity:.0001}}.ui-select .ui-btn select.ui-select-nativeonly{opacity:1;text-indent:0}.ui-select .ui-btn-icon-right .ui-btn-inner{padding-right:45px}.ui-select .ui-btn-icon-right .ui-icon{right:15px}.ui-select .ui-mini.ui-btn-icon-right .ui-icon{right:7px}label.ui-select{font-size:16px;line-height:1.4;font-weight:normal;margin:0 0 .3em;display:block}.ui-select .ui-btn-text,.ui-selectmenu .ui-btn-text{display:block;min-height:1em;overflow:hidden!important}.ui-select .ui-btn-text{text-overflow:ellipsis}.ui-selectmenu{position:absolute;padding:0;z-index:1100!important;width:80%;max-width:350px;padding:6px}.ui-selectmenu .ui-listview{margin:0}.ui-selectmenu .ui-btn.ui-li-divider{cursor:default}.ui-selectmenu-hidden{top:-9999px;left:-9999px}.ui-selectmenu-screen{position:absolute;top:0;left:0;width:100%;height:100%;z-index:99}.ui-screen-hidden,.ui-selectmenu-list .ui-li .ui-icon{display:none}.ui-selectmenu-list .ui-li .ui-icon{display:block}.ui-li.ui-selectmenu-placeholder{display:none}.ui-selectmenu .ui-header .ui-title{margin:.6em 46px .8em}@media all and (min-width:450px){.ui-field-contain label.ui-select{vertical-align:top;display:inline-block;width:20%;margin:0 2% 0 0}.ui-field-contain .ui-select{width:60%;display:inline-block}}.ui-selectmenu .ui-header h1:after{content:'.';visibility:hidden}label.ui-input-text{font-size:16px;line-height:1.4;display:block;font-weight:normal;margin:0 0 .3em}input.ui-input-text,textarea.ui-input-text{background-image:none;padding:.4em;line-height:1.4;font-size:16px;display:block;width:97%;outline:0}.ui-header input.ui-input-text,.ui-footer input.ui-input-text{margin-left:1.25%;padding:.4em 1%;width:95.5%}input.ui-input-text{-webkit-appearance:none}textarea.ui-input-text{height:50px;-webkit-transition:height 200ms linear;-moz-transition:height 200ms linear;-o-transition:height 200ms linear;transition:height 200ms linear}.ui-input-search{padding:0 30px;background-image:none;position:relative}.ui-icon-searchfield:after{position:absolute;left:7px;top:50%;margin-top:-9px;content:"";width:18px;height:18px;opacity:.5}.ui-input-search input.ui-input-text{border:0;width:98%;padding:.4em 0;margin:0;display:block;background:transparent none;outline:0!important}.ui-input-search .ui-input-clear{position:absolute;right:0;top:50%;margin-top:-13px}.ui-mini .ui-input-clear{right:-3px}.ui-input-search .ui-input-clear-hidden{display:none}input.ui-mini,.ui-mini input,textarea.ui-mini{font-size:14px}textarea.ui-mini{height:45px}@media all and (min-width:450px){.ui-field-contain label.ui-input-text{vertical-align:top;display:inline-block;width:20%;margin:0 2% 0 0}.ui-field-contain input.ui-input-text,.ui-field-contain textarea.ui-input-text,.ui-field-contain .ui-input-search{width:60%;display:inline-block}.ui-field-contain .ui-input-search{width:50%}.ui-hide-label input.ui-input-text,.ui-hide-label textarea.ui-input-text,.ui-hide-label .ui-input-search{padding:.4em;width:97%}.ui-input-search input.ui-input-text{width:98%}}.ui-listview{margin:0;counter-reset:listnumbering}.ui-content .ui-listview{margin:-15px}.ui-content .ui-listview-inset{margin:1em 0}.ui-listview,.ui-li{list-style:none;padding:0}.ui-li,.ui-li.ui-field-contain{display:block;margin:0;position:relative;overflow:visible;text-align:left;border-width:0;border-top-width:1px}.ui-li .ui-btn-text a.ui-link-inherit{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ui-li-divider,.ui-li-static{padding:.5em 15px;font-size:14px;font-weight:bold}.ui-li-divider{counter-reset:listnumbering}ol.ui-listview .ui-link-inherit:before,ol.ui-listview .ui-li-static:before,.ui-li-dec{font-size:.8em;display:inline-block;padding-right:.3em;font-weight:normal;counter-increment:listnumbering;content:counter(listnumbering) ". "}ol.ui-listview .ui-li-jsnumbering:before{content:""!important}.ui-listview-inset .ui-li{border-right-width:1px;border-left-width:1px}.ui-li:last-child,.ui-li.ui-field-contain:last-child{border-bottom-width:1px}.ui-li>.ui-btn-inner{display:block;position:relative;padding:0}.ui-li .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li{padding:.7em 15px .7em 15px;display:block}.ui-li-has-thumb .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li-has-thumb{min-height:60px;padding-left:100px}.ui-li-has-icon .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li-has-icon{min-height:20px;padding-left:40px}.ui-li-has-count .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li-has-count{padding-right:45px}.ui-li-has-arrow .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li-has-arrow{padding-right:30px}.ui-li-has-arrow.ui-li-has-count .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li-has-arrow.ui-li-has-count{padding-right:75px}.ui-li-has-count .ui-btn-text{padding-right:15px}.ui-li-heading{font-size:16px;font-weight:bold;display:block;margin:.6em 0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ui-li-desc{font-size:12px;font-weight:normal;display:block;margin:-.5em 0 .6em;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ui-li-thumb,.ui-listview .ui-li-icon{position:absolute;left:1px;top:0;max-height:80px;max-width:80px}.ui-listview .ui-li-icon{max-height:40px;max-width:40px;left:10px;top:.9em}.ui-li-thumb,.ui-listview .ui-li-icon,.ui-li-content{float:left;margin-right:10px}.ui-li-aside{float:right;width:50%;text-align:right;margin:.3em 0}@media all and (min-width:480px){.ui-li-aside{width:45%}}.ui-li-divider{cursor:default}.ui-li-has-alt .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li-has-alt{padding-right:95px}.ui-li-has-count .ui-li-count{position:absolute;font-size:11px;font-weight:bold;padding:.2em .5em;top:50%;margin-top:-.9em;right:48px}.ui-li-divider .ui-li-count,.ui-li-static .ui-li-count{right:10px}.ui-li-has-alt .ui-li-count{right:55px}.ui-li-link-alt{position:absolute;width:40px;height:100%;border-width:0;border-left-width:1px;top:0;right:0;margin:0;padding:0;z-index:2}.ui-li-link-alt .ui-btn{overflow:hidden;position:absolute;right:8px;top:50%;margin:-11px 0 0 0;border-bottom-width:1px;z-index:-1}.ui-li-link-alt .ui-btn-inner{padding:0;height:100%;position:absolute;width:100%;top:0;left:0}.ui-li-link-alt .ui-btn .ui-icon{right:50%;margin-right:-9px}.ui-listview * .ui-btn-inner>.ui-btn>.ui-btn-inner{border-top:0}.ui-listview-filter{border-width:0;overflow:hidden;margin:-15px -15px 15px -15px}.ui-listview-filter .ui-input-search{margin:5px;width:auto;display:block}.ui-listview-filter-inset{margin:-15px -5px -15px -5px;background:transparent}.ui-li.ui-screen-hidden{display:none}@media only screen and (min-device-width:768px) and (max-device-width:1024px){.ui-li .ui-btn-text{overflow:visible}}label.ui-slider{font-size:16px;line-height:1.4;font-weight:normal;margin:0 0 .3em;display:block}input.ui-slider-input,.ui-field-contain input.ui-slider-input{display:inline-block;width:50px}select.ui-slider-switch{display:none}div.ui-slider{position:relative;display:inline-block;overflow:visible;height:15px;padding:0;margin:0 2% 0 20px;top:4px;width:65%}div.ui-slider-mini{height:12px;margin-left:10px}div.ui-slider-bg{border:0;height:100%;padding-right:8px}.ui-controlgroup a.ui-slider-handle,a.ui-slider-handle{position:absolute;z-index:1;top:50%;width:28px;height:28px;margin-top:-15px;margin-left:-15px;outline:0}a.ui-slider-handle .ui-btn-inner{padding:0;height:100%}div.ui-slider-mini a.ui-slider-handle{height:14px;width:14px;margin:-8px 0 0 -7px}div.ui-slider-mini a.ui-slider-handle .ui-btn-inner{height:30px;width:30px;padding:0;margin:-9px 0 0 -9px}@media all and (min-width:450px){.ui-field-contain label.ui-slider{vertical-align:top;display:inline-block;width:20%;margin:0 2% 0 0}.ui-field-contain div.ui-slider{width:43%}.ui-field-contain div.ui-slider-switch{width:5.5em}}div.ui-slider-switch{height:32px;margin-left:0;width:5.8em}a.ui-slider-handle-snapping{-webkit-transition:left 70ms linear;-moz-transition:left 70ms linear}div.ui-slider-switch .ui-slider-handle{margin-top:1px}.ui-slider-inneroffset{margin:0 16px;position:relative;z-index:1}div.ui-slider-switch.ui-slider-mini{width:5em;height:29px}div.ui-slider-switch.ui-slider-mini .ui-slider-inneroffset{margin:0 15px 0 14px}div.ui-slider-switch.ui-slider-mini .ui-slider-handle{width:25px;height:25px;margin:1px 0 0 -13px}div.ui-slider-switch.ui-slider-mini a.ui-slider-handle .ui-btn-inner{height:30px;width:30px;padding:0;margin:0}span.ui-slider-label{position:absolute;text-align:center;width:100%;overflow:hidden;font-size:16px;top:0;line-height:2;min-height:100%;border-width:0;white-space:nowrap}.ui-slider-mini span.ui-slider-label{font-size:14px}span.ui-slider-label-a{z-index:1;left:0;text-indent:-1.5em}span.ui-slider-label-b{z-index:0;right:0;text-indent:1.5em}.ui-slider-inline{width:120px;display:inline-block}
skin/adminhtml/default/snm-mobile/jquery.mobile.flip.css ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ .flipContainer {
3
+ position: relative;
4
+ -webkit-perspective: 3000px;
5
+ -moz-perspective: 3000px;
6
+ perspective: 3000px;
7
+
8
+ -webkit-user-select: none;
9
+ -moz-user-select: none;
10
+ user-select: none;
11
+ }
12
+
13
+ .flipContent {
14
+ position: absolute;
15
+ top: 0;
16
+ left: 0;
17
+ height: 100%;
18
+ width: 100%;
19
+ display: none;
20
+ overflow: hidden;
21
+ }
22
+
23
+ .flipContent.flipCurrent {
24
+ display: block;
25
+ }
26
+
27
+ .sliding, .slidingBg {
28
+ position: absolute;
29
+ overflow: hidden;
30
+ z-index: 1;
31
+ background-color: inherit;
32
+ }
33
+
34
+ .flipping {
35
+ z-index: 1;
36
+ background-color: inherit;
37
+ -webkit-backface-visibility: hidden;
38
+ -webkit-transform-style: flat;
39
+ -webkit-transform: rotateY(0deg);
40
+ -moz-backface-visibility: hidden;
41
+ -moz-transform-style: preserve3d;
42
+ -moz-transform: rotateY(0deg);
43
+ backface-visibility: hidden;
44
+ transform-style: preserve3d;
45
+ transform: rotateY(0deg);
46
+ }
47
+
48
+ .flipping.firstHalf {
49
+ -webkit-transform-origin: 100% 0;
50
+ -moz-transform-origin: 100% 0;
51
+ transform-origin: 100% 0;
52
+ }
53
+
54
+ .flipping.secondHalf {
55
+ -webkit-transform-origin: 0 0;
56
+ -moz-transform-origin: 0 0;
57
+ transform-origin: 0 0;
58
+ }
59
+
60
+ .backflipping {
61
+ z-index: 1;
62
+ background-color: inherit;
63
+ -webkit-backface-visibility: hidden;
64
+ -webkit-transform-style:flat;
65
+ -webkit-transform: rotateY(180deg);
66
+ -moz-backface-visibility: hidden;
67
+ -moz-transform-style:flat;
68
+ -moz-transform: rotateY(180deg);
69
+ backface-visibility: hidden;
70
+ transform-style:flat;
71
+ transform: rotateY(180deg);
72
+ }
73
+
74
+ .holizontalFlipping.firstHalf {
75
+ -webkit-transform-origin: 100% 0;
76
+ -moz-transform-origin: 100% 0;
77
+ transform-origin: 100% 0;
78
+ }
79
+
80
+ .holizontalFlipping.secondHalf {
81
+ -webkit-transform-origin: 0 0;
82
+ -moz-transform-origin: 0 0;
83
+ transform-origin: 0 0;
84
+ }
85
+
86
+ .verticalFlipping.firstHalf {
87
+ -webkit-transform-origin: 0 100%;
88
+ -moz-transform-origin: 0 100%;
89
+ transform-origin: 0 100%;
90
+ }
91
+
92
+ .verticalFlipping.secondHalf {
93
+ -webkit-transform-origin: 0 0;
94
+ -moz-transform-origin: 0 0;
95
+ transform-origin: 0 0;
96
+ }
97
+
98
+ .splitHalf {
99
+ position: absolute;
100
+ overflow: hidden;
101
+ }
102
+
103
+ .splitEmpty {
104
+ background-color: #333333;
105
+ }
106
+
107
+ /* pager */
108
+ .flipContainer .pager {
109
+ text-align:center;
110
+ height: 24px;
111
+ line-height: 6px;
112
+ position: absolute;
113
+ bottom: 0px;
114
+ width: 100%;
115
+ cursor: pointer;
116
+ font-size: 6px;
117
+ overflow: hidden;
118
+ }
119
+
120
+ .flipContainer .pager span.dot {
121
+ width: 6px;
122
+ display: inline-block;
123
+ }
124
+
125
+ .flipContainer .pager span.dot {
126
+ text-decoration: none;
127
+ margin: 8px 5px;
128
+ background-image: url('images/pager6x6.png');
129
+ background-repeat: no-repeat;
130
+ background-position: 0 -6px;
131
+ }
132
+
133
+ .flipContainer .pager span.dot.current {
134
+ background-position: 0 0;
135
+ }
136
+
skin/adminhtml/default/snm-mobile/jquery.mobile.flip.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .flipContainer{position:relative;-webkit-perspective:3000px;-moz-perspective:3000px;perspective:3000px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.flipContent{position:absolute;top:0;left:0;height:100%;width:100%;display:none;overflow:hidden}.flipContent.flipCurrent{display:block}.sliding,.slidingBg{position:absolute;overflow:hidden;z-index:1;background-color:inherit}.flipping{z-index:1;background-color:inherit;-webkit-backface-visibility:hidden;-webkit-transform-style:flat;-webkit-transform:rotateY(0deg);-moz-backface-visibility:hidden;-moz-transform-style:preserve3d;-moz-transform:rotateY(0deg);backface-visibility:hidden;transform-style:preserve3d;transform:rotateY(0deg)}.flipping.firstHalf{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;transform-origin:100% 0}.flipping.secondHalf{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;transform-origin:0 0}.backflipping{z-index:1;background-color:inherit;-webkit-backface-visibility:hidden;-webkit-transform-style:flat;-webkit-transform:rotateY(180deg);-moz-backface-visibility:hidden;-moz-transform-style:flat;-moz-transform:rotateY(180deg);backface-visibility:hidden;transform-style:flat;transform:rotateY(180deg)}.holizontalFlipping.firstHalf{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;transform-origin:100% 0}.holizontalFlipping.secondHalf{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;transform-origin:0 0}.verticalFlipping.firstHalf{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;transform-origin:0 100%}.verticalFlipping.secondHalf{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;transform-origin:0 0}.splitHalf{position:absolute;overflow:hidden}.splitEmpty{background-color:#333}.flipContainer .pager{text-align:center;height:24px;line-height:6px;position:absolute;bottom:0;width:100%;cursor:pointer;font-size:6px;overflow:hidden}.flipContainer .pager span.dot{width:6px;display:inline-block}.flipContainer .pager span.dot{text-decoration:none;margin:8px 5px;background-image:url('images/pager6x6.png');background-repeat:no-repeat;background-position:0 -6px}.flipContainer .pager span.dot.current{background-position:0 0}
skin/adminhtml/default/snm-mobile/jquery.mobile.structure-1.1.0.css ADDED
@@ -0,0 +1,946 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery Mobile Framework 1.1.0 db342b1f315c282692791aa870455901fdb46a55
3
+ * http://jquerymobile.com
4
+ *
5
+ * Copyright 2011 (c) jQuery Project
6
+ * Dual licensed under the MIT or GPL Version 2 licenses.
7
+ * http://jquery.org/license
8
+ *
9
+ */
10
+
11
+ .ui-mobile, .ui-mobile body { height: 99.9%; }
12
+ .ui-mobile fieldset, .ui-page { padding: 0; margin: 0; }
13
+ .ui-mobile a img, .ui-mobile fieldset { border-width: 0; }
14
+ .ui-mobile-viewport { margin: 0; overflow-x: visible; -webkit-text-size-adjust: none; -ms-text-size-adjust:none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
15
+ body.ui-mobile-viewport,
16
+ div.ui-mobile-viewport { overflow-x: hidden; }
17
+ .ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page { top: 0; left: 0; width: 100%; min-height: 100%; position: absolute; display: none; border: 0; }
18
+ .ui-mobile .ui-page-active { display: block; overflow: visible; }
19
+ .ui-page { outline: none; }
20
+ @media screen and (orientation: portrait){
21
+ .ui-mobile, .ui-mobile .ui-page { min-height: 420px; }
22
+ }
23
+ @media screen and (orientation: landscape){
24
+ .ui-mobile, .ui-mobile .ui-page { min-height: 300px; }
25
+ }
26
+ .ui-loading .ui-loader { display: block; }
27
+ .ui-loader { display: none; z-index: 9999999; position: fixed; top: 50%; box-shadow: 0 1px 1px -1px #fff; left: 50%; border:0; }
28
+ .ui-loader-default { background: none; opacity: .18; width: 46px; height: 46px; margin-left: -23px; margin-top: -23px; }
29
+ .ui-loader-verbose { width: 200px; opacity: .88; height: auto; margin-left: -110px; margin-top: -43px; padding: 10px; }
30
+ .ui-loader-default h1 { font-size: 0; width: 0; height: 0; overflow: hidden; }
31
+ .ui-loader-verbose h1 { font-size: 16px; margin: 0; text-align: center; }
32
+ .ui-loader .ui-icon { background-color: #000; display: block; margin: 0; width: 44px; height: 44px; padding: 1px; -webkit-border-radius: 36px; -moz-border-radius: 36px; border-radius: 36px; }
33
+ .ui-loader-verbose .ui-icon { margin: 0 auto 10px; opacity: .75; }
34
+ .ui-loader-textonly { padding: 15px; margin-left: -115px; }
35
+ .ui-loader-textonly .ui-icon { display: none; }
36
+ .ui-loader-fakefix { position: absolute; }
37
+ .ui-mobile-rendering > * { visibility: hidden; }
38
+ .ui-bar, .ui-body { position: relative; padding: .4em 15px; overflow: hidden; display: block; clear:both; }
39
+ .ui-bar { font-size: 16px; margin: 0; }
40
+ .ui-bar h1, .ui-bar h2, .ui-bar h3, .ui-bar h4, .ui-bar h5, .ui-bar h6 { margin: 0; padding: 0; font-size: 16px; display: inline-block; }
41
+ .ui-header, .ui-footer { position: relative; border-left-width: 0; border-right-width: 0; }
42
+ .ui-header .ui-btn-left,
43
+ .ui-header .ui-btn-right,
44
+ .ui-footer .ui-btn-left,
45
+ .ui-footer .ui-btn-right { position: absolute; top: 3px; }
46
+ .ui-header .ui-btn-left,
47
+ .ui-footer .ui-btn-left { left: 5px; }
48
+ .ui-header .ui-btn-right,
49
+ .ui-footer .ui-btn-right { right: 5px; }
50
+ .ui-footer .ui-btn-icon-notext,
51
+ .ui-header .ui-btn-icon-notext { top: 6px; }
52
+ .ui-header .ui-title, .ui-footer .ui-title { min-height: 1.1em; text-align: center; font-size: 16px; display: block; margin: .6em 30% .8em; padding: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; outline: 0 !important; }
53
+ .ui-footer .ui-title { margin: .6em 15px .8em; }
54
+ .ui-content { border-width: 0; overflow: visible; overflow-x: hidden; padding: 15px; }
55
+ .ui-icon { width: 18px; height: 18px; }
56
+ .ui-nojs { position: absolute; left: -9999px; }
57
+ .ui-hide-label label,
58
+ .ui-hidden-accessible { position: absolute !important; left: -9999px; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
59
+ .ui-mobile-viewport-transitioning,
60
+ .ui-mobile-viewport-transitioning .ui-page {
61
+ width: 100%;
62
+ height: 100%;
63
+ overflow: hidden;
64
+ }
65
+ .in {
66
+ -webkit-animation-timing-function: ease-out;
67
+ -webkit-animation-duration: 350ms;
68
+ -moz-animation-timing-function: ease-out;
69
+ -moz-animation-duration: 350ms;
70
+ }
71
+ .out {
72
+ -webkit-animation-timing-function: ease-in;
73
+ -webkit-animation-duration: 225ms;
74
+ -moz-animation-timing-function: ease-in;
75
+ -moz-animation-duration: 225;
76
+ }
77
+ @-webkit-keyframes fadein {
78
+ from { opacity: 0; }
79
+ to { opacity: 1; }
80
+ }
81
+ @-moz-keyframes fadein {
82
+ from { opacity: 0; }
83
+ to { opacity: 1; }
84
+ }
85
+ @-webkit-keyframes fadeout {
86
+ from { opacity: 1; }
87
+ to { opacity: 0; }
88
+ }
89
+ @-moz-keyframes fadeout {
90
+ from { opacity: 1; }
91
+ to { opacity: 0; }
92
+ }
93
+ .fade.out {
94
+ opacity: 0;
95
+ -webkit-animation-duration: 125ms;
96
+ -webkit-animation-name: fadeout;
97
+ -moz-animation-duration: 125ms;
98
+ -moz-animation-name: fadeout;
99
+ }
100
+ .fade.in {
101
+ opacity: 1;
102
+ -webkit-animation-duration: 225ms;
103
+ -webkit-animation-name: fadein;
104
+ -moz-animation-duration: 225ms;
105
+ -moz-animation-name: fadein;
106
+ }
107
+ .pop {
108
+ -webkit-transform-origin: 50% 50%;
109
+ -moz-transform-origin: 50% 50%;
110
+ }
111
+ .pop.in {
112
+ -webkit-transform: scale(1);
113
+ -moz-transform: scale(1);
114
+ opacity: 1;
115
+ -webkit-animation-name: popin;
116
+ -moz-animation-name: popin;
117
+ -webkit-animation-duration: 350ms;
118
+ -moz-animation-duration: 350ms;
119
+ }
120
+ .pop.out {
121
+ -webkit-animation-name: fadeout;
122
+ -moz-animation-name: fadeout;
123
+ opacity: 0;
124
+ -webkit-animation-duration: 100ms;
125
+ -moz-animation-duration: 100ms;
126
+ }
127
+ .pop.in.reverse {
128
+ -webkit-animation-name: fadein;
129
+ -moz-animation-name: fadein;
130
+ }
131
+ .pop.out.reverse {
132
+ -webkit-transform: scale(.8);
133
+ -moz-transform: scale(.8);
134
+ -webkit-animation-name: popout;
135
+ -moz-animation-name: popout;
136
+ }
137
+ @-webkit-keyframes popin {
138
+ from {
139
+ -webkit-transform: scale(.8);
140
+ opacity: 0;
141
+ }
142
+ to {
143
+ -webkit-transform: scale(1);
144
+ opacity: 1;
145
+ }
146
+ }
147
+ @-moz-keyframes popin {
148
+ from {
149
+ -moz-transform: scale(.8);
150
+ opacity: 0;
151
+ }
152
+ to {
153
+ -moz-transform: scale(1);
154
+ opacity: 1;
155
+ }
156
+ }
157
+ @-webkit-keyframes popout {
158
+ from {
159
+ -webkit-transform: scale(1);
160
+ opacity: 1;
161
+ }
162
+ to {
163
+ -webkit-transform: scale(.8);
164
+ opacity: 0;
165
+ }
166
+ }
167
+ @-moz-keyframes popout {
168
+ from {
169
+ -moz-transform: scale(1);
170
+ opacity: 1;
171
+ }
172
+ to {
173
+ -moz-transform: scale(.8);
174
+ opacity: 0;
175
+ }
176
+ }
177
+ @-webkit-keyframes slideinfromright {
178
+ from { -webkit-transform: translateX(100%); }
179
+ to { -webkit-transform: translateX(0); }
180
+ }
181
+ @-moz-keyframes slideinfromright {
182
+ from { -moz-transform: translateX(100%); }
183
+ to { -moz-transform: translateX(0); }
184
+ }
185
+ @-webkit-keyframes slideinfromleft {
186
+ from { -webkit-transform: translateX(-100%); }
187
+ to { -webkit-transform: translateX(0); }
188
+ }
189
+ @-moz-keyframes slideinfromleft {
190
+ from { -moz-transform: translateX(-100%); }
191
+ to { -moz-transform: translateX(0); }
192
+ }
193
+ @-webkit-keyframes slideouttoleft {
194
+ from { -webkit-transform: translateX(0); }
195
+ to { -webkit-transform: translateX(-100%); }
196
+ }
197
+ @-moz-keyframes slideouttoleft {
198
+ from { -moz-transform: translateX(0); }
199
+ to { -moz-transform: translateX(-100%); }
200
+ }
201
+ @-webkit-keyframes slideouttoright {
202
+ from { -webkit-transform: translateX(0); }
203
+ to { -webkit-transform: translateX(100%); }
204
+ }
205
+ @-moz-keyframes slideouttoright {
206
+ from { -moz-transform: translateX(0); }
207
+ to { -moz-transform: translateX(100%); }
208
+ }
209
+ .slide.out, .slide.in {
210
+ -webkit-animation-timing-function: ease-out;
211
+ -webkit-animation-duration: 350ms;
212
+ -moz-animation-timing-function: ease-out;
213
+ -moz-animation-duration: 350ms;
214
+ }
215
+ .slide.out {
216
+ -webkit-transform: translateX(-100%);
217
+ -webkit-animation-name: slideouttoleft;
218
+ -moz-transform: translateX(-100%);
219
+ -moz-animation-name: slideouttoleft;
220
+ }
221
+ .slide.in {
222
+ -webkit-transform: translateX(0);
223
+ -webkit-animation-name: slideinfromright;
224
+ -moz-transform: translateX(0);
225
+ -moz-animation-name: slideinfromright;
226
+ }
227
+ .slide.out.reverse {
228
+ -webkit-transform: translateX(100%);
229
+ -webkit-animation-name: slideouttoright;
230
+ -moz-transform: translateX(100%);
231
+ -moz-animation-name: slideouttoright;
232
+ }
233
+ .slide.in.reverse {
234
+ -webkit-transform: translateX(0);
235
+ -webkit-animation-name: slideinfromleft;
236
+ -moz-transform: translateX(0);
237
+ -moz-animation-name: slideinfromleft;
238
+ }
239
+ .slidefade.out {
240
+ -webkit-transform: translateX(-100%);
241
+ -webkit-animation-name: slideouttoleft;
242
+ -moz-transform: translateX(-100%);
243
+ -moz-animation-name: slideouttoleft;
244
+ -webkit-animation-duration: 225ms;
245
+ -moz-animation-duration: 225ms;
246
+ }
247
+ .slidefade.in {
248
+ -webkit-transform: translateX(0);
249
+ -webkit-animation-name: fadein;
250
+ -moz-transform: translateX(0);
251
+ -moz-animation-name: fadein;
252
+ -webkit-animation-duration: 200ms;
253
+ -moz-animation-duration: 200ms;
254
+ }
255
+ .slidefade.out.reverse {
256
+ -webkit-transform: translateX(100%);
257
+ -webkit-animation-name: slideouttoright;
258
+ -moz-transform: translateX(100%);
259
+ -moz-animation-name: slideouttoright;
260
+ -webkit-animation-duration: 200ms;
261
+ -moz-animation-duration: 200ms;
262
+ }
263
+ .slidefade.in.reverse {
264
+ -webkit-transform: translateX(0);
265
+ -webkit-animation-name: fadein;
266
+ -moz-transform: translateX(0);
267
+ -moz-animation-name: fadein;
268
+ -webkit-animation-duration: 200ms;
269
+ -moz-animation-duration: 200ms;
270
+ }
271
+ .slidedown.out {
272
+ -webkit-animation-name: fadeout;
273
+ -moz-animation-name: fadeout;
274
+ -webkit-animation-duration: 100ms;
275
+ -moz-animation-duration: 100ms;
276
+ }
277
+ .slidedown.in {
278
+ -webkit-transform: translateY(0);
279
+ -webkit-animation-name: slideinfromtop;
280
+ -moz-transform: translateY(0);
281
+ -moz-animation-name: slideinfromtop;
282
+ -webkit-animation-duration: 250ms;
283
+ -moz-animation-duration: 250ms;
284
+ }
285
+ .slidedown.in.reverse {
286
+ -webkit-animation-name: fadein;
287
+ -moz-animation-name: fadein;
288
+ -webkit-animation-duration: 150ms;
289
+ -moz-animation-duration: 150ms;
290
+ }
291
+ .slidedown.out.reverse {
292
+ -webkit-transform: translateY(-100%);
293
+ -moz-transform: translateY(-100%);
294
+ -webkit-animation-name: slideouttotop;
295
+ -moz-animation-name: slideouttotop;
296
+ -webkit-animation-duration: 200ms;
297
+ -moz-animation-duration: 200ms;
298
+ }
299
+ @-webkit-keyframes slideinfromtop {
300
+ from { -webkit-transform: translateY(-100%); }
301
+ to { -webkit-transform: translateY(0); }
302
+ }
303
+ @-moz-keyframes slideinfromtop {
304
+ from { -moz-transform: translateY(-100%); }
305
+ to { -moz-transform: translateY(0); }
306
+ }
307
+ @-webkit-keyframes slideouttotop {
308
+ from { -webkit-transform: translateY(0); }
309
+ to { -webkit-transform: translateY(-100%); }
310
+ }
311
+ @-moz-keyframes slideouttotop {
312
+ from { -moz-transform: translateY(0); }
313
+ to { -moz-transform: translateY(-100%); }
314
+ }
315
+ .slideup.out {
316
+ -webkit-animation-name: fadeout;
317
+ -moz-animation-name: fadeout;
318
+ -webkit-animation-duration: 100ms;
319
+ -moz-animation-duration: 100ms;
320
+ }
321
+ .slideup.in {
322
+ -webkit-transform: translateY(0);
323
+ -webkit-animation-name: slideinfrombottom;
324
+ -moz-transform: translateY(0);
325
+ -moz-animation-name: slideinfrombottom;
326
+ -webkit-animation-duration: 250ms;
327
+ -moz-animation-duration: 250ms;
328
+ }
329
+ .slideup.in.reverse {
330
+ -webkit-animation-name: fadein;
331
+ -moz-animation-name: fadein;
332
+ -webkit-animation-duration: 150ms;
333
+ -moz-animation-duration: 150ms;
334
+ }
335
+ .slideup.out.reverse {
336
+ -webkit-transform: translateY(100%);
337
+ -moz-transform: translateY(100%);
338
+ -webkit-animation-name: slideouttobottom;
339
+ -moz-animation-name: slideouttobottom;
340
+ -webkit-animation-duration: 200ms;
341
+ -moz-animation-duration: 200ms;
342
+ }
343
+ @-webkit-keyframes slideinfrombottom {
344
+ from { -webkit-transform: translateY(100%); }
345
+ to { -webkit-transform: translateY(0); }
346
+ }
347
+ @-moz-keyframes slideinfrombottom {
348
+ from { -moz-transform: translateY(100%); }
349
+ to { -moz-transform: translateY(0); }
350
+ }
351
+ @-webkit-keyframes slideouttobottom {
352
+ from { -webkit-transform: translateY(0); }
353
+ to { -webkit-transform: translateY(100%); }
354
+ }
355
+ @-moz-keyframes slideouttobottom {
356
+ from { -moz-transform: translateY(0); }
357
+ to { -moz-transform: translateY(100%); }
358
+ }
359
+ .viewport-flip {
360
+ -webkit-perspective: 1000;
361
+ -moz-perspective: 1000;
362
+ position: absolute;
363
+ }
364
+ .flip {
365
+ -webkit-backface-visibility:hidden;
366
+ -webkit-transform:translateX(0);
367
+ -moz-backface-visibility:hidden;
368
+ -moz-transform:translateX(0);
369
+ }
370
+ .flip.out {
371
+ -webkit-transform: rotateY(-90deg) scale(.9);
372
+ -webkit-animation-name: flipouttoleft;
373
+ -webkit-animation-duration: 175ms;
374
+ -moz-transform: rotateY(-90deg) scale(.9);
375
+ -moz-animation-name: flipouttoleft;
376
+ -moz-animation-duration: 175ms;
377
+ }
378
+ .flip.in {
379
+ -webkit-animation-name: flipintoright;
380
+ -webkit-animation-duration: 225ms;
381
+ -moz-animation-name: flipintoright;
382
+ -moz-animation-duration: 225ms;
383
+ }
384
+ .flip.out.reverse {
385
+ -webkit-transform: rotateY(90deg) scale(.9);
386
+ -webkit-animation-name: flipouttoright;
387
+ -moz-transform: rotateY(90deg) scale(.9);
388
+ -moz-animation-name: flipouttoright;
389
+ }
390
+ .flip.in.reverse {
391
+ -webkit-animation-name: flipintoleft;
392
+ -moz-animation-name: flipintoleft;
393
+ }
394
+ @-webkit-keyframes flipouttoleft {
395
+ from { -webkit-transform: rotateY(0); }
396
+ to { -webkit-transform: rotateY(-90deg) scale(.9); }
397
+ }
398
+ @-moz-keyframes flipouttoleft {
399
+ from { -moz-transform: rotateY(0); }
400
+ to { -moz-transform: rotateY(-90deg) scale(.9); }
401
+ }
402
+ @-webkit-keyframes flipouttoright {
403
+ from { -webkit-transform: rotateY(0) ; }
404
+ to { -webkit-transform: rotateY(90deg) scale(.9); }
405
+ }
406
+ @-moz-keyframes flipouttoright {
407
+ from { -moz-transform: rotateY(0); }
408
+ to { -moz-transform: rotateY(90deg) scale(.9); }
409
+ }
410
+ @-webkit-keyframes flipintoleft {
411
+ from { -webkit-transform: rotateY(-90deg) scale(.9); }
412
+ to { -webkit-transform: rotateY(0); }
413
+ }
414
+ @-moz-keyframes flipintoleft {
415
+ from { -moz-transform: rotateY(-90deg) scale(.9); }
416
+ to { -moz-transform: rotateY(0); }
417
+ }
418
+ @-webkit-keyframes flipintoright {
419
+ from { -webkit-transform: rotateY(90deg) scale(.9); }
420
+ to { -webkit-transform: rotateY(0); }
421
+ }
422
+ @-moz-keyframes flipintoright {
423
+ from { -moz-transform: rotateY(90deg) scale(.9); }
424
+ to { -moz-transform: rotateY(0); }
425
+ }
426
+ .viewport-turn {
427
+ -webkit-perspective: 1000;
428
+ -moz-perspective: 1000;
429
+ position: absolute;
430
+ }
431
+ .turn {
432
+ -webkit-backface-visibility:hidden;
433
+ -webkit-transform:translateX(0);
434
+ -webkit-transform-origin: 0;
435
+
436
+ -moz-backface-visibility:hidden;
437
+ -moz-transform:translateX(0);
438
+ -moz-transform-origin: 0;
439
+ }
440
+ .turn.out {
441
+ -webkit-transform: rotateY(-90deg) scale(.9);
442
+ -webkit-animation-name: flipouttoleft;
443
+ -moz-transform: rotateY(-90deg) scale(.9);
444
+ -moz-animation-name: flipouttoleft;
445
+ -webkit-animation-duration: 125ms;
446
+ -moz-animation-duration: 125ms;
447
+ }
448
+ .turn.in {
449
+ -webkit-animation-name: flipintoright;
450
+ -moz-animation-name: flipintoright;
451
+ -webkit-animation-duration: 250ms;
452
+ -moz-animation-duration: 250ms;
453
+
454
+ }
455
+ .turn.out.reverse {
456
+ -webkit-transform: rotateY(90deg) scale(.9);
457
+ -webkit-animation-name: flipouttoright;
458
+ -moz-transform: rotateY(90deg) scale(.9);
459
+ -moz-animation-name: flipouttoright;
460
+ }
461
+ .turn.in.reverse {
462
+ -webkit-animation-name: flipintoleft;
463
+ -moz-animation-name: flipintoleft;
464
+ }
465
+ @-webkit-keyframes flipouttoleft {
466
+ from { -webkit-transform: rotateY(0); }
467
+ to { -webkit-transform: rotateY(-90deg) scale(.9); }
468
+ }
469
+ @-moz-keyframes flipouttoleft {
470
+ from { -moz-transform: rotateY(0); }
471
+ to { -moz-transform: rotateY(-90deg) scale(.9); }
472
+ }
473
+ @-webkit-keyframes flipouttoright {
474
+ from { -webkit-transform: rotateY(0) ; }
475
+ to { -webkit-transform: rotateY(90deg) scale(.9); }
476
+ }
477
+ @-moz-keyframes flipouttoright {
478
+ from { -moz-transform: rotateY(0); }
479
+ to { -moz-transform: rotateY(90deg) scale(.9); }
480
+ }
481
+ @-webkit-keyframes flipintoleft {
482
+ from { -webkit-transform: rotateY(-90deg) scale(.9); }
483
+ to { -webkit-transform: rotateY(0); }
484
+ }
485
+ @-moz-keyframes flipintoleft {
486
+ from { -moz-transform: rotateY(-90deg) scale(.9); }
487
+ to { -moz-transform: rotateY(0); }
488
+ }
489
+ @-webkit-keyframes flipintoright {
490
+ from { -webkit-transform: rotateY(90deg) scale(.9); }
491
+ to { -webkit-transform: rotateY(0); }
492
+ }
493
+ @-moz-keyframes flipintoright {
494
+ from { -moz-transform: rotateY(90deg) scale(.9); }
495
+ to { -moz-transform: rotateY(0); }
496
+ }
497
+ .flow {
498
+ -webkit-transform-origin: 50% 30%;
499
+ -moz-transform-origin: 50% 30%;
500
+ -webkit-box-shadow: 0 0 20px rgba(0,0,0,.4);
501
+ -moz-box-shadow: 0 0 20px rgba(0,0,0,.4);
502
+ }
503
+ .ui-dialog.flow {
504
+ -webkit-transform-origin: none;
505
+ -moz-transform-origin: none;
506
+ -webkit-box-shadow: none;
507
+ -moz-box-shadow: none;
508
+ }
509
+ .flow.out {
510
+ -webkit-transform: translateX(-100%) scale(.7);
511
+ -webkit-animation-name: flowouttoleft;
512
+ -webkit-animation-timing-function: ease;
513
+ -webkit-animation-duration: 350ms;
514
+ -moz-transform: translateX(-100%) scale(.7);
515
+ -moz-animation-name: flowouttoleft;
516
+ -moz-animation-timing-function: ease;
517
+ -moz-animation-duration: 350ms;
518
+ }
519
+ .flow.in {
520
+ -webkit-transform: translateX(0) scale(1);
521
+ -webkit-animation-name: flowinfromright;
522
+ -webkit-animation-timing-function: ease;
523
+ -webkit-animation-duration: 350ms;
524
+ -moz-transform: translateX(0) scale(1);
525
+ -moz-animation-name: flowinfromright;
526
+ -moz-animation-timing-function: ease;
527
+ -moz-animation-duration: 350ms;
528
+ }
529
+ .flow.out.reverse {
530
+ -webkit-transform: translateX(100%);
531
+ -webkit-animation-name: flowouttoright;
532
+ -moz-transform: translateX(100%);
533
+ -moz-animation-name: flowouttoright;
534
+ }
535
+ .flow.in.reverse {
536
+ -webkit-animation-name: flowinfromleft;
537
+ -moz-animation-name: flowinfromleft;
538
+ }
539
+ @-webkit-keyframes flowouttoleft {
540
+ 0% { -webkit-transform: translateX(0) scale(1); }
541
+ 60%, 70% { -webkit-transform: translateX(0) scale(.7); }
542
+ 100% { -webkit-transform: translateX(-100%) scale(.7); }
543
+ }
544
+ @-moz-keyframes flowouttoleft {
545
+ 0% { -moz-transform: translateX(0) scale(1); }
546
+ 60%, 70% { -moz-transform: translateX(0) scale(.7); }
547
+ 100% { -moz-transform: translateX(-100%) scale(.7); }
548
+ }
549
+ @-webkit-keyframes flowouttoright {
550
+ 0% { -webkit-transform: translateX(0) scale(1); }
551
+ 60%, 70% { -webkit-transform: translateX(0) scale(.7); }
552
+ 100% { -webkit-transform: translateX(100%) scale(.7); }
553
+ }
554
+ @-moz-keyframes flowouttoright {
555
+ 0% { -moz-transform: translateX(0) scale(1); }
556
+ 60%, 70% { -moz-transform: translateX(0) scale(.7); }
557
+ 100% { -moz-transform: translateX(100%) scale(.7); }
558
+ }
559
+ @-webkit-keyframes flowinfromleft {
560
+ 0% { -webkit-transform: translateX(-100%) scale(.7); }
561
+ 30%, 40% { -webkit-transform: translateX(0) scale(.7); }
562
+ 100% { -webkit-transform: translateX(0) scale(1); }
563
+ }
564
+ @-moz-keyframes flowinfromleft {
565
+ 0% { -moz-transform: translateX(-100%) scale(.7); }
566
+ 30%, 40% { -moz-transform: translateX(0) scale(.7); }
567
+ 100% { -moz-transform: translateX(0) scale(1); }
568
+ }
569
+ @-webkit-keyframes flowinfromright {
570
+ 0% { -webkit-transform: translateX(100%) scale(.7); }
571
+ 30%, 40% { -webkit-transform: translateX(0) scale(.7); }
572
+ 100% { -webkit-transform: translateX(0) scale(1); }
573
+ }
574
+ @-moz-keyframes flowinfromright {
575
+ 0% { -moz-transform: translateX(100%) scale(.7); }
576
+ 30%, 40% { -moz-transform: translateX(0) scale(.7); }
577
+ 100% { -moz-transform: translateX(0) scale(1); }
578
+ }
579
+ .ui-grid-a, .ui-grid-b, .ui-grid-c, .ui-grid-d { overflow: hidden; }
580
+ .ui-block-a, .ui-block-b, .ui-block-c, .ui-block-d, .ui-block-e { margin: 0; padding: 0; border: 0; float: left; min-height:1px;}
581
+ .ui-grid-solo .ui-block-a { width: 100%; float: none; }
582
+ .ui-grid-a .ui-block-a, .ui-grid-a .ui-block-b { width: 50%; }
583
+ .ui-grid-a .ui-block-a { clear: left; }
584
+ .ui-grid-b .ui-block-a, .ui-grid-b .ui-block-b, .ui-grid-b .ui-block-c { width: 33.333%; }
585
+ .ui-grid-b .ui-block-a { clear: left; }
586
+ .ui-grid-c .ui-block-a, .ui-grid-c .ui-block-b, .ui-grid-c .ui-block-c, .ui-grid-c .ui-block-d { width: 25%; }
587
+ .ui-grid-c .ui-block-a { clear: left; }
588
+ .ui-grid-d .ui-block-a, .ui-grid-d .ui-block-b, .ui-grid-d .ui-block-c, .ui-grid-d .ui-block-d, .ui-grid-d .ui-block-e { width: 20%; }
589
+ .ui-grid-d .ui-block-a { clear: left; }
590
+ .ui-header-fixed,
591
+ .ui-footer-fixed {
592
+ left: 0;
593
+ right: 0;
594
+ width: 100%;
595
+ position: fixed;
596
+ z-index: 1000;
597
+ }
598
+ .ui-header-fixed {
599
+ top: 0;
600
+ }
601
+ .ui-footer-fixed {
602
+ bottom: 0;
603
+ }
604
+ .ui-header-fullscreen,
605
+ .ui-footer-fullscreen {
606
+ opacity: .9;
607
+ }
608
+ .ui-page-header-fixed {
609
+ padding-top: 2.5em;
610
+ }
611
+ .ui-page-footer-fixed {
612
+ padding-bottom: 3em;
613
+ }
614
+ .ui-page-header-fullscreen .ui-content,
615
+ .ui-page-footer-fullscreen .ui-content {
616
+ padding: 0;
617
+ }
618
+ .ui-fixed-hidden {
619
+ position: absolute;
620
+ }
621
+ .ui-page-header-fullscreen .ui-fixed-hidden,
622
+ .ui-page-footer-fullscreen .ui-fixed-hidden {
623
+ left: -99999em;
624
+ }
625
+ .ui-header-fixed .ui-btn,
626
+ .ui-footer-fixed .ui-btn {
627
+ z-index: 10;
628
+ }
629
+ .ui-navbar { overflow: hidden; }
630
+ .ui-navbar ul, .ui-navbar-expanded ul { list-style:none; padding: 0; margin: 0; position: relative; display: block; border: 0;}
631
+ .ui-navbar-collapsed ul { float: left; width: 75%; margin-right: -2px; }
632
+ .ui-navbar-collapsed .ui-navbar-toggle { float: left; width: 25%; }
633
+ .ui-navbar li.ui-navbar-truncate { position: absolute; left: -9999px; top: -9999px; }
634
+ .ui-navbar li .ui-btn, .ui-navbar .ui-navbar-toggle .ui-btn { display: block; font-size: 12px; text-align: center; margin: 0; border-right-width: 0; max-width: 100%; }
635
+ .ui-navbar li .ui-btn { margin-right: -1px; }
636
+ .ui-navbar li .ui-btn:last-child { margin-right: 0; }
637
+ .ui-header .ui-navbar li .ui-btn, .ui-header .ui-navbar .ui-navbar-toggle .ui-btn,
638
+ .ui-footer .ui-navbar li .ui-btn, .ui-footer .ui-navbar .ui-navbar-toggle .ui-btn { border-top-width: 0; border-bottom-width: 0; }
639
+ .ui-navbar .ui-btn-inner { padding-left: 2px; padding-right: 2px; }
640
+ .ui-navbar-noicons li .ui-btn .ui-btn-inner, .ui-navbar-noicons .ui-navbar-toggle .ui-btn-inner { padding-top: .8em; padding-bottom: .9em; }
641
+ .ui-navbar-expanded .ui-btn { margin: 0; font-size: 14px; }
642
+ .ui-navbar-expanded .ui-btn-inner { padding-left: 5px; padding-right: 5px; }
643
+ .ui-navbar-expanded .ui-btn-icon-top .ui-btn-inner { padding: 45px 5px 15px; text-align: center; }
644
+ .ui-navbar-expanded .ui-btn-icon-top .ui-icon { top: 15px; }
645
+ .ui-navbar-expanded .ui-btn-icon-bottom .ui-btn-inner { padding: 15px 5px 45px; text-align: center; }
646
+ .ui-navbar-expanded .ui-btn-icon-bottom .ui-icon { bottom: 15px; }
647
+ .ui-navbar-expanded li .ui-btn .ui-btn-inner { min-height: 2.5em; }
648
+ .ui-navbar-expanded .ui-navbar-noicons .ui-btn .ui-btn-inner { padding-top: 1.8em; padding-bottom: 1.9em; }
649
+ .ui-btn { display: block; text-align: center; cursor:pointer; position: relative; margin: .5em 5px; padding: 0; }
650
+ .ui-mini { margin: .25em 5px; }
651
+ .ui-btn-inner { padding: .6em 20px; min-width: .75em; display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; position: relative; zoom: 1; }
652
+ .ui-btn input, .ui-btn button { z-index: 2; }
653
+ .ui-btn-left, .ui-btn-right, .ui-btn-inline { display: inline-block; }
654
+ .ui-btn-block { display: block; }
655
+ .ui-header .ui-btn,
656
+ .ui-footer .ui-btn { display: inline-block; margin: 0; }
657
+ .ui-header .ui-btn-inner,
658
+ .ui-footer .ui-btn-inner,
659
+ .ui-mini .ui-btn-inner { font-size: 12.5px; padding: .55em 11px .5em; }
660
+ .ui-header .ui-fullsize .ui-btn-inner,
661
+ .ui-footer .ui-fullsize .ui-btn-inner { font-size: 16px; padding: .6em 25px; }
662
+ .ui-btn-icon-notext { width: 24px; height: 24px; }
663
+ .ui-btn-icon-notext .ui-btn-inner { padding: 0; height: 100%; }
664
+ .ui-btn-icon-notext .ui-btn-inner .ui-icon { margin: 2px 1px 2px 3px; }
665
+ .ui-btn-text { position: relative; z-index: 1; width: 100%; }
666
+ .ui-btn-icon-notext .ui-btn-text { position: absolute; left: -9999px; }
667
+ .ui-btn-icon-left .ui-btn-inner { padding-left: 40px; }
668
+ .ui-btn-icon-right .ui-btn-inner { padding-right: 40px; }
669
+ .ui-btn-icon-top .ui-btn-inner { padding-top: 40px; }
670
+ .ui-btn-icon-bottom .ui-btn-inner { padding-bottom: 40px; }
671
+ .ui-header .ui-btn-icon-left .ui-btn-inner,
672
+ .ui-footer .ui-btn-icon-left .ui-btn-inner,
673
+ .ui-mini .ui-btn-icon-left .ui-btn-inner { padding-left: 30px; }
674
+ .ui-header .ui-btn-icon-right .ui-btn-inner,
675
+ .ui-footer .ui-btn-icon-right .ui-btn-inner,
676
+ .ui-mini .ui-btn-icon-right .ui-btn-inner { padding-right: 30px; }
677
+ .ui-header .ui-btn-icon-top .ui-btn-inner,
678
+ .ui-footer .ui-btn-icon-top .ui-btn-inner,
679
+ .ui-mini .ui-btn-icon-top .ui-btn-inner { padding: 30px 3px .5em 3px; }
680
+ .ui-header .ui-btn-icon-bottom .ui-btn-inner,
681
+ .ui-footer .ui-btn-icon-bottom .ui-btn-inner,
682
+ .ui-mini .ui-btn-icon-bottom .ui-btn-inner { padding: .55em 3px 30px 3px; }
683
+ .ui-btn-icon-notext .ui-icon { display: block; z-index: 0;}
684
+ .ui-btn-icon-left .ui-btn-inner .ui-icon, .ui-btn-icon-right .ui-btn-inner .ui-icon { position: absolute; top: 50%; margin-top: -9px; }
685
+ .ui-btn-icon-top .ui-btn-inner .ui-icon, .ui-btn-icon-bottom .ui-btn-inner .ui-icon { position: absolute; left: 50%; margin-left: -9px; }
686
+ .ui-btn-icon-left .ui-icon { left: 10px; }
687
+ .ui-btn-icon-right .ui-icon { right: 10px; }
688
+ .ui-btn-icon-top .ui-icon { top: 10px; }
689
+ .ui-btn-icon-bottom .ui-icon { top: auto; bottom: 10px; }
690
+ .ui-header .ui-btn-icon-left .ui-icon,
691
+ .ui-footer .ui-btn-icon-left .ui-icon,
692
+ .ui-mini.ui-btn-icon-left .ui-icon,
693
+ .ui-mini .ui-btn-icon-left .ui-icon { left: 5px; }
694
+ .ui-header .ui-btn-icon-right .ui-icon,
695
+ .ui-footer .ui-btn-icon-right .ui-icon,
696
+ .ui-mini.ui-btn-icon-right .ui-icon,
697
+ .ui-mini .ui-btn-icon-right .ui-icon { right: 5px; }
698
+ .ui-header .ui-btn-icon-top .ui-icon,
699
+ .ui-footer .ui-btn-icon-top .ui-icon,
700
+ .ui-mini.ui-btn-icon-top .ui-icon,
701
+ .ui-mini .ui-btn-icon-top .ui-icon { top: 5px; }
702
+ .ui-header .ui-btn-icon-bottom .ui-icon,
703
+ .ui-footer .ui-btn-icon-bottom .ui-icon,
704
+ .ui-mini.ui-btn-icon-bottom .ui-icon,
705
+ .ui-mini .ui-btn-icon-bottom .ui-icon { bottom: 5px; }
706
+ .ui-btn-hidden { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-appearance: button; opacity: .1; cursor: pointer; background: #fff; background: rgba(255,255,255,0); filter: Alpha(Opacity=.0001); font-size: 1px; border: none; text-indent: -9999px; }
707
+ .ui-collapsible { margin: .5em 0; }
708
+ .ui-collapsible-heading { font-size: 16px; display: block; margin: 0 -8px; padding: 0; border-width: 0 0 1px 0; position: relative; }
709
+ .ui-collapsible-heading a { text-align: left; margin: 0; }
710
+ .ui-collapsible-heading .ui-btn-inner,
711
+ .ui-collapsible-heading .ui-btn-icon-left .ui-btn-inner { padding-left: 40px; }
712
+ .ui-collapsible-heading .ui-btn-icon-right .ui-btn-inner { padding-left: 12px; padding-right: 40px; }
713
+ .ui-collapsible-heading .ui-btn-icon-top .ui-btn-inner,
714
+ .ui-collapsible-heading .ui-btn-icon-bottom .ui-btn-inner { padding-right: 40px; text-align: center; }
715
+ .ui-collapsible-heading a span.ui-btn { position: absolute; left: 6px; top: 50%; margin: -12px 0 0 0; width: 20px; height: 20px; padding: 1px 0px 1px 2px; text-indent: -9999px; }
716
+ .ui-collapsible-heading a span.ui-btn .ui-btn-inner { padding: 10px 0; }
717
+ .ui-collapsible-heading a span.ui-btn .ui-icon { left: 0; margin-top: -10px; }
718
+ .ui-collapsible-heading-status { position: absolute; top: -9999px; left:0px; }
719
+ .ui-collapsible-content {
720
+ display: block;
721
+ margin: 0 -8px;
722
+ padding: 10px 16px;
723
+ border-top: none;
724
+ background-image: none;
725
+ font-weight: normal;
726
+ }
727
+ .ui-collapsible-content-collapsed { display: none; }
728
+ .ui-collapsible-set { margin: .5em 0; }
729
+ .ui-collapsible-set .ui-collapsible { margin: -1px 0 0; }
730
+ .ui-controlgroup, fieldset.ui-controlgroup { padding: 0; margin: 0em 0 .5em; zoom: 1; }
731
+ .ui-bar .ui-controlgroup { margin: 0 .3em; }
732
+ .ui-controlgroup-label { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .4em; }
733
+ .ui-controlgroup-controls { display: block; width: 100%;}
734
+ .ui-controlgroup li { list-style: none; }
735
+ .ui-controlgroup-vertical .ui-btn,
736
+ .ui-controlgroup-vertical .ui-checkbox, .ui-controlgroup-vertical .ui-radio { margin: 0; border-bottom-width: 0; }
737
+ .ui-controlgroup-controls label.ui-select { position: absolute; left: -9999px; }
738
+ .ui-controlgroup-vertical .ui-controlgroup-last { border-bottom-width: 1px; }
739
+ .ui-controlgroup-horizontal { padding: 0; }
740
+ .ui-controlgroup-horizontal .ui-btn-inner { text-align:center; }
741
+ .ui-controlgroup-horizontal .ui-btn, .ui-controlgroup-horizontal .ui-select { display: inline-block; margin: 0 -6px 0 0; }
742
+ .ui-controlgroup-horizontal .ui-checkbox, .ui-controlgroup-horizontal .ui-radio { float: left; clear: none; margin: 0 -1px 0 0; }
743
+ .ui-controlgroup-horizontal .ui-checkbox .ui-btn, .ui-controlgroup-horizontal .ui-radio .ui-btn,
744
+ .ui-controlgroup-horizontal .ui-checkbox:last-child, .ui-controlgroup-horizontal .ui-radio:last-child { margin-right: 0; }
745
+ .ui-controlgroup-horizontal .ui-controlgroup-last { margin-right: 0; }
746
+ .ui-controlgroup .ui-checkbox label, .ui-controlgroup .ui-radio label { font-size: 16px; }
747
+ @media all and (min-width: 450px){
748
+ .ui-field-contain .ui-controlgroup-label { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
749
+ .ui-field-contain .ui-controlgroup-controls { width: 60%; display: inline-block; }
750
+ .ui-field-contain .ui-controlgroup .ui-select { width: 100%; }
751
+ .ui-field-contain .ui-controlgroup-horizontal .ui-select { width: auto; }
752
+ }
753
+ .ui-dialog {
754
+ background: none !important;
755
+ }
756
+ .ui-dialog-contain { width: 92.5%; max-width: 500px; margin: 10% auto 15px auto; padding: 0; }
757
+ .ui-dialog .ui-header {
758
+ margin-top: 15%;
759
+ border: none;
760
+ overflow: hidden;
761
+ }
762
+ .ui-dialog .ui-header,
763
+ .ui-dialog .ui-content,
764
+ .ui-dialog .ui-footer {
765
+ display: block;
766
+ position: relative;
767
+ width: auto;
768
+ }
769
+ .ui-dialog .ui-header,
770
+ .ui-dialog .ui-footer {
771
+ z-index: 10;
772
+ padding: 0;
773
+ }
774
+ .ui-dialog .ui-footer {
775
+ padding: 0 15px;
776
+ }
777
+ .ui-dialog .ui-content {
778
+ padding: 15px;
779
+ }
780
+ .ui-dialog {
781
+ margin-top: -15px;
782
+ }
783
+ .ui-checkbox, .ui-radio { position: relative; clear: both; margin: .2em 0 .5em; z-index: 1; }
784
+ .ui-checkbox .ui-btn, .ui-radio .ui-btn { margin: 0; text-align: left; z-index: 2; }
785
+ .ui-checkbox .ui-btn-inner, .ui-radio .ui-btn-inner { white-space: normal; }
786
+ .ui-checkbox .ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-btn-icon-left .ui-btn-inner { padding-left: 45px; }
787
+ .ui-checkbox .ui-mini.ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-mini.ui-btn-icon-left .ui-btn-inner { padding-left: 36px; }
788
+ .ui-checkbox .ui-btn-icon-right .ui-btn-inner, .ui-radio .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; }
789
+ .ui-checkbox .ui-mini.ui-btn-icon-right .ui-btn-inner, .ui-radio .ui-mini.ui-btn-icon-right .ui-btn-inner { padding-right: 36px; }
790
+ .ui-checkbox .ui-btn-icon-top .ui-btn-inner,.ui-radio .ui-btn-icon-top .ui-btn-inner { padding-right: 0; padding-left: 0; text-align: center; }
791
+ .ui-checkbox .ui-btn-icon-bottom .ui-btn-inner, .ui-radio .ui-btn-icon-bottom .ui-btn-inner { padding-right: 0; padding-left: 0; text-align: center; }
792
+ .ui-checkbox .ui-icon, .ui-radio .ui-icon { top: 1.1em; }
793
+ .ui-checkbox .ui-btn-icon-left .ui-icon, .ui-radio .ui-btn-icon-left .ui-icon { left: 15px; }
794
+ .ui-checkbox .ui-mini.ui-btn-icon-left .ui-icon, .ui-radio .ui-mini.ui-btn-icon-left .ui-icon { left: 9px; }
795
+ .ui-checkbox .ui-btn-icon-right .ui-icon, .ui-radio .ui-btn-icon-right .ui-icon { right: 15px; }
796
+ .ui-checkbox .ui-mini.ui-btn-icon-right .ui-icon, .ui-radio .ui-mini.ui-btn-icon-right .ui-icon { right: 9px; }
797
+ .ui-checkbox .ui-btn-icon-top .ui-icon, .ui-radio .ui-btn-icon-top .ui-icon { top: 10px; }
798
+ .ui-checkbox .ui-btn-icon-bottom .ui-icon, .ui-radio .ui-btn-icon-bottom .ui-icon { top: auto; bottom: 10px; }
799
+ .ui-checkbox .ui-btn-icon-right .ui-icon, .ui-radio .ui-btn-icon-right .ui-icon { right: 15px; }
800
+ .ui-checkbox .ui-mini.ui-btn-icon-right .ui-icon, .ui-radio .ui-mini.ui-btn-icon-right .ui-icon { right: 9px; }
801
+ .ui-checkbox input,.ui-radio input { position:absolute; left:20px; top:50%; width: 10px; height: 10px; margin:-5px 0 0 0; outline: 0 !important; z-index: 1; }
802
+ .ui-field-contain, fieldset.ui-field-contain { padding: .8em 0; margin: 0; border-width: 0 0 1px 0; overflow: visible; }
803
+ .ui-field-contain:first-child { border-top-width: 0; }
804
+ .ui-header .ui-field-contain-left,
805
+ .ui-header .ui-field-contain-right {
806
+ position: absolute;
807
+ top: 0;
808
+ width: 25%;
809
+ }
810
+ .ui-header .ui-field-contain-left {
811
+ left: 1em;
812
+ }
813
+ .ui-header .ui-field-contain-right {
814
+ right: 1em;
815
+ }
816
+ @media all and (min-width: 450px){
817
+ .ui-field-contain, .ui-mobile fieldset.ui-field-contain { border-width: 0; padding: 0; margin: 1em 0; }
818
+ }
819
+ .ui-select { display: block; position: relative; }
820
+ .ui-select select { position: absolute; left: -9999px; top: -9999px; }
821
+ .ui-select .ui-btn { overflow: hidden; opacity: 1; margin: 0; }
822
+ .ui-select .ui-btn select { cursor: pointer; -webkit-appearance: button; left: 0; top:0; width: 100%; min-height: 1.5em; min-height: 100%; height: 3em; max-height: 100%; opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); z-index: 2; }
823
+ .ui-select .ui-disabled { opacity: .3; }
824
+ @-moz-document url-prefix() {.ui-select .ui-btn select { opacity: 0.0001; }}
825
+ .ui-select .ui-btn select.ui-select-nativeonly { opacity: 1; text-indent: 0; }
826
+ .ui-select .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; }
827
+ .ui-select .ui-btn-icon-right .ui-icon { right: 15px; }
828
+ .ui-select .ui-mini.ui-btn-icon-right .ui-icon { right: 7px; }
829
+ label.ui-select { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em; display: block; }
830
+ .ui-select .ui-btn-text, .ui-selectmenu .ui-btn-text { display: block; min-height: 1em; overflow: hidden !important;
831
+ }
832
+ .ui-select .ui-btn-text { text-overflow: ellipsis; }
833
+ .ui-selectmenu { position: absolute; padding: 0; z-index: 1100 !important; width: 80%; max-width: 350px; padding: 6px; }
834
+ .ui-selectmenu .ui-listview { margin: 0; }
835
+ .ui-selectmenu .ui-btn.ui-li-divider { cursor: default; }
836
+ .ui-selectmenu-hidden { top: -9999px; left: -9999px; }
837
+ .ui-selectmenu-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 99; }
838
+ .ui-screen-hidden, .ui-selectmenu-list .ui-li .ui-icon { display: none; }
839
+ .ui-selectmenu-list .ui-li .ui-icon { display: block; }
840
+ .ui-li.ui-selectmenu-placeholder { display: none; }
841
+ .ui-selectmenu .ui-header .ui-title { margin: 0.6em 46px 0.8em; }
842
+ @media all and (min-width: 450px){
843
+ .ui-field-contain label.ui-select { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
844
+ .ui-field-contain .ui-select { width: 60%; display: inline-block; }
845
+ }
846
+ .ui-selectmenu .ui-header h1:after { content: '.'; visibility: hidden; }
847
+ label.ui-input-text { font-size: 16px; line-height: 1.4; display: block; font-weight: normal; margin: 0 0 .3em; }
848
+ input.ui-input-text, textarea.ui-input-text { background-image: none; padding: .4em; line-height: 1.4; font-size: 16px; display: block; width: 97%; outline: 0; }
849
+ .ui-header input.ui-input-text,
850
+ .ui-footer input.ui-input-text { margin-left: 1.25%; padding: .4em 1%; width: 95.5% }
851
+ input.ui-input-text { -webkit-appearance: none; }
852
+ textarea.ui-input-text { height: 50px; -webkit-transition: height 200ms linear; -moz-transition: height 200ms linear; -o-transition: height 200ms linear; transition: height 200ms linear; }
853
+ .ui-input-search { padding: 0 30px; background-image: none; position: relative; }
854
+ .ui-icon-searchfield:after { position: absolute; left: 7px; top: 50%; margin-top: -9px; content: ""; width: 18px; height: 18px; opacity: .5; }
855
+ .ui-input-search input.ui-input-text { border: none; width: 98%; padding: .4em 0; margin: 0; display: block; background: transparent none; outline: 0 !important; }
856
+ .ui-input-search .ui-input-clear { position: absolute; right: 0; top: 50%; margin-top: -13px; }
857
+ .ui-mini .ui-input-clear { right: -3px; }
858
+ .ui-input-search .ui-input-clear-hidden { display: none; }
859
+ input.ui-mini, .ui-mini input, textarea.ui-mini { font-size: 14px; }
860
+ textarea.ui-mini { height: 45px; }
861
+ @media all and (min-width: 450px){
862
+ .ui-field-contain label.ui-input-text { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0 }
863
+ .ui-field-contain input.ui-input-text,
864
+ .ui-field-contain textarea.ui-input-text,
865
+ .ui-field-contain .ui-input-search { width: 60%; display: inline-block; }
866
+ .ui-field-contain .ui-input-search { width: 50%; }
867
+ .ui-hide-label input.ui-input-text,
868
+ .ui-hide-label textarea.ui-input-text,
869
+ .ui-hide-label .ui-input-search { padding: .4em; width: 97%; }
870
+ .ui-input-search input.ui-input-text { width: 98%; }
871
+ }
872
+ .ui-listview { margin: 0; counter-reset: listnumbering; }
873
+ .ui-content .ui-listview { margin: -15px; }
874
+ .ui-content .ui-listview-inset { margin: 1em 0; }
875
+ .ui-listview, .ui-li { list-style:none; padding:0; }
876
+ .ui-li, .ui-li.ui-field-contain { display: block; margin:0; position: relative; overflow: visible; text-align: left; border-width: 0; border-top-width: 1px; }
877
+ .ui-li .ui-btn-text a.ui-link-inherit { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
878
+ .ui-li-divider, .ui-li-static { padding: .5em 15px; font-size: 14px; font-weight: bold; }
879
+ .ui-li-divider { counter-reset: listnumbering; }
880
+ ol.ui-listview .ui-link-inherit:before, ol.ui-listview .ui-li-static:before, .ui-li-dec { font-size: .8em; display: inline-block; padding-right: .3em; font-weight: normal;counter-increment: listnumbering; content: counter(listnumbering) ". "; }
881
+ ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; }
882
+ .ui-listview-inset .ui-li { border-right-width: 1px; border-left-width: 1px; }
883
+ .ui-li:last-child, .ui-li.ui-field-contain:last-child { border-bottom-width: 1px; }
884
+ .ui-li>.ui-btn-inner { display: block; position: relative; padding: 0; }
885
+ .ui-li .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li { padding: .7em 15px .7em 15px; display: block; }
886
+ .ui-li-has-thumb .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-thumb { min-height: 60px; padding-left: 100px; }
887
+ .ui-li-has-icon .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-icon { min-height: 20px; padding-left: 40px; }
888
+ .ui-li-has-count .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-count { padding-right: 45px; }
889
+ .ui-li-has-arrow .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-arrow { padding-right: 30px; }
890
+ .ui-li-has-arrow.ui-li-has-count .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-arrow.ui-li-has-count { padding-right: 75px; }
891
+ .ui-li-has-count .ui-btn-text { padding-right: 15px; }
892
+ .ui-li-heading { font-size: 16px; font-weight: bold; display: block; margin: .6em 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
893
+ .ui-li-desc { font-size: 12px; font-weight: normal; display: block; margin: -.5em 0 .6em; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
894
+ .ui-li-thumb, .ui-listview .ui-li-icon { position: absolute; left: 1px; top: 0; max-height: 80px; max-width: 80px; }
895
+ .ui-listview .ui-li-icon { max-height: 40px; max-width: 40px; left: 10px; top: .9em; }
896
+ .ui-li-thumb, .ui-listview .ui-li-icon, .ui-li-content { float: left; margin-right: 10px; }
897
+ .ui-li-aside { float: right; width: 50%; text-align: right; margin: .3em 0; }
898
+ @media all and (min-width: 480px){
899
+ .ui-li-aside { width: 45%; }
900
+ }
901
+ .ui-li-divider { cursor: default; }
902
+ .ui-li-has-alt .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-alt { padding-right: 95px; }
903
+ .ui-li-has-count .ui-li-count { position: absolute; font-size: 11px; font-weight: bold; padding: .2em .5em; top: 50%; margin-top: -.9em; right: 48px; }
904
+ .ui-li-divider .ui-li-count, .ui-li-static .ui-li-count { right: 10px; }
905
+ .ui-li-has-alt .ui-li-count { right: 55px; }
906
+ .ui-li-link-alt { position: absolute; width: 40px; height: 100%; border-width: 0; border-left-width: 1px; top: 0; right: 0; margin: 0; padding: 0; z-index: 2; }
907
+ .ui-li-link-alt .ui-btn { overflow: hidden; position: absolute; right: 8px; top: 50%; margin: -11px 0 0 0; border-bottom-width: 1px; z-index: -1;}
908
+ .ui-li-link-alt .ui-btn-inner { padding: 0; height: 100%; position: absolute; width: 100%; top: 0; left: 0;}
909
+ .ui-li-link-alt .ui-btn .ui-icon { right: 50%; margin-right: -9px; }
910
+ .ui-listview * .ui-btn-inner > .ui-btn > .ui-btn-inner { border-top: 0px; }
911
+ .ui-listview-filter { border-width: 0; overflow: hidden; margin: -15px -15px 15px -15px }
912
+ .ui-listview-filter .ui-input-search { margin: 5px; width: auto; display: block; }
913
+ .ui-listview-filter-inset { margin: -15px -5px -15px -5px; background: transparent; }
914
+ .ui-li.ui-screen-hidden{display:none;}
915
+ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
916
+ .ui-li .ui-btn-text { overflow: visible; }
917
+ }
918
+ label.ui-slider { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em; display: block; }
919
+ input.ui-slider-input,
920
+ .ui-field-contain input.ui-slider-input { display: inline-block; width: 50px; }
921
+ select.ui-slider-switch { display: none; }
922
+ div.ui-slider { position: relative; display: inline-block; overflow: visible; height: 15px; padding: 0; margin: 0 2% 0 20px; top: 4px; width: 65%; }
923
+ div.ui-slider-mini { height: 12px; margin-left: 10px; }
924
+ div.ui-slider-bg { border: none; height: 100%; padding-right: 8px; }
925
+ .ui-controlgroup a.ui-slider-handle, a.ui-slider-handle { position: absolute; z-index: 1; top: 50%; width: 28px; height: 28px; margin-top: -15px; margin-left: -15px; outline: 0; }
926
+ a.ui-slider-handle .ui-btn-inner { padding: 0; height: 100%; }
927
+ div.ui-slider-mini a.ui-slider-handle { height: 14px; width: 14px; margin: -8px 0 0 -7px; }
928
+ div.ui-slider-mini a.ui-slider-handle .ui-btn-inner { height: 30px; width: 30px; padding: 0; margin: -9px 0 0 -9px; }
929
+ @media all and (min-width: 450px){
930
+ .ui-field-contain label.ui-slider { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
931
+ .ui-field-contain div.ui-slider { width: 43%; }
932
+ .ui-field-contain div.ui-slider-switch { width: 5.5em; }
933
+ }
934
+ div.ui-slider-switch { height: 32px; margin-left: 0; width: 5.8em; }
935
+ a.ui-slider-handle-snapping { -webkit-transition: left 70ms linear; -moz-transition: left 70ms linear; }
936
+ div.ui-slider-switch .ui-slider-handle { margin-top: 1px; }
937
+ .ui-slider-inneroffset { margin: 0 16px; position: relative; z-index: 1; }
938
+ div.ui-slider-switch.ui-slider-mini { width: 5em; height: 29px; }
939
+ div.ui-slider-switch.ui-slider-mini .ui-slider-inneroffset { margin: 0 15px 0 14px; }
940
+ div.ui-slider-switch.ui-slider-mini .ui-slider-handle { width: 25px; height: 25px; margin: 1px 0 0 -13px; }
941
+ div.ui-slider-switch.ui-slider-mini a.ui-slider-handle .ui-btn-inner { height: 30px; width: 30px; padding: 0; margin: 0; }
942
+ span.ui-slider-label { position: absolute; text-align: center; width: 100%; overflow: hidden; font-size: 16px; top: 0; line-height: 2; min-height: 100%; border-width: 0; white-space: nowrap; }
943
+ .ui-slider-mini span.ui-slider-label { font-size: 14px; }
944
+ span.ui-slider-label-a { z-index: 1; left: 0; text-indent: -1.5em; }
945
+ span.ui-slider-label-b { z-index: 0; right: 0; text-indent: 1.5em;}
946
+ .ui-slider-inline { width: 120px; display: inline-block; }
skin/adminhtml/default/snm-mobile/jquery.mobile.structure-1.1.0.min.css ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /*! jQuery Mobile v1.1.0 db342b1f315c282692791aa870455901fdb46a55 jquerymobile.com | jquery.org/license */
2
+ .ui-mobile,.ui-mobile body{height:99.9%}.ui-mobile fieldset,.ui-page{padding:0;margin:0}.ui-mobile a img,.ui-mobile fieldset{border-width:0}.ui-mobile-viewport{margin:0;overflow-x:visible;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}body.ui-mobile-viewport,div.ui-mobile-viewport{overflow-x:hidden}.ui-mobile [data-role=page],.ui-mobile [data-role=dialog],.ui-page{top:0;left:0;width:100%;min-height:100%;position:absolute;display:none;border:0}.ui-mobile .ui-page-active{display:block;overflow:visible}.ui-page{outline:0}@media screen and (orientation:portrait){.ui-mobile,.ui-mobile .ui-page{min-height:420px}}@media screen and (orientation:landscape){.ui-mobile,.ui-mobile .ui-page{min-height:300px}}.ui-loading .ui-loader{display:block}.ui-loader{display:none;z-index:9999999;position:fixed;top:50%;box-shadow:0 1px 1px -1px #fff;left:50%;border:0}.ui-loader-default{background:0;opacity:.18;width:46px;height:46px;margin-left:-23px;margin-top:-23px}.ui-loader-verbose{width:200px;opacity:.88;height:auto;margin-left:-110px;margin-top:-43px;padding:10px}.ui-loader-default h1{font-size:0;width:0;height:0;overflow:hidden}.ui-loader-verbose h1{font-size:16px;margin:0;text-align:center}.ui-loader .ui-icon{background-color:#000;display:block;margin:0;width:44px;height:44px;padding:1px;-webkit-border-radius:36px;-moz-border-radius:36px;border-radius:36px}.ui-loader-verbose .ui-icon{margin:0 auto 10px;opacity:.75}.ui-loader-textonly{padding:15px;margin-left:-115px}.ui-loader-textonly .ui-icon{display:none}.ui-loader-fakefix{position:absolute}.ui-mobile-rendering>*{visibility:hidden}.ui-bar,.ui-body{position:relative;padding:.4em 15px;overflow:hidden;display:block;clear:both}.ui-bar{font-size:16px;margin:0}.ui-bar h1,.ui-bar h2,.ui-bar h3,.ui-bar h4,.ui-bar h5,.ui-bar h6{margin:0;padding:0;font-size:16px;display:inline-block}.ui-header,.ui-footer{position:relative;border-left-width:0;border-right-width:0}.ui-header .ui-btn-left,.ui-header .ui-btn-right,.ui-footer .ui-btn-left,.ui-footer .ui-btn-right{position:absolute;top:3px}.ui-header .ui-btn-left,.ui-footer .ui-btn-left{left:5px}.ui-header .ui-btn-right,.ui-footer .ui-btn-right{right:5px}.ui-footer .ui-btn-icon-notext,.ui-header .ui-btn-icon-notext{top:6px}.ui-header .ui-title,.ui-footer .ui-title{min-height:1.1em;text-align:center;font-size:16px;display:block;margin:.6em 30% .8em;padding:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;outline:0!important}.ui-footer .ui-title{margin:.6em 15px .8em}.ui-content{border-width:0;overflow:visible;overflow-x:hidden;padding:15px}.ui-icon{width:18px;height:18px}.ui-nojs{position:absolute;left:-9999px}.ui-hide-label label,.ui-hidden-accessible{position:absolute!important;left:-9999px;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px)}.ui-mobile-viewport-transitioning,.ui-mobile-viewport-transitioning .ui-page{width:100%;height:100%;overflow:hidden}.in{-webkit-animation-timing-function:ease-out;-webkit-animation-duration:350ms;-moz-animation-timing-function:ease-out;-moz-animation-duration:350ms}.out{-webkit-animation-timing-function:ease-in;-webkit-animation-duration:225ms;-moz-animation-timing-function:ease-in;-moz-animation-duration:225}@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}@-moz-keyframes fadein{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeout{from{opacity:1}to{opacity:0}}@-moz-keyframes fadeout{from{opacity:1}to{opacity:0}}.fade.out{opacity:0;-webkit-animation-duration:125ms;-webkit-animation-name:fadeout;-moz-animation-duration:125ms;-moz-animation-name:fadeout}.fade.in{opacity:1;-webkit-animation-duration:225ms;-webkit-animation-name:fadein;-moz-animation-duration:225ms;-moz-animation-name:fadein}.pop{-webkit-transform-origin:50% 50%;-moz-transform-origin:50% 50%}.pop.in{-webkit-transform:scale(1);-moz-transform:scale(1);opacity:1;-webkit-animation-name:popin;-moz-animation-name:popin;-webkit-animation-duration:350ms;-moz-animation-duration:350ms}.pop.out{-webkit-animation-name:fadeout;-moz-animation-name:fadeout;opacity:0;-webkit-animation-duration:100ms;-moz-animation-duration:100ms}.pop.in.reverse{-webkit-animation-name:fadein;-moz-animation-name:fadein}.pop.out.reverse{-webkit-transform:scale(.8);-moz-transform:scale(.8);-webkit-animation-name:popout;-moz-animation-name:popout}@-webkit-keyframes popin{from{-webkit-transform:scale(.8);opacity:0}to{-webkit-transform:scale(1);opacity:1}}@-moz-keyframes popin{from{-moz-transform:scale(.8);opacity:0}to{-moz-transform:scale(1);opacity:1}}@-webkit-keyframes popout{from{-webkit-transform:scale(1);opacity:1}to{-webkit-transform:scale(.8);opacity:0}}@-moz-keyframes popout{from{-moz-transform:scale(1);opacity:1}to{-moz-transform:scale(.8);opacity:0}}@-webkit-keyframes slideinfromright{from{-webkit-transform:translateX(100%)}to{-webkit-transform:translateX(0)}}@-moz-keyframes slideinfromright{from{-moz-transform:translateX(100%)}to{-moz-transform:translateX(0)}}@-webkit-keyframes slideinfromleft{from{-webkit-transform:translateX(-100%)}to{-webkit-transform:translateX(0)}}@-moz-keyframes slideinfromleft{from{-moz-transform:translateX(-100%)}to{-moz-transform:translateX(0)}}@-webkit-keyframes slideouttoleft{from{-webkit-transform:translateX(0)}to{-webkit-transform:translateX(-100%)}}@-moz-keyframes slideouttoleft{from{-moz-transform:translateX(0)}to{-moz-transform:translateX(-100%)}}@-webkit-keyframes slideouttoright{from{-webkit-transform:translateX(0)}to{-webkit-transform:translateX(100%)}}@-moz-keyframes slideouttoright{from{-moz-transform:translateX(0)}to{-moz-transform:translateX(100%)}}.slide.out,.slide.in{-webkit-animation-timing-function:ease-out;-webkit-animation-duration:350ms;-moz-animation-timing-function:ease-out;-moz-animation-duration:350ms}.slide.out{-webkit-transform:translateX(-100%);-webkit-animation-name:slideouttoleft;-moz-transform:translateX(-100%);-moz-animation-name:slideouttoleft}.slide.in{-webkit-transform:translateX(0);-webkit-animation-name:slideinfromright;-moz-transform:translateX(0);-moz-animation-name:slideinfromright}.slide.out.reverse{-webkit-transform:translateX(100%);-webkit-animation-name:slideouttoright;-moz-transform:translateX(100%);-moz-animation-name:slideouttoright}.slide.in.reverse{-webkit-transform:translateX(0);-webkit-animation-name:slideinfromleft;-moz-transform:translateX(0);-moz-animation-name:slideinfromleft}.slidefade.out{-webkit-transform:translateX(-100%);-webkit-animation-name:slideouttoleft;-moz-transform:translateX(-100%);-moz-animation-name:slideouttoleft;-webkit-animation-duration:225ms;-moz-animation-duration:225ms}.slidefade.in{-webkit-transform:translateX(0);-webkit-animation-name:fadein;-moz-transform:translateX(0);-moz-animation-name:fadein;-webkit-animation-duration:200ms;-moz-animation-duration:200ms}.slidefade.out.reverse{-webkit-transform:translateX(100%);-webkit-animation-name:slideouttoright;-moz-transform:translateX(100%);-moz-animation-name:slideouttoright;-webkit-animation-duration:200ms;-moz-animation-duration:200ms}.slidefade.in.reverse{-webkit-transform:translateX(0);-webkit-animation-name:fadein;-moz-transform:translateX(0);-moz-animation-name:fadein;-webkit-animation-duration:200ms;-moz-animation-duration:200ms}.slidedown.out{-webkit-animation-name:fadeout;-moz-animation-name:fadeout;-webkit-animation-duration:100ms;-moz-animation-duration:100ms}.slidedown.in{-webkit-transform:translateY(0);-webkit-animation-name:slideinfromtop;-moz-transform:translateY(0);-moz-animation-name:slideinfromtop;-webkit-animation-duration:250ms;-moz-animation-duration:250ms}.slidedown.in.reverse{-webkit-animation-name:fadein;-moz-animation-name:fadein;-webkit-animation-duration:150ms;-moz-animation-duration:150ms}.slidedown.out.reverse{-webkit-transform:translateY(-100%);-moz-transform:translateY(-100%);-webkit-animation-name:slideouttotop;-moz-animation-name:slideouttotop;-webkit-animation-duration:200ms;-moz-animation-duration:200ms}@-webkit-keyframes slideinfromtop{from{-webkit-transform:translateY(-100%)}to{-webkit-transform:translateY(0)}}@-moz-keyframes slideinfromtop{from{-moz-transform:translateY(-100%)}to{-moz-transform:translateY(0)}}@-webkit-keyframes slideouttotop{from{-webkit-transform:translateY(0)}to{-webkit-transform:translateY(-100%)}}@-moz-keyframes slideouttotop{from{-moz-transform:translateY(0)}to{-moz-transform:translateY(-100%)}}.slideup.out{-webkit-animation-name:fadeout;-moz-animation-name:fadeout;-webkit-animation-duration:100ms;-moz-animation-duration:100ms}.slideup.in{-webkit-transform:translateY(0);-webkit-animation-name:slideinfrombottom;-moz-transform:translateY(0);-moz-animation-name:slideinfrombottom;-webkit-animation-duration:250ms;-moz-animation-duration:250ms}.slideup.in.reverse{-webkit-animation-name:fadein;-moz-animation-name:fadein;-webkit-animation-duration:150ms;-moz-animation-duration:150ms}.slideup.out.reverse{-webkit-transform:translateY(100%);-moz-transform:translateY(100%);-webkit-animation-name:slideouttobottom;-moz-animation-name:slideouttobottom;-webkit-animation-duration:200ms;-moz-animation-duration:200ms}@-webkit-keyframes slideinfrombottom{from{-webkit-transform:translateY(100%)}to{-webkit-transform:translateY(0)}}@-moz-keyframes slideinfrombottom{from{-moz-transform:translateY(100%)}to{-moz-transform:translateY(0)}}@-webkit-keyframes slideouttobottom{from{-webkit-transform:translateY(0)}to{-webkit-transform:translateY(100%)}}@-moz-keyframes slideouttobottom{from{-moz-transform:translateY(0)}to{-moz-transform:translateY(100%)}}.viewport-flip{-webkit-perspective:1000;-moz-perspective:1000;position:absolute}.flip{-webkit-backface-visibility:hidden;-webkit-transform:translateX(0);-moz-backface-visibility:hidden;-moz-transform:translateX(0)}.flip.out{-webkit-transform:rotateY(-90deg) scale(.9);-webkit-animation-name:flipouttoleft;-webkit-animation-duration:175ms;-moz-transform:rotateY(-90deg) scale(.9);-moz-animation-name:flipouttoleft;-moz-animation-duration:175ms}.flip.in{-webkit-animation-name:flipintoright;-webkit-animation-duration:225ms;-moz-animation-name:flipintoright;-moz-animation-duration:225ms}.flip.out.reverse{-webkit-transform:rotateY(90deg) scale(.9);-webkit-animation-name:flipouttoright;-moz-transform:rotateY(90deg) scale(.9);-moz-animation-name:flipouttoright}.flip.in.reverse{-webkit-animation-name:flipintoleft;-moz-animation-name:flipintoleft}@-webkit-keyframes flipouttoleft{from{-webkit-transform:rotateY(0)}to{-webkit-transform:rotateY(-90deg) scale(.9)}}@-moz-keyframes flipouttoleft{from{-moz-transform:rotateY(0)}to{-moz-transform:rotateY(-90deg) scale(.9)}}@-webkit-keyframes flipouttoright{from{-webkit-transform:rotateY(0)}to{-webkit-transform:rotateY(90deg) scale(.9)}}@-moz-keyframes flipouttoright{from{-moz-transform:rotateY(0)}to{-moz-transform:rotateY(90deg) scale(.9)}}@-webkit-keyframes flipintoleft{from{-webkit-transform:rotateY(-90deg) scale(.9)}to{-webkit-transform:rotateY(0)}}@-moz-keyframes flipintoleft{from{-moz-transform:rotateY(-90deg) scale(.9)}to{-moz-transform:rotateY(0)}}@-webkit-keyframes flipintoright{from{-webkit-transform:rotateY(90deg) scale(.9)}to{-webkit-transform:rotateY(0)}}@-moz-keyframes flipintoright{from{-moz-transform:rotateY(90deg) scale(.9)}to{-moz-transform:rotateY(0)}}.viewport-turn{-webkit-perspective:1000;-moz-perspective:1000;position:absolute}.turn{-webkit-backface-visibility:hidden;-webkit-transform:translateX(0);-webkit-transform-origin:0 0;-moz-backface-visibility:hidden;-moz-transform:translateX(0);-moz-transform-origin:0 0}.turn.out{-webkit-transform:rotateY(-90deg) scale(.9);-webkit-animation-name:flipouttoleft;-moz-transform:rotateY(-90deg) scale(.9);-moz-animation-name:flipouttoleft;-webkit-animation-duration:125ms;-moz-animation-duration:125ms}.turn.in{-webkit-animation-name:flipintoright;-moz-animation-name:flipintoright;-webkit-animation-duration:250ms;-moz-animation-duration:250ms}.turn.out.reverse{-webkit-transform:rotateY(90deg) scale(.9);-webkit-animation-name:flipouttoright;-moz-transform:rotateY(90deg) scale(.9);-moz-animation-name:flipouttoright}.turn.in.reverse{-webkit-animation-name:flipintoleft;-moz-animation-name:flipintoleft}@-webkit-keyframes flipouttoleft{from{-webkit-transform:rotateY(0)}to{-webkit-transform:rotateY(-90deg) scale(.9)}}@-moz-keyframes flipouttoleft{from{-moz-transform:rotateY(0)}to{-moz-transform:rotateY(-90deg) scale(.9)}}@-webkit-keyframes flipouttoright{from{-webkit-transform:rotateY(0)}to{-webkit-transform:rotateY(90deg) scale(.9)}}@-moz-keyframes flipouttoright{from{-moz-transform:rotateY(0)}to{-moz-transform:rotateY(90deg) scale(.9)}}@-webkit-keyframes flipintoleft{from{-webkit-transform:rotateY(-90deg) scale(.9)}to{-webkit-transform:rotateY(0)}}@-moz-keyframes flipintoleft{from{-moz-transform:rotateY(-90deg) scale(.9)}to{-moz-transform:rotateY(0)}}@-webkit-keyframes flipintoright{from{-webkit-transform:rotateY(90deg) scale(.9)}to{-webkit-transform:rotateY(0)}}@-moz-keyframes flipintoright{from{-moz-transform:rotateY(90deg) scale(.9)}to{-moz-transform:rotateY(0)}}.flow{-webkit-transform-origin:50% 30%;-moz-transform-origin:50% 30%;-webkit-box-shadow:0 0 20px rgba(0,0,0,.4);-moz-box-shadow:0 0 20px rgba(0,0,0,.4)}.ui-dialog.flow{-webkit-transform-origin:none;-moz-transform-origin:none;-webkit-box-shadow:none;-moz-box-shadow:none}.flow.out{-webkit-transform:translateX(-100%) scale(.7);-webkit-animation-name:flowouttoleft;-webkit-animation-timing-function:ease;-webkit-animation-duration:350ms;-moz-transform:translateX(-100%) scale(.7);-moz-animation-name:flowouttoleft;-moz-animation-timing-function:ease;-moz-animation-duration:350ms}.flow.in{-webkit-transform:translateX(0) scale(1);-webkit-animation-name:flowinfromright;-webkit-animation-timing-function:ease;-webkit-animation-duration:350ms;-moz-transform:translateX(0) scale(1);-moz-animation-name:flowinfromright;-moz-animation-timing-function:ease;-moz-animation-duration:350ms}.flow.out.reverse{-webkit-transform:translateX(100%);-webkit-animation-name:flowouttoright;-moz-transform:translateX(100%);-moz-animation-name:flowouttoright}.flow.in.reverse{-webkit-animation-name:flowinfromleft;-moz-animation-name:flowinfromleft}@-webkit-keyframes flowouttoleft{0%{-webkit-transform:translateX(0) scale(1)}60%,70%{-webkit-transform:translateX(0) scale(.7)}100%{-webkit-transform:translateX(-100%) scale(.7)}}@-moz-keyframes flowouttoleft{0%{-moz-transform:translateX(0) scale(1)}60%,70%{-moz-transform:translateX(0) scale(.7)}100%{-moz-transform:translateX(-100%) scale(.7)}}@-webkit-keyframes flowouttoright{0%{-webkit-transform:translateX(0) scale(1)}60%,70%{-webkit-transform:translateX(0) scale(.7)}100%{-webkit-transform:translateX(100%) scale(.7)}}@-moz-keyframes flowouttoright{0%{-moz-transform:translateX(0) scale(1)}60%,70%{-moz-transform:translateX(0) scale(.7)}100%{-moz-transform:translateX(100%) scale(.7)}}@-webkit-keyframes flowinfromleft{0%{-webkit-transform:translateX(-100%) scale(.7)}30%,40%{-webkit-transform:translateX(0) scale(.7)}100%{-webkit-transform:translateX(0) scale(1)}}@-moz-keyframes flowinfromleft{0%{-moz-transform:translateX(-100%) scale(.7)}30%,40%{-moz-transform:translateX(0) scale(.7)}100%{-moz-transform:translateX(0) scale(1)}}@-webkit-keyframes flowinfromright{0%{-webkit-transform:translateX(100%) scale(.7)}30%,40%{-webkit-transform:translateX(0) scale(.7)}100%{-webkit-transform:translateX(0) scale(1)}}@-moz-keyframes flowinfromright{0%{-moz-transform:translateX(100%) scale(.7)}30%,40%{-moz-transform:translateX(0) scale(.7)}100%{-moz-transform:translateX(0) scale(1)}}.ui-grid-a,.ui-grid-b,.ui-grid-c,.ui-grid-d{overflow:hidden}.ui-block-a,.ui-block-b,.ui-block-c,.ui-block-d,.ui-block-e{margin:0;padding:0;border:0;float:left;min-height:1px}.ui-grid-solo .ui-block-a{width:100%;float:none}.ui-grid-a .ui-block-a,.ui-grid-a .ui-block-b{width:50%}.ui-grid-a .ui-block-a{clear:left}.ui-grid-b .ui-block-a,.ui-grid-b .ui-block-b,.ui-grid-b .ui-block-c{width:33.333%}.ui-grid-b .ui-block-a{clear:left}.ui-grid-c .ui-block-a,.ui-grid-c .ui-block-b,.ui-grid-c .ui-block-c,.ui-grid-c .ui-block-d{width:25%}.ui-grid-c .ui-block-a{clear:left}.ui-grid-d .ui-block-a,.ui-grid-d .ui-block-b,.ui-grid-d .ui-block-c,.ui-grid-d .ui-block-d,.ui-grid-d .ui-block-e{width:20%}.ui-grid-d .ui-block-a{clear:left}.ui-header-fixed,.ui-footer-fixed{left:0;right:0;width:100%;position:fixed;z-index:1000}.ui-header-fixed{top:0}.ui-footer-fixed{bottom:0}.ui-header-fullscreen,.ui-footer-fullscreen{opacity:.9}.ui-page-header-fixed{padding-top:2.5em}.ui-page-footer-fixed{padding-bottom:3em}.ui-page-header-fullscreen .ui-content,.ui-page-footer-fullscreen .ui-content{padding:0}.ui-fixed-hidden{position:absolute}.ui-page-header-fullscreen .ui-fixed-hidden,.ui-page-footer-fullscreen .ui-fixed-hidden{left:-99999em}.ui-header-fixed .ui-btn,.ui-footer-fixed .ui-btn{z-index:10}.ui-navbar{overflow:hidden}.ui-navbar ul,.ui-navbar-expanded ul{list-style:none;padding:0;margin:0;position:relative;display:block;border:0}.ui-navbar-collapsed ul{float:left;width:75%;margin-right:-2px}.ui-navbar-collapsed .ui-navbar-toggle{float:left;width:25%}.ui-navbar li.ui-navbar-truncate{position:absolute;left:-9999px;top:-9999px}.ui-navbar li .ui-btn,.ui-navbar .ui-navbar-toggle .ui-btn{display:block;font-size:12px;text-align:center;margin:0;border-right-width:0;max-width:100%}.ui-navbar li .ui-btn{margin-right:-1px}.ui-navbar li .ui-btn:last-child{margin-right:0}.ui-header .ui-navbar li .ui-btn,.ui-header .ui-navbar .ui-navbar-toggle .ui-btn,.ui-footer .ui-navbar li .ui-btn,.ui-footer .ui-navbar .ui-navbar-toggle .ui-btn{border-top-width:0;border-bottom-width:0}.ui-navbar .ui-btn-inner{padding-left:2px;padding-right:2px}.ui-navbar-noicons li .ui-btn .ui-btn-inner,.ui-navbar-noicons .ui-navbar-toggle .ui-btn-inner{padding-top:.8em;padding-bottom:.9em}.ui-navbar-expanded .ui-btn{margin:0;font-size:14px}.ui-navbar-expanded .ui-btn-inner{padding-left:5px;padding-right:5px}.ui-navbar-expanded .ui-btn-icon-top .ui-btn-inner{padding:45px 5px 15px;text-align:center}.ui-navbar-expanded .ui-btn-icon-top .ui-icon{top:15px}.ui-navbar-expanded .ui-btn-icon-bottom .ui-btn-inner{padding:15px 5px 45px;text-align:center}.ui-navbar-expanded .ui-btn-icon-bottom .ui-icon{bottom:15px}.ui-navbar-expanded li .ui-btn .ui-btn-inner{min-height:2.5em}.ui-navbar-expanded .ui-navbar-noicons .ui-btn .ui-btn-inner{padding-top:1.8em;padding-bottom:1.9em}.ui-btn{display:block;text-align:center;cursor:pointer;position:relative;margin:.5em 5px;padding:0}.ui-mini{margin:.25em 5px}.ui-btn-inner{padding:.6em 20px;min-width:.75em;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;position:relative;zoom:1}.ui-btn input,.ui-btn button{z-index:2}.ui-btn-left,.ui-btn-right,.ui-btn-inline{display:inline-block}.ui-btn-block{display:block}.ui-header .ui-btn,.ui-footer .ui-btn{display:inline-block;margin:0}.ui-header .ui-btn-inner,.ui-footer .ui-btn-inner,.ui-mini .ui-btn-inner{font-size:12.5px;padding:.55em 11px .5em}.ui-header .ui-fullsize .ui-btn-inner,.ui-footer .ui-fullsize .ui-btn-inner{font-size:16px;padding:.6em 25px}.ui-btn-icon-notext{width:24px;height:24px}.ui-btn-icon-notext .ui-btn-inner{padding:0;height:100%}.ui-btn-icon-notext .ui-btn-inner .ui-icon{margin:2px 1px 2px 3px}.ui-btn-text{position:relative;z-index:1;width:100%}.ui-btn-icon-notext .ui-btn-text{position:absolute;left:-9999px}.ui-btn-icon-left .ui-btn-inner{padding-left:40px}.ui-btn-icon-right .ui-btn-inner{padding-right:40px}.ui-btn-icon-top .ui-btn-inner{padding-top:40px}.ui-btn-icon-bottom .ui-btn-inner{padding-bottom:40px}.ui-header .ui-btn-icon-left .ui-btn-inner,.ui-footer .ui-btn-icon-left .ui-btn-inner,.ui-mini .ui-btn-icon-left .ui-btn-inner{padding-left:30px}.ui-header .ui-btn-icon-right .ui-btn-inner,.ui-footer .ui-btn-icon-right .ui-btn-inner,.ui-mini .ui-btn-icon-right .ui-btn-inner{padding-right:30px}.ui-header .ui-btn-icon-top .ui-btn-inner,.ui-footer .ui-btn-icon-top .ui-btn-inner,.ui-mini .ui-btn-icon-top .ui-btn-inner{padding:30px 3px .5em 3px}.ui-header .ui-btn-icon-bottom .ui-btn-inner,.ui-footer .ui-btn-icon-bottom .ui-btn-inner,.ui-mini .ui-btn-icon-bottom .ui-btn-inner{padding:.55em 3px 30px 3px}.ui-btn-icon-notext .ui-icon{display:block;z-index:0}.ui-btn-icon-left .ui-btn-inner .ui-icon,.ui-btn-icon-right .ui-btn-inner .ui-icon{position:absolute;top:50%;margin-top:-9px}.ui-btn-icon-top .ui-btn-inner .ui-icon,.ui-btn-icon-bottom .ui-btn-inner .ui-icon{position:absolute;left:50%;margin-left:-9px}.ui-btn-icon-left .ui-icon{left:10px}.ui-btn-icon-right .ui-icon{right:10px}.ui-btn-icon-top .ui-icon{top:10px}.ui-btn-icon-bottom .ui-icon{top:auto;bottom:10px}.ui-header .ui-btn-icon-left .ui-icon,.ui-footer .ui-btn-icon-left .ui-icon,.ui-mini.ui-btn-icon-left .ui-icon,.ui-mini .ui-btn-icon-left .ui-icon{left:5px}.ui-header .ui-btn-icon-right .ui-icon,.ui-footer .ui-btn-icon-right .ui-icon,.ui-mini.ui-btn-icon-right .ui-icon,.ui-mini .ui-btn-icon-right .ui-icon{right:5px}.ui-header .ui-btn-icon-top .ui-icon,.ui-footer .ui-btn-icon-top .ui-icon,.ui-mini.ui-btn-icon-top .ui-icon,.ui-mini .ui-btn-icon-top .ui-icon{top:5px}.ui-header .ui-btn-icon-bottom .ui-icon,.ui-footer .ui-btn-icon-bottom .ui-icon,.ui-mini.ui-btn-icon-bottom .ui-icon,.ui-mini .ui-btn-icon-bottom .ui-icon{bottom:5px}.ui-btn-hidden{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-appearance:button;opacity:.1;cursor:pointer;background:#fff;background:rgba(255,255,255,0);filter:Alpha(Opacity=.0001);font-size:1px;border:0;text-indent:-9999px}.ui-collapsible{margin:.5em 0}.ui-collapsible-heading{font-size:16px;display:block;margin:0 -8px;padding:0;border-width:0 0 1px 0;position:relative}.ui-collapsible-heading a{text-align:left;margin:0}.ui-collapsible-heading .ui-btn-inner,.ui-collapsible-heading .ui-btn-icon-left .ui-btn-inner{padding-left:40px}.ui-collapsible-heading .ui-btn-icon-right .ui-btn-inner{padding-left:12px;padding-right:40px}.ui-collapsible-heading .ui-btn-icon-top .ui-btn-inner,.ui-collapsible-heading .ui-btn-icon-bottom .ui-btn-inner{padding-right:40px;text-align:center}.ui-collapsible-heading a span.ui-btn{position:absolute;left:6px;top:50%;margin:-12px 0 0 0;width:20px;height:20px;padding:1px 0 1px 2px;text-indent:-9999px}.ui-collapsible-heading a span.ui-btn .ui-btn-inner{padding:10px 0}.ui-collapsible-heading a span.ui-btn .ui-icon{left:0;margin-top:-10px}.ui-collapsible-heading-status{position:absolute;top:-9999px;left:0}.ui-collapsible-content{display:block;margin:0 -8px;padding:10px 16px;border-top:0;background-image:none;font-weight:normal}.ui-collapsible-content-collapsed{display:none}.ui-collapsible-set{margin:.5em 0}.ui-collapsible-set .ui-collapsible{margin:-1px 0 0}.ui-controlgroup,fieldset.ui-controlgroup{padding:0;margin:0 0 .5em;zoom:1}.ui-bar .ui-controlgroup{margin:0 .3em}.ui-controlgroup-label{font-size:16px;line-height:1.4;font-weight:normal;margin:0 0 .4em}.ui-controlgroup-controls{display:block;width:100%}.ui-controlgroup li{list-style:none}.ui-controlgroup-vertical .ui-btn,.ui-controlgroup-vertical .ui-checkbox,.ui-controlgroup-vertical .ui-radio{margin:0;border-bottom-width:0}.ui-controlgroup-controls label.ui-select{position:absolute;left:-9999px}.ui-controlgroup-vertical .ui-controlgroup-last{border-bottom-width:1px}.ui-controlgroup-horizontal{padding:0}.ui-controlgroup-horizontal .ui-btn-inner{text-align:center}.ui-controlgroup-horizontal .ui-btn,.ui-controlgroup-horizontal .ui-select{display:inline-block;margin:0 -6px 0 0}.ui-controlgroup-horizontal .ui-checkbox,.ui-controlgroup-horizontal .ui-radio{float:left;clear:none;margin:0 -1px 0 0}.ui-controlgroup-horizontal .ui-checkbox .ui-btn,.ui-controlgroup-horizontal .ui-radio .ui-btn,.ui-controlgroup-horizontal .ui-checkbox:last-child,.ui-controlgroup-horizontal .ui-radio:last-child{margin-right:0}.ui-controlgroup-horizontal .ui-controlgroup-last{margin-right:0}.ui-controlgroup .ui-checkbox label,.ui-controlgroup .ui-radio label{font-size:16px}@media all and (min-width:450px){.ui-field-contain .ui-controlgroup-label{vertical-align:top;display:inline-block;width:20%;margin:0 2% 0 0}.ui-field-contain .ui-controlgroup-controls{width:60%;display:inline-block}.ui-field-contain .ui-controlgroup .ui-select{width:100%}.ui-field-contain .ui-controlgroup-horizontal .ui-select{width:auto}}.ui-dialog{background:none!important}.ui-dialog-contain{width:92.5%;max-width:500px;margin:10% auto 15px auto;padding:0}.ui-dialog .ui-header{margin-top:15%;border:0;overflow:hidden}.ui-dialog .ui-header,.ui-dialog .ui-content,.ui-dialog .ui-footer{display:block;position:relative;width:auto}.ui-dialog .ui-header,.ui-dialog .ui-footer{z-index:10;padding:0}.ui-dialog .ui-footer{padding:0 15px}.ui-dialog .ui-content{padding:15px}.ui-dialog{margin-top:-15px}.ui-checkbox,.ui-radio{position:relative;clear:both;margin:.2em 0 .5em;z-index:1}.ui-checkbox .ui-btn,.ui-radio .ui-btn{margin:0;text-align:left;z-index:2}.ui-checkbox .ui-btn-inner,.ui-radio .ui-btn-inner{white-space:normal}.ui-checkbox .ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-btn-icon-left .ui-btn-inner{padding-left:45px}.ui-checkbox .ui-mini.ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-mini.ui-btn-icon-left .ui-btn-inner{padding-left:36px}.ui-checkbox .ui-btn-icon-right .ui-btn-inner,.ui-radio .ui-btn-icon-right .ui-btn-inner{padding-right:45px}.ui-checkbox .ui-mini.ui-btn-icon-right .ui-btn-inner,.ui-radio .ui-mini.ui-btn-icon-right .ui-btn-inner{padding-right:36px}.ui-checkbox .ui-btn-icon-top .ui-btn-inner,.ui-radio .ui-btn-icon-top .ui-btn-inner{padding-right:0;padding-left:0;text-align:center}.ui-checkbox .ui-btn-icon-bottom .ui-btn-inner,.ui-radio .ui-btn-icon-bottom .ui-btn-inner{padding-right:0;padding-left:0;text-align:center}.ui-checkbox .ui-icon,.ui-radio .ui-icon{top:1.1em}.ui-checkbox .ui-btn-icon-left .ui-icon,.ui-radio .ui-btn-icon-left .ui-icon{left:15px}.ui-checkbox .ui-mini.ui-btn-icon-left .ui-icon,.ui-radio .ui-mini.ui-btn-icon-left .ui-icon{left:9px}.ui-checkbox .ui-btn-icon-right .ui-icon,.ui-radio .ui-btn-icon-right .ui-icon{right:15px}.ui-checkbox .ui-mini.ui-btn-icon-right .ui-icon,.ui-radio .ui-mini.ui-btn-icon-right .ui-icon{right:9px}.ui-checkbox .ui-btn-icon-top .ui-icon,.ui-radio .ui-btn-icon-top .ui-icon{top:10px}.ui-checkbox .ui-btn-icon-bottom .ui-icon,.ui-radio .ui-btn-icon-bottom .ui-icon{top:auto;bottom:10px}.ui-checkbox .ui-btn-icon-right .ui-icon,.ui-radio .ui-btn-icon-right .ui-icon{right:15px}.ui-checkbox .ui-mini.ui-btn-icon-right .ui-icon,.ui-radio .ui-mini.ui-btn-icon-right .ui-icon{right:9px}.ui-checkbox input,.ui-radio input{position:absolute;left:20px;top:50%;width:10px;height:10px;margin:-5px 0 0 0;outline:0!important;z-index:1}.ui-field-contain,fieldset.ui-field-contain{padding:.8em 0;margin:0;border-width:0 0 1px 0;overflow:visible}.ui-field-contain:first-child{border-top-width:0}.ui-header .ui-field-contain-left,.ui-header .ui-field-contain-right{position:absolute;top:0;width:25%}.ui-header .ui-field-contain-left{left:1em}.ui-header .ui-field-contain-right{right:1em}@media all and (min-width:450px){.ui-field-contain,.ui-mobile fieldset.ui-field-contain{border-width:0;padding:0;margin:1em 0}}.ui-select{display:block;position:relative}.ui-select select{position:absolute;left:-9999px;top:-9999px}.ui-select .ui-btn{overflow:hidden;opacity:1;margin:0}.ui-select .ui-btn select{cursor:pointer;-webkit-appearance:button;left:0;top:0;width:100%;min-height:1.5em;min-height:100%;height:3em;max-height:100%;opacity:0;-ms-filter:"alpha(opacity=0)";filter:alpha(opacity=0);z-index:2}.ui-select .ui-disabled{opacity:.3}@-moz-document url-prefix(){.ui-select .ui-btn select{opacity:.0001}}.ui-select .ui-btn select.ui-select-nativeonly{opacity:1;text-indent:0}.ui-select .ui-btn-icon-right .ui-btn-inner{padding-right:45px}.ui-select .ui-btn-icon-right .ui-icon{right:15px}.ui-select .ui-mini.ui-btn-icon-right .ui-icon{right:7px}label.ui-select{font-size:16px;line-height:1.4;font-weight:normal;margin:0 0 .3em;display:block}.ui-select .ui-btn-text,.ui-selectmenu .ui-btn-text{display:block;min-height:1em;overflow:hidden!important}.ui-select .ui-btn-text{text-overflow:ellipsis}.ui-selectmenu{position:absolute;padding:0;z-index:1100!important;width:80%;max-width:350px;padding:6px}.ui-selectmenu .ui-listview{margin:0}.ui-selectmenu .ui-btn.ui-li-divider{cursor:default}.ui-selectmenu-hidden{top:-9999px;left:-9999px}.ui-selectmenu-screen{position:absolute;top:0;left:0;width:100%;height:100%;z-index:99}.ui-screen-hidden,.ui-selectmenu-list .ui-li .ui-icon{display:none}.ui-selectmenu-list .ui-li .ui-icon{display:block}.ui-li.ui-selectmenu-placeholder{display:none}.ui-selectmenu .ui-header .ui-title{margin:.6em 46px .8em}@media all and (min-width:450px){.ui-field-contain label.ui-select{vertical-align:top;display:inline-block;width:20%;margin:0 2% 0 0}.ui-field-contain .ui-select{width:60%;display:inline-block}}.ui-selectmenu .ui-header h1:after{content:'.';visibility:hidden}label.ui-input-text{font-size:16px;line-height:1.4;display:block;font-weight:normal;margin:0 0 .3em}input.ui-input-text,textarea.ui-input-text{background-image:none;padding:.4em;line-height:1.4;font-size:16px;display:block;width:97%;outline:0}.ui-header input.ui-input-text,.ui-footer input.ui-input-text{margin-left:1.25%;padding:.4em 1%;width:95.5%}input.ui-input-text{-webkit-appearance:none}textarea.ui-input-text{height:50px;-webkit-transition:height 200ms linear;-moz-transition:height 200ms linear;-o-transition:height 200ms linear;transition:height 200ms linear}.ui-input-search{padding:0 30px;background-image:none;position:relative}.ui-icon-searchfield:after{position:absolute;left:7px;top:50%;margin-top:-9px;content:"";width:18px;height:18px;opacity:.5}.ui-input-search input.ui-input-text{border:0;width:98%;padding:.4em 0;margin:0;display:block;background:transparent none;outline:0!important}.ui-input-search .ui-input-clear{position:absolute;right:0;top:50%;margin-top:-13px}.ui-mini .ui-input-clear{right:-3px}.ui-input-search .ui-input-clear-hidden{display:none}input.ui-mini,.ui-mini input,textarea.ui-mini{font-size:14px}textarea.ui-mini{height:45px}@media all and (min-width:450px){.ui-field-contain label.ui-input-text{vertical-align:top;display:inline-block;width:20%;margin:0 2% 0 0}.ui-field-contain input.ui-input-text,.ui-field-contain textarea.ui-input-text,.ui-field-contain .ui-input-search{width:60%;display:inline-block}.ui-field-contain .ui-input-search{width:50%}.ui-hide-label input.ui-input-text,.ui-hide-label textarea.ui-input-text,.ui-hide-label .ui-input-search{padding:.4em;width:97%}.ui-input-search input.ui-input-text{width:98%}}.ui-listview{margin:0;counter-reset:listnumbering}.ui-content .ui-listview{margin:-15px}.ui-content .ui-listview-inset{margin:1em 0}.ui-listview,.ui-li{list-style:none;padding:0}.ui-li,.ui-li.ui-field-contain{display:block;margin:0;position:relative;overflow:visible;text-align:left;border-width:0;border-top-width:1px}.ui-li .ui-btn-text a.ui-link-inherit{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ui-li-divider,.ui-li-static{padding:.5em 15px;font-size:14px;font-weight:bold}.ui-li-divider{counter-reset:listnumbering}ol.ui-listview .ui-link-inherit:before,ol.ui-listview .ui-li-static:before,.ui-li-dec{font-size:.8em;display:inline-block;padding-right:.3em;font-weight:normal;counter-increment:listnumbering;content:counter(listnumbering) ". "}ol.ui-listview .ui-li-jsnumbering:before{content:""!important}.ui-listview-inset .ui-li{border-right-width:1px;border-left-width:1px}.ui-li:last-child,.ui-li.ui-field-contain:last-child{border-bottom-width:1px}.ui-li>.ui-btn-inner{display:block;position:relative;padding:0}.ui-li .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li{padding:.7em 15px .7em 15px;display:block}.ui-li-has-thumb .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li-has-thumb{min-height:60px;padding-left:100px}.ui-li-has-icon .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li-has-icon{min-height:20px;padding-left:40px}.ui-li-has-count .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li-has-count{padding-right:45px}.ui-li-has-arrow .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li-has-arrow{padding-right:30px}.ui-li-has-arrow.ui-li-has-count .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li-has-arrow.ui-li-has-count{padding-right:75px}.ui-li-has-count .ui-btn-text{padding-right:15px}.ui-li-heading{font-size:16px;font-weight:bold;display:block;margin:.6em 0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ui-li-desc{font-size:12px;font-weight:normal;display:block;margin:-.5em 0 .6em;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ui-li-thumb,.ui-listview .ui-li-icon{position:absolute;left:1px;top:0;max-height:80px;max-width:80px}.ui-listview .ui-li-icon{max-height:40px;max-width:40px;left:10px;top:.9em}.ui-li-thumb,.ui-listview .ui-li-icon,.ui-li-content{float:left;margin-right:10px}.ui-li-aside{float:right;width:50%;text-align:right;margin:.3em 0}@media all and (min-width:480px){.ui-li-aside{width:45%}}.ui-li-divider{cursor:default}.ui-li-has-alt .ui-btn-inner a.ui-link-inherit,.ui-li-static.ui-li-has-alt{padding-right:95px}.ui-li-has-count .ui-li-count{position:absolute;font-size:11px;font-weight:bold;padding:.2em .5em;top:50%;margin-top:-.9em;right:48px}.ui-li-divider .ui-li-count,.ui-li-static .ui-li-count{right:10px}.ui-li-has-alt .ui-li-count{right:55px}.ui-li-link-alt{position:absolute;width:40px;height:100%;border-width:0;border-left-width:1px;top:0;right:0;margin:0;padding:0;z-index:2}.ui-li-link-alt .ui-btn{overflow:hidden;position:absolute;right:8px;top:50%;margin:-11px 0 0 0;border-bottom-width:1px;z-index:-1}.ui-li-link-alt .ui-btn-inner{padding:0;height:100%;position:absolute;width:100%;top:0;left:0}.ui-li-link-alt .ui-btn .ui-icon{right:50%;margin-right:-9px}.ui-listview * .ui-btn-inner>.ui-btn>.ui-btn-inner{border-top:0}.ui-listview-filter{border-width:0;overflow:hidden;margin:-15px -15px 15px -15px}.ui-listview-filter .ui-input-search{margin:5px;width:auto;display:block}.ui-listview-filter-inset{margin:-15px -5px -15px -5px;background:transparent}.ui-li.ui-screen-hidden{display:none}@media only screen and (min-device-width:768px) and (max-device-width:1024px){.ui-li .ui-btn-text{overflow:visible}}label.ui-slider{font-size:16px;line-height:1.4;font-weight:normal;margin:0 0 .3em;display:block}input.ui-slider-input,.ui-field-contain input.ui-slider-input{display:inline-block;width:50px}select.ui-slider-switch{display:none}div.ui-slider{position:relative;display:inline-block;overflow:visible;height:15px;padding:0;margin:0 2% 0 20px;top:4px;width:65%}div.ui-slider-mini{height:12px;margin-left:10px}div.ui-slider-bg{border:0;height:100%;padding-right:8px}.ui-controlgroup a.ui-slider-handle,a.ui-slider-handle{position:absolute;z-index:1;top:50%;width:28px;height:28px;margin-top:-15px;margin-left:-15px;outline:0}a.ui-slider-handle .ui-btn-inner{padding:0;height:100%}div.ui-slider-mini a.ui-slider-handle{height:14px;width:14px;margin:-8px 0 0 -7px}div.ui-slider-mini a.ui-slider-handle .ui-btn-inner{height:30px;width:30px;padding:0;margin:-9px 0 0 -9px}@media all and (min-width:450px){.ui-field-contain label.ui-slider{vertical-align:top;display:inline-block;width:20%;margin:0 2% 0 0}.ui-field-contain div.ui-slider{width:43%}.ui-field-contain div.ui-slider-switch{width:5.5em}}div.ui-slider-switch{height:32px;margin-left:0;width:5.8em}a.ui-slider-handle-snapping{-webkit-transition:left 70ms linear;-moz-transition:left 70ms linear}div.ui-slider-switch .ui-slider-handle{margin-top:1px}.ui-slider-inneroffset{margin:0 16px;position:relative;z-index:1}div.ui-slider-switch.ui-slider-mini{width:5em;height:29px}div.ui-slider-switch.ui-slider-mini .ui-slider-inneroffset{margin:0 15px 0 14px}div.ui-slider-switch.ui-slider-mini .ui-slider-handle{width:25px;height:25px;margin:1px 0 0 -13px}div.ui-slider-switch.ui-slider-mini a.ui-slider-handle .ui-btn-inner{height:30px;width:30px;padding:0;margin:0}span.ui-slider-label{position:absolute;text-align:center;width:100%;overflow:hidden;font-size:16px;top:0;line-height:2;min-height:100%;border-width:0;white-space:nowrap}.ui-slider-mini span.ui-slider-label{font-size:14px}span.ui-slider-label-a{z-index:1;left:0;text-indent:-1.5em}span.ui-slider-label-b{z-index:0;right:0;text-indent:1.5em}.ui-slider-inline{width:120px;display:inline-block}
skin/adminhtml/default/snm-mobile/jquery.mobile.theme-1.1.0.css ADDED
@@ -0,0 +1,1167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery Mobile Framework 1.1.0 db342b1f315c282692791aa870455901fdb46a55
3
+ * http://jquerymobile.com
4
+ *
5
+ * Copyright 2011 (c) jQuery Project
6
+ * Dual licensed under the MIT or GPL Version 2 licenses.
7
+ * http://jquery.org/license
8
+ *
9
+ */
10
+ /* Swatches */
11
+
12
+ /* A
13
+ -----------------------------------------------------------------------------------------------------------*/
14
+
15
+ .ui-bar-a {
16
+ border: 1px solid #333 /*{a-bar-border}*/;
17
+ background: #111111 /*{a-bar-background-color}*/;
18
+ color: #ffffff /*{a-bar-color}*/;
19
+ font-weight: bold;
20
+ text-shadow: 0 /*{a-bar-shadow-x}*/ -1px /*{a-bar-shadow-y}*/ 1px /*{a-bar-shadow-radius}*/ #000000 /*{a-bar-shadow-color}*/;
21
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #3c3c3c /*{a-bar-background-start}*/), to( #111 /*{a-bar-background-end}*/)); /* Saf4+, Chrome */
22
+ background-image: -webkit-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
23
+ background-image: -moz-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* FF3.6 */
24
+ background-image: -ms-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* IE10 */
25
+ background-image: -o-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* Opera 11.10+ */
26
+ background-image: linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/);
27
+ }
28
+ .ui-bar-a,
29
+ .ui-bar-a input,
30
+ .ui-bar-a select,
31
+ .ui-bar-a textarea,
32
+ .ui-bar-a button {
33
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
34
+ }
35
+ .ui-bar-a .ui-link-inherit {
36
+ color: #fff /*{a-bar-color}*/;
37
+ }
38
+
39
+ .ui-bar-a .ui-link {
40
+ color: #7cc4e7 /*{a-bar-link-color}*/;
41
+ font-weight: bold;
42
+ }
43
+
44
+ .ui-bar-a .ui-link:hover {
45
+ color: #2489CE /*{a-bar-link-hover}*/;
46
+ }
47
+
48
+ .ui-bar-a .ui-link:active {
49
+ color: #2489CE /*{a-bar-link-active}*/;
50
+ }
51
+
52
+ .ui-bar-a .ui-link:visited {
53
+ color: #2489CE /*{a-bar-link-visited}*/;
54
+ }
55
+ .ui-body-a,
56
+ .ui-overlay-a {
57
+ border: 1px solid #444 /*{a-body-border}*/;
58
+ background: #222 /*{a-body-background-color}*/;
59
+ color: #fff /*{a-body-color}*/;
60
+ text-shadow: 0 /*{a-body-shadow-x}*/ 1px /*{a-body-shadow-y}*/ 1px /*{a-body-shadow-radius}*/ #111 /*{a-body-shadow-color}*/;
61
+ font-weight: normal;
62
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #444 /*{a-body-background-start}*/), to( #222 /*{a-body-background-end}*/)); /* Saf4+, Chrome */
63
+ background-image: -webkit-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
64
+ background-image: -moz-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* FF3.6 */
65
+ background-image: -ms-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* IE10 */
66
+ background-image: -o-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* Opera 11.10+ */
67
+ background-image: linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/);
68
+ }
69
+ .ui-overlay-a {
70
+ background-image: none;
71
+ border-width: 0;
72
+ }
73
+ .ui-body-a,
74
+ .ui-body-a input,
75
+ .ui-body-a select,
76
+ .ui-body-a textarea,
77
+ .ui-body-a button {
78
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
79
+ }
80
+ .ui-body-a .ui-link-inherit {
81
+ color: #fff /*{a-body-color}*/;
82
+ }
83
+
84
+ .ui-body-a .ui-link {
85
+ color: #2489CE /*{a-body-link-color}*/;
86
+ font-weight: bold;
87
+ }
88
+
89
+ .ui-body-a .ui-link:hover {
90
+ color: #2489CE /*{a-body-link-hover}*/;
91
+ }
92
+
93
+ .ui-body-a .ui-link:active {
94
+ color: #2489CE /*{a-body-link-active}*/;
95
+ }
96
+
97
+ .ui-body-a .ui-link:visited {
98
+ color: #2489CE /*{a-body-link-visited}*/;
99
+ }
100
+
101
+ .ui-btn-up-a {
102
+ border: 1px solid #111 /*{a-bup-border}*/;
103
+ background: #333 /*{a-bup-background-color}*/;
104
+ font-weight: bold;
105
+ color: #fff /*{a-bup-color}*/;
106
+ text-shadow: 0 /*{a-bup-shadow-x}*/ 1px /*{a-bup-shadow-y}*/ 1px /*{a-bup-shadow-radius}*/ #111 /*{a-bup-shadow-color}*/;
107
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #444444 /*{a-bup-background-start}*/), to( #2d2d2d /*{a-bup-background-end}*/)); /* Saf4+, Chrome */
108
+ background-image: -webkit-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
109
+ background-image: -moz-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* FF3.6 */
110
+ background-image: -ms-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* IE10 */
111
+ background-image: -o-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* Opera 11.10+ */
112
+ background-image: linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/);
113
+ }
114
+ .ui-btn-up-a a.ui-link-inherit {
115
+ color: #fff /*{a-bup-color}*/;
116
+ }
117
+ .ui-btn-hover-a {
118
+ border: 1px solid #000 /*{a-bhover-border}*/;
119
+ background: #444444 /*{a-bhover-background-color}*/;
120
+ font-weight: bold;
121
+ color: #fff /*{a-bhover-color}*/;
122
+ text-shadow: 0 /*{a-bhover-shadow-x}*/ 1px /*{a-bhover-shadow-y}*/ 1px /*{a-bhover-shadow-radius}*/ #111 /*{a-bhover-shadow-color}*/;
123
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #555555 /*{a-bhover-background-start}*/), to( #383838 /*{a-bhover-background-end}*/)); /* Saf4+, Chrome */
124
+ background-image: -webkit-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
125
+ background-image: -moz-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* FF3.6 */
126
+ background-image: -ms-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* IE10 */
127
+ background-image: -o-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* Opera 11.10+ */
128
+ background-image: linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/);
129
+ }
130
+ .ui-btn-hover-a a.ui-link-inherit {
131
+ color: #fff /*{a-bhover-color}*/;
132
+ }
133
+ .ui-btn-down-a {
134
+ border: 1px solid #000 /*{a-bdown-border}*/;
135
+ background: #222 /*{a-bdown-background-color}*/;
136
+ font-weight: bold;
137
+ color: #fff /*{a-bdown-color}*/;
138
+ text-shadow: 0 /*{a-bdown-shadow-x}*/ 1px /*{a-bdown-shadow-y}*/ 1px /*{a-bdown-shadow-radius}*/ #111 /*{a-bdown-shadow-color}*/;
139
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #202020 /*{a-bdown-background-start}*/), to( #2c2c2c /*{a-bdown-background-end}*/)); /* Saf4+, Chrome */
140
+ background-image: -webkit-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
141
+ background-image: -moz-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* FF3.6 */
142
+ background-image: -ms-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* IE10 */
143
+ background-image: -o-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* Opera 11.10+ */
144
+ background-image: linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/);
145
+ }
146
+ .ui-btn-down-a a.ui-link-inherit {
147
+ color: #fff /*{a-bdown-color}*/;
148
+ }
149
+ .ui-btn-up-a,
150
+ .ui-btn-hover-a,
151
+ .ui-btn-down-a {
152
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
153
+ text-decoration: none;
154
+ }
155
+
156
+
157
+ /* B
158
+ -----------------------------------------------------------------------------------------------------------*/
159
+ .ui-bar-b {
160
+ border: 1px solid #456f9a /*{b-bar-border}*/;
161
+ background: #5e87b0 /*{b-bar-background-color}*/;
162
+ color: #fff /*{b-bar-color}*/;
163
+ font-weight: bold;
164
+ text-shadow: 0 /*{b-bar-shadow-x}*/ 1px /*{b-bar-shadow-y}*/ 1px /*{b-bar-shadow-radius}*/ #3e6790 /*{b-bar-shadow-color}*/;
165
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #6facd5 /*{b-bar-background-start}*/), to( #497bae /*{b-bar-background-end}*/)); /* Saf4+, Chrome */
166
+ background-image: -webkit-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
167
+ background-image: -moz-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* FF3.6 */
168
+ background-image: -ms-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* IE10 */
169
+ background-image: -o-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* Opera 11.10+ */
170
+ background-image: linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/);
171
+ }
172
+ .ui-bar-b,
173
+ .ui-bar-b input,
174
+ .ui-bar-b select,
175
+ .ui-bar-b textarea,
176
+ .ui-bar-b button {
177
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
178
+ }
179
+ .ui-bar-b .ui-link-inherit {
180
+ color: #fff /*{b-bar-color}*/;
181
+ }
182
+ .ui-bar-b .ui-link {
183
+ color: #ddf0f8 /*{b-bar-link-color}*/;
184
+ font-weight: bold;
185
+ }
186
+
187
+ .ui-bar-b .ui-link:hover {
188
+ color: #ddf0f8 /*{b-bar-link-hover}*/;
189
+ }
190
+
191
+ .ui-bar-b .ui-link:active {
192
+ color: #ddf0f8 /*{b-bar-link-active}*/;
193
+ }
194
+
195
+ .ui-bar-b .ui-link:visited {
196
+ color: #ddf0f8 /*{b-bar-link-visited}*/;
197
+ }
198
+ .ui-body-b,
199
+ .ui-overlay-b {
200
+ border: 1px solid #999 /*{b-body-border}*/;
201
+ background: #f3f3f3 /*{b-body-background-color}*/;
202
+ color: #222222 /*{b-body-color}*/;
203
+ text-shadow: 0 /*{b-body-shadow-x}*/ 1px /*{b-body-shadow-y}*/ 0 /*{b-body-shadow-radius}*/ #fff /*{b-body-shadow-color}*/;
204
+ font-weight: normal;
205
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #ddd /*{b-body-background-start}*/), to( #ccc /*{b-body-background-end}*/)); /* Saf4+, Chrome */
206
+ background-image: -webkit-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
207
+ background-image: -moz-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* FF3.6 */
208
+ background-image: -ms-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* IE10 */
209
+ background-image: -o-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* Opera 11.10+ */
210
+ background-image: linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/);
211
+ }
212
+ .ui-overlay-b {
213
+ background-image: none;
214
+ border-width: 0;
215
+ }
216
+ .ui-body-b,
217
+ .ui-body-b input,
218
+ .ui-body-b select,
219
+ .ui-body-b textarea,
220
+ .ui-body-b button {
221
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
222
+ }
223
+ .ui-body-b .ui-link-inherit {
224
+ color: #333333 /*{b-body-color}*/;
225
+ }
226
+
227
+ .ui-body-b .ui-link {
228
+ color: #2489CE /*{b-body-link-color}*/;
229
+ font-weight: bold;
230
+ }
231
+
232
+ .ui-body-b .ui-link:hover {
233
+ color: #2489CE /*{b-body-link-hover}*/;
234
+ }
235
+
236
+ .ui-body-b .ui-link:active {
237
+ color: #2489CE /*{b-body-link-active}*/;
238
+ }
239
+
240
+ .ui-body-b .ui-link:visited {
241
+ color: #2489CE /*{b-body-link-visited}*/;
242
+ }
243
+
244
+ .ui-btn-up-b {
245
+ border: 1px solid #044062 /*{b-bup-border}*/;
246
+ background: #396b9e /*{b-bup-background-color}*/;
247
+ font-weight: bold;
248
+ color: #fff /*{b-bup-color}*/;
249
+ text-shadow: 0 /*{b-bup-shadow-x}*/ 1px /*{b-bup-shadow-y}*/ 1px /*{b-bup-shadow-radius}*/ #194b7e /*{b-bup-shadow-color}*/;
250
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #5f9cc5 /*{b-bup-background-start}*/), to( #396b9e /*{b-bup-background-end}*/)); /* Saf4+, Chrome */
251
+ background-image: -webkit-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
252
+ background-image: -moz-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* FF3.6 */
253
+ background-image: -ms-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* IE10 */
254
+ background-image: -o-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* Opera 11.10+ */
255
+ background-image: linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/);
256
+ }
257
+ .ui-btn-up-b a.ui-link-inherit {
258
+ color: #fff /*{b-bup-color}*/;
259
+ }
260
+ .ui-btn-hover-b {
261
+ border: 1px solid #00415e /*{b-bhover-border}*/;
262
+ background: #4b88b6 /*{b-bhover-background-color}*/;
263
+ font-weight: bold;
264
+ color: #fff /*{b-bhover-color}*/;
265
+ text-shadow: 0 /*{b-bhover-shadow-x}*/ 1px /*{b-bhover-shadow-y}*/ 1px /*{b-bhover-shadow-radius}*/ #194b7e /*{b-bhover-shadow-color}*/;
266
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #6facd5 /*{b-bhover-background-start}*/), to( #4272a4 /*{b-bhover-background-end}*/)); /* Saf4+, Chrome */
267
+ background-image: -webkit-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
268
+ background-image: -moz-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* FF3.6 */
269
+ background-image: -ms-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* IE10 */
270
+ background-image: -o-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* Opera 11.10+ */
271
+ background-image: linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/);
272
+ }
273
+ .ui-btn-hover-b a.ui-link-inherit {
274
+ color: #fff /*{b-bhover-color}*/;
275
+ }
276
+ .ui-btn-down-b {
277
+ border: 1px solid #225377 /*{b-bdown-border}*/;
278
+ background: #4e89c5 /*{b-bdown-background-color}*/;
279
+ font-weight: bold;
280
+ color: #fff /*{b-bdown-color}*/;
281
+ text-shadow: 0 /*{b-bdown-shadow-x}*/ 1px /*{b-bdown-shadow-y}*/ 1px /*{b-bdown-shadow-radius}*/ #194b7e /*{b-bdown-shadow-color}*/;
282
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #295b8e /*{b-bdown-background-start}*/), to( #3e79b5 /*{b-bdown-background-end}*/)); /* Saf4+, Chrome */
283
+ background-image: -webkit-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
284
+ background-image: -moz-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* FF3.6 */
285
+ background-image: -ms-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* IE10 */
286
+ background-image: -o-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* Opera 11.10+ */
287
+ background-image: linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/);
288
+ }
289
+ .ui-btn-down-b a.ui-link-inherit {
290
+ color: #fff /*{b-bdown-color}*/;
291
+ }
292
+ .ui-btn-up-b,
293
+ .ui-btn-hover-b,
294
+ .ui-btn-down-b {
295
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
296
+ text-decoration: none;
297
+ }
298
+
299
+
300
+ /* C
301
+ -----------------------------------------------------------------------------------------------------------*/
302
+
303
+ .ui-bar-c {
304
+ border: 1px solid #B3B3B3 /*{c-bar-border}*/;
305
+ background: #eeeeee /*{c-bar-background-color}*/;
306
+ color: #3E3E3E /*{c-bar-color}*/;
307
+ font-weight: bold;
308
+ text-shadow: 0 /*{c-bar-shadow-x}*/ 1px /*{c-bar-shadow-y}*/ 1px /*{c-bar-shadow-radius}*/ #fff /*{c-bar-shadow-color}*/;
309
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #f0f0f0 /*{c-bar-background-start}*/), to( #ddd /*{c-bar-background-end}*/)); /* Saf4+, Chrome */
310
+ background-image: -webkit-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
311
+ background-image: -moz-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* FF3.6 */
312
+ background-image: -ms-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* IE10 */
313
+ background-image: -o-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* Opera 11.10+ */
314
+ background-image: linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/);
315
+ }
316
+
317
+ .ui-bar-c .ui-link-inherit {
318
+ color: #3E3E3E /*{c-bar-color}*/;
319
+ }
320
+ .ui-bar-c .ui-link {
321
+ color: #7cc4e7 /*{c-bar-link-color}*/;
322
+ font-weight: bold;
323
+ }
324
+
325
+ .ui-bar-c .ui-link:hover {
326
+ color: #2489CE /*{c-bar-link-hover}*/;
327
+ }
328
+
329
+ .ui-bar-c .ui-link:active {
330
+ color: #2489CE /*{c-bar-link-active}*/;
331
+ }
332
+
333
+ .ui-bar-c .ui-link:visited {
334
+ color: #2489CE /*{c-bar-link-visited}*/;
335
+ }
336
+
337
+ .ui-bar-c,
338
+ .ui-bar-c input,
339
+ .ui-bar-c select,
340
+ .ui-bar-c textarea,
341
+ .ui-bar-c button {
342
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
343
+ }
344
+ .ui-body-c,
345
+ .ui-overlay-c {
346
+ border: 1px solid #aaa /*{c-body-border}*/;
347
+ color: #333333 /*{c-body-color}*/;
348
+ text-shadow: 0 /*{c-body-shadow-x}*/ 1px /*{c-body-shadow-y}*/ 0 /*{c-body-shadow-radius}*/ #fff /*{c-body-shadow-color}*/;
349
+ background: #f9f9f9 /*{c-body-background-color}*/;
350
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #f9f9f9 /*{c-body-background-start}*/), to( #eeeeee /*{c-body-background-end}*/)); /* Saf4+, Chrome */
351
+ background-image: -webkit-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
352
+ background-image: -moz-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* FF3.6 */
353
+ background-image: -ms-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* IE10 */
354
+ background-image: -o-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* Opera 11.10+ */
355
+ background-image: linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/);
356
+ }
357
+ .ui-overlay-c {
358
+ background-image: none;
359
+ border-width: 0;
360
+ }
361
+ .ui-body-c,
362
+ .ui-body-c input,
363
+ .ui-body-c select,
364
+ .ui-body-c textarea,
365
+ .ui-body-c button {
366
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
367
+ }
368
+
369
+ .ui-body-c .ui-link-inherit {
370
+ color: #333333 /*{c-body-color}*/;
371
+ }
372
+
373
+ .ui-body-c .ui-link {
374
+ color: #2489CE /*{c-body-link-color}*/;
375
+ font-weight: bold;
376
+ }
377
+
378
+ .ui-body-c .ui-link:hover {
379
+ color: #2489CE /*{c-body-link-hover}*/;
380
+ }
381
+
382
+ .ui-body-c .ui-link:active {
383
+ color: #2489CE /*{c-body-link-active}*/;
384
+ }
385
+
386
+ .ui-body-c .ui-link:visited {
387
+ color: #2489CE /*{c-body-link-visited}*/;
388
+ }
389
+
390
+ .ui-btn-up-c {
391
+ border: 1px solid #ccc /*{c-bup-border}*/;
392
+ background: #eee /*{c-bup-background-color}*/;
393
+ font-weight: bold;
394
+ color: #222 /*{c-bup-color}*/;
395
+ text-shadow: 0 /*{c-bup-shadow-x}*/ 1px /*{c-bup-shadow-y}*/ 0 /*{c-bup-shadow-radius}*/ #ffffff /*{c-bup-shadow-color}*/;
396
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #ffffff /*{c-bup-background-start}*/), to( #f1f1f1 /*{c-bup-background-end}*/)); /* Saf4+, Chrome */
397
+ background-image: -webkit-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
398
+ background-image: -moz-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* FF3.6 */
399
+ background-image: -ms-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* IE10 */
400
+ background-image: -o-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* Opera 11.10+ */
401
+ background-image: linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/);
402
+ }
403
+ .ui-btn-up-c a.ui-link-inherit {
404
+ color: #2F3E46 /*{c-bup-color}*/;
405
+ }
406
+
407
+ .ui-btn-hover-c {
408
+ border: 1px solid #bbb /*{c-bhover-border}*/;
409
+ background: #dfdfdf /*{c-bhover-background-color}*/;
410
+ font-weight: bold;
411
+ color: #222 /*{c-bhover-color}*/;
412
+ text-shadow: 0 /*{c-bhover-shadow-x}*/ 1px /*{c-bhover-shadow-y}*/ 0 /*{c-bhover-shadow-radius}*/ #ffffff /*{c-bhover-shadow-color}*/;
413
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #f6f6f6 /*{c-bhover-background-start}*/), to( #e0e0e0 /*{c-bhover-background-end}*/)); /* Saf4+, Chrome */
414
+ background-image: -webkit-linear-gradient( #f9f9f9 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
415
+ background-image: -moz-linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* FF3.6 */
416
+ background-image: -ms-linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* IE10 */
417
+ background-image: -o-linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* Opera 11.10+ */
418
+ background-image: linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/);
419
+ }
420
+ .ui-btn-hover-c a.ui-link-inherit {
421
+ color: #2F3E46 /*{c-bhover-color}*/;
422
+ }
423
+ .ui-btn-down-c {
424
+ border: 1px solid #bbb /*{c-bdown-border}*/;
425
+ background: #d6d6d6 /*{c-bdown-background-color}*/;
426
+ font-weight: bold;
427
+ color: #222 /*{c-bdown-color}*/;
428
+ text-shadow: 0 /*{c-bdown-shadow-x}*/ 1px /*{c-bdown-shadow-y}*/ 0 /*{c-bdown-shadow-radius}*/ #ffffff /*{c-bdown-shadow-color}*/;
429
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #d0d0d0 /*{c-bdown-background-start}*/), to( #dfdfdf /*{c-bdown-background-end}*/)); /* Saf4+, Chrome */
430
+ background-image: -webkit-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
431
+ background-image: -moz-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* FF3.6 */
432
+ background-image: -ms-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* IE10 */
433
+ background-image: -o-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* Opera 11.10+ */
434
+ background-image: linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/);
435
+ }
436
+ .ui-btn-down-c a.ui-link-inherit {
437
+ color: #2F3E46 /*{c-bdown-color}*/;
438
+ }
439
+ .ui-btn-up-c,
440
+ .ui-btn-hover-c,
441
+ .ui-btn-down-c {
442
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
443
+ text-decoration: none;
444
+ }
445
+
446
+
447
+ /* D
448
+ -----------------------------------------------------------------------------------------------------------*/
449
+
450
+ .ui-bar-d {
451
+ border: 1px solid #bbb /*{d-bar-border}*/;
452
+ background: #bbb /*{d-bar-background-color}*/;
453
+ color: #333 /*{d-bar-color}*/;
454
+ text-shadow: 0 /*{d-bar-shadow-x}*/ 1px /*{d-bar-shadow-y}*/ 0 /*{d-bar-shadow-radius}*/ #eee /*{d-bar-shadow-color}*/;
455
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #ddd /*{d-bar-background-start}*/), to( #bbb /*{d-bar-background-end}*/)); /* Saf4+, Chrome */
456
+ background-image: -webkit-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
457
+ background-image: -moz-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* FF3.6 */
458
+ background-image: -ms-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* IE10 */
459
+ background-image: -o-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* Opera 11.10+ */
460
+ background-image: linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/);
461
+ }
462
+ .ui-bar-d,
463
+ .ui-bar-d input,
464
+ .ui-bar-d select,
465
+ .ui-bar-d textarea,
466
+ .ui-bar-d button {
467
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
468
+ }
469
+
470
+ .ui-bar-d .ui-link-inherit {
471
+ color: #333333 /*{d-bar-color}*/;
472
+ }
473
+ .ui-bar-d .ui-link {
474
+ color: #2489CE /*{d-bar-link-color}*/;
475
+ font-weight: bold;
476
+ }
477
+
478
+ .ui-bar-d .ui-link:hover {
479
+ color: #2489CE /*{d-bar-link-hover}*/;
480
+ }
481
+
482
+ .ui-bar-d .ui-link:active {
483
+ color: #2489CE /*{d-bar-link-active}*/;
484
+ }
485
+
486
+ .ui-bar-d .ui-link:visited {
487
+ color: #2489CE /*{d-bar-link-visited}*/;
488
+ }
489
+
490
+ .ui-body-d,
491
+ .ui-overlay-d {
492
+ border: 1px solid #bbb /*{d-body-border}*/;
493
+ color: #333333 /*{d-body-color}*/;
494
+ text-shadow: 0 /*{d-body-shadow-x}*/ 1px /*{d-body-shadow-y}*/ 0 /*{d-body-shadow-radius}*/ #fff /*{d-body-shadow-color}*/;
495
+ background: #ffffff /*{d-body-background-color}*/;
496
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #fff), to( #fff /*{d-body-background-end}*/)); /* Saf4+, Chrome */
497
+ background-image: -webkit-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
498
+ background-image: -moz-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* FF3.6 */
499
+ background-image: -ms-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* IE10 */
500
+ background-image: -o-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* Opera 11.10+ */
501
+ background-image: linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/);
502
+ }
503
+ .ui-overlay-d {
504
+ background-image: none;
505
+ border-width: 0;
506
+ }
507
+ .ui-body-d,
508
+ .ui-body-d input,
509
+ .ui-body-d select,
510
+ .ui-body-d textarea,
511
+ .ui-body-d button {
512
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
513
+ }
514
+
515
+ .ui-body-d .ui-link-inherit {
516
+ color: #333333 /*{d-body-color}*/;
517
+ }
518
+
519
+ .ui-body-d .ui-link {
520
+ color: #2489CE /*{d-body-link-color}*/;
521
+ font-weight: bold;
522
+ }
523
+
524
+ .ui-body-d .ui-link:hover {
525
+ color: #2489CE /*{d-body-link-hover}*/;
526
+ }
527
+
528
+ .ui-body-d .ui-link:active {
529
+ color: #2489CE /*{d-body-link-active}*/;
530
+ }
531
+
532
+ .ui-body-d .ui-link:visited {
533
+ color: #2489CE /*{d-body-link-visited}*/;
534
+ }
535
+
536
+ .ui-btn-up-d {
537
+ border: 1px solid #bbb /*{d-bup-border}*/;
538
+ background: #fff /*{d-bup-background-color}*/;
539
+ font-weight: bold;
540
+ color: #333 /*{d-bup-color}*/;
541
+ text-shadow: 0 /*{d-bup-shadow-x}*/ 1px /*{d-bup-shadow-y}*/ 0 /*{d-bup-shadow-radius}*/ #fff /*{d-bup-shadow-color}*/;
542
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #fafafa), to( #f6f6f6 /*{d-bup-background-end}*/)); /* Saf4+, Chrome */
543
+ background-image: -webkit-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
544
+ background-image: -moz-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* FF3.6 */
545
+ background-image: -ms-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* IE10 */
546
+ background-image: -o-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* Opera 11.10+ */
547
+ background-image: linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/);
548
+ }
549
+ .ui-btn-up-d a.ui-link-inherit {
550
+ color: #333 /*{d-bup-color}*/;
551
+ }
552
+ .ui-btn-hover-d {
553
+ border: 1px solid #aaa /*{d-bhover-border}*/;
554
+ background: #eeeeee /*{d-bhover-background-color}*/;
555
+ font-weight: bold;
556
+ color: #333 /*{d-bhover-color}*/;
557
+ cursor: pointer;
558
+ text-shadow: 0 /*{d-bhover-shadow-x}*/ 1px /*{d-bhover-shadow-y}*/ 0 /*{d-bhover-shadow-radius}*/ #fff /*{d-bhover-shadow-color}*/;
559
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #eee), to( #fff /*{d-bhover-background-end}*/)); /* Saf4+, Chrome */
560
+ background-image: -webkit-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
561
+ background-image: -moz-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* FF3.6 */
562
+ background-image: -ms-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* IE10 */
563
+ background-image: -o-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* Opera 11.10+ */
564
+ background-image: linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/);
565
+ }
566
+ .ui-btn-hover-d a.ui-link-inherit {
567
+ color: #333 /*{d-bhover-color}*/;
568
+ }
569
+ .ui-btn-down-d {
570
+ border: 1px solid #aaa /*{d-bdown-border}*/;
571
+ background: #eee /*{d-bdown-background-color}*/;
572
+ font-weight: bold;
573
+ color: #333 /*{d-bdown-color}*/;
574
+ text-shadow: 0 /*{d-bdown-shadow-x}*/ 1px /*{d-bdown-shadow-y}*/ 0 /*{d-bdown-shadow-radius}*/ #ffffff /*{d-bdown-shadow-color}*/;
575
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #e5e5e5 /*{d-bdown-background-start}*/), to( #f2f2f2 /*{d-bdown-background-end}*/)); /* Saf4+, Chrome */
576
+ background-image: -webkit-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
577
+ background-image: -moz-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* FF3.6 */
578
+ background-image: -ms-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* IE10 */
579
+ background-image: -o-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* Opera 11.10+ */
580
+ background-image: linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/);
581
+ }
582
+ .ui-btn-down-d a.ui-link-inherit {
583
+ color: #333 /*{d-bdown-color}*/;
584
+ }
585
+ .ui-btn-up-d,
586
+ .ui-btn-hover-d,
587
+ .ui-btn-down-d {
588
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
589
+ text-decoration: none;
590
+ }
591
+
592
+
593
+ /* E
594
+ -----------------------------------------------------------------------------------------------------------*/
595
+
596
+ .ui-bar-e {
597
+ border: 1px solid #F7C942 /*{e-bar-border}*/;
598
+ background: #fadb4e /*{e-bar-background-color}*/;
599
+ color: #333 /*{e-bar-color}*/;
600
+ text-shadow: 0 /*{e-bar-shadow-x}*/ 1px /*{e-bar-shadow-y}*/ 0 /*{e-bar-shadow-radius}*/ #fff /*{e-bar-shadow-color}*/;
601
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #fceda7 /*{e-bar-background-start}*/), to( #fbef7e /*{e-bar-background-end}*/)); /* Saf4+, Chrome */
602
+ background-image: -webkit-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
603
+ background-image: -moz-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* FF3.6 */
604
+ background-image: -ms-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* IE10 */
605
+ background-image: -o-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* Opera 11.10+ */
606
+ background-image: linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/);
607
+ }
608
+ .ui-bar-e,
609
+ .ui-bar-e input,
610
+ .ui-bar-e select,
611
+ .ui-bar-e textarea,
612
+ .ui-bar-e button {
613
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
614
+ }
615
+ .ui-bar-e .ui-link-inherit {
616
+ color: #333333 /*{e-bar-color}*/;
617
+ }
618
+ .ui-bar-e .ui-link {
619
+ color: #2489CE /*{e-bar-link-color}*/;
620
+ font-weight: bold;
621
+ }
622
+
623
+ .ui-bar-e .ui-link:hover {
624
+ color: #2489CE /*{e-bar-link-hover}*/;
625
+ }
626
+
627
+ .ui-bar-e .ui-link:active {
628
+ color: #2489CE /*{e-bar-link-active}*/;
629
+ }
630
+
631
+ .ui-bar-e .ui-link:visited {
632
+ color: #2489CE /*{e-bar-link-visited}*/;
633
+ }
634
+
635
+ .ui-body-e,
636
+ .ui-overlay-e {
637
+ border: 1px solid #F7C942 /*{e-body-border}*/;
638
+ color: #222222 /*{e-body-color}*/;
639
+ text-shadow: 0 /*{e-body-shadow-x}*/ 1px /*{e-body-shadow-y}*/ 0 /*{e-body-shadow-radius}*/ #fff /*{e-body-shadow-color}*/;
640
+ background: #fff9df /*{e-body-background-color}*/;
641
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #fffadf /*{e-body-background-start}*/), to( #fff3a5 /*{e-body-background-end}*/)); /* Saf4+, Chrome */
642
+ background-image: -webkit-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
643
+ background-image: -moz-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* FF3.6 */
644
+ background-image: -ms-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* IE10 */
645
+ background-image: -o-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* Opera 11.10+ */
646
+ background-image: linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/);
647
+ }
648
+ .ui-overlay-e {
649
+ background-image: none;
650
+ border-width: 0;
651
+ }
652
+ .ui-body-e,
653
+ .ui-body-e input,
654
+ .ui-body-e select,
655
+ .ui-body-e textarea,
656
+ .ui-body-e button {
657
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
658
+ }
659
+ .ui-body-e .ui-link-inherit {
660
+ color: #333333 /*{e-body-color}*/;
661
+ }
662
+
663
+ .ui-body-e .ui-link {
664
+ color: #2489CE /*{e-body-link-color}*/;
665
+ font-weight: bold;
666
+ }
667
+
668
+ .ui-body-e .ui-link:hover {
669
+ color: #2489CE /*{e-body-link-hover}*/;
670
+ }
671
+
672
+ .ui-body-e .ui-link:active {
673
+ color: #2489CE /*{e-body-link-active}*/;
674
+ }
675
+
676
+ .ui-body-e .ui-link:visited {
677
+ color: #2489CE /*{e-body-link-visited}*/;
678
+ }
679
+
680
+ .ui-btn-up-e {
681
+ border: 1px solid #F4C63f /*{e-bup-border}*/;
682
+ background: #fadb4e /*{e-bup-background-color}*/;
683
+ font-weight: bold;
684
+ color: #222 /*{e-bup-color}*/;
685
+ text-shadow: 0 /*{e-bup-shadow-x}*/ 1px /*{e-bup-shadow-y}*/ 0 /*{e-bup-shadow-radius}*/ #fff /*{e-bup-shadow-color}*/;
686
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #ffefaa /*{e-bup-background-start}*/), to( #ffe155 /*{e-bup-background-end}*/)); /* Saf4+, Chrome */
687
+ background-image: -webkit-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
688
+ background-image: -moz-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* FF3.6 */
689
+ background-image: -ms-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* IE10 */
690
+ background-image: -o-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* Opera 11.10+ */
691
+ background-image: linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/);
692
+ }
693
+ .ui-btn-up-e a.ui-link-inherit {
694
+ color: #222 /*{e-bup-color}*/;
695
+ }
696
+ .ui-btn-hover-e {
697
+ border: 1px solid #F2C43d /*{e-bhover-border}*/;
698
+ background: #fbe26f /*{e-bhover-background-color}*/;
699
+ font-weight: bold;
700
+ color: #111 /*{e-bhover-color}*/;
701
+ text-shadow: 0 /*{e-bhover-shadow-x}*/ 1px /*{e-bhover-shadow-y}*/ 0 /*{e-bhover-shadow-radius}*/ #fff /*{e-bhover-shadow-color}*/;
702
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #fff5ba /*{e-bhover-background-start}*/), to( #fbdd52 /*{e-bhover-background-end}*/)); /* Saf4+, Chrome */
703
+ background-image: -webkit-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
704
+ background-image: -moz-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* FF3.6 */
705
+ background-image: -ms-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* IE10 */
706
+ background-image: -o-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* Opera 11.10+ */
707
+ background-image: linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/);
708
+ }
709
+
710
+ .ui-btn-hover-e a.ui-link-inherit {
711
+ color: #333 /*{e-bhover-color}*/;
712
+ }
713
+ .ui-btn-down-e {
714
+ border: 1px solid #F2C43d /*{e-bdown-border}*/;
715
+ background: #fceda7 /*{e-bdown-background-color}*/;
716
+ font-weight: bold;
717
+ color: #111 /*{e-bdown-color}*/;
718
+ text-shadow: 0 /*{e-bdown-shadow-x}*/ 1px /*{e-bdown-shadow-y}*/ 0 /*{e-bdown-shadow-radius}*/ #ffffff /*{e-bdown-shadow-color}*/;
719
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #f8d94c /*{e-bdown-background-start}*/), to( #fadb4e /*{e-bdown-background-end}*/)); /* Saf4+, Chrome */
720
+ background-image: -webkit-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
721
+ background-image: -moz-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* FF3.6 */
722
+ background-image: -ms-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* IE10 */
723
+ background-image: -o-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* Opera 11.10+ */
724
+ background-image: linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/);
725
+ }
726
+ .ui-btn-down-e a.ui-link-inherit {
727
+ color: #333 /*{e-bdown-color}*/;
728
+ }
729
+ .ui-btn-up-e,
730
+ .ui-btn-hover-e,
731
+ .ui-btn-down-e {
732
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
733
+ text-decoration: none;
734
+ }
735
+
736
+ /* Structure */
737
+
738
+ /* links within "buttons"
739
+ -----------------------------------------------------------------------------------------------------------*/
740
+
741
+ a.ui-link-inherit {
742
+ text-decoration: none !important;
743
+ }
744
+
745
+
746
+ /* Active class used as the "on" state across all themes
747
+ -----------------------------------------------------------------------------------------------------------*/
748
+ .ui-btn-active {
749
+ border: 1px solid #2373a5 /*{global-active-border}*/;
750
+ background: #5393c5 /*{global-active-background-color}*/;
751
+ font-weight: bold;
752
+ color: #fff /*{global-active-color}*/;
753
+ cursor: pointer;
754
+ text-shadow: 0 /*{global-active-shadow-x}*/ 1px /*{global-active-shadow-y}*/ 1px /*{global-active-shadow-radius}*/ #3373a5 /*{global-active-shadow-color}*/;
755
+ text-decoration: none;
756
+ background-image: -webkit-gradient(linear, left top, left bottom, from( #5393c5 /*{global-active-background-start}*/), to( #6facd5 /*{global-active-background-end}*/)); /* Saf4+, Chrome */
757
+ background-image: -webkit-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* Chrome 10+, Saf5.1+ */
758
+ background-image: -moz-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* FF3.6 */
759
+ background-image: -ms-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* IE10 */
760
+ background-image: -o-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* Opera 11.10+ */
761
+ background-image: linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/);
762
+ font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
763
+ }
764
+ .ui-btn-active a.ui-link-inherit {
765
+ color: #fff /*{global-active-color}*/;
766
+ }
767
+
768
+
769
+ /* button inner top highlight
770
+ -----------------------------------------------------------------------------------------------------------*/
771
+
772
+ .ui-btn-inner {
773
+ border-top: 1px solid #fff;
774
+ border-color: rgba(255,255,255,.3);
775
+ }
776
+
777
+
778
+ /* corner rounding classes
779
+ -----------------------------------------------------------------------------------------------------------*/
780
+
781
+ .ui-corner-tl {
782
+ -moz-border-radius-topleft: .6em /*{global-radii-blocks}*/;
783
+ -webkit-border-top-left-radius: .6em /*{global-radii-blocks}*/;
784
+ border-top-left-radius: .6em /*{global-radii-blocks}*/;
785
+ }
786
+ .ui-corner-tr {
787
+ -moz-border-radius-topright: .6em /*{global-radii-blocks}*/;
788
+ -webkit-border-top-right-radius: .6em /*{global-radii-blocks}*/;
789
+ border-top-right-radius: .6em /*{global-radii-blocks}*/;
790
+ }
791
+ .ui-corner-bl {
792
+ -moz-border-radius-bottomleft: .6em /*{global-radii-blocks}*/;
793
+ -webkit-border-bottom-left-radius: .6em /*{global-radii-blocks}*/;
794
+ border-bottom-left-radius: .6em /*{global-radii-blocks}*/;
795
+ }
796
+ .ui-corner-br {
797
+ -moz-border-radius-bottomright: .6em /*{global-radii-blocks}*/;
798
+ -webkit-border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
799
+ border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
800
+ }
801
+ .ui-corner-top {
802
+ -moz-border-radius-topleft: .6em /*{global-radii-blocks}*/;
803
+ -webkit-border-top-left-radius: .6em /*{global-radii-blocks}*/;
804
+ border-top-left-radius: .6em /*{global-radii-blocks}*/;
805
+ -moz-border-radius-topright: .6em /*{global-radii-blocks}*/;
806
+ -webkit-border-top-right-radius: .6em /*{global-radii-blocks}*/;
807
+ border-top-right-radius: .6em /*{global-radii-blocks}*/;
808
+ }
809
+ .ui-corner-bottom {
810
+ -moz-border-radius-bottomleft: .6em /*{global-radii-blocks}*/;
811
+ -webkit-border-bottom-left-radius: .6em /*{global-radii-blocks}*/;
812
+ border-bottom-left-radius: .6em /*{global-radii-blocks}*/;
813
+ -moz-border-radius-bottomright: .6em /*{global-radii-blocks}*/;
814
+ -webkit-border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
815
+ border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
816
+ }
817
+ .ui-corner-right {
818
+ -moz-border-radius-topright: .6em /*{global-radii-blocks}*/;
819
+ -webkit-border-top-right-radius: .6em /*{global-radii-blocks}*/;
820
+ border-top-right-radius: .6em /*{global-radii-blocks}*/;
821
+ -moz-border-radius-bottomright: .6em /*{global-radii-blocks}*/;
822
+ -webkit-border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
823
+ border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
824
+ }
825
+ .ui-corner-left {
826
+ -moz-border-radius-topleft: .6em /*{global-radii-blocks}*/;
827
+ -webkit-border-top-left-radius: .6em /*{global-radii-blocks}*/;
828
+ border-top-left-radius: .6em /*{global-radii-blocks}*/;
829
+ -moz-border-radius-bottomleft: .6em /*{global-radii-blocks}*/;
830
+ -webkit-border-bottom-left-radius: .6em /*{global-radii-blocks}*/;
831
+ border-bottom-left-radius: .6em /*{global-radii-blocks}*/;
832
+ }
833
+ .ui-corner-all {
834
+ -moz-border-radius: .6em /*{global-radii-blocks}*/;
835
+ -webkit-border-radius: .6em /*{global-radii-blocks}*/;
836
+ border-radius: .6em /*{global-radii-blocks}*/;
837
+ }
838
+ .ui-corner-none {
839
+ -moz-border-radius: 0;
840
+ -webkit-border-radius: 0;
841
+ border-radius: 0;
842
+ }
843
+
844
+ /* Form field separator
845
+ -----------------------------------------------------------------------------------------------------------*/
846
+ .ui-br {
847
+ border-bottom: rgb(130,130,130);
848
+ border-bottom: rgba(130,130,130,.3);
849
+ border-bottom-width: 1px;
850
+ border-bottom-style: solid;
851
+ }
852
+
853
+ /* Interaction cues
854
+ -----------------------------------------------------------------------------------------------------------*/
855
+ .ui-disabled {
856
+ opacity: .3;
857
+ }
858
+ .ui-disabled,
859
+ .ui-disabled a {
860
+ cursor: default !important;
861
+ pointer-events: none;
862
+ }
863
+ .ui-disabled .ui-btn-text {
864
+ -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=30)";
865
+ filter: alpha(opacity=30);
866
+ zoom: 1;
867
+ }
868
+
869
+ /* Icons
870
+ -----------------------------------------------------------------------------------------------------------*/
871
+
872
+ .ui-icon,
873
+ .ui-icon-searchfield:after {
874
+ background: #666 /*{global-icon-color}*/;
875
+ background: rgba(0,0,0,.4) /*{global-icon-disc}*/;
876
+ background-image: url(images/icons-18-white.png) /*{global-icon-set}*/;
877
+ background-repeat: no-repeat;
878
+ -moz-border-radius: 9px;
879
+ -webkit-border-radius: 9px;
880
+ border-radius: 9px;
881
+ }
882
+
883
+
884
+ /* Alt icon color
885
+ -----------------------------------------------------------------------------------------------------------*/
886
+
887
+ .ui-icon-alt {
888
+ background: #fff;
889
+ background: rgba(255,255,255,.3);
890
+ background-image: url(images/icons-18-black.png);
891
+ background-repeat: no-repeat;
892
+ }
893
+
894
+ /* HD/"retina" sprite
895
+ -----------------------------------------------------------------------------------------------------------*/
896
+
897
+ @media only screen and (-webkit-min-device-pixel-ratio: 1.5),
898
+ only screen and (min--moz-device-pixel-ratio: 1.5),
899
+ only screen and (min-resolution: 240dpi) {
900
+
901
+ .ui-icon-plus, .ui-icon-minus, .ui-icon-delete, .ui-icon-arrow-r,
902
+ .ui-icon-arrow-l, .ui-icon-arrow-u, .ui-icon-arrow-d, .ui-icon-check,
903
+ .ui-icon-gear, .ui-icon-refresh, .ui-icon-forward, .ui-icon-back,
904
+ .ui-icon-grid, .ui-icon-star, .ui-icon-alert, .ui-icon-info, .ui-icon-home, .ui-icon-search, .ui-icon-searchfield:after,
905
+ .ui-icon-checkbox-off, .ui-icon-checkbox-on, .ui-icon-radio-off, .ui-icon-radio-on {
906
+ background-image: url(images/icons-36-white.png);
907
+ -moz-background-size: 776px 18px;
908
+ -o-background-size: 776px 18px;
909
+ -webkit-background-size: 776px 18px;
910
+ background-size: 776px 18px;
911
+ }
912
+ .ui-icon-alt {
913
+ background-image: url(images/icons-36-black.png);
914
+ }
915
+ }
916
+
917
+ /* plus minus */
918
+ .ui-icon-plus {
919
+ background-position: -0 50%;
920
+ }
921
+ .ui-icon-minus {
922
+ background-position: -36px 50%;
923
+ }
924
+
925
+ /* delete/close */
926
+ .ui-icon-delete {
927
+ background-position: -72px 50%;
928
+ }
929
+
930
+ /* arrows */
931
+ .ui-icon-arrow-r {
932
+ background-position: -108px 50%;
933
+ }
934
+ .ui-icon-arrow-l {
935
+ background-position: -144px 50%;
936
+ }
937
+ .ui-icon-arrow-u {
938
+ background-position: -180px 50%;
939
+ }
940
+ .ui-icon-arrow-d {
941
+ background-position: -216px 50%;
942
+ }
943
+
944
+ /* misc */
945
+ .ui-icon-check {
946
+ background-position: -252px 50%;
947
+ }
948
+ .ui-icon-gear {
949
+ background-position: -288px 50%;
950
+ }
951
+ .ui-icon-refresh {
952
+ background-position: -324px 50%;
953
+ }
954
+ .ui-icon-forward {
955
+ background-position: -360px 50%;
956
+ }
957
+ .ui-icon-back {
958
+ background-position: -396px 50%;
959
+ }
960
+ .ui-icon-grid {
961
+ background-position: -432px 50%;
962
+ }
963
+ .ui-icon-star {
964
+ background-position: -468px 50%;
965
+ }
966
+ .ui-icon-alert {
967
+ background-position: -504px 50%;
968
+ }
969
+ .ui-icon-info {
970
+ background-position: -540px 50%;
971
+ }
972
+ .ui-icon-home {
973
+ background-position: -576px 50%;
974
+ }
975
+ .ui-icon-search,
976
+ .ui-icon-searchfield:after {
977
+ background-position: -612px 50%;
978
+ }
979
+ .ui-icon-checkbox-off {
980
+ background-position: -684px 50%;
981
+ }
982
+ .ui-icon-checkbox-on {
983
+ background-position: -648px 50%;
984
+ }
985
+ .ui-icon-radio-off {
986
+ background-position: -756px 50%;
987
+ }
988
+ .ui-icon-radio-on {
989
+ background-position: -720px 50%;
990
+ }
991
+
992
+
993
+ /* checks,radios */
994
+ .ui-checkbox .ui-icon {
995
+ -moz-border-radius: 3px;
996
+ -webkit-border-radius: 3px;
997
+ border-radius: 3px;
998
+ }
999
+ .ui-icon-checkbox-off,
1000
+ .ui-icon-radio-off {
1001
+ background-color: transparent;
1002
+ }
1003
+ .ui-checkbox-on .ui-icon,
1004
+ .ui-radio-on .ui-icon {
1005
+ background-color: #4596ce /*{global-active-background-color}*/; /* NOTE: this hex should match the active state color. It's repeated here for cascade */
1006
+ }
1007
+
1008
+ /* loading icon */
1009
+ .ui-icon-loading {
1010
+ background: url(images/ajax-loader.gif);
1011
+ background-size: 46px 46px;
1012
+ }
1013
+
1014
+
1015
+ /* Button corner classes
1016
+ -----------------------------------------------------------------------------------------------------------*/
1017
+
1018
+ .ui-btn-corner-tl {
1019
+ -moz-border-radius-topleft: 1em /*{global-radii-buttons}*/;
1020
+ -webkit-border-top-left-radius: 1em /*{global-radii-buttons}*/;
1021
+ border-top-left-radius: 1em /*{global-radii-buttons}*/;
1022
+ }
1023
+ .ui-btn-corner-tr {
1024
+ -moz-border-radius-topright: 1em /*{global-radii-buttons}*/;
1025
+ -webkit-border-top-right-radius: 1em /*{global-radii-buttons}*/;
1026
+ border-top-right-radius: 1em /*{global-radii-buttons}*/;
1027
+ }
1028
+ .ui-btn-corner-bl {
1029
+ -moz-border-radius-bottomleft: 1em /*{global-radii-buttons}*/;
1030
+ -webkit-border-bottom-left-radius: 1em /*{global-radii-buttons}*/;
1031
+ border-bottom-left-radius: 1em /*{global-radii-buttons}*/;
1032
+ }
1033
+ .ui-btn-corner-br {
1034
+ -moz-border-radius-bottomright: 1em /*{global-radii-buttons}*/;
1035
+ -webkit-border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
1036
+ border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
1037
+ }
1038
+ .ui-btn-corner-top {
1039
+ -moz-border-radius-topleft: 1em /*{global-radii-buttons}*/;
1040
+ -webkit-border-top-left-radius: 1em /*{global-radii-buttons}*/;
1041
+ border-top-left-radius: 1em /*{global-radii-buttons}*/;
1042
+ -moz-border-radius-topright: 1em /*{global-radii-buttons}*/;
1043
+ -webkit-border-top-right-radius: 1em /*{global-radii-buttons}*/;
1044
+ border-top-right-radius: 1em /*{global-radii-buttons}*/;
1045
+ }
1046
+ .ui-btn-corner-bottom {
1047
+ -moz-border-radius-bottomleft: 1em /*{global-radii-buttons}*/;
1048
+ -webkit-border-bottom-left-radius: 1em /*{global-radii-buttons}*/;
1049
+ border-bottom-left-radius: 1em /*{global-radii-buttons}*/;
1050
+ -moz-border-radius-bottomright: 1em /*{global-radii-buttons}*/;
1051
+ -webkit-border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
1052
+ border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
1053
+ }
1054
+ .ui-btn-corner-right {
1055
+ -moz-border-radius-topright: 1em /*{global-radii-buttons}*/;
1056
+ -webkit-border-top-right-radius: 1em /*{global-radii-buttons}*/;
1057
+ border-top-right-radius: 1em /*{global-radii-buttons}*/;
1058
+ -moz-border-radius-bottomright: 1em /*{global-radii-buttons}*/;
1059
+ -webkit-border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
1060
+ border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
1061
+ }
1062
+ .ui-btn-corner-left {
1063
+ -moz-border-radius-topleft: 1em /*{global-radii-buttons}*/;
1064
+ -webkit-border-top-left-radius: 1em /*{global-radii-buttons}*/;
1065
+ border-top-left-radius: 1em /*{global-radii-buttons}*/;
1066
+ -moz-border-radius-bottomleft: 1em /*{global-radii-buttons}*/;
1067
+ -webkit-border-bottom-left-radius: 1em /*{global-radii-buttons}*/;
1068
+ border-bottom-left-radius: 1em /*{global-radii-buttons}*/;
1069
+ }
1070
+ .ui-btn-corner-all {
1071
+ -moz-border-radius: 1em /*{global-radii-buttons}*/;
1072
+ -webkit-border-radius: 1em /*{global-radii-buttons}*/;
1073
+ border-radius: 1em /*{global-radii-buttons}*/;
1074
+ }
1075
+
1076
+ /* radius clip workaround for cleaning up corner trapping */
1077
+ .ui-corner-tl,
1078
+ .ui-corner-tr,
1079
+ .ui-corner-bl,
1080
+ .ui-corner-br,
1081
+ .ui-corner-top,
1082
+ .ui-corner-bottom,
1083
+ .ui-corner-right,
1084
+ .ui-corner-left,
1085
+ .ui-corner-all,
1086
+ .ui-btn-corner-tl,
1087
+ .ui-btn-corner-tr,
1088
+ .ui-btn-corner-bl,
1089
+ .ui-btn-corner-br,
1090
+ .ui-btn-corner-top,
1091
+ .ui-btn-corner-bottom,
1092
+ .ui-btn-corner-right,
1093
+ .ui-btn-corner-left,
1094
+ .ui-btn-corner-all {
1095
+ -webkit-background-clip: padding-box;
1096
+ -moz-background-clip: padding;
1097
+ background-clip: padding-box;
1098
+ }
1099
+
1100
+ /* Overlay / modal
1101
+ -----------------------------------------------------------------------------------------------------------*/
1102
+
1103
+ .ui-overlay {
1104
+ background: #666;
1105
+ opacity: .5;
1106
+ filter: Alpha(Opacity=50);
1107
+ position: absolute;
1108
+ width: 100%;
1109
+ height: 100%;
1110
+ }
1111
+ .ui-overlay-shadow {
1112
+ -moz-box-shadow: 0px 0px 12px rgba(0,0,0,.6);
1113
+ -webkit-box-shadow: 0px 0px 12px rgba(0,0,0,.6);
1114
+ box-shadow: 0px 0px 12px rgba(0,0,0,.6);
1115
+ }
1116
+ .ui-shadow {
1117
+ -moz-box-shadow: 0px 1px 4px /*{global-box-shadow-size}*/ rgba(0,0,0,.3) /*{global-box-shadow-color}*/;
1118
+ -webkit-box-shadow: 0px 1px 4px /*{global-box-shadow-size}*/ rgba(0,0,0,.3) /*{global-box-shadow-color}*/;
1119
+ box-shadow: 0px 1px 4px /*{global-box-shadow-size}*/ rgba(0,0,0,.3) /*{global-box-shadow-color}*/;
1120
+ }
1121
+ .ui-bar-a .ui-shadow,
1122
+ .ui-bar-b .ui-shadow ,
1123
+ .ui-bar-c .ui-shadow {
1124
+ -moz-box-shadow: 0px 1px 0 rgba(255,255,255,.3);
1125
+ -webkit-box-shadow: 0px 1px 0 rgba(255,255,255,.3);
1126
+ box-shadow: 0px 1px 0 rgba(255,255,255,.3);
1127
+ }
1128
+ .ui-shadow-inset {
1129
+ -moz-box-shadow: inset 0px 1px 4px rgba(0,0,0,.2);
1130
+ -webkit-box-shadow: inset 0px 1px 4px rgba(0,0,0,.2);
1131
+ box-shadow: inset 0px 1px 4px rgba(0,0,0,.2);
1132
+ }
1133
+ .ui-icon-shadow {
1134
+ -moz-box-shadow: 0px 1px 0 rgba(255,255,255,.4) /*{global-icon-shadow}*/;
1135
+ -webkit-box-shadow: 0px 1px 0 rgba(255,255,255,.4) /*{global-icon-shadow}*/;
1136
+ box-shadow: 0px 1px 0 rgba(255,255,255,.4) /*{global-icon-shadow}*/;
1137
+ }
1138
+
1139
+ /* Focus state - set here for specificity (note: these classes are added by JavaScript)
1140
+ -----------------------------------------------------------------------------------------------------------*/
1141
+
1142
+ .ui-btn:focus {
1143
+ outline: 0;
1144
+ }
1145
+
1146
+ .ui-focus,
1147
+ .ui-btn:focus {
1148
+ -moz-box-shadow: 0px 0px 12px #387bbe /*{global-active-background-color}*/;
1149
+ -webkit-box-shadow: 0px 0px 12px #387bbe /*{global-active-background-color}*/;
1150
+ box-shadow: 0px 0px 12px #387bbe /*{global-active-background-color}*/;
1151
+ }
1152
+
1153
+ /* unset box shadow in browsers that don't do it right
1154
+ -----------------------------------------------------------------------------------------------------------*/
1155
+
1156
+ .ui-mobile-nosupport-boxshadow * {
1157
+ -moz-box-shadow: none !important;
1158
+ -webkit-box-shadow: none !important;
1159
+ box-shadow: none !important;
1160
+ }
1161
+
1162
+ /* ...and bring back focus */
1163
+ .ui-mobile-nosupport-boxshadow .ui-focus,
1164
+ .ui-mobile-nosupport-boxshadow .ui-btn:focus {
1165
+ outline-width: 1px;
1166
+ outline-style: dotted;
1167
+ }
skin/adminhtml/default/snm-mobile/jquery.mobile.theme-1.1.0.min.css ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /*! jQuery Mobile v1.1.0 db342b1f315c282692791aa870455901fdb46a55 jquerymobile.com | jquery.org/license */
2
+ .ui-bar-a{border:1px solid #333;background:#111;color:#fff;font-weight:bold;text-shadow:0 -1px 1px #000;background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#111));background-image:-webkit-linear-gradient(#3c3c3c,#111);background-image:-moz-linear-gradient(#3c3c3c,#111);background-image:-ms-linear-gradient(#3c3c3c,#111);background-image:-o-linear-gradient(#3c3c3c,#111);background-image:linear-gradient(#3c3c3c,#111)}.ui-bar-a,.ui-bar-a input,.ui-bar-a select,.ui-bar-a textarea,.ui-bar-a button{font-family:Helvetica,Arial,sans-serif}.ui-bar-a .ui-link-inherit{color:#fff}.ui-bar-a .ui-link{color:#7cc4e7;font-weight:bold}.ui-bar-a .ui-link:hover{color:#2489ce}.ui-bar-a .ui-link:active{color:#2489ce}.ui-bar-a .ui-link:visited{color:#2489ce}.ui-body-a,.ui-overlay-a{border:1px solid #444;background:#222;color:#fff;text-shadow:0 1px 1px #111;font-weight:normal;background-image:-webkit-gradient(linear,left top,left bottom,from(#444),to(#222));background-image:-webkit-linear-gradient(#444,#222);background-image:-moz-linear-gradient(#444,#222);background-image:-ms-linear-gradient(#444,#222);background-image:-o-linear-gradient(#444,#222);background-image:linear-gradient(#444,#222)}.ui-overlay-a{background-image:none;border-width:0}.ui-body-a,.ui-body-a input,.ui-body-a select,.ui-body-a textarea,.ui-body-a button{font-family:Helvetica,Arial,sans-serif}.ui-body-a .ui-link-inherit{color:#fff}.ui-body-a .ui-link{color:#2489ce;font-weight:bold}.ui-body-a .ui-link:hover{color:#2489ce}.ui-body-a .ui-link:active{color:#2489ce}.ui-body-a .ui-link:visited{color:#2489ce}.ui-btn-up-a{border:1px solid #111;background:#333;font-weight:bold;color:#fff;text-shadow:0 1px 1px #111;background-image:-webkit-gradient(linear,left top,left bottom,from(#444),to(#2d2d2d));background-image:-webkit-linear-gradient(#444,#2d2d2d);background-image:-moz-linear-gradient(#444,#2d2d2d);background-image:-ms-linear-gradient(#444,#2d2d2d);background-image:-o-linear-gradient(#444,#2d2d2d);background-image:linear-gradient(#444,#2d2d2d)}.ui-btn-up-a a.ui-link-inherit{color:#fff}.ui-btn-hover-a{border:1px solid #000;background:#444;font-weight:bold;color:#fff;text-shadow:0 1px 1px #111;background-image:-webkit-gradient(linear,left top,left bottom,from(#555),to(#383838));background-image:-webkit-linear-gradient(#555,#383838);background-image:-moz-linear-gradient(#555,#383838);background-image:-ms-linear-gradient(#555,#383838);background-image:-o-linear-gradient(#555,#383838);background-image:linear-gradient(#555,#383838)}.ui-btn-hover-a a.ui-link-inherit{color:#fff}.ui-btn-down-a{border:1px solid #000;background:#222;font-weight:bold;color:#fff;text-shadow:0 1px 1px #111;background-image:-webkit-gradient(linear,left top,left bottom,from(#202020),to(#2c2c2c));background-image:-webkit-linear-gradient(#202020,#2c2c2c);background-image:-moz-linear-gradient(#202020,#2c2c2c);background-image:-ms-linear-gradient(#202020,#2c2c2c);background-image:-o-linear-gradient(#202020,#2c2c2c);background-image:linear-gradient(#202020,#2c2c2c)}.ui-btn-down-a a.ui-link-inherit{color:#fff}.ui-btn-up-a,.ui-btn-hover-a,.ui-btn-down-a{font-family:Helvetica,Arial,sans-serif;text-decoration:none}.ui-bar-b{border:1px solid #456f9a;background:#5e87b0;color:#fff;font-weight:bold;text-shadow:0 1px 1px #3e6790;background-image:-webkit-gradient(linear,left top,left bottom,from(#6facd5),to(#497bae));background-image:-webkit-linear-gradient(#6facd5,#497bae);background-image:-moz-linear-gradient(#6facd5,#497bae);background-image:-ms-linear-gradient(#6facd5,#497bae);background-image:-o-linear-gradient(#6facd5,#497bae);background-image:linear-gradient(#6facd5,#497bae)}.ui-bar-b,.ui-bar-b input,.ui-bar-b select,.ui-bar-b textarea,.ui-bar-b button{font-family:Helvetica,Arial,sans-serif}.ui-bar-b .ui-link-inherit{color:#fff}.ui-bar-b .ui-link{color:#ddf0f8;font-weight:bold}.ui-bar-b .ui-link:hover{color:#ddf0f8}.ui-bar-b .ui-link:active{color:#ddf0f8}.ui-bar-b .ui-link:visited{color:#ddf0f8}.ui-body-b,.ui-overlay-b{border:1px solid #999;background:#f3f3f3;color:#222;text-shadow:0 1px 0 #fff;font-weight:normal;background-image:-webkit-gradient(linear,left top,left bottom,from(#ddd),to(#ccc));background-image:-webkit-linear-gradient(#ddd,#ccc);background-image:-moz-linear-gradient(#ddd,#ccc);background-image:-ms-linear-gradient(#ddd,#ccc);background-image:-o-linear-gradient(#ddd,#ccc);background-image:linear-gradient(#ddd,#ccc)}.ui-overlay-b{background-image:none;border-width:0}.ui-body-b,.ui-body-b input,.ui-body-b select,.ui-body-b textarea,.ui-body-b button{font-family:Helvetica,Arial,sans-serif}.ui-body-b .ui-link-inherit{color:#333}.ui-body-b .ui-link{color:#2489ce;font-weight:bold}.ui-body-b .ui-link:hover{color:#2489ce}.ui-body-b .ui-link:active{color:#2489ce}.ui-body-b .ui-link:visited{color:#2489ce}.ui-btn-up-b{border:1px solid #044062;background:#396b9e;font-weight:bold;color:#fff;text-shadow:0 1px 1px #194b7e;background-image:-webkit-gradient(linear,left top,left bottom,from(#5f9cc5),to(#396b9e));background-image:-webkit-linear-gradient(#5f9cc5,#396b9e);background-image:-moz-linear-gradient(#5f9cc5,#396b9e);background-image:-ms-linear-gradient(#5f9cc5,#396b9e);background-image:-o-linear-gradient(#5f9cc5,#396b9e);background-image:linear-gradient(#5f9cc5,#396b9e)}.ui-btn-up-b a.ui-link-inherit{color:#fff}.ui-btn-hover-b{border:1px solid #00415e;background:#4b88b6;font-weight:bold;color:#fff;text-shadow:0 1px 1px #194b7e;background-image:-webkit-gradient(linear,left top,left bottom,from(#6facd5),to(#4272a4));background-image:-webkit-linear-gradient(#6facd5,#4272a4);background-image:-moz-linear-gradient(#6facd5,#4272a4);background-image:-ms-linear-gradient(#6facd5,#4272a4);background-image:-o-linear-gradient(#6facd5,#4272a4);background-image:linear-gradient(#6facd5,#4272a4)}.ui-btn-hover-b a.ui-link-inherit{color:#fff}.ui-btn-down-b{border:1px solid #225377;background:#4e89c5;font-weight:bold;color:#fff;text-shadow:0 1px 1px #194b7e;background-image:-webkit-gradient(linear,left top,left bottom,from(#295b8e),to(#3e79b5));background-image:-webkit-linear-gradient(#295b8e,#3e79b5);background-image:-moz-linear-gradient(#295b8e,#3e79b5);background-image:-ms-linear-gradient(#295b8e,#3e79b5);background-image:-o-linear-gradient(#295b8e,#3e79b5);background-image:linear-gradient(#295b8e,#3e79b5)}.ui-btn-down-b a.ui-link-inherit{color:#fff}.ui-btn-up-b,.ui-btn-hover-b,.ui-btn-down-b{font-family:Helvetica,Arial,sans-serif;text-decoration:none}.ui-bar-c{border:1px solid #b3b3b3;background:#eee;color:#3e3e3e;font-weight:bold;text-shadow:0 1px 1px #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#f0f0f0),to(#ddd));background-image:-webkit-linear-gradient(#f0f0f0,#ddd);background-image:-moz-linear-gradient(#f0f0f0,#ddd);background-image:-ms-linear-gradient(#f0f0f0,#ddd);background-image:-o-linear-gradient(#f0f0f0,#ddd);background-image:linear-gradient(#f0f0f0,#ddd)}.ui-bar-c .ui-link-inherit{color:#3e3e3e}.ui-bar-c .ui-link{color:#7cc4e7;font-weight:bold}.ui-bar-c .ui-link:hover{color:#2489ce}.ui-bar-c .ui-link:active{color:#2489ce}.ui-bar-c .ui-link:visited{color:#2489ce}.ui-bar-c,.ui-bar-c input,.ui-bar-c select,.ui-bar-c textarea,.ui-bar-c button{font-family:Helvetica,Arial,sans-serif}.ui-body-c,.ui-overlay-c{border:1px solid #aaa;color:#333;text-shadow:0 1px 0 #fff;background:#f9f9f9;background-image:-webkit-gradient(linear,left top,left bottom,from(#f9f9f9),to(#eee));background-image:-webkit-linear-gradient(#f9f9f9,#eee);background-image:-moz-linear-gradient(#f9f9f9,#eee);background-image:-ms-linear-gradient(#f9f9f9,#eee);background-image:-o-linear-gradient(#f9f9f9,#eee);background-image:linear-gradient(#f9f9f9,#eee)}.ui-overlay-c{background-image:none;border-width:0}.ui-body-c,.ui-body-c input,.ui-body-c select,.ui-body-c textarea,.ui-body-c button{font-family:Helvetica,Arial,sans-serif}.ui-body-c .ui-link-inherit{color:#333}.ui-body-c .ui-link{color:#2489ce;font-weight:bold}.ui-body-c .ui-link:hover{color:#2489ce}.ui-body-c .ui-link:active{color:#2489ce}.ui-body-c .ui-link:visited{color:#2489ce}.ui-btn-up-c{border:1px solid #ccc;background:#eee;font-weight:bold;color:#222;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f1f1f1));background-image:-webkit-linear-gradient(#fff,#f1f1f1);background-image:-moz-linear-gradient(#fff,#f1f1f1);background-image:-ms-linear-gradient(#fff,#f1f1f1);background-image:-o-linear-gradient(#fff,#f1f1f1);background-image:linear-gradient(#fff,#f1f1f1)}.ui-btn-up-c a.ui-link-inherit{color:#2f3e46}.ui-btn-hover-c{border:1px solid #bbb;background:#dfdfdf;font-weight:bold;color:#222;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#f6f6f6),to(#e0e0e0));background-image:-webkit-linear-gradient(#f9f9f9,#e0e0e0);background-image:-moz-linear-gradient(#f6f6f6,#e0e0e0);background-image:-ms-linear-gradient(#f6f6f6,#e0e0e0);background-image:-o-linear-gradient(#f6f6f6,#e0e0e0);background-image:linear-gradient(#f6f6f6,#e0e0e0)}.ui-btn-hover-c a.ui-link-inherit{color:#2f3e46}.ui-btn-down-c{border:1px solid #bbb;background:#d6d6d6;font-weight:bold;color:#222;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#d0d0d0),to(#dfdfdf));background-image:-webkit-linear-gradient(#d0d0d0,#dfdfdf);background-image:-moz-linear-gradient(#d0d0d0,#dfdfdf);background-image:-ms-linear-gradient(#d0d0d0,#dfdfdf);background-image:-o-linear-gradient(#d0d0d0,#dfdfdf);background-image:linear-gradient(#d0d0d0,#dfdfdf)}.ui-btn-down-c a.ui-link-inherit{color:#2f3e46}.ui-btn-up-c,.ui-btn-hover-c,.ui-btn-down-c{font-family:Helvetica,Arial,sans-serif;text-decoration:none}.ui-bar-d{border:1px solid #bbb;background:#bbb;color:#333;text-shadow:0 1px 0 #eee;background-image:-webkit-gradient(linear,left top,left bottom,from(#ddd),to(#bbb));background-image:-webkit-linear-gradient(#ddd,#bbb);background-image:-moz-linear-gradient(#ddd,#bbb);background-image:-ms-linear-gradient(#ddd,#bbb);background-image:-o-linear-gradient(#ddd,#bbb);background-image:linear-gradient(#ddd,#bbb)}.ui-bar-d,.ui-bar-d input,.ui-bar-d select,.ui-bar-d textarea,.ui-bar-d button{font-family:Helvetica,Arial,sans-serif}.ui-bar-d .ui-link-inherit{color:#333}.ui-bar-d .ui-link{color:#2489ce;font-weight:bold}.ui-bar-d .ui-link:hover{color:#2489ce}.ui-bar-d .ui-link:active{color:#2489ce}.ui-bar-d .ui-link:visited{color:#2489ce}.ui-body-d,.ui-overlay-d{border:1px solid #bbb;color:#333;text-shadow:0 1px 0 #fff;background:#fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#fff));background-image:-webkit-linear-gradient(#fff,#fff);background-image:-moz-linear-gradient(#fff,#fff);background-image:-ms-linear-gradient(#fff,#fff);background-image:-o-linear-gradient(#fff,#fff);background-image:linear-gradient(#fff,#fff)}.ui-overlay-d{background-image:none;border-width:0}.ui-body-d,.ui-body-d input,.ui-body-d select,.ui-body-d textarea,.ui-body-d button{font-family:Helvetica,Arial,sans-serif}.ui-body-d .ui-link-inherit{color:#333}.ui-body-d .ui-link{color:#2489ce;font-weight:bold}.ui-body-d .ui-link:hover{color:#2489ce}.ui-body-d .ui-link:active{color:#2489ce}.ui-body-d .ui-link:visited{color:#2489ce}.ui-btn-up-d{border:1px solid #bbb;background:#fff;font-weight:bold;color:#333;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#fafafa),to(#f6f6f6));background-image:-webkit-linear-gradient(#fafafa,#f6f6f6);background-image:-moz-linear-gradient(#fafafa,#f6f6f6);background-image:-ms-linear-gradient(#fafafa,#f6f6f6);background-image:-o-linear-gradient(#fafafa,#f6f6f6);background-image:linear-gradient(#fafafa,#f6f6f6)}.ui-btn-up-d a.ui-link-inherit{color:#333}.ui-btn-hover-d{border:1px solid #aaa;background:#eee;font-weight:bold;color:#333;cursor:pointer;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#eee),to(#fff));background-image:-webkit-linear-gradient(#eee,#fff);background-image:-moz-linear-gradient(#eee,#fff);background-image:-ms-linear-gradient(#eee,#fff);background-image:-o-linear-gradient(#eee,#fff);background-image:linear-gradient(#eee,#fff)}.ui-btn-hover-d a.ui-link-inherit{color:#333}.ui-btn-down-d{border:1px solid #aaa;background:#eee;font-weight:bold;color:#333;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#e5e5e5),to(#f2f2f2));background-image:-webkit-linear-gradient(#e5e5e5,#f2f2f2);background-image:-moz-linear-gradient(#e5e5e5,#f2f2f2);background-image:-ms-linear-gradient(#e5e5e5,#f2f2f2);background-image:-o-linear-gradient(#e5e5e5,#f2f2f2);background-image:linear-gradient(#e5e5e5,#f2f2f2)}.ui-btn-down-d a.ui-link-inherit{color:#333}.ui-btn-up-d,.ui-btn-hover-d,.ui-btn-down-d{font-family:Helvetica,Arial,sans-serif;text-decoration:none}.ui-bar-e{border:1px solid #f7c942;background:#fadb4e;color:#333;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#fceda7),to(#fbef7e));background-image:-webkit-linear-gradient(#fceda7,#fbef7e);background-image:-moz-linear-gradient(#fceda7,#fbef7e);background-image:-ms-linear-gradient(#fceda7,#fbef7e);background-image:-o-linear-gradient(#fceda7,#fbef7e);background-image:linear-gradient(#fceda7,#fbef7e)}.ui-bar-e,.ui-bar-e input,.ui-bar-e select,.ui-bar-e textarea,.ui-bar-e button{font-family:Helvetica,Arial,sans-serif}.ui-bar-e .ui-link-inherit{color:#333}.ui-bar-e .ui-link{color:#2489ce;font-weight:bold}.ui-bar-e .ui-link:hover{color:#2489ce}.ui-bar-e .ui-link:active{color:#2489ce}.ui-bar-e .ui-link:visited{color:#2489ce}.ui-body-e,.ui-overlay-e{border:1px solid #f7c942;color:#222;text-shadow:0 1px 0 #fff;background:#fff9df;background-image:-webkit-gradient(linear,left top,left bottom,from(#fffadf),to(#fff3a5));background-image:-webkit-linear-gradient(#fffadf,#fff3a5);background-image:-moz-linear-gradient(#fffadf,#fff3a5);background-image:-ms-linear-gradient(#fffadf,#fff3a5);background-image:-o-linear-gradient(#fffadf,#fff3a5);background-image:linear-gradient(#fffadf,#fff3a5)}.ui-overlay-e{background-image:none;border-width:0}.ui-body-e,.ui-body-e input,.ui-body-e select,.ui-body-e textarea,.ui-body-e button{font-family:Helvetica,Arial,sans-serif}.ui-body-e .ui-link-inherit{color:#333}.ui-body-e .ui-link{color:#2489ce;font-weight:bold}.ui-body-e .ui-link:hover{color:#2489ce}.ui-body-e .ui-link:active{color:#2489ce}.ui-body-e .ui-link:visited{color:#2489ce}.ui-btn-up-e{border:1px solid #f4c63f;background:#fadb4e;font-weight:bold;color:#222;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#ffefaa),to(#ffe155));background-image:-webkit-linear-gradient(#ffefaa,#ffe155);background-image:-moz-linear-gradient(#ffefaa,#ffe155);background-image:-ms-linear-gradient(#ffefaa,#ffe155);background-image:-o-linear-gradient(#ffefaa,#ffe155);background-image:linear-gradient(#ffefaa,#ffe155)}.ui-btn-up-e a.ui-link-inherit{color:#222}.ui-btn-hover-e{border:1px solid #f2c43d;background:#fbe26f;font-weight:bold;color:#111;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#fff5ba),to(#fbdd52));background-image:-webkit-linear-gradient(#fff5ba,#fbdd52);background-image:-moz-linear-gradient(#fff5ba,#fbdd52);background-image:-ms-linear-gradient(#fff5ba,#fbdd52);background-image:-o-linear-gradient(#fff5ba,#fbdd52);background-image:linear-gradient(#fff5ba,#fbdd52)}.ui-btn-hover-e a.ui-link-inherit{color:#333}.ui-btn-down-e{border:1px solid #f2c43d;background:#fceda7;font-weight:bold;color:#111;text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#f8d94c),to(#fadb4e));background-image:-webkit-linear-gradient(#f8d94c,#fadb4e);background-image:-moz-linear-gradient(#f8d94c,#fadb4e);background-image:-ms-linear-gradient(#f8d94c,#fadb4e);background-image:-o-linear-gradient(#f8d94c,#fadb4e);background-image:linear-gradient(#f8d94c,#fadb4e)}.ui-btn-down-e a.ui-link-inherit{color:#333}.ui-btn-up-e,.ui-btn-hover-e,.ui-btn-down-e{font-family:Helvetica,Arial,sans-serif;text-decoration:none}a.ui-link-inherit{text-decoration:none!important}.ui-btn-active{border:1px solid #2373a5;background:#5393c5;font-weight:bold;color:#fff;cursor:pointer;text-shadow:0 1px 1px #3373a5;text-decoration:none;background-image:-webkit-gradient(linear,left top,left bottom,from(#5393c5),to(#6facd5));background-image:-webkit-linear-gradient(#5393c5,#6facd5);background-image:-moz-linear-gradient(#5393c5,#6facd5);background-image:-ms-linear-gradient(#5393c5,#6facd5);background-image:-o-linear-gradient(#5393c5,#6facd5);background-image:linear-gradient(#5393c5,#6facd5);font-family:Helvetica,Arial,sans-serif}.ui-btn-active a.ui-link-inherit{color:#fff}.ui-btn-inner{border-top:1px solid #fff;border-color:rgba(255,255,255,.3)}.ui-corner-tl{-moz-border-radius-topleft:.6em;-webkit-border-top-left-radius:.6em;border-top-left-radius:.6em}.ui-corner-tr{-moz-border-radius-topright:.6em;-webkit-border-top-right-radius:.6em;border-top-right-radius:.6em}.ui-corner-bl{-moz-border-radius-bottomleft:.6em;-webkit-border-bottom-left-radius:.6em;border-bottom-left-radius:.6em}.ui-corner-br{-moz-border-radius-bottomright:.6em;-webkit-border-bottom-right-radius:.6em;border-bottom-right-radius:.6em}.ui-corner-top{-moz-border-radius-topleft:.6em;-webkit-border-top-left-radius:.6em;border-top-left-radius:.6em;-moz-border-radius-topright:.6em;-webkit-border-top-right-radius:.6em;border-top-right-radius:.6em}.ui-corner-bottom{-moz-border-radius-bottomleft:.6em;-webkit-border-bottom-left-radius:.6em;border-bottom-left-radius:.6em;-moz-border-radius-bottomright:.6em;-webkit-border-bottom-right-radius:.6em;border-bottom-right-radius:.6em}.ui-corner-right{-moz-border-radius-topright:.6em;-webkit-border-top-right-radius:.6em;border-top-right-radius:.6em;-moz-border-radius-bottomright:.6em;-webkit-border-bottom-right-radius:.6em;border-bottom-right-radius:.6em}.ui-corner-left{-moz-border-radius-topleft:.6em;-webkit-border-top-left-radius:.6em;border-top-left-radius:.6em;-moz-border-radius-bottomleft:.6em;-webkit-border-bottom-left-radius:.6em;border-bottom-left-radius:.6em}.ui-corner-all{-moz-border-radius:.6em;-webkit-border-radius:.6em;border-radius:.6em}.ui-corner-none{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.ui-br{border-bottom:#828282;border-bottom:rgba(130,130,130,.3);border-bottom-width:1px;border-bottom-style:solid}.ui-disabled{opacity:.3}.ui-disabled,.ui-disabled a{cursor:default!important;pointer-events:none}.ui-disabled .ui-btn-text{-ms-filter:"alpha(opacity=30)";filter:alpha(opacity=30);zoom:1}.ui-icon,.ui-icon-searchfield:after{background:#666;background:rgba(0,0,0,.4);background-image:url(images/icons-18-white.png);background-repeat:no-repeat;-moz-border-radius:9px;-webkit-border-radius:9px;border-radius:9px}.ui-icon-alt{background:#fff;background:rgba(255,255,255,.3);background-image:url(images/icons-18-black.png);background-repeat:no-repeat}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (min-resolution:240dpi){.ui-icon-plus,.ui-icon-minus,.ui-icon-delete,.ui-icon-arrow-r,.ui-icon-arrow-l,.ui-icon-arrow-u,.ui-icon-arrow-d,.ui-icon-check,.ui-icon-gear,.ui-icon-refresh,.ui-icon-forward,.ui-icon-back,.ui-icon-grid,.ui-icon-star,.ui-icon-alert,.ui-icon-info,.ui-icon-home,.ui-icon-search,.ui-icon-searchfield:after,.ui-icon-checkbox-off,.ui-icon-checkbox-on,.ui-icon-radio-off,.ui-icon-radio-on{background-image:url(images/icons-36-white.png);-moz-background-size:776px 18px;-o-background-size:776px 18px;-webkit-background-size:776px 18px;background-size:776px 18px}.ui-icon-alt{background-image:url(images/icons-36-black.png)}}.ui-icon-plus{background-position:-0 50%}.ui-icon-minus{background-position:-36px 50%}.ui-icon-delete{background-position:-72px 50%}.ui-icon-arrow-r{background-position:-108px 50%}.ui-icon-arrow-l{background-position:-144px 50%}.ui-icon-arrow-u{background-position:-180px 50%}.ui-icon-arrow-d{background-position:-216px 50%}.ui-icon-check{background-position:-252px 50%}.ui-icon-gear{background-position:-288px 50%}.ui-icon-refresh{background-position:-324px 50%}.ui-icon-forward{background-position:-360px 50%}.ui-icon-back{background-position:-396px 50%}.ui-icon-grid{background-position:-432px 50%}.ui-icon-star{background-position:-468px 50%}.ui-icon-alert{background-position:-504px 50%}.ui-icon-info{background-position:-540px 50%}.ui-icon-home{background-position:-576px 50%}.ui-icon-search,.ui-icon-searchfield:after{background-position:-612px 50%}.ui-icon-checkbox-off{background-position:-684px 50%}.ui-icon-checkbox-on{background-position:-648px 50%}.ui-icon-radio-off{background-position:-756px 50%}.ui-icon-radio-on{background-position:-720px 50%}.ui-checkbox .ui-icon{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.ui-icon-checkbox-off,.ui-icon-radio-off{background-color:transparent}.ui-checkbox-on .ui-icon,.ui-radio-on .ui-icon{background-color:#4596ce}.ui-icon-loading{background:url(images/ajax-loader.gif);background-size:46px 46px}.ui-btn-corner-tl{-moz-border-radius-topleft:1em;-webkit-border-top-left-radius:1em;border-top-left-radius:1em}.ui-btn-corner-tr{-moz-border-radius-topright:1em;-webkit-border-top-right-radius:1em;border-top-right-radius:1em}.ui-btn-corner-bl{-moz-border-radius-bottomleft:1em;-webkit-border-bottom-left-radius:1em;border-bottom-left-radius:1em}.ui-btn-corner-br{-moz-border-radius-bottomright:1em;-webkit-border-bottom-right-radius:1em;border-bottom-right-radius:1em}.ui-btn-corner-top{-moz-border-radius-topleft:1em;-webkit-border-top-left-radius:1em;border-top-left-radius:1em;-moz-border-radius-topright:1em;-webkit-border-top-right-radius:1em;border-top-right-radius:1em}.ui-btn-corner-bottom{-moz-border-radius-bottomleft:1em;-webkit-border-bottom-left-radius:1em;border-bottom-left-radius:1em;-moz-border-radius-bottomright:1em;-webkit-border-bottom-right-radius:1em;border-bottom-right-radius:1em}.ui-btn-corner-right{-moz-border-radius-topright:1em;-webkit-border-top-right-radius:1em;border-top-right-radius:1em;-moz-border-radius-bottomright:1em;-webkit-border-bottom-right-radius:1em;border-bottom-right-radius:1em}.ui-btn-corner-left{-moz-border-radius-topleft:1em;-webkit-border-top-left-radius:1em;border-top-left-radius:1em;-moz-border-radius-bottomleft:1em;-webkit-border-bottom-left-radius:1em;border-bottom-left-radius:1em}.ui-btn-corner-all{-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em}.ui-corner-tl,.ui-corner-tr,.ui-corner-bl,.ui-corner-br,.ui-corner-top,.ui-corner-bottom,.ui-corner-right,.ui-corner-left,.ui-corner-all,.ui-btn-corner-tl,.ui-btn-corner-tr,.ui-btn-corner-bl,.ui-btn-corner-br,.ui-btn-corner-top,.ui-btn-corner-bottom,.ui-btn-corner-right,.ui-btn-corner-left,.ui-btn-corner-all{-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.ui-overlay{background:#666;opacity:.5;filter:Alpha(Opacity=50);position:absolute;width:100%;height:100%}.ui-overlay-shadow{-moz-box-shadow:0 0 12px rgba(0,0,0,.6);-webkit-box-shadow:0 0 12px rgba(0,0,0,.6);box-shadow:0 0 12px rgba(0,0,0,.6)}.ui-shadow{-moz-box-shadow:0 1px 4px rgba(0,0,0,.3);-webkit-box-shadow:0 1px 4px rgba(0,0,0,.3);box-shadow:0 1px 4px rgba(0,0,0,.3)}.ui-bar-a .ui-shadow,.ui-bar-b .ui-shadow,.ui-bar-c .ui-shadow{-moz-box-shadow:0 1px 0 rgba(255,255,255,.3);-webkit-box-shadow:0 1px 0 rgba(255,255,255,.3);box-shadow:0 1px 0 rgba(255,255,255,.3)}.ui-shadow-inset{-moz-box-shadow:inset 0 1px 4px rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 4px rgba(0,0,0,.2);box-shadow:inset 0 1px 4px rgba(0,0,0,.2)}.ui-icon-shadow{-moz-box-shadow:0 1px 0 rgba(255,255,255,.4);-webkit-box-shadow:0 1px 0 rgba(255,255,255,.4);box-shadow:0 1px 0 rgba(255,255,255,.4)}.ui-btn:focus{outline:0}.ui-focus,.ui-btn:focus{-moz-box-shadow:0 0 12px #387bbe;-webkit-box-shadow:0 0 12px #387bbe;box-shadow:0 0 12px #387bbe}.ui-mobile-nosupport-boxshadow *{-moz-box-shadow:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}.ui-mobile-nosupport-boxshadow .ui-focus,.ui-mobile-nosupport-boxshadow .ui-btn:focus{outline-width:1px;outline-style:dotted}
skin/adminhtml/default/snm-mobile/js/MIT-LICENSE.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ Copyright (c) 2012 Hiro Inami, http://amegan.com/jquery-flip/
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
skin/adminhtml/default/snm-mobile/js/app.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ ;(function($, window, document, undefined) {
2
+ $( ":jqmData(role='page')" ).live( "pageshow", function() {
3
+ $('.ui-page-active form :input:first:visible').focus().select();
4
+
5
+
6
+ });
7
+ })(jQuery, window, document);
skin/adminhtml/default/snm-mobile/js/jquery-1.7.2.min.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ /*! jQuery v1.7.2 jquery.com | jquery.org/license */
2
+ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"<!doctype html>":"")+"<html><body>"),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function ca(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function b_(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bD.test(a)?d(a,e):b_(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&f.type(b)==="object")for(var e in b)b_(a+"["+e+"]",b[e],c,d);else d(a,b)}function b$(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function bZ(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bS,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bZ(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bZ(a,c,d,e,"*",g));return l}function bY(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bO),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bB(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?1:0,g=4;if(d>0){if(c!=="border")for(;e<g;e+=2)c||(d-=parseFloat(f.css(a,"padding"+bx[e]))||0),c==="margin"?d+=parseFloat(f.css(a,c+bx[e]))||0:d-=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0;return d+"px"}d=by(a,b);if(d<0||d==null)d=a.style[b];if(bt.test(d))return d;d=parseFloat(d)||0;if(c)for(;e<g;e+=2)d+=parseFloat(f.css(a,"padding"+bx[e]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+bx[e]))||0);return d+"px"}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;b.nodeType===1&&(b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?b.outerHTML=a.outerHTML:c!=="input"||a.type!=="checkbox"&&a.type!=="radio"?c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text):(a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value)),b.removeAttribute(f.expando),b.removeAttribute("_submit_attached"),b.removeAttribute("_change_attached"))}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c,i[c][d])}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h,i){var j,k=d==null,l=0,m=a.length;if(d&&typeof d=="object"){for(l in d)e.access(a,c,l,d[l],1,h,f);g=1}else if(f!==b){j=i===b&&e.isFunction(f),k&&(j?(j=c,c=function(a,b,c){return j.call(e(a),c)}):(c.call(a,f),c=null));if(c)for(;l<m;l++)c(a[l],d,j?f.call(a[l],l,c(a[l],d)):f,i);g=1}return g?a:k?c.call(a):m?c(a[0],d):h},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m,n=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?n(g):h==="function"&&(!a.unique||!p.has(g))&&c.push(g)},o=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,j=!0,m=k||0,k=0,l=c.length;for(;c&&m<l;m++)if(c[m].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}j=!1,c&&(a.once?e===!0?p.disable():c=[]:d&&d.length&&(e=d.shift(),p.fireWith(e[0],e[1])))},p={add:function(){if(c){var a=c.length;n(arguments),j?l=c.length:e&&e!==!0&&(k=a,o(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){j&&f<=l&&(l--,f<=m&&m--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&p.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(j?a.once||d.push([b,c]):(!a.once||!e)&&o(b,c));return this},fire:function(){p.fireWith(this,arguments);return this},fired:function(){return!!i}};return p};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p=c.createElement("div"),q=c.documentElement;p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="<div "+n+"display:block;'><div style='"+t+"0;display:block;overflow:hidden;'></div></div>"+"<table "+n+"' cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="<table><tr><td style='"+t+"0;display:none'></td><td>t</td></tr></table>",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="<div style='width:5px;'></div>",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h,i,j=this[0],k=0,m=null;if(a===b){if(this.length){m=f.data(j);if(j.nodeType===1&&!f._data(j,"parsedAttrs")){g=j.attributes;for(i=g.length;k<i;k++)h=g[k].name,h.indexOf("data-")===0&&(h=f.camelCase(h.substring(5)),l(j,h,m[h]));f._data(j,"parsedAttrs",!0)}}return m}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split(".",2),d[1]=d[1]?"."+d[1]:"",e=d[1]+"!";return f.access(this,function(c){if(c===b){m=this.triggerHandler("getData"+e,[d[0]]),m===b&&j&&(m=f.data(j,a),m=l(j,a,m));return m===b&&d[1]?this.data(d[0]):m}d[1]=c,this.each(function(){var b=f(this);b.triggerHandler("setData"+e,d),f.data(this,a,c),b.triggerHandler("changeData"+e,d)})},null,c,arguments.length>1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length<d)return f.queue(this[0],a);return c===b?this:this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise(c)}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,f.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i<g;i++)e=d[i],e&&(c=f.propFix[e]||e,h=u.test(e),h||f.attr(a,e,""),a.removeAttribute(v?e:c),h&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0,coords:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(
3
+ a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:g&&G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=f.event.special[c.type]||{},j=[],k,l,m,n,o,p,q,r,s,t,u;g[0]=c,c.delegateTarget=this;if(!i.preDispatch||i.preDispatch.call(this,c)!==!1){if(e&&(!c.button||c.type!=="click")){n=f(this),n.context=this.ownerDocument||this;for(m=c.target;m!=this;m=m.parentNode||this)if(m.disabled!==!0){p={},r=[],n[0]=m;for(k=0;k<e;k++)s=d[k],t=s.selector,p[t]===b&&(p[t]=s.quick?H(m,s.quick):n.is(t)),p[t]&&r.push(s);r.length&&j.push({elem:m,matches:r})}}d.length>e&&j.push({elem:this,matches:d.slice(e)});for(k=0;k<j.length&&!c.isPropagationStopped();k++){q=j[k],c.currentTarget=q.elem;for(l=0;l<q.matches.length&&!c.isImmediatePropagationStopped();l++){s=q.matches[l];if(h||!c.namespace&&!s.namespace||c.namespace_re&&c.namespace_re.test(s.namespace))c.data=s.data,c.handleObj=s,o=((f.event.special[s.origType]||{}).handle||s.handler).apply(q.elem,g),o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()))}}i.postDispatch&&i.postDispatch.call(this,c);return c.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),d._submit_attached=!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=d||c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function")d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9||d===11){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e+=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.globalPOS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")[\\s/>]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f
4
+ .clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(;d<e;d++)c=this[d]||{},c.nodeType===1&&(f.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(g){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,function(a,b){b.src?f.ajax({type:"GET",global:!1,url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1></$2>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]==="<table>"&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i<u;i++)bn(l[i]);else bn(l);l.nodeType?j.push(l):j=f.merge(j,l)}if(d){g=function(a){return!a.type||be.test(a.type)};for(k=0;j[k];k++){h=j[k];if(e&&f.nodeName(h,"script")&&(!h.type||be.test(h.type)))e.push(h.parentNode?h.parentNode.removeChild(h):h);else{if(h.nodeType===1){var v=f.grep(h.getElementsByTagName("script"),g);j.splice.apply(j,[k+1,0].concat(v))}d.appendChild(h)}}}return j},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bp=/alpha\([^)]*\)/i,bq=/opacity=([^)]*)/,br=/([A-Z]|^ms)/g,bs=/^[\-+]?(?:\d*\.)?\d+$/i,bt=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,bu=/^([\-+])=([\-+.\de]+)/,bv=/^margin/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Top","Right","Bottom","Left"],by,bz,bA;f.fn.css=function(a,c){return f.access(this,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)},a,c,arguments.length>1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),(e===""&&f.css(d,"display")==="none"||!f.contains(d.ownerDocument.documentElement,d))&&f._data(d,"olddisplay",cu(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(ct("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(ct("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o,p,q;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]);if((k=f.cssHooks[g])&&"expand"in k){l=k.expand(a[g]),delete a[g];for(i in l)i in a||(a[i]=l[i])}}for(g in a){h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cu(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cm.test(h)?(q=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),q?(f._data(this,"toggle"+i,q==="show"?"hide":"show"),j[q]()):j[h]()):(m=cn.exec(h),n=j.cur(),m?(o=parseFloat(m[2]),p=m[3]||(f.cssNumber[i]?"":"px"),p!=="px"&&(f.style(this,i,(o||1)+p),n=(o||1)/j.cur()*n,f.style(this,i,n+p)),m[1]&&(o=(m[1]==="-="?-1:1)*o+n),j.custom(n,o,p)):j.custom(n,h,""));return!0}var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:ct("show",1),slideUp:ct("hide",1),slideToggle:ct("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a){return a},swing:function(a){return-Math.cos(a*Math.PI)/2+.5}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=cq||cr(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){f._data(e.elem,"fxshow"+e.prop)===b&&(e.options.hide?f._data(e.elem,"fxshow"+e.prop,e.start):e.options.show&&f._data(e.elem,"fxshow"+e.prop,e.end))},h()&&f.timers.push(h)&&!co&&(co=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cq||cr(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(co),co=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(cp.concat.apply([],cp),function(a,b){b.indexOf("margin")&&(f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)})}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cv,cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?cv=function(a,b,c,d){try{d=a.getBoundingClientRect()}catch(e){}if(!d||!f.contains(c,a))return d?{top:d.top,left:d.left}:{top:0,left:0};var g=b.body,h=cy(b),i=c.clientTop||g.clientTop||0,j=c.clientLeft||g.clientLeft||0,k=h.pageYOffset||f.support.boxModel&&c.scrollTop||g.scrollTop,l=h.pageXOffset||f.support.boxModel&&c.scrollLeft||g.scrollLeft,m=d.top+k-i,n=d.left+l-j;return{top:m,left:n}}:cv=function(a,b,c){var d,e=a.offsetParent,g=a,h=b.body,i=b.defaultView,j=i?i.getComputedStyle(a,null):a.currentStyle,k=a.offsetTop,l=a.offsetLeft;while((a=a.parentNode)&&a!==h&&a!==c){if(f.support.fixedPosition&&j.position==="fixed")break;d=i?i.getComputedStyle(a,null):a.currentStyle,k-=a.scrollTop,l-=a.scrollLeft,a===e&&(k+=a.offsetTop,l+=a.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!cw.test(a.nodeName))&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),g=e,e=a.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),j=d}if(j.position==="relative"||j.position==="static")k+=h.offsetTop,l+=h.offsetLeft;f.support.fixedPosition&&j.position==="fixed"&&(k+=Math.max(c.scrollTop,h.scrollTop),l+=Math.max(c.scrollLeft,h.scrollLeft));return{top:k,left:l}},f.fn.offset=function(a){if(arguments.length)return a===b?this:this.each(function(b){f.offset.setOffset(this,a,b)});var c=this[0],d=c&&c.ownerDocument;if(!d)return null;if(c===d.body)return f.offset.bodyOffset(c);return cv(c,d,d.documentElement)},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);
5
+ jQuery.noConflict();
skin/adminhtml/default/snm-mobile/js/jquery.mobile-1.1.0-patched-listview.min.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ (function(a,c,b){if(typeof define==="function"&&define.amd){define(["jquery"],function(d){b(d,a,c);return d.mobile})}else{b(a.jQuery,a,c)}}(this,document,function(c,b,a,d){(function(A,J,h,p){var I="virtualMouseBindings",f="virtualTouchID",e="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),z="clientX clientY pageX pageY screenX screenY".split(" "),F=A.event.mouseHooks?A.event.mouseHooks.props:[],B=A.event.props.concat(F),D={},K=0,v=0,u=0,s=false,N=[],k=false,U=false,x="addEventListener" in h,w=A(h),H=1,Q=0;A.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};function t(V){while(V&&typeof V.originalEvent!=="undefined"){V=V.originalEvent}return V}function l(W,X){var ae=W.type,af,ad,Y,V,ac,ab,aa,Z;W=A.Event(W);W.type=X;af=W.originalEvent;ad=A.event.props;if(ae.search(/^(mouse|click)/)>-1){ad=B}if(af){for(aa=ad.length,V;aa;){V=ad[--aa];W[V]=af[V]}}if(ae.search(/mouse(down|up)|click/)>-1&&!W.which){W.which=1}if(ae.search(/^touch/)!==-1){Y=t(af);ae=Y.touches;ac=Y.changedTouches;ab=(ae&&ae.length)?ae[0]:((ac&&ac.length)?ac[0]:p);if(ab){for(Z=0,len=z.length;Z<len;Z++){V=z[Z];W[V]=ab[V]}}}return W}function S(Y){var W={},V,X;while(Y){V=A.data(Y,I);for(X in V){if(V[X]){W[X]=W.hasVirtualBinding=true}}Y=Y.parentNode}return W}function E(X,W){var V;while(X){V=A.data(X,I);if(V&&(!W||V[W])){return X}X=X.parentNode}return null}function M(){U=false}function n(){U=true}function T(){Q=0;N.length=0;k=false;n()}function r(){M()}function y(){C();K=setTimeout(function(){K=0;T()},A.vmouse.resetTimerDuration)}function C(){if(K){clearTimeout(K);K=0}}function q(X,Y,V){var W;if((V&&V[X])||(!V&&E(Y.target,X))){W=l(Y,X);A(Y.target).trigger(W)}return W}function m(W){var X=A.data(W.target,f);if(!k&&(!Q||Q!==X)){var V=q("v"+W.type,W);if(V){if(V.isDefaultPrevented()){W.preventDefault()}if(V.isPropagationStopped()){W.stopPropagation()}if(V.isImmediatePropagationStopped()){W.stopImmediatePropagation()}}}}function R(X){var Z=t(X).touches,Y,V;if(Z&&Z.length===1){Y=X.target;V=S(Y);if(V.hasVirtualBinding){Q=H++;A.data(Y,f,Q);C();r();s=false;var W=t(X).touches[0];v=W.pageX;u=W.pageY;q("vmouseover",X,V);q("vmousedown",X,V)}}}function L(V){if(U){return}if(!s){q("vmousecancel",V,S(V.target))}s=true;y()}function g(Y){if(U){return}var W=t(Y).touches[0],V=s,X=A.vmouse.moveDistanceThreshold;s=s||(Math.abs(W.pageX-v)>X||Math.abs(W.pageY-u)>X),flags=S(Y.target);if(s&&!V){q("vmousecancel",Y,flags)}q("vmousemove",Y,flags);y()}function j(Y){if(U){return}n();var V=S(Y.target),X;q("vmouseup",Y,V);if(!s){var W=q("vclick",Y,V);if(W&&W.isDefaultPrevented()){X=t(Y).changedTouches[0];N.push({touchID:Q,x:X.clientX,y:X.clientY});k=true}}q("vmouseout",Y,V);s=false;y()}function G(W){var X=A.data(W,I),V;if(X){for(V in X){if(X[V]){return true}}}return false}function P(){}function o(V){var W=V.substr(1);return{setup:function(Y,X){if(!G(this)){A.data(this,I,{})}var Z=A.data(this,I);Z[V]=true;D[V]=(D[V]||0)+1;if(D[V]===1){w.bind(W,m)}A(this).bind(W,P);if(x){D.touchstart=(D.touchstart||0)+1;if(D.touchstart===1){w.bind("touchstart",R).bind("touchend",j).bind("touchmove",g).bind("scroll",L)}}},teardown:function(Y,X){--D[V];if(!D[V]){w.unbind(W,m)}if(x){--D.touchstart;if(!D.touchstart){w.unbind("touchstart",R).unbind("touchmove",g).unbind("touchend",j).unbind("scroll",L)}}var Z=A(this),aa=A.data(this,I);if(aa){aa[V]=false}Z.unbind(W,P);if(!G(this)){Z.removeData(I)}}}}for(var O=0;O<e.length;O++){A.event.special[e[O]]=o(e[O])}if(x){h.addEventListener("click",function(Z){var W=N.length,aa=Z.target,ac,ab,ad,Y,V,X;if(W){ac=Z.clientX;ab=Z.clientY;threshold=A.vmouse.clickDistanceThreshold;ad=aa;while(ad){for(Y=0;Y<W;Y++){V=N[Y];X=0;if((ad===aa&&Math.abs(V.x-ac)<threshold&&Math.abs(V.y-ab)<threshold)||A.data(ad,f)===V.touchID){Z.preventDefault();Z.stopPropagation();return}}ad=ad.parentNode}}},true)}})(jQuery,b,a);(function(h,k,f){var g="hashchange",n=a,l,m=h.event.special,o=n.documentMode,j="on"+g in k&&(o===f||o>7);function e(p){p=p||location.href;return"#"+p.replace(/^[^#]*#?(.*)$/,"$1")}h.fn[g]=function(p){return p?this.bind(g,p):this.trigger(g)};h.fn[g].delay=50;m[g]=h.extend(m[g],{setup:function(){if(j){return false}h(l.start)},teardown:function(){if(j){return false}h(l.stop)}});l=(function(){var p={},v,s=e(),q=function(w){return w},r=q,u=q;p.start=function(){v||t()};p.stop=function(){v&&clearTimeout(v);v=f};function t(){var x=e(),w=u(s);if(x!==s){r(s=x,w);h(k).trigger(g)}else{if(w!==s){location.href=location.href.replace(/#.*/,"")+w}}v=setTimeout(t,h.fn[g].delay)}h.browser.msie&&!j&&(function(){var w,x;p.start=function(){if(!w){x=h.fn[g].src;x=x&&x+e();w=h('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){x||r(e());t()}).attr("src",x||"javascript:0").insertAfter("body")[0].contentWindow;n.onpropertychange=function(){try{if(event.propertyName==="title"){w.document.title=n.title}}catch(y){}}}};p.stop=q;u=function(){return e(w.location.href)};r=function(B,y){var A=w.document,z=h.fn[g].domain;if(B!==y){A.title=n.title;A.open();z&&A.write('<script>document.domain="'+z+'"<\/script>');A.close();w.location.hash=B}}})();return p})()})(jQuery,this);
2
+ /*!
3
+ * jQuery UI Widget @VERSION
4
+ *
5
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
6
+ * Dual licensed under the MIT or GPL Version 2 licenses.
7
+ * http://jquery.org/license
8
+ *
9
+ * http://docs.jquery.com/UI/Widget
10
+ */
11
+ (function(f,h){if(f.cleanData){var g=f.cleanData;f.cleanData=function(j){for(var k=0,l;(l=j[k])!=null;k++){f(l).triggerHandler("remove")}g(j)}}else{var e=f.fn.remove;f.fn.remove=function(j,k){return this.each(function(){if(!k){if(!j||f.filter(j,[this]).length){f("*",this).add([this]).each(function(){f(this).triggerHandler("remove")})}}return e.call(f(this),j,k)})}}f.widget=function(k,m,j){var l=k.split(".")[0],o;k=k.split(".")[1];o=l+"-"+k;if(!j){j=m;m=f.Widget}f.expr[":"][o]=function(p){return !!f.data(p,k)};f[l]=f[l]||{};f[l][k]=function(p,q){if(arguments.length){this._createWidget(p,q)}};var n=new m();n.options=f.extend(true,{},n.options);f[l][k].prototype=f.extend(true,n,{namespace:l,widgetName:k,widgetEventPrefix:f[l][k].prototype.widgetEventPrefix||k,widgetBaseClass:o},j);f.widget.bridge(k,f[l][k])};f.widget.bridge=function(k,j){f.fn[k]=function(n){var l=typeof n==="string",m=Array.prototype.slice.call(arguments,1),o=this;n=!l&&m.length?f.extend.apply(null,[true,n].concat(m)):n;if(l&&n.charAt(0)==="_"){return o}if(l){this.each(function(){var p=f.data(this,k);if(!p){throw"cannot call methods on "+k+" prior to initialization; attempted to call method '"+n+"'"}if(!f.isFunction(p[n])){throw"no such method '"+n+"' for "+k+" widget instance"}var q=p[n].apply(p,m);if(q!==p&&q!==h){o=q;return false}})}else{this.each(function(){var p=f.data(this,k);if(p){p.option(n||{})._init()}else{f.data(this,k,new j(n,this))}})}return o}};f.Widget=function(j,k){if(arguments.length){this._createWidget(j,k)}};f.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(k,l){f.data(l,this.widgetName,this);this.element=f(l);this.options=f.extend(true,{},this.options,this._getCreateOptions(),k);var j=this;this.element.bind("remove."+this.widgetName,function(){j.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){var j={};if(f.metadata){j=f.metadata.get(element)[this.widgetName]}return j},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(k,l){var j=k;if(arguments.length===0){return f.extend({},this.options)}if(typeof k==="string"){if(l===h){return this.options[k]}j={};j[k]=l}this._setOptions(j);return this},_setOptions:function(k){var j=this;f.each(k,function(l,m){j._setOption(l,m)});return this},_setOption:function(j,k){this.options[j]=k;if(j==="disabled"){this.widget()[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",k)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(k,l,m){var o=this.options[k];l=f.Event(l);l.type=(k===this.widgetEventPrefix?k:this.widgetEventPrefix+k).toLowerCase();m=m||{};if(l.originalEvent){for(var j=f.event.props.length,n;j;){n=f.event.props[--j];l[n]=l.originalEvent[n]}}this.element.trigger(l,m);return !(f.isFunction(o)&&o.call(this.element[0],l,m)===false||l.isDefaultPrevented())}}})(jQuery);(function(e,f){e.widget("mobile.widget",{_createWidget:function(){e.Widget.prototype._createWidget.apply(this,arguments);this._trigger("init")},_getCreateOptions:function(){var h=this.element,g={};e.each(this.options,function(j){var k=h.jqmData(j.replace(/[A-Z]/g,function(l){return"-"+l.toLowerCase()}));if(k!==f){g[j]=k}});return g},enhanceWithin:function(h,g){this.enhance(e(this.options.initSelector,e(h)),g)},enhance:function(j,h){var m,l,g=e(j),k=this;g=e.mobile.enhanceable(g);if(h&&g.length){m=e.mobile.closestPageData(g);l=(m&&m.keepNativeSelector())||"";g=g.not(l)}g[this.widgetName]()},raise:function(g){throw"Widget ["+this.widgetName+"]: "+g}})})(jQuery);(function(j,h,k){var g={};j.mobile=j.extend({},{version:"1.1.0",ns:"",subPageUrlKey:"ui-page",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",focusClass:"ui-focus",ajaxEnabled:true,hashListeningEnabled:true,linkBindingEnabled:true,defaultPageTransition:"fade",maxTransitionWidth:false,minScrollBack:250,touchOverflowEnabled:false,defaultDialogTransition:"pop",loadingMessage:"loading",pageLoadErrorMessage:"Error Loading Page",loadingMessageTextVisible:false,loadingMessageTheme:"a",pageLoadErrorMessageTheme:"e",autoInitializePage:true,pushStateEnabled:true,ignoreContentEnabled:false,orientationChangeEnabled:true,buttonMarkup:{hoverDelay:200},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},silentScroll:function(l){if(j.type(l)!=="number"){l=j.mobile.defaultHomeScroll}j.event.special.scrollstart.enabled=false;setTimeout(function(){h.scrollTo(0,l);j(a).trigger("silentscroll",{x:0,y:l})},20);setTimeout(function(){j.event.special.scrollstart.enabled=true},150)},nsNormalizeDict:g,nsNormalize:function(l){if(!l){return}return g[l]||(g[l]=j.camelCase(j.mobile.ns+l))},getInheritedTheme:function(q,n){var r=q[0],o="",p=/ui-(bar|body|overlay)-([a-z])\b/,s,l;while(r){var s=r.className||"";if((l=p.exec(s))&&(o=l[2])){break}r=r.parentNode}return o||n||"a"},closestPageData:function(l){return l.closest(':jqmData(role="page"), :jqmData(role="dialog")').data("page")},enhanceable:function(l){return this.haveParents(l,"enhance")},hijackable:function(l){return this.haveParents(l,"ajax")},haveParents:function(n,r){if(!j.mobile.ignoreContentEnabled){return n}var o=n.length,l=j(),q,t,p;for(var m=0;m<o;m++){t=n.eq(m);p=false;q=n[m];while(q){var s=q.getAttribute?q.getAttribute("data-"+j.mobile.ns+r):"";if(s==="false"){p=true;break}q=q.parentNode}if(!p){l=l.add(t)}}return l}},j.mobile);j.fn.jqmData=function(n,m){var l;if(typeof n!="undefined"){if(n){n=j.mobile.nsNormalize(n)}l=this.data.apply(this,arguments.length<2?[n]:[n,m])}return l};j.jqmData=function(m,o,n){var l;if(typeof o!="undefined"){l=j.data(m,o?j.mobile.nsNormalize(o):o,n)}return l};j.fn.jqmRemoveData=function(l){return this.removeData(j.mobile.nsNormalize(l))};j.jqmRemoveData=function(l,m){return j.removeData(l,j.mobile.nsNormalize(m))};j.fn.removeWithDependents=function(){j.removeWithDependents(this)};j.removeWithDependents=function(m){var l=j(m);(l.jqmData("dependents")||j()).remove();l.remove()};j.fn.addDependents=function(l){j.addDependents(j(this),l)};j.addDependents=function(l,m){var n=j(l).jqmData("dependents")||j();j(l).jqmData("dependents",j.merge(n,m))};j.fn.getEncodedText=function(){return j("<div/>").text(j(this).text()).html()};j.fn.jqmEnhanceable=function(){return j.mobile.enhanceable(this)};j.fn.jqmHijackable=function(){return j.mobile.hijackable(this)};var f=j.find,e=/:jqmData\(([^)]*)\)/g;j.find=function(m,o,n,l){m=m.replace(e,"[data-"+(j.mobile.ns||"")+"$1]");return f.call(this,m,o,n,l)};j.extend(j.find,f);j.find.matches=function(l,m){return j.find(l,null,null,m)};j.find.matchesSelector=function(l,m){return j.find(m,null,null,[l]).length>0}})(jQuery,this);(function(f,h){var g=f(b),e=f("html");f.mobile.media=(function(){var j={},k=f("<div id='jquery-mediatest'>"),l=f("<body>").append(k);return function(o){if(!(o in j)){var m=a.createElement("style"),n="@media "+o+" { #jquery-mediatest { position:absolute; } }";m.type="text/css";if(m.styleSheet){m.styleSheet.cssText=n}else{m.appendChild(a.createTextNode(n))}e.prepend(l).prepend(m);j[o]=k.css("position")==="absolute";l.add(m).remove()}return j[o]}})()})(jQuery);(function(l,g){var h=l("<body>").prependTo("html"),o=h[0].style,q=["Webkit","Moz","O"],r="palmGetResource" in b,p=b.operamini&&({}).toString.call(b.operamini)==="[object OperaMini]",n=b.blackberry;function f(w){var u=w.charAt(0).toUpperCase()+w.substr(1),t=(w+" "+q.join(u+" ")+u).split(" ");for(var s in t){if(o[t[s]]!==g){return true}}}function k(s,x,u){var t=a.createElement("div"),A=function(B){return B.charAt(0).toUpperCase()+B.substr(1)},z=function(B){return"-"+B.charAt(0).toLowerCase()+B.substr(1)+"-"},y=function(E){var B=z(E)+s+": "+x+";",D=A(E),C=D+A(s);t.setAttribute("style",B);if(!!t.style[C]){w=true}},v=u?[u]:q,w;for(i=0;i<v.length;i++){y(v[i])}return !!w}function j(){var s="transform-3d";return k("perspective","10px","moz")||l.mobile.media("(-"+q.join("-"+s+"),(-")+"-"+s+"),("+s+")")}function e(){var w=location.protocol+"//"+location.host+location.pathname+"ui-dir/",v=l("head base"),x=null,s="",u,t;if(!v.length){v=x=l("<base>",{href:w}).appendTo("head")}else{s=v.attr("href")}u=l("<a href='testurl' />").prependTo(h);t=u[0].href;v[0].href=s||location.pathname;if(x){x.remove()}return t.indexOf(w)===0}l.extend(l.mobile,{browser:{}});l.mobile.browser.ie=(function(){var t=3,u=a.createElement("div"),s=u.all||[];while(u.innerHTML="<!--[if gt IE "+(++t)+"]><br><![endif]-->",s[0]){}return t>4?t:!t})();l.extend(l.support,{orientation:"orientation" in b&&"onorientationchange" in b,touch:"ontouchend" in a,cssTransitions:"WebKitTransitionEvent" in b||k("transition","height 100ms linear"),pushState:"pushState" in history&&"replaceState" in history,mediaquery:l.mobile.media("only all"),cssPseudoElement:!!f("content"),touchOverflow:!!f("overflowScrolling"),cssTransform3d:j(),boxShadow:!!f("boxShadow")&&!n,scrollTop:("pageXOffset" in b||"scrollTop" in a.documentElement||"scrollTop" in h[0])&&!r&&!p,dynamicBaseTag:e()});h.remove();var m=(function(){var s=b.navigator.userAgent;return s.indexOf("Nokia")>-1&&(s.indexOf("Symbian/3")>-1||s.indexOf("Series60/5")>-1)&&s.indexOf("AppleWebKit")>-1&&s.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)})();l.mobile.gradeA=function(){return l.support.mediaquery||l.mobile.browser.ie&&l.mobile.browser.ie>=7};l.mobile.ajaxBlacklist=b.blackberry&&!b.WebKitPoint||p||m;if(m){l(function(){l("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")})}if(!l.support.boxShadow){l("html").addClass("ui-mobile-nosupport-boxshadow")}})(jQuery);(function(g,m,e){g.each(("touchstart touchmove touchend orientationchange throttledresize tap taphold swipe swipeleft swiperight scrollstart scrollstop").split(" "),function(p,o){g.fn[o]=function(q){return q?this.bind(o,q):this.trigger(o)};g.attrFn[o]=true});var h=g.support.touch,j="touchmove scroll",n=h?"touchstart":"mousedown",l=h?"touchend":"mouseup",f=h?"touchmove":"mousemove";function k(r,o,q){var p=q.type;q.type=o;g.event.handle.call(r,q);q.type=p}g.event.special.scrollstart={enabled:true,setup:function(){var o=this,r=g(o),q,s;function p(t,u){q=u;k(o,q?"scrollstart":"scrollstop",t)}r.bind(j,function(t){if(!g.event.special.scrollstart.enabled){return}if(!q){p(t,true)}clearTimeout(s);s=setTimeout(function(){p(t,false)},50)})}};g.event.special.tap={setup:function(){var o=this,p=g(o);p.bind("vmousedown",function(t){if(t.which&&t.which!==1){return false}var s=t.target,q=t.originalEvent,w;function r(){clearTimeout(w)}function v(){r();p.unbind("vclick",u).unbind("vmouseup",r);g(a).unbind("vmousecancel",v)}function u(x){v();if(s==x.target){k(o,"tap",x)}}p.bind("vmouseup",r).bind("vclick",u);g(a).bind("vmousecancel",v);w=setTimeout(function(){k(o,"taphold",g.Event("taphold",{target:s}))},750)})}};g.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1000,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var o=this,p=g(o);p.bind(n,function(r){var t=r.originalEvent.touches?r.originalEvent.touches[0]:r,u={time:(new Date()).getTime(),coords:[t.pageX,t.pageY],origin:g(r.target)},q;function s(v){if(!u){return}var w=v.originalEvent.touches?v.originalEvent.touches[0]:v;q={time:(new Date()).getTime(),coords:[w.pageX,w.pageY]};if(Math.abs(u.coords[0]-q.coords[0])>g.event.special.swipe.scrollSupressionThreshold){v.preventDefault()}}p.bind(f,s).one(l,function(v){p.unbind(f,s);if(u&&q){if(q.time-u.time<g.event.special.swipe.durationThreshold&&Math.abs(u.coords[0]-q.coords[0])>g.event.special.swipe.horizontalDistanceThreshold&&Math.abs(u.coords[1]-q.coords[1])<g.event.special.swipe.verticalDistanceThreshold){u.origin.trigger("swipe").trigger(u.coords[0]>q.coords[0]?"swipeleft":"swiperight")}}u=q=e})})}};(function(u,y){var w=u(y),o,q,v,r,z,x={"0":true,"180":true};if(u.support.orientation){var t=y.innerWidth||u(y).width(),p=y.innerHeight||u(y).height(),s=50;r=t>p&&(t-p)>s;z=x[y.orientation];if((r&&z)||(!r&&!z)){x={"-90":true,"90":true}}}u.event.special.orientationchange=o={setup:function(){if(u.support.orientation&&u.mobile.orientationChangeEnabled){return false}v=q();w.bind("throttledresize",A)},teardown:function(){if(u.support.orientation&&u.mobile.orientationChangeEnabled){return false}w.unbind("throttledresize",A)},add:function(B){var C=B.handler;B.handler=function(D){D.orientation=q();return C.apply(this,arguments)}}};function A(){var B=q();if(B!==v){v=B;w.trigger("orientationchange")}}u.event.special.orientationchange.orientation=q=function(){var C=true,B=a.documentElement;if(u.support.orientation){C=x[y.orientation]}else{C=B&&B.clientWidth/B.clientHeight<1.1}return C?"portrait":"landscape"}})(jQuery,m);(function(){g.event.special.throttledresize={setup:function(){g(this).bind("resize",q)},teardown:function(){g(this).unbind("resize",q)}};var r=250,q=function(){t=(new Date()).getTime();s=t-p;if(s>=r){p=t;g(this).trigger("throttledresize")}else{if(o){clearTimeout(o)}o=setTimeout(q,r-s)}},p=0,o,t,s})();g.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(p,o){g.event.special[p]={setup:function(){g(this).bind(o,g.noop)}}})})(jQuery,this);(function(e,f){e.widget("mobile.page",e.mobile.widget,{options:{theme:"c",domCache:false,keepNativeDefault:":jqmData(role='none'), :jqmData(role='nojs')"},_create:function(){var g=this;if(g._trigger("beforecreate")===false){return false}g.element.attr("tabindex","0").addClass("ui-page ui-body-"+g.options.theme).bind("pagebeforehide",function(){g.removeContainerBackground()}).bind("pagebeforeshow",function(){g.setContainerBackground()})},removeContainerBackground:function(){e.mobile.pageContainer.removeClass("ui-overlay-"+e.mobile.getInheritedTheme(this.element.parent()))},setContainerBackground:function(g){if(this.options.theme){e.mobile.pageContainer.addClass("ui-overlay-"+(g||this.options.theme))}},keepNativeSelector:function(){var g=this.options,h=g.keepNative&&e.trim(g.keepNative);if(h&&g.keepNative!==g.keepNativeDefault){return[g.keepNative,g.keepNativeDefault].join(", ")}return g.keepNativeDefault}})})(jQuery);(function(j,f,k){var e=function(l){if(l===k){l=true}return function(D,u,n,B){var C=new j.Deferred(),m=u?" reverse":"",s=j.mobile.urlHistory.getActive(),y=s.lastScroll||j.mobile.defaultHomeScroll,A=j.mobile.getScreenHeight(),p=j.mobile.maxTransitionWidth!==false&&j(f).width()>j.mobile.maxTransitionWidth,o=!j.support.cssTransitions||p||!D||D==="none",q=function(){j.mobile.pageContainer.toggleClass("ui-mobile-viewport-transitioning viewport-"+D)},z=function(){j.event.special.scrollstart.enabled=false;f.scrollTo(0,y);setTimeout(function(){j.event.special.scrollstart.enabled=true},150)},r=function(){B.removeClass(j.mobile.activePageClass+" out in reverse "+D).height("")},w=function(){if(!l){x()}else{B.animationComplete(x)}B.height(A+j(f).scrollTop()).addClass(D+" out"+m)},x=function(){if(B&&l){r()}t()},t=function(){n.addClass(j.mobile.activePageClass);j.mobile.focusPage(n);n.height(A+y);z();if(!o){n.animationComplete(v)}n.addClass(D+" in"+m);if(o){v()}},v=function(){if(!l){if(B){r()}}n.removeClass("out in reverse "+D).height("");q();if(j(f).scrollTop()!==y){z()}C.resolve(D,u,n,B,true)};q();if(B&&!o){w()}else{x()}return C.promise()}};var h=e(),g=e(false);j.mobile.defaultTransitionHandler=h;j.mobile.transitionHandlers={"default":j.mobile.defaultTransitionHandler,sequential:h,simultaneous:g};j.mobile.transitionFallbacks={}})(jQuery,this);(function(l,n){var u=l(b),x=l("html"),r=l("head"),w={urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,parseUrl:function(H){if(l.type(H)==="object"){return H}var I=w.urlParseRE.exec(H||"")||[];return{href:I[0]||"",hrefNoHash:I[1]||"",hrefNoSearch:I[2]||"",domain:I[3]||"",protocol:I[4]||"",doubleSlash:I[5]||"",authority:I[6]||"",username:I[8]||"",password:I[9]||"",host:I[10]||"",hostname:I[11]||"",port:I[12]||"",pathname:I[13]||"",directory:I[14]||"",filename:I[15]||"",search:I[16]||"",hash:I[17]||""}},makePathAbsolute:function(K,J){if(K&&K.charAt(0)==="/"){return K}K=K||"";J=J?J.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"";var H=J?J.split("/"):[],M=K.split("/");for(var I=0;I<M.length;I++){var L=M[I];switch(L){case".":break;case"..":if(H.length){H.pop()}break;default:H.push(L);break}}return"/"+H.join("/")},isSameDomain:function(I,H){return w.parseUrl(I).domain===w.parseUrl(H).domain},isRelativeUrl:function(H){return w.parseUrl(H).protocol===""},isAbsoluteUrl:function(H){return w.parseUrl(H).protocol!==""},makeUrlAbsolute:function(I,K){if(!w.isRelativeUrl(I)){return I}var M=w.parseUrl(I),P=w.parseUrl(K),Q=M.protocol||P.protocol,J=M.protocol?M.doubleSlash:(M.doubleSlash||P.doubleSlash),N=M.authority||P.authority,O=M.pathname!=="",H=w.makePathAbsolute(M.pathname||P.filename,P.pathname),R=M.search||(!O&&P.search)||"",L=M.hash;return Q+J+N+H+R+L},addSearchParams:function(I,L){var H=w.parseUrl(I),K=(typeof L==="object")?l.param(L):L,J=H.search||"?";return H.hrefNoSearch+J+(J.charAt(J.length-1)!=="?"?"&":"")+K+(H.hash||"")},convertUrlToDataUrl:function(I){var H=w.parseUrl(I);if(w.isEmbeddedPage(H)){return H.hash.split(F)[0].replace(/^#/,"")}else{if(w.isSameDomain(H,A)){return H.hrefNoHash.replace(A.domain,"")}}return I},get:function(H){if(H===n){H=location.hash}return w.stripHash(H).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(I){var H="&"+l.mobile.subPageUrlKey;return I&&I.split(H)[0].split(F)[0]},set:function(H){location.hash=H},isPath:function(H){return(/\//).test(H)},clean:function(H){return H.replace(A.domain,"")},stripHash:function(H){return H.replace(/^#/,"")},cleanHash:function(H){return w.stripHash(H.replace(/\?.*$/,"").replace(F,""))},isExternal:function(I){var H=w.parseUrl(I);return H.protocol&&H.domain!==k.domain?true:false},hasProtocol:function(H){return(/^(:?\w+:)/).test(H)},isFirstPageUrl:function(J){var I=w.parseUrl(w.makeUrlAbsolute(J,A)),L=I.hrefNoHash===k.hrefNoHash||(f&&I.hrefNoHash===A.hrefNoHash),H=l.mobile.firstPage,K=H&&H[0]?H[0].id:n;return L&&(!I.hash||I.hash==="#"||(K&&I.hash.replace(/^#/,"")===K))},isEmbeddedPage:function(I){var H=w.parseUrl(I);if(H.protocol!==""){return(H.hash&&(H.hrefNoHash===k.hrefNoHash||(f&&H.hrefNoHash===A.hrefNoHash)))}return(/^#/).test(H.href)}},G=null,j={stack:[],activeIndex:0,getActive:function(){return j.stack[j.activeIndex]},getPrev:function(){return j.stack[j.activeIndex-1]},getNext:function(){return j.stack[j.activeIndex+1]},addNew:function(H,K,J,I,L){if(j.getNext()){j.clearForward()}j.stack.push({url:H,transition:K,title:J,pageUrl:I,role:L});j.activeIndex=j.stack.length-1},clearForward:function(){j.stack=j.stack.slice(0,j.activeIndex+1)},directHashChange:function(K){var H,I,L,J=this.getActive();l.each(j.stack,function(M,N){if(K.currentUrl===N.url){H=M<j.activeIndex;I=!H;L=M}});this.activeIndex=L!==n?L:this.activeIndex;if(H){(K.either||K.isBack)(true)}else{if(I){(K.either||K.isForward)(false)}}},ignoreNextHashChange:false},z="[tabindex],a,button:visible,select:visible,input",t=[],B=false,F="&ui-state=dialog",q=r.children("base"),k=w.parseUrl(location.href),A=q.length?w.parseUrl(w.makeUrlAbsolute(q.attr("href"),k.href)):k,f=(k.hrefNoHash!==A.hrefNoHash);var m=l.support.dynamicBaseTag?{element:(q.length?q:l("<base>",{href:A.hrefNoHash}).prependTo(r)),set:function(H){m.element.attr("href",w.makeUrlAbsolute(H,A))},reset:function(){m.element.attr("href",A.hrefNoHash)}}:n;l.mobile.focusPage=function(I){var J=I.find("[autofocus]"),H=I.find(".ui-title:eq(0)");if(J.length){J.focus();return}if(H.length){H.focus()}else{I.focus()}};function D(H){if(!!G&&(!G.closest(".ui-page-active").length||H)){G.removeClass(l.mobile.activeBtnClass)}G=null}function v(){B=false;if(t.length>0){l.mobile.changePage.apply(null,t.pop())}}var s=true,g,E;g=function(){if(!s){return}var I=l.mobile.urlHistory.getActive();if(I){var H=u.scrollTop();I.lastScroll=H<l.mobile.minScrollBack?l.mobile.defaultHomeScroll:H}};E=function(){setTimeout(g,100)};u.bind(l.support.pushState?"popstate":"hashchange",function(){s=false});u.one(l.support.pushState?"popstate":"hashchange",function(){s=true});u.one("pagecontainercreate",function(){l.mobile.pageContainer.bind("pagechange",function(){s=true;u.unbind("scrollstop",E);u.bind("scrollstop",E)})});u.bind("scrollstop",E);function C(J,K,M,H){if(K){K.data("page")._trigger("beforehide",null,{nextPage:J})}J.data("page")._trigger("beforeshow",null,{prevPage:K||l("")});l.mobile.hidePageLoadingMsg();if(M&&!l.support.cssTransform3d&&l.mobile.transitionFallbacks[M]){M=l.mobile.transitionFallbacks[M]}var I=l.mobile.transitionHandlers[M||"default"]||l.mobile.defaultTransitionHandler,L=I(M,H,J,K);L.done(function(){if(K){K.data("page")._trigger("hide",null,{nextPage:J})}J.data("page")._trigger("show",null,{prevPage:K||l("")})});return L}function p(){return b.innerHeight||l(b).height()}l.mobile.getScreenHeight=p;function e(){var I=l("."+l.mobile.activePageClass),J=parseFloat(I.css("padding-top")),H=parseFloat(I.css("padding-bottom"));I.css("min-height",p()-J-H)}function y(H,I){if(I){H.attr("data-"+l.mobile.ns+"role",I)}H.page()}l.fn.animationComplete=function(H){if(l.support.cssTransitions){return l(this).one("webkitAnimationEnd animationend",H)}else{setTimeout(H,0);return l(this)}};l.mobile.path=w;l.mobile.base=m;l.mobile.urlHistory=j;l.mobile.dialogHashKey=F;l.mobile.allowCrossDomainPages=false;l.mobile.getDocumentUrl=function(H){return H?l.extend({},k):k.href};l.mobile.getDocumentBase=function(H){return H?l.extend({},A):A.href};l.mobile._bindPageRemove=function(){var H=l(this);if(!H.data("page").options.domCache&&H.is(":jqmData(external-page='true')")){H.bind("pagehide.remove",function(){var J=l(this),I=new l.Event("pageremove");J.trigger(I);if(!I.isDefaultPrevented()){J.removeWithDependents()}})}};l.mobile.loadPage=function(I,V){var U=l.Deferred(),J=l.extend({},l.mobile.loadPage.defaults,V),N=null,S=null,M=function(){var W=(l.mobile.activePage&&h(l.mobile.activePage));return W||A.hrefNoHash},K=w.makeUrlAbsolute(I,M());if(J.data&&J.type==="get"){K=w.addSearchParams(K,J.data);J.data=n}if(J.data&&J.type==="post"){J.reloadPage=true}var R=w.getFilePath(K),O=w.convertUrlToDataUrl(K);J.pageContainer=J.pageContainer||l.mobile.pageContainer;N=J.pageContainer.children(":jqmData(url='"+O+"')");if(N.length===0&&O&&!w.isPath(O)){N=J.pageContainer.children("#"+O).attr("data-"+l.mobile.ns+"url",O)}if(N.length===0){if(l.mobile.firstPage&&w.isFirstPageUrl(R)){if(l.mobile.firstPage.parent().length){N=l(l.mobile.firstPage)}}else{if(w.isEmbeddedPage(R)){U.reject(K,V);return U.promise()}}}if(m){m.reset()}if(N.length){if(!J.reloadPage){y(N,J.role);U.resolve(K,V,N);return U.promise()}S=N}var L=J.pageContainer,T=new l.Event("pagebeforeload"),H={url:I,absUrl:K,dataUrl:O,deferred:U,options:J};L.trigger(T,H);if(T.isDefaultPrevented()){return U.promise()}if(J.showLoadMsg){var Q=setTimeout(function(){l.mobile.showPageLoadingMsg()},J.loadMsgDelay),P=function(){clearTimeout(Q);l.mobile.hidePageLoadingMsg()}}if(!(l.mobile.allowCrossDomainPages||w.isSameDomain(k,K))){U.reject(K,V)}else{l.ajax({url:R,type:J.type,data:J.data,dataType:"html",success:function(Y,ad,ac){var Z=l("<div></div>"),W=Y.match(/<title[^>]*>([^<]*)/)&&RegExp.$1,ab=new RegExp("(<[^>]+\\bdata-"+l.mobile.ns+"role=[\"']?page[\"']?[^>]*>)"),X=new RegExp("\\bdata-"+l.mobile.ns+"url=[\"']?([^\"'>]*)[\"']?");if(ab.test(Y)&&RegExp.$1&&X.test(RegExp.$1)&&RegExp.$1){I=R=w.getFilePath(RegExp.$1)}if(m){m.set(R)}Z.get(0).innerHTML=Y;N=Z.find(":jqmData(role='page'), :jqmData(role='dialog')").first();if(!N.length){N=l("<div data-"+l.mobile.ns+"role='page'>"+Y.split(/<\/?body[^>]*>/gmi)[1]+"</div>")}if(W&&!N.jqmData("title")){if(~W.indexOf("&")){W=l("<div>"+W+"</div>").text()}N.jqmData("title",W)}if(!l.support.dynamicBaseTag){var aa=w.get(R);N.find("[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]").each(function(){var af=l(this).is("[href]")?"href":l(this).is("[src]")?"src":"action",ae=l(this).attr(af);ae=ae.replace(location.protocol+"//"+location.host+location.pathname,"");if(!/^(\w+:|#|\/)/.test(ae)){l(this).attr(af,aa+ae)}})}N.attr("data-"+l.mobile.ns+"url",w.convertUrlToDataUrl(R)).attr("data-"+l.mobile.ns+"external-page",true).appendTo(J.pageContainer);N.one("pagecreate",l.mobile._bindPageRemove);y(N,J.role);if(K.indexOf("&"+l.mobile.subPageUrlKey)>-1){N=J.pageContainer.children(":jqmData(url='"+O+"')")}if(J.showLoadMsg){P()}H.xhr=ac;H.textStatus=ad;H.page=N;J.pageContainer.trigger("pageload",H);U.resolve(K,V,N,S)},error:function(Y,Z,W){if(m){m.set(w.get())}H.xhr=Y;H.textStatus=Z;H.errorThrown=W;var X=new l.Event("pageloadfailed");J.pageContainer.trigger(X,H);if(X.isDefaultPrevented()){return}if(J.showLoadMsg){P();l.mobile.showPageLoadingMsg(l.mobile.pageLoadErrorMessageTheme,l.mobile.pageLoadErrorMessage,true);setTimeout(l.mobile.hidePageLoadingMsg,1500)}U.reject(K,V)}})}return U.promise()};l.mobile.loadPage.defaults={type:"get",data:n,reloadPage:false,role:n,showLoadMsg:false,pageContainer:n,loadMsgDelay:50};l.mobile.changePage=function(V,X){if(B){t.unshift(arguments);return}var P=l.extend({},l.mobile.changePage.defaults,X);P.pageContainer=P.pageContainer||l.mobile.pageContainer;P.fromPage=P.fromPage||l.mobile.activePage;var R=P.pageContainer,L=new l.Event("pagebeforechange"),H={toPage:V,options:P};R.trigger(L,H);if(L.isDefaultPrevented()){return}V=H.toPage;B=true;if(typeof V=="string"){l.mobile.loadPage(V,P).done(function(aa,Z,ab,Y){B=false;Z.duplicateCachedPage=Y;l.mobile.changePage(ab,Z)}).fail(function(Z,Y){B=false;D(true);v();P.pageContainer.trigger("pagechangefailed",H)});return}if(V[0]===l.mobile.firstPage[0]&&!P.dataUrl){P.dataUrl=k.hrefNoHash}var J=P.fromPage,I=(P.dataUrl&&w.convertUrlToDataUrl(P.dataUrl))||V.jqmData("url"),O=I,U=w.getFilePath(I),N=j.getActive(),W=j.activeIndex===0,K=0,S=a.title,M=P.role==="dialog"||V.jqmData("role")==="dialog";if(J&&J[0]===V[0]&&!P.allowSamePageTransition){B=false;R.trigger("pagechange",H);return}y(V,P.role);if(P.fromHashChange){j.directHashChange({currentUrl:I,isBack:function(){K=-1},isForward:function(){K=1}})}try{if(a.activeElement&&a.activeElement.nodeName.toLowerCase()!="body"){l(a.activeElement).blur()}else{l("input:focus, textarea:focus, select:focus").blur()}}catch(T){}if(M&&N){I=(N.url||"")+F}if(P.changeHash!==false&&I){j.ignoreNextHashChange=true;w.set(I)}var Q=(!N)?S:V.jqmData("title")||V.children(":jqmData(role='header')").find(".ui-title").getEncodedText();if(!!Q&&S==a.title){S=Q}if(!V.jqmData("title")){V.jqmData("title",S)}P.transition=P.transition||((K&&!W)?N.transition:n)||(M?l.mobile.defaultDialogTransition:l.mobile.defaultPageTransition);if(!K){j.addNew(I,P.transition,S,O,P.role)}a.title=j.getActive().title;l.mobile.activePage=V;P.reverse=P.reverse||K<0;C(V,J,P.transition,P.reverse).done(function(Z,Y,ac,ab,aa){D();if(P.duplicateCachedPage){P.duplicateCachedPage.remove()}if(!aa){l.mobile.focusPage(V)}v();R.trigger("pagechange",H)})};l.mobile.changePage.defaults={transition:n,reverse:false,changeHash:true,fromHashChange:false,role:n,duplicateCachedPage:n,pageContainer:n,showLoadMsg:true,dataUrl:n,fromPage:n,allowSamePageTransition:false};function o(H){while(H){if((typeof H.nodeName==="string")&&H.nodeName.toLowerCase()=="a"){break}H=H.parentNode}return H}function h(J){var H=l(J).closest(".ui-page").jqmData("url"),I=A.hrefNoHash;if(!H||!w.isPath(H)){H=I}return w.makeUrlAbsolute(H,I)}l.mobile._registerInternalEvents=function(){l(a).delegate("form","submit",function(J){var L=l(this);if(!l.mobile.ajaxEnabled||L.is(":jqmData(ajax='false')")||!L.jqmHijackable().length){return}var I=L.attr("method"),K=L.attr("target"),H=L.attr("action");if(!H){H=h(L);if(H===A.hrefNoHash){H=k.hrefNoSearch}}H=w.makeUrlAbsolute(H,h(L));if(w.isExternal(H)||K){return}l.mobile.changePage(H,{type:I&&I.length&&I.toLowerCase()||"get",data:L.serialize(),transition:L.jqmData("transition"),direction:L.jqmData("direction"),reloadPage:true});J.preventDefault()});l(a).bind("vclick",function(I){if(I.which>1||!l.mobile.linkBindingEnabled){return}var H=o(I.target);if(!l(H).jqmHijackable().length){return}if(H){if(w.parseUrl(H.getAttribute("href")||"#").hash!=="#"){D(true);G=l(H).closest(".ui-btn").not(".ui-disabled");G.addClass(l.mobile.activeBtnClass);l(H).jqmData("href",l(H).attr("href")).attr("href","#")}}});l(a).bind("click",function(I){if(!l.mobile.linkBindingEnabled){return}var S=o(I.target),P=l(S),L;if(!S||I.which>1||!P.jqmHijackable().length){return}L=function(){b.setTimeout(function(){D(true)},200)};if(P.jqmData("href")){P.attr("href",P.jqmData("href"))}if(P.is(":jqmData(rel='back')")){b.history.back();return false}var O=h(P),J=w.makeUrlAbsolute(P.attr("href")||"#",O);if(!l.mobile.ajaxEnabled&&!w.isEmbeddedPage(J)){L();return}if(J.search("#")!=-1){J=J.replace(/[^#]*#/,"");if(!J){I.preventDefault();return}else{if(w.isPath(J)){J=w.makeUrlAbsolute(J,O)}else{J=w.makeUrlAbsolute("#"+J,k.hrefNoHash)}}}var K=P.is("[rel='external']")||P.is(":jqmData(ajax='false')")||P.is("[target]"),R=(l.mobile.allowCrossDomainPages&&k.protocol==="file:"&&J.search(/^https?:/)!=-1),H=K||(w.isExternal(J)&&!R);if(H){L();return}var Q=P.jqmData("transition"),T=P.jqmData("direction"),N=(T&&T==="reverse")||P.jqmData("back"),M=P.attr("data-"+l.mobile.ns+"rel")||n;l.mobile.changePage(J,{transition:Q,reverse:N,role:M});I.preventDefault()});l(a).delegate(".ui-page","pageshow.prefetch",function(){var H=[];l(this).find("a:jqmData(prefetch)").each(function(){var I=l(this),J=I.attr("href");if(J&&l.inArray(J,H)===-1){H.push(J);l.mobile.loadPage(J,{role:I.attr("data-"+l.mobile.ns+"rel")})}})});l.mobile._handleHashChange=function(I){var K=w.stripHash(I),J=l.mobile.urlHistory.stack.length===0?"none":n,H={transition:J,changeHash:false,fromHashChange:true};if(!l.mobile.hashListeningEnabled||j.ignoreNextHashChange){j.ignoreNextHashChange=false;return}if(j.stack.length>1&&K.indexOf(F)>-1){if(!l.mobile.activePage.is(".ui-dialog")){j.directHashChange({currentUrl:K,isBack:function(){b.history.back()},isForward:function(){b.history.forward()}});return}else{j.directHashChange({currentUrl:K,either:function(L){var M=l.mobile.urlHistory.getActive();K=M.pageUrl;l.extend(H,{role:M.role,transition:M.transition,reverse:L})}})}}if(K){K=(typeof K==="string"&&!w.isPath(K))?(w.makeUrlAbsolute("#"+K,A)):K;l.mobile.changePage(K,H)}else{l.mobile.changePage(l.mobile.firstPage,H)}};u.bind("hashchange",function(I,H){l.mobile._handleHashChange(location.hash)});l(a).bind("pageshow",e);l(b).bind("throttledresize",e)}})(jQuery);(function(j,h){var g={},e=g,k=j(h),f=j.mobile.path.parseUrl(location.href);j.extend(g,{initialFilePath:(function(){return f.pathname+f.search})(),initialHref:f.hrefNoHash,state:function(){return{hash:location.hash||"#"+e.initialFilePath,title:a.title,initialHref:e.initialHref}},resetUIKeys:function(m){var n=j.mobile.dialogHashKey,l="&"+j.mobile.subPageUrlKey,o=m.indexOf(n);if(o>-1){m=m.slice(0,o)+"#"+m.slice(o)}else{if(m.indexOf(l)>-1){m=m.split(l).join("#"+l)}}return m},hashValueAfterReset:function(m){var l=e.resetUIKeys(m);return j.mobile.path.parseUrl(l).hash},nextHashChangePrevented:function(l){j.mobile.urlHistory.ignoreNextHashChange=l;e.onHashChangeDisabled=l},onHashChange:function(p){if(e.onHashChangeDisabled){return}var l,m,o=location.hash,q=j.mobile.path.isPath(o),n=q?location.href:j.mobile.getDocumentUrl();o=q?o.replace("#",""):o;m=e.state();l=j.mobile.path.makeUrlAbsolute(o,n);if(q){l=e.resetUIKeys(l)}history.replaceState(m,a.title,l)},onPopState:function(p){var m=p.originalEvent.state,o,q,n,l;if(m){q=e.hashValueAfterReset(j.mobile.urlHistory.getActive().url);n=e.hashValueAfterReset(m.hash.replace("#",""));l=q!==n;if(l){k.one("hashchange.pushstate",function(){e.nextHashChangePrevented(false)})}e.nextHashChangePrevented(false);j.mobile._handleHashChange(m.hash);if(l){e.nextHashChangePrevented(true)}}},init:function(){k.bind("hashchange",e.onHashChange);k.bind("popstate",e.onPopState);if(location.hash===""){history.replaceState(e.state(),a.title,location.href)}}});j(function(){if(j.mobile.pushStateEnabled&&j.support.pushState){g.init()}})})(jQuery,this);(function(f,e,g){f.mobile.transitionFallbacks.pop="fade"})(jQuery,this);(function(f,e,g){f.mobile.transitionHandlers.slide=f.mobile.transitionHandlers.simultaneous;f.mobile.transitionFallbacks.slide="fade"})(jQuery,this);(function(f,e,g){f.mobile.transitionFallbacks.slidedown="fade"})(jQuery,this);(function(f,e,g){f.mobile.transitionFallbacks.slideup="fade"})(jQuery,this);(function(f,e,g){f.mobile.transitionFallbacks.flip="fade"})(jQuery,this);(function(f,e,g){f.mobile.transitionFallbacks.flow="fade"})(jQuery,this);(function(f,e,g){f.mobile.transitionFallbacks.turn="fade"})(jQuery,this);(function(e,f){e.mobile.page.prototype.options.degradeInputs={color:false,date:false,datetime:false,"datetime-local":false,email:false,month:false,number:false,range:"number",search:"text",tel:false,time:false,url:false,week:false};e(a).bind("pagecreate create",function(j){var h=e.mobile.closestPageData(e(j.target)),g;if(!h){return}g=h.options;e(j.target).find("input").not(h.keepNativeSelector()).each(function(){var q=e(this),p=this.getAttribute("type"),l=g.degradeInputs[p]||"text";if(g.degradeInputs[p]){var o=e("<div>").html(q.clone()).html(),k=o.indexOf(" type=")>-1,n=k?/\s+type=["']?\w+['"]?/:/\/?>/,m=' type="'+l+'" data-'+e.mobile.ns+'type="'+p+'"'+(k?"":">");q.replaceWith(o.replace(n,m))}})})})(jQuery);(function(f,e,g){f.widget("mobile.dialog",f.mobile.widget,{options:{closeBtnText:"Close",overlayTheme:"a",initSelector:":jqmData(role='dialog')"},_create:function(){var j=this,k=this.element,h=f("<a href='#' data-"+f.mobile.ns+"icon='delete' data-"+f.mobile.ns+"iconpos='notext'>"+this.options.closeBtnText+"</a>"),l=f("<div/>",{role:"dialog","class":"ui-dialog-contain ui-corner-all ui-overlay-shadow"});k.addClass("ui-dialog ui-overlay-"+this.options.overlayTheme);k.wrapInner(l).children().find(":jqmData(role='header')").prepend(h).end().children(":first-child").addClass("ui-corner-top").end().children(":last-child").addClass("ui-corner-bottom");h.bind("click",function(){j.close()});k.bind("vclick submit",function(n){var m=f(n.target).closest(n.type==="vclick"?"a":"form"),o;if(m.length&&!m.jqmData("transition")){o=f.mobile.urlHistory.getActive()||{};m.attr("data-"+f.mobile.ns+"transition",(o.transition||f.mobile.defaultDialogTransition)).attr("data-"+f.mobile.ns+"direction","reverse")}}).bind("pagehide",function(n,m){f(this).find("."+f.mobile.activeBtnClass).removeClass(f.mobile.activeBtnClass)}).bind("pagebeforeshow",function(){if(j.options.overlayTheme){j.element.page("removeContainerBackground").page("setContainerBackground",j.options.overlayTheme)}})},close:function(){e.history.back()}});f(a).delegate(f.mobile.dialog.prototype.options.initSelector,"pagecreate",function(){f.mobile.dialog.prototype.enhance(this)})})(jQuery,this);(function(e,f){e.fn.fieldcontain=function(g){return this.addClass("ui-field-contain ui-body ui-br")};e(a).bind("pagecreate create",function(g){e(":jqmData(role='fieldcontain')",g.target).jqmEnhanceable().fieldcontain()})})(jQuery);(function(e,f){e.fn.grid=function(g){return this.each(function(){var m=e(this),n=e.extend({grid:null},g),p=m.children(),k={solo:1,a:2,b:3,c:4,d:5},h=n.grid,j;if(!h){if(p.length<=5){for(var l in k){if(k[l]===p.length){h=l}}}else{h="a"}}j=k[h];m.addClass("ui-grid-"+h);p.filter(":nth-child("+j+"n+1)").addClass("ui-block-a");if(j>1){p.filter(":nth-child("+j+"n+2)").addClass("ui-block-b")}if(j>2){p.filter(":nth-child(3n+3)").addClass("ui-block-c")}if(j>3){p.filter(":nth-child(4n+4)").addClass("ui-block-d")}if(j>4){p.filter(":nth-child(5n+5)").addClass("ui-block-e")}})}})(jQuery);(function(e,f){e(a).bind("pagecreate create",function(g){e(":jqmData(role='nojs')",g.target).addClass("ui-nojs")})})(jQuery);(function(f,g){f.fn.buttonMarkup=function(x){var q=this;x=(x&&(f.type(x)=="object"))?x:{};for(var l=0;l<q.length;l++){var k=q.eq(l),n=k[0],j=f.extend({},f.fn.buttonMarkup.defaults,{icon:x.icon!==g?x.icon:k.jqmData("icon"),iconpos:x.iconpos!==g?x.iconpos:k.jqmData("iconpos"),theme:x.theme!==g?x.theme:k.jqmData("theme")||f.mobile.getInheritedTheme(k,"c"),inline:x.inline!==g?x.inline:k.jqmData("inline"),shadow:x.shadow!==g?x.shadow:k.jqmData("shadow"),corners:x.corners!==g?x.corners:k.jqmData("corners"),iconshadow:x.iconshadow!==g?x.iconshadow:k.jqmData("iconshadow"),mini:x.mini!==g?x.mini:k.jqmData("mini")},x),u="ui-btn-inner",t="ui-btn-text",v,r,m,s,p,w;f.each(j,function(o,y){n.setAttribute("data-"+f.mobile.ns+o,y);k.jqmData(o,y)});w=f.data(((n.tagName==="INPUT"||n.tagName==="BUTTON")?n.parentNode:n),"buttonElements");if(w){n=w.outer;k=f(n);m=w.inner;s=w.text;f(w.icon).remove();w.icon=null}else{m=a.createElement(j.wrapperEls);s=a.createElement(j.wrapperEls)}p=j.icon?a.createElement("span"):null;if(e&&!w){e()}if(!j.theme){j.theme=f.mobile.getInheritedTheme(k,"c")}v="ui-btn ui-btn-up-"+j.theme;v+=j.inline?" ui-btn-inline":"";v+=j.shadow?" ui-shadow":"";v+=j.corners?" ui-btn-corner-all":"";if(j.mini!==g){v+=j.mini?" ui-mini":" ui-fullsize"}if(j.inline!==g){v+=j.inline===false?" ui-btn-block":" ui-btn-inline"}if(j.icon){j.icon="ui-icon-"+j.icon;j.iconpos=j.iconpos||"left";r="ui-icon "+j.icon;if(j.iconshadow){r+=" ui-icon-shadow"}}if(j.iconpos){v+=" ui-btn-icon-"+j.iconpos;if(j.iconpos=="notext"&&!k.attr("title")){k.attr("title",k.getEncodedText())}}u+=j.corners?" ui-btn-corner-all":"";if(j.iconpos&&j.iconpos==="notext"&&!k.attr("title")){k.attr("title",k.getEncodedText())}if(w){k.removeClass(w.bcls||"")}k.removeClass("ui-link").addClass(v);m.className=u;s.className=t;if(!w){m.appendChild(s)}if(p){p.className=r;if(!(w&&w.icon)){p.appendChild(a.createTextNode("\u00a0"));m.appendChild(p)}}while(n.firstChild&&!w){s.appendChild(n.firstChild)}if(!w){n.appendChild(m)}w={bcls:v,outer:n,inner:m,text:s,icon:p};f.data(n,"buttonElements",w);f.data(m,"buttonElements",w);f.data(s,"buttonElements",w);if(p){f.data(p,"buttonElements",w)}}return this};f.fn.buttonMarkup.defaults={corners:true,shadow:true,iconshadow:true,wrapperEls:"span"};function h(k){var j;while(k){j=(typeof k.className==="string")&&(k.className+" ");if(j&&j.indexOf("ui-btn ")>-1&&j.indexOf("ui-disabled ")<0){break}k=k.parentNode}return k}var e=function(){var k=f.mobile.buttonMarkup.hoverDelay,l,j;f(a).bind({"vmousedown vmousecancel vmouseup vmouseover vmouseout focus blur scrollstart":function(o){var p,n=f(h(o.target)),m=o.type;if(n.length){p=n.attr("data-"+f.mobile.ns+"theme");if(m==="vmousedown"){if(f.support.touch){l=setTimeout(function(){n.removeClass("ui-btn-up-"+p).addClass("ui-btn-down-"+p)},k)}else{n.removeClass("ui-btn-up-"+p).addClass("ui-btn-down-"+p)}}else{if(m==="vmousecancel"||m==="vmouseup"){n.removeClass("ui-btn-down-"+p).addClass("ui-btn-up-"+p)}else{if(m==="vmouseover"||m==="focus"){if(f.support.touch){j=setTimeout(function(){n.removeClass("ui-btn-up-"+p).addClass("ui-btn-hover-"+p)},k)}else{n.removeClass("ui-btn-up-"+p).addClass("ui-btn-hover-"+p)}}else{if(m==="vmouseout"||m==="blur"||m==="scrollstart"){n.removeClass("ui-btn-hover-"+p+" ui-btn-down-"+p).addClass("ui-btn-up-"+p);if(l){clearTimeout(l)}if(j){clearTimeout(j)}}}}}}},"focusin focus":function(m){f(h(m.target)).addClass(f.mobile.focusClass)},"focusout blur":function(m){f(h(m.target)).removeClass(f.mobile.focusClass)}});e=null};f(a).bind("pagecreate create",function(j){f(":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a",j.target).not(".ui-btn, :jqmData(role='none'), :jqmData(role='nojs')").buttonMarkup()})})(jQuery);(function(e,f){e.mobile.page.prototype.options.backBtnText="Back";e.mobile.page.prototype.options.addBackBtn=false;e.mobile.page.prototype.options.backBtnTheme=null;e.mobile.page.prototype.options.headerTheme="a";e.mobile.page.prototype.options.footerTheme="a";e.mobile.page.prototype.options.contentTheme=null;e(a).delegate(":jqmData(role='page'), :jqmData(role='dialog')","pagecreate",function(k){var g=e(this),l=g.data("page").options,j=g.jqmData("role"),h=l.theme;e(":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')",this).jqmEnhanceable().each(function(){var r=e(this),n=r.jqmData("role"),o=r.jqmData("theme"),m=o||l.contentTheme||(j==="dialog"&&h),q,s,u,p;r.addClass("ui-"+n);if(n==="header"||n==="footer"){var t=o||(n==="header"?l.headerTheme:l.footerTheme)||h;r.addClass("ui-bar-"+t).attr("role",n==="header"?"banner":"contentinfo");if(n==="header"){q=r.children("a");s=q.hasClass("ui-btn-left");u=q.hasClass("ui-btn-right");s=s||q.eq(0).not(".ui-btn-right").addClass("ui-btn-left").length;u=u||q.eq(1).addClass("ui-btn-right").length}if(l.addBackBtn&&n==="header"&&e(".ui-page").length>1&&g.jqmData("url")!==e.mobile.path.stripHash(location.hash)&&!s){p=e("<a href='#' class='ui-btn-left' data-"+e.mobile.ns+"rel='back' data-"+e.mobile.ns+"icon='arrow-l'>"+l.backBtnText+"</a>").attr("data-"+e.mobile.ns+"theme",l.backBtnTheme||t).prependTo(r)}r.children("h1, h2, h3, h4, h5, h6").addClass("ui-title").attr({role:"heading","aria-level":"1"})}else{if(n==="content"){if(m){r.addClass("ui-body-"+(m))}r.attr("role","main")}}})})})(jQuery);(function(e,f){e.widget("mobile.collapsible",e.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:true,heading:"h1,h2,h3,h4,h5,h6,legend",theme:null,contentTheme:null,iconTheme:"d",mini:false,initSelector:":jqmData(role='collapsible')"},_create:function(){var j=this.element,l=this.options,k=j.addClass("ui-collapsible"),g=j.children(l.heading).first(),m=k.wrapInner("<div class='ui-collapsible-content'></div>").find(".ui-collapsible-content"),h=j.closest(":jqmData(role='collapsible-set')").addClass("ui-collapsible-set");if(g.is("legend")){g=e("<div role='heading'>"+g.html()+"</div>").insertBefore(g);g.next().remove()}if(h.length){if(!l.theme){l.theme=h.jqmData("theme")||e.mobile.getInheritedTheme(h,"c")}if(!l.contentTheme){l.contentTheme=h.jqmData("content-theme")}if(!l.iconPos){l.iconPos=h.jqmData("iconpos")}if(!l.mini){l.mini=h.jqmData("mini")}}m.addClass((l.contentTheme)?("ui-body-"+l.contentTheme):"");g.insertBefore(m).addClass("ui-collapsible-heading").append("<span class='ui-collapsible-heading-status'></span>").wrapInner("<a href='#' class='ui-collapsible-heading-toggle'></a>").find("a").first().buttonMarkup({shadow:false,corners:false,iconpos:j.jqmData("iconpos")||l.iconPos||"left",icon:"plus",mini:l.mini,theme:l.theme}).add(".ui-btn-inner",j).addClass("ui-corner-top ui-corner-bottom");k.bind("expand collapse",function(o){if(!o.isDefaultPrevented()){o.preventDefault();var q=e(this),p=(o.type==="collapse"),n=l.contentTheme;g.toggleClass("ui-collapsible-heading-collapsed",p).find(".ui-collapsible-heading-status").text(p?l.expandCueText:l.collapseCueText).end().find(".ui-icon").toggleClass("ui-icon-minus",!p).toggleClass("ui-icon-plus",p);q.toggleClass("ui-collapsible-collapsed",p);m.toggleClass("ui-collapsible-content-collapsed",p).attr("aria-hidden",p);if(n&&(!h.length||k.jqmData("collapsible-last"))){g.find("a").first().add(g.find(".ui-btn-inner")).toggleClass("ui-corner-bottom",p);m.toggleClass("ui-corner-bottom",!p)}m.trigger("updatelayout")}}).trigger(l.collapsed?"collapse":"expand");g.bind("click",function(o){var n=g.is(".ui-collapsible-heading-collapsed")?"expand":"collapse";k.trigger(n);o.preventDefault()})}});e(a).bind("pagecreate create",function(g){e.mobile.collapsible.prototype.enhanceWithin(g.target)})})(jQuery);(function(e,f){e.widget("mobile.collapsibleset",e.mobile.widget,{options:{initSelector:":jqmData(role='collapsible-set')"},_create:function(){var g=this.element.addClass("ui-collapsible-set"),h=this.options;if(!h.theme){h.theme=e.mobile.getInheritedTheme(g,"c")}if(!h.contentTheme){h.contentTheme=g.jqmData("content-theme")}if(!h.corners){h.corners=g.jqmData("corners")===f?true:false}if(!g.jqmData("collapsiblebound")){g.jqmData("collapsiblebound",true).bind("expand collapse",function(l){var n=(l.type==="collapse"),k=e(l.target).closest(".ui-collapsible"),m=k.data("collapsible"),j=m.options.contentTheme;if(j&&k.jqmData("collapsible-last")){k.find(m.options.heading).first().find("a").first().add(".ui-btn-inner").toggleClass("ui-corner-bottom",n);k.find(".ui-collapsible-content").toggleClass("ui-corner-bottom",!n)}}).bind("expand",function(j){e(j.target).closest(".ui-collapsible").siblings(".ui-collapsible").trigger("collapse")})}},_init:function(){this.refresh()},refresh:function(){var g=this.element,j=this.options,h=g.children(":jqmData(role='collapsible')");e.mobile.collapsible.prototype.enhance(h.not(".ui-collapsible"));h.each(function(){e(this).find(e.mobile.collapsible.prototype.options.heading).find("a").first().add(".ui-btn-inner").removeClass("ui-corner-top ui-corner-bottom")});h.first().find("a").first().addClass(j.corners?"ui-corner-top":"").find(".ui-btn-inner").addClass("ui-corner-top");h.last().jqmData("collapsible-last",true).find("a").first().addClass(j.corners?"ui-corner-bottom":"").find(".ui-btn-inner").addClass("ui-corner-bottom")}});e(a).bind("pagecreate create",function(g){e.mobile.collapsibleset.prototype.enhanceWithin(g.target)})})(jQuery);(function(e,f){e.widget("mobile.navbar",e.mobile.widget,{options:{iconpos:"top",grid:null,initSelector:":jqmData(role='navbar')"},_create:function(){var j=this.element,g=j.find("a"),h=g.filter(":jqmData(icon)").length?this.options.iconpos:f;j.addClass("ui-navbar").attr("role","navigation").find("ul").jqmEnhanceable().grid({grid:this.options.grid});if(!h){j.addClass("ui-navbar-noicons")}g.buttonMarkup({corners:false,shadow:false,inline:true,iconpos:h});j.delegate("a","vclick",function(k){if(!e(k.target).hasClass("ui-disabled")){g.removeClass(e.mobile.activeBtnClass);e(this).addClass(e.mobile.activeBtnClass)}});j.closest(".ui-page").bind("pagebeforeshow",function(){g.filter(".ui-state-persist").addClass(e.mobile.activeBtnClass)})}});e(a).bind("pagecreate create",function(g){e.mobile.navbar.prototype.enhanceWithin(g.target)})})(jQuery);(function(e,g){var f={};e.widget("mobile.listview",e.mobile.widget,{options:{theme:null,countTheme:"c",headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",mini:false,inset:false,initSelector:":jqmData(role='listview')"},_create:function(){var j=this,h="";h+=j.options.inset?" ui-listview-inset ui-corner-all ui-shadow ":"";h+=j.element.jqmData("mini")||j.options.mini===true?" ui-mini":"";j.element.addClass(function(k,l){return l+" ui-listview "+h});j.refresh(true)},_removeCorners:function(h,k){var j="ui-corner-top ui-corner-tr ui-corner-tl",l="ui-corner-bottom ui-corner-br ui-corner-bl";h=h.add(h.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb"));if(k==="top"){h.removeClass(j)}else{if(k==="bottom"){h.removeClass(l)}else{h.removeClass(j+" "+l)}}},_refreshCorners:function(k){var m,j,h,l;if(this.options.inset){m=this.element.children("li");j=k?m.not(".ui-screen-hidden"):m.filter(":visible");this._removeCorners(m);h=j.first().addClass("ui-corner-top");h.add(h.find(".ui-btn-inner").not(".ui-li-link-alt span:first-child")).addClass("ui-corner-top").end().find(".ui-li-link-alt, .ui-li-link-alt span:first-child").addClass("ui-corner-tr").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-tl");l=j.last().addClass("ui-corner-bottom");l.add(l.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-bl")}if(!k){this.element.trigger("updatelayout")}},_findFirstElementByTagName:function(l,j,h,k){var m={};m[h]=m[k]=true;while(l){if(m[l.nodeName]){return l}l=l[j]}return null},_getChildrenByTagName:function(l,j,k){var h=[],m={};m[j]=m[k]=true;l=l.firstChild;while(l){if(m[l.nodeName]){h.push(l)}l=l.nextSibling}return e(h)},_addThumbClasses:function(l){var k,j,h=l.length;for(k=0;k<h;k++){j=e(this._findFirstElementByTagName(l[k].firstChild,"nextSibling","img","IMG"));if(j.length){j.addClass("ui-li-thumb");e(this._findFirstElementByTagName(j[0].parentNode,"parentNode","li","LI")).addClass(j.is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb")}}},refresh:function(w){this.parentPage=this.element.closest(".ui-page");this._createSubPages();var A=this.options,h=this.element,z=this,E=h.jqmData("dividertheme")||A.dividerTheme,x=h.jqmData("splittheme"),p=h.jqmData("spliticon"),y=this._getChildrenByTagName(h[0],"li","LI"),t=e.support.cssPseudoElement||!e.nodeName(h[0],"ol")?0:1,v={},C,j,u,D,s,m,k,B,q,F,n;if(t){h.find(".ui-li-dec").remove()}if(!A.theme){A.theme=e.mobile.getInheritedTheme(this.element,"c")}for(var r=0,l=y.length;r<l;r++){C=y.eq(r);j="ui-li";if(w||!C.hasClass("ui-li")){u=C.jqmData("theme")||A.theme;D=this._getChildrenByTagName(C[0],"a","A");if(D.length){B=C.jqmData("icon");C.buttonMarkup({wrapperEls:"div",shadow:false,corners:false,iconpos:"right",icon:D.length>1||B===false?false:B||"arrow-r",theme:u});if((B!=false)&&(D.length==1)){C.addClass("ui-li-has-arrow")}D.first().removeClass("ui-link").addClass("ui-link-inherit");if(D.length>1){j+=" ui-li-has-alt";s=D.last();m=x||s.jqmData("theme")||A.splitTheme;n=s.jqmData("icon");s.appendTo(C).attr("title",s.getEncodedText()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:false,corners:false,theme:u,icon:false,iconpos:false}).find(".ui-btn-inner").append(e(a.createElement("span")).buttonMarkup({shadow:true,corners:true,theme:m,iconpos:"notext",icon:n||B||p||A.splitIcon}))}}else{if(C.jqmData("role")==="list-divider"){j+=" ui-li-divider ui-bar-"+E;C.attr("role","heading");if(t){t=1}}else{j+=" ui-li-static ui-body-"+u}}}if(t&&j.indexOf("ui-li-divider")<0){k=C.is(".ui-li-static:first")?C:C.find(".ui-link-inherit");k.addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+(t++)+". </span>")}if(!v[j]){v[j]=[]}v[j].push(C[0])}for(j in v){e(v[j]).addClass(j).children(".ui-btn-inner").addClass(j)}h.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading").end().find("p, dl").addClass("ui-li-desc").end().find(".ui-li-aside").each(function(){var o=e(this);o.prependTo(o.parent())}).end().find(".ui-li-count").each(function(){e(this).closest("li").addClass("ui-li-has-count")}).addClass("ui-btn-up-"+(h.jqmData("counttheme")||this.options.countTheme)+" ui-btn-corner-all");this._addThumbClasses(y);this._addThumbClasses(h.find(".ui-link-inherit"));this._refreshCorners(w)},_idStringEscape:function(h){return h.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var r=this.element,s=r.closest(".ui-page"),j=s.jqmData("url"),m=j||s[0][e.expando],k=r.attr("id"),l=this.options,n="data-"+e.mobile.ns,t=this,q=s.find(":jqmData(role='footer')").jqmData("id"),h;if(typeof f[m]==="undefined"){f[m]=-1}k=k||++f[m];e(r.find("li>ul, li>ol").toArray().reverse()).each(function(y){var D=this,A=e(this),z=A.attr("id")||k+"-"+y,C=A.parent(),E=e(A.prevAll().toArray().reverse()),E=E.length?E:e("<span>"+e.trim(C.contents()[0].nodeValue)+"</span>"),B=E.first().getEncodedText(),o=(j||"")+"&"+e.mobile.subPageUrlKey+"="+z,x=A.jqmData("theme")||l.theme,u=A.jqmData("counttheme")||r.jqmData("counttheme")||l.countTheme,v,w;h=true;v=A.detach().wrap("<div "+n+"role='page' "+n+"url='"+o+"' "+n+"theme='"+x+"' "+n+"count-theme='"+u+"'><div "+n+"role='content'></div></div>").parent().before("<div "+n+"role='header' "+n+"theme='"+l.headerTheme+"'><div class='ui-title'>"+B+"</div></div>").after(q?e("<div "+n+"role='footer' "+n+"id='"+q+"'>"):"").parent().appendTo(e.mobile.pageContainer);v.page();w=C.find("a:first");if(!w.length){w=e("<a/>").html(E||B).prependTo(C.empty())}w.attr("href","#"+o)}).listview();if(h&&s.is(":jqmData(external-page='true')")&&s.data("page").options.domCache===false){var p=function(w,v){var o=v.nextPage,u;if(v.nextPage){u=o.jqmData("url");if(u.indexOf(j+"&"+e.mobile.subPageUrlKey)!==0){t.childPages().remove();s.remove()}}};s.unbind("pagehide.remove").bind("pagehide.remove",p)}},childPages:function(){var h=this.parentPage.jqmData("url");return e(":jqmData(url^='"+h+"&"+e.mobile.subPageUrlKey+"')")}});e(a).bind("pagecreate create",function(h){e.mobile.listview.prototype.enhanceWithin(h.target)})})(jQuery);(function(e,f){e.widget("mobile.checkboxradio",e.mobile.widget,{options:{theme:null,initSelector:"input[type='checkbox'],input[type='radio']"},_create:function(){var x=this,t=this.element,o=function(y,z){return y.jqmData(z)||y.closest("form,fieldset").jqmData(z)},n=e(t).closest("label"),s=n.length?n:e(t).closest("form,fieldset,:jqmData(role='page'),:jqmData(role='dialog')").find("label").filter("[for='"+t[0].id+"']"),v=t[0].type,m=o(t,"mini"),w=v+"-on",u=v+"-off",q=t.parents(":jqmData(type='horizontal')").length?f:u,p=o(t,"iconpos"),h=q?"":" "+e.mobile.activeBtnClass,l="ui-"+w+h,k="ui-"+u,r="ui-icon-"+w,g="ui-icon-"+u;if(v!=="checkbox"&&v!=="radio"){return}e.extend(this,{label:s,inputtype:v,checkedClass:l,uncheckedClass:k,checkedicon:r,uncheckedicon:g});if(!this.options.theme){this.options.theme=e.mobile.getInheritedTheme(this.element,"c")}s.buttonMarkup({theme:this.options.theme,icon:q,shadow:false,mini:m,iconpos:p});var j=a.createElement("div");j.className="ui-"+v;t.add(s).wrapAll(j);s.bind({vmouseover:function(y){if(e(this).parent().is(".ui-disabled")){y.stopPropagation()}},vclick:function(y){if(t.is(":disabled")){y.preventDefault();return}x._cacheVals();t.prop("checked",v==="radio"&&true||!t.prop("checked"));t.triggerHandler("click");x._getInputSet().not(t).prop("checked",false);x._updateAll();return false}});t.bind({vmousedown:function(){x._cacheVals()},vclick:function(){var y=e(this);if(y.is(":checked")){y.prop("checked",true);x._getInputSet().not(y).prop("checked",false)}else{y.prop("checked",false)}x._updateAll()},focus:function(){s.addClass(e.mobile.focusClass)},blur:function(){s.removeClass(e.mobile.focusClass)}});this.refresh()},_cacheVals:function(){this._getInputSet().each(function(){e(this).jqmData("cacheVal",this.checked)})},_getInputSet:function(){if(this.inputtype==="checkbox"){return this.element}return this.element.closest("form,fieldset,:jqmData(role='page')").find("input[name='"+this.element[0].name+"'][type='"+this.inputtype+"']")},_updateAll:function(){var g=this;this._getInputSet().each(function(){var h=e(this);if(this.checked||g.inputtype==="checkbox"){h.trigger("change")}}).checkboxradio("refresh")},refresh:function(){var g=this.element[0],h=this.label,j=h.find(".ui-icon");if(g.checked){h.addClass(this.checkedClass).removeClass(this.uncheckedClass);j.addClass(this.checkedicon).removeClass(this.uncheckedicon)}else{h.removeClass(this.checkedClass).addClass(this.uncheckedClass);j.removeClass(this.checkedicon).addClass(this.uncheckedicon)}if(g.disabled){this.disable()}else{this.enable()}},disable:function(){this.element.prop("disabled",true).parent().addClass("ui-disabled")},enable:function(){this.element.prop("disabled",false).parent().removeClass("ui-disabled")}});e(a).bind("pagecreate create",function(g){e.mobile.checkboxradio.prototype.enhanceWithin(g.target,true)})})(jQuery);(function(e,f){e.widget("mobile.button",e.mobile.widget,{options:{theme:null,icon:null,iconpos:null,inline:false,corners:true,shadow:true,iconshadow:true,initSelector:"button, [type='button'], [type='submit'], [type='reset'], [type='image']",mini:false},_create:function(){var j=this.element,m,n=this.options,k,g,h="",l;if(j[0].tagName==="A"){!j.hasClass("ui-btn")&&j.buttonMarkup();return}if(!this.options.theme){this.options.theme=e.mobile.getInheritedTheme(this.element,"c")}if(!!~j[0].className.indexOf("ui-btn-left")){h="ui-btn-left"}if(!!~j[0].className.indexOf("ui-btn-right")){h="ui-btn-right"}this.button=e("<div></div>").text(j.text()||j.val()).insertBefore(j).buttonMarkup({theme:n.theme,icon:n.icon,iconpos:n.iconpos,inline:n.inline,corners:n.corners,shadow:n.shadow,iconshadow:n.iconshadow,mini:n.mini}).addClass(h).append(j.addClass("ui-btn-hidden"));m=this.button;k=j.attr("type");g=j.attr("name");if(k!=="button"&&k!=="reset"&&g){j.bind("vclick",function(){if(l===f){l=e("<input>",{type:"hidden",name:j.attr("name"),value:j.attr("value")}).insertBefore(j);e(a).one("submit",function(){l.remove();l=f})}})}j.bind({focus:function(){m.addClass(e.mobile.focusClass)},blur:function(){m.removeClass(e.mobile.focusClass)}});this.refresh()},enable:function(){this.element.attr("disabled",false);this.button.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.button.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)},refresh:function(){var g=this.element;if(g.prop("disabled")){this.disable()}else{this.enable()}e(this.button.data("buttonElements").text).text(g.text()||g.val())}});e(a).bind("pagecreate create",function(g){e.mobile.button.prototype.enhanceWithin(g.target,true)})})(jQuery);(function(e,f){e.fn.controlgroup=function(g){function h(k,j){k.removeClass("ui-btn-corner-all ui-shadow").eq(0).addClass(j[0]).end().last().addClass(j[1]).addClass("ui-controlgroup-last")}return this.each(function(){var k=e(this),m=e.extend({direction:k.jqmData("type")||"vertical",shadow:false,excludeInvisible:true,mini:k.jqmData("mini")},g),n=k.children("legend"),j=m.direction=="horizontal"?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"],l=k.find("input").first().attr("type");if(n.length){k.wrapInner("<div class='ui-controlgroup-controls'></div>");e("<div role='heading' class='ui-controlgroup-label'>"+n.html()+"</div>").insertBefore(k.children(0));n.remove()}k.addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+m.direction);h(k.find(".ui-btn"+(m.excludeInvisible?":visible":"")).not(".ui-slider-handle"),j);h(k.find(".ui-btn-inner"),j);if(m.shadow){k.addClass("ui-shadow")}if(m.mini){k.addClass("ui-mini")}})}})(jQuery);(function(e,f){e(a).bind("pagecreate create",function(g){e(g.target).find("a").jqmEnhanceable().not(".ui-btn, .ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')").addClass("ui-link")})})(jQuery);(function(g){var h=g("meta[name=viewport]"),f=h.attr("content"),k=f+",maximum-scale=1, user-scalable=no",j=f+",maximum-scale=10, user-scalable=yes",e=/(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test(f);g.mobile.zoom=g.extend({},{enabled:!e,locked:false,disable:function(l){if(!e&&!g.mobile.zoom.locked){h.attr("content",k);g.mobile.zoom.enabled=false;g.mobile.zoom.locked=l||false}},enable:function(l){if(!e&&(!g.mobile.zoom.locked||l===true)){h.attr("content",j);g.mobile.zoom.enabled=true;g.mobile.zoom.locked=false}},restore:function(){if(!e){h.attr("content",f);g.mobile.zoom.enabled=true}}})}(jQuery));(function(e,f){e.widget("mobile.textinput",e.mobile.widget,{options:{theme:null,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1,initSelector:"input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])",clearSearchButtonText:"clear text"},_create:function(){var r=this.element,j=this.options,l=j.theme||e.mobile.getInheritedTheme(this.element,"c"),u=" ui-body-"+l,p=r.jqmData("mini")==true,n=p?" ui-mini":"",m,s;e("label[for='"+r.attr("id")+"']").addClass("ui-input-text");m=r.addClass("ui-input-text ui-body-"+l);if(typeof r[0].autocorrect!=="undefined"&&!e.support.touchOverflow){r[0].setAttribute("autocorrect","off");r[0].setAttribute("autocomplete","off")}if(r.is("[type='search'],:jqmData(type='search')")){m=r.wrap("<div class='ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield"+u+n+"'></div>").parent();s=e("<a href='#' class='ui-input-clear' title='"+j.clearSearchButtonText+"'>"+j.clearSearchButtonText+"</a>").bind("click",function(o){r.val("").focus().trigger("change");s.addClass("ui-input-clear-hidden");o.preventDefault()}).appendTo(m).buttonMarkup({icon:"delete",iconpos:"notext",corners:true,shadow:true,mini:p});function h(){setTimeout(function(){s.toggleClass("ui-input-clear-hidden",!r.val())},0)}h();r.bind("paste cut keyup focus change blur",h)}else{r.addClass("ui-corner-all ui-shadow-inset"+u+n)}r.focus(function(){m.addClass(e.mobile.focusClass)}).blur(function(){m.removeClass(e.mobile.focusClass)}).bind("focus",function(){if(j.preventFocusZoom){e.mobile.zoom.disable(true)}}).bind("blur",function(){if(j.preventFocusZoom){e.mobile.zoom.enable(true)}});if(r.is("textarea")){var k=15,q=100,g=function(){var v=r[0].scrollHeight,o=r[0].clientHeight;if(o<v){r.height(v+k)}},t;r.keyup(function(){clearTimeout(t);t=setTimeout(g,q)});e(a).one("pagechange",g);if(e.trim(r.val())){e(b).load(g)}}},disable:function(){(this.element.attr("disabled",true).is("[type='search'],:jqmData(type='search')")?this.element.parent():this.element).addClass("ui-disabled")},enable:function(){(this.element.attr("disabled",false).is("[type='search'],:jqmData(type='search')")?this.element.parent():this.element).removeClass("ui-disabled")}});e(a).bind("pagecreate create",function(g){e.mobile.textinput.prototype.enhanceWithin(g.target,true)})})(jQuery);(function(e,f){e.mobile.listview.prototype.options.filter=false;e.mobile.listview.prototype.options.filterPlaceholder="Filter items...";e.mobile.listview.prototype.options.filterTheme="c";e.mobile.listview.prototype.options.filterCallback=function(h,g){return h.toLowerCase().indexOf(g)===-1};e(a).delegate(":jqmData(role='listview')","listviewcreate",function(){var j=e(this),h=j.data("listview");if(!h.options.filter){return}var k=e("<form>",{"class":"ui-listview-filter ui-bar-"+h.options.filterTheme,role:"search"}),g=e("<input>",{placeholder:h.options.filterPlaceholder}).attr("data-"+e.mobile.ns+"type","search").jqmData("lastval","").bind("keyup change",function(){var p=e(this),r=this.value.toLowerCase(),o=null,s=p.jqmData("lastval")+"",q=false,m="",n;p.jqmData("lastval",r);if(r.length<s.length||r.indexOf(s)!==0){o=j.children()}else{o=j.children(":not(.ui-screen-hidden)")}if(r){for(var l=o.length-1;l>=0;l--){n=e(o[l]);m=n.jqmData("filtertext")||n.text();if(n.is("li:jqmData(role=list-divider)")){n.toggleClass("ui-filter-hidequeue",!q);q=false}else{if(h.options.filterCallback(m,r)){n.toggleClass("ui-filter-hidequeue",true)}else{q=true}}}o.filter(":not(.ui-filter-hidequeue)").toggleClass("ui-screen-hidden",false);o.filter(".ui-filter-hidequeue").toggleClass("ui-screen-hidden",true).toggleClass("ui-filter-hidequeue",false)}else{o.toggleClass("ui-screen-hidden",false)}h._refreshCorners()}).appendTo(k).textinput();if(h.options.inset){k.addClass("ui-listview-filter-inset")}k.bind("submit",function(){return false}).insertBefore(j)})})(jQuery);(function(e,f){e.widget("mobile.slider",e.mobile.widget,{options:{theme:null,trackTheme:null,disabled:false,initSelector:"input[type='range'], :jqmData(type='range'), :jqmData(role='slider')",mini:false},_create:function(){var u=this,r=this.element,z=e.mobile.getInheritedTheme(r,"c"),J=this.options.theme||z,w=this.options.trackTheme||z,s=r[0].nodeName.toLowerCase(),G=(s=="select")?"ui-slider-switch":"",m=r.attr("id"),t=m+"-label",q=e("[for='"+m+"']").attr("id",t),M=function(){return s=="input"?parseFloat(r.val()):r[0].selectedIndex},y=s=="input"?parseFloat(r.attr("min")):0,C=s=="input"?parseFloat(r.attr("max")):r.find("option").length-1,p=b.parseFloat(r.attr("step")||1),v=(this.options.inline||r.jqmData("inline")==true)?" ui-slider-inline":"",K=(this.options.mini||r.jqmData("mini"))?" ui-slider-mini":"",H=a.createElement("a"),I=e(H),g=a.createElement("div"),x=e(g),F=r.jqmData("highlight")&&s!="select"?(function(){var j=a.createElement("div");j.className="ui-slider-bg ui-btn-active ui-btn-corner-all";return e(j).prependTo(x)})():false,l;H.setAttribute("href","#");g.setAttribute("role","application");g.className=["ui-slider ",G," ui-btn-down-",w," ui-btn-corner-all",v,K].join("");H.className="ui-slider-handle";g.appendChild(H);I.buttonMarkup({corners:true,theme:J,shadow:true}).attr({role:"slider","aria-valuemin":y,"aria-valuemax":C,"aria-valuenow":M(),"aria-valuetext":M(),title:M(),"aria-labelledby":t});e.extend(this,{slider:x,handle:I,valuebg:F,dragging:false,beforeStart:null,userModified:false,mouseMoved:false});if(s=="select"){var n=a.createElement("div");n.className="ui-slider-inneroffset";for(var A=0,k=g.childNodes.length;A<k;A++){n.appendChild(g.childNodes[A])}g.appendChild(n);I.addClass("ui-slider-handle-snapping");l=r.find("option");for(var B=0,L=l.length;B<L;B++){var h=!B?"b":"a",o=!B?" ui-btn-down-"+w:(" "+e.mobile.activeBtnClass),E=a.createElement("div"),D=a.createElement("span");D.className=["ui-slider-label ui-slider-label-",h,o," ui-btn-corner-all"].join("");D.setAttribute("role","img");D.appendChild(a.createTextNode(l[B].innerHTML));e(D).prependTo(x)}u._labels=e(".ui-slider-label",x)}q.addClass("ui-slider");r.addClass(s==="input"?"ui-slider-input":"ui-slider-switch").change(function(){if(!u.mouseMoved){u.refresh(M(),true)}}).keyup(function(){u.refresh(M(),true,true)}).blur(function(){u.refresh(M(),true)});e(a).bind("vmousemove",function(j){if(u.dragging){u.mouseMoved=true;if(s==="select"){I.removeClass("ui-slider-handle-snapping")}u.refresh(j);u.userModified=u.beforeStart!==r[0].selectedIndex;return false}});x.bind("vmousedown",function(j){u.dragging=true;u.userModified=false;u.mouseMoved=false;if(s==="select"){u.beforeStart=r[0].selectedIndex}u.refresh(j);return false}).bind("vclick",false);x.add(a).bind("vmouseup",function(){if(u.dragging){u.dragging=false;if(s==="select"){I.addClass("ui-slider-handle-snapping");if(u.mouseMoved){if(u.userModified){u.refresh(u.beforeStart==0?1:0)}else{u.refresh(u.beforeStart)}}else{u.refresh(u.beforeStart==0?1:0)}}u.mouseMoved=false;return false}});x.insertAfter(r);if(s=="select"){this.handle.bind({focus:function(){x.addClass(e.mobile.focusClass)},blur:function(){x.removeClass(e.mobile.focusClass)}})}this.handle.bind({vmousedown:function(){e(this).focus()},vclick:false,keydown:function(N){var j=M();if(u.options.disabled){return}switch(N.keyCode){case e.mobile.keyCode.HOME:case e.mobile.keyCode.END:case e.mobile.keyCode.PAGE_UP:case e.mobile.keyCode.PAGE_DOWN:case e.mobile.keyCode.UP:case e.mobile.keyCode.RIGHT:case e.mobile.keyCode.DOWN:case e.mobile.keyCode.LEFT:N.preventDefault();if(!u._keySliding){u._keySliding=true;e(this).addClass("ui-state-active")}break}switch(N.keyCode){case e.mobile.keyCode.HOME:u.refresh(y);break;case e.mobile.keyCode.END:u.refresh(C);break;case e.mobile.keyCode.PAGE_UP:case e.mobile.keyCode.UP:case e.mobile.keyCode.RIGHT:u.refresh(j+p);break;case e.mobile.keyCode.PAGE_DOWN:case e.mobile.keyCode.DOWN:case e.mobile.keyCode.LEFT:u.refresh(j-p);break}},keyup:function(j){if(u._keySliding){u._keySliding=false;e(this).removeClass("ui-state-active")}}});this.refresh(f,f,true)},refresh:function(y,w,n){if(this.options.disabled||this.element.attr("disabled")){this.disable()}var o=this.element,h,p=o[0].nodeName.toLowerCase(),t=p==="input"?parseFloat(o.attr("min")):0,v=p==="input"?parseFloat(o.attr("max")):o.find("option").length-1,l=(p==="input"&&parseFloat(o.attr("step"))>0)?parseFloat(o.attr("step")):1;if(typeof y==="object"){var x=y,r=8;if(!this.dragging||x.pageX<this.slider.offset().left-r||x.pageX>this.slider.offset().left+this.slider.width()+r){return}h=Math.round(((x.pageX-this.slider.offset().left)/this.slider.width())*100)}else{if(y==null){y=p==="input"?parseFloat(o.val()||0):o[0].selectedIndex}h=(parseFloat(y)-t)/(v-t)*100}if(isNaN(h)){return}if(h<0){h=0}if(h>100){h=100}var q=(h/100)*(v-t)+t;var u=(q-t)%l;var m=q-u;if(Math.abs(u)*2>=l){m+=(u>0)?l:(-l)}q=parseFloat(m.toFixed(5));if(q<t){q=t}if(q>v){q=v}this.handle.css("left",h+"%");this.handle.attr({"aria-valuenow":p==="input"?q:o.find("option").eq(q).attr("value"),"aria-valuetext":p==="input"?q:o.find("option").eq(q).getEncodedText(),title:p==="input"?q:o.find("option").eq(q).getEncodedText()});this.valuebg&&this.valuebg.css("width",h+"%");if(this._labels){var s=this.handle.width()/this.slider.width()*100,g=h&&s+(100-s)*h/100,j=h===100?0:Math.min(s+100-g,100);this._labels.each(function(){var z=e(this).is(".ui-slider-label-a");e(this).width((z?g:j)+"%")})}if(!n){var k=false;if(p==="input"){k=o.val()!==q;o.val(q)}else{k=o[0].selectedIndex!==q;o[0].selectedIndex=q}if(!w&&k){o.trigger("change")}}},enable:function(){this.element.attr("disabled",false);this.slider.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.slider.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)}});e(a).bind("pagecreate create",function(g){e.mobile.slider.prototype.enhanceWithin(g.target,true)})})(jQuery);(function(e,f){e.widget("mobile.selectmenu",e.mobile.widget,{options:{theme:null,disabled:false,icon:"arrow-d",iconpos:"right",inline:false,corners:true,shadow:true,iconshadow:true,overlayTheme:"a",hidePlaceholderMenuItems:true,closeText:"Close",nativeMenu:true,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1,initSelector:"select:not(:jqmData(role='slider'))",mini:false},_button:function(){return e("<div/>")},_setDisabled:function(g){this.element.attr("disabled",g);this.button.attr("aria-disabled",g);return this._setOption("disabled",g)},_focusButton:function(){var g=this;setTimeout(function(){g.button.focus()},40)},_selectOptions:function(){return this.select.find("option")},_preExtension:function(){var g="";if(!!~this.element[0].className.indexOf("ui-btn-left")){g=" ui-btn-left"}if(!!~this.element[0].className.indexOf("ui-btn-right")){g=" ui-btn-right"}this.select=this.element.wrap("<div class='ui-select"+g+"'>");this.selectID=this.select.attr("id");this.label=e("label[for='"+this.selectID+"']").addClass("ui-select");this.isMultiple=this.select[0].multiple;if(!this.options.theme){this.options.theme=e.mobile.getInheritedTheme(this.select,"c")}},_create:function(){this._preExtension();this._trigger("beforeCreate");this.button=this._button();var h=this,j=this.options,g=this.select[0].selectedIndex==-1?0:this.select[0].selectedIndex,k=this.button.text(e(this.select[0].options.item(g)).text()).insertBefore(this.select).buttonMarkup({theme:j.theme,icon:j.icon,iconpos:j.iconpos,inline:j.inline,corners:j.corners,shadow:j.shadow,iconshadow:j.iconshadow,mini:j.mini});if(j.nativeMenu&&b.opera&&b.opera.version){this.select.addClass("ui-select-nativeonly")}if(this.isMultiple){this.buttonCount=e("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(k.addClass("ui-li-has-count"))}if(j.disabled||this.element.attr("disabled")){this.disable()}this.select.change(function(){h.refresh()});this.build()},build:function(){var g=this;this.select.appendTo(g.button).bind("vmousedown",function(){g.button.addClass(e.mobile.activeBtnClass)}).bind("focus",function(){g.button.addClass(e.mobile.focusClass)}).bind("blur",function(){g.button.removeClass(e.mobile.focusClass)}).bind("focus vmouseover",function(){g.button.trigger("vmouseover")}).bind("vmousemove",function(){g.button.removeClass(e.mobile.activeBtnClass)}).bind("change blur vmouseout",function(){g.button.trigger("vmouseout").removeClass(e.mobile.activeBtnClass)}).bind("change blur",function(){g.button.removeClass("ui-btn-down-"+g.options.theme)});g.button.bind("vmousedown",function(){if(g.options.preventFocusZoom){e.mobile.zoom.disable(true)}}).bind("mouseup",function(){if(g.options.preventFocusZoom){e.mobile.zoom.enable(true)}})},selected:function(){return this._selectOptions().filter(":selected")},selectedIndices:function(){var g=this;return this.selected().map(function(){return g._selectOptions().index(this)}).get()},setButtonText:function(){var g=this,h=this.selected();this.button.find(".ui-btn-text").text(function(){if(!g.isMultiple){return h.text()}return h.length?h.map(function(){return e(this).text()}).get().join(", "):g.placeholder})},setButtonCount:function(){var g=this.selected();if(this.isMultiple){this.buttonCount[g.length>1?"show":"hide"]().text(g.length)}},refresh:function(){this.setButtonText();this.setButtonCount()},open:e.noop,close:e.noop,disable:function(){this._setDisabled(true);this.button.addClass("ui-disabled")},enable:function(){this._setDisabled(false);this.button.removeClass("ui-disabled")}});e(a).bind("pagecreate create",function(g){e.mobile.selectmenu.prototype.enhanceWithin(g.target,true)})})(jQuery);(function(f,g){var e=function(o){var u=o.select,y=o.selectID,r=o.label,h=o.select.closest(".ui-page"),k=f("<div>",{"class":"ui-selectmenu-screen ui-screen-hidden"}).appendTo(h),w=o._selectOptions(),n=o.isMultiple=o.select[0].multiple,q=y+"-button",s=y+"-menu",t=f("<div data-"+f.mobile.ns+"role='dialog' data-"+f.mobile.ns+"theme='"+o.options.theme+"' data-"+f.mobile.ns+"overlay-theme='"+o.options.overlayTheme+"'><div data-"+f.mobile.ns+"role='header'><div class='ui-title'>"+r.getEncodedText()+"</div></div><div data-"+f.mobile.ns+"role='content'></div></div>"),j=f("<div>",{"class":"ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all ui-body-"+o.options.overlayTheme+" "+f.mobile.defaultDialogTransition}).insertAfter(k),z=f("<ul>",{"class":"ui-selectmenu-list",id:s,role:"listbox","aria-labelledby":q}).attr("data-"+f.mobile.ns+"theme",o.options.theme).appendTo(j),x=f("<div>",{"class":"ui-header ui-bar-"+o.options.theme}).prependTo(j),v=f("<h1>",{"class":"ui-title"}).appendTo(x),m,l,p;if(o.isMultiple){p=f("<a>",{text:o.options.closeText,href:"#","class":"ui-btn-left"}).attr("data-"+f.mobile.ns+"iconpos","notext").attr("data-"+f.mobile.ns+"icon","delete").appendTo(x).buttonMarkup()}f.extend(o,{select:o.select,selectID:y,buttonId:q,menuId:s,thisPage:h,menuPage:t,label:r,screen:k,selectOptions:w,isMultiple:n,theme:o.options.theme,listbox:j,list:z,header:x,headerTitle:v,headerClose:p,menuPageContent:m,menuPageClose:l,placeholder:"",build:function(){var A=this;A.refresh();A.select.attr("tabindex","-1").focus(function(){f(this).blur();A.button.focus()});A.button.bind("vclick keydown",function(B){if(B.type=="vclick"||B.keyCode&&(B.keyCode===f.mobile.keyCode.ENTER||B.keyCode===f.mobile.keyCode.SPACE)){A.open();B.preventDefault()}});A.list.attr("role","listbox").bind("focusin",function(B){f(B.target).attr("tabindex","0").trigger("vmouseover")}).bind("focusout",function(B){f(B.target).attr("tabindex","-1").trigger("vmouseout")}).delegate("li:not(.ui-disabled, .ui-li-divider)","click",function(D){var E=A.select[0].selectedIndex,B=A.list.find("li:not(.ui-li-divider)").index(this),C=A._selectOptions().eq(B)[0];C.selected=A.isMultiple?!C.selected:true;if(A.isMultiple){f(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",C.selected).toggleClass("ui-icon-checkbox-off",!C.selected)}if(A.isMultiple||E!==B){A.select.trigger("change")}if(!A.isMultiple){A.close()}D.preventDefault()}).keydown(function(E){var F=f(E.target),B=F.closest("li"),D,C;switch(E.keyCode){case 38:D=B.prev().not(".ui-selectmenu-placeholder");if(D.is(".ui-li-divider")){D=D.prev()}if(D.length){F.blur().attr("tabindex","-1");D.addClass("ui-btn-down-"+o.options.theme).find("a").first().focus()}return false;break;case 40:C=B.next();if(C.is(".ui-li-divider")){C=C.next()}if(C.length){F.blur().attr("tabindex","-1");C.addClass("ui-btn-down-"+o.options.theme).find("a").first().focus()}return false;break;case 13:case 32:F.trigger("click");return false;break}});A.menuPage.bind("pagehide",function(){A.list.appendTo(A.listbox);A._focusButton();f.mobile._bindPageRemove.call(A.thisPage)});A.screen.bind("vclick",function(B){A.close()});if(A.isMultiple){A.headerClose.click(function(){if(A.menuType=="overlay"){A.close();return false}})}A.thisPage.addDependents(this.menuPage)},_isRebuildRequired:function(){var B=this.list.find("li"),A=this._selectOptions();return A.text()!==B.text()},refresh:function(E,H){var B=this,A=this.element,F=this.isMultiple,C=this._selectOptions(),D=this.selected(),G=this.selectedIndices();if(E||this._isRebuildRequired()){B._buildList()}B.setButtonText();B.setButtonCount();B.list.find("li:not(.ui-li-divider)").removeClass(f.mobile.activeBtnClass).attr("aria-selected",false).each(function(I){if(f.inArray(I,G)>-1){var J=f(this);J.attr("aria-selected",true);if(B.isMultiple){J.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on")}else{if(J.is(".ui-selectmenu-placeholder")){J.next().addClass(f.mobile.activeBtnClass)}else{J.addClass(f.mobile.activeBtnClass)}}}})},close:function(){if(this.options.disabled||!this.isOpen){return}var A=this;if(A.menuType=="page"){b.history.back()}else{A.screen.addClass("ui-screen-hidden");A.listbox.addClass("ui-selectmenu-hidden").removeAttr("style").removeClass("in");A.list.appendTo(A.listbox);A._focusButton()}A.isOpen=false},open:function(){if(this.options.disabled){return}var L=this,J=f(b),H=L.list.parent(),M=H.outerHeight(),C=H.outerWidth(),Q=f(".ui-page-active"),A=Q,E=J.scrollTop(),O=L.button.offset().top,R=J.height(),P=J.width();L.button.addClass(f.mobile.activeBtnClass);setTimeout(function(){L.button.removeClass(f.mobile.activeBtnClass)},300);function N(){L.list.find("."+f.mobile.activeBtnClass+" a").focus()}if(M>R-80||!f.support.scrollTop){L.menuPage.appendTo(f.mobile.pageContainer).page();L.menuPageContent=t.find(".ui-content");L.menuPageClose=t.find(".ui-header a");L.thisPage.unbind("pagehide.remove");if(E==0&&O>R){L.thisPage.one("pagehide",function(){f(this).jqmData("lastScroll",O)})}L.menuPage.one("pageshow",function(){N();L.isOpen=true});L.menuType="page";L.menuPageContent.append(L.list);L.menuPage.find("div .ui-title").text(L.label.text());f.mobile.changePage(L.menuPage,{transition:f.mobile.defaultDialogTransition})}else{L.menuType="overlay";L.screen.height(f(a).height()).removeClass("ui-screen-hidden");var D=O-E,B=E+R-O,G=M/2,K=parseFloat(L.list.parent().css("max-width")),F,I;if(D>M/2&&B>M/2){F=O+(L.button.outerHeight()/2)-G}else{F=D>B?E+R-M-30:E+30}if(C<K){I=(P-C)/2}else{I=L.button.offset().left+L.button.outerWidth()/2-C/2;if(I<30){I=30}else{if((I+C)>P){I=P-C-30}}}L.listbox.append(L.list).removeClass("ui-selectmenu-hidden").css({top:F,left:I}).addClass("in");N();L.isOpen=true}},_buildList:function(){var L=this,Q=this.options,D=this.placeholder,C=true,T=[],A=[],G=L.isMultiple?"checkbox-off":"false";L.list.empty().filter(".ui-listview").listview("destroy");var R=L.select.find("option"),I=R.length,P=this.select[0],Y="data-"+f.mobile.ns,U=Y+"option-index",Z=Y+"icon",E=Y+"role",B=a.createDocumentFragment(),N;for(var V=0;V<I;V++){var K=R[V],S=f(K),H=K.parentNode,J=S.text(),F=a.createElement("a"),X=[];F.setAttribute("href","#");F.appendChild(a.createTextNode(J));if(H!==P&&H.nodeName.toLowerCase()==="optgroup"){var M=H.getAttribute("label");if(M!=N){var O=a.createElement("li");O.setAttribute(E,"list-divider");O.setAttribute("role","option");O.setAttribute("tabindex","-1");O.appendChild(a.createTextNode(M));B.appendChild(O);N=M}}if(C&&(!K.getAttribute("value")||J.length==0||S.jqmData("placeholder"))){C=false;if(Q.hidePlaceholderMenuItems){X.push("ui-selectmenu-placeholder")}if(!D){D=L.placeholder=J}}var W=a.createElement("li");if(K.disabled){X.push("ui-disabled");W.setAttribute("aria-disabled",true)}W.setAttribute(U,V);W.setAttribute(Z,G);W.className=X.join(" ");W.setAttribute("role","option");F.setAttribute("tabindex","-1");W.appendChild(F);B.appendChild(W)}L.list[0].appendChild(B);if(!this.isMultiple&&!D.length){this.header.hide()}else{this.headerTitle.text(this.placeholder)}L.list.listview()},_button:function(){return f("<a>",{href:"#",role:"button",id:this.buttonId,"aria-haspopup":"true","aria-owns":this.menuId})}})};f(a).bind("selectmenubeforecreate",function(j){var h=f(j.target).data("selectmenu");if(!h.options.nativeMenu){e(h)}})})(jQuery);(function(e,f){e.widget("mobile.fixedtoolbar",e.mobile.widget,{options:{visibleOnPageShow:true,disablePageZoom:true,transition:"slide",fullscreen:false,tapToggle:true,tapToggleBlacklist:"a, input, select, textarea, .ui-header-fixed, .ui-footer-fixed",hideDuringFocus:"input, textarea, select",updatePagePadding:true,trackPersistentToolbars:true,supportBlacklist:function(){var p=b,h=navigator.userAgent,k=navigator.platform,o=h.match(/AppleWebKit\/([0-9]+)/),n=!!o&&o[1],j=h.match(/Fennec\/([0-9]+)/),l=!!j&&j[1],m=h.match(/Opera Mobi\/([0-9]+)/),g=!!m&&m[1];if(((k.indexOf("iPhone")>-1||k.indexOf("iPad")>-1||k.indexOf("iPod")>-1)&&n&&n<534)||(p.operamini&&({}).toString.call(p.operamini)==="[object OperaMini]")||(m&&g<7458)||(h.indexOf("Android")>-1&&n&&n<533)||(l&&l<6)||("palmGetResource" in b&&n&&n<534)||(h.indexOf("MeeGo")>-1&&h.indexOf("NokiaBrowser/8.5.0")>-1)){return true}return false},initSelector:":jqmData(position='fixed')"},_create:function(){var g=this,l=g.options,j=g.element,k=j.is(":jqmData(role='header')")?"header":"footer",h=j.closest(".ui-page");if(l.supportBlacklist()){g.destroy();return}j.addClass("ui-"+k+"-fixed");if(l.fullscreen){j.addClass("ui-"+k+"-fullscreen");h.addClass("ui-page-"+k+"-fullscreen")}else{h.addClass("ui-page-"+k+"-fixed")}g._addTransitionClass();g._bindPageEvents();g._bindToggleHandlers()},_addTransitionClass:function(){var g=this.options.transition;if(g&&g!=="none"){if(g==="slide"){g=this.element.is(".ui-header")?"slidedown":"slideup"}this.element.addClass(g)}},_bindPageEvents:function(){var g=this,j=g.options,h=g.element;h.closest(".ui-page").bind("pagebeforeshow",function(){if(j.disablePageZoom){e.mobile.zoom.disable(true)}if(!j.visibleOnPageShow){g.hide(true)}}).bind("webkitAnimationStart animationstart updatelayout",function(){if(j.updatePagePadding){g.updatePagePadding()}}).bind("pageshow",function(){g.updatePagePadding();if(j.updatePagePadding){e(b).bind("throttledresize."+g.widgetName,function(){g.updatePagePadding()})}}).bind("pagebeforehide",function(n,m){if(j.disablePageZoom){e.mobile.zoom.enable(true)}if(j.updatePagePadding){e(b).unbind("throttledresize."+g.widgetName)}if(j.trackPersistentToolbars){var p=e(".ui-footer-fixed:jqmData(id)",this),o=e(".ui-header-fixed:jqmData(id)",this),l=p.length&&m.nextPage&&e(".ui-footer-fixed:jqmData(id='"+p.jqmData("id")+"')",m.nextPage),k=o.length&&m.nextPage&&e(".ui-header-fixed:jqmData(id='"+o.jqmData("id")+"')",m.nextPage);l=l||e();if(l.length||k.length){l.add(k).appendTo(e.mobile.pageContainer);m.nextPage.one("pageshow",function(){l.add(k).appendTo(this)})}}})},_visible:true,updatePagePadding:function(){var g=this.element,h=g.is(".ui-header");if(this.options.fullscreen){return}g.closest(".ui-page").css("padding-"+(h?"top":"bottom"),g.outerHeight())},_useTransition:function(l){var o=e(b),k=this.element,g=o.scrollTop(),h=k.height(),n=k.closest(".ui-page").height(),j=e.mobile.getScreenHeight(),m=k.is(":jqmData(role='header')")?"header":"footer";return !l&&(this.options.transition&&this.options.transition!=="none"&&((m==="header"&&!this.options.fullscreen&&g>h)||(m==="footer"&&!this.options.fullscreen&&g+j<n-h))||this.options.fullscreen)},show:function(h){var j="ui-fixed-hidden",g=this.element;if(this._useTransition(h)){g.removeClass("out "+j).addClass("in")}else{g.removeClass(j)}this._visible=true},hide:function(h){var k="ui-fixed-hidden",g=this.element,j="out"+(this.options.transition==="slide"?" reverse":"");if(this._useTransition(h)){g.addClass(j).removeClass("in").animationComplete(function(){g.addClass(k).removeClass(j)})}else{g.addClass(k).removeClass(j)}this._visible=false},toggle:function(){this[this._visible?"hide":"show"]()},_bindToggleHandlers:function(){var g=this,j=g.options,h=g.element;h.closest(".ui-page").bind("vclick",function(k){if(j.tapToggle&&!e(k.target).closest(j.tapToggleBlacklist).length){g.toggle()}}).bind("focusin focusout",function(k){if(screen.width<500&&e(k.target).is(j.hideDuringFocus)&&!e(k.target).closest(".ui-header-fixed, .ui-footer-fixed").length){g[(k.type==="focusin"&&g._visible)?"hide":"show"]()}})},destroy:function(){this.element.removeClass("ui-header-fixed ui-footer-fixed ui-header-fullscreen ui-footer-fullscreen in out fade slidedown slideup ui-fixed-hidden");this.element.closest(".ui-page").removeClass("ui-page-header-fixed ui-page-footer-fixed ui-page-header-fullscreen ui-page-footer-fullscreen")}});e(a).bind("pagecreate create",function(g){if(e(g.target).jqmData("fullscreen")){e(e.mobile.fixedtoolbar.prototype.options.initSelector,g.target).not(":jqmData(fullscreen)").jqmData("fullscreen",true)}e.mobile.fixedtoolbar.prototype.enhanceWithin(g.target)})})(jQuery);(function(g,h){if(!(/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1)){return}var n=g.mobile.zoom,m,l,k,j,e;function f(o){m=o.originalEvent;e=m.accelerationIncludingGravity;l=Math.abs(e.x);k=Math.abs(e.y);j=Math.abs(e.z);if(!h.orientation&&(l>7||((j>6&&k<8||j<8&&k>6)&&l>5))){if(n.enabled){n.disable()}}else{if(!n.enabled){n.enable()}}}g(h).bind("orientationchange.iosorientationfix",n.enable).bind("devicemotion.iosorientationfix",f)}(jQuery,this));(function(l,m,g){var j=l("html"),n=l("head"),f=l(m);l(m.document).trigger("mobileinit");if(!l.mobile.gradeA()){return}if(l.mobile.ajaxBlacklist){l.mobile.ajaxEnabled=false}j.addClass("ui-mobile ui-mobile-rendering");setTimeout(p,5000);var h="ui-loader",k=l("<div class='"+h+"'><span class='ui-icon ui-icon-loading'></span><h1></h1></div>");function e(){var q=l("."+l.mobile.activeBtnClass).first();k.css({top:l.support.scrollTop&&f.scrollTop()+f.height()/2||q.length&&q.offset().top||100})}function o(){var r=k.offset(),q=f.scrollTop(),s=l.mobile.getScreenHeight();if(r.top<q||(r.top-q)>s){k.addClass("ui-loader-fakefix");e();f.unbind("scroll",o).bind("scroll",e)}}function p(){j.removeClass("ui-mobile-rendering")}l.extend(l.mobile,{showPageLoadingMsg:function(s,q,t){j.addClass("ui-loading");if(l.mobile.loadingMessage){var r=t||l.mobile.loadingMessageTextVisible;s=s||l.mobile.loadingMessageTheme,k.attr("class",h+" ui-corner-all ui-body-"+(s||"a")+" ui-loader-"+(r?"verbose":"default")+(t?" ui-loader-textonly":"")).find("h1").text(q||l.mobile.loadingMessage).end().appendTo(l.mobile.pageContainer);o();f.bind("scroll",o)}},hidePageLoadingMsg:function(){j.removeClass("ui-loading");if(l.mobile.loadingMessage){k.removeClass("ui-loader-fakefix")}l(m).unbind("scroll",e);l(m).unbind("scroll",o)},initializePage:function(){var q=l(":jqmData(role='page'), :jqmData(role='dialog')");if(!q.length){q=l("body").wrapInner("<div data-"+l.mobile.ns+"role='page'></div>").children(0)}q.each(function(){var r=l(this);if(!r.jqmData("url")){r.attr("data-"+l.mobile.ns+"url",r.attr("id")||location.pathname+location.search)}});l.mobile.firstPage=q.first();l.mobile.pageContainer=q.first().parent().addClass("ui-mobile-viewport");f.trigger("pagecontainercreate");l.mobile.showPageLoadingMsg();p();if(!l.mobile.hashListeningEnabled||!l.mobile.path.stripHash(location.hash)){l.mobile.changePage(l.mobile.firstPage,{transition:"none",reverse:true,changeHash:false,fromHashChange:true})}else{f.trigger("hashchange",[true])}}});l.mobile._registerInternalEvents();l(function(){m.scrollTo(0,1);l.mobile.defaultHomeScroll=(!l.support.scrollTop||l(m).scrollTop()===1)?0:1;if(l.fn.controlgroup){l(a).bind("pagecreate create",function(q){l(":jqmData(role='controlgroup')",q.target).jqmEnhanceable().controlgroup({excludeInvisible:false})})}if(l.mobile.autoInitializePage){l.mobile.initializePage()}f.load(l.mobile.silentScroll)})}(jQuery,this))}));
skin/adminhtml/default/snm-mobile/js/jquery.mobile-1.1.0.js ADDED
@@ -0,0 +1,7551 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery Mobile Framework 1.1.0 db342b1f315c282692791aa870455901fdb46a55
3
+ * http://jquerymobile.com
4
+ *
5
+ * Copyright 2011 (c) jQuery Project
6
+ * Dual licensed under the MIT or GPL Version 2 licenses.
7
+ * http://jquery.org/license
8
+ *
9
+ */
10
+ (function ( root, doc, factory ) {
11
+ if ( typeof define === "function" && define.amd ) {
12
+ // AMD. Register as an anonymous module.
13
+ define( [ "jquery" ], function ( $ ) {
14
+ factory( $, root, doc );
15
+ return $.mobile;
16
+ });
17
+ } else {
18
+ // Browser globals
19
+ factory( root.jQuery, root, doc );
20
+ }
21
+ }( this, document, function ( $, window, document, undefined ) {
22
+
23
+
24
+ // This plugin is an experiment for abstracting away the touch and mouse
25
+ // events so that developers don't have to worry about which method of input
26
+ // the device their document is loaded on supports.
27
+ //
28
+ // The idea here is to allow the developer to register listeners for the
29
+ // basic mouse events, such as mousedown, mousemove, mouseup, and click,
30
+ // and the plugin will take care of registering the correct listeners
31
+ // behind the scenes to invoke the listener at the fastest possible time
32
+ // for that device, while still retaining the order of event firing in
33
+ // the traditional mouse environment, should multiple handlers be registered
34
+ // on the same element for different events.
35
+ //
36
+ // The current version exposes the following virtual events to jQuery bind methods:
37
+ // "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel"
38
+
39
+ (function( $, window, document, undefined ) {
40
+
41
+ var dataPropertyName = "virtualMouseBindings",
42
+ touchTargetPropertyName = "virtualTouchID",
43
+ virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split( " " ),
44
+ touchEventProps = "clientX clientY pageX pageY screenX screenY".split( " " ),
45
+ mouseHookProps = $.event.mouseHooks ? $.event.mouseHooks.props : [],
46
+ mouseEventProps = $.event.props.concat( mouseHookProps ),
47
+ activeDocHandlers = {},
48
+ resetTimerID = 0,
49
+ startX = 0,
50
+ startY = 0,
51
+ didScroll = false,
52
+ clickBlockList = [],
53
+ blockMouseTriggers = false,
54
+ blockTouchTriggers = false,
55
+ eventCaptureSupported = "addEventListener" in document,
56
+ $document = $( document ),
57
+ nextTouchID = 1,
58
+ lastTouchID = 0;
59
+
60
+ $.vmouse = {
61
+ moveDistanceThreshold: 10,
62
+ clickDistanceThreshold: 10,
63
+ resetTimerDuration: 1500
64
+ };
65
+
66
+ function getNativeEvent( event ) {
67
+
68
+ while ( event && typeof event.originalEvent !== "undefined" ) {
69
+ event = event.originalEvent;
70
+ }
71
+ return event;
72
+ }
73
+
74
+ function createVirtualEvent( event, eventType ) {
75
+
76
+ var t = event.type,
77
+ oe, props, ne, prop, ct, touch, i, j;
78
+
79
+ event = $.Event(event);
80
+ event.type = eventType;
81
+
82
+ oe = event.originalEvent;
83
+ props = $.event.props;
84
+
85
+ // addresses separation of $.event.props in to $.event.mouseHook.props and Issue 3280
86
+ // https://github.com/jquery/jquery-mobile/issues/3280
87
+ if ( t.search( /^(mouse|click)/ ) > -1 ) {
88
+ props = mouseEventProps;
89
+ }
90
+
91
+ // copy original event properties over to the new event
92
+ // this would happen if we could call $.event.fix instead of $.Event
93
+ // but we don't have a way to force an event to be fixed multiple times
94
+ if ( oe ) {
95
+ for ( i = props.length, prop; i; ) {
96
+ prop = props[ --i ];
97
+ event[ prop ] = oe[ prop ];
98
+ }
99
+ }
100
+
101
+ // make sure that if the mouse and click virtual events are generated
102
+ // without a .which one is defined
103
+ if ( t.search(/mouse(down|up)|click/) > -1 && !event.which ){
104
+ event.which = 1;
105
+ }
106
+
107
+ if ( t.search(/^touch/) !== -1 ) {
108
+ ne = getNativeEvent( oe );
109
+ t = ne.touches;
110
+ ct = ne.changedTouches;
111
+ touch = ( t && t.length ) ? t[0] : ( (ct && ct.length) ? ct[ 0 ] : undefined );
112
+
113
+ if ( touch ) {
114
+ for ( j = 0, len = touchEventProps.length; j < len; j++){
115
+ prop = touchEventProps[ j ];
116
+ event[ prop ] = touch[ prop ];
117
+ }
118
+ }
119
+ }
120
+
121
+ return event;
122
+ }
123
+
124
+ function getVirtualBindingFlags( element ) {
125
+
126
+ var flags = {},
127
+ b, k;
128
+
129
+ while ( element ) {
130
+
131
+ b = $.data( element, dataPropertyName );
132
+
133
+ for ( k in b ) {
134
+ if ( b[ k ] ) {
135
+ flags[ k ] = flags.hasVirtualBinding = true;
136
+ }
137
+ }
138
+ element = element.parentNode;
139
+ }
140
+ return flags;
141
+ }
142
+
143
+ function getClosestElementWithVirtualBinding( element, eventType ) {
144
+ var b;
145
+ while ( element ) {
146
+
147
+ b = $.data( element, dataPropertyName );
148
+
149
+ if ( b && ( !eventType || b[ eventType ] ) ) {
150
+ return element;
151
+ }
152
+ element = element.parentNode;
153
+ }
154
+ return null;
155
+ }
156
+
157
+ function enableTouchBindings() {
158
+ blockTouchTriggers = false;
159
+ }
160
+
161
+ function disableTouchBindings() {
162
+ blockTouchTriggers = true;
163
+ }
164
+
165
+ function enableMouseBindings() {
166
+ lastTouchID = 0;
167
+ clickBlockList.length = 0;
168
+ blockMouseTriggers = false;
169
+
170
+ // When mouse bindings are enabled, our
171
+ // touch bindings are disabled.
172
+ disableTouchBindings();
173
+ }
174
+
175
+ function disableMouseBindings() {
176
+ // When mouse bindings are disabled, our
177
+ // touch bindings are enabled.
178
+ enableTouchBindings();
179
+ }
180
+
181
+ function startResetTimer() {
182
+ clearResetTimer();
183
+ resetTimerID = setTimeout(function(){
184
+ resetTimerID = 0;
185
+ enableMouseBindings();
186
+ }, $.vmouse.resetTimerDuration );
187
+ }
188
+
189
+ function clearResetTimer() {
190
+ if ( resetTimerID ){
191
+ clearTimeout( resetTimerID );
192
+ resetTimerID = 0;
193
+ }
194
+ }
195
+
196
+ function triggerVirtualEvent( eventType, event, flags ) {
197
+ var ve;
198
+
199
+ if ( ( flags && flags[ eventType ] ) ||
200
+ ( !flags && getClosestElementWithVirtualBinding( event.target, eventType ) ) ) {
201
+
202
+ ve = createVirtualEvent( event, eventType );
203
+
204
+ $( event.target).trigger( ve );
205
+ }
206
+
207
+ return ve;
208
+ }
209
+
210
+ function mouseEventCallback( event ) {
211
+ var touchID = $.data(event.target, touchTargetPropertyName);
212
+
213
+ if ( !blockMouseTriggers && ( !lastTouchID || lastTouchID !== touchID ) ){
214
+ var ve = triggerVirtualEvent( "v" + event.type, event );
215
+ if ( ve ) {
216
+ if ( ve.isDefaultPrevented() ) {
217
+ event.preventDefault();
218
+ }
219
+ if ( ve.isPropagationStopped() ) {
220
+ event.stopPropagation();
221
+ }
222
+ if ( ve.isImmediatePropagationStopped() ) {
223
+ event.stopImmediatePropagation();
224
+ }
225
+ }
226
+ }
227
+ }
228
+
229
+ function handleTouchStart( event ) {
230
+
231
+ var touches = getNativeEvent( event ).touches,
232
+ target, flags;
233
+
234
+ if ( touches && touches.length === 1 ) {
235
+
236
+ target = event.target;
237
+ flags = getVirtualBindingFlags( target );
238
+
239
+ if ( flags.hasVirtualBinding ) {
240
+
241
+ lastTouchID = nextTouchID++;
242
+ $.data( target, touchTargetPropertyName, lastTouchID );
243
+
244
+ clearResetTimer();
245
+
246
+ disableMouseBindings();
247
+ didScroll = false;
248
+
249
+ var t = getNativeEvent( event ).touches[ 0 ];
250
+ startX = t.pageX;
251
+ startY = t.pageY;
252
+
253
+ triggerVirtualEvent( "vmouseover", event, flags );
254
+ triggerVirtualEvent( "vmousedown", event, flags );
255
+ }
256
+ }
257
+ }
258
+
259
+ function handleScroll( event ) {
260
+ if ( blockTouchTriggers ) {
261
+ return;
262
+ }
263
+
264
+ if ( !didScroll ) {
265
+ triggerVirtualEvent( "vmousecancel", event, getVirtualBindingFlags( event.target ) );
266
+ }
267
+
268
+ didScroll = true;
269
+ startResetTimer();
270
+ }
271
+
272
+ function handleTouchMove( event ) {
273
+ if ( blockTouchTriggers ) {
274
+ return;
275
+ }
276
+
277
+ var t = getNativeEvent( event ).touches[ 0 ],
278
+ didCancel = didScroll,
279
+ moveThreshold = $.vmouse.moveDistanceThreshold;
280
+ didScroll = didScroll ||
281
+ ( Math.abs(t.pageX - startX) > moveThreshold ||
282
+ Math.abs(t.pageY - startY) > moveThreshold ),
283
+ flags = getVirtualBindingFlags( event.target );
284
+
285
+ if ( didScroll && !didCancel ) {
286
+ triggerVirtualEvent( "vmousecancel", event, flags );
287
+ }
288
+
289
+ triggerVirtualEvent( "vmousemove", event, flags );
290
+ startResetTimer();
291
+ }
292
+
293
+ function handleTouchEnd( event ) {
294
+ if ( blockTouchTriggers ) {
295
+ return;
296
+ }
297
+
298
+ disableTouchBindings();
299
+
300
+ var flags = getVirtualBindingFlags( event.target ),
301
+ t;
302
+ triggerVirtualEvent( "vmouseup", event, flags );
303
+
304
+ if ( !didScroll ) {
305
+ var ve = triggerVirtualEvent( "vclick", event, flags );
306
+ if ( ve && ve.isDefaultPrevented() ) {
307
+ // The target of the mouse events that follow the touchend
308
+ // event don't necessarily match the target used during the
309
+ // touch. This means we need to rely on coordinates for blocking
310
+ // any click that is generated.
311
+ t = getNativeEvent( event ).changedTouches[ 0 ];
312
+ clickBlockList.push({
313
+ touchID: lastTouchID,
314
+ x: t.clientX,
315
+ y: t.clientY
316
+ });
317
+
318
+ // Prevent any mouse events that follow from triggering
319
+ // virtual event notifications.
320
+ blockMouseTriggers = true;
321
+ }
322
+ }
323
+ triggerVirtualEvent( "vmouseout", event, flags);
324
+ didScroll = false;
325
+
326
+ startResetTimer();
327
+ }
328
+
329
+ function hasVirtualBindings( ele ) {
330
+ var bindings = $.data( ele, dataPropertyName ),
331
+ k;
332
+
333
+ if ( bindings ) {
334
+ for ( k in bindings ) {
335
+ if ( bindings[ k ] ) {
336
+ return true;
337
+ }
338
+ }
339
+ }
340
+ return false;
341
+ }
342
+
343
+ function dummyMouseHandler(){}
344
+
345
+ function getSpecialEventObject( eventType ) {
346
+ var realType = eventType.substr( 1 );
347
+
348
+ return {
349
+ setup: function( data, namespace ) {
350
+ // If this is the first virtual mouse binding for this element,
351
+ // add a bindings object to its data.
352
+
353
+ if ( !hasVirtualBindings( this ) ) {
354
+ $.data( this, dataPropertyName, {});
355
+ }
356
+
357
+ // If setup is called, we know it is the first binding for this
358
+ // eventType, so initialize the count for the eventType to zero.
359
+ var bindings = $.data( this, dataPropertyName );
360
+ bindings[ eventType ] = true;
361
+
362
+ // If this is the first virtual mouse event for this type,
363
+ // register a global handler on the document.
364
+
365
+ activeDocHandlers[ eventType ] = ( activeDocHandlers[ eventType ] || 0 ) + 1;
366
+
367
+ if ( activeDocHandlers[ eventType ] === 1 ) {
368
+ $document.bind( realType, mouseEventCallback );
369
+ }
370
+
371
+ // Some browsers, like Opera Mini, won't dispatch mouse/click events
372
+ // for elements unless they actually have handlers registered on them.
373
+ // To get around this, we register dummy handlers on the elements.
374
+
375
+ $( this ).bind( realType, dummyMouseHandler );
376
+
377
+ // For now, if event capture is not supported, we rely on mouse handlers.
378
+ if ( eventCaptureSupported ) {
379
+ // If this is the first virtual mouse binding for the document,
380
+ // register our touchstart handler on the document.
381
+
382
+ activeDocHandlers[ "touchstart" ] = ( activeDocHandlers[ "touchstart" ] || 0) + 1;
383
+
384
+ if (activeDocHandlers[ "touchstart" ] === 1) {
385
+ $document.bind( "touchstart", handleTouchStart )
386
+ .bind( "touchend", handleTouchEnd )
387
+
388
+ // On touch platforms, touching the screen and then dragging your finger
389
+ // causes the window content to scroll after some distance threshold is
390
+ // exceeded. On these platforms, a scroll prevents a click event from being
391
+ // dispatched, and on some platforms, even the touchend is suppressed. To
392
+ // mimic the suppression of the click event, we need to watch for a scroll
393
+ // event. Unfortunately, some platforms like iOS don't dispatch scroll
394
+ // events until *AFTER* the user lifts their finger (touchend). This means
395
+ // we need to watch both scroll and touchmove events to figure out whether
396
+ // or not a scroll happenens before the touchend event is fired.
397
+
398
+ .bind( "touchmove", handleTouchMove )
399
+ .bind( "scroll", handleScroll );
400
+ }
401
+ }
402
+ },
403
+
404
+ teardown: function( data, namespace ) {
405
+ // If this is the last virtual binding for this eventType,
406
+ // remove its global handler from the document.
407
+
408
+ --activeDocHandlers[ eventType ];
409
+
410
+ if ( !activeDocHandlers[ eventType ] ) {
411
+ $document.unbind( realType, mouseEventCallback );
412
+ }
413
+
414
+ if ( eventCaptureSupported ) {
415
+ // If this is the last virtual mouse binding in existence,
416
+ // remove our document touchstart listener.
417
+
418
+ --activeDocHandlers[ "touchstart" ];
419
+
420
+ if ( !activeDocHandlers[ "touchstart" ] ) {
421
+ $document.unbind( "touchstart", handleTouchStart )
422
+ .unbind( "touchmove", handleTouchMove )
423
+ .unbind( "touchend", handleTouchEnd )
424
+ .unbind( "scroll", handleScroll );
425
+ }
426
+ }
427
+
428
+ var $this = $( this ),
429
+ bindings = $.data( this, dataPropertyName );
430
+
431
+ // teardown may be called when an element was
432
+ // removed from the DOM. If this is the case,
433
+ // jQuery core may have already stripped the element
434
+ // of any data bindings so we need to check it before
435
+ // using it.
436
+ if ( bindings ) {
437
+ bindings[ eventType ] = false;
438
+ }
439
+
440
+ // Unregister the dummy event handler.
441
+
442
+ $this.unbind( realType, dummyMouseHandler );
443
+
444
+ // If this is the last virtual mouse binding on the
445
+ // element, remove the binding data from the element.
446
+
447
+ if ( !hasVirtualBindings( this ) ) {
448
+ $this.removeData( dataPropertyName );
449
+ }
450
+ }
451
+ };
452
+ }
453
+
454
+ // Expose our custom events to the jQuery bind/unbind mechanism.
455
+
456
+ for ( var i = 0; i < virtualEventNames.length; i++ ){
457
+ $.event.special[ virtualEventNames[ i ] ] = getSpecialEventObject( virtualEventNames[ i ] );
458
+ }
459
+
460
+ // Add a capture click handler to block clicks.
461
+ // Note that we require event capture support for this so if the device
462
+ // doesn't support it, we punt for now and rely solely on mouse events.
463
+ if ( eventCaptureSupported ) {
464
+ document.addEventListener( "click", function( e ){
465
+ var cnt = clickBlockList.length,
466
+ target = e.target,
467
+ x, y, ele, i, o, touchID;
468
+
469
+ if ( cnt ) {
470
+ x = e.clientX;
471
+ y = e.clientY;
472
+ threshold = $.vmouse.clickDistanceThreshold;
473
+
474
+ // The idea here is to run through the clickBlockList to see if
475
+ // the current click event is in the proximity of one of our
476
+ // vclick events that had preventDefault() called on it. If we find
477
+ // one, then we block the click.
478
+ //
479
+ // Why do we have to rely on proximity?
480
+ //
481
+ // Because the target of the touch event that triggered the vclick
482
+ // can be different from the target of the click event synthesized
483
+ // by the browser. The target of a mouse/click event that is syntehsized
484
+ // from a touch event seems to be implementation specific. For example,
485
+ // some browsers will fire mouse/click events for a link that is near
486
+ // a touch event, even though the target of the touchstart/touchend event
487
+ // says the user touched outside the link. Also, it seems that with most
488
+ // browsers, the target of the mouse/click event is not calculated until the
489
+ // time it is dispatched, so if you replace an element that you touched
490
+ // with another element, the target of the mouse/click will be the new
491
+ // element underneath that point.
492
+ //
493
+ // Aside from proximity, we also check to see if the target and any
494
+ // of its ancestors were the ones that blocked a click. This is necessary
495
+ // because of the strange mouse/click target calculation done in the
496
+ // Android 2.1 browser, where if you click on an element, and there is a
497
+ // mouse/click handler on one of its ancestors, the target will be the
498
+ // innermost child of the touched element, even if that child is no where
499
+ // near the point of touch.
500
+
501
+ ele = target;
502
+
503
+ while ( ele ) {
504
+ for ( i = 0; i < cnt; i++ ) {
505
+ o = clickBlockList[ i ];
506
+ touchID = 0;
507
+
508
+ if ( ( ele === target && Math.abs( o.x - x ) < threshold && Math.abs( o.y - y ) < threshold ) ||
509
+ $.data( ele, touchTargetPropertyName ) === o.touchID ) {
510
+ // XXX: We may want to consider removing matches from the block list
511
+ // instead of waiting for the reset timer to fire.
512
+ e.preventDefault();
513
+ e.stopPropagation();
514
+ return;
515
+ }
516
+ }
517
+ ele = ele.parentNode;
518
+ }
519
+ }
520
+ }, true);
521
+ }
522
+ })( jQuery, window, document );
523
+
524
+
525
+
526
+ // Script: jQuery hashchange event
527
+ //
528
+ // *Version: 1.3, Last updated: 7/21/2010*
529
+ //
530
+ // Project Home - http://benalman.com/projects/jquery-hashchange-plugin/
531
+ // GitHub - http://github.com/cowboy/jquery-hashchange/
532
+ // Source - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.js
533
+ // (Minified) - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.min.js (0.8kb gzipped)
534
+ //
535
+ // About: License
536
+ //
537
+ // Copyright (c) 2010 "Cowboy" Ben Alman,
538
+ // Dual licensed under the MIT and GPL licenses.
539
+ // http://benalman.com/about/license/
540
+ //
541
+ // About: Examples
542
+ //
543
+ // These working examples, complete with fully commented code, illustrate a few
544
+ // ways in which this plugin can be used.
545
+ //
546
+ // hashchange event - http://benalman.com/code/projects/jquery-hashchange/examples/hashchange/
547
+ // document.domain - http://benalman.com/code/projects/jquery-hashchange/examples/document_domain/
548
+ //
549
+ // About: Support and Testing
550
+ //
551
+ // Information about what version or versions of jQuery this plugin has been
552
+ // tested with, what browsers it has been tested in, and where the unit tests
553
+ // reside (so you can test it yourself).
554
+ //
555
+ // jQuery Versions - 1.2.6, 1.3.2, 1.4.1, 1.4.2
556
+ // Browsers Tested - Internet Explorer 6-8, Firefox 2-4, Chrome 5-6, Safari 3.2-5,
557
+ // Opera 9.6-10.60, iPhone 3.1, Android 1.6-2.2, BlackBerry 4.6-5.
558
+ // Unit Tests - http://benalman.com/code/projects/jquery-hashchange/unit/
559
+ //
560
+ // About: Known issues
561
+ //
562
+ // While this jQuery hashchange event implementation is quite stable and
563
+ // robust, there are a few unfortunate browser bugs surrounding expected
564
+ // hashchange event-based behaviors, independent of any JavaScript
565
+ // window.onhashchange abstraction. See the following examples for more
566
+ // information:
567
+ //
568
+ // Chrome: Back Button - http://benalman.com/code/projects/jquery-hashchange/examples/bug-chrome-back-button/
569
+ // Firefox: Remote XMLHttpRequest - http://benalman.com/code/projects/jquery-hashchange/examples/bug-firefox-remote-xhr/
570
+ // WebKit: Back Button in an Iframe - http://benalman.com/code/projects/jquery-hashchange/examples/bug-webkit-hash-iframe/
571
+ // Safari: Back Button from a different domain - http://benalman.com/code/projects/jquery-hashchange/examples/bug-safari-back-from-diff-domain/
572
+ //
573
+ // Also note that should a browser natively support the window.onhashchange
574
+ // event, but not report that it does, the fallback polling loop will be used.
575
+ //
576
+ // About: Release History
577
+ //
578
+ // 1.3 - (7/21/2010) Reorganized IE6/7 Iframe code to make it more
579
+ // "removable" for mobile-only development. Added IE6/7 document.title
580
+ // support. Attempted to make Iframe as hidden as possible by using
581
+ // techniques from http://www.paciellogroup.com/blog/?p=604. Added
582
+ // support for the "shortcut" format $(window).hashchange( fn ) and
583
+ // $(window).hashchange() like jQuery provides for built-in events.
584
+ // Renamed jQuery.hashchangeDelay to <jQuery.fn.hashchange.delay> and
585
+ // lowered its default value to 50. Added <jQuery.fn.hashchange.domain>
586
+ // and <jQuery.fn.hashchange.src> properties plus document-domain.html
587
+ // file to address access denied issues when setting document.domain in
588
+ // IE6/7.
589
+ // 1.2 - (2/11/2010) Fixed a bug where coming back to a page using this plugin
590
+ // from a page on another domain would cause an error in Safari 4. Also,
591
+ // IE6/7 Iframe is now inserted after the body (this actually works),
592
+ // which prevents the page from scrolling when the event is first bound.
593
+ // Event can also now be bound before DOM ready, but it won't be usable
594
+ // before then in IE6/7.
595
+ // 1.1 - (1/21/2010) Incorporated document.documentMode test to fix IE8 bug
596
+ // where browser version is incorrectly reported as 8.0, despite
597
+ // inclusion of the X-UA-Compatible IE=EmulateIE7 meta tag.
598
+ // 1.0 - (1/9/2010) Initial Release. Broke out the jQuery BBQ event.special
599
+ // window.onhashchange functionality into a separate plugin for users
600
+ // who want just the basic event & back button support, without all the
601
+ // extra awesomeness that BBQ provides. This plugin will be included as
602
+ // part of jQuery BBQ, but also be available separately.
603
+
604
+ (function($,window,undefined){
605
+ // Reused string.
606
+ var str_hashchange = 'hashchange',
607
+
608
+ // Method / object references.
609
+ doc = document,
610
+ fake_onhashchange,
611
+ special = $.event.special,
612
+
613
+ // Does the browser support window.onhashchange? Note that IE8 running in
614
+ // IE7 compatibility mode reports true for 'onhashchange' in window, even
615
+ // though the event isn't supported, so also test document.documentMode.
616
+ doc_mode = doc.documentMode,
617
+ supports_onhashchange = 'on' + str_hashchange in window && ( doc_mode === undefined || doc_mode > 7 );
618
+
619
+ // Get location.hash (or what you'd expect location.hash to be) sans any
620
+ // leading #. Thanks for making this necessary, Firefox!
621
+ function get_fragment( url ) {
622
+ url = url || location.href;
623
+ return '#' + url.replace( /^[^#]*#?(.*)$/, '$1' );
624
+ };
625
+
626
+ // Method: jQuery.fn.hashchange
627
+ //
628
+ // Bind a handler to the window.onhashchange event or trigger all bound
629
+ // window.onhashchange event handlers. This behavior is consistent with
630
+ // jQuery's built-in event handlers.
631
+ //
632
+ // Usage:
633
+ //
634
+ // > jQuery(window).hashchange( [ handler ] );
635
+ //
636
+ // Arguments:
637
+ //
638
+ // handler - (Function) Optional handler to be bound to the hashchange
639
+ // event. This is a "shortcut" for the more verbose form:
640
+ // jQuery(window).bind( 'hashchange', handler ). If handler is omitted,
641
+ // all bound window.onhashchange event handlers will be triggered. This
642
+ // is a shortcut for the more verbose
643
+ // jQuery(window).trigger( 'hashchange' ). These forms are described in
644
+ // the <hashchange event> section.
645
+ //
646
+ // Returns:
647
+ //
648
+ // (jQuery) The initial jQuery collection of elements.
649
+
650
+ // Allow the "shortcut" format $(elem).hashchange( fn ) for binding and
651
+ // $(elem).hashchange() for triggering, like jQuery does for built-in events.
652
+ $.fn[ str_hashchange ] = function( fn ) {
653
+ return fn ? this.bind( str_hashchange, fn ) : this.trigger( str_hashchange );
654
+ };
655
+
656
+ // Property: jQuery.fn.hashchange.delay
657
+ //
658
+ // The numeric interval (in milliseconds) at which the <hashchange event>
659
+ // polling loop executes. Defaults to 50.
660
+
661
+ // Property: jQuery.fn.hashchange.domain
662
+ //
663
+ // If you're setting document.domain in your JavaScript, and you want hash
664
+ // history to work in IE6/7, not only must this property be set, but you must
665
+ // also set document.domain BEFORE jQuery is loaded into the page. This
666
+ // property is only applicable if you are supporting IE6/7 (or IE8 operating
667
+ // in "IE7 compatibility" mode).
668
+ //
669
+ // In addition, the <jQuery.fn.hashchange.src> property must be set to the
670
+ // path of the included "document-domain.html" file, which can be renamed or
671
+ // modified if necessary (note that the document.domain specified must be the
672
+ // same in both your main JavaScript as well as in this file).
673
+ //
674
+ // Usage:
675
+ //
676
+ // jQuery.fn.hashchange.domain = document.domain;
677
+
678
+ // Property: jQuery.fn.hashchange.src
679
+ //
680
+ // If, for some reason, you need to specify an Iframe src file (for example,
681
+ // when setting document.domain as in <jQuery.fn.hashchange.domain>), you can
682
+ // do so using this property. Note that when using this property, history
683
+ // won't be recorded in IE6/7 until the Iframe src file loads. This property
684
+ // is only applicable if you are supporting IE6/7 (or IE8 operating in "IE7
685
+ // compatibility" mode).
686
+ //
687
+ // Usage:
688
+ //
689
+ // jQuery.fn.hashchange.src = 'path/to/file.html';
690
+
691
+ $.fn[ str_hashchange ].delay = 50;
692
+ /*
693
+ $.fn[ str_hashchange ].domain = null;
694
+ $.fn[ str_hashchange ].src = null;
695
+ */
696
+
697
+ // Event: hashchange event
698
+ //
699
+ // Fired when location.hash changes. In browsers that support it, the native
700
+ // HTML5 window.onhashchange event is used, otherwise a polling loop is
701
+ // initialized, running every <jQuery.fn.hashchange.delay> milliseconds to
702
+ // see if the hash has changed. In IE6/7 (and IE8 operating in "IE7
703
+ // compatibility" mode), a hidden Iframe is created to allow the back button
704
+ // and hash-based history to work.
705
+ //
706
+ // Usage as described in <jQuery.fn.hashchange>:
707
+ //
708
+ // > // Bind an event handler.
709
+ // > jQuery(window).hashchange( function(e) {
710
+ // > var hash = location.hash;
711
+ // > ...
712
+ // > });
713
+ // >
714
+ // > // Manually trigger the event handler.
715
+ // > jQuery(window).hashchange();
716
+ //
717
+ // A more verbose usage that allows for event namespacing:
718
+ //
719
+ // > // Bind an event handler.
720
+ // > jQuery(window).bind( 'hashchange', function(e) {
721
+ // > var hash = location.hash;
722
+ // > ...
723
+ // > });
724
+ // >
725
+ // > // Manually trigger the event handler.
726
+ // > jQuery(window).trigger( 'hashchange' );
727
+ //
728
+ // Additional Notes:
729
+ //
730
+ // * The polling loop and Iframe are not created until at least one handler
731
+ // is actually bound to the 'hashchange' event.
732
+ // * If you need the bound handler(s) to execute immediately, in cases where
733
+ // a location.hash exists on page load, via bookmark or page refresh for
734
+ // example, use jQuery(window).hashchange() or the more verbose
735
+ // jQuery(window).trigger( 'hashchange' ).
736
+ // * The event can be bound before DOM ready, but since it won't be usable
737
+ // before then in IE6/7 (due to the necessary Iframe), recommended usage is
738
+ // to bind it inside a DOM ready handler.
739
+
740
+ // Override existing $.event.special.hashchange methods (allowing this plugin
741
+ // to be defined after jQuery BBQ in BBQ's source code).
742
+ special[ str_hashchange ] = $.extend( special[ str_hashchange ], {
743
+
744
+ // Called only when the first 'hashchange' event is bound to window.
745
+ setup: function() {
746
+ // If window.onhashchange is supported natively, there's nothing to do..
747
+ if ( supports_onhashchange ) { return false; }
748
+
749
+ // Otherwise, we need to create our own. And we don't want to call this
750
+ // until the user binds to the event, just in case they never do, since it
751
+ // will create a polling loop and possibly even a hidden Iframe.
752
+ $( fake_onhashchange.start );
753
+ },
754
+
755
+ // Called only when the last 'hashchange' event is unbound from window.
756
+ teardown: function() {
757
+ // If window.onhashchange is supported natively, there's nothing to do..
758
+ if ( supports_onhashchange ) { return false; }
759
+
760
+ // Otherwise, we need to stop ours (if possible).
761
+ $( fake_onhashchange.stop );
762
+ }
763
+
764
+ });
765
+
766
+ // fake_onhashchange does all the work of triggering the window.onhashchange
767
+ // event for browsers that don't natively support it, including creating a
768
+ // polling loop to watch for hash changes and in IE 6/7 creating a hidden
769
+ // Iframe to enable back and forward.
770
+ fake_onhashchange = (function(){
771
+ var self = {},
772
+ timeout_id,
773
+
774
+ // Remember the initial hash so it doesn't get triggered immediately.
775
+ last_hash = get_fragment(),
776
+
777
+ fn_retval = function(val){ return val; },
778
+ history_set = fn_retval,
779
+ history_get = fn_retval;
780
+
781
+ // Start the polling loop.
782
+ self.start = function() {
783
+ timeout_id || poll();
784
+ };
785
+
786
+ // Stop the polling loop.
787
+ self.stop = function() {
788
+ timeout_id && clearTimeout( timeout_id );
789
+ timeout_id = undefined;
790
+ };
791
+
792
+ // This polling loop checks every $.fn.hashchange.delay milliseconds to see
793
+ // if location.hash has changed, and triggers the 'hashchange' event on
794
+ // window when necessary.
795
+ function poll() {
796
+ var hash = get_fragment(),
797
+ history_hash = history_get( last_hash );
798
+
799
+ if ( hash !== last_hash ) {
800
+ history_set( last_hash = hash, history_hash );
801
+
802
+ $(window).trigger( str_hashchange );
803
+
804
+ } else if ( history_hash !== last_hash ) {
805
+ location.href = location.href.replace( /#.*/, '' ) + history_hash;
806
+ }
807
+
808
+ timeout_id = setTimeout( poll, $.fn[ str_hashchange ].delay );
809
+ };
810
+
811
+ // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
812
+ // vvvvvvvvvvvvvvvvvvv REMOVE IF NOT SUPPORTING IE6/7/8 vvvvvvvvvvvvvvvvvvv
813
+ // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
814
+ $.browser.msie && !supports_onhashchange && (function(){
815
+ // Not only do IE6/7 need the "magical" Iframe treatment, but so does IE8
816
+ // when running in "IE7 compatibility" mode.
817
+
818
+ var iframe,
819
+ iframe_src;
820
+
821
+ // When the event is bound and polling starts in IE 6/7, create a hidden
822
+ // Iframe for history handling.
823
+ self.start = function(){
824
+ if ( !iframe ) {
825
+ iframe_src = $.fn[ str_hashchange ].src;
826
+ iframe_src = iframe_src && iframe_src + get_fragment();
827
+
828
+ // Create hidden Iframe. Attempt to make Iframe as hidden as possible
829
+ // by using techniques from http://www.paciellogroup.com/blog/?p=604.
830
+ iframe = $('<iframe tabindex="-1" title="empty"/>').hide()
831
+
832
+ // When Iframe has completely loaded, initialize the history and
833
+ // start polling.
834
+ .one( 'load', function(){
835
+ iframe_src || history_set( get_fragment() );
836
+ poll();
837
+ })
838
+
839
+ // Load Iframe src if specified, otherwise nothing.
840
+ .attr( 'src', iframe_src || 'javascript:0' )
841
+
842
+ // Append Iframe after the end of the body to prevent unnecessary
843
+ // initial page scrolling (yes, this works).
844
+ .insertAfter( 'body' )[0].contentWindow;
845
+
846
+ // Whenever `document.title` changes, update the Iframe's title to
847
+ // prettify the back/next history menu entries. Since IE sometimes
848
+ // errors with "Unspecified error" the very first time this is set
849
+ // (yes, very useful) wrap this with a try/catch block.
850
+ doc.onpropertychange = function(){
851
+ try {
852
+ if ( event.propertyName === 'title' ) {
853
+ iframe.document.title = doc.title;
854
+ }
855
+ } catch(e) {}
856
+ };
857
+
858
+ }
859
+ };
860
+
861
+ // Override the "stop" method since an IE6/7 Iframe was created. Even
862
+ // if there are no longer any bound event handlers, the polling loop
863
+ // is still necessary for back/next to work at all!
864
+ self.stop = fn_retval;
865
+
866
+ // Get history by looking at the hidden Iframe's location.hash.
867
+ history_get = function() {
868
+ return get_fragment( iframe.location.href );
869
+ };
870
+
871
+ // Set a new history item by opening and then closing the Iframe
872
+ // document, *then* setting its location.hash. If document.domain has
873
+ // been set, update that as well.
874
+ history_set = function( hash, history_hash ) {
875
+ var iframe_doc = iframe.document,
876
+ domain = $.fn[ str_hashchange ].domain;
877
+
878
+ if ( hash !== history_hash ) {
879
+ // Update Iframe with any initial `document.title` that might be set.
880
+ iframe_doc.title = doc.title;
881
+
882
+ // Opening the Iframe's document after it has been closed is what
883
+ // actually adds a history entry.
884
+ iframe_doc.open();
885
+
886
+ // Set document.domain for the Iframe document as well, if necessary.
887
+ domain && iframe_doc.write( '<script>document.domain="' + domain + '"</script>' );
888
+
889
+ iframe_doc.close();
890
+
891
+ // Update the Iframe's hash, for great justice.
892
+ iframe.location.hash = hash;
893
+ }
894
+ };
895
+
896
+ })();
897
+ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
898
+ // ^^^^^^^^^^^^^^^^^^^ REMOVE IF NOT SUPPORTING IE6/7/8 ^^^^^^^^^^^^^^^^^^^
899
+ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
900
+
901
+ return self;
902
+ })();
903
+
904
+ })(jQuery,this);
905
+
906
+ /*!
907
+ * jQuery UI Widget @VERSION
908
+ *
909
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
910
+ * Dual licensed under the MIT or GPL Version 2 licenses.
911
+ * http://jquery.org/license
912
+ *
913
+ * http://docs.jquery.com/UI/Widget
914
+ */
915
+
916
+ (function( $, undefined ) {
917
+
918
+ // jQuery 1.4+
919
+ if ( $.cleanData ) {
920
+ var _cleanData = $.cleanData;
921
+ $.cleanData = function( elems ) {
922
+ for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
923
+ $( elem ).triggerHandler( "remove" );
924
+ }
925
+ _cleanData( elems );
926
+ };
927
+ } else {
928
+ var _remove = $.fn.remove;
929
+ $.fn.remove = function( selector, keepData ) {
930
+ return this.each(function() {
931
+ if ( !keepData ) {
932
+ if ( !selector || $.filter( selector, [ this ] ).length ) {
933
+ $( "*", this ).add( [ this ] ).each(function() {
934
+ $( this ).triggerHandler( "remove" );
935
+ });
936
+ }
937
+ }
938
+ return _remove.call( $(this), selector, keepData );
939
+ });
940
+ };
941
+ }
942
+
943
+ $.widget = function( name, base, prototype ) {
944
+ var namespace = name.split( "." )[ 0 ],
945
+ fullName;
946
+ name = name.split( "." )[ 1 ];
947
+ fullName = namespace + "-" + name;
948
+
949
+ if ( !prototype ) {
950
+ prototype = base;
951
+ base = $.Widget;
952
+ }
953
+
954
+ // create selector for plugin
955
+ $.expr[ ":" ][ fullName ] = function( elem ) {
956
+ return !!$.data( elem, name );
957
+ };
958
+
959
+ $[ namespace ] = $[ namespace ] || {};
960
+ $[ namespace ][ name ] = function( options, element ) {
961
+ // allow instantiation without initializing for simple inheritance
962
+ if ( arguments.length ) {
963
+ this._createWidget( options, element );
964
+ }
965
+ };
966
+
967
+ var basePrototype = new base();
968
+ // we need to make the options hash a property directly on the new instance
969
+ // otherwise we'll modify the options hash on the prototype that we're
970
+ // inheriting from
971
+ // $.each( basePrototype, function( key, val ) {
972
+ // if ( $.isPlainObject(val) ) {
973
+ // basePrototype[ key ] = $.extend( {}, val );
974
+ // }
975
+ // });
976
+ basePrototype.options = $.extend( true, {}, basePrototype.options );
977
+ $[ namespace ][ name ].prototype = $.extend( true, basePrototype, {
978
+ namespace: namespace,
979
+ widgetName: name,
980
+ widgetEventPrefix: $[ namespace ][ name ].prototype.widgetEventPrefix || name,
981
+ widgetBaseClass: fullName
982
+ }, prototype );
983
+
984
+ $.widget.bridge( name, $[ namespace ][ name ] );
985
+ };
986
+
987
+ $.widget.bridge = function( name, object ) {
988
+ $.fn[ name ] = function( options ) {
989
+ var isMethodCall = typeof options === "string",
990
+ args = Array.prototype.slice.call( arguments, 1 ),
991
+ returnValue = this;
992
+
993
+ // allow multiple hashes to be passed on init
994
+ options = !isMethodCall && args.length ?
995
+ $.extend.apply( null, [ true, options ].concat(args) ) :
996
+ options;
997
+
998
+ // prevent calls to internal methods
999
+ if ( isMethodCall && options.charAt( 0 ) === "_" ) {
1000
+ return returnValue;
1001
+ }
1002
+
1003
+ if ( isMethodCall ) {
1004
+ this.each(function() {
1005
+ var instance = $.data( this, name );
1006
+ if ( !instance ) {
1007
+ throw "cannot call methods on " + name + " prior to initialization; " +
1008
+ "attempted to call method '" + options + "'";
1009
+ }
1010
+ if ( !$.isFunction( instance[options] ) ) {
1011
+ throw "no such method '" + options + "' for " + name + " widget instance";
1012
+ }
1013
+ var methodValue = instance[ options ].apply( instance, args );
1014
+ if ( methodValue !== instance && methodValue !== undefined ) {
1015
+ returnValue = methodValue;
1016
+ return false;
1017
+ }
1018
+ });
1019
+ } else {
1020
+ this.each(function() {
1021
+ var instance = $.data( this, name );
1022
+ if ( instance ) {
1023
+ instance.option( options || {} )._init();
1024
+ } else {
1025
+ $.data( this, name, new object( options, this ) );
1026
+ }
1027
+ });
1028
+ }
1029
+
1030
+ return returnValue;
1031
+ };
1032
+ };
1033
+
1034
+ $.Widget = function( options, element ) {
1035
+ // allow instantiation without initializing for simple inheritance
1036
+ if ( arguments.length ) {
1037
+ this._createWidget( options, element );
1038
+ }
1039
+ };
1040
+
1041
+ $.Widget.prototype = {
1042
+ widgetName: "widget",
1043
+ widgetEventPrefix: "",
1044
+ options: {
1045
+ disabled: false
1046
+ },
1047
+ _createWidget: function( options, element ) {
1048
+ // $.widget.bridge stores the plugin instance, but we do it anyway
1049
+ // so that it's stored even before the _create function runs
1050
+ $.data( element, this.widgetName, this );
1051
+ this.element = $( element );
1052
+ this.options = $.extend( true, {},
1053
+ this.options,
1054
+ this._getCreateOptions(),
1055
+ options );
1056
+
1057
+ var self = this;
1058
+ this.element.bind( "remove." + this.widgetName, function() {
1059
+ self.destroy();
1060
+ });
1061
+
1062
+ this._create();
1063
+ this._trigger( "create" );
1064
+ this._init();
1065
+ },
1066
+ _getCreateOptions: function() {
1067
+ var options = {};
1068
+ if ( $.metadata ) {
1069
+ options = $.metadata.get( element )[ this.widgetName ];
1070
+ }
1071
+ return options;
1072
+ },
1073
+ _create: function() {},
1074
+ _init: function() {},
1075
+
1076
+ destroy: function() {
1077
+ this.element
1078
+ .unbind( "." + this.widgetName )
1079
+ .removeData( this.widgetName );
1080
+ this.widget()
1081
+ .unbind( "." + this.widgetName )
1082
+ .removeAttr( "aria-disabled" )
1083
+ .removeClass(
1084
+ this.widgetBaseClass + "-disabled " +
1085
+ "ui-state-disabled" );
1086
+ },
1087
+
1088
+ widget: function() {
1089
+ return this.element;
1090
+ },
1091
+
1092
+ option: function( key, value ) {
1093
+ var options = key;
1094
+
1095
+ if ( arguments.length === 0 ) {
1096
+ // don't return a reference to the internal hash
1097
+ return $.extend( {}, this.options );
1098
+ }
1099
+
1100
+ if (typeof key === "string" ) {
1101
+ if ( value === undefined ) {
1102
+ return this.options[ key ];
1103
+ }
1104
+ options = {};
1105
+ options[ key ] = value;
1106
+ }
1107
+
1108
+ this._setOptions( options );
1109
+
1110
+ return this;
1111
+ },
1112
+ _setOptions: function( options ) {
1113
+ var self = this;
1114
+ $.each( options, function( key, value ) {
1115
+ self._setOption( key, value );
1116
+ });
1117
+
1118
+ return this;
1119
+ },
1120
+ _setOption: function( key, value ) {
1121
+ this.options[ key ] = value;
1122
+
1123
+ if ( key === "disabled" ) {
1124
+ this.widget()
1125
+ [ value ? "addClass" : "removeClass"](
1126
+ this.widgetBaseClass + "-disabled" + " " +
1127
+ "ui-state-disabled" )
1128
+ .attr( "aria-disabled", value );
1129
+ }
1130
+
1131
+ return this;
1132
+ },
1133
+
1134
+ enable: function() {
1135
+ return this._setOption( "disabled", false );
1136
+ },
1137
+ disable: function() {
1138
+ return this._setOption( "disabled", true );
1139
+ },
1140
+
1141
+ _trigger: function( type, event, data ) {
1142
+ var callback = this.options[ type ];
1143
+
1144
+ event = $.Event( event );
1145
+ event.type = ( type === this.widgetEventPrefix ?
1146
+ type :
1147
+ this.widgetEventPrefix + type ).toLowerCase();
1148
+ data = data || {};
1149
+
1150
+ // copy original event properties over to the new event
1151
+ // this would happen if we could call $.event.fix instead of $.Event
1152
+ // but we don't have a way to force an event to be fixed multiple times
1153
+ if ( event.originalEvent ) {
1154
+ for ( var i = $.event.props.length, prop; i; ) {
1155
+ prop = $.event.props[ --i ];
1156
+ event[ prop ] = event.originalEvent[ prop ];
1157
+ }
1158
+ }
1159
+
1160
+ this.element.trigger( event, data );
1161
+
1162
+ return !( $.isFunction(callback) &&
1163
+ callback.call( this.element[0], event, data ) === false ||
1164
+ event.isDefaultPrevented() );
1165
+ }
1166
+ };
1167
+
1168
+ })( jQuery );
1169
+
1170
+ (function( $, undefined ) {
1171
+
1172
+ $.widget( "mobile.widget", {
1173
+ // decorate the parent _createWidget to trigger `widgetinit` for users
1174
+ // who wish to do post post `widgetcreate` alterations/additions
1175
+ //
1176
+ // TODO create a pull request for jquery ui to trigger this event
1177
+ // in the original _createWidget
1178
+ _createWidget: function() {
1179
+ $.Widget.prototype._createWidget.apply( this, arguments );
1180
+ this._trigger( 'init' );
1181
+ },
1182
+
1183
+ _getCreateOptions: function() {
1184
+
1185
+ var elem = this.element,
1186
+ options = {};
1187
+
1188
+ $.each( this.options, function( option ) {
1189
+
1190
+ var value = elem.jqmData( option.replace( /[A-Z]/g, function( c ) {
1191
+ return "-" + c.toLowerCase();
1192
+ })
1193
+ );
1194
+
1195
+ if ( value !== undefined ) {
1196
+ options[ option ] = value;
1197
+ }
1198
+ });
1199
+
1200
+ return options;
1201
+ },
1202
+
1203
+ enhanceWithin: function( target, useKeepNative ) {
1204
+ this.enhance( $( this.options.initSelector, $( target )), useKeepNative );
1205
+ },
1206
+
1207
+ enhance: function( targets, useKeepNative ) {
1208
+ var page, keepNative, $widgetElements = $( targets ), self = this;
1209
+
1210
+ // if ignoreContentEnabled is set to true the framework should
1211
+ // only enhance the selected elements when they do NOT have a
1212
+ // parent with the data-namespace-ignore attribute
1213
+ $widgetElements = $.mobile.enhanceable( $widgetElements );
1214
+
1215
+ if ( useKeepNative && $widgetElements.length ) {
1216
+ // TODO remove dependency on the page widget for the keepNative.
1217
+ // Currently the keepNative value is defined on the page prototype so
1218
+ // the method is as well
1219
+ page = $.mobile.closestPageData( $widgetElements );
1220
+ keepNative = (page && page.keepNativeSelector()) || "";
1221
+
1222
+ $widgetElements = $widgetElements.not( keepNative );
1223
+ }
1224
+
1225
+ $widgetElements[ this.widgetName ]();
1226
+ },
1227
+
1228
+ raise: function( msg ) {
1229
+ throw "Widget [" + this.widgetName + "]: " + msg;
1230
+ }
1231
+ });
1232
+
1233
+ })( jQuery );
1234
+
1235
+ (function( $, window, undefined ) {
1236
+
1237
+ var nsNormalizeDict = {};
1238
+
1239
+ // jQuery.mobile configurable options
1240
+ $.mobile = $.extend( {}, {
1241
+
1242
+ // Version of the jQuery Mobile Framework
1243
+ version: "1.1.0",
1244
+
1245
+ // Namespace used framework-wide for data-attrs. Default is no namespace
1246
+ ns: "",
1247
+
1248
+ // Define the url parameter used for referencing widget-generated sub-pages.
1249
+ // Translates to to example.html&ui-page=subpageIdentifier
1250
+ // hash segment before &ui-page= is used to make Ajax request
1251
+ subPageUrlKey: "ui-page",
1252
+
1253
+ // Class assigned to page currently in view, and during transitions
1254
+ activePageClass: "ui-page-active",
1255
+
1256
+ // Class used for "active" button state, from CSS framework
1257
+ activeBtnClass: "ui-btn-active",
1258
+
1259
+ // Class used for "focus" form element state, from CSS framework
1260
+ focusClass: "ui-focus",
1261
+
1262
+ // Automatically handle clicks and form submissions through Ajax, when same-domain
1263
+ ajaxEnabled: true,
1264
+
1265
+ // Automatically load and show pages based on location.hash
1266
+ hashListeningEnabled: true,
1267
+
1268
+ // disable to prevent jquery from bothering with links
1269
+ linkBindingEnabled: true,
1270
+
1271
+ // Set default page transition - 'none' for no transitions
1272
+ defaultPageTransition: "fade",
1273
+
1274
+ // Set maximum window width for transitions to apply - 'false' for no limit
1275
+ maxTransitionWidth: false,
1276
+
1277
+ // Minimum scroll distance that will be remembered when returning to a page
1278
+ minScrollBack: 250,
1279
+
1280
+ // DEPRECATED: the following property is no longer in use, but defined until 2.0 to prevent conflicts
1281
+ touchOverflowEnabled: false,
1282
+
1283
+ // Set default dialog transition - 'none' for no transitions
1284
+ defaultDialogTransition: "pop",
1285
+
1286
+ // Show loading message during Ajax requests
1287
+ // if false, message will not appear, but loading classes will still be toggled on html el
1288
+ loadingMessage: "loading",
1289
+
1290
+ // Error response message - appears when an Ajax page request fails
1291
+ pageLoadErrorMessage: "Error Loading Page",
1292
+
1293
+ // Should the text be visble in the loading message?
1294
+ loadingMessageTextVisible: false,
1295
+
1296
+ // When the text is visible, what theme does the loading box use?
1297
+ loadingMessageTheme: "a",
1298
+
1299
+ // For error messages, which theme does the box uses?
1300
+ pageLoadErrorMessageTheme: "e",
1301
+
1302
+ //automatically initialize the DOM when it's ready
1303
+ autoInitializePage: true,
1304
+
1305
+ pushStateEnabled: true,
1306
+
1307
+ // allows users to opt in to ignoring content by marking a parent element as
1308
+ // data-ignored
1309
+ ignoreContentEnabled: false,
1310
+
1311
+ // turn of binding to the native orientationchange due to android orientation behavior
1312
+ orientationChangeEnabled: true,
1313
+
1314
+ buttonMarkup: {
1315
+ hoverDelay: 200
1316
+ },
1317
+
1318
+ // TODO might be useful upstream in jquery itself ?
1319
+ keyCode: {
1320
+ ALT: 18,
1321
+ BACKSPACE: 8,
1322
+ CAPS_LOCK: 20,
1323
+ COMMA: 188,
1324
+ COMMAND: 91,
1325
+ COMMAND_LEFT: 91, // COMMAND
1326
+ COMMAND_RIGHT: 93,
1327
+ CONTROL: 17,
1328
+ DELETE: 46,
1329
+ DOWN: 40,
1330
+ END: 35,
1331
+ ENTER: 13,
1332
+ ESCAPE: 27,
1333
+ HOME: 36,
1334
+ INSERT: 45,
1335
+ LEFT: 37,
1336
+ MENU: 93, // COMMAND_RIGHT
1337
+ NUMPAD_ADD: 107,
1338
+ NUMPAD_DECIMAL: 110,
1339
+ NUMPAD_DIVIDE: 111,
1340
+ NUMPAD_ENTER: 108,
1341
+ NUMPAD_MULTIPLY: 106,
1342
+ NUMPAD_SUBTRACT: 109,
1343
+ PAGE_DOWN: 34,
1344
+ PAGE_UP: 33,
1345
+ PERIOD: 190,
1346
+ RIGHT: 39,
1347
+ SHIFT: 16,
1348
+ SPACE: 32,
1349
+ TAB: 9,
1350
+ UP: 38,
1351
+ WINDOWS: 91 // COMMAND
1352
+ },
1353
+
1354
+ // Scroll page vertically: scroll to 0 to hide iOS address bar, or pass a Y value
1355
+ silentScroll: function( ypos ) {
1356
+ if ( $.type( ypos ) !== "number" ) {
1357
+ ypos = $.mobile.defaultHomeScroll;
1358
+ }
1359
+
1360
+ // prevent scrollstart and scrollstop events
1361
+ $.event.special.scrollstart.enabled = false;
1362
+
1363
+ setTimeout(function() {
1364
+ window.scrollTo( 0, ypos );
1365
+ $( document ).trigger( "silentscroll", { x: 0, y: ypos });
1366
+ }, 20 );
1367
+
1368
+ setTimeout(function() {
1369
+ $.event.special.scrollstart.enabled = true;
1370
+ }, 150 );
1371
+ },
1372
+
1373
+ // Expose our cache for testing purposes.
1374
+ nsNormalizeDict: nsNormalizeDict,
1375
+
1376
+ // Take a data attribute property, prepend the namespace
1377
+ // and then camel case the attribute string. Add the result
1378
+ // to our nsNormalizeDict so we don't have to do this again.
1379
+ nsNormalize: function( prop ) {
1380
+ if ( !prop ) {
1381
+ return;
1382
+ }
1383
+
1384
+ return nsNormalizeDict[ prop ] || ( nsNormalizeDict[ prop ] = $.camelCase( $.mobile.ns + prop ) );
1385
+ },
1386
+
1387
+ getInheritedTheme: function( el, defaultTheme ) {
1388
+
1389
+ // Find the closest parent with a theme class on it. Note that
1390
+ // we are not using $.fn.closest() on purpose here because this
1391
+ // method gets called quite a bit and we need it to be as fast
1392
+ // as possible.
1393
+
1394
+ var e = el[ 0 ],
1395
+ ltr = "",
1396
+ re = /ui-(bar|body|overlay)-([a-z])\b/,
1397
+ c, m;
1398
+
1399
+ while ( e ) {
1400
+ var c = e.className || "";
1401
+ if ( ( m = re.exec( c ) ) && ( ltr = m[ 2 ] ) ) {
1402
+ // We found a parent with a theme class
1403
+ // on it so bail from this loop.
1404
+ break;
1405
+ }
1406
+ e = e.parentNode;
1407
+ }
1408
+
1409
+ // Return the theme letter we found, if none, return the
1410
+ // specified default.
1411
+
1412
+ return ltr || defaultTheme || "a";
1413
+ },
1414
+
1415
+ // TODO the following $ and $.fn extensions can/probably should be moved into jquery.mobile.core.helpers
1416
+ //
1417
+ // Find the closest javascript page element to gather settings data jsperf test
1418
+ // http://jsperf.com/single-complex-selector-vs-many-complex-selectors/edit
1419
+ // possibly naive, but it shows that the parsing overhead for *just* the page selector vs
1420
+ // the page and dialog selector is negligable. This could probably be speed up by
1421
+ // doing a similar parent node traversal to the one found in the inherited theme code above
1422
+ closestPageData: function( $target ) {
1423
+ return $target
1424
+ .closest(':jqmData(role="page"), :jqmData(role="dialog")')
1425
+ .data("page");
1426
+ },
1427
+
1428
+ enhanceable: function( $set ) {
1429
+ return this.haveParents( $set, "enhance" );
1430
+ },
1431
+
1432
+ hijackable: function( $set ) {
1433
+ return this.haveParents( $set, "ajax" );
1434
+ },
1435
+
1436
+ haveParents: function( $set, attr ) {
1437
+ if( !$.mobile.ignoreContentEnabled ){
1438
+ return $set;
1439
+ }
1440
+
1441
+ var count = $set.length,
1442
+ $newSet = $(),
1443
+ e, $element, excluded;
1444
+
1445
+ for ( var i = 0; i < count; i++ ) {
1446
+ $element = $set.eq( i );
1447
+ excluded = false;
1448
+ e = $set[ i ];
1449
+
1450
+ while ( e ) {
1451
+ var c = e.getAttribute ? e.getAttribute( "data-" + $.mobile.ns + attr ) : "";
1452
+
1453
+ if ( c === "false" ) {
1454
+ excluded = true;
1455
+ break;
1456
+ }
1457
+
1458
+ e = e.parentNode;
1459
+ }
1460
+
1461
+ if ( !excluded ) {
1462
+ $newSet = $newSet.add( $element );
1463
+ }
1464
+ }
1465
+
1466
+ return $newSet;
1467
+ }
1468
+ }, $.mobile );
1469
+
1470
+ // Mobile version of data and removeData and hasData methods
1471
+ // ensures all data is set and retrieved using jQuery Mobile's data namespace
1472
+ $.fn.jqmData = function( prop, value ) {
1473
+ var result;
1474
+ if ( typeof prop != "undefined" ) {
1475
+ if ( prop ) {
1476
+ prop = $.mobile.nsNormalize( prop );
1477
+ }
1478
+ result = this.data.apply( this, arguments.length < 2 ? [ prop ] : [ prop, value ] );
1479
+ }
1480
+ return result;
1481
+ };
1482
+
1483
+ $.jqmData = function( elem, prop, value ) {
1484
+ var result;
1485
+ if ( typeof prop != "undefined" ) {
1486
+ result = $.data( elem, prop ? $.mobile.nsNormalize( prop ) : prop, value );
1487
+ }
1488
+ return result;
1489
+ };
1490
+
1491
+ $.fn.jqmRemoveData = function( prop ) {
1492
+ return this.removeData( $.mobile.nsNormalize( prop ) );
1493
+ };
1494
+
1495
+ $.jqmRemoveData = function( elem, prop ) {
1496
+ return $.removeData( elem, $.mobile.nsNormalize( prop ) );
1497
+ };
1498
+
1499
+ $.fn.removeWithDependents = function() {
1500
+ $.removeWithDependents( this );
1501
+ };
1502
+
1503
+ $.removeWithDependents = function( elem ) {
1504
+ var $elem = $( elem );
1505
+
1506
+ ( $elem.jqmData('dependents') || $() ).remove();
1507
+ $elem.remove();
1508
+ };
1509
+
1510
+ $.fn.addDependents = function( newDependents ) {
1511
+ $.addDependents( $(this), newDependents );
1512
+ };
1513
+
1514
+ $.addDependents = function( elem, newDependents ) {
1515
+ var dependents = $(elem).jqmData( 'dependents' ) || $();
1516
+
1517
+ $(elem).jqmData( 'dependents', $.merge(dependents, newDependents) );
1518
+ };
1519
+
1520
+ // note that this helper doesn't attempt to handle the callback
1521
+ // or setting of an html elements text, its only purpose is
1522
+ // to return the html encoded version of the text in all cases. (thus the name)
1523
+ $.fn.getEncodedText = function() {
1524
+ return $( "<div/>" ).text( $(this).text() ).html();
1525
+ };
1526
+
1527
+ // fluent helper function for the mobile namespaced equivalent
1528
+ $.fn.jqmEnhanceable = function() {
1529
+ return $.mobile.enhanceable( this );
1530
+ };
1531
+
1532
+ $.fn.jqmHijackable = function() {
1533
+ return $.mobile.hijackable( this );
1534
+ };
1535
+
1536
+ // Monkey-patching Sizzle to filter the :jqmData selector
1537
+ var oldFind = $.find,
1538
+ jqmDataRE = /:jqmData\(([^)]*)\)/g;
1539
+
1540
+ $.find = function( selector, context, ret, extra ) {
1541
+ selector = selector.replace( jqmDataRE, "[data-" + ( $.mobile.ns || "" ) + "$1]" );
1542
+
1543
+ return oldFind.call( this, selector, context, ret, extra );
1544
+ };
1545
+
1546
+ $.extend( $.find, oldFind );
1547
+
1548
+ $.find.matches = function( expr, set ) {
1549
+ return $.find( expr, null, null, set );
1550
+ };
1551
+
1552
+ $.find.matchesSelector = function( node, expr ) {
1553
+ return $.find( expr, null, null, [ node ] ).length > 0;
1554
+ };
1555
+ })( jQuery, this );
1556
+
1557
+
1558
+ (function( $, undefined ) {
1559
+
1560
+ var $window = $( window ),
1561
+ $html = $( "html" );
1562
+
1563
+ /* $.mobile.media method: pass a CSS media type or query and get a bool return
1564
+ note: this feature relies on actual media query support for media queries, though types will work most anywhere
1565
+ examples:
1566
+ $.mobile.media('screen') // tests for screen media type
1567
+ $.mobile.media('screen and (min-width: 480px)') // tests for screen media type with window width > 480px
1568
+ $.mobile.media('@media screen and (-webkit-min-device-pixel-ratio: 2)') // tests for webkit 2x pixel ratio (iPhone 4)
1569
+ */
1570
+ $.mobile.media = (function() {
1571
+ // TODO: use window.matchMedia once at least one UA implements it
1572
+ var cache = {},
1573
+ testDiv = $( "<div id='jquery-mediatest'>" ),
1574
+ fakeBody = $( "<body>" ).append( testDiv );
1575
+
1576
+ return function( query ) {
1577
+ if ( !( query in cache ) ) {
1578
+ var styleBlock = document.createElement( "style" ),
1579
+ cssrule = "@media " + query + " { #jquery-mediatest { position:absolute; } }";
1580
+
1581
+ //must set type for IE!
1582
+ styleBlock.type = "text/css";
1583
+
1584
+ if ( styleBlock.styleSheet ){
1585
+ styleBlock.styleSheet.cssText = cssrule;
1586
+ } else {
1587
+ styleBlock.appendChild( document.createTextNode(cssrule) );
1588
+ }
1589
+
1590
+ $html.prepend( fakeBody ).prepend( styleBlock );
1591
+ cache[ query ] = testDiv.css( "position" ) === "absolute";
1592
+ fakeBody.add( styleBlock ).remove();
1593
+ }
1594
+ return cache[ query ];
1595
+ };
1596
+ })();
1597
+
1598
+ })(jQuery);
1599
+
1600
+ (function( $, undefined ) {
1601
+
1602
+ var fakeBody = $( "<body>" ).prependTo( "html" ),
1603
+ fbCSS = fakeBody[ 0 ].style,
1604
+ vendors = [ "Webkit", "Moz", "O" ],
1605
+ webos = "palmGetResource" in window, //only used to rule out scrollTop
1606
+ operamini = window.operamini && ({}).toString.call( window.operamini ) === "[object OperaMini]",
1607
+ bb = window.blackberry; //only used to rule out box shadow, as it's filled opaque on BB
1608
+
1609
+ // thx Modernizr
1610
+ function propExists( prop ) {
1611
+ var uc_prop = prop.charAt( 0 ).toUpperCase() + prop.substr( 1 ),
1612
+ props = ( prop + " " + vendors.join( uc_prop + " " ) + uc_prop ).split( " " );
1613
+
1614
+ for ( var v in props ){
1615
+ if ( fbCSS[ props[ v ] ] !== undefined ) {
1616
+ return true;
1617
+ }
1618
+ }
1619
+ }
1620
+
1621
+ function validStyle( prop, value, check_vend ) {
1622
+ var div = document.createElement('div'),
1623
+ uc = function( txt ) {
1624
+ return txt.charAt( 0 ).toUpperCase() + txt.substr( 1 )
1625
+ },
1626
+ vend_pref = function( vend ) {
1627
+ return "-" + vend.charAt( 0 ).toLowerCase() + vend.substr( 1 ) + "-";
1628
+ },
1629
+ check_style = function( vend ) {
1630
+ var vend_prop = vend_pref( vend ) + prop + ": " + value + ";",
1631
+ uc_vend = uc( vend ),
1632
+ propStyle = uc_vend + uc( prop );
1633
+
1634
+ div.setAttribute( "style", vend_prop );
1635
+
1636
+ if( !!div.style[ propStyle ] ) {
1637
+ ret = true;
1638
+ }
1639
+ },
1640
+ check_vends = check_vend ? [ check_vend ] : vendors,
1641
+ ret;
1642
+
1643
+ for( i = 0; i < check_vends.length; i++ ) {
1644
+ check_style( check_vends[i] );
1645
+ }
1646
+ return !!ret;
1647
+ }
1648
+
1649
+ // Thanks to Modernizr src for this test idea. `perspective` check is limited to Moz to prevent a false positive for 3D transforms on Android.
1650
+ function transform3dTest() {
1651
+ var prop = "transform-3d";
1652
+ return validStyle( 'perspective', '10px', 'moz' ) || $.mobile.media( "(-" + vendors.join( "-" + prop + "),(-" ) + "-" + prop + "),(" + prop + ")" );
1653
+ }
1654
+
1655
+ // Test for dynamic-updating base tag support ( allows us to avoid href,src attr rewriting )
1656
+ function baseTagTest() {
1657
+ var fauxBase = location.protocol + "//" + location.host + location.pathname + "ui-dir/",
1658
+ base = $( "head base" ),
1659
+ fauxEle = null,
1660
+ href = "",
1661
+ link, rebase;
1662
+
1663
+ if ( !base.length ) {
1664
+ base = fauxEle = $( "<base>", { "href": fauxBase }).appendTo( "head" );
1665
+ } else {
1666
+ href = base.attr( "href" );
1667
+ }
1668
+
1669
+ link = $( "<a href='testurl' />" ).prependTo( fakeBody );
1670
+ rebase = link[ 0 ].href;
1671
+ base[ 0 ].href = href || location.pathname;
1672
+
1673
+ if ( fauxEle ) {
1674
+ fauxEle.remove();
1675
+ }
1676
+ return rebase.indexOf( fauxBase ) === 0;
1677
+ }
1678
+
1679
+
1680
+ // non-UA-based IE version check by James Padolsey, modified by jdalton - from http://gist.github.com/527683
1681
+ // allows for inclusion of IE 6+, including Windows Mobile 7
1682
+ $.extend( $.mobile, { browser: {} } );
1683
+ $.mobile.browser.ie = (function() {
1684
+ var v = 3,
1685
+ div = document.createElement( "div" ),
1686
+ a = div.all || [];
1687
+
1688
+ // added {} to silence closure compiler warnings. registering my dislike of all things
1689
+ // overly clever here for future reference
1690
+ while ( div.innerHTML = "<!--[if gt IE " + ( ++v ) + "]><br><![endif]-->", a[ 0 ] ){};
1691
+
1692
+ return v > 4 ? v : !v;
1693
+ })();
1694
+
1695
+
1696
+ $.extend( $.support, {
1697
+ orientation: "orientation" in window && "onorientationchange" in window,
1698
+ touch: "ontouchend" in document,
1699
+ cssTransitions: "WebKitTransitionEvent" in window || validStyle( 'transition', 'height 100ms linear' ),
1700
+ pushState: "pushState" in history && "replaceState" in history,
1701
+ mediaquery: $.mobile.media( "only all" ),
1702
+ cssPseudoElement: !!propExists( "content" ),
1703
+ touchOverflow: !!propExists( "overflowScrolling" ),
1704
+ cssTransform3d: transform3dTest(),
1705
+ boxShadow: !!propExists( "boxShadow" ) && !bb,
1706
+ scrollTop: ( "pageXOffset" in window || "scrollTop" in document.documentElement || "scrollTop" in fakeBody[ 0 ] ) && !webos && !operamini,
1707
+ dynamicBaseTag: baseTagTest()
1708
+ });
1709
+
1710
+ fakeBody.remove();
1711
+
1712
+
1713
+ // $.mobile.ajaxBlacklist is used to override ajaxEnabled on platforms that have known conflicts with hash history updates (BB5, Symbian)
1714
+ // or that generally work better browsing in regular http for full page refreshes (Opera Mini)
1715
+ // Note: This detection below is used as a last resort.
1716
+ // We recommend only using these detection methods when all other more reliable/forward-looking approaches are not possible
1717
+ var nokiaLTE7_3 = (function(){
1718
+
1719
+ var ua = window.navigator.userAgent;
1720
+
1721
+ //The following is an attempt to match Nokia browsers that are running Symbian/s60, with webkit, version 7.3 or older
1722
+ return ua.indexOf( "Nokia" ) > -1 &&
1723
+ ( ua.indexOf( "Symbian/3" ) > -1 || ua.indexOf( "Series60/5" ) > -1 ) &&
1724
+ ua.indexOf( "AppleWebKit" ) > -1 &&
1725
+ ua.match( /(BrowserNG|NokiaBrowser)\/7\.[0-3]/ );
1726
+ })();
1727
+
1728
+ // Support conditions that must be met in order to proceed
1729
+ // default enhanced qualifications are media query support OR IE 7+
1730
+ $.mobile.gradeA = function(){
1731
+ return $.support.mediaquery || $.mobile.browser.ie && $.mobile.browser.ie >= 7;
1732
+ };
1733
+
1734
+ $.mobile.ajaxBlacklist =
1735
+ // BlackBerry browsers, pre-webkit
1736
+ window.blackberry && !window.WebKitPoint ||
1737
+ // Opera Mini
1738
+ operamini ||
1739
+ // Symbian webkits pre 7.3
1740
+ nokiaLTE7_3;
1741
+
1742
+ // Lastly, this workaround is the only way we've found so far to get pre 7.3 Symbian webkit devices
1743
+ // to render the stylesheets when they're referenced before this script, as we'd recommend doing.
1744
+ // This simply reappends the CSS in place, which for some reason makes it apply
1745
+ if ( nokiaLTE7_3 ) {
1746
+ $(function() {
1747
+ $( "head link[rel='stylesheet']" ).attr( "rel", "alternate stylesheet" ).attr( "rel", "stylesheet" );
1748
+ });
1749
+ }
1750
+
1751
+ // For ruling out shadows via css
1752
+ if ( !$.support.boxShadow ) {
1753
+ $( "html" ).addClass( "ui-mobile-nosupport-boxshadow" );
1754
+ }
1755
+
1756
+ })( jQuery );
1757
+
1758
+ (function( $, window, undefined ) {
1759
+
1760
+ // add new event shortcuts
1761
+ $.each( ( "touchstart touchmove touchend orientationchange throttledresize " +
1762
+ "tap taphold swipe swipeleft swiperight scrollstart scrollstop" ).split( " " ), function( i, name ) {
1763
+
1764
+ $.fn[ name ] = function( fn ) {
1765
+ return fn ? this.bind( name, fn ) : this.trigger( name );
1766
+ };
1767
+
1768
+ $.attrFn[ name ] = true;
1769
+ });
1770
+
1771
+ var supportTouch = $.support.touch,
1772
+ scrollEvent = "touchmove scroll",
1773
+ touchStartEvent = supportTouch ? "touchstart" : "mousedown",
1774
+ touchStopEvent = supportTouch ? "touchend" : "mouseup",
1775
+ touchMoveEvent = supportTouch ? "touchmove" : "mousemove";
1776
+
1777
+ function triggerCustomEvent( obj, eventType, event ) {
1778
+ var originalType = event.type;
1779
+ event.type = eventType;
1780
+ $.event.handle.call( obj, event );
1781
+ event.type = originalType;
1782
+ }
1783
+
1784
+ // also handles scrollstop
1785
+ $.event.special.scrollstart = {
1786
+
1787
+ enabled: true,
1788
+
1789
+ setup: function() {
1790
+
1791
+ var thisObject = this,
1792
+ $this = $( thisObject ),
1793
+ scrolling,
1794
+ timer;
1795
+
1796
+ function trigger( event, state ) {
1797
+ scrolling = state;
1798
+ triggerCustomEvent( thisObject, scrolling ? "scrollstart" : "scrollstop", event );
1799
+ }
1800
+
1801
+ // iPhone triggers scroll after a small delay; use touchmove instead
1802
+ $this.bind( scrollEvent, function( event ) {
1803
+
1804
+ if ( !$.event.special.scrollstart.enabled ) {
1805
+ return;
1806
+ }
1807
+
1808
+ if ( !scrolling ) {
1809
+ trigger( event, true );
1810
+ }
1811
+
1812
+ clearTimeout( timer );
1813
+ timer = setTimeout(function() {
1814
+ trigger( event, false );
1815
+ }, 50 );
1816
+ });
1817
+ }
1818
+ };
1819
+
1820
+ // also handles taphold
1821
+ $.event.special.tap = {
1822
+ setup: function() {
1823
+ var thisObject = this,
1824
+ $this = $( thisObject );
1825
+
1826
+ $this.bind( "vmousedown", function( event ) {
1827
+
1828
+ if ( event.which && event.which !== 1 ) {
1829
+ return false;
1830
+ }
1831
+
1832
+ var origTarget = event.target,
1833
+ origEvent = event.originalEvent,
1834
+ timer;
1835
+
1836
+ function clearTapTimer() {
1837
+ clearTimeout( timer );
1838
+ }
1839
+
1840
+ function clearTapHandlers() {
1841
+ clearTapTimer();
1842
+
1843
+ $this.unbind( "vclick", clickHandler )
1844
+ .unbind( "vmouseup", clearTapTimer );
1845
+ $( document ).unbind( "vmousecancel", clearTapHandlers );
1846
+ }
1847
+
1848
+ function clickHandler(event) {
1849
+ clearTapHandlers();
1850
+
1851
+ // ONLY trigger a 'tap' event if the start target is
1852
+ // the same as the stop target.
1853
+ if ( origTarget == event.target ) {
1854
+ triggerCustomEvent( thisObject, "tap", event );
1855
+ }
1856
+ }
1857
+
1858
+ $this.bind( "vmouseup", clearTapTimer )
1859
+ .bind( "vclick", clickHandler );
1860
+ $( document ).bind( "vmousecancel", clearTapHandlers );
1861
+
1862
+ timer = setTimeout(function() {
1863
+ triggerCustomEvent( thisObject, "taphold", $.Event( "taphold", { target: origTarget } ) );
1864
+ }, 750 );
1865
+ });
1866
+ }
1867
+ };
1868
+
1869
+ // also handles swipeleft, swiperight
1870
+ $.event.special.swipe = {
1871
+ scrollSupressionThreshold: 10, // More than this horizontal displacement, and we will suppress scrolling.
1872
+
1873
+ durationThreshold: 1000, // More time than this, and it isn't a swipe.
1874
+
1875
+ horizontalDistanceThreshold: 30, // Swipe horizontal displacement must be more than this.
1876
+
1877
+ verticalDistanceThreshold: 75, // Swipe vertical displacement must be less than this.
1878
+
1879
+ setup: function() {
1880
+ var thisObject = this,
1881
+ $this = $( thisObject );
1882
+
1883
+ $this.bind( touchStartEvent, function( event ) {
1884
+ var data = event.originalEvent.touches ?
1885
+ event.originalEvent.touches[ 0 ] : event,
1886
+ start = {
1887
+ time: ( new Date() ).getTime(),
1888
+ coords: [ data.pageX, data.pageY ],
1889
+ origin: $( event.target )
1890
+ },
1891
+ stop;
1892
+
1893
+ function moveHandler( event ) {
1894
+
1895
+ if ( !start ) {
1896
+ return;
1897
+ }
1898
+
1899
+ var data = event.originalEvent.touches ?
1900
+ event.originalEvent.touches[ 0 ] : event;
1901
+
1902
+ stop = {
1903
+ time: ( new Date() ).getTime(),
1904
+ coords: [ data.pageX, data.pageY ]
1905
+ };
1906
+
1907
+ // prevent scrolling
1908
+ if ( Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.scrollSupressionThreshold ) {
1909
+ event.preventDefault();
1910
+ }
1911
+ }
1912
+
1913
+ $this.bind( touchMoveEvent, moveHandler )
1914
+ .one( touchStopEvent, function( event ) {
1915
+ $this.unbind( touchMoveEvent, moveHandler );
1916
+
1917
+ if ( start && stop ) {
1918
+ if ( stop.time - start.time < $.event.special.swipe.durationThreshold &&
1919
+ Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.horizontalDistanceThreshold &&
1920
+ Math.abs( start.coords[ 1 ] - stop.coords[ 1 ] ) < $.event.special.swipe.verticalDistanceThreshold ) {
1921
+
1922
+ start.origin.trigger( "swipe" )
1923
+ .trigger( start.coords[0] > stop.coords[ 0 ] ? "swipeleft" : "swiperight" );
1924
+ }
1925
+ }
1926
+ start = stop = undefined;
1927
+ });
1928
+ });
1929
+ }
1930
+ };
1931
+
1932
+ (function( $, window ) {
1933
+ // "Cowboy" Ben Alman
1934
+
1935
+ var win = $( window ),
1936
+ special_event,
1937
+ get_orientation,
1938
+ last_orientation,
1939
+ initial_orientation_is_landscape,
1940
+ initial_orientation_is_default,
1941
+ portrait_map = { "0": true, "180": true };
1942
+
1943
+ // It seems that some device/browser vendors use window.orientation values 0 and 180 to
1944
+ // denote the "default" orientation. For iOS devices, and most other smart-phones tested,
1945
+ // the default orientation is always "portrait", but in some Android and RIM based tablets,
1946
+ // the default orientation is "landscape". The following code attempts to use the window
1947
+ // dimensions to figure out what the current orientation is, and then makes adjustments
1948
+ // to the to the portrait_map if necessary, so that we can properly decode the
1949
+ // window.orientation value whenever get_orientation() is called.
1950
+ //
1951
+ // Note that we used to use a media query to figure out what the orientation the browser
1952
+ // thinks it is in:
1953
+ //
1954
+ // initial_orientation_is_landscape = $.mobile.media("all and (orientation: landscape)");
1955
+ //
1956
+ // but there was an iPhone/iPod Touch bug beginning with iOS 4.2, up through iOS 5.1,
1957
+ // where the browser *ALWAYS* applied the landscape media query. This bug does not
1958
+ // happen on iPad.
1959
+
1960
+ if ( $.support.orientation ) {
1961
+
1962
+ // Check the window width and height to figure out what the current orientation
1963
+ // of the device is at this moment. Note that we've initialized the portrait map
1964
+ // values to 0 and 180, *AND* we purposely check for landscape so that if we guess
1965
+ // wrong, , we default to the assumption that portrait is the default orientation.
1966
+ // We use a threshold check below because on some platforms like iOS, the iPhone
1967
+ // form-factor can report a larger width than height if the user turns on the
1968
+ // developer console. The actual threshold value is somewhat arbitrary, we just
1969
+ // need to make sure it is large enough to exclude the developer console case.
1970
+
1971
+ var ww = window.innerWidth || $( window ).width(),
1972
+ wh = window.innerHeight || $( window ).height(),
1973
+ landscape_threshold = 50;
1974
+
1975
+ initial_orientation_is_landscape = ww > wh && ( ww - wh ) > landscape_threshold;
1976
+
1977
+
1978
+ // Now check to see if the current window.orientation is 0 or 180.
1979
+ initial_orientation_is_default = portrait_map[ window.orientation ];
1980
+
1981
+ // If the initial orientation is landscape, but window.orientation reports 0 or 180, *OR*
1982
+ // if the initial orientation is portrait, but window.orientation reports 90 or -90, we
1983
+ // need to flip our portrait_map values because landscape is the default orientation for
1984
+ // this device/browser.
1985
+ if ( ( initial_orientation_is_landscape && initial_orientation_is_default ) || ( !initial_orientation_is_landscape && !initial_orientation_is_default ) ) {
1986
+ portrait_map = { "-90": true, "90": true };
1987
+ }
1988
+ }
1989
+
1990
+ $.event.special.orientationchange = special_event = {
1991
+ setup: function() {
1992
+ // If the event is supported natively, return false so that jQuery
1993
+ // will bind to the event using DOM methods.
1994
+ if ( $.support.orientation && $.mobile.orientationChangeEnabled ) {
1995
+ return false;
1996
+ }
1997
+
1998
+ // Get the current orientation to avoid initial double-triggering.
1999
+ last_orientation = get_orientation();
2000
+
2001
+ // Because the orientationchange event doesn't exist, simulate the
2002
+ // event by testing window dimensions on resize.
2003
+ win.bind( "throttledresize", handler );
2004
+ },
2005
+ teardown: function(){
2006
+ // If the event is not supported natively, return false so that
2007
+ // jQuery will unbind the event using DOM methods.
2008
+ if ( $.support.orientation && $.mobile.orientationChangeEnabled ) {
2009
+ return false;
2010
+ }
2011
+
2012
+ // Because the orientationchange event doesn't exist, unbind the
2013
+ // resize event handler.
2014
+ win.unbind( "throttledresize", handler );
2015
+ },
2016
+ add: function( handleObj ) {
2017
+ // Save a reference to the bound event handler.
2018
+ var old_handler = handleObj.handler;
2019
+
2020
+
2021
+ handleObj.handler = function( event ) {
2022
+ // Modify event object, adding the .orientation property.
2023
+ event.orientation = get_orientation();
2024
+
2025
+ // Call the originally-bound event handler and return its result.
2026
+ return old_handler.apply( this, arguments );
2027
+ };
2028
+ }
2029
+ };
2030
+
2031
+ // If the event is not supported natively, this handler will be bound to
2032
+ // the window resize event to simulate the orientationchange event.
2033
+ function handler() {
2034
+ // Get the current orientation.
2035
+ var orientation = get_orientation();
2036
+
2037
+ if ( orientation !== last_orientation ) {
2038
+ // The orientation has changed, so trigger the orientationchange event.
2039
+ last_orientation = orientation;
2040
+ win.trigger( "orientationchange" );
2041
+ }
2042
+ }
2043
+
2044
+ // Get the current page orientation. This method is exposed publicly, should it
2045
+ // be needed, as jQuery.event.special.orientationchange.orientation()
2046
+ $.event.special.orientationchange.orientation = get_orientation = function() {
2047
+ var isPortrait = true, elem = document.documentElement;
2048
+
2049
+ // prefer window orientation to the calculation based on screensize as
2050
+ // the actual screen resize takes place before or after the orientation change event
2051
+ // has been fired depending on implementation (eg android 2.3 is before, iphone after).
2052
+ // More testing is required to determine if a more reliable method of determining the new screensize
2053
+ // is possible when orientationchange is fired. (eg, use media queries + element + opacity)
2054
+ if ( $.support.orientation ) {
2055
+ // if the window orientation registers as 0 or 180 degrees report
2056
+ // portrait, otherwise landscape
2057
+ isPortrait = portrait_map[ window.orientation ];
2058
+ } else {
2059
+ isPortrait = elem && elem.clientWidth / elem.clientHeight < 1.1;
2060
+ }
2061
+
2062
+ return isPortrait ? "portrait" : "landscape";
2063
+ };
2064
+
2065
+ })( jQuery, window );
2066
+
2067
+
2068
+ // throttled resize event
2069
+ (function() {
2070
+
2071
+ $.event.special.throttledresize = {
2072
+ setup: function() {
2073
+ $( this ).bind( "resize", handler );
2074
+ },
2075
+ teardown: function(){
2076
+ $( this ).unbind( "resize", handler );
2077
+ }
2078
+ };
2079
+
2080
+ var throttle = 250,
2081
+ handler = function() {
2082
+ curr = ( new Date() ).getTime();
2083
+ diff = curr - lastCall;
2084
+
2085
+ if ( diff >= throttle ) {
2086
+
2087
+ lastCall = curr;
2088
+ $( this ).trigger( "throttledresize" );
2089
+
2090
+ } else {
2091
+
2092
+ if ( heldCall ) {
2093
+ clearTimeout( heldCall );
2094
+ }
2095
+
2096
+ // Promise a held call will still execute
2097
+ heldCall = setTimeout( handler, throttle - diff );
2098
+ }
2099
+ },
2100
+ lastCall = 0,
2101
+ heldCall,
2102
+ curr,
2103
+ diff;
2104
+ })();
2105
+
2106
+
2107
+ $.each({
2108
+ scrollstop: "scrollstart",
2109
+ taphold: "tap",
2110
+ swipeleft: "swipe",
2111
+ swiperight: "swipe"
2112
+ }, function( event, sourceEvent ) {
2113
+
2114
+ $.event.special[ event ] = {
2115
+ setup: function() {
2116
+ $( this ).bind( sourceEvent, $.noop );
2117
+ }
2118
+ };
2119
+ });
2120
+
2121
+ })( jQuery, this );
2122
+
2123
+ (function( $, undefined ) {
2124
+
2125
+ $.widget( "mobile.page", $.mobile.widget, {
2126
+ options: {
2127
+ theme: "c",
2128
+ domCache: false,
2129
+ keepNativeDefault: ":jqmData(role='none'), :jqmData(role='nojs')"
2130
+ },
2131
+
2132
+ _create: function() {
2133
+
2134
+ var self = this;
2135
+
2136
+ // if false is returned by the callbacks do not create the page
2137
+ if( self._trigger( "beforecreate" ) === false ){
2138
+ return false;
2139
+ }
2140
+
2141
+ self.element
2142
+ .attr( "tabindex", "0" )
2143
+ .addClass( "ui-page ui-body-" + self.options.theme )
2144
+ .bind( "pagebeforehide", function(){
2145
+ self.removeContainerBackground();
2146
+ } )
2147
+ .bind( "pagebeforeshow", function(){
2148
+ self.setContainerBackground();
2149
+ } );
2150
+
2151
+ },
2152
+
2153
+ removeContainerBackground: function(){
2154
+ $.mobile.pageContainer.removeClass( "ui-overlay-" + $.mobile.getInheritedTheme( this.element.parent() ) );
2155
+ },
2156
+
2157
+ // set the page container background to the page theme
2158
+ setContainerBackground: function( theme ){
2159
+ if( this.options.theme ){
2160
+ $.mobile.pageContainer.addClass( "ui-overlay-" + ( theme || this.options.theme ) );
2161
+ }
2162
+ },
2163
+
2164
+ keepNativeSelector: function() {
2165
+ var options = this.options,
2166
+ keepNativeDefined = options.keepNative && $.trim(options.keepNative);
2167
+
2168
+ if( keepNativeDefined && options.keepNative !== options.keepNativeDefault ){
2169
+ return [options.keepNative, options.keepNativeDefault].join(", ");
2170
+ }
2171
+
2172
+ return options.keepNativeDefault;
2173
+ }
2174
+ });
2175
+ })( jQuery );
2176
+
2177
+
2178
+ (function( $, window, undefined ) {
2179
+
2180
+ var createHandler = function( sequential ){
2181
+
2182
+ // Default to sequential
2183
+ if( sequential === undefined ){
2184
+ sequential = true;
2185
+ }
2186
+
2187
+ return function( name, reverse, $to, $from ) {
2188
+
2189
+ var deferred = new $.Deferred(),
2190
+ reverseClass = reverse ? " reverse" : "",
2191
+ active = $.mobile.urlHistory.getActive(),
2192
+ toScroll = active.lastScroll || $.mobile.defaultHomeScroll,
2193
+ screenHeight = $.mobile.getScreenHeight(),
2194
+ maxTransitionOverride = $.mobile.maxTransitionWidth !== false && $( window ).width() > $.mobile.maxTransitionWidth,
2195
+ none = !$.support.cssTransitions || maxTransitionOverride || !name || name === "none",
2196
+ toggleViewportClass = function(){
2197
+ $.mobile.pageContainer.toggleClass( "ui-mobile-viewport-transitioning viewport-" + name );
2198
+ },
2199
+ scrollPage = function(){
2200
+ // By using scrollTo instead of silentScroll, we can keep things better in order
2201
+ // Just to be precautios, disable scrollstart listening like silentScroll would
2202
+ $.event.special.scrollstart.enabled = false;
2203
+
2204
+ window.scrollTo( 0, toScroll );
2205
+
2206
+ // reenable scrollstart listening like silentScroll would
2207
+ setTimeout(function() {
2208
+ $.event.special.scrollstart.enabled = true;
2209
+ }, 150 );
2210
+ },
2211
+ cleanFrom = function(){
2212
+ $from
2213
+ .removeClass( $.mobile.activePageClass + " out in reverse " + name )
2214
+ .height( "" );
2215
+ },
2216
+ startOut = function(){
2217
+ // if it's not sequential, call the doneOut transition to start the TO page animating in simultaneously
2218
+ if( !sequential ){
2219
+ doneOut();
2220
+ }
2221
+ else {
2222
+ $from.animationComplete( doneOut );
2223
+ }
2224
+
2225
+ // Set the from page's height and start it transitioning out
2226
+ // Note: setting an explicit height helps eliminate tiling in the transitions
2227
+ $from
2228
+ .height( screenHeight + $(window ).scrollTop() )
2229
+ .addClass( name + " out" + reverseClass );
2230
+ },
2231
+
2232
+ doneOut = function() {
2233
+
2234
+ if ( $from && sequential ) {
2235
+ cleanFrom();
2236
+ }
2237
+
2238
+ startIn();
2239
+ },
2240
+
2241
+ startIn = function(){
2242
+
2243
+ $to.addClass( $.mobile.activePageClass );
2244
+
2245
+ // Send focus to page as it is now display: block
2246
+ $.mobile.focusPage( $to );
2247
+
2248
+ // Set to page height
2249
+ $to.height( screenHeight + toScroll );
2250
+
2251
+ scrollPage();
2252
+
2253
+ if( !none ){
2254
+ $to.animationComplete( doneIn );
2255
+ }
2256
+
2257
+ $to.addClass( name + " in" + reverseClass );
2258
+
2259
+ if( none ){
2260
+ doneIn();
2261
+ }
2262
+
2263
+ },
2264
+
2265
+ doneIn = function() {
2266
+
2267
+ if ( !sequential ) {
2268
+
2269
+ if( $from ){
2270
+ cleanFrom();
2271
+ }
2272
+ }
2273
+
2274
+ $to
2275
+ .removeClass( "out in reverse " + name )
2276
+ .height( "" );
2277
+
2278
+ toggleViewportClass();
2279
+
2280
+ // In some browsers (iOS5), 3D transitions block the ability to scroll to the desired location during transition
2281
+ // This ensures we jump to that spot after the fact, if we aren't there already.
2282
+ if( $( window ).scrollTop() !== toScroll ){
2283
+ scrollPage();
2284
+ }
2285
+
2286
+ deferred.resolve( name, reverse, $to, $from, true );
2287
+ };
2288
+
2289
+ toggleViewportClass();
2290
+
2291
+ if ( $from && !none ) {
2292
+ startOut();
2293
+ }
2294
+ else {
2295
+ doneOut();
2296
+ }
2297
+
2298
+ return deferred.promise();
2299
+ };
2300
+ }
2301
+
2302
+ // generate the handlers from the above
2303
+ var sequentialHandler = createHandler(),
2304
+ simultaneousHandler = createHandler( false );
2305
+
2306
+ // Make our transition handler the public default.
2307
+ $.mobile.defaultTransitionHandler = sequentialHandler;
2308
+
2309
+ //transition handler dictionary for 3rd party transitions
2310
+ $.mobile.transitionHandlers = {
2311
+ "default": $.mobile.defaultTransitionHandler,
2312
+ "sequential": sequentialHandler,
2313
+ "simultaneous": simultaneousHandler
2314
+ };
2315
+
2316
+ $.mobile.transitionFallbacks = {};
2317
+
2318
+ })( jQuery, this );
2319
+
2320
+ ( function( $, undefined ) {
2321
+
2322
+ //define vars for interal use
2323
+ var $window = $( window ),
2324
+ $html = $( 'html' ),
2325
+ $head = $( 'head' ),
2326
+
2327
+ //url path helpers for use in relative url management
2328
+ path = {
2329
+
2330
+ // This scary looking regular expression parses an absolute URL or its relative
2331
+ // variants (protocol, site, document, query, and hash), into the various
2332
+ // components (protocol, host, path, query, fragment, etc that make up the
2333
+ // URL as well as some other commonly used sub-parts. When used with RegExp.exec()
2334
+ // or String.match, it parses the URL into a results array that looks like this:
2335
+ //
2336
+ // [0]: http://jblas:password@mycompany.com:8080/mail/inbox?msg=1234&type=unread#msg-content
2337
+ // [1]: http://jblas:password@mycompany.com:8080/mail/inbox?msg=1234&type=unread
2338
+ // [2]: http://jblas:password@mycompany.com:8080/mail/inbox
2339
+ // [3]: http://jblas:password@mycompany.com:8080
2340
+ // [4]: http:
2341
+ // [5]: //
2342
+ // [6]: jblas:password@mycompany.com:8080
2343
+ // [7]: jblas:password
2344
+ // [8]: jblas
2345
+ // [9]: password
2346
+ // [10]: mycompany.com:8080
2347
+ // [11]: mycompany.com
2348
+ // [12]: 8080
2349
+ // [13]: /mail/inbox
2350
+ // [14]: /mail/
2351
+ // [15]: inbox
2352
+ // [16]: ?msg=1234&type=unread
2353
+ // [17]: #msg-content
2354
+ //
2355
+ urlParseRE: /^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,
2356
+
2357
+ //Parse a URL into a structure that allows easy access to
2358
+ //all of the URL components by name.
2359
+ parseUrl: function( url ) {
2360
+ // If we're passed an object, we'll assume that it is
2361
+ // a parsed url object and just return it back to the caller.
2362
+ if ( $.type( url ) === "object" ) {
2363
+ return url;
2364
+ }
2365
+
2366
+ var matches = path.urlParseRE.exec( url || "" ) || [];
2367
+
2368
+ // Create an object that allows the caller to access the sub-matches
2369
+ // by name. Note that IE returns an empty string instead of undefined,
2370
+ // like all other browsers do, so we normalize everything so its consistent
2371
+ // no matter what browser we're running on.
2372
+ return {
2373
+ href: matches[ 0 ] || "",
2374
+ hrefNoHash: matches[ 1 ] || "",
2375
+ hrefNoSearch: matches[ 2 ] || "",
2376
+ domain: matches[ 3 ] || "",
2377
+ protocol: matches[ 4 ] || "",
2378
+ doubleSlash: matches[ 5 ] || "",
2379
+ authority: matches[ 6 ] || "",
2380
+ username: matches[ 8 ] || "",
2381
+ password: matches[ 9 ] || "",
2382
+ host: matches[ 10 ] || "",
2383
+ hostname: matches[ 11 ] || "",
2384
+ port: matches[ 12 ] || "",
2385
+ pathname: matches[ 13 ] || "",
2386
+ directory: matches[ 14 ] || "",
2387
+ filename: matches[ 15 ] || "",
2388
+ search: matches[ 16 ] || "",
2389
+ hash: matches[ 17 ] || ""
2390
+ };
2391
+ },
2392
+
2393
+ //Turn relPath into an asbolute path. absPath is
2394
+ //an optional absolute path which describes what
2395
+ //relPath is relative to.
2396
+ makePathAbsolute: function( relPath, absPath ) {
2397
+ if ( relPath && relPath.charAt( 0 ) === "/" ) {
2398
+ return relPath;
2399
+ }
2400
+
2401
+ relPath = relPath || "";
2402
+ absPath = absPath ? absPath.replace( /^\/|(\/[^\/]*|[^\/]+)$/g, "" ) : "";
2403
+
2404
+ var absStack = absPath ? absPath.split( "/" ) : [],
2405
+ relStack = relPath.split( "/" );
2406
+ for ( var i = 0; i < relStack.length; i++ ) {
2407
+ var d = relStack[ i ];
2408
+ switch ( d ) {
2409
+ case ".":
2410
+ break;
2411
+ case "..":
2412
+ if ( absStack.length ) {
2413
+ absStack.pop();
2414
+ }
2415
+ break;
2416
+ default:
2417
+ absStack.push( d );
2418
+ break;
2419
+ }
2420
+ }
2421
+ return "/" + absStack.join( "/" );
2422
+ },
2423
+
2424
+ //Returns true if both urls have the same domain.
2425
+ isSameDomain: function( absUrl1, absUrl2 ) {
2426
+ return path.parseUrl( absUrl1 ).domain === path.parseUrl( absUrl2 ).domain;
2427
+ },
2428
+
2429
+ //Returns true for any relative variant.
2430
+ isRelativeUrl: function( url ) {
2431
+ // All relative Url variants have one thing in common, no protocol.
2432
+ return path.parseUrl( url ).protocol === "";
2433
+ },
2434
+
2435
+ //Returns true for an absolute url.
2436
+ isAbsoluteUrl: function( url ) {
2437
+ return path.parseUrl( url ).protocol !== "";
2438
+ },
2439
+
2440
+ //Turn the specified realtive URL into an absolute one. This function
2441
+ //can handle all relative variants (protocol, site, document, query, fragment).
2442
+ makeUrlAbsolute: function( relUrl, absUrl ) {
2443
+ if ( !path.isRelativeUrl( relUrl ) ) {
2444
+ return relUrl;
2445
+ }
2446
+
2447
+ var relObj = path.parseUrl( relUrl ),
2448
+ absObj = path.parseUrl( absUrl ),
2449
+ protocol = relObj.protocol || absObj.protocol,
2450
+ doubleSlash = relObj.protocol ? relObj.doubleSlash : ( relObj.doubleSlash || absObj.doubleSlash ),
2451
+ authority = relObj.authority || absObj.authority,
2452
+ hasPath = relObj.pathname !== "",
2453
+ pathname = path.makePathAbsolute( relObj.pathname || absObj.filename, absObj.pathname ),
2454
+ search = relObj.search || ( !hasPath && absObj.search ) || "",
2455
+ hash = relObj.hash;
2456
+
2457
+ return protocol + doubleSlash + authority + pathname + search + hash;
2458
+ },
2459
+
2460
+ //Add search (aka query) params to the specified url.
2461
+ addSearchParams: function( url, params ) {
2462
+ var u = path.parseUrl( url ),
2463
+ p = ( typeof params === "object" ) ? $.param( params ) : params,
2464
+ s = u.search || "?";
2465
+ return u.hrefNoSearch + s + ( s.charAt( s.length - 1 ) !== "?" ? "&" : "" ) + p + ( u.hash || "" );
2466
+ },
2467
+
2468
+ convertUrlToDataUrl: function( absUrl ) {
2469
+ var u = path.parseUrl( absUrl );
2470
+ if ( path.isEmbeddedPage( u ) ) {
2471
+ // For embedded pages, remove the dialog hash key as in getFilePath(),
2472
+ // otherwise the Data Url won't match the id of the embedded Page.
2473
+ return u.hash.split( dialogHashKey )[0].replace( /^#/, "" );
2474
+ } else if ( path.isSameDomain( u, documentBase ) ) {
2475
+ return u.hrefNoHash.replace( documentBase.domain, "" );
2476
+ }
2477
+ return absUrl;
2478
+ },
2479
+
2480
+ //get path from current hash, or from a file path
2481
+ get: function( newPath ) {
2482
+ if( newPath === undefined ) {
2483
+ newPath = location.hash;
2484
+ }
2485
+ return path.stripHash( newPath ).replace( /[^\/]*\.[^\/*]+$/, '' );
2486
+ },
2487
+
2488
+ //return the substring of a filepath before the sub-page key, for making a server request
2489
+ getFilePath: function( path ) {
2490
+ var splitkey = '&' + $.mobile.subPageUrlKey;
2491
+ return path && path.split( splitkey )[0].split( dialogHashKey )[0];
2492
+ },
2493
+
2494
+ //set location hash to path
2495
+ set: function( path ) {
2496
+ location.hash = path;
2497
+ },
2498
+
2499
+ //test if a given url (string) is a path
2500
+ //NOTE might be exceptionally naive
2501
+ isPath: function( url ) {
2502
+ return ( /\// ).test( url );
2503
+ },
2504
+
2505
+ //return a url path with the window's location protocol/hostname/pathname removed
2506
+ clean: function( url ) {
2507
+ return url.replace( documentBase.domain, "" );
2508
+ },
2509
+
2510
+ //just return the url without an initial #
2511
+ stripHash: function( url ) {
2512
+ return url.replace( /^#/, "" );
2513
+ },
2514
+
2515
+ //remove the preceding hash, any query params, and dialog notations
2516
+ cleanHash: function( hash ) {
2517
+ return path.stripHash( hash.replace( /\?.*$/, "" ).replace( dialogHashKey, "" ) );
2518
+ },
2519
+
2520
+ //check whether a url is referencing the same domain, or an external domain or different protocol
2521
+ //could be mailto, etc
2522
+ isExternal: function( url ) {
2523
+ var u = path.parseUrl( url );
2524
+ return u.protocol && u.domain !== documentUrl.domain ? true : false;
2525
+ },
2526
+
2527
+ hasProtocol: function( url ) {
2528
+ return ( /^(:?\w+:)/ ).test( url );
2529
+ },
2530
+
2531
+ //check if the specified url refers to the first page in the main application document.
2532
+ isFirstPageUrl: function( url ) {
2533
+ // We only deal with absolute paths.
2534
+ var u = path.parseUrl( path.makeUrlAbsolute( url, documentBase ) ),
2535
+
2536
+ // Does the url have the same path as the document?
2537
+ samePath = u.hrefNoHash === documentUrl.hrefNoHash || ( documentBaseDiffers && u.hrefNoHash === documentBase.hrefNoHash ),
2538
+
2539
+ // Get the first page element.
2540
+ fp = $.mobile.firstPage,
2541
+
2542
+ // Get the id of the first page element if it has one.
2543
+ fpId = fp && fp[0] ? fp[0].id : undefined;
2544
+
2545
+ // The url refers to the first page if the path matches the document and
2546
+ // it either has no hash value, or the hash is exactly equal to the id of the
2547
+ // first page element.
2548
+ return samePath && ( !u.hash || u.hash === "#" || ( fpId && u.hash.replace( /^#/, "" ) === fpId ) );
2549
+ },
2550
+
2551
+ isEmbeddedPage: function( url ) {
2552
+ var u = path.parseUrl( url );
2553
+
2554
+ //if the path is absolute, then we need to compare the url against
2555
+ //both the documentUrl and the documentBase. The main reason for this
2556
+ //is that links embedded within external documents will refer to the
2557
+ //application document, whereas links embedded within the application
2558
+ //document will be resolved against the document base.
2559
+ if ( u.protocol !== "" ) {
2560
+ return ( u.hash && ( u.hrefNoHash === documentUrl.hrefNoHash || ( documentBaseDiffers && u.hrefNoHash === documentBase.hrefNoHash ) ) );
2561
+ }
2562
+ return (/^#/).test( u.href );
2563
+ }
2564
+ },
2565
+
2566
+ //will be defined when a link is clicked and given an active class
2567
+ $activeClickedLink = null,
2568
+
2569
+ //urlHistory is purely here to make guesses at whether the back or forward button was clicked
2570
+ //and provide an appropriate transition
2571
+ urlHistory = {
2572
+ // Array of pages that are visited during a single page load.
2573
+ // Each has a url and optional transition, title, and pageUrl (which represents the file path, in cases where URL is obscured, such as dialogs)
2574
+ stack: [],
2575
+
2576
+ //maintain an index number for the active page in the stack
2577
+ activeIndex: 0,
2578
+
2579
+ //get active
2580
+ getActive: function() {
2581
+ return urlHistory.stack[ urlHistory.activeIndex ];
2582
+ },
2583
+
2584
+ getPrev: function() {
2585
+ return urlHistory.stack[ urlHistory.activeIndex - 1 ];
2586
+ },
2587
+
2588
+ getNext: function() {
2589
+ return urlHistory.stack[ urlHistory.activeIndex + 1 ];
2590
+ },
2591
+
2592
+ // addNew is used whenever a new page is added
2593
+ addNew: function( url, transition, title, pageUrl, role ) {
2594
+ //if there's forward history, wipe it
2595
+ if( urlHistory.getNext() ) {
2596
+ urlHistory.clearForward();
2597
+ }
2598
+
2599
+ urlHistory.stack.push( {url : url, transition: transition, title: title, pageUrl: pageUrl, role: role } );
2600
+
2601
+ urlHistory.activeIndex = urlHistory.stack.length - 1;
2602
+ },
2603
+
2604
+ //wipe urls ahead of active index
2605
+ clearForward: function() {
2606
+ urlHistory.stack = urlHistory.stack.slice( 0, urlHistory.activeIndex + 1 );
2607
+ },
2608
+
2609
+ directHashChange: function( opts ) {
2610
+ var back , forward, newActiveIndex, prev = this.getActive();
2611
+
2612
+ // check if url isp in history and if it's ahead or behind current page
2613
+ $.each( urlHistory.stack, function( i, historyEntry ) {
2614
+
2615
+ //if the url is in the stack, it's a forward or a back
2616
+ if( opts.currentUrl === historyEntry.url ) {
2617
+ //define back and forward by whether url is older or newer than current page
2618
+ back = i < urlHistory.activeIndex;
2619
+ forward = !back;
2620
+ newActiveIndex = i;
2621
+ }
2622
+ });
2623
+
2624
+ // save new page index, null check to prevent falsey 0 result
2625
+ this.activeIndex = newActiveIndex !== undefined ? newActiveIndex : this.activeIndex;
2626
+
2627
+ if( back ) {
2628
+ ( opts.either || opts.isBack )( true );
2629
+ } else if( forward ) {
2630
+ ( opts.either || opts.isForward )( false );
2631
+ }
2632
+ },
2633
+
2634
+ //disable hashchange event listener internally to ignore one change
2635
+ //toggled internally when location.hash is updated to match the url of a successful page load
2636
+ ignoreNextHashChange: false
2637
+ },
2638
+
2639
+ //define first selector to receive focus when a page is shown
2640
+ focusable = "[tabindex],a,button:visible,select:visible,input",
2641
+
2642
+ //queue to hold simultanious page transitions
2643
+ pageTransitionQueue = [],
2644
+
2645
+ //indicates whether or not page is in process of transitioning
2646
+ isPageTransitioning = false,
2647
+
2648
+ //nonsense hash change key for dialogs, so they create a history entry
2649
+ dialogHashKey = "&ui-state=dialog",
2650
+
2651
+ //existing base tag?
2652
+ $base = $head.children( "base" ),
2653
+
2654
+ //tuck away the original document URL minus any fragment.
2655
+ documentUrl = path.parseUrl( location.href ),
2656
+
2657
+ //if the document has an embedded base tag, documentBase is set to its
2658
+ //initial value. If a base tag does not exist, then we default to the documentUrl.
2659
+ documentBase = $base.length ? path.parseUrl( path.makeUrlAbsolute( $base.attr( "href" ), documentUrl.href ) ) : documentUrl,
2660
+
2661
+ //cache the comparison once.
2662
+ documentBaseDiffers = ( documentUrl.hrefNoHash !== documentBase.hrefNoHash );
2663
+
2664
+ //base element management, defined depending on dynamic base tag support
2665
+ var base = $.support.dynamicBaseTag ? {
2666
+
2667
+ //define base element, for use in routing asset urls that are referenced in Ajax-requested markup
2668
+ element: ( $base.length ? $base : $( "<base>", { href: documentBase.hrefNoHash } ).prependTo( $head ) ),
2669
+
2670
+ //set the generated BASE element's href attribute to a new page's base path
2671
+ set: function( href ) {
2672
+ base.element.attr( "href", path.makeUrlAbsolute( href, documentBase ) );
2673
+ },
2674
+
2675
+ //set the generated BASE element's href attribute to a new page's base path
2676
+ reset: function() {
2677
+ base.element.attr( "href", documentBase.hrefNoHash );
2678
+ }
2679
+
2680
+ } : undefined;
2681
+
2682
+ /*
2683
+ internal utility functions
2684
+ --------------------------------------*/
2685
+
2686
+
2687
+ //direct focus to the page title, or otherwise first focusable element
2688
+ $.mobile.focusPage = function ( page ) {
2689
+ var autofocus = page.find("[autofocus]"),
2690
+ pageTitle = page.find( ".ui-title:eq(0)" );
2691
+
2692
+ if( autofocus.length ) {
2693
+ autofocus.focus();
2694
+ return;
2695
+ }
2696
+
2697
+ if( pageTitle.length ) {
2698
+ pageTitle.focus();
2699
+ }
2700
+ else{
2701
+ page.focus();
2702
+ }
2703
+ }
2704
+
2705
+ //remove active classes after page transition or error
2706
+ function removeActiveLinkClass( forceRemoval ) {
2707
+ if( !!$activeClickedLink && ( !$activeClickedLink.closest( '.ui-page-active' ).length || forceRemoval ) ) {
2708
+ $activeClickedLink.removeClass( $.mobile.activeBtnClass );
2709
+ }
2710
+ $activeClickedLink = null;
2711
+ }
2712
+
2713
+ function releasePageTransitionLock() {
2714
+ isPageTransitioning = false;
2715
+ if( pageTransitionQueue.length > 0 ) {
2716
+ $.mobile.changePage.apply( null, pageTransitionQueue.pop() );
2717
+ }
2718
+ }
2719
+
2720
+ // Save the last scroll distance per page, before it is hidden
2721
+ var setLastScrollEnabled = true,
2722
+ setLastScroll, delayedSetLastScroll;
2723
+
2724
+ setLastScroll = function() {
2725
+ // this barrier prevents setting the scroll value based on the browser
2726
+ // scrolling the window based on a hashchange
2727
+ if( !setLastScrollEnabled ) {
2728
+ return;
2729
+ }
2730
+
2731
+ var active = $.mobile.urlHistory.getActive();
2732
+
2733
+ if( active ) {
2734
+ var lastScroll = $window.scrollTop();
2735
+
2736
+ // Set active page's lastScroll prop.
2737
+ // If the location we're scrolling to is less than minScrollBack, let it go.
2738
+ active.lastScroll = lastScroll < $.mobile.minScrollBack ? $.mobile.defaultHomeScroll : lastScroll;
2739
+ }
2740
+ };
2741
+
2742
+ // bind to scrollstop to gather scroll position. The delay allows for the hashchange
2743
+ // event to fire and disable scroll recording in the case where the browser scrolls
2744
+ // to the hash targets location (sometimes the top of the page). once pagechange fires
2745
+ // getLastScroll is again permitted to operate
2746
+ delayedSetLastScroll = function() {
2747
+ setTimeout( setLastScroll, 100 );
2748
+ };
2749
+
2750
+ // disable an scroll setting when a hashchange has been fired, this only works
2751
+ // because the recording of the scroll position is delayed for 100ms after
2752
+ // the browser might have changed the position because of the hashchange
2753
+ $window.bind( $.support.pushState ? "popstate" : "hashchange", function() {
2754
+ setLastScrollEnabled = false;
2755
+ });
2756
+
2757
+ // handle initial hashchange from chrome :(
2758
+ $window.one( $.support.pushState ? "popstate" : "hashchange", function() {
2759
+ setLastScrollEnabled = true;
2760
+ });
2761
+
2762
+ // wait until the mobile page container has been determined to bind to pagechange
2763
+ $window.one( "pagecontainercreate", function(){
2764
+ // once the page has changed, re-enable the scroll recording
2765
+ $.mobile.pageContainer.bind( "pagechange", function() {
2766
+
2767
+ setLastScrollEnabled = true;
2768
+
2769
+ // remove any binding that previously existed on the get scroll
2770
+ // which may or may not be different than the scroll element determined for
2771
+ // this page previously
2772
+ $window.unbind( "scrollstop", delayedSetLastScroll );
2773
+
2774
+ // determine and bind to the current scoll element which may be the window
2775
+ // or in the case of touch overflow the element with touch overflow
2776
+ $window.bind( "scrollstop", delayedSetLastScroll );
2777
+ });
2778
+ });
2779
+
2780
+ // bind to scrollstop for the first page as "pagechange" won't be fired in that case
2781
+ $window.bind( "scrollstop", delayedSetLastScroll );
2782
+
2783
+ //function for transitioning between two existing pages
2784
+ function transitionPages( toPage, fromPage, transition, reverse ) {
2785
+
2786
+ if( fromPage ) {
2787
+ //trigger before show/hide events
2788
+ fromPage.data( "page" )._trigger( "beforehide", null, { nextPage: toPage } );
2789
+ }
2790
+
2791
+ toPage.data( "page" )._trigger( "beforeshow", null, { prevPage: fromPage || $( "" ) } );
2792
+
2793
+ //clear page loader
2794
+ $.mobile.hidePageLoadingMsg();
2795
+
2796
+ // If transition is defined, check if css 3D transforms are supported, and if not, if a fallback is specified
2797
+ if( transition && !$.support.cssTransform3d && $.mobile.transitionFallbacks[ transition ] ){
2798
+ transition = $.mobile.transitionFallbacks[ transition ];
2799
+ }
2800
+
2801
+ //find the transition handler for the specified transition. If there
2802
+ //isn't one in our transitionHandlers dictionary, use the default one.
2803
+ //call the handler immediately to kick-off the transition.
2804
+ var th = $.mobile.transitionHandlers[ transition || "default" ] || $.mobile.defaultTransitionHandler,
2805
+ promise = th( transition, reverse, toPage, fromPage );
2806
+
2807
+ promise.done(function() {
2808
+
2809
+ //trigger show/hide events
2810
+ if( fromPage ) {
2811
+ fromPage.data( "page" )._trigger( "hide", null, { nextPage: toPage } );
2812
+ }
2813
+
2814
+ //trigger pageshow, define prevPage as either fromPage or empty jQuery obj
2815
+ toPage.data( "page" )._trigger( "show", null, { prevPage: fromPage || $( "" ) } );
2816
+ });
2817
+
2818
+ return promise;
2819
+ }
2820
+
2821
+ //simply set the active page's minimum height to screen height, depending on orientation
2822
+ function getScreenHeight(){
2823
+ // Native innerHeight returns more accurate value for this across platforms,
2824
+ // jQuery version is here as a normalized fallback for platforms like Symbian
2825
+ return window.innerHeight || $( window ).height();
2826
+ }
2827
+
2828
+ $.mobile.getScreenHeight = getScreenHeight;
2829
+
2830
+ //simply set the active page's minimum height to screen height, depending on orientation
2831
+ function resetActivePageHeight(){
2832
+ var aPage = $( "." + $.mobile.activePageClass ),
2833
+ aPagePadT = parseFloat( aPage.css( "padding-top" ) ),
2834
+ aPagePadB = parseFloat( aPage.css( "padding-bottom" ) );
2835
+
2836
+ aPage.css( "min-height", getScreenHeight() - aPagePadT - aPagePadB );
2837
+ }
2838
+
2839
+ //shared page enhancements
2840
+ function enhancePage( $page, role ) {
2841
+ // If a role was specified, make sure the data-role attribute
2842
+ // on the page element is in sync.
2843
+ if( role ) {
2844
+ $page.attr( "data-" + $.mobile.ns + "role", role );
2845
+ }
2846
+
2847
+ //run page plugin
2848
+ $page.page();
2849
+ }
2850
+
2851
+ /* exposed $.mobile methods */
2852
+
2853
+ //animation complete callback
2854
+ $.fn.animationComplete = function( callback ) {
2855
+ if( $.support.cssTransitions ) {
2856
+ return $( this ).one( 'webkitAnimationEnd animationend', callback );
2857
+ }
2858
+ else{
2859
+ // defer execution for consistency between webkit/non webkit
2860
+ setTimeout( callback, 0 );
2861
+ return $( this );
2862
+ }
2863
+ };
2864
+
2865
+ //expose path object on $.mobile
2866
+ $.mobile.path = path;
2867
+
2868
+ //expose base object on $.mobile
2869
+ $.mobile.base = base;
2870
+
2871
+ //history stack
2872
+ $.mobile.urlHistory = urlHistory;
2873
+
2874
+ $.mobile.dialogHashKey = dialogHashKey;
2875
+
2876
+
2877
+
2878
+ //enable cross-domain page support
2879
+ $.mobile.allowCrossDomainPages = false;
2880
+
2881
+ //return the original document url
2882
+ $.mobile.getDocumentUrl = function(asParsedObject) {
2883
+ return asParsedObject ? $.extend( {}, documentUrl ) : documentUrl.href;
2884
+ };
2885
+
2886
+ //return the original document base url
2887
+ $.mobile.getDocumentBase = function(asParsedObject) {
2888
+ return asParsedObject ? $.extend( {}, documentBase ) : documentBase.href;
2889
+ };
2890
+
2891
+ $.mobile._bindPageRemove = function() {
2892
+ var page = $(this);
2893
+
2894
+ // when dom caching is not enabled or the page is embedded bind to remove the page on hide
2895
+ if( !page.data("page").options.domCache
2896
+ && page.is(":jqmData(external-page='true')") ) {
2897
+
2898
+ page.bind( 'pagehide.remove', function() {
2899
+ var $this = $( this ),
2900
+ prEvent = new $.Event( "pageremove" );
2901
+
2902
+ $this.trigger( prEvent );
2903
+
2904
+ if( !prEvent.isDefaultPrevented() ){
2905
+ $this.removeWithDependents();
2906
+ }
2907
+ });
2908
+ }
2909
+ };
2910
+
2911
+ // Load a page into the DOM.
2912
+ $.mobile.loadPage = function( url, options ) {
2913
+ // This function uses deferred notifications to let callers
2914
+ // know when the page is done loading, or if an error has occurred.
2915
+ var deferred = $.Deferred(),
2916
+
2917
+ // The default loadPage options with overrides specified by
2918
+ // the caller.
2919
+ settings = $.extend( {}, $.mobile.loadPage.defaults, options ),
2920
+
2921
+ // The DOM element for the page after it has been loaded.
2922
+ page = null,
2923
+
2924
+ // If the reloadPage option is true, and the page is already
2925
+ // in the DOM, dupCachedPage will be set to the page element
2926
+ // so that it can be removed after the new version of the
2927
+ // page is loaded off the network.
2928
+ dupCachedPage = null,
2929
+
2930
+ // determine the current base url
2931
+ findBaseWithDefault = function(){
2932
+ var closestBase = ( $.mobile.activePage && getClosestBaseUrl( $.mobile.activePage ) );
2933
+ return closestBase || documentBase.hrefNoHash;
2934
+ },
2935
+
2936
+ // The absolute version of the URL passed into the function. This
2937
+ // version of the URL may contain dialog/subpage params in it.
2938
+ absUrl = path.makeUrlAbsolute( url, findBaseWithDefault() );
2939
+
2940
+
2941
+ // If the caller provided data, and we're using "get" request,
2942
+ // append the data to the URL.
2943
+ if ( settings.data && settings.type === "get" ) {
2944
+ absUrl = path.addSearchParams( absUrl, settings.data );
2945
+ settings.data = undefined;
2946
+ }
2947
+
2948
+ // If the caller is using a "post" request, reloadPage must be true
2949
+ if( settings.data && settings.type === "post" ){
2950
+ settings.reloadPage = true;
2951
+ }
2952
+
2953
+ // The absolute version of the URL minus any dialog/subpage params.
2954
+ // In otherwords the real URL of the page to be loaded.
2955
+ var fileUrl = path.getFilePath( absUrl ),
2956
+
2957
+ // The version of the Url actually stored in the data-url attribute of
2958
+ // the page. For embedded pages, it is just the id of the page. For pages
2959
+ // within the same domain as the document base, it is the site relative
2960
+ // path. For cross-domain pages (Phone Gap only) the entire absolute Url
2961
+ // used to load the page.
2962
+ dataUrl = path.convertUrlToDataUrl( absUrl );
2963
+
2964
+ // Make sure we have a pageContainer to work with.
2965
+ settings.pageContainer = settings.pageContainer || $.mobile.pageContainer;
2966
+
2967
+ // Check to see if the page already exists in the DOM.
2968
+ page = settings.pageContainer.children( ":jqmData(url='" + dataUrl + "')" );
2969
+
2970
+ // If we failed to find the page, check to see if the url is a
2971
+ // reference to an embedded page. If so, it may have been dynamically
2972
+ // injected by a developer, in which case it would be lacking a data-url
2973
+ // attribute and in need of enhancement.
2974
+ if ( page.length === 0 && dataUrl && !path.isPath( dataUrl ) ) {
2975
+ page = settings.pageContainer.children( "#" + dataUrl )
2976
+ .attr( "data-" + $.mobile.ns + "url", dataUrl );
2977
+ }
2978
+
2979
+ // If we failed to find a page in the DOM, check the URL to see if it
2980
+ // refers to the first page in the application. If it isn't a reference
2981
+ // to the first page and refers to non-existent embedded page, error out.
2982
+ if ( page.length === 0 ) {
2983
+ if ( $.mobile.firstPage && path.isFirstPageUrl( fileUrl ) ) {
2984
+ // Check to make sure our cached-first-page is actually
2985
+ // in the DOM. Some user deployed apps are pruning the first
2986
+ // page from the DOM for various reasons, we check for this
2987
+ // case here because we don't want a first-page with an id
2988
+ // falling through to the non-existent embedded page error
2989
+ // case. If the first-page is not in the DOM, then we let
2990
+ // things fall through to the ajax loading code below so
2991
+ // that it gets reloaded.
2992
+ if ( $.mobile.firstPage.parent().length ) {
2993
+ page = $( $.mobile.firstPage );
2994
+ }
2995
+ } else if ( path.isEmbeddedPage( fileUrl ) ) {
2996
+ deferred.reject( absUrl, options );
2997
+ return deferred.promise();
2998
+ }
2999
+ }
3000
+
3001
+ // Reset base to the default document base.
3002
+ if ( base ) {
3003
+ base.reset();
3004
+ }
3005
+
3006
+ // If the page we are interested in is already in the DOM,
3007
+ // and the caller did not indicate that we should force a
3008
+ // reload of the file, we are done. Otherwise, track the
3009
+ // existing page as a duplicated.
3010
+ if ( page.length ) {
3011
+ if ( !settings.reloadPage ) {
3012
+ enhancePage( page, settings.role );
3013
+ deferred.resolve( absUrl, options, page );
3014
+ return deferred.promise();
3015
+ }
3016
+ dupCachedPage = page;
3017
+ }
3018
+
3019
+ var mpc = settings.pageContainer,
3020
+ pblEvent = new $.Event( "pagebeforeload" ),
3021
+ triggerData = { url: url, absUrl: absUrl, dataUrl: dataUrl, deferred: deferred, options: settings };
3022
+
3023
+ // Let listeners know we're about to load a page.
3024
+ mpc.trigger( pblEvent, triggerData );
3025
+
3026
+ // If the default behavior is prevented, stop here!
3027
+ if( pblEvent.isDefaultPrevented() ){
3028
+ return deferred.promise();
3029
+ }
3030
+
3031
+ if ( settings.showLoadMsg ) {
3032
+
3033
+ // This configurable timeout allows cached pages a brief delay to load without showing a message
3034
+ var loadMsgDelay = setTimeout(function(){
3035
+ $.mobile.showPageLoadingMsg();
3036
+ }, settings.loadMsgDelay ),
3037
+
3038
+ // Shared logic for clearing timeout and removing message.
3039
+ hideMsg = function(){
3040
+
3041
+ // Stop message show timer
3042
+ clearTimeout( loadMsgDelay );
3043
+
3044
+ // Hide loading message
3045
+ $.mobile.hidePageLoadingMsg();
3046
+ };
3047
+ }
3048
+
3049
+ if ( !( $.mobile.allowCrossDomainPages || path.isSameDomain( documentUrl, absUrl ) ) ) {
3050
+ deferred.reject( absUrl, options );
3051
+ } else {
3052
+ // Load the new page.
3053
+ $.ajax({
3054
+ url: fileUrl,
3055
+ type: settings.type,
3056
+ data: settings.data,
3057
+ dataType: "html",
3058
+ success: function( html, textStatus, xhr ) {
3059
+ //pre-parse html to check for a data-url,
3060
+ //use it as the new fileUrl, base path, etc
3061
+ var all = $( "<div></div>" ),
3062
+
3063
+ //page title regexp
3064
+ newPageTitle = html.match( /<title[^>]*>([^<]*)/ ) && RegExp.$1,
3065
+
3066
+ // TODO handle dialogs again
3067
+ pageElemRegex = new RegExp( "(<[^>]+\\bdata-" + $.mobile.ns + "role=[\"']?page[\"']?[^>]*>)" ),
3068
+ dataUrlRegex = new RegExp( "\\bdata-" + $.mobile.ns + "url=[\"']?([^\"'>]*)[\"']?" );
3069
+
3070
+
3071
+ // data-url must be provided for the base tag so resource requests can be directed to the
3072
+ // correct url. loading into a temprorary element makes these requests immediately
3073
+ if( pageElemRegex.test( html )
3074
+ && RegExp.$1
3075
+ && dataUrlRegex.test( RegExp.$1 )
3076
+ && RegExp.$1 ) {
3077
+ url = fileUrl = path.getFilePath( RegExp.$1 );
3078
+ }
3079
+
3080
+ if ( base ) {
3081
+ base.set( fileUrl );
3082
+ }
3083
+
3084
+ //workaround to allow scripts to execute when included in page divs
3085
+ all.get( 0 ).innerHTML = html;
3086
+ page = all.find( ":jqmData(role='page'), :jqmData(role='dialog')" ).first();
3087
+
3088
+ //if page elem couldn't be found, create one and insert the body element's contents
3089
+ if( !page.length ){
3090
+ page = $( "<div data-" + $.mobile.ns + "role='page'>" + html.split( /<\/?body[^>]*>/gmi )[1] + "</div>" );
3091
+ }
3092
+
3093
+ if ( newPageTitle && !page.jqmData( "title" ) ) {
3094
+ if ( ~newPageTitle.indexOf( "&" ) ) {
3095
+ newPageTitle = $( "<div>" + newPageTitle + "</div>" ).text();
3096
+ }
3097
+ page.jqmData( "title", newPageTitle );
3098
+ }
3099
+
3100
+ //rewrite src and href attrs to use a base url
3101
+ if( !$.support.dynamicBaseTag ) {
3102
+ var newPath = path.get( fileUrl );
3103
+ page.find( "[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]" ).each(function() {
3104
+ var thisAttr = $( this ).is( '[href]' ) ? 'href' :
3105
+ $(this).is('[src]') ? 'src' : 'action',
3106
+ thisUrl = $( this ).attr( thisAttr );
3107
+
3108
+ // XXX_jblas: We need to fix this so that it removes the document
3109
+ // base URL, and then prepends with the new page URL.
3110
+ //if full path exists and is same, chop it - helps IE out
3111
+ thisUrl = thisUrl.replace( location.protocol + '//' + location.host + location.pathname, '' );
3112
+
3113
+ if( !/^(\w+:|#|\/)/.test( thisUrl ) ) {
3114
+ $( this ).attr( thisAttr, newPath + thisUrl );
3115
+ }
3116
+ });
3117
+ }
3118
+
3119
+ //append to page and enhance
3120
+ // TODO taging a page with external to make sure that embedded pages aren't removed
3121
+ // by the various page handling code is bad. Having page handling code in many
3122
+ // places is bad. Solutions post 1.0
3123
+ page
3124
+ .attr( "data-" + $.mobile.ns + "url", path.convertUrlToDataUrl( fileUrl ) )
3125
+ .attr( "data-" + $.mobile.ns + "external-page", true )
3126
+ .appendTo( settings.pageContainer );
3127
+
3128
+ // wait for page creation to leverage options defined on widget
3129
+ page.one( 'pagecreate', $.mobile._bindPageRemove );
3130
+
3131
+ enhancePage( page, settings.role );
3132
+
3133
+ // Enhancing the page may result in new dialogs/sub pages being inserted
3134
+ // into the DOM. If the original absUrl refers to a sub-page, that is the
3135
+ // real page we are interested in.
3136
+ if ( absUrl.indexOf( "&" + $.mobile.subPageUrlKey ) > -1 ) {
3137
+ page = settings.pageContainer.children( ":jqmData(url='" + dataUrl + "')" );
3138
+ }
3139
+
3140
+ //bind pageHide to removePage after it's hidden, if the page options specify to do so
3141
+
3142
+ // Remove loading message.
3143
+ if ( settings.showLoadMsg ) {
3144
+ hideMsg();
3145
+ }
3146
+
3147
+ // Add the page reference and xhr to our triggerData.
3148
+ triggerData.xhr = xhr;
3149
+ triggerData.textStatus = textStatus;
3150
+ triggerData.page = page;
3151
+
3152
+ // Let listeners know the page loaded successfully.
3153
+ settings.pageContainer.trigger( "pageload", triggerData );
3154
+
3155
+ deferred.resolve( absUrl, options, page, dupCachedPage );
3156
+ },
3157
+ error: function( xhr, textStatus, errorThrown ) {
3158
+ //set base back to current path
3159
+ if( base ) {
3160
+ base.set( path.get() );
3161
+ }
3162
+
3163
+ // Add error info to our triggerData.
3164
+ triggerData.xhr = xhr;
3165
+ triggerData.textStatus = textStatus;
3166
+ triggerData.errorThrown = errorThrown;
3167
+
3168
+ var plfEvent = new $.Event( "pageloadfailed" );
3169
+
3170
+ // Let listeners know the page load failed.
3171
+ settings.pageContainer.trigger( plfEvent, triggerData );
3172
+
3173
+ // If the default behavior is prevented, stop here!
3174
+ // Note that it is the responsibility of the listener/handler
3175
+ // that called preventDefault(), to resolve/reject the
3176
+ // deferred object within the triggerData.
3177
+ if( plfEvent.isDefaultPrevented() ){
3178
+ return;
3179
+ }
3180
+
3181
+ // Remove loading message.
3182
+ if ( settings.showLoadMsg ) {
3183
+
3184
+ // Remove loading message.
3185
+ hideMsg();
3186
+
3187
+ // show error message
3188
+ $.mobile.showPageLoadingMsg( $.mobile.pageLoadErrorMessageTheme, $.mobile.pageLoadErrorMessage, true );
3189
+
3190
+ // hide after delay
3191
+ setTimeout( $.mobile.hidePageLoadingMsg, 1500 );
3192
+ }
3193
+
3194
+ deferred.reject( absUrl, options );
3195
+ }
3196
+ });
3197
+ }
3198
+
3199
+ return deferred.promise();
3200
+ };
3201
+
3202
+ $.mobile.loadPage.defaults = {
3203
+ type: "get",
3204
+ data: undefined,
3205
+ reloadPage: false,
3206
+ role: undefined, // By default we rely on the role defined by the @data-role attribute.
3207
+ showLoadMsg: false,
3208
+ pageContainer: undefined,
3209
+ loadMsgDelay: 50 // This delay allows loads that pull from browser cache to occur without showing the loading message.
3210
+ };
3211
+
3212
+ // Show a specific page in the page container.
3213
+ $.mobile.changePage = function( toPage, options ) {
3214
+ // If we are in the midst of a transition, queue the current request.
3215
+ // We'll call changePage() once we're done with the current transition to
3216
+ // service the request.
3217
+ if( isPageTransitioning ) {
3218
+ pageTransitionQueue.unshift( arguments );
3219
+ return;
3220
+ }
3221
+
3222
+ var settings = $.extend( {}, $.mobile.changePage.defaults, options );
3223
+
3224
+ // Make sure we have a pageContainer to work with.
3225
+ settings.pageContainer = settings.pageContainer || $.mobile.pageContainer;
3226
+
3227
+ // Make sure we have a fromPage.
3228
+ settings.fromPage = settings.fromPage || $.mobile.activePage;
3229
+
3230
+ var mpc = settings.pageContainer,
3231
+ pbcEvent = new $.Event( "pagebeforechange" ),
3232
+ triggerData = { toPage: toPage, options: settings };
3233
+
3234
+ // Let listeners know we're about to change the current page.
3235
+ mpc.trigger( pbcEvent, triggerData );
3236
+
3237
+ // If the default behavior is prevented, stop here!
3238
+ if( pbcEvent.isDefaultPrevented() ){
3239
+ return;
3240
+ }
3241
+
3242
+ // We allow "pagebeforechange" observers to modify the toPage in the trigger
3243
+ // data to allow for redirects. Make sure our toPage is updated.
3244
+
3245
+ toPage = triggerData.toPage;
3246
+
3247
+ // Set the isPageTransitioning flag to prevent any requests from
3248
+ // entering this method while we are in the midst of loading a page
3249
+ // or transitioning.
3250
+
3251
+ isPageTransitioning = true;
3252
+
3253
+ // If the caller passed us a url, call loadPage()
3254
+ // to make sure it is loaded into the DOM. We'll listen
3255
+ // to the promise object it returns so we know when
3256
+ // it is done loading or if an error ocurred.
3257
+ if ( typeof toPage == "string" ) {
3258
+ $.mobile.loadPage( toPage, settings )
3259
+ .done(function( url, options, newPage, dupCachedPage ) {
3260
+ isPageTransitioning = false;
3261
+ options.duplicateCachedPage = dupCachedPage;
3262
+ $.mobile.changePage( newPage, options );
3263
+ })
3264
+ .fail(function( url, options ) {
3265
+ isPageTransitioning = false;
3266
+
3267
+ //clear out the active button state
3268
+ removeActiveLinkClass( true );
3269
+
3270
+ //release transition lock so navigation is free again
3271
+ releasePageTransitionLock();
3272
+ settings.pageContainer.trigger( "pagechangefailed", triggerData );
3273
+ });
3274
+ return;
3275
+ }
3276
+
3277
+ // If we are going to the first-page of the application, we need to make
3278
+ // sure settings.dataUrl is set to the application document url. This allows
3279
+ // us to avoid generating a document url with an id hash in the case where the
3280
+ // first-page of the document has an id attribute specified.
3281
+ if ( toPage[ 0 ] === $.mobile.firstPage[ 0 ] && !settings.dataUrl ) {
3282
+ settings.dataUrl = documentUrl.hrefNoHash;
3283
+ }
3284
+
3285
+ // The caller passed us a real page DOM element. Update our
3286
+ // internal state and then trigger a transition to the page.
3287
+ var fromPage = settings.fromPage,
3288
+ url = ( settings.dataUrl && path.convertUrlToDataUrl( settings.dataUrl ) ) || toPage.jqmData( "url" ),
3289
+ // The pageUrl var is usually the same as url, except when url is obscured as a dialog url. pageUrl always contains the file path
3290
+ pageUrl = url,
3291
+ fileUrl = path.getFilePath( url ),
3292
+ active = urlHistory.getActive(),
3293
+ activeIsInitialPage = urlHistory.activeIndex === 0,
3294
+ historyDir = 0,
3295
+ pageTitle = document.title,
3296
+ isDialog = settings.role === "dialog" || toPage.jqmData( "role" ) === "dialog";
3297
+
3298
+ // By default, we prevent changePage requests when the fromPage and toPage
3299
+ // are the same element, but folks that generate content manually/dynamically
3300
+ // and reuse pages want to be able to transition to the same page. To allow
3301
+ // this, they will need to change the default value of allowSamePageTransition
3302
+ // to true, *OR*, pass it in as an option when they manually call changePage().
3303
+ // It should be noted that our default transition animations assume that the
3304
+ // formPage and toPage are different elements, so they may behave unexpectedly.
3305
+ // It is up to the developer that turns on the allowSamePageTransitiona option
3306
+ // to either turn off transition animations, or make sure that an appropriate
3307
+ // animation transition is used.
3308
+ if( fromPage && fromPage[0] === toPage[0] && !settings.allowSamePageTransition ) {
3309
+ isPageTransitioning = false;
3310
+ mpc.trigger( "pagechange", triggerData );
3311
+ return;
3312
+ }
3313
+
3314
+ // We need to make sure the page we are given has already been enhanced.
3315
+ enhancePage( toPage, settings.role );
3316
+
3317
+ // If the changePage request was sent from a hashChange event, check to see if the
3318
+ // page is already within the urlHistory stack. If so, we'll assume the user hit
3319
+ // the forward/back button and will try to match the transition accordingly.
3320
+ if( settings.fromHashChange ) {
3321
+ urlHistory.directHashChange({
3322
+ currentUrl: url,
3323
+ isBack: function() { historyDir = -1; },
3324
+ isForward: function() { historyDir = 1; }
3325
+ });
3326
+ }
3327
+
3328
+ // Kill the keyboard.
3329
+ // XXX_jblas: We need to stop crawling the entire document to kill focus. Instead,
3330
+ // we should be tracking focus with a delegate() handler so we already have
3331
+ // the element in hand at this point.
3332
+ // Wrap this in a try/catch block since IE9 throw "Unspecified error" if document.activeElement
3333
+ // is undefined when we are in an IFrame.
3334
+ try {
3335
+ if(document.activeElement && document.activeElement.nodeName.toLowerCase() != 'body') {
3336
+ $(document.activeElement).blur();
3337
+ } else {
3338
+ $( "input:focus, textarea:focus, select:focus" ).blur();
3339
+ }
3340
+ } catch(e) {}
3341
+
3342
+ // If we're displaying the page as a dialog, we don't want the url
3343
+ // for the dialog content to be used in the hash. Instead, we want
3344
+ // to append the dialogHashKey to the url of the current page.
3345
+ if ( isDialog && active ) {
3346
+ // on the initial page load active.url is undefined and in that case should
3347
+ // be an empty string. Moving the undefined -> empty string back into
3348
+ // urlHistory.addNew seemed imprudent given undefined better represents
3349
+ // the url state
3350
+ url = ( active.url || "" ) + dialogHashKey;
3351
+ }
3352
+
3353
+ // Set the location hash.
3354
+ if( settings.changeHash !== false && url ) {
3355
+ //disable hash listening temporarily
3356
+ urlHistory.ignoreNextHashChange = true;
3357
+ //update hash and history
3358
+ path.set( url );
3359
+ }
3360
+
3361
+ // if title element wasn't found, try the page div data attr too
3362
+ // If this is a deep-link or a reload ( active === undefined ) then just use pageTitle
3363
+ var newPageTitle = ( !active )? pageTitle : toPage.jqmData( "title" ) || toPage.children(":jqmData(role='header')").find(".ui-title" ).getEncodedText();
3364
+ if( !!newPageTitle && pageTitle == document.title ) {
3365
+ pageTitle = newPageTitle;
3366
+ }
3367
+ if ( !toPage.jqmData( "title" ) ) {
3368
+ toPage.jqmData( "title", pageTitle );
3369
+ }
3370
+
3371
+ // Make sure we have a transition defined.
3372
+ settings.transition = settings.transition
3373
+ || ( ( historyDir && !activeIsInitialPage ) ? active.transition : undefined )
3374
+ || ( isDialog ? $.mobile.defaultDialogTransition : $.mobile.defaultPageTransition );
3375
+
3376
+ //add page to history stack if it's not back or forward
3377
+ if( !historyDir ) {
3378
+ urlHistory.addNew( url, settings.transition, pageTitle, pageUrl, settings.role );
3379
+ }
3380
+
3381
+ //set page title
3382
+ document.title = urlHistory.getActive().title;
3383
+
3384
+ //set "toPage" as activePage
3385
+ $.mobile.activePage = toPage;
3386
+
3387
+ // If we're navigating back in the URL history, set reverse accordingly.
3388
+ settings.reverse = settings.reverse || historyDir < 0;
3389
+
3390
+ transitionPages( toPage, fromPage, settings.transition, settings.reverse )
3391
+ .done(function( name, reverse, $to, $from, alreadyFocused ) {
3392
+ removeActiveLinkClass();
3393
+
3394
+ //if there's a duplicateCachedPage, remove it from the DOM now that it's hidden
3395
+ if ( settings.duplicateCachedPage ) {
3396
+ settings.duplicateCachedPage.remove();
3397
+ }
3398
+
3399
+ // Send focus to the newly shown page. Moved from promise .done binding in transitionPages
3400
+ // itself to avoid ie bug that reports offsetWidth as > 0 (core check for visibility)
3401
+ // despite visibility: hidden addresses issue #2965
3402
+ // https://github.com/jquery/jquery-mobile/issues/2965
3403
+ if( !alreadyFocused ){
3404
+ $.mobile.focusPage( toPage );
3405
+ }
3406
+
3407
+ releasePageTransitionLock();
3408
+
3409
+ // Let listeners know we're all done changing the current page.
3410
+ mpc.trigger( "pagechange", triggerData );
3411
+ });
3412
+ };
3413
+
3414
+ $.mobile.changePage.defaults = {
3415
+ transition: undefined,
3416
+ reverse: false,
3417
+ changeHash: true,
3418
+ fromHashChange: false,
3419
+ role: undefined, // By default we rely on the role defined by the @data-role attribute.
3420
+ duplicateCachedPage: undefined,
3421
+ pageContainer: undefined,
3422
+ showLoadMsg: true, //loading message shows by default when pages are being fetched during changePage
3423
+ dataUrl: undefined,
3424
+ fromPage: undefined,
3425
+ allowSamePageTransition: false
3426
+ };
3427
+
3428
+ /* Event Bindings - hashchange, submit, and click */
3429
+ function findClosestLink( ele )
3430
+ {
3431
+ while ( ele ) {
3432
+ // Look for the closest element with a nodeName of "a".
3433
+ // Note that we are checking if we have a valid nodeName
3434
+ // before attempting to access it. This is because the
3435
+ // node we get called with could have originated from within
3436
+ // an embedded SVG document where some symbol instance elements
3437
+ // don't have nodeName defined on them, or strings are of type
3438
+ // SVGAnimatedString.
3439
+ if ( ( typeof ele.nodeName === "string" ) && ele.nodeName.toLowerCase() == "a" ) {
3440
+ break;
3441
+ }
3442
+ ele = ele.parentNode;
3443
+ }
3444
+ return ele;
3445
+ }
3446
+
3447
+ // The base URL for any given element depends on the page it resides in.
3448
+ function getClosestBaseUrl( ele )
3449
+ {
3450
+ // Find the closest page and extract out its url.
3451
+ var url = $( ele ).closest( ".ui-page" ).jqmData( "url" ),
3452
+ base = documentBase.hrefNoHash;
3453
+
3454
+ if ( !url || !path.isPath( url ) ) {
3455
+ url = base;
3456
+ }
3457
+
3458
+ return path.makeUrlAbsolute( url, base);
3459
+ }
3460
+
3461
+
3462
+ //The following event bindings should be bound after mobileinit has been triggered
3463
+ //the following function is called in the init file
3464
+ $.mobile._registerInternalEvents = function(){
3465
+
3466
+ //bind to form submit events, handle with Ajax
3467
+ $( document ).delegate( "form", "submit", function( event ) {
3468
+ var $this = $( this );
3469
+
3470
+ if( !$.mobile.ajaxEnabled ||
3471
+ // test that the form is, itself, ajax false
3472
+ $this.is(":jqmData(ajax='false')") ||
3473
+ // test that $.mobile.ignoreContentEnabled is set and
3474
+ // the form or one of it's parents is ajax=false
3475
+ !$this.jqmHijackable().length ) {
3476
+ return;
3477
+ }
3478
+
3479
+ var type = $this.attr( "method" ),
3480
+ target = $this.attr( "target" ),
3481
+ url = $this.attr( "action" );
3482
+
3483
+ // If no action is specified, browsers default to using the
3484
+ // URL of the document containing the form. Since we dynamically
3485
+ // pull in pages from external documents, the form should submit
3486
+ // to the URL for the source document of the page containing
3487
+ // the form.
3488
+ if ( !url ) {
3489
+ // Get the @data-url for the page containing the form.
3490
+ url = getClosestBaseUrl( $this );
3491
+ if ( url === documentBase.hrefNoHash ) {
3492
+ // The url we got back matches the document base,
3493
+ // which means the page must be an internal/embedded page,
3494
+ // so default to using the actual document url as a browser
3495
+ // would.
3496
+ url = documentUrl.hrefNoSearch;
3497
+ }
3498
+ }
3499
+
3500
+ url = path.makeUrlAbsolute( url, getClosestBaseUrl($this) );
3501
+
3502
+ //external submits use regular HTTP
3503
+ if( path.isExternal( url ) || target ) {
3504
+ return;
3505
+ }
3506
+
3507
+ $.mobile.changePage(
3508
+ url,
3509
+ {
3510
+ type: type && type.length && type.toLowerCase() || "get",
3511
+ data: $this.serialize(),
3512
+ transition: $this.jqmData( "transition" ),
3513
+ direction: $this.jqmData( "direction" ),
3514
+ reloadPage: true
3515
+ }
3516
+ );
3517
+ event.preventDefault();
3518
+ });
3519
+
3520
+ //add active state on vclick
3521
+ $( document ).bind( "vclick", function( event ) {
3522
+ // if this isn't a left click we don't care. Its important to note
3523
+ // that when the virtual event is generated it will create the which attr
3524
+ if ( event.which > 1 || !$.mobile.linkBindingEnabled ) {
3525
+ return;
3526
+ }
3527
+
3528
+ var link = findClosestLink( event.target );
3529
+
3530
+ // split from the previous return logic to avoid find closest where possible
3531
+ // TODO teach $.mobile.hijackable to operate on raw dom elements so the link wrapping
3532
+ // can be avoided
3533
+ if ( !$(link).jqmHijackable().length ) {
3534
+ return;
3535
+ }
3536
+
3537
+ if ( link ) {
3538
+ if ( path.parseUrl( link.getAttribute( "href" ) || "#" ).hash !== "#" ) {
3539
+ removeActiveLinkClass( true );
3540
+ $activeClickedLink = $( link ).closest( ".ui-btn" ).not( ".ui-disabled" );
3541
+ $activeClickedLink.addClass( $.mobile.activeBtnClass );
3542
+ $( "." + $.mobile.activePageClass + " .ui-btn" ).not( link ).blur();
3543
+
3544
+ // By caching the href value to data and switching the href to a #, we can avoid address bar showing in iOS. The click handler resets the href during its initial steps if this data is present
3545
+ $( link )
3546
+ .jqmData( "href", $( link ).attr( "href" ) )
3547
+ .attr( "href", "#" );
3548
+ }
3549
+ }
3550
+ });
3551
+
3552
+ // click routing - direct to HTTP or Ajax, accordingly
3553
+ $( document ).bind( "click", function( event ) {
3554
+ if( !$.mobile.linkBindingEnabled ){
3555
+ return;
3556
+ }
3557
+
3558
+ var link = findClosestLink( event.target ), $link = $( link ), httpCleanup;
3559
+
3560
+ // If there is no link associated with the click or its not a left
3561
+ // click we want to ignore the click
3562
+ // TODO teach $.mobile.hijackable to operate on raw dom elements so the link wrapping
3563
+ // can be avoided
3564
+ if ( !link || event.which > 1 || !$link.jqmHijackable().length ) {
3565
+ return;
3566
+ }
3567
+
3568
+ //remove active link class if external (then it won't be there if you come back)
3569
+ httpCleanup = function(){
3570
+ window.setTimeout( function() { removeActiveLinkClass( true ); }, 200 );
3571
+ };
3572
+
3573
+ // If there's data cached for the real href value, set the link's href back to it again. This pairs with an address bar workaround from the vclick handler
3574
+ if( $link.jqmData( "href" ) ){
3575
+ $link.attr( "href", $link.jqmData( "href" ) );
3576
+ }
3577
+
3578
+ //if there's a data-rel=back attr, go back in history
3579
+ if( $link.is( ":jqmData(rel='back')" ) ) {
3580
+ window.history.back();
3581
+ return false;
3582
+ }
3583
+
3584
+ var baseUrl = getClosestBaseUrl( $link ),
3585
+
3586
+ //get href, if defined, otherwise default to empty hash
3587
+ href = path.makeUrlAbsolute( $link.attr( "href" ) || "#", baseUrl );
3588
+
3589
+ //if ajax is disabled, exit early
3590
+ if( !$.mobile.ajaxEnabled && !path.isEmbeddedPage( href ) ){
3591
+ httpCleanup();
3592
+ //use default click handling
3593
+ return;
3594
+ }
3595
+
3596
+ // XXX_jblas: Ideally links to application pages should be specified as
3597
+ // an url to the application document with a hash that is either
3598
+ // the site relative path or id to the page. But some of the
3599
+ // internal code that dynamically generates sub-pages for nested
3600
+ // lists and select dialogs, just write a hash in the link they
3601
+ // create. This means the actual URL path is based on whatever
3602
+ // the current value of the base tag is at the time this code
3603
+ // is called. For now we are just assuming that any url with a
3604
+ // hash in it is an application page reference.
3605
+ if ( href.search( "#" ) != -1 ) {
3606
+ href = href.replace( /[^#]*#/, "" );
3607
+ if ( !href ) {
3608
+ //link was an empty hash meant purely
3609
+ //for interaction, so we ignore it.
3610
+ event.preventDefault();
3611
+ return;
3612
+ } else if ( path.isPath( href ) ) {
3613
+ //we have apath so make it the href we want to load.
3614
+ href = path.makeUrlAbsolute( href, baseUrl );
3615
+ } else {
3616
+ //we have a simple id so use the documentUrl as its base.
3617
+ href = path.makeUrlAbsolute( "#" + href, documentUrl.hrefNoHash );
3618
+ }
3619
+ }
3620
+
3621
+ // Should we handle this link, or let the browser deal with it?
3622
+ var useDefaultUrlHandling = $link.is( "[rel='external']" ) || $link.is( ":jqmData(ajax='false')" ) || $link.is( "[target]" ),
3623
+
3624
+ // Some embedded browsers, like the web view in Phone Gap, allow cross-domain XHR
3625
+ // requests if the document doing the request was loaded via the file:// protocol.
3626
+ // This is usually to allow the application to "phone home" and fetch app specific
3627
+ // data. We normally let the browser handle external/cross-domain urls, but if the
3628
+ // allowCrossDomainPages option is true, we will allow cross-domain http/https
3629
+ // requests to go through our page loading logic.
3630
+ isCrossDomainPageLoad = ( $.mobile.allowCrossDomainPages && documentUrl.protocol === "file:" && href.search( /^https?:/ ) != -1 ),
3631
+
3632
+ //check for protocol or rel and its not an embedded page
3633
+ //TODO overlap in logic from isExternal, rel=external check should be
3634
+ // moved into more comprehensive isExternalLink
3635
+ isExternal = useDefaultUrlHandling || ( path.isExternal( href ) && !isCrossDomainPageLoad );
3636
+
3637
+ if( isExternal ) {
3638
+ httpCleanup();
3639
+ //use default click handling
3640
+ return;
3641
+ }
3642
+
3643
+ //use ajax
3644
+ var transition = $link.jqmData( "transition" ),
3645
+ direction = $link.jqmData( "direction" ),
3646
+ reverse = ( direction && direction === "reverse" ) ||
3647
+ // deprecated - remove by 1.0
3648
+ $link.jqmData( "back" ),
3649
+
3650
+ //this may need to be more specific as we use data-rel more
3651
+ role = $link.attr( "data-" + $.mobile.ns + "rel" ) || undefined;
3652
+
3653
+ $.mobile.changePage( href, { transition: transition, reverse: reverse, role: role } );
3654
+ event.preventDefault();
3655
+ });
3656
+
3657
+ //prefetch pages when anchors with data-prefetch are encountered
3658
+ $( document ).delegate( ".ui-page", "pageshow.prefetch", function() {
3659
+ var urls = [];
3660
+ $( this ).find( "a:jqmData(prefetch)" ).each(function(){
3661
+ var $link = $(this),
3662
+ url = $link.attr( "href" );
3663
+
3664
+ if ( url && $.inArray( url, urls ) === -1 ) {
3665
+ urls.push( url );
3666
+
3667
+ $.mobile.loadPage( url, {role: $link.attr("data-" + $.mobile.ns + "rel")} );
3668
+ }
3669
+ });
3670
+ });
3671
+
3672
+ $.mobile._handleHashChange = function( hash ) {
3673
+ //find first page via hash
3674
+ var to = path.stripHash( hash ),
3675
+ //transition is false if it's the first page, undefined otherwise (and may be overridden by default)
3676
+ transition = $.mobile.urlHistory.stack.length === 0 ? "none" : undefined,
3677
+
3678
+ // default options for the changPage calls made after examining the current state
3679
+ // of the page and the hash
3680
+ changePageOptions = {
3681
+ transition: transition,
3682
+ changeHash: false,
3683
+ fromHashChange: true
3684
+ };
3685
+
3686
+ //if listening is disabled (either globally or temporarily), or it's a dialog hash
3687
+ if( !$.mobile.hashListeningEnabled || urlHistory.ignoreNextHashChange ) {
3688
+ urlHistory.ignoreNextHashChange = false;
3689
+ return;
3690
+ }
3691
+
3692
+ // special case for dialogs
3693
+ if( urlHistory.stack.length > 1 && to.indexOf( dialogHashKey ) > -1 ) {
3694
+
3695
+ // If current active page is not a dialog skip the dialog and continue
3696
+ // in the same direction
3697
+ if(!$.mobile.activePage.is( ".ui-dialog" )) {
3698
+ //determine if we're heading forward or backward and continue accordingly past
3699
+ //the current dialog
3700
+ urlHistory.directHashChange({
3701
+ currentUrl: to,
3702
+ isBack: function() { window.history.back(); },
3703
+ isForward: function() { window.history.forward(); }
3704
+ });
3705
+
3706
+ // prevent changePage()
3707
+ return;
3708
+ } else {
3709
+ // if the current active page is a dialog and we're navigating
3710
+ // to a dialog use the dialog objected saved in the stack
3711
+ urlHistory.directHashChange({
3712
+ currentUrl: to,
3713
+
3714
+ // regardless of the direction of the history change
3715
+ // do the following
3716
+ either: function( isBack ) {
3717
+ var active = $.mobile.urlHistory.getActive();
3718
+
3719
+ to = active.pageUrl;
3720
+
3721
+ // make sure to set the role, transition and reversal
3722
+ // as most of this is lost by the domCache cleaning
3723
+ $.extend( changePageOptions, {
3724
+ role: active.role,
3725
+ transition: active.transition,
3726
+ reverse: isBack
3727
+ });
3728
+ }
3729
+ });
3730
+ }
3731
+ }
3732
+
3733
+ //if to is defined, load it
3734
+ if ( to ) {
3735
+ // At this point, 'to' can be one of 3 things, a cached page element from
3736
+ // a history stack entry, an id, or site-relative/absolute URL. If 'to' is
3737
+ // an id, we need to resolve it against the documentBase, not the location.href,
3738
+ // since the hashchange could've been the result of a forward/backward navigation
3739
+ // that crosses from an external page/dialog to an internal page/dialog.
3740
+ to = ( typeof to === "string" && !path.isPath( to ) ) ? ( path.makeUrlAbsolute( '#' + to, documentBase ) ) : to;
3741
+ $.mobile.changePage( to, changePageOptions );
3742
+ } else {
3743
+ //there's no hash, go to the first page in the dom
3744
+ $.mobile.changePage( $.mobile.firstPage, changePageOptions );
3745
+ }
3746
+ };
3747
+
3748
+ //hashchange event handler
3749
+ $window.bind( "hashchange", function( e, triggered ) {
3750
+ $.mobile._handleHashChange( location.hash );
3751
+ });
3752
+
3753
+ //set page min-heights to be device specific
3754
+ $( document ).bind( "pageshow", resetActivePageHeight );
3755
+ $( window ).bind( "throttledresize", resetActivePageHeight );
3756
+
3757
+ };//_registerInternalEvents callback
3758
+
3759
+ })( jQuery );
3760
+
3761
+ ( function( $, window ) {
3762
+ // For now, let's Monkeypatch this onto the end of $.mobile._registerInternalEvents
3763
+ // Scope self to pushStateHandler so we can reference it sanely within the
3764
+ // methods handed off as event handlers
3765
+ var pushStateHandler = {},
3766
+ self = pushStateHandler,
3767
+ $win = $( window ),
3768
+ url = $.mobile.path.parseUrl( location.href );
3769
+
3770
+ $.extend( pushStateHandler, {
3771
+ // TODO move to a path helper, this is rather common functionality
3772
+ initialFilePath: (function() {
3773
+ return url.pathname + url.search;
3774
+ })(),
3775
+
3776
+ initialHref: url.hrefNoHash,
3777
+
3778
+ state: function() {
3779
+ return {
3780
+ hash: location.hash || "#" + self.initialFilePath,
3781
+ title: document.title,
3782
+
3783
+ // persist across refresh
3784
+ initialHref: self.initialHref
3785
+ };
3786
+ },
3787
+
3788
+ resetUIKeys: function( url ) {
3789
+ var dialog = $.mobile.dialogHashKey,
3790
+ subkey = "&" + $.mobile.subPageUrlKey,
3791
+ dialogIndex = url.indexOf( dialog );
3792
+
3793
+ if( dialogIndex > -1 ) {
3794
+ url = url.slice( 0, dialogIndex ) + "#" + url.slice( dialogIndex );
3795
+ } else if( url.indexOf( subkey ) > -1 ) {
3796
+ url = url.split( subkey ).join( "#" + subkey );
3797
+ }
3798
+
3799
+ return url;
3800
+ },
3801
+
3802
+ hashValueAfterReset: function( url ) {
3803
+ var resetUrl = self.resetUIKeys( url );
3804
+ return $.mobile.path.parseUrl( resetUrl ).hash;
3805
+ },
3806
+
3807
+ // TODO sort out a single barrier to hashchange functionality
3808
+ nextHashChangePrevented: function( value ) {
3809
+ $.mobile.urlHistory.ignoreNextHashChange = value;
3810
+ self.onHashChangeDisabled = value;
3811
+ },
3812
+
3813
+ // on hash change we want to clean up the url
3814
+ // NOTE this takes place *after* the vanilla navigation hash change
3815
+ // handling has taken place and set the state of the DOM
3816
+ onHashChange: function( e ) {
3817
+ // disable this hash change
3818
+ if( self.onHashChangeDisabled ){
3819
+ return;
3820
+ }
3821
+
3822
+ var href, state,
3823
+ hash = location.hash,
3824
+ isPath = $.mobile.path.isPath( hash ),
3825
+ resolutionUrl = isPath ? location.href : $.mobile.getDocumentUrl();
3826
+
3827
+ hash = isPath ? hash.replace( "#", "" ) : hash;
3828
+
3829
+
3830
+ // propulate the hash when its not available
3831
+ state = self.state();
3832
+
3833
+ // make the hash abolute with the current href
3834
+ href = $.mobile.path.makeUrlAbsolute( hash, resolutionUrl );
3835
+
3836
+ if ( isPath ) {
3837
+ href = self.resetUIKeys( href );
3838
+ }
3839
+
3840
+ // replace the current url with the new href and store the state
3841
+ // Note that in some cases we might be replacing an url with the
3842
+ // same url. We do this anyways because we need to make sure that
3843
+ // all of our history entries have a state object associated with
3844
+ // them. This allows us to work around the case where window.history.back()
3845
+ // is called to transition from an external page to an embedded page.
3846
+ // In that particular case, a hashchange event is *NOT* generated by the browser.
3847
+ // Ensuring each history entry has a state object means that onPopState()
3848
+ // will always trigger our hashchange callback even when a hashchange event
3849
+ // is not fired.
3850
+ history.replaceState( state, document.title, href );
3851
+ },
3852
+
3853
+ // on popstate (ie back or forward) we need to replace the hash that was there previously
3854
+ // cleaned up by the additional hash handling
3855
+ onPopState: function( e ) {
3856
+ var poppedState = e.originalEvent.state,
3857
+ timeout, fromHash, toHash, hashChanged;
3858
+
3859
+ // if there's no state its not a popstate we care about, eg chrome's initial popstate
3860
+ if( poppedState ) {
3861
+ // the active url in the history stack will still be from the previous state
3862
+ // so we can use it to verify if a hashchange will be fired from the popstate
3863
+ fromHash = self.hashValueAfterReset( $.mobile.urlHistory.getActive().url );
3864
+
3865
+ // the hash stored in the state popped off the stack will be our currenturl or
3866
+ // the url to which we wish to navigate
3867
+ toHash = self.hashValueAfterReset( poppedState.hash.replace("#", "") );
3868
+
3869
+ // if the hashes of the urls are different we must assume that the browser
3870
+ // will fire a hashchange
3871
+ hashChanged = fromHash !== toHash;
3872
+
3873
+ // unlock hash handling once the hashchange caused be the popstate has fired
3874
+ if( hashChanged ) {
3875
+ $win.one( "hashchange.pushstate", function() {
3876
+ self.nextHashChangePrevented( false );
3877
+ });
3878
+ }
3879
+
3880
+ // enable hash handling for the the _handleHashChange call
3881
+ self.nextHashChangePrevented( false );
3882
+
3883
+ // change the page based on the hash
3884
+ $.mobile._handleHashChange( poppedState.hash );
3885
+
3886
+ // only prevent another hash change handling if a hash change will be fired
3887
+ // by the browser
3888
+ if( hashChanged ) {
3889
+ // disable hash handling until one of the above timers fires
3890
+ self.nextHashChangePrevented( true );
3891
+ }
3892
+ }
3893
+ },
3894
+
3895
+ init: function() {
3896
+ $win.bind( "hashchange", self.onHashChange );
3897
+
3898
+ // Handle popstate events the occur through history changes
3899
+ $win.bind( "popstate", self.onPopState );
3900
+
3901
+ // if there's no hash, we need to replacestate for returning to home
3902
+ if ( location.hash === "" ) {
3903
+ history.replaceState( self.state(), document.title, location.href );
3904
+ }
3905
+ }
3906
+ });
3907
+
3908
+ $( function() {
3909
+ if( $.mobile.pushStateEnabled && $.support.pushState ){
3910
+ pushStateHandler.init();
3911
+ }
3912
+ });
3913
+ })( jQuery, this );
3914
+
3915
+ /*
3916
+ * fallback transition for pop in non-3D supporting browsers (which tend to handle complex transitions poorly in general
3917
+ */
3918
+
3919
+ (function( $, window, undefined ) {
3920
+
3921
+ $.mobile.transitionFallbacks.pop = "fade";
3922
+
3923
+ })( jQuery, this );
3924
+
3925
+ /*
3926
+ * fallback transition for slide in non-3D supporting browsers (which tend to handle complex transitions poorly in general
3927
+ */
3928
+
3929
+ (function( $, window, undefined ) {
3930
+
3931
+ // Use the simultaneous transition handler for slide transitions
3932
+ $.mobile.transitionHandlers.slide = $.mobile.transitionHandlers.simultaneous;
3933
+
3934
+ // Set the slide transition's fallback to "fade"
3935
+ $.mobile.transitionFallbacks.slide = "fade";
3936
+
3937
+ })( jQuery, this );
3938
+
3939
+ /*
3940
+ * fallback transition for slidedown in non-3D supporting browsers (which tend to handle complex transitions poorly in general
3941
+ */
3942
+
3943
+ (function( $, window, undefined ) {
3944
+
3945
+ $.mobile.transitionFallbacks.slidedown = "fade";
3946
+
3947
+ })( jQuery, this );
3948
+
3949
+ /*
3950
+ * fallback transition for slideup in non-3D supporting browsers (which tend to handle complex transitions poorly in general
3951
+ */
3952
+
3953
+ (function( $, window, undefined ) {
3954
+
3955
+ $.mobile.transitionFallbacks.slideup = "fade";
3956
+
3957
+ })( jQuery, this );
3958
+
3959
+ /*
3960
+ * fallback transition for flip in non-3D supporting browsers (which tend to handle complex transitions poorly in general
3961
+ */
3962
+
3963
+ (function( $, window, undefined ) {
3964
+
3965
+ $.mobile.transitionFallbacks.flip = "fade";
3966
+
3967
+ })( jQuery, this );
3968
+
3969
+ /*
3970
+ * fallback transition for flow in non-3D supporting browsers (which tend to handle complex transitions poorly in general
3971
+ */
3972
+
3973
+ (function( $, window, undefined ) {
3974
+
3975
+ $.mobile.transitionFallbacks.flow = "fade";
3976
+
3977
+ })( jQuery, this );
3978
+
3979
+ /*
3980
+ * fallback transition for turn in non-3D supporting browsers (which tend to handle complex transitions poorly in general
3981
+ */
3982
+
3983
+ (function( $, window, undefined ) {
3984
+
3985
+ $.mobile.transitionFallbacks.turn = "fade";
3986
+
3987
+ })( jQuery, this );
3988
+
3989
+ (function( $, undefined ) {
3990
+
3991
+ $.mobile.page.prototype.options.degradeInputs = {
3992
+ color: false,
3993
+ date: false,
3994
+ datetime: false,
3995
+ "datetime-local": false,
3996
+ email: false,
3997
+ month: false,
3998
+ number: false,
3999
+ range: "number",
4000
+ search: "text",
4001
+ tel: false,
4002
+ time: false,
4003
+ url: false,
4004
+ week: false
4005
+ };
4006
+
4007
+
4008
+ //auto self-init widgets
4009
+ $( document ).bind( "pagecreate create", function( e ){
4010
+
4011
+ var page = $.mobile.closestPageData($(e.target)), options;
4012
+
4013
+ if( !page ) {
4014
+ return;
4015
+ }
4016
+
4017
+ options = page.options;
4018
+
4019
+ // degrade inputs to avoid poorly implemented native functionality
4020
+ $( e.target ).find( "input" ).not( page.keepNativeSelector() ).each(function() {
4021
+ var $this = $( this ),
4022
+ type = this.getAttribute( "type" ),
4023
+ optType = options.degradeInputs[ type ] || "text";
4024
+
4025
+ if ( options.degradeInputs[ type ] ) {
4026
+ var html = $( "<div>" ).html( $this.clone() ).html(),
4027
+ // In IE browsers, the type sometimes doesn't exist in the cloned markup, so we replace the closing tag instead
4028
+ hasType = html.indexOf( " type=" ) > -1,
4029
+ findstr = hasType ? /\s+type=["']?\w+['"]?/ : /\/?>/,
4030
+ repstr = " type=\"" + optType + "\" data-" + $.mobile.ns + "type=\"" + type + "\"" + ( hasType ? "" : ">" );
4031
+
4032
+ $this.replaceWith( html.replace( findstr, repstr ) );
4033
+ }
4034
+ });
4035
+
4036
+ });
4037
+
4038
+ })( jQuery );
4039
+
4040
+ (function( $, window, undefined ) {
4041
+
4042
+ $.widget( "mobile.dialog", $.mobile.widget, {
4043
+ options: {
4044
+ closeBtnText : "Close",
4045
+ overlayTheme : "a",
4046
+ initSelector : ":jqmData(role='dialog')"
4047
+ },
4048
+ _create: function() {
4049
+ var self = this,
4050
+ $el = this.element,
4051
+ headerCloseButton = $( "<a href='#' data-" + $.mobile.ns + "icon='delete' data-" + $.mobile.ns + "iconpos='notext'>"+ this.options.closeBtnText + "</a>" ),
4052
+ dialogWrap = $("<div/>", {
4053
+ "role" : "dialog",
4054
+ "class" : "ui-dialog-contain ui-corner-all ui-overlay-shadow"
4055
+ });
4056
+
4057
+ $el.addClass( "ui-dialog ui-overlay-" + this.options.overlayTheme );
4058
+
4059
+ // Class the markup for dialog styling
4060
+ // Set aria role
4061
+ $el
4062
+ .wrapInner( dialogWrap )
4063
+ .children()
4064
+ .find( ":jqmData(role='header')" )
4065
+ .prepend( headerCloseButton )
4066
+ .end()
4067
+ .children( ':first-child')
4068
+ .addClass( "ui-corner-top" )
4069
+ .end()
4070
+ .children( ":last-child" )
4071
+ .addClass( "ui-corner-bottom" );
4072
+
4073
+ // this must be an anonymous function so that select menu dialogs can replace
4074
+ // the close method. This is a change from previously just defining data-rel=back
4075
+ // on the button and letting nav handle it
4076
+ //
4077
+ // Use click rather than vclick in order to prevent the possibility of unintentionally
4078
+ // reopening the dialog if the dialog opening item was directly under the close button.
4079
+ headerCloseButton.bind( "click", function() {
4080
+ self.close();
4081
+ });
4082
+
4083
+ /* bind events
4084
+ - clicks and submits should use the closing transition that the dialog opened with
4085
+ unless a data-transition is specified on the link/form
4086
+ - if the click was on the close button, or the link has a data-rel="back" it'll go back in history naturally
4087
+ */
4088
+ $el.bind( "vclick submit", function( event ) {
4089
+ var $target = $( event.target ).closest( event.type === "vclick" ? "a" : "form" ),
4090
+ active;
4091
+
4092
+ if ( $target.length && !$target.jqmData( "transition" ) ) {
4093
+
4094
+ active = $.mobile.urlHistory.getActive() || {};
4095
+
4096
+ $target.attr( "data-" + $.mobile.ns + "transition", ( active.transition || $.mobile.defaultDialogTransition ) )
4097
+ .attr( "data-" + $.mobile.ns + "direction", "reverse" );
4098
+ }
4099
+ })
4100
+ .bind( "pagehide", function( e, ui ) {
4101
+ $( this ).find( "." + $.mobile.activeBtnClass ).removeClass( $.mobile.activeBtnClass );
4102
+ })
4103
+ // Override the theme set by the page plugin on pageshow
4104
+ .bind( "pagebeforeshow", function(){
4105
+ if( self.options.overlayTheme ){
4106
+ self.element
4107
+ .page( "removeContainerBackground" )
4108
+ .page( "setContainerBackground", self.options.overlayTheme );
4109
+ }
4110
+ });
4111
+ },
4112
+
4113
+ // Close method goes back in history
4114
+ close: function() {
4115
+ window.history.back();
4116
+ }
4117
+ });
4118
+
4119
+ //auto self-init widgets
4120
+ $( document ).delegate( $.mobile.dialog.prototype.options.initSelector, "pagecreate", function(){
4121
+ $.mobile.dialog.prototype.enhance( this );
4122
+ });
4123
+
4124
+ })( jQuery, this );
4125
+
4126
+ (function( $, undefined ) {
4127
+
4128
+ $.fn.fieldcontain = function( options ) {
4129
+ return this.addClass( "ui-field-contain ui-body ui-br" );
4130
+ };
4131
+
4132
+ //auto self-init widgets
4133
+ $( document ).bind( "pagecreate create", function( e ){
4134
+ $( ":jqmData(role='fieldcontain')", e.target ).jqmEnhanceable().fieldcontain();
4135
+ });
4136
+
4137
+ })( jQuery );
4138
+
4139
+ (function( $, undefined ) {
4140
+
4141
+ $.fn.grid = function( options ) {
4142
+ return this.each(function() {
4143
+
4144
+ var $this = $( this ),
4145
+ o = $.extend({
4146
+ grid: null
4147
+ },options),
4148
+ $kids = $this.children(),
4149
+ gridCols = {solo:1, a:2, b:3, c:4, d:5},
4150
+ grid = o.grid,
4151
+ iterator;
4152
+
4153
+ if ( !grid ) {
4154
+ if ( $kids.length <= 5 ) {
4155
+ for ( var letter in gridCols ) {
4156
+ if ( gridCols[ letter ] === $kids.length ) {
4157
+ grid = letter;
4158
+ }
4159
+ }
4160
+ } else {
4161
+ grid = "a";
4162
+ }
4163
+ }
4164
+ iterator = gridCols[grid];
4165
+
4166
+ $this.addClass( "ui-grid-" + grid );
4167
+
4168
+ $kids.filter( ":nth-child(" + iterator + "n+1)" ).addClass( "ui-block-a" );
4169
+
4170
+ if ( iterator > 1 ) {
4171
+ $kids.filter( ":nth-child(" + iterator + "n+2)" ).addClass( "ui-block-b" );
4172
+ }
4173
+ if ( iterator > 2 ) {
4174
+ $kids.filter( ":nth-child(3n+3)" ).addClass( "ui-block-c" );
4175
+ }
4176
+ if ( iterator > 3 ) {
4177
+ $kids.filter( ":nth-child(4n+4)" ).addClass( "ui-block-d" );
4178
+ }
4179
+ if ( iterator > 4 ) {
4180
+ $kids.filter( ":nth-child(5n+5)" ).addClass( "ui-block-e" );
4181
+ }
4182
+ });
4183
+ };
4184
+ })( jQuery );
4185
+
4186
+ (function( $, undefined ) {
4187
+
4188
+ $( document ).bind( "pagecreate create", function( e ){
4189
+ $( ":jqmData(role='nojs')", e.target ).addClass( "ui-nojs" );
4190
+
4191
+ });
4192
+
4193
+ })( jQuery );
4194
+
4195
+ ( function( $, undefined ) {
4196
+
4197
+ $.fn.buttonMarkup = function( options ) {
4198
+ var $workingSet = this;
4199
+
4200
+ // Enforce options to be of type string
4201
+ options = ( options && ( $.type( options ) == "object" ) )? options : {};
4202
+ for ( var i = 0; i < $workingSet.length; i++ ) {
4203
+ var el = $workingSet.eq( i ),
4204
+ e = el[ 0 ],
4205
+ o = $.extend( {}, $.fn.buttonMarkup.defaults, {
4206
+ icon: options.icon !== undefined ? options.icon : el.jqmData( "icon" ),
4207
+ iconpos: options.iconpos !== undefined ? options.iconpos : el.jqmData( "iconpos" ),
4208
+ theme: options.theme !== undefined ? options.theme : el.jqmData( "theme" ) || $.mobile.getInheritedTheme( el, "c" ),
4209
+ inline: options.inline !== undefined ? options.inline : el.jqmData( "inline" ),
4210
+ shadow: options.shadow !== undefined ? options.shadow : el.jqmData( "shadow" ),
4211
+ corners: options.corners !== undefined ? options.corners : el.jqmData( "corners" ),
4212
+ iconshadow: options.iconshadow !== undefined ? options.iconshadow : el.jqmData( "iconshadow" ),
4213
+ mini: options.mini !== undefined ? options.mini : el.jqmData( "mini" )
4214
+ }, options ),
4215
+
4216
+ // Classes Defined
4217
+ innerClass = "ui-btn-inner",
4218
+ textClass = "ui-btn-text",
4219
+ buttonClass, iconClass,
4220
+ // Button inner markup
4221
+ buttonInner,
4222
+ buttonText,
4223
+ buttonIcon,
4224
+ buttonElements;
4225
+
4226
+ $.each(o, function(key, value) {
4227
+ e.setAttribute( "data-" + $.mobile.ns + key, value );
4228
+ el.jqmData(key, value);
4229
+ });
4230
+
4231
+ // Check if this element is already enhanced
4232
+ buttonElements = $.data(((e.tagName === "INPUT" || e.tagName === "BUTTON") ? e.parentNode : e), "buttonElements");
4233
+
4234
+ if (buttonElements) {
4235
+ e = buttonElements.outer;
4236
+ el = $(e);
4237
+ buttonInner = buttonElements.inner;
4238
+ buttonText = buttonElements.text;
4239
+ // We will recreate this icon below
4240
+ $(buttonElements.icon).remove();
4241
+ buttonElements.icon = null;
4242
+ }
4243
+ else {
4244
+ buttonInner = document.createElement( o.wrapperEls );
4245
+ buttonText = document.createElement( o.wrapperEls );
4246
+ }
4247
+ buttonIcon = o.icon ? document.createElement( "span" ) : null;
4248
+
4249
+ if ( attachEvents && !buttonElements) {
4250
+ attachEvents();
4251
+ }
4252
+
4253
+ // if not, try to find closest theme container
4254
+ if ( !o.theme ) {
4255
+ o.theme = $.mobile.getInheritedTheme( el, "c" );
4256
+ }
4257
+
4258
+ buttonClass = "ui-btn ui-btn-up-" + o.theme;
4259
+ buttonClass += o.inline ? " ui-btn-inline" : "";
4260
+ buttonClass += o.shadow ? " ui-shadow" : "";
4261
+ buttonClass += o.corners ? " ui-btn-corner-all" : "";
4262
+
4263
+ if ( o.mini !== undefined ) {
4264
+ // Used to control styling in headers/footers, where buttons default to `mini` style.
4265
+ buttonClass += o.mini ? " ui-mini" : " ui-fullsize";
4266
+ }
4267
+
4268
+ if ( o.inline !== undefined ) {
4269
+ // Used to control styling in headers/footers, where buttons default to `mini` style.
4270
+ buttonClass += o.inline === false ? " ui-btn-block" : " ui-btn-inline";
4271
+ }
4272
+
4273
+
4274
+ if ( o.icon ) {
4275
+ o.icon = "ui-icon-" + o.icon;
4276
+ o.iconpos = o.iconpos || "left";
4277
+
4278
+ iconClass = "ui-icon " + o.icon;
4279
+
4280
+ if ( o.iconshadow ) {
4281
+ iconClass += " ui-icon-shadow";
4282
+ }
4283
+ }
4284
+
4285
+ if ( o.iconpos ) {
4286
+ buttonClass += " ui-btn-icon-" + o.iconpos;
4287
+
4288
+ if ( o.iconpos == "notext" && !el.attr( "title" ) ) {
4289
+ el.attr( "title", el.getEncodedText() );
4290
+ }
4291
+ }
4292
+
4293
+ innerClass += o.corners ? " ui-btn-corner-all" : "";
4294
+
4295
+ if ( o.iconpos && o.iconpos === "notext" && !el.attr( "title" ) ) {
4296
+ el.attr( "title", el.getEncodedText() );
4297
+ }
4298
+
4299
+ if ( buttonElements ) {
4300
+ el.removeClass( buttonElements.bcls || "" );
4301
+ }
4302
+ el.removeClass( "ui-link" ).addClass( buttonClass );
4303
+
4304
+ buttonInner.className = innerClass;
4305
+
4306
+ buttonText.className = textClass;
4307
+ if ( !buttonElements ) {
4308
+ buttonInner.appendChild( buttonText );
4309
+ }
4310
+ if ( buttonIcon ) {
4311
+ buttonIcon.className = iconClass;
4312
+ if ( !(buttonElements && buttonElements.icon) ) {
4313
+ buttonIcon.appendChild( document.createTextNode("\u00a0") );
4314
+ buttonInner.appendChild( buttonIcon );
4315
+ }
4316
+ }
4317
+
4318
+ while ( e.firstChild && !buttonElements) {
4319
+ buttonText.appendChild( e.firstChild );
4320
+ }
4321
+
4322
+ if ( !buttonElements ) {
4323
+ e.appendChild( buttonInner );
4324
+ }
4325
+
4326
+ // Assign a structure containing the elements of this button to the elements of this button. This
4327
+ // will allow us to recognize this as an already-enhanced button in future calls to buttonMarkup().
4328
+ buttonElements = {
4329
+ bcls : buttonClass,
4330
+ outer : e,
4331
+ inner : buttonInner,
4332
+ text : buttonText,
4333
+ icon : buttonIcon
4334
+ };
4335
+
4336
+ $.data(e, 'buttonElements', buttonElements);
4337
+ $.data(buttonInner, 'buttonElements', buttonElements);
4338
+ $.data(buttonText, 'buttonElements', buttonElements);
4339
+ if (buttonIcon) {
4340
+ $.data(buttonIcon, 'buttonElements', buttonElements);
4341
+ }
4342
+ }
4343
+
4344
+ return this;
4345
+ };
4346
+
4347
+ $.fn.buttonMarkup.defaults = {
4348
+ corners: true,
4349
+ shadow: true,
4350
+ iconshadow: true,
4351
+ wrapperEls: "span"
4352
+ };
4353
+
4354
+ function closestEnabledButton( element ) {
4355
+ var cname;
4356
+
4357
+ while ( element ) {
4358
+ // Note that we check for typeof className below because the element we
4359
+ // handed could be in an SVG DOM where className on SVG elements is defined to
4360
+ // be of a different type (SVGAnimatedString). We only operate on HTML DOM
4361
+ // elements, so we look for plain "string".
4362
+ cname = ( typeof element.className === 'string' ) && (element.className + ' ');
4363
+ if ( cname && cname.indexOf("ui-btn ") > -1 && cname.indexOf("ui-disabled ") < 0 ) {
4364
+ break;
4365
+ }
4366
+
4367
+ element = element.parentNode;
4368
+ }
4369
+
4370
+ return element;
4371
+ }
4372
+
4373
+ var attachEvents = function() {
4374
+ var hoverDelay = $.mobile.buttonMarkup.hoverDelay, hov, foc;
4375
+
4376
+ $( document ).bind( {
4377
+ "vmousedown vmousecancel vmouseup vmouseover vmouseout focus blur scrollstart": function( event ) {
4378
+ var theme,
4379
+ $btn = $( closestEnabledButton( event.target ) ),
4380
+ evt = event.type;
4381
+
4382
+ if ( $btn.length ) {
4383
+ theme = $btn.attr( "data-" + $.mobile.ns + "theme" );
4384
+
4385
+ if ( evt === "vmousedown" ) {
4386
+ if ( $.support.touch ) {
4387
+ hov = setTimeout(function() {
4388
+ $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme );
4389
+ }, hoverDelay );
4390
+ } else {
4391
+ $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme );
4392
+ }
4393
+ } else if ( evt === "vmousecancel" || evt === "vmouseup" ) {
4394
+ $btn.removeClass( "ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme );
4395
+ } else if ( evt === "vmouseover" || evt === "focus" ) {
4396
+ if ( $.support.touch ) {
4397
+ foc = setTimeout(function() {
4398
+ $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-hover-" + theme );
4399
+ }, hoverDelay );
4400
+ } else {
4401
+ $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-hover-" + theme );
4402
+ }
4403
+ } else if ( evt === "vmouseout" || evt === "blur" || evt === "scrollstart" ) {
4404
+ $btn.removeClass( "ui-btn-hover-" + theme + " ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme );
4405
+ if ( hov ) {
4406
+ clearTimeout( hov );
4407
+ }
4408
+ if ( foc ) {
4409
+ clearTimeout( foc );
4410
+ }
4411
+ }
4412
+ }
4413
+ },
4414
+ "focusin focus": function( event ){
4415
+ $( closestEnabledButton( event.target ) ).addClass( $.mobile.focusClass );
4416
+ },
4417
+ "focusout blur": function( event ){
4418
+ $( closestEnabledButton( event.target ) ).removeClass( $.mobile.focusClass );
4419
+ }
4420
+ });
4421
+
4422
+ attachEvents = null;
4423
+ };
4424
+
4425
+ //links in bars, or those with data-role become buttons
4426
+ //auto self-init widgets
4427
+ $( document ).bind( "pagecreate create", function( e ){
4428
+
4429
+ $( ":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a", e.target )
4430
+ .not( ".ui-btn, :jqmData(role='none'), :jqmData(role='nojs')" )
4431
+ .buttonMarkup();
4432
+ });
4433
+
4434
+ })( jQuery );
4435
+
4436
+
4437
+ (function( $, undefined ) {
4438
+
4439
+ $.mobile.page.prototype.options.backBtnText = "Back";
4440
+ $.mobile.page.prototype.options.addBackBtn = false;
4441
+ $.mobile.page.prototype.options.backBtnTheme = null;
4442
+ $.mobile.page.prototype.options.headerTheme = "a";
4443
+ $.mobile.page.prototype.options.footerTheme = "a";
4444
+ $.mobile.page.prototype.options.contentTheme = null;
4445
+
4446
+ $( document ).delegate( ":jqmData(role='page'), :jqmData(role='dialog')", "pagecreate", function( e ) {
4447
+
4448
+ var $page = $( this ),
4449
+ o = $page.data( "page" ).options,
4450
+ pageRole = $page.jqmData( "role" ),
4451
+ pageTheme = o.theme;
4452
+
4453
+ $( ":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')", this )
4454
+ .jqmEnhanceable()
4455
+ .each(function() {
4456
+
4457
+ var $this = $( this ),
4458
+ role = $this.jqmData( "role" ),
4459
+ theme = $this.jqmData( "theme" ),
4460
+ contentTheme = theme || o.contentTheme || ( pageRole === "dialog" && pageTheme ),
4461
+ $headeranchors,
4462
+ leftbtn,
4463
+ rightbtn,
4464
+ backBtn;
4465
+
4466
+ $this.addClass( "ui-" + role );
4467
+
4468
+ //apply theming and markup modifications to page,header,content,footer
4469
+ if ( role === "header" || role === "footer" ) {
4470
+
4471
+ var thisTheme = theme || ( role === "header" ? o.headerTheme : o.footerTheme ) || pageTheme;
4472
+
4473
+ $this
4474
+ //add theme class
4475
+ .addClass( "ui-bar-" + thisTheme )
4476
+ // Add ARIA role
4477
+ .attr( "role", role === "header" ? "banner" : "contentinfo" );
4478
+
4479
+ if( role === "header") {
4480
+ // Right,left buttons
4481
+ $headeranchors = $this.children( "a" );
4482
+ leftbtn = $headeranchors.hasClass( "ui-btn-left" );
4483
+ rightbtn = $headeranchors.hasClass( "ui-btn-right" );
4484
+
4485
+ leftbtn = leftbtn || $headeranchors.eq( 0 ).not( ".ui-btn-right" ).addClass( "ui-btn-left" ).length;
4486
+
4487
+ rightbtn = rightbtn || $headeranchors.eq( 1 ).addClass( "ui-btn-right" ).length;
4488
+ }
4489
+
4490
+ // Auto-add back btn on pages beyond first view
4491
+ if ( o.addBackBtn &&
4492
+ role === "header" &&
4493
+ $( ".ui-page" ).length > 1 &&
4494
+ $page.jqmData( "url" ) !== $.mobile.path.stripHash( location.hash ) &&
4495
+ !leftbtn ) {
4496
+
4497
+ backBtn = $( "<a href='#' class='ui-btn-left' data-"+ $.mobile.ns +"rel='back' data-"+ $.mobile.ns +"icon='arrow-l'>"+ o.backBtnText +"</a>" )
4498
+ // If theme is provided, override default inheritance
4499
+ .attr( "data-"+ $.mobile.ns +"theme", o.backBtnTheme || thisTheme )
4500
+ .prependTo( $this );
4501
+ }
4502
+
4503
+ // Page title
4504
+ $this.children( "h1, h2, h3, h4, h5, h6" )
4505
+ .addClass( "ui-title" )
4506
+ // Regardless of h element number in src, it becomes h1 for the enhanced page
4507
+ .attr({
4508
+ "role": "heading",
4509
+ "aria-level": "1"
4510
+ });
4511
+
4512
+ } else if ( role === "content" ) {
4513
+ if ( contentTheme ) {
4514
+ $this.addClass( "ui-body-" + ( contentTheme ) );
4515
+ }
4516
+
4517
+ // Add ARIA role
4518
+ $this.attr( "role", "main" );
4519
+ }
4520
+ });
4521
+ });
4522
+
4523
+ })( jQuery );
4524
+
4525
+ (function( $, undefined ) {
4526
+
4527
+ $.widget( "mobile.collapsible", $.mobile.widget, {
4528
+ options: {
4529
+ expandCueText: " click to expand contents",
4530
+ collapseCueText: " click to collapse contents",
4531
+ collapsed: true,
4532
+ heading: "h1,h2,h3,h4,h5,h6,legend",
4533
+ theme: null,
4534
+ contentTheme: null,
4535
+ iconTheme: "d",
4536
+ mini: false,
4537
+ initSelector: ":jqmData(role='collapsible')"
4538
+ },
4539
+ _create: function() {
4540
+
4541
+ var $el = this.element,
4542
+ o = this.options,
4543
+ collapsible = $el.addClass( "ui-collapsible" ),
4544
+ collapsibleHeading = $el.children( o.heading ).first(),
4545
+ collapsibleContent = collapsible.wrapInner( "<div class='ui-collapsible-content'></div>" ).find( ".ui-collapsible-content" ),
4546
+ collapsibleSet = $el.closest( ":jqmData(role='collapsible-set')" ).addClass( "ui-collapsible-set" );
4547
+
4548
+ // Replace collapsibleHeading if it's a legend
4549
+ if ( collapsibleHeading.is( "legend" ) ) {
4550
+ collapsibleHeading = $( "<div role='heading'>"+ collapsibleHeading.html() +"</div>" ).insertBefore( collapsibleHeading );
4551
+ collapsibleHeading.next().remove();
4552
+ }
4553
+
4554
+ // If we are in a collapsible set
4555
+ if ( collapsibleSet.length ) {
4556
+ // Inherit the theme from collapsible-set
4557
+ if ( !o.theme ) {
4558
+ o.theme = collapsibleSet.jqmData("theme") || $.mobile.getInheritedTheme( collapsibleSet, "c" );
4559
+ }
4560
+ // Inherit the content-theme from collapsible-set
4561
+ if ( !o.contentTheme ) {
4562
+ o.contentTheme = collapsibleSet.jqmData( "content-theme" );
4563
+ }
4564
+
4565
+ // Gets the preference icon position in the set
4566
+ if ( !o.iconPos ) {
4567
+ o.iconPos = collapsibleSet.jqmData( "iconpos" );
4568
+ }
4569
+
4570
+ if( !o.mini ) {
4571
+ o.mini = collapsibleSet.jqmData( "mini" );
4572
+ }
4573
+ }
4574
+ collapsibleContent.addClass( ( o.contentTheme ) ? ( "ui-body-" + o.contentTheme ) : "");
4575
+
4576
+ collapsibleHeading
4577
+ //drop heading in before content
4578
+ .insertBefore( collapsibleContent )
4579
+ //modify markup & attributes
4580
+ .addClass( "ui-collapsible-heading" )
4581
+ .append( "<span class='ui-collapsible-heading-status'></span>" )
4582
+ .wrapInner( "<a href='#' class='ui-collapsible-heading-toggle'></a>" )
4583
+ .find( "a" )
4584
+ .first()
4585
+ .buttonMarkup({
4586
+ shadow: false,
4587
+ corners: false,
4588
+ iconpos: $el.jqmData( "iconpos" ) || o.iconPos || "left",
4589
+ icon: "plus",
4590
+ mini: o.mini,
4591
+ theme: o.theme
4592
+ })
4593
+ .add( ".ui-btn-inner", $el )
4594
+ .addClass( "ui-corner-top ui-corner-bottom" );
4595
+
4596
+ //events
4597
+ collapsible
4598
+ .bind( "expand collapse", function( event ) {
4599
+ if ( !event.isDefaultPrevented() ) {
4600
+
4601
+ event.preventDefault();
4602
+
4603
+ var $this = $( this ),
4604
+ isCollapse = ( event.type === "collapse" ),
4605
+ contentTheme = o.contentTheme;
4606
+
4607
+ collapsibleHeading
4608
+ .toggleClass( "ui-collapsible-heading-collapsed", isCollapse)
4609
+ .find( ".ui-collapsible-heading-status" )
4610
+ .text( isCollapse ? o.expandCueText : o.collapseCueText )
4611
+ .end()
4612
+ .find( ".ui-icon" )
4613
+ .toggleClass( "ui-icon-minus", !isCollapse )
4614
+ .toggleClass( "ui-icon-plus", isCollapse );
4615
+
4616
+ $this.toggleClass( "ui-collapsible-collapsed", isCollapse );
4617
+ collapsibleContent.toggleClass( "ui-collapsible-content-collapsed", isCollapse ).attr( "aria-hidden", isCollapse );
4618
+
4619
+ if ( contentTheme && ( !collapsibleSet.length || collapsible.jqmData( "collapsible-last" ) ) ) {
4620
+ collapsibleHeading
4621
+ .find( "a" ).first().add( collapsibleHeading.find( ".ui-btn-inner" ) )
4622
+ .toggleClass( "ui-corner-bottom", isCollapse );
4623
+ collapsibleContent.toggleClass( "ui-corner-bottom", !isCollapse );
4624
+ }
4625
+ collapsibleContent.trigger( "updatelayout" );
4626
+ }
4627
+ })
4628
+ .trigger( o.collapsed ? "collapse" : "expand" );
4629
+
4630
+ collapsibleHeading
4631
+ .bind( "click", function( event ) {
4632
+
4633
+ var type = collapsibleHeading.is( ".ui-collapsible-heading-collapsed" ) ?
4634
+ "expand" : "collapse";
4635
+
4636
+ collapsible.trigger( type );
4637
+
4638
+ event.preventDefault();
4639
+ });
4640
+ }
4641
+ });
4642
+
4643
+ //auto self-init widgets
4644
+ $( document ).bind( "pagecreate create", function( e ){
4645
+ $.mobile.collapsible.prototype.enhanceWithin( e.target );
4646
+ });
4647
+
4648
+ })( jQuery );
4649
+
4650
+ (function( $, undefined ) {
4651
+
4652
+ $.widget( "mobile.collapsibleset", $.mobile.widget, {
4653
+ options: {
4654
+ initSelector: ":jqmData(role='collapsible-set')"
4655
+ },
4656
+ _create: function() {
4657
+ var $el = this.element.addClass( "ui-collapsible-set" ),
4658
+ o = this.options;
4659
+
4660
+ // Inherit the theme from collapsible-set
4661
+ if ( !o.theme ) {
4662
+ o.theme = $.mobile.getInheritedTheme( $el, "c" );
4663
+ }
4664
+ // Inherit the content-theme from collapsible-set
4665
+ if ( !o.contentTheme ) {
4666
+ o.contentTheme = $el.jqmData( "content-theme" );
4667
+ }
4668
+
4669
+ if ( !o.corners ) {
4670
+ o.corners = $el.jqmData( "corners" ) === undefined ? true : false;
4671
+ }
4672
+
4673
+ // Initialize the collapsible set if it's not already initialized
4674
+ if ( !$el.jqmData( "collapsiblebound" ) ) {
4675
+ $el
4676
+ .jqmData( "collapsiblebound", true )
4677
+ .bind( "expand collapse", function( event ) {
4678
+ var isCollapse = ( event.type === "collapse" ),
4679
+ collapsible = $( event.target ).closest( ".ui-collapsible" ),
4680
+ widget = collapsible.data( "collapsible" ),
4681
+ contentTheme = widget.options.contentTheme;
4682
+ if ( contentTheme && collapsible.jqmData( "collapsible-last" ) ) {
4683
+ collapsible.find( widget.options.heading ).first()
4684
+ .find( "a" ).first()
4685
+ .add( ".ui-btn-inner" )
4686
+ .toggleClass( "ui-corner-bottom", isCollapse );
4687
+ collapsible.find( ".ui-collapsible-content" ).toggleClass( "ui-corner-bottom", !isCollapse );
4688
+ }
4689
+ })
4690
+ .bind( "expand", function( event ) {
4691
+ $( event.target )
4692
+ .closest( ".ui-collapsible" )
4693
+ .siblings( ".ui-collapsible" )
4694
+ .trigger( "collapse" );
4695
+ });
4696
+ }
4697
+ },
4698
+
4699
+ _init: function() {
4700
+ this.refresh();
4701
+ },
4702
+
4703
+ refresh: function() {
4704
+ var $el = this.element,
4705
+ o = this.options,
4706
+ collapsiblesInSet = $el.children( ":jqmData(role='collapsible')" );
4707
+
4708
+ $.mobile.collapsible.prototype.enhance( collapsiblesInSet.not( ".ui-collapsible" ) );
4709
+
4710
+ // clean up borders
4711
+ collapsiblesInSet.each( function() {
4712
+ $( this ).find( $.mobile.collapsible.prototype.options.heading )
4713
+ .find( "a" ).first()
4714
+ .add( ".ui-btn-inner" )
4715
+ .removeClass( "ui-corner-top ui-corner-bottom" );
4716
+ });
4717
+
4718
+ collapsiblesInSet.first()
4719
+ .find( "a" )
4720
+ .first()
4721
+ .addClass( o.corners ? "ui-corner-top" : "" )
4722
+ .find( ".ui-btn-inner" )
4723
+ .addClass( "ui-corner-top" );
4724
+
4725
+ collapsiblesInSet.last()
4726
+ .jqmData( "collapsible-last", true )
4727
+ .find( "a" )
4728
+ .first()
4729
+ .addClass( o.corners ? "ui-corner-bottom" : "" )
4730
+ .find( ".ui-btn-inner" )
4731
+ .addClass( "ui-corner-bottom" );
4732
+ }
4733
+ });
4734
+
4735
+ //auto self-init widgets
4736
+ $( document ).bind( "pagecreate create", function( e ){
4737
+ $.mobile.collapsibleset.prototype.enhanceWithin( e.target );
4738
+ });
4739
+
4740
+ })( jQuery );
4741
+
4742
+ (function( $, undefined ) {
4743
+
4744
+ $.widget( "mobile.navbar", $.mobile.widget, {
4745
+ options: {
4746
+ iconpos: "top",
4747
+ grid: null,
4748
+ initSelector: ":jqmData(role='navbar')"
4749
+ },
4750
+
4751
+ _create: function(){
4752
+
4753
+ var $navbar = this.element,
4754
+ $navbtns = $navbar.find( "a" ),
4755
+ iconpos = $navbtns.filter( ":jqmData(icon)" ).length ?
4756
+ this.options.iconpos : undefined;
4757
+
4758
+ $navbar.addClass( "ui-navbar" )
4759
+ .attr( "role","navigation" )
4760
+ .find( "ul" )
4761
+ .jqmEnhanceable()
4762
+ .grid({ grid: this.options.grid });
4763
+
4764
+ if ( !iconpos ) {
4765
+ $navbar.addClass( "ui-navbar-noicons" );
4766
+ }
4767
+
4768
+ $navbtns.buttonMarkup({
4769
+ corners: false,
4770
+ shadow: false,
4771
+ inline: true,
4772
+ iconpos: iconpos
4773
+ });
4774
+
4775
+ $navbar.delegate( "a", "vclick", function( event ) {
4776
+ if( !$(event.target).hasClass("ui-disabled") ) {
4777
+ $navbtns.removeClass( $.mobile.activeBtnClass );
4778
+ $( this ).addClass( $.mobile.activeBtnClass );
4779
+ }
4780
+ });
4781
+
4782
+ // Buttons in the navbar with ui-state-persist class should regain their active state before page show
4783
+ $navbar.closest( ".ui-page" ).bind( "pagebeforeshow", function() {
4784
+ $navbtns.filter( ".ui-state-persist" ).addClass( $.mobile.activeBtnClass );
4785
+ });
4786
+ }
4787
+ });
4788
+
4789
+ //auto self-init widgets
4790
+ $( document ).bind( "pagecreate create", function( e ){
4791
+ $.mobile.navbar.prototype.enhanceWithin( e.target );
4792
+ });
4793
+
4794
+ })( jQuery );
4795
+
4796
+ (function( $, undefined ) {
4797
+
4798
+ //Keeps track of the number of lists per page UID
4799
+ //This allows support for multiple nested list in the same page
4800
+ //https://github.com/jquery/jquery-mobile/issues/1617
4801
+ var listCountPerPage = {};
4802
+
4803
+ $.widget( "mobile.listview", $.mobile.widget, {
4804
+
4805
+ options: {
4806
+ theme: null,
4807
+ countTheme: "c",
4808
+ headerTheme: "b",
4809
+ dividerTheme: "b",
4810
+ splitIcon: "arrow-r",
4811
+ splitTheme: "b",
4812
+ mini: false,
4813
+ inset: false,
4814
+ initSelector: ":jqmData(role='listview')"
4815
+ },
4816
+
4817
+ _create: function() {
4818
+ var t = this,
4819
+ listviewClasses = "";
4820
+
4821
+ listviewClasses += t.options.inset ? " ui-listview-inset ui-corner-all ui-shadow " : "";
4822
+ listviewClasses += t.element.jqmData( "mini" ) || t.options.mini === true ? " ui-mini" : "";
4823
+
4824
+ // create listview markup
4825
+ t.element.addClass(function( i, orig ) {
4826
+ return orig + " ui-listview " + listviewClasses;
4827
+ });
4828
+
4829
+ t.refresh( true );
4830
+ },
4831
+
4832
+ _removeCorners: function( li, which ) {
4833
+ var top = "ui-corner-top ui-corner-tr ui-corner-tl",
4834
+ bot = "ui-corner-bottom ui-corner-br ui-corner-bl";
4835
+
4836
+ li = li.add( li.find( ".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb" ) );
4837
+
4838
+ if ( which === "top" ) {
4839
+ li.removeClass( top );
4840
+ } else if ( which === "bottom" ) {
4841
+ li.removeClass( bot );
4842
+ } else {
4843
+ li.removeClass( top + " " + bot );
4844
+ }
4845
+ },
4846
+
4847
+ _refreshCorners: function( create ) {
4848
+ var $li,
4849
+ $visibleli,
4850
+ $topli,
4851
+ $bottomli;
4852
+
4853
+ if ( this.options.inset ) {
4854
+ $li = this.element.children( "li" );
4855
+ // at create time the li are not visible yet so we need to rely on .ui-screen-hidden
4856
+ $visibleli = create?$li.not( ".ui-screen-hidden" ):$li.filter( ":visible" );
4857
+
4858
+ this._removeCorners( $li );
4859
+
4860
+ // Select the first visible li element
4861
+ $topli = $visibleli.first()
4862
+ .addClass( "ui-corner-top" );
4863
+
4864
+ $topli.add( $topli.find( ".ui-btn-inner" )
4865
+ .not( ".ui-li-link-alt span:first-child" ) )
4866
+ .addClass( "ui-corner-top" )
4867
+ .end()
4868
+ .find( ".ui-li-link-alt, .ui-li-link-alt span:first-child" )
4869
+ .addClass( "ui-corner-tr" )
4870
+ .end()
4871
+ .find( ".ui-li-thumb" )
4872
+ .not(".ui-li-icon")
4873
+ .addClass( "ui-corner-tl" );
4874
+
4875
+ // Select the last visible li element
4876
+ $bottomli = $visibleli.last()
4877
+ .addClass( "ui-corner-bottom" );
4878
+
4879
+ $bottomli.add( $bottomli.find( ".ui-btn-inner" ) )
4880
+ .find( ".ui-li-link-alt" )
4881
+ .addClass( "ui-corner-br" )
4882
+ .end()
4883
+ .find( ".ui-li-thumb" )
4884
+ .not(".ui-li-icon")
4885
+ .addClass( "ui-corner-bl" );
4886
+ }
4887
+ if ( !create ) {
4888
+ this.element.trigger( "updatelayout" );
4889
+ }
4890
+ },
4891
+
4892
+ // This is a generic utility method for finding the first
4893
+ // node with a given nodeName. It uses basic DOM traversal
4894
+ // to be fast and is meant to be a substitute for simple
4895
+ // $.fn.closest() and $.fn.children() calls on a single
4896
+ // element. Note that callers must pass both the lowerCase
4897
+ // and upperCase version of the nodeName they are looking for.
4898
+ // The main reason for this is that this function will be
4899
+ // called many times and we want to avoid having to lowercase
4900
+ // the nodeName from the element every time to ensure we have
4901
+ // a match. Note that this function lives here for now, but may
4902
+ // be moved into $.mobile if other components need a similar method.
4903
+ _findFirstElementByTagName: function( ele, nextProp, lcName, ucName )
4904
+ {
4905
+ var dict = {};
4906
+ dict[ lcName ] = dict[ ucName ] = true;
4907
+ while ( ele ) {
4908
+ if ( dict[ ele.nodeName ] ) {
4909
+ return ele;
4910
+ }
4911
+ ele = ele[ nextProp ];
4912
+ }
4913
+ return null;
4914
+ },
4915
+ _getChildrenByTagName: function( ele, lcName, ucName )
4916
+ {
4917
+ var results = [],
4918
+ dict = {};
4919
+ dict[ lcName ] = dict[ ucName ] = true;
4920
+ ele = ele.firstChild;
4921
+ while ( ele ) {
4922
+ if ( dict[ ele.nodeName ] ) {
4923
+ results.push( ele );
4924
+ }
4925
+ ele = ele.nextSibling;
4926
+ }
4927
+ return $( results );
4928
+ },
4929
+
4930
+ _addThumbClasses: function( containers )
4931
+ {
4932
+ var i, img, len = containers.length;
4933
+ for ( i = 0; i < len; i++ ) {
4934
+ img = $( this._findFirstElementByTagName( containers[ i ].firstChild, "nextSibling", "img", "IMG" ) );
4935
+ if ( img.length ) {
4936
+ img.addClass( "ui-li-thumb" );
4937
+ $( this._findFirstElementByTagName( img[ 0 ].parentNode, "parentNode", "li", "LI" ) ).addClass( img.is( ".ui-li-icon" ) ? "ui-li-has-icon" : "ui-li-has-thumb" );
4938
+ }
4939
+ }
4940
+ },
4941
+
4942
+ refresh: function( create ) {
4943
+ this.parentPage = this.element.closest( ".ui-page" );
4944
+ this._createSubPages();
4945
+
4946
+ var o = this.options,
4947
+ $list = this.element,
4948
+ self = this,
4949
+ dividertheme = $list.jqmData( "dividertheme" ) || o.dividerTheme,
4950
+ listsplittheme = $list.jqmData( "splittheme" ),
4951
+ listspliticon = $list.jqmData( "spliticon" ),
4952
+ li = this._getChildrenByTagName( $list[ 0 ], "li", "LI" ),
4953
+ counter = $.support.cssPseudoElement || !$.nodeName( $list[ 0 ], "ol" ) ? 0 : 1,
4954
+ itemClassDict = {},
4955
+ item, itemClass, itemTheme,
4956
+ a, last, splittheme, countParent, icon, imgParents, img, linkIcon;
4957
+
4958
+ if ( counter ) {
4959
+ $list.find( ".ui-li-dec" ).remove();
4960
+ }
4961
+
4962
+ if ( !o.theme ) {
4963
+ o.theme = $.mobile.getInheritedTheme( this.element, "c" );
4964
+ }
4965
+
4966
+ for ( var pos = 0, numli = li.length; pos < numli; pos++ ) {
4967
+ item = li.eq( pos );
4968
+ itemClass = "ui-li";
4969
+
4970
+ // If we're creating the element, we update it regardless
4971
+ if ( create || !item.hasClass( "ui-li" ) ) {
4972
+ itemTheme = item.jqmData("theme") || o.theme;
4973
+ a = this._getChildrenByTagName( item[ 0 ], "a", "A" );
4974
+
4975
+ if ( a.length ) {
4976
+ icon = item.jqmData("icon");
4977
+
4978
+ item.buttonMarkup({
4979
+ wrapperEls: "div",
4980
+ shadow: false,
4981
+ corners: false,
4982
+ iconpos: "right",
4983
+ icon: a.length > 1 || icon === false ? false : icon || "arrow-r",
4984
+ theme: itemTheme
4985
+ });
4986
+
4987
+ if ( ( icon != false ) && ( a.length == 1 ) ) {
4988
+ item.addClass( "ui-li-has-arrow" );
4989
+ }
4990
+
4991
+ a.first().removeClass( "ui-link" ).addClass( "ui-link-inherit" );
4992
+
4993
+ if ( a.length > 1 ) {
4994
+ itemClass += " ui-li-has-alt";
4995
+
4996
+ last = a.last();
4997
+ splittheme = listsplittheme || last.jqmData( "theme" ) || o.splitTheme;
4998
+ linkIcon = last.jqmData("icon");
4999
+
5000
+ last.appendTo(item)
5001
+ .attr( "title", last.getEncodedText() )
5002
+ .addClass( "ui-li-link-alt" )
5003
+ .empty()
5004
+ .buttonMarkup({
5005
+ shadow: false,
5006
+ corners: false,
5007
+ theme: itemTheme,
5008
+ icon: false,
5009
+ iconpos: false
5010
+ })
5011
+ .find( ".ui-btn-inner" )
5012
+ .append(
5013
+ $( document.createElement( "span" ) ).buttonMarkup({
5014
+ shadow: true,
5015
+ corners: true,
5016
+ theme: splittheme,
5017
+ iconpos: "notext",
5018
+ // link icon overrides list item icon overrides ul element overrides options
5019
+ icon: linkIcon || icon || listspliticon || o.splitIcon
5020
+ })
5021
+ );
5022
+ }
5023
+ } else if ( item.jqmData( "role" ) === "list-divider" ) {
5024
+
5025
+ itemClass += " ui-li-divider ui-bar-" + dividertheme;
5026
+ item.attr( "role", "heading" );
5027
+
5028
+ //reset counter when a divider heading is encountered
5029
+ if ( counter ) {
5030
+ counter = 1;
5031
+ }
5032
+
5033
+ } else {
5034
+ itemClass += " ui-li-static ui-body-" + itemTheme;
5035
+ }
5036
+ }
5037
+
5038
+ if ( counter && itemClass.indexOf( "ui-li-divider" ) < 0 ) {
5039
+ countParent = item.is( ".ui-li-static:first" ) ? item : item.find( ".ui-link-inherit" );
5040
+
5041
+ countParent.addClass( "ui-li-jsnumbering" )
5042
+ .prepend( "<span class='ui-li-dec'>" + (counter++) + ". </span>" );
5043
+ }
5044
+
5045
+ // Instead of setting item class directly on the list item and its
5046
+ // btn-inner at this point in time, push the item into a dictionary
5047
+ // that tells us what class to set on it so we can do this after this
5048
+ // processing loop is finished.
5049
+
5050
+ if ( !itemClassDict[ itemClass ] ) {
5051
+ itemClassDict[ itemClass ] = [];
5052
+ }
5053
+
5054
+ itemClassDict[ itemClass ].push( item[ 0 ] );
5055
+ }
5056
+
5057
+ // Set the appropriate listview item classes on each list item
5058
+ // and their btn-inner elements. The main reason we didn't do this
5059
+ // in the for-loop above is because we can eliminate per-item function overhead
5060
+ // by calling addClass() and children() once or twice afterwards. This
5061
+ // can give us a significant boost on platforms like WP7.5.
5062
+
5063
+ for ( itemClass in itemClassDict ) {
5064
+ $( itemClassDict[ itemClass ] ).addClass( itemClass ).children( ".ui-btn-inner" ).addClass( itemClass );
5065
+ }
5066
+
5067
+ $list.find( "h1, h2, h3, h4, h5, h6" ).addClass( "ui-li-heading" )
5068
+ .end()
5069
+
5070
+ .find( "p, dl" ).addClass( "ui-li-desc" )
5071
+ .end()
5072
+
5073
+ .find( ".ui-li-aside" ).each(function() {
5074
+ var $this = $(this);
5075
+ $this.prependTo( $this.parent() ); //shift aside to front for css float
5076
+ })
5077
+ .end()
5078
+
5079
+ .find( ".ui-li-count" ).each( function() {
5080
+ $( this ).closest( "li" ).addClass( "ui-li-has-count" );
5081
+ }).addClass( "ui-btn-up-" + ( $list.jqmData( "counttheme" ) || this.options.countTheme) + " ui-btn-corner-all" );
5082
+
5083
+ // The idea here is to look at the first image in the list item
5084
+ // itself, and any .ui-link-inherit element it may contain, so we
5085
+ // can place the appropriate classes on the image and list item.
5086
+ // Note that we used to use something like:
5087
+ //
5088
+ // li.find(">img:eq(0), .ui-link-inherit>img:eq(0)").each( ... );
5089
+ //
5090
+ // But executing a find() like that on Windows Phone 7.5 took a
5091
+ // really long time. Walking things manually with the code below
5092
+ // allows the 400 listview item page to load in about 3 seconds as
5093
+ // opposed to 30 seconds.
5094
+
5095
+ this._addThumbClasses( li );
5096
+ this._addThumbClasses( $list.find( ".ui-link-inherit" ) );
5097
+
5098
+ this._refreshCorners( create );
5099
+ },
5100
+
5101
+ //create a string for ID/subpage url creation
5102
+ _idStringEscape: function( str ) {
5103
+ return str.replace(/[^a-zA-Z0-9]/g, '-');
5104
+ },
5105
+
5106
+ _createSubPages: function() {
5107
+ var parentList = this.element,
5108
+ parentPage = parentList.closest( ".ui-page" ),
5109
+ parentUrl = parentPage.jqmData( "url" ),
5110
+ parentId = parentUrl || parentPage[ 0 ][ $.expando ],
5111
+ parentListId = parentList.attr( "id" ),
5112
+ o = this.options,
5113
+ dns = "data-" + $.mobile.ns,
5114
+ self = this,
5115
+ persistentFooterID = parentPage.find( ":jqmData(role='footer')" ).jqmData( "id" ),
5116
+ hasSubPages;
5117
+
5118
+ if ( typeof listCountPerPage[ parentId ] === "undefined" ) {
5119
+ listCountPerPage[ parentId ] = -1;
5120
+ }
5121
+
5122
+ parentListId = parentListId || ++listCountPerPage[ parentId ];
5123
+
5124
+ $( parentList.find( "li>ul, li>ol" ).toArray().reverse() ).each(function( i ) {
5125
+ var self = this,
5126
+ list = $( this ),
5127
+ listId = list.attr( "id" ) || parentListId + "-" + i,
5128
+ parent = list.parent(),
5129
+ nodeEls = $( list.prevAll().toArray().reverse() ),
5130
+ nodeEls = nodeEls.length ? nodeEls : $( "<span>" + $.trim(parent.contents()[ 0 ].nodeValue) + "</span>" ),
5131
+ title = nodeEls.first().getEncodedText(),//url limits to first 30 chars of text
5132
+ id = ( parentUrl || "" ) + "&" + $.mobile.subPageUrlKey + "=" + listId,
5133
+ theme = list.jqmData( "theme" ) || o.theme,
5134
+ countTheme = list.jqmData( "counttheme" ) || parentList.jqmData( "counttheme" ) || o.countTheme,
5135
+ newPage, anchor;
5136
+
5137
+ //define hasSubPages for use in later removal
5138
+ hasSubPages = true;
5139
+
5140
+ newPage = list.detach()
5141
+ .wrap( "<div " + dns + "role='page' " + dns + "url='" + id + "' " + dns + "theme='" + theme + "' " + dns + "count-theme='" + countTheme + "'><div " + dns + "role='content'></div></div>" )
5142
+ .parent()
5143
+ .before( "<div " + dns + "role='header' " + dns + "theme='" + o.headerTheme + "'><div class='ui-title'>" + title + "</div></div>" )
5144
+ .after( persistentFooterID ? $( "<div " + dns + "role='footer' " + dns + "id='"+ persistentFooterID +"'>") : "" )
5145
+ .parent()
5146
+ .appendTo( $.mobile.pageContainer );
5147
+
5148
+ newPage.page();
5149
+
5150
+ anchor = parent.find('a:first');
5151
+
5152
+ if ( !anchor.length ) {
5153
+ anchor = $( "<a/>" ).html( nodeEls || title ).prependTo( parent.empty() );
5154
+ }
5155
+
5156
+ anchor.attr( "href", "#" + id );
5157
+
5158
+ }).listview();
5159
+
5160
+ // on pagehide, remove any nested pages along with the parent page, as long as they aren't active
5161
+ // and aren't embedded
5162
+ if( hasSubPages &&
5163
+ parentPage.is( ":jqmData(external-page='true')" ) &&
5164
+ parentPage.data("page").options.domCache === false ) {
5165
+
5166
+ var newRemove = function( e, ui ){
5167
+ var nextPage = ui.nextPage, npURL;
5168
+
5169
+ if( ui.nextPage ){
5170
+ npURL = nextPage.jqmData( "url" );
5171
+ if( npURL.indexOf( parentUrl + "&" + $.mobile.subPageUrlKey ) !== 0 ){
5172
+ self.childPages().remove();
5173
+ parentPage.remove();
5174
+ }
5175
+ }
5176
+ };
5177
+
5178
+ // unbind the original page remove and replace with our specialized version
5179
+ parentPage
5180
+ .unbind( "pagehide.remove" )
5181
+ .bind( "pagehide.remove", newRemove);
5182
+ }
5183
+ },
5184
+
5185
+ // TODO sort out a better way to track sub pages of the listview this is brittle
5186
+ childPages: function(){
5187
+ var parentUrl = this.parentPage.jqmData( "url" );
5188
+
5189
+ return $( ":jqmData(url^='"+ parentUrl + "&" + $.mobile.subPageUrlKey +"')");
5190
+ }
5191
+ });
5192
+
5193
+ //auto self-init widgets
5194
+ $( document ).bind( "pagecreate create", function( e ){
5195
+ $.mobile.listview.prototype.enhanceWithin( e.target );
5196
+ });
5197
+
5198
+ })( jQuery );
5199
+
5200
+ /*
5201
+ * "checkboxradio" plugin
5202
+ */
5203
+
5204
+ (function( $, undefined ) {
5205
+
5206
+ $.widget( "mobile.checkboxradio", $.mobile.widget, {
5207
+ options: {
5208
+ theme: null,
5209
+ initSelector: "input[type='checkbox'],input[type='radio']"
5210
+ },
5211
+ _create: function() {
5212
+ var self = this,
5213
+ input = this.element,
5214
+ inheritAttr = function( input, dataAttr ) {
5215
+ return input.jqmData( dataAttr ) || input.closest( "form,fieldset" ).jqmData( dataAttr )
5216
+ },
5217
+ // NOTE: Windows Phone could not find the label through a selector
5218
+ // filter works though.
5219
+ parentLabel = $( input ).closest( "label" ),
5220
+ label = parentLabel.length ? parentLabel : $( input ).closest( "form,fieldset,:jqmData(role='page'),:jqmData(role='dialog')" ).find( "label" ).filter( "[for='" + input[0].id + "']" ),
5221
+ inputtype = input[0].type,
5222
+ mini = inheritAttr( input, "mini" ),
5223
+ checkedState = inputtype + "-on",
5224
+ uncheckedState = inputtype + "-off",
5225
+ icon = input.parents( ":jqmData(type='horizontal')" ).length ? undefined : uncheckedState,
5226
+ iconpos = inheritAttr( input, "iconpos" ),
5227
+ activeBtn = icon ? "" : " " + $.mobile.activeBtnClass,
5228
+ checkedClass = "ui-" + checkedState + activeBtn,
5229
+ uncheckedClass = "ui-" + uncheckedState,
5230
+ checkedicon = "ui-icon-" + checkedState,
5231
+ uncheckedicon = "ui-icon-" + uncheckedState;
5232
+
5233
+ if ( inputtype !== "checkbox" && inputtype !== "radio" ) {
5234
+ return;
5235
+ }
5236
+
5237
+ // Expose for other methods
5238
+ $.extend( this, {
5239
+ label: label,
5240
+ inputtype: inputtype,
5241
+ checkedClass: checkedClass,
5242
+ uncheckedClass: uncheckedClass,
5243
+ checkedicon: checkedicon,
5244
+ uncheckedicon: uncheckedicon
5245
+ });
5246
+
5247
+ // If there's no selected theme check the data attr
5248
+ if( !this.options.theme ) {
5249
+ this.options.theme = $.mobile.getInheritedTheme( this.element, "c" );
5250
+ }
5251
+
5252
+ label.buttonMarkup({
5253
+ theme: this.options.theme,
5254
+ icon: icon,
5255
+ shadow: false,
5256
+ mini: mini,
5257
+ iconpos: iconpos
5258
+ });
5259
+
5260
+ // Wrap the input + label in a div
5261
+ var wrapper = document.createElement('div');
5262
+ wrapper.className = 'ui-' + inputtype;
5263
+
5264
+ input.add( label ).wrapAll( wrapper );
5265
+
5266
+ label.bind({
5267
+ vmouseover: function( event ) {
5268
+ if ( $( this ).parent().is( ".ui-disabled" ) ) {
5269
+ event.stopPropagation();
5270
+ }
5271
+ },
5272
+
5273
+ vclick: function( event ) {
5274
+ if ( input.is( ":disabled" ) ) {
5275
+ event.preventDefault();
5276
+ return;
5277
+ }
5278
+
5279
+ self._cacheVals();
5280
+
5281
+ input.prop( "checked", inputtype === "radio" && true || !input.prop( "checked" ) );
5282
+
5283
+ // trigger click handler's bound directly to the input as a substitute for
5284
+ // how label clicks behave normally in the browsers
5285
+ // TODO: it would be nice to let the browser's handle the clicks and pass them
5286
+ // through to the associate input. we can swallow that click at the parent
5287
+ // wrapper element level
5288
+ input.triggerHandler( 'click' );
5289
+
5290
+ // Input set for common radio buttons will contain all the radio
5291
+ // buttons, but will not for checkboxes. clearing the checked status
5292
+ // of other radios ensures the active button state is applied properly
5293
+ self._getInputSet().not( input ).prop( "checked", false );
5294
+
5295
+ self._updateAll();
5296
+ return false;
5297
+ }
5298
+ });
5299
+
5300
+ input
5301
+ .bind({
5302
+ vmousedown: function() {
5303
+ self._cacheVals();
5304
+ },
5305
+
5306
+ vclick: function() {
5307
+ var $this = $(this);
5308
+
5309
+ // Adds checked attribute to checked input when keyboard is used
5310
+ if ( $this.is( ":checked" ) ) {
5311
+
5312
+ $this.prop( "checked", true);
5313
+ self._getInputSet().not($this).prop( "checked", false );
5314
+ } else {
5315
+
5316
+ $this.prop( "checked", false );
5317
+ }
5318
+
5319
+ self._updateAll();
5320
+ },
5321
+
5322
+ focus: function() {
5323
+ label.addClass( $.mobile.focusClass );
5324
+ },
5325
+
5326
+ blur: function() {
5327
+ label.removeClass( $.mobile.focusClass );
5328
+ }
5329
+ });
5330
+
5331
+ this.refresh();
5332
+ },
5333
+
5334
+ _cacheVals: function() {
5335
+ this._getInputSet().each(function() {
5336
+ $(this).jqmData( "cacheVal", this.checked );
5337
+ });
5338
+ },
5339
+
5340
+ //returns either a set of radios with the same name attribute, or a single checkbox
5341
+ _getInputSet: function(){
5342
+ if(this.inputtype === "checkbox") {
5343
+ return this.element;
5344
+ }
5345
+
5346
+ return this.element.closest( "form,fieldset,:jqmData(role='page')" )
5347
+ .find( "input[name='"+ this.element[0].name +"'][type='"+ this.inputtype +"']" );
5348
+ },
5349
+
5350
+ _updateAll: function() {
5351
+ var self = this;
5352
+
5353
+ this._getInputSet().each(function() {
5354
+ var $this = $(this);
5355
+
5356
+ if ( this.checked || self.inputtype === "checkbox" ) {
5357
+ $this.trigger( "change" );
5358
+ }
5359
+ })
5360
+ .checkboxradio( "refresh" );
5361
+ },
5362
+
5363
+ refresh: function() {
5364
+ var input = this.element[0],
5365
+ label = this.label,
5366
+ icon = label.find( ".ui-icon" );
5367
+
5368
+ if ( input.checked ) {
5369
+ label.addClass( this.checkedClass ).removeClass( this.uncheckedClass );
5370
+ icon.addClass( this.checkedicon ).removeClass( this.uncheckedicon );
5371
+ } else {
5372
+ label.removeClass( this.checkedClass ).addClass( this.uncheckedClass );
5373
+ icon.removeClass( this.checkedicon ).addClass( this.uncheckedicon );
5374
+ }
5375
+
5376
+ if ( input.disabled ) {
5377
+ this.disable();
5378
+ } else {
5379
+ this.enable();
5380
+ }
5381
+ },
5382
+
5383
+ disable: function() {
5384
+ this.element.prop( "disabled", true ).parent().addClass( "ui-disabled" );
5385
+ },
5386
+
5387
+ enable: function() {
5388
+ this.element.prop( "disabled", false ).parent().removeClass( "ui-disabled" );
5389
+ }
5390
+ });
5391
+
5392
+ //auto self-init widgets
5393
+ $( document ).bind( "pagecreate create", function( e ){
5394
+ $.mobile.checkboxradio.prototype.enhanceWithin( e.target, true );
5395
+ });
5396
+
5397
+ })( jQuery );
5398
+
5399
+ (function( $, undefined ) {
5400
+
5401
+ $.widget( "mobile.button", $.mobile.widget, {
5402
+ options: {
5403
+ theme: null,
5404
+ icon: null,
5405
+ iconpos: null,
5406
+ inline: false,
5407
+ corners: true,
5408
+ shadow: true,
5409
+ iconshadow: true,
5410
+ initSelector: "button, [type='button'], [type='submit'], [type='reset'], [type='image']",
5411
+ mini: false
5412
+ },
5413
+ _create: function() {
5414
+ var $el = this.element,
5415
+ $button,
5416
+ o = this.options,
5417
+ type,
5418
+ name,
5419
+ classes = "",
5420
+ $buttonPlaceholder;
5421
+
5422
+ // if this is a link, check if it's been enhanced and, if not, use the right function
5423
+ if( $el[ 0 ].tagName === "A" ) {
5424
+ !$el.hasClass( "ui-btn" ) && $el.buttonMarkup();
5425
+ return;
5426
+ }
5427
+
5428
+ // get the inherited theme
5429
+ // TODO centralize for all widgets
5430
+ if ( !this.options.theme ) {
5431
+ this.options.theme = $.mobile.getInheritedTheme( this.element, "c" );
5432
+ }
5433
+
5434
+ // TODO: Post 1.1--once we have time to test thoroughly--any classes manually applied to the original element should be carried over to the enhanced element, with an `-enhanced` suffix. See https://github.com/jquery/jquery-mobile/issues/3577
5435
+ /* if( $el[0].className.length ) {
5436
+ classes = $el[0].className;
5437
+ } */
5438
+ if( !!~$el[0].className.indexOf( "ui-btn-left" ) ) {
5439
+ classes = "ui-btn-left";
5440
+ }
5441
+
5442
+ if( !!~$el[0].className.indexOf( "ui-btn-right" ) ) {
5443
+ classes = "ui-btn-right";
5444
+ }
5445
+
5446
+ // Add ARIA role
5447
+ this.button = $( "<div></div>" )
5448
+ .text( $el.text() || $el.val() )
5449
+ .insertBefore( $el )
5450
+ .buttonMarkup({
5451
+ theme: o.theme,
5452
+ icon: o.icon,
5453
+ iconpos: o.iconpos,
5454
+ inline: o.inline,
5455
+ corners: o.corners,
5456
+ shadow: o.shadow,
5457
+ iconshadow: o.iconshadow,
5458
+ mini: o.mini
5459
+ })
5460
+ .addClass( classes )
5461
+ .append( $el.addClass( "ui-btn-hidden" ) );
5462
+
5463
+ $button = this.button;
5464
+ type = $el.attr( "type" );
5465
+ name = $el.attr( "name" );
5466
+
5467
+ // Add hidden input during submit if input type="submit" has a name.
5468
+ if ( type !== "button" && type !== "reset" && name ) {
5469
+ $el.bind( "vclick", function() {
5470
+ // Add hidden input if it doesn’t already exist.
5471
+ if( $buttonPlaceholder === undefined ) {
5472
+ $buttonPlaceholder = $( "<input>", {
5473
+ type: "hidden",
5474
+ name: $el.attr( "name" ),
5475
+ value: $el.attr( "value" )
5476
+ }).insertBefore( $el );
5477
+
5478
+ // Bind to doc to remove after submit handling
5479
+ $( document ).one("submit", function(){
5480
+ $buttonPlaceholder.remove();
5481
+
5482
+ // reset the local var so that the hidden input
5483
+ // will be re-added on subsequent clicks
5484
+ $buttonPlaceholder = undefined;
5485
+ });
5486
+ }
5487
+ });
5488
+ }
5489
+
5490
+ $el.bind({
5491
+ focus: function() {
5492
+ $button.addClass( $.mobile.focusClass );
5493
+ },
5494
+
5495
+ blur: function() {
5496
+ $button.removeClass( $.mobile.focusClass );
5497
+ }
5498
+ });
5499
+
5500
+ this.refresh();
5501
+ },
5502
+
5503
+ enable: function() {
5504
+ this.element.attr( "disabled", false );
5505
+ this.button.removeClass( "ui-disabled" ).attr( "aria-disabled", false );
5506
+ return this._setOption( "disabled", false );
5507
+ },
5508
+
5509
+ disable: function() {
5510
+ this.element.attr( "disabled", true );
5511
+ this.button.addClass( "ui-disabled" ).attr( "aria-disabled", true );
5512
+ return this._setOption( "disabled", true );
5513
+ },
5514
+
5515
+ refresh: function() {
5516
+ var $el = this.element;
5517
+
5518
+ if ( $el.prop("disabled") ) {
5519
+ this.disable();
5520
+ } else {
5521
+ this.enable();
5522
+ }
5523
+
5524
+ // Grab the button's text element from its implementation-independent data item
5525
+ $( this.button.data( 'buttonElements' ).text ).text( $el.text() || $el.val() );
5526
+ }
5527
+ });
5528
+
5529
+ //auto self-init widgets
5530
+ $( document ).bind( "pagecreate create", function( e ){
5531
+ $.mobile.button.prototype.enhanceWithin( e.target, true );
5532
+ });
5533
+
5534
+ })( jQuery );
5535
+
5536
+ (function( $, undefined ) {
5537
+
5538
+ $.fn.controlgroup = function( options ) {
5539
+ function flipClasses( els, flCorners ) {
5540
+ els.removeClass( "ui-btn-corner-all ui-shadow" )
5541
+ .eq( 0 ).addClass( flCorners[ 0 ] )
5542
+ .end()
5543
+ .last().addClass( flCorners[ 1 ] ).addClass( "ui-controlgroup-last" );
5544
+ }
5545
+
5546
+ return this.each(function() {
5547
+ var $el = $( this ),
5548
+ o = $.extend({
5549
+ direction: $el.jqmData( "type" ) || "vertical",
5550
+ shadow: false,
5551
+ excludeInvisible: true,
5552
+ mini: $el.jqmData( "mini" )
5553
+ }, options ),
5554
+ groupheading = $el.children( "legend" ),
5555
+ flCorners = o.direction == "horizontal" ? [ "ui-corner-left", "ui-corner-right" ] : [ "ui-corner-top", "ui-corner-bottom" ],
5556
+ type = $el.find( "input" ).first().attr( "type" );
5557
+
5558
+ // Replace legend with more stylable replacement div
5559
+ if ( groupheading.length ) {
5560
+ $el.wrapInner( "<div class='ui-controlgroup-controls'></div>" );
5561
+ $( "<div role='heading' class='ui-controlgroup-label'>" + groupheading.html() + "</div>" ).insertBefore( $el.children(0) );
5562
+ groupheading.remove();
5563
+ }
5564
+
5565
+ $el.addClass( "ui-corner-all ui-controlgroup ui-controlgroup-" + o.direction );
5566
+
5567
+ flipClasses( $el.find( ".ui-btn" + ( o.excludeInvisible ? ":visible" : "" ) ).not('.ui-slider-handle'), flCorners );
5568
+ flipClasses( $el.find( ".ui-btn-inner" ), flCorners );
5569
+
5570
+ if ( o.shadow ) {
5571
+ $el.addClass( "ui-shadow" );
5572
+ }
5573
+
5574
+ if ( o.mini ) {
5575
+ $el.addClass( "ui-mini" );
5576
+ }
5577
+
5578
+ });
5579
+ };
5580
+
5581
+ // The pagecreate handler for controlgroup is in jquery.mobile.init because of the soft-dependency on the wrapped widgets
5582
+
5583
+ })(jQuery);
5584
+
5585
+ (function( $, undefined ) {
5586
+
5587
+ $( document ).bind( "pagecreate create", function( e ){
5588
+
5589
+ //links within content areas, tests included with page
5590
+ $( e.target )
5591
+ .find( "a" )
5592
+ .jqmEnhanceable()
5593
+ .not( ".ui-btn, .ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')" )
5594
+ .addClass( "ui-link" );
5595
+
5596
+ });
5597
+
5598
+ })( jQuery );
5599
+
5600
+
5601
+ ( function( $ ) {
5602
+ var meta = $( "meta[name=viewport]" ),
5603
+ initialContent = meta.attr( "content" ),
5604
+ disabledZoom = initialContent + ",maximum-scale=1, user-scalable=no",
5605
+ enabledZoom = initialContent + ",maximum-scale=10, user-scalable=yes",
5606
+ disabledInitially = /(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test( initialContent );
5607
+
5608
+ $.mobile.zoom = $.extend( {}, {
5609
+ enabled: !disabledInitially,
5610
+ locked: false,
5611
+ disable: function( lock ) {
5612
+ if( !disabledInitially && !$.mobile.zoom.locked ){
5613
+ meta.attr( "content", disabledZoom );
5614
+ $.mobile.zoom.enabled = false;
5615
+ $.mobile.zoom.locked = lock || false;
5616
+ }
5617
+ },
5618
+ enable: function( unlock ) {
5619
+ if( !disabledInitially && ( !$.mobile.zoom.locked || unlock === true ) ){
5620
+ meta.attr( "content", enabledZoom );
5621
+ $.mobile.zoom.enabled = true;
5622
+ $.mobile.zoom.locked = false;
5623
+ }
5624
+ },
5625
+ restore: function() {
5626
+ if( !disabledInitially ){
5627
+ meta.attr( "content", initialContent );
5628
+ $.mobile.zoom.enabled = true;
5629
+ }
5630
+ }
5631
+ });
5632
+
5633
+ }( jQuery ));
5634
+
5635
+ (function( $, undefined ) {
5636
+
5637
+ $.widget( "mobile.textinput", $.mobile.widget, {
5638
+ options: {
5639
+ theme: null,
5640
+ // This option defaults to true on iOS devices.
5641
+ preventFocusZoom: /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1,
5642
+ initSelector: "input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])",
5643
+ clearSearchButtonText: "clear text"
5644
+ },
5645
+
5646
+ _create: function() {
5647
+
5648
+ var input = this.element,
5649
+ o = this.options,
5650
+ theme = o.theme || $.mobile.getInheritedTheme( this.element, "c" ),
5651
+ themeclass = " ui-body-" + theme,
5652
+ mini = input.jqmData("mini") == true,
5653
+ miniclass = mini ? " ui-mini" : "",
5654
+ focusedEl, clearbtn;
5655
+
5656
+ $( "label[for='" + input.attr( "id" ) + "']" ).addClass( "ui-input-text" );
5657
+
5658
+ focusedEl = input.addClass("ui-input-text ui-body-"+ theme );
5659
+
5660
+ // XXX: Temporary workaround for issue 785 (Apple bug 8910589).
5661
+ // Turn off autocorrect and autocomplete on non-iOS 5 devices
5662
+ // since the popup they use can't be dismissed by the user. Note
5663
+ // that we test for the presence of the feature by looking for
5664
+ // the autocorrect property on the input element. We currently
5665
+ // have no test for iOS 5 or newer so we're temporarily using
5666
+ // the touchOverflow support flag for jQM 1.0. Yes, I feel dirty. - jblas
5667
+ if ( typeof input[0].autocorrect !== "undefined" && !$.support.touchOverflow ) {
5668
+ // Set the attribute instead of the property just in case there
5669
+ // is code that attempts to make modifications via HTML.
5670
+ input[0].setAttribute( "autocorrect", "off" );
5671
+ input[0].setAttribute( "autocomplete", "off" );
5672
+ }
5673
+
5674
+
5675
+ //"search" input widget
5676
+ if ( input.is( "[type='search'],:jqmData(type='search')" ) ) {
5677
+
5678
+ focusedEl = input.wrap( "<div class='ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield" + themeclass + miniclass + "'></div>" ).parent();
5679
+ clearbtn = $( "<a href='#' class='ui-input-clear' title='" + o.clearSearchButtonText + "'>" + o.clearSearchButtonText + "</a>" )
5680
+ .bind('click', function( event ) {
5681
+ input
5682
+ .val( "" )
5683
+ .focus()
5684
+ .trigger( "change" );
5685
+ clearbtn.addClass( "ui-input-clear-hidden" );
5686
+ event.preventDefault();
5687
+ })
5688
+ .appendTo( focusedEl )
5689
+ .buttonMarkup({
5690
+ icon: "delete",
5691
+ iconpos: "notext",
5692
+ corners: true,
5693
+ shadow: true,
5694
+ mini: mini
5695
+ });
5696
+
5697
+ function toggleClear() {
5698
+ setTimeout(function() {
5699
+ clearbtn.toggleClass( "ui-input-clear-hidden", !input.val() );
5700
+ }, 0);
5701
+ }
5702
+
5703
+ toggleClear();
5704
+
5705
+ input.bind('paste cut keyup focus change blur', toggleClear);
5706
+
5707
+ } else {
5708
+ input.addClass( "ui-corner-all ui-shadow-inset" + themeclass + miniclass );
5709
+ }
5710
+
5711
+ input.focus(function() {
5712
+ focusedEl.addClass( $.mobile.focusClass );
5713
+ })
5714
+ .blur(function(){
5715
+ focusedEl.removeClass( $.mobile.focusClass );
5716
+ })
5717
+ // In many situations, iOS will zoom into the select upon tap, this prevents that from happening
5718
+ .bind( "focus", function() {
5719
+ if( o.preventFocusZoom ){
5720
+ $.mobile.zoom.disable( true );
5721
+ }
5722
+ })
5723
+ .bind( "blur", function() {
5724
+ if( o.preventFocusZoom ){
5725
+ $.mobile.zoom.enable( true );
5726
+ }
5727
+ });
5728
+
5729
+ // Autogrow
5730
+ if ( input.is( "textarea" ) ) {
5731
+ var extraLineHeight = 15,
5732
+ keyupTimeoutBuffer = 100,
5733
+ keyup = function() {
5734
+ var scrollHeight = input[ 0 ].scrollHeight,
5735
+ clientHeight = input[ 0 ].clientHeight;
5736
+
5737
+ if ( clientHeight < scrollHeight ) {
5738
+ input.height(scrollHeight + extraLineHeight);
5739
+ }
5740
+ },
5741
+ keyupTimeout;
5742
+
5743
+ input.keyup(function() {
5744
+ clearTimeout( keyupTimeout );
5745
+ keyupTimeout = setTimeout( keyup, keyupTimeoutBuffer );
5746
+ });
5747
+
5748
+ // binding to pagechange here ensures that for pages loaded via
5749
+ // ajax the height is recalculated without user input
5750
+ $( document ).one( "pagechange", keyup );
5751
+
5752
+ // Issue 509: the browser is not providing scrollHeight properly until the styles load
5753
+ if ( $.trim( input.val() ) ) {
5754
+ // bind to the window load to make sure the height is calculated based on BOTH
5755
+ // the DOM and CSS
5756
+ $( window ).load( keyup );
5757
+ }
5758
+ }
5759
+ },
5760
+
5761
+ disable: function(){
5762
+ ( this.element.attr( "disabled", true ).is( "[type='search'],:jqmData(type='search')" ) ?
5763
+ this.element.parent() : this.element ).addClass( "ui-disabled" );
5764
+ },
5765
+
5766
+ enable: function(){
5767
+ ( this.element.attr( "disabled", false).is( "[type='search'],:jqmData(type='search')" ) ?
5768
+ this.element.parent() : this.element ).removeClass( "ui-disabled" );
5769
+ }
5770
+ });
5771
+
5772
+ //auto self-init widgets
5773
+ $( document ).bind( "pagecreate create", function( e ){
5774
+ $.mobile.textinput.prototype.enhanceWithin( e.target, true );
5775
+ });
5776
+
5777
+ })( jQuery );
5778
+
5779
+ (function( $, undefined ) {
5780
+
5781
+ $.mobile.listview.prototype.options.filter = false;
5782
+ $.mobile.listview.prototype.options.filterPlaceholder = "Filter items...";
5783
+ $.mobile.listview.prototype.options.filterTheme = "c";
5784
+ $.mobile.listview.prototype.options.filterCallback = function( text, searchValue ){
5785
+ return text.toLowerCase().indexOf( searchValue ) === -1;
5786
+ };
5787
+
5788
+ $( document ).delegate( ":jqmData(role='listview')", "listviewcreate", function() {
5789
+
5790
+ var list = $( this ),
5791
+ listview = list.data( "listview" );
5792
+
5793
+ if ( !listview.options.filter ) {
5794
+ return;
5795
+ }
5796
+
5797
+ var wrapper = $( "<form>", {
5798
+ "class": "ui-listview-filter ui-bar-" + listview.options.filterTheme,
5799
+ "role": "search"
5800
+ }),
5801
+ search = $( "<input>", {
5802
+ placeholder: listview.options.filterPlaceholder
5803
+ })
5804
+ .attr( "data-" + $.mobile.ns + "type", "search" )
5805
+ .jqmData( "lastval", "" )
5806
+ .bind( "keyup change", function() {
5807
+
5808
+ var $this = $(this),
5809
+ val = this.value.toLowerCase(),
5810
+ listItems = null,
5811
+ lastval = $this.jqmData( "lastval" ) + "",
5812
+ childItems = false,
5813
+ itemtext = "",
5814
+ item;
5815
+
5816
+ // Change val as lastval for next execution
5817
+ $this.jqmData( "lastval" , val );
5818
+ if ( val.length < lastval.length || val.indexOf(lastval) !== 0 ) {
5819
+
5820
+ // Removed chars or pasted something totally different, check all items
5821
+ listItems = list.children();
5822
+ } else {
5823
+
5824
+ // Only chars added, not removed, only use visible subset
5825
+ listItems = list.children( ":not(.ui-screen-hidden)" );
5826
+ }
5827
+
5828
+ if ( val ) {
5829
+
5830
+ // This handles hiding regular rows without the text we search for
5831
+ // and any list dividers without regular rows shown under it
5832
+
5833
+ for ( var i = listItems.length - 1; i >= 0; i-- ) {
5834
+ item = $( listItems[ i ] );
5835
+ itemtext = item.jqmData( "filtertext" ) || item.text();
5836
+
5837
+ if ( item.is( "li:jqmData(role=list-divider)" ) ) {
5838
+
5839
+ item.toggleClass( "ui-filter-hidequeue" , !childItems );
5840
+
5841
+ // New bucket!
5842
+ childItems = false;
5843
+
5844
+ } else if ( listview.options.filterCallback( itemtext, val ) ) {
5845
+
5846
+ //mark to be hidden
5847
+ item.toggleClass( "ui-filter-hidequeue" , true );
5848
+ } else {
5849
+
5850
+ // There's a shown item in the bucket
5851
+ childItems = true;
5852
+ }
5853
+ }
5854
+
5855
+ // Show items, not marked to be hidden
5856
+ listItems
5857
+ .filter( ":not(.ui-filter-hidequeue)" )
5858
+ .toggleClass( "ui-screen-hidden", false );
5859
+
5860
+ // Hide items, marked to be hidden
5861
+ listItems
5862
+ .filter( ".ui-filter-hidequeue" )
5863
+ .toggleClass( "ui-screen-hidden", true )
5864
+ .toggleClass( "ui-filter-hidequeue", false );
5865
+
5866
+ } else {
5867
+
5868
+ //filtervalue is empty => show all
5869
+ listItems.toggleClass( "ui-screen-hidden", false );
5870
+ }
5871
+ listview._refreshCorners();
5872
+ })
5873
+ .appendTo( wrapper )
5874
+ .textinput();
5875
+
5876
+ if ( listview.options.inset ) {
5877
+ wrapper.addClass( "ui-listview-filter-inset" );
5878
+ }
5879
+
5880
+ wrapper.bind( "submit", function() {
5881
+ return false;
5882
+ })
5883
+ .insertBefore( list );
5884
+ });
5885
+
5886
+ })( jQuery );
5887
+
5888
+ ( function( $, undefined ) {
5889
+
5890
+ $.widget( "mobile.slider", $.mobile.widget, {
5891
+ options: {
5892
+ theme: null,
5893
+ trackTheme: null,
5894
+ disabled: false,
5895
+ initSelector: "input[type='range'], :jqmData(type='range'), :jqmData(role='slider')",
5896
+ mini: false
5897
+ },
5898
+
5899
+ _create: function() {
5900
+
5901
+ // TODO: Each of these should have comments explain what they're for
5902
+ var self = this,
5903
+
5904
+ control = this.element,
5905
+
5906
+ parentTheme = $.mobile.getInheritedTheme( control, "c" ),
5907
+
5908
+ theme = this.options.theme || parentTheme,
5909
+
5910
+ trackTheme = this.options.trackTheme || parentTheme,
5911
+
5912
+ cType = control[ 0 ].nodeName.toLowerCase(),
5913
+
5914
+ selectClass = ( cType == "select" ) ? "ui-slider-switch" : "",
5915
+
5916
+ controlID = control.attr( "id" ),
5917
+
5918
+ labelID = controlID + "-label",
5919
+
5920
+ label = $( "[for='"+ controlID +"']" ).attr( "id", labelID ),
5921
+
5922
+ val = function() {
5923
+ return cType == "input" ? parseFloat( control.val() ) : control[0].selectedIndex;
5924
+ },
5925
+
5926
+ min = cType == "input" ? parseFloat( control.attr( "min" ) ) : 0,
5927
+
5928
+ max = cType == "input" ? parseFloat( control.attr( "max" ) ) : control.find( "option" ).length-1,
5929
+
5930
+ step = window.parseFloat( control.attr( "step" ) || 1 ),
5931
+
5932
+ inlineClass = ( this.options.inline || control.jqmData("inline") == true ) ? " ui-slider-inline" : "",
5933
+
5934
+ miniClass = ( this.options.mini || control.jqmData("mini") ) ? " ui-slider-mini" : "",
5935
+
5936
+
5937
+ domHandle = document.createElement('a'),
5938
+ handle = $( domHandle ),
5939
+ domSlider = document.createElement('div'),
5940
+ slider = $( domSlider ),
5941
+
5942
+ valuebg = control.jqmData("highlight") && cType != "select" ? (function() {
5943
+ var bg = document.createElement('div');
5944
+ bg.className = 'ui-slider-bg ui-btn-active ui-btn-corner-all';
5945
+ return $( bg ).prependTo( slider );
5946
+ })() : false,
5947
+
5948
+ options;
5949
+
5950
+ domHandle.setAttribute( 'href', "#" );
5951
+ domSlider.setAttribute('role','application');
5952
+ domSlider.className = ['ui-slider ',selectClass," ui-btn-down-",trackTheme,' ui-btn-corner-all', inlineClass, miniClass].join("");
5953
+ domHandle.className = 'ui-slider-handle';
5954
+ domSlider.appendChild(domHandle);
5955
+
5956
+ handle.buttonMarkup({ corners: true, theme: theme, shadow: true })
5957
+ .attr({
5958
+ "role": "slider",
5959
+ "aria-valuemin": min,
5960
+ "aria-valuemax": max,
5961
+ "aria-valuenow": val(),
5962
+ "aria-valuetext": val(),
5963
+ "title": val(),
5964
+ "aria-labelledby": labelID
5965
+ });
5966
+
5967
+ $.extend( this, {
5968
+ slider: slider,
5969
+ handle: handle,
5970
+ valuebg: valuebg,
5971
+ dragging: false,
5972
+ beforeStart: null,
5973
+ userModified: false,
5974
+ mouseMoved: false
5975
+ });
5976
+
5977
+ if ( cType == "select" ) {
5978
+ var wrapper = document.createElement('div');
5979
+ wrapper.className = 'ui-slider-inneroffset';
5980
+
5981
+ for(var j = 0,length = domSlider.childNodes.length;j < length;j++){
5982
+ wrapper.appendChild(domSlider.childNodes[j]);
5983
+ }
5984
+
5985
+ domSlider.appendChild(wrapper);
5986
+
5987
+ // slider.wrapInner( "<div class='ui-slider-inneroffset'></div>" );
5988
+
5989
+ // make the handle move with a smooth transition
5990
+ handle.addClass( "ui-slider-handle-snapping" );
5991
+
5992
+ options = control.find( "option" );
5993
+
5994
+ for(var i = 0, optionsCount = options.length; i < optionsCount; i++){
5995
+ var side = !i ? "b":"a",
5996
+ sliderTheme = !i ? " ui-btn-down-" + trackTheme :( " " + $.mobile.activeBtnClass ),
5997
+ sliderLabel = document.createElement('div'),
5998
+ sliderImg = document.createElement('span');
5999
+
6000
+ sliderImg.className = ['ui-slider-label ui-slider-label-',side,sliderTheme," ui-btn-corner-all"].join("");
6001
+ sliderImg.setAttribute('role','img');
6002
+ sliderImg.appendChild(document.createTextNode(options[i].innerHTML));
6003
+ $(sliderImg).prependTo( slider );
6004
+ }
6005
+
6006
+ self._labels = $( ".ui-slider-label", slider );
6007
+
6008
+ }
6009
+
6010
+ label.addClass( "ui-slider" );
6011
+
6012
+ // monitor the input for updated values
6013
+ control.addClass( cType === "input" ? "ui-slider-input" : "ui-slider-switch" )
6014
+ .change( function() {
6015
+ // if the user dragged the handle, the "change" event was triggered from inside refresh(); don't call refresh() again
6016
+ if (!self.mouseMoved) {
6017
+ self.refresh( val(), true );
6018
+ }
6019
+ })
6020
+ .keyup( function() { // necessary?
6021
+ self.refresh( val(), true, true );
6022
+ })
6023
+ .blur( function() {
6024
+ self.refresh( val(), true );
6025
+ });
6026
+
6027
+ // prevent screen drag when slider activated
6028
+ $( document ).bind( "vmousemove", function( event ) {
6029
+ if ( self.dragging ) {
6030
+ // self.mouseMoved must be updated before refresh() because it will be used in the control "change" event
6031
+ self.mouseMoved = true;
6032
+
6033
+ if ( cType === "select" ) {
6034
+ // make the handle move in sync with the mouse
6035
+ handle.removeClass( "ui-slider-handle-snapping" );
6036
+ }
6037
+
6038
+ self.refresh( event );
6039
+
6040
+ // only after refresh() you can calculate self.userModified
6041
+ self.userModified = self.beforeStart !== control[0].selectedIndex;
6042
+ return false;
6043
+ }
6044
+ });
6045
+
6046
+ slider.bind( "vmousedown", function( event ) {
6047
+ self.dragging = true;
6048
+ self.userModified = false;
6049
+ self.mouseMoved = false;
6050
+
6051
+ if ( cType === "select" ) {
6052
+ self.beforeStart = control[0].selectedIndex;
6053
+ }
6054
+
6055
+ self.refresh( event );
6056
+ return false;
6057
+ })
6058
+ .bind( "vclick", false );
6059
+
6060
+ slider.add( document )
6061
+ .bind( "vmouseup", function() {
6062
+ if ( self.dragging ) {
6063
+
6064
+ self.dragging = false;
6065
+
6066
+ if ( cType === "select") {
6067
+
6068
+ // make the handle move with a smooth transition
6069
+ handle.addClass( "ui-slider-handle-snapping" );
6070
+
6071
+ if ( self.mouseMoved ) {
6072
+
6073
+ // this is a drag, change the value only if user dragged enough
6074
+ if ( self.userModified ) {
6075
+ self.refresh( self.beforeStart == 0 ? 1 : 0 );
6076
+ }
6077
+ else {
6078
+ self.refresh( self.beforeStart );
6079
+ }
6080
+
6081
+ }
6082
+ else {
6083
+ // this is just a click, change the value
6084
+ self.refresh( self.beforeStart == 0 ? 1 : 0 );
6085
+ }
6086
+
6087
+ }
6088
+
6089
+ self.mouseMoved = false;
6090
+
6091
+ return false;
6092
+ }
6093
+ });
6094
+
6095
+ slider.insertAfter( control );
6096
+
6097
+ // Only add focus class to toggle switch, sliders get it automatically from ui-btn
6098
+ if( cType == 'select' ) {
6099
+ this.handle.bind({
6100
+ focus: function() {
6101
+ slider.addClass( $.mobile.focusClass );
6102
+ },
6103
+
6104
+ blur: function() {
6105
+ slider.removeClass( $.mobile.focusClass );
6106
+ }
6107
+ });
6108
+ }
6109
+
6110
+ this.handle.bind({
6111
+ // NOTE force focus on handle
6112
+ vmousedown: function() {
6113
+ $( this ).focus();
6114
+ },
6115
+
6116
+ vclick: false,
6117
+
6118
+ keydown: function( event ) {
6119
+ var index = val();
6120
+
6121
+ if ( self.options.disabled ) {
6122
+ return;
6123
+ }
6124
+
6125
+ // In all cases prevent the default and mark the handle as active
6126
+ switch ( event.keyCode ) {
6127
+ case $.mobile.keyCode.HOME:
6128
+ case $.mobile.keyCode.END:
6129
+ case $.mobile.keyCode.PAGE_UP:
6130
+ case $.mobile.keyCode.PAGE_DOWN:
6131
+ case $.mobile.keyCode.UP:
6132
+ case $.mobile.keyCode.RIGHT:
6133
+ case $.mobile.keyCode.DOWN:
6134
+ case $.mobile.keyCode.LEFT:
6135
+ event.preventDefault();
6136
+
6137
+ if ( !self._keySliding ) {
6138
+ self._keySliding = true;
6139
+ $( this ).addClass( "ui-state-active" );
6140
+ }
6141
+ break;
6142
+ }
6143
+
6144
+ // move the slider according to the keypress
6145
+ switch ( event.keyCode ) {
6146
+ case $.mobile.keyCode.HOME:
6147
+ self.refresh( min );
6148
+ break;
6149
+ case $.mobile.keyCode.END:
6150
+ self.refresh( max );
6151
+ break;
6152
+ case $.mobile.keyCode.PAGE_UP:
6153
+ case $.mobile.keyCode.UP:
6154
+ case $.mobile.keyCode.RIGHT:
6155
+ self.refresh( index + step );
6156
+ break;
6157
+ case $.mobile.keyCode.PAGE_DOWN:
6158
+ case $.mobile.keyCode.DOWN:
6159
+ case $.mobile.keyCode.LEFT:
6160
+ self.refresh( index - step );
6161
+ break;
6162
+ }
6163
+ }, // remove active mark
6164
+
6165
+ keyup: function( event ) {
6166
+ if ( self._keySliding ) {
6167
+ self._keySliding = false;
6168
+ $( this ).removeClass( "ui-state-active" );
6169
+ }
6170
+ }
6171
+ });
6172
+
6173
+ this.refresh(undefined, undefined, true);
6174
+ },
6175
+
6176
+ refresh: function( val, isfromControl, preventInputUpdate ) {
6177
+
6178
+ if ( this.options.disabled || this.element.attr('disabled')) {
6179
+ this.disable();
6180
+ }
6181
+
6182
+ var control = this.element, percent,
6183
+ cType = control[0].nodeName.toLowerCase(),
6184
+ min = cType === "input" ? parseFloat( control.attr( "min" ) ) : 0,
6185
+ max = cType === "input" ? parseFloat( control.attr( "max" ) ) : control.find( "option" ).length - 1,
6186
+ step = (cType === "input" && parseFloat( control.attr( "step" ) ) > 0) ? parseFloat(control.attr("step")) : 1;
6187
+
6188
+ if ( typeof val === "object" ) {
6189
+ var data = val,
6190
+ // a slight tolerance helped get to the ends of the slider
6191
+ tol = 8;
6192
+ if ( !this.dragging ||
6193
+ data.pageX < this.slider.offset().left - tol ||
6194
+ data.pageX > this.slider.offset().left + this.slider.width() + tol ) {
6195
+ return;
6196
+ }
6197
+ percent = Math.round( ( ( data.pageX - this.slider.offset().left ) / this.slider.width() ) * 100 );
6198
+ } else {
6199
+ if ( val == null ) {
6200
+ val = cType === "input" ? parseFloat( control.val() || 0 ) : control[0].selectedIndex;
6201
+ }
6202
+ percent = ( parseFloat( val ) - min ) / ( max - min ) * 100;
6203
+ }
6204
+
6205
+ if ( isNaN( percent ) ) {
6206
+ return;
6207
+ }
6208
+
6209
+ if ( percent < 0 ) {
6210
+ percent = 0;
6211
+ }
6212
+
6213
+ if ( percent > 100 ) {
6214
+ percent = 100;
6215
+ }
6216
+
6217
+ var newval = ( percent / 100 ) * ( max - min ) + min;
6218
+
6219
+ //from jQuery UI slider, the following source will round to the nearest step
6220
+ var valModStep = ( newval - min ) % step;
6221
+ var alignValue = newval - valModStep;
6222
+
6223
+ if ( Math.abs( valModStep ) * 2 >= step ) {
6224
+ alignValue += ( valModStep > 0 ) ? step : ( -step );
6225
+ }
6226
+ // Since JavaScript has problems with large floats, round
6227
+ // the final value to 5 digits after the decimal point (see jQueryUI: #4124)
6228
+ newval = parseFloat( alignValue.toFixed(5) );
6229
+
6230
+ if ( newval < min ) {
6231
+ newval = min;
6232
+ }
6233
+
6234
+ if ( newval > max ) {
6235
+ newval = max;
6236
+ }
6237
+
6238
+ this.handle.css( "left", percent + "%" );
6239
+ this.handle.attr( {
6240
+ "aria-valuenow": cType === "input" ? newval : control.find( "option" ).eq( newval ).attr( "value" ),
6241
+ "aria-valuetext": cType === "input" ? newval : control.find( "option" ).eq( newval ).getEncodedText(),
6242
+ title: cType === "input" ? newval : control.find( "option" ).eq( newval ).getEncodedText()
6243
+ });
6244
+ this.valuebg && this.valuebg.css( "width", percent + "%" );
6245
+
6246
+ // drag the label widths
6247
+ if ( this._labels ) {
6248
+ var handlePercent = this.handle.width() / this.slider.width() * 100,
6249
+ aPercent = percent && handlePercent + ( 100 - handlePercent ) * percent / 100,
6250
+ bPercent = percent === 100 ? 0 : Math.min( handlePercent + 100 - aPercent, 100 );
6251
+
6252
+ this._labels.each(function(){
6253
+ var ab = $(this).is( ".ui-slider-label-a" );
6254
+ $( this ).width( ( ab ? aPercent : bPercent ) + "%" );
6255
+ });
6256
+ }
6257
+
6258
+ if ( !preventInputUpdate ) {
6259
+ var valueChanged = false;
6260
+
6261
+ // update control"s value
6262
+ if ( cType === "input" ) {
6263
+ valueChanged = control.val() !== newval;
6264
+ control.val( newval );
6265
+ } else {
6266
+ valueChanged = control[ 0 ].selectedIndex !== newval;
6267
+ control[ 0 ].selectedIndex = newval;
6268
+ }
6269
+ if ( !isfromControl && valueChanged ) {
6270
+ control.trigger( "change" );
6271
+ }
6272
+ }
6273
+ },
6274
+
6275
+ enable: function() {
6276
+ this.element.attr( "disabled", false );
6277
+ this.slider.removeClass( "ui-disabled" ).attr( "aria-disabled", false );
6278
+ return this._setOption( "disabled", false );
6279
+ },
6280
+
6281
+ disable: function() {
6282
+ this.element.attr( "disabled", true );
6283
+ this.slider.addClass( "ui-disabled" ).attr( "aria-disabled", true );
6284
+ return this._setOption( "disabled", true );
6285
+ }
6286
+
6287
+ });
6288
+
6289
+ //auto self-init widgets
6290
+ $( document ).bind( "pagecreate create", function( e ){
6291
+ $.mobile.slider.prototype.enhanceWithin( e.target, true );
6292
+ });
6293
+
6294
+ })( jQuery );
6295
+
6296
+ (function( $, undefined ) {
6297
+
6298
+ $.widget( "mobile.selectmenu", $.mobile.widget, {
6299
+ options: {
6300
+ theme: null,
6301
+ disabled: false,
6302
+ icon: "arrow-d",
6303
+ iconpos: "right",
6304
+ inline: false,
6305
+ corners: true,
6306
+ shadow: true,
6307
+ iconshadow: true,
6308
+ overlayTheme: "a",
6309
+ hidePlaceholderMenuItems: true,
6310
+ closeText: "Close",
6311
+ nativeMenu: true,
6312
+ // This option defaults to true on iOS devices.
6313
+ preventFocusZoom: /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1,
6314
+ initSelector: "select:not(:jqmData(role='slider'))",
6315
+ mini: false
6316
+ },
6317
+
6318
+ _button: function(){
6319
+ return $( "<div/>" );
6320
+ },
6321
+
6322
+ _setDisabled: function( value ) {
6323
+ this.element.attr( "disabled", value );
6324
+ this.button.attr( "aria-disabled", value );
6325
+ return this._setOption( "disabled", value );
6326
+ },
6327
+
6328
+ _focusButton : function() {
6329
+ var self = this;
6330
+
6331
+ setTimeout( function() {
6332
+ self.button.focus();
6333
+ }, 40);
6334
+ },
6335
+
6336
+ _selectOptions: function() {
6337
+ return this.select.find( "option" );
6338
+ },
6339
+
6340
+ // setup items that are generally necessary for select menu extension
6341
+ _preExtension: function(){
6342
+ var classes = "";
6343
+ // TODO: Post 1.1--once we have time to test thoroughly--any classes manually applied to the original element should be carried over to the enhanced element, with an `-enhanced` suffix. See https://github.com/jquery/jquery-mobile/issues/3577
6344
+ /* if( $el[0].className.length ) {
6345
+ classes = $el[0].className;
6346
+ } */
6347
+ if( !!~this.element[0].className.indexOf( "ui-btn-left" ) ) {
6348
+ classes = " ui-btn-left";
6349
+ }
6350
+
6351
+ if( !!~this.element[0].className.indexOf( "ui-btn-right" ) ) {
6352
+ classes = " ui-btn-right";
6353
+ }
6354
+
6355
+ this.select = this.element.wrap( "<div class='ui-select" + classes + "'>" );
6356
+ this.selectID = this.select.attr( "id" );
6357
+ this.label = $( "label[for='"+ this.selectID +"']" ).addClass( "ui-select" );
6358
+ this.isMultiple = this.select[ 0 ].multiple;
6359
+ if ( !this.options.theme ) {
6360
+ this.options.theme = $.mobile.getInheritedTheme( this.select, "c" );
6361
+ }
6362
+ },
6363
+
6364
+ _create: function() {
6365
+ this._preExtension();
6366
+
6367
+ // Allows for extension of the native select for custom selects and other plugins
6368
+ // see select.custom for example extension
6369
+ // TODO explore plugin registration
6370
+ this._trigger( "beforeCreate" );
6371
+
6372
+ this.button = this._button();
6373
+
6374
+ var self = this,
6375
+
6376
+ options = this.options,
6377
+
6378
+ // IE throws an exception at options.item() function when
6379
+ // there is no selected item
6380
+ // select first in this case
6381
+ selectedIndex = this.select[ 0 ].selectedIndex == -1 ? 0 : this.select[ 0 ].selectedIndex,
6382
+
6383
+ // TODO values buttonId and menuId are undefined here
6384
+ button = this.button
6385
+ .text( $( this.select[ 0 ].options.item( selectedIndex ) ).text() )
6386
+ .insertBefore( this.select )
6387
+ .buttonMarkup( {
6388
+ theme: options.theme,
6389
+ icon: options.icon,
6390
+ iconpos: options.iconpos,
6391
+ inline: options.inline,
6392
+ corners: options.corners,
6393
+ shadow: options.shadow,
6394
+ iconshadow: options.iconshadow,
6395
+ mini: options.mini
6396
+ });
6397
+
6398
+ // Opera does not properly support opacity on select elements
6399
+ // In Mini, it hides the element, but not its text
6400
+ // On the desktop,it seems to do the opposite
6401
+ // for these reasons, using the nativeMenu option results in a full native select in Opera
6402
+ if ( options.nativeMenu && window.opera && window.opera.version ) {
6403
+ this.select.addClass( "ui-select-nativeonly" );
6404
+ }
6405
+
6406
+ // Add counter for multi selects
6407
+ if ( this.isMultiple ) {
6408
+ this.buttonCount = $( "<span>" )
6409
+ .addClass( "ui-li-count ui-btn-up-c ui-btn-corner-all" )
6410
+ .hide()
6411
+ .appendTo( button.addClass('ui-li-has-count') );
6412
+ }
6413
+
6414
+ // Disable if specified
6415
+ if ( options.disabled || this.element.attr('disabled')) {
6416
+ this.disable();
6417
+ }
6418
+
6419
+ // Events on native select
6420
+ this.select.change( function() {
6421
+ self.refresh();
6422
+ });
6423
+
6424
+ this.build();
6425
+ },
6426
+
6427
+ build: function() {
6428
+ var self = this;
6429
+
6430
+ this.select
6431
+ .appendTo( self.button )
6432
+ .bind( "vmousedown", function() {
6433
+ // Add active class to button
6434
+ self.button.addClass( $.mobile.activeBtnClass );
6435
+ })
6436
+ .bind( "focus", function() {
6437
+ self.button.addClass( $.mobile.focusClass );
6438
+ })
6439
+ .bind( "blur", function() {
6440
+ self.button.removeClass( $.mobile.focusClass );
6441
+ })
6442
+ .bind( "focus vmouseover", function() {
6443
+ self.button.trigger( "vmouseover" );
6444
+ })
6445
+ .bind( "vmousemove", function() {
6446
+ // Remove active class on scroll/touchmove
6447
+ self.button.removeClass( $.mobile.activeBtnClass );
6448
+ })
6449
+ .bind( "change blur vmouseout", function() {
6450
+ self.button.trigger( "vmouseout" )
6451
+ .removeClass( $.mobile.activeBtnClass );
6452
+ })
6453
+ .bind( "change blur", function() {
6454
+ self.button.removeClass( "ui-btn-down-" + self.options.theme );
6455
+ });
6456
+
6457
+ // In many situations, iOS will zoom into the select upon tap, this prevents that from happening
6458
+ self.button.bind( "vmousedown", function() {
6459
+ if( self.options.preventFocusZoom ){
6460
+ $.mobile.zoom.disable( true );
6461
+ }
6462
+ })
6463
+ .bind( "mouseup", function() {
6464
+ if( self.options.preventFocusZoom ){
6465
+ $.mobile.zoom.enable( true );
6466
+ }
6467
+ });
6468
+ },
6469
+
6470
+ selected: function() {
6471
+ return this._selectOptions().filter( ":selected" );
6472
+ },
6473
+
6474
+ selectedIndices: function() {
6475
+ var self = this;
6476
+
6477
+ return this.selected().map( function() {
6478
+ return self._selectOptions().index( this );
6479
+ }).get();
6480
+ },
6481
+
6482
+ setButtonText: function() {
6483
+ var self = this, selected = this.selected();
6484
+
6485
+ this.button.find( ".ui-btn-text" ).text( function() {
6486
+ if ( !self.isMultiple ) {
6487
+ return selected.text();
6488
+ }
6489
+
6490
+ return selected.length ? selected.map( function() {
6491
+ return $( this ).text();
6492
+ }).get().join( ", " ) : self.placeholder;
6493
+ });
6494
+ },
6495
+
6496
+ setButtonCount: function() {
6497
+ var selected = this.selected();
6498
+
6499
+ // multiple count inside button
6500
+ if ( this.isMultiple ) {
6501
+ this.buttonCount[ selected.length > 1 ? "show" : "hide" ]().text( selected.length );
6502
+ }
6503
+ },
6504
+
6505
+ refresh: function() {
6506
+ this.setButtonText();
6507
+ this.setButtonCount();
6508
+ },
6509
+
6510
+ // open and close preserved in native selects
6511
+ // to simplify users code when looping over selects
6512
+ open: $.noop,
6513
+ close: $.noop,
6514
+
6515
+ disable: function() {
6516
+ this._setDisabled( true );
6517
+ this.button.addClass( "ui-disabled" );
6518
+ },
6519
+
6520
+ enable: function() {
6521
+ this._setDisabled( false );
6522
+ this.button.removeClass( "ui-disabled" );
6523
+ }
6524
+ });
6525
+
6526
+ //auto self-init widgets
6527
+ $( document ).bind( "pagecreate create", function( e ){
6528
+ $.mobile.selectmenu.prototype.enhanceWithin( e.target, true );
6529
+ });
6530
+ })( jQuery );
6531
+
6532
+ /*
6533
+ * custom "selectmenu" plugin
6534
+ */
6535
+
6536
+ (function( $, undefined ) {
6537
+ var extendSelect = function( widget ){
6538
+
6539
+ var select = widget.select,
6540
+ selectID = widget.selectID,
6541
+ label = widget.label,
6542
+ thisPage = widget.select.closest( ".ui-page" ),
6543
+ screen = $( "<div>", {"class": "ui-selectmenu-screen ui-screen-hidden"} ).appendTo( thisPage ),
6544
+ selectOptions = widget._selectOptions(),
6545
+ isMultiple = widget.isMultiple = widget.select[ 0 ].multiple,
6546
+ buttonId = selectID + "-button",
6547
+ menuId = selectID + "-menu",
6548
+ menuPage = $( "<div data-" + $.mobile.ns + "role='dialog' data-" +$.mobile.ns + "theme='"+ widget.options.theme +"' data-" +$.mobile.ns + "overlay-theme='"+ widget.options.overlayTheme +"'>" +
6549
+ "<div data-" + $.mobile.ns + "role='header'>" +
6550
+ "<div class='ui-title'>" + label.getEncodedText() + "</div>"+
6551
+ "</div>"+
6552
+ "<div data-" + $.mobile.ns + "role='content'></div>"+
6553
+ "</div>" ),
6554
+
6555
+ listbox = $("<div>", { "class": "ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all ui-body-" + widget.options.overlayTheme + " " + $.mobile.defaultDialogTransition } ).insertAfter(screen),
6556
+
6557
+ list = $( "<ul>", {
6558
+ "class": "ui-selectmenu-list",
6559
+ "id": menuId,
6560
+ "role": "listbox",
6561
+ "aria-labelledby": buttonId
6562
+ }).attr( "data-" + $.mobile.ns + "theme", widget.options.theme ).appendTo( listbox ),
6563
+
6564
+ header = $( "<div>", {
6565
+ "class": "ui-header ui-bar-" + widget.options.theme
6566
+ }).prependTo( listbox ),
6567
+
6568
+ headerTitle = $( "<h1>", {
6569
+ "class": "ui-title"
6570
+ }).appendTo( header ),
6571
+
6572
+ menuPageContent,
6573
+ menuPageClose,
6574
+ headerClose;
6575
+
6576
+ if( widget.isMultiple ) {
6577
+ headerClose = $( "<a>", {
6578
+ "text": widget.options.closeText,
6579
+ "href": "#",
6580
+ "class": "ui-btn-left"
6581
+ }).attr( "data-" + $.mobile.ns + "iconpos", "notext" ).attr( "data-" + $.mobile.ns + "icon", "delete" ).appendTo( header ).buttonMarkup();
6582
+ }
6583
+
6584
+ $.extend( widget, {
6585
+ select: widget.select,
6586
+ selectID: selectID,
6587
+ buttonId: buttonId,
6588
+ menuId: menuId,
6589
+ thisPage: thisPage,
6590
+ menuPage: menuPage,
6591
+ label: label,
6592
+ screen: screen,
6593
+ selectOptions: selectOptions,
6594
+ isMultiple: isMultiple,
6595
+ theme: widget.options.theme,
6596
+ listbox: listbox,
6597
+ list: list,
6598
+ header: header,
6599
+ headerTitle: headerTitle,
6600
+ headerClose: headerClose,
6601
+ menuPageContent: menuPageContent,
6602
+ menuPageClose: menuPageClose,
6603
+ placeholder: "",
6604
+
6605
+ build: function() {
6606
+ var self = this;
6607
+
6608
+ // Create list from select, update state
6609
+ self.refresh();
6610
+
6611
+ self.select.attr( "tabindex", "-1" ).focus(function() {
6612
+ $( this ).blur();
6613
+ self.button.focus();
6614
+ });
6615
+
6616
+ // Button events
6617
+ self.button.bind( "vclick keydown" , function( event ) {
6618
+ if ( event.type == "vclick" ||
6619
+ event.keyCode && ( event.keyCode === $.mobile.keyCode.ENTER ||
6620
+ event.keyCode === $.mobile.keyCode.SPACE ) ) {
6621
+
6622
+ self.open();
6623
+ event.preventDefault();
6624
+ }
6625
+ });
6626
+
6627
+ // Events for list items
6628
+ self.list.attr( "role", "listbox" )
6629
+ .bind( "focusin", function( e ){
6630
+ $( e.target )
6631
+ .attr( "tabindex", "0" )
6632
+ .trigger( "vmouseover" );
6633
+
6634
+ })
6635
+ .bind( "focusout", function( e ){
6636
+ $( e.target )
6637
+ .attr( "tabindex", "-1" )
6638
+ .trigger( "vmouseout" );
6639
+ })
6640
+ .delegate( "li:not(.ui-disabled, .ui-li-divider)", "click", function( event ) {
6641
+
6642
+ // index of option tag to be selected
6643
+ var oldIndex = self.select[ 0 ].selectedIndex,
6644
+ newIndex = self.list.find( "li:not(.ui-li-divider)" ).index( this ),
6645
+ option = self._selectOptions().eq( newIndex )[ 0 ];
6646
+
6647
+ // toggle selected status on the tag for multi selects
6648
+ option.selected = self.isMultiple ? !option.selected : true;
6649
+
6650
+ // toggle checkbox class for multiple selects
6651
+ if ( self.isMultiple ) {
6652
+ $( this ).find( ".ui-icon" )
6653
+ .toggleClass( "ui-icon-checkbox-on", option.selected )
6654
+ .toggleClass( "ui-icon-checkbox-off", !option.selected );
6655
+ }
6656
+
6657
+ // trigger change if value changed
6658
+ if ( self.isMultiple || oldIndex !== newIndex ) {
6659
+ self.select.trigger( "change" );
6660
+ }
6661
+
6662
+ //hide custom select for single selects only
6663
+ if ( !self.isMultiple ) {
6664
+ self.close();
6665
+ }
6666
+
6667
+ event.preventDefault();
6668
+ })
6669
+ .keydown(function( event ) { //keyboard events for menu items
6670
+ var target = $( event.target ),
6671
+ li = target.closest( "li" ),
6672
+ prev, next;
6673
+
6674
+ // switch logic based on which key was pressed
6675
+ switch ( event.keyCode ) {
6676
+ // up or left arrow keys
6677
+ case 38:
6678
+ prev = li.prev().not( ".ui-selectmenu-placeholder" );
6679
+
6680
+ if( prev.is( ".ui-li-divider" ) ) {
6681
+ prev = prev.prev();
6682
+ }
6683
+
6684
+ // if there's a previous option, focus it
6685
+ if ( prev.length ) {
6686
+ target
6687
+ .blur()
6688
+ .attr( "tabindex", "-1" );
6689
+
6690
+ prev.addClass( "ui-btn-down-" + widget.options.theme ).find( "a" ).first().focus();
6691
+ }
6692
+
6693
+ return false;
6694
+ break;
6695
+
6696
+ // down or right arrow keys
6697
+ case 40:
6698
+ next = li.next();
6699
+
6700
+ if( next.is( ".ui-li-divider" ) ) {
6701
+ next = next.next();
6702
+ }
6703
+
6704
+ // if there's a next option, focus it
6705
+ if ( next.length ) {
6706
+ target
6707
+ .blur()
6708
+ .attr( "tabindex", "-1" );
6709
+
6710
+ next.addClass( "ui-btn-down-" + widget.options.theme ).find( "a" ).first().focus();
6711
+ }
6712
+
6713
+ return false;
6714
+ break;
6715
+
6716
+ // If enter or space is pressed, trigger click
6717
+ case 13:
6718
+ case 32:
6719
+ target.trigger( "click" );
6720
+
6721
+ return false;
6722
+ break;
6723
+ }
6724
+ });
6725
+
6726
+ // button refocus ensures proper height calculation
6727
+ // by removing the inline style and ensuring page inclusion
6728
+ self.menuPage.bind( "pagehide", function() {
6729
+ self.list.appendTo( self.listbox );
6730
+ self._focusButton();
6731
+
6732
+ // TODO centralize page removal binding / handling in the page plugin.
6733
+ // Suggestion from @jblas to do refcounting
6734
+ //
6735
+ // TODO extremely confusing dependency on the open method where the pagehide.remove
6736
+ // bindings are stripped to prevent the parent page from disappearing. The way
6737
+ // we're keeping pages in the DOM right now sucks
6738
+ //
6739
+ // rebind the page remove that was unbound in the open function
6740
+ // to allow for the parent page removal from actions other than the use
6741
+ // of a dialog sized custom select
6742
+ //
6743
+ // doing this here provides for the back button on the custom select dialog
6744
+ $.mobile._bindPageRemove.call( self.thisPage );
6745
+ });
6746
+
6747
+ // Events on "screen" overlay
6748
+ self.screen.bind( "vclick", function( event ) {
6749
+ self.close();
6750
+ });
6751
+
6752
+ // Close button on small overlays
6753
+ if( self.isMultiple ){
6754
+ self.headerClose.click( function() {
6755
+ if ( self.menuType == "overlay" ) {
6756
+ self.close();
6757
+ return false;
6758
+ }
6759
+ });
6760
+ }
6761
+
6762
+ // track this dependency so that when the parent page
6763
+ // is removed on pagehide it will also remove the menupage
6764
+ self.thisPage.addDependents( this.menuPage );
6765
+ },
6766
+
6767
+ _isRebuildRequired: function() {
6768
+ var list = this.list.find( "li" ),
6769
+ options = this._selectOptions();
6770
+
6771
+ // TODO exceedingly naive method to determine difference
6772
+ // ignores value changes etc in favor of a forcedRebuild
6773
+ // from the user in the refresh method
6774
+ return options.text() !== list.text();
6775
+ },
6776
+
6777
+ refresh: function( forceRebuild , foo ){
6778
+ var self = this,
6779
+ select = this.element,
6780
+ isMultiple = this.isMultiple,
6781
+ options = this._selectOptions(),
6782
+ selected = this.selected(),
6783
+ // return an array of all selected index's
6784
+ indicies = this.selectedIndices();
6785
+
6786
+ if ( forceRebuild || this._isRebuildRequired() ) {
6787
+ self._buildList();
6788
+ }
6789
+
6790
+ self.setButtonText();
6791
+ self.setButtonCount();
6792
+
6793
+ self.list.find( "li:not(.ui-li-divider)" )
6794
+ .removeClass( $.mobile.activeBtnClass )
6795
+ .attr( "aria-selected", false )
6796
+ .each(function( i ) {
6797
+
6798
+ if ( $.inArray( i, indicies ) > -1 ) {
6799
+ var item = $( this );
6800
+
6801
+ // Aria selected attr
6802
+ item.attr( "aria-selected", true );
6803
+
6804
+ // Multiple selects: add the "on" checkbox state to the icon
6805
+ if ( self.isMultiple ) {
6806
+ item.find( ".ui-icon" ).removeClass( "ui-icon-checkbox-off" ).addClass( "ui-icon-checkbox-on" );
6807
+ } else {
6808
+ if( item.is( ".ui-selectmenu-placeholder" ) ) {
6809
+ item.next().addClass( $.mobile.activeBtnClass );
6810
+ } else {
6811
+ item.addClass( $.mobile.activeBtnClass );
6812
+ }
6813
+ }
6814
+ }
6815
+ });
6816
+ },
6817
+
6818
+ close: function() {
6819
+ if ( this.options.disabled || !this.isOpen ) {
6820
+ return;
6821
+ }
6822
+
6823
+ var self = this;
6824
+
6825
+ if ( self.menuType == "page" ) {
6826
+ // doesn't solve the possible issue with calling change page
6827
+ // where the objects don't define data urls which prevents dialog key
6828
+ // stripping - changePage has incoming refactor
6829
+ window.history.back();
6830
+ } else {
6831
+ self.screen.addClass( "ui-screen-hidden" );
6832
+ self.listbox.addClass( "ui-selectmenu-hidden" ).removeAttr( "style" ).removeClass( "in" );
6833
+ self.list.appendTo( self.listbox );
6834
+ self._focusButton();
6835
+ }
6836
+
6837
+ // allow the dialog to be closed again
6838
+ self.isOpen = false;
6839
+ },
6840
+
6841
+ open: function() {
6842
+ if ( this.options.disabled ) {
6843
+ return;
6844
+ }
6845
+
6846
+ var self = this,
6847
+ $window = $( window ),
6848
+ selfListParent = self.list.parent(),
6849
+ menuHeight = selfListParent.outerHeight(),
6850
+ menuWidth = selfListParent.outerWidth(),
6851
+ activePage = $( ".ui-page-active" ),
6852
+ tScrollElem = activePage,
6853
+ scrollTop = $window.scrollTop(),
6854
+ btnOffset = self.button.offset().top,
6855
+ screenHeight = $window.height(),
6856
+ screenWidth = $window.width();
6857
+
6858
+ //add active class to button
6859
+ self.button.addClass( $.mobile.activeBtnClass );
6860
+
6861
+ //remove after delay
6862
+ setTimeout( function() {
6863
+ self.button.removeClass( $.mobile.activeBtnClass );
6864
+ }, 300);
6865
+
6866
+ function focusMenuItem() {
6867
+ self.list.find( "." + $.mobile.activeBtnClass + " a" ).focus();
6868
+ }
6869
+
6870
+ if ( menuHeight > screenHeight - 80 || !$.support.scrollTop ) {
6871
+
6872
+ self.menuPage.appendTo( $.mobile.pageContainer ).page();
6873
+ self.menuPageContent = menuPage.find( ".ui-content" );
6874
+ self.menuPageClose = menuPage.find( ".ui-header a" );
6875
+
6876
+ // prevent the parent page from being removed from the DOM,
6877
+ // otherwise the results of selecting a list item in the dialog
6878
+ // fall into a black hole
6879
+ self.thisPage.unbind( "pagehide.remove" );
6880
+
6881
+ //for WebOS/Opera Mini (set lastscroll using button offset)
6882
+ if ( scrollTop == 0 && btnOffset > screenHeight ) {
6883
+ self.thisPage.one( "pagehide", function() {
6884
+ $( this ).jqmData( "lastScroll", btnOffset );
6885
+ });
6886
+ }
6887
+
6888
+ self.menuPage.one( "pageshow", function() {
6889
+ focusMenuItem();
6890
+ self.isOpen = true;
6891
+ });
6892
+
6893
+ self.menuType = "page";
6894
+ self.menuPageContent.append( self.list );
6895
+ self.menuPage.find("div .ui-title").text(self.label.text());
6896
+ $.mobile.changePage( self.menuPage, {
6897
+ transition: $.mobile.defaultDialogTransition
6898
+ });
6899
+ } else {
6900
+ self.menuType = "overlay";
6901
+
6902
+ self.screen.height( $(document).height() )
6903
+ .removeClass( "ui-screen-hidden" );
6904
+
6905
+ // Try and center the overlay over the button
6906
+ var roomtop = btnOffset - scrollTop,
6907
+ roombot = scrollTop + screenHeight - btnOffset,
6908
+ halfheight = menuHeight / 2,
6909
+ maxwidth = parseFloat( self.list.parent().css( "max-width" ) ),
6910
+ newtop, newleft;
6911
+
6912
+ if ( roomtop > menuHeight / 2 && roombot > menuHeight / 2 ) {
6913
+ newtop = btnOffset + ( self.button.outerHeight() / 2 ) - halfheight;
6914
+ } else {
6915
+ // 30px tolerance off the edges
6916
+ newtop = roomtop > roombot ? scrollTop + screenHeight - menuHeight - 30 : scrollTop + 30;
6917
+ }
6918
+
6919
+ // If the menuwidth is smaller than the screen center is
6920
+ if ( menuWidth < maxwidth ) {
6921
+ newleft = ( screenWidth - menuWidth ) / 2;
6922
+ } else {
6923
+
6924
+ //otherwise insure a >= 30px offset from the left
6925
+ newleft = self.button.offset().left + self.button.outerWidth() / 2 - menuWidth / 2;
6926
+
6927
+ // 30px tolerance off the edges
6928
+ if ( newleft < 30 ) {
6929
+ newleft = 30;
6930
+ } else if ( (newleft + menuWidth) > screenWidth ) {
6931
+ newleft = screenWidth - menuWidth - 30;
6932
+ }
6933
+ }
6934
+
6935
+ self.listbox.append( self.list )
6936
+ .removeClass( "ui-selectmenu-hidden" )
6937
+ .css({
6938
+ top: newtop,
6939
+ left: newleft
6940
+ })
6941
+ .addClass( "in" );
6942
+
6943
+ focusMenuItem();
6944
+
6945
+ // duplicate with value set in page show for dialog sized selects
6946
+ self.isOpen = true;
6947
+ }
6948
+ },
6949
+
6950
+ _buildList: function() {
6951
+ var self = this,
6952
+ o = this.options,
6953
+ placeholder = this.placeholder,
6954
+ needPlaceholder = true,
6955
+ optgroups = [],
6956
+ lis = [],
6957
+ dataIcon = self.isMultiple ? "checkbox-off" : "false";
6958
+
6959
+ self.list.empty().filter( ".ui-listview" ).listview( "destroy" );
6960
+
6961
+ var $options = self.select.find("option"),
6962
+ numOptions = $options.length,
6963
+ select = this.select[ 0 ],
6964
+ dataPrefix = 'data-' + $.mobile.ns,
6965
+ dataIndexAttr = dataPrefix + 'option-index',
6966
+ dataIconAttr = dataPrefix + 'icon',
6967
+ dataRoleAttr = dataPrefix + 'role',
6968
+ fragment = document.createDocumentFragment(),
6969
+ optGroup;
6970
+
6971
+ for (var i = 0; i < numOptions;i++){
6972
+ var option = $options[i],
6973
+ $option = $(option),
6974
+ parent = option.parentNode,
6975
+ text = $option.text(),
6976
+ anchor = document.createElement('a'),
6977
+ classes = [];
6978
+
6979
+ anchor.setAttribute('href','#');
6980
+ anchor.appendChild(document.createTextNode(text));
6981
+
6982
+ // Are we inside an optgroup?
6983
+ if (parent !== select && parent.nodeName.toLowerCase() === "optgroup"){
6984
+ var optLabel = parent.getAttribute('label');
6985
+ if ( optLabel != optGroup) {
6986
+ var divider = document.createElement('li');
6987
+ divider.setAttribute(dataRoleAttr,'list-divider');
6988
+ divider.setAttribute('role','option');
6989
+ divider.setAttribute('tabindex','-1');
6990
+ divider.appendChild(document.createTextNode(optLabel));
6991
+ fragment.appendChild(divider);
6992
+ optGroup = optLabel;
6993
+ }
6994
+ }
6995
+
6996
+ if (needPlaceholder && (!option.getAttribute( "value" ) || text.length == 0 || $option.jqmData( "placeholder" ))) {
6997
+ needPlaceholder = false;
6998
+ if ( o.hidePlaceholderMenuItems ) {
6999
+ classes.push( "ui-selectmenu-placeholder" );
7000
+ }
7001
+ if (!placeholder) {
7002
+ placeholder = self.placeholder = text;
7003
+ }
7004
+ }
7005
+
7006
+ var item = document.createElement('li');
7007
+ if ( option.disabled ) {
7008
+ classes.push( "ui-disabled" );
7009
+ item.setAttribute('aria-disabled',true);
7010
+ }
7011
+ item.setAttribute(dataIndexAttr,i);
7012
+ item.setAttribute(dataIconAttr,dataIcon);
7013
+ item.className = classes.join(" ");
7014
+ item.setAttribute('role','option');
7015
+ anchor.setAttribute('tabindex','-1');
7016
+ item.appendChild(anchor);
7017
+ fragment.appendChild(item);
7018
+ }
7019
+
7020
+ self.list[0].appendChild(fragment);
7021
+
7022
+ // Hide header if it's not a multiselect and there's no placeholder
7023
+ if ( !this.isMultiple && !placeholder.length ) {
7024
+ this.header.hide();
7025
+ } else {
7026
+ this.headerTitle.text( this.placeholder );
7027
+ }
7028
+
7029
+ // Now populated, create listview
7030
+ self.list.listview();
7031
+ },
7032
+
7033
+ _button: function(){
7034
+ return $( "<a>", {
7035
+ "href": "#",
7036
+ "role": "button",
7037
+ // TODO value is undefined at creation
7038
+ "id": this.buttonId,
7039
+ "aria-haspopup": "true",
7040
+
7041
+ // TODO value is undefined at creation
7042
+ "aria-owns": this.menuId
7043
+ });
7044
+ }
7045
+ });
7046
+ };
7047
+
7048
+ // issue #3894 - core doesn't triggered events on disabled delegates
7049
+ $( document ).bind( "selectmenubeforecreate", function( event ){
7050
+ var selectmenuWidget = $( event.target ).data( "selectmenu" );
7051
+
7052
+ if( !selectmenuWidget.options.nativeMenu ){
7053
+ extendSelect( selectmenuWidget );
7054
+ }
7055
+ });
7056
+ })( jQuery );
7057
+
7058
+ (function( $, undefined ) {
7059
+
7060
+
7061
+ $.widget( "mobile.fixedtoolbar", $.mobile.widget, {
7062
+ options: {
7063
+ visibleOnPageShow: true,
7064
+ disablePageZoom: true,
7065
+ transition: "slide", //can be none, fade, slide (slide maps to slideup or slidedown)
7066
+ fullscreen: false,
7067
+ tapToggle: true,
7068
+ tapToggleBlacklist: "a, input, select, textarea, .ui-header-fixed, .ui-footer-fixed",
7069
+ hideDuringFocus: "input, textarea, select",
7070
+ updatePagePadding: true,
7071
+ trackPersistentToolbars: true,
7072
+
7073
+ // Browser detection! Weeee, here we go...
7074
+ // Unfortunately, position:fixed is costly, not to mention probably impossible, to feature-detect accurately.
7075
+ // Some tests exist, but they currently return false results in critical devices and browsers, which could lead to a broken experience.
7076
+ // Testing fixed positioning is also pretty obtrusive to page load, requiring injected elements and scrolling the window
7077
+ // The following function serves to rule out some popular browsers with known fixed-positioning issues
7078
+ // This is a plugin option like any other, so feel free to improve or overwrite it
7079
+ supportBlacklist: function(){
7080
+ var w = window,
7081
+ ua = navigator.userAgent,
7082
+ platform = navigator.platform,
7083
+ // Rendering engine is Webkit, and capture major version
7084
+ wkmatch = ua.match( /AppleWebKit\/([0-9]+)/ ),
7085
+ wkversion = !!wkmatch && wkmatch[ 1 ],
7086
+ ffmatch = ua.match( /Fennec\/([0-9]+)/ ),
7087
+ ffversion = !!ffmatch && ffmatch[ 1 ],
7088
+ operammobilematch = ua.match( /Opera Mobi\/([0-9]+)/ ),
7089
+ omversion = !!operammobilematch && operammobilematch[ 1 ];
7090
+
7091
+ if(
7092
+ // iOS 4.3 and older : Platform is iPhone/Pad/Touch and Webkit version is less than 534 (ios5)
7093
+ ( ( platform.indexOf( "iPhone" ) > -1 || platform.indexOf( "iPad" ) > -1 || platform.indexOf( "iPod" ) > -1 ) && wkversion && wkversion < 534 )
7094
+ ||
7095
+ // Opera Mini
7096
+ ( w.operamini && ({}).toString.call( w.operamini ) === "[object OperaMini]" )
7097
+ ||
7098
+ ( operammobilematch && omversion < 7458 )
7099
+ ||
7100
+ //Android lte 2.1: Platform is Android and Webkit version is less than 533 (Android 2.2)
7101
+ ( ua.indexOf( "Android" ) > -1 && wkversion && wkversion < 533 )
7102
+ ||
7103
+ // Firefox Mobile before 6.0 -
7104
+ ( ffversion && ffversion < 6 )
7105
+ ||
7106
+ // WebOS less than 3
7107
+ ( "palmGetResource" in window && wkversion && wkversion < 534 )
7108
+ ||
7109
+ // MeeGo
7110
+ ( ua.indexOf( "MeeGo" ) > -1 && ua.indexOf( "NokiaBrowser/8.5.0" ) > -1 )
7111
+ ){
7112
+ return true;
7113
+ }
7114
+
7115
+ return false;
7116
+ },
7117
+ initSelector: ":jqmData(position='fixed')"
7118
+ },
7119
+
7120
+ _create: function() {
7121
+
7122
+ var self = this,
7123
+ o = self.options,
7124
+ $el = self.element,
7125
+ tbtype = $el.is( ":jqmData(role='header')" ) ? "header" : "footer",
7126
+ $page = $el.closest(".ui-page");
7127
+
7128
+ // Feature detecting support for
7129
+ if( o.supportBlacklist() ){
7130
+ self.destroy();
7131
+ return;
7132
+ }
7133
+
7134
+ $el.addClass( "ui-"+ tbtype +"-fixed" );
7135
+
7136
+ // "fullscreen" overlay positioning
7137
+ if( o.fullscreen ){
7138
+ $el.addClass( "ui-"+ tbtype +"-fullscreen" );
7139
+ $page.addClass( "ui-page-" + tbtype + "-fullscreen" );
7140
+ }
7141
+ // If not fullscreen, add class to page to set top or bottom padding
7142
+ else{
7143
+ $page.addClass( "ui-page-" + tbtype + "-fixed" );
7144
+ }
7145
+
7146
+ self._addTransitionClass();
7147
+ self._bindPageEvents();
7148
+ self._bindToggleHandlers();
7149
+ },
7150
+
7151
+ _addTransitionClass: function(){
7152
+ var tclass = this.options.transition;
7153
+
7154
+ if( tclass && tclass !== "none" ){
7155
+ // use appropriate slide for header or footer
7156
+ if( tclass === "slide" ){
7157
+ tclass = this.element.is( ".ui-header" ) ? "slidedown" : "slideup";
7158
+ }
7159
+
7160
+ this.element.addClass( tclass );
7161
+ }
7162
+ },
7163
+
7164
+ _bindPageEvents: function(){
7165
+ var self = this,
7166
+ o = self.options,
7167
+ $el = self.element;
7168
+
7169
+ //page event bindings
7170
+ // Fixed toolbars require page zoom to be disabled, otherwise usability issues crop up
7171
+ // This method is meant to disable zoom while a fixed-positioned toolbar page is visible
7172
+ $el.closest( ".ui-page" )
7173
+ .bind( "pagebeforeshow", function(){
7174
+ if( o.disablePageZoom ){
7175
+ $.mobile.zoom.disable( true );
7176
+ }
7177
+ if( !o.visibleOnPageShow ){
7178
+ self.hide( true );
7179
+ }
7180
+ } )
7181
+ .bind( "webkitAnimationStart animationstart updatelayout", function(){
7182
+ if( o.updatePagePadding ){
7183
+ self.updatePagePadding();
7184
+ }
7185
+ })
7186
+ .bind( "pageshow", function(){
7187
+ self.updatePagePadding();
7188
+ if( o.updatePagePadding ){
7189
+ $( window ).bind( "throttledresize." + self.widgetName, function(){
7190
+ self.updatePagePadding();
7191
+ });
7192
+ }
7193
+ })
7194
+ .bind( "pagebeforehide", function( e, ui ){
7195
+ if( o.disablePageZoom ){
7196
+ $.mobile.zoom.enable( true );
7197
+ }
7198
+ if( o.updatePagePadding ){
7199
+ $( window ).unbind( "throttledresize." + self.widgetName );
7200
+ }
7201
+
7202
+ if( o.trackPersistentToolbars ){
7203
+ var thisFooter = $( ".ui-footer-fixed:jqmData(id)", this ),
7204
+ thisHeader = $( ".ui-header-fixed:jqmData(id)", this ),
7205
+ nextFooter = thisFooter.length && ui.nextPage && $( ".ui-footer-fixed:jqmData(id='" + thisFooter.jqmData( "id" ) + "')", ui.nextPage ),
7206
+ nextHeader = thisHeader.length && ui.nextPage && $( ".ui-header-fixed:jqmData(id='" + thisHeader.jqmData( "id" ) + "')", ui.nextPage );
7207
+
7208
+ nextFooter = nextFooter || $();
7209
+
7210
+ if( nextFooter.length || nextHeader.length ){
7211
+
7212
+ nextFooter.add( nextHeader ).appendTo( $.mobile.pageContainer );
7213
+
7214
+ ui.nextPage.one( "pageshow", function(){
7215
+ nextFooter.add( nextHeader ).appendTo( this );
7216
+ });
7217
+ }
7218
+ }
7219
+ });
7220
+ },
7221
+
7222
+ _visible: true,
7223
+
7224
+ // This will set the content element's top or bottom padding equal to the toolbar's height
7225
+ updatePagePadding: function() {
7226
+ var $el = this.element,
7227
+ header = $el.is( ".ui-header" );
7228
+
7229
+ // This behavior only applies to "fixed", not "fullscreen"
7230
+ if( this.options.fullscreen ){ return; }
7231
+
7232
+ $el.closest( ".ui-page" ).css( "padding-" + ( header ? "top" : "bottom" ), $el.outerHeight() );
7233
+ },
7234
+
7235
+ _useTransition: function( notransition ){
7236
+ var $win = $( window ),
7237
+ $el = this.element,
7238
+ scroll = $win.scrollTop(),
7239
+ elHeight = $el.height(),
7240
+ pHeight = $el.closest( ".ui-page" ).height(),
7241
+ viewportHeight = $.mobile.getScreenHeight(),
7242
+ tbtype = $el.is( ":jqmData(role='header')" ) ? "header" : "footer";
7243
+
7244
+ return !notransition &&
7245
+ ( this.options.transition && this.options.transition !== "none" &&
7246
+ (
7247
+ ( tbtype === "header" && !this.options.fullscreen && scroll > elHeight ) ||
7248
+ ( tbtype === "footer" && !this.options.fullscreen && scroll + viewportHeight < pHeight - elHeight )
7249
+ ) || this.options.fullscreen
7250
+ );
7251
+ },
7252
+
7253
+ show: function( notransition ){
7254
+ var hideClass = "ui-fixed-hidden",
7255
+ $el = this.element;
7256
+
7257
+ if( this._useTransition( notransition ) ){
7258
+ $el
7259
+ .removeClass( "out " + hideClass )
7260
+ .addClass( "in" );
7261
+ }
7262
+ else {
7263
+ $el.removeClass( hideClass );
7264
+ }
7265
+ this._visible = true;
7266
+ },
7267
+
7268
+ hide: function( notransition ){
7269
+ var hideClass = "ui-fixed-hidden",
7270
+ $el = this.element,
7271
+ // if it's a slide transition, our new transitions need the reverse class as well to slide outward
7272
+ outclass = "out" + ( this.options.transition === "slide" ? " reverse" : "" );
7273
+
7274
+ if( this._useTransition( notransition ) ){
7275
+ $el
7276
+ .addClass( outclass )
7277
+ .removeClass( "in" )
7278
+ .animationComplete( function(){
7279
+ $el.addClass( hideClass ).removeClass( outclass );
7280
+ });
7281
+ }
7282
+ else {
7283
+ $el.addClass( hideClass ).removeClass( outclass );
7284
+ }
7285
+ this._visible = false;
7286
+ },
7287
+
7288
+ toggle: function(){
7289
+ this[ this._visible ? "hide" : "show" ]();
7290
+ },
7291
+
7292
+ _bindToggleHandlers: function(){
7293
+ var self = this,
7294
+ o = self.options,
7295
+ $el = self.element;
7296
+
7297
+ // tap toggle
7298
+ $el.closest( ".ui-page" )
7299
+ .bind( "vclick", function( e ){
7300
+ if( o.tapToggle && !$( e.target ).closest( o.tapToggleBlacklist ).length ){
7301
+ self.toggle();
7302
+ }
7303
+ })
7304
+ .bind( "focusin focusout", function( e ){
7305
+ if( screen.width < 500 && $( e.target ).is( o.hideDuringFocus ) && !$( e.target ).closest( ".ui-header-fixed, .ui-footer-fixed" ).length ){
7306
+ self[ ( e.type === "focusin" && self._visible ) ? "hide" : "show" ]();
7307
+ }
7308
+ });
7309
+ },
7310
+
7311
+ destroy: function(){
7312
+ this.element.removeClass( "ui-header-fixed ui-footer-fixed ui-header-fullscreen ui-footer-fullscreen in out fade slidedown slideup ui-fixed-hidden" );
7313
+ this.element.closest( ".ui-page" ).removeClass( "ui-page-header-fixed ui-page-footer-fixed ui-page-header-fullscreen ui-page-footer-fullscreen" );
7314
+ }
7315
+
7316
+ });
7317
+
7318
+ //auto self-init widgets
7319
+ $( document )
7320
+ .bind( "pagecreate create", function( e ){
7321
+
7322
+ // DEPRECATED in 1.1: support for data-fullscreen=true|false on the page element.
7323
+ // This line ensures it still works, but we recommend moving the attribute to the toolbars themselves.
7324
+ if( $( e.target ).jqmData( "fullscreen" ) ){
7325
+ $( $.mobile.fixedtoolbar.prototype.options.initSelector, e.target ).not( ":jqmData(fullscreen)" ).jqmData( "fullscreen", true );
7326
+ }
7327
+
7328
+ $.mobile.fixedtoolbar.prototype.enhanceWithin( e.target );
7329
+ });
7330
+
7331
+ })( jQuery );
7332
+
7333
+ ( function( $, window ) {
7334
+
7335
+ // This fix addresses an iOS bug, so return early if the UA claims it's something else.
7336
+ if( !(/iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1 ) ){
7337
+ return;
7338
+ }
7339
+
7340
+ var zoom = $.mobile.zoom,
7341
+ evt, x, y, z, aig;
7342
+
7343
+ function checkTilt( e ){
7344
+ evt = e.originalEvent;
7345
+ aig = evt.accelerationIncludingGravity;
7346
+
7347
+ x = Math.abs( aig.x );
7348
+ y = Math.abs( aig.y );
7349
+ z = Math.abs( aig.z );
7350
+
7351
+ // If portrait orientation and in one of the danger zones
7352
+ if( !window.orientation && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){
7353
+ if( zoom.enabled ){
7354
+ zoom.disable();
7355
+ }
7356
+ }
7357
+ else if( !zoom.enabled ){
7358
+ zoom.enable();
7359
+ }
7360
+ }
7361
+
7362
+ $( window )
7363
+ .bind( "orientationchange.iosorientationfix", zoom.enable )
7364
+ .bind( "devicemotion.iosorientationfix", checkTilt );
7365
+
7366
+ }( jQuery, this ));
7367
+
7368
+ ( function( $, window, undefined ) {
7369
+ var $html = $( "html" ),
7370
+ $head = $( "head" ),
7371
+ $window = $( window );
7372
+
7373
+ // trigger mobileinit event - useful hook for configuring $.mobile settings before they're used
7374
+ $( window.document ).trigger( "mobileinit" );
7375
+
7376
+ // support conditions
7377
+ // if device support condition(s) aren't met, leave things as they are -> a basic, usable experience,
7378
+ // otherwise, proceed with the enhancements
7379
+ if ( !$.mobile.gradeA() ) {
7380
+ return;
7381
+ }
7382
+
7383
+ // override ajaxEnabled on platforms that have known conflicts with hash history updates
7384
+ // or generally work better browsing in regular http for full page refreshes (BB5, Opera Mini)
7385
+ if ( $.mobile.ajaxBlacklist ) {
7386
+ $.mobile.ajaxEnabled = false;
7387
+ }
7388
+
7389
+ // Add mobile, initial load "rendering" classes to docEl
7390
+ $html.addClass( "ui-mobile ui-mobile-rendering" );
7391
+
7392
+ // This is a fallback. If anything goes wrong (JS errors, etc), or events don't fire,
7393
+ // this ensures the rendering class is removed after 5 seconds, so content is visible and accessible
7394
+ setTimeout( hideRenderingClass, 5000 );
7395
+
7396
+ // loading div which appears during Ajax requests
7397
+ // will not appear if $.mobile.loadingMessage is false
7398
+ var loaderClass = "ui-loader",
7399
+ $loader = $( "<div class='" + loaderClass + "'><span class='ui-icon ui-icon-loading'></span><h1></h1></div>" );
7400
+
7401
+ // For non-fixed supportin browsers. Position at y center (if scrollTop supported), above the activeBtn (if defined), or just 100px from top
7402
+ function fakeFixLoader(){
7403
+ var activeBtn = $( "." + $.mobile.activeBtnClass ).first();
7404
+
7405
+ $loader
7406
+ .css({
7407
+ top: $.support.scrollTop && $window.scrollTop() + $window.height() / 2 ||
7408
+ activeBtn.length && activeBtn.offset().top || 100
7409
+ });
7410
+ }
7411
+
7412
+ // check position of loader to see if it appears to be "fixed" to center
7413
+ // if not, use abs positioning
7414
+ function checkLoaderPosition(){
7415
+ var offset = $loader.offset(),
7416
+ scrollTop = $window.scrollTop(),
7417
+ screenHeight = $.mobile.getScreenHeight();
7418
+
7419
+ if( offset.top < scrollTop || (offset.top - scrollTop) > screenHeight ) {
7420
+ $loader.addClass( "ui-loader-fakefix" );
7421
+ fakeFixLoader();
7422
+ $window
7423
+ .unbind( "scroll", checkLoaderPosition )
7424
+ .bind( "scroll", fakeFixLoader );
7425
+ }
7426
+ }
7427
+
7428
+ //remove initial build class (only present on first pageshow)
7429
+ function hideRenderingClass(){
7430
+ $html.removeClass( "ui-mobile-rendering" );
7431
+ }
7432
+
7433
+ $.extend($.mobile, {
7434
+ // turn on/off page loading message.
7435
+ showPageLoadingMsg: function( theme, msgText, textonly ) {
7436
+ $html.addClass( "ui-loading" );
7437
+
7438
+ if ( $.mobile.loadingMessage ) {
7439
+ // text visibility from argument takes priority
7440
+ var textVisible = textonly || $.mobile.loadingMessageTextVisible;
7441
+
7442
+ theme = theme || $.mobile.loadingMessageTheme,
7443
+
7444
+ $loader
7445
+ .attr( "class", loaderClass + " ui-corner-all ui-body-" + ( theme || "a" ) + " ui-loader-" + ( textVisible ? "verbose" : "default" ) + ( textonly ? " ui-loader-textonly" : "" ) )
7446
+ .find( "h1" )
7447
+ .text( msgText || $.mobile.loadingMessage )
7448
+ .end()
7449
+ .appendTo( $.mobile.pageContainer );
7450
+
7451
+ checkLoaderPosition();
7452
+ $window.bind( "scroll", checkLoaderPosition );
7453
+ }
7454
+ },
7455
+
7456
+ hidePageLoadingMsg: function() {
7457
+ $html.removeClass( "ui-loading" );
7458
+
7459
+ if( $.mobile.loadingMessage ){
7460
+ $loader.removeClass( "ui-loader-fakefix" );
7461
+ }
7462
+
7463
+ $( window ).unbind( "scroll", fakeFixLoader );
7464
+ $( window ).unbind( "scroll", checkLoaderPosition );
7465
+ },
7466
+
7467
+ // find and enhance the pages in the dom and transition to the first page.
7468
+ initializePage: function() {
7469
+ // find present pages
7470
+ var $pages = $( ":jqmData(role='page'), :jqmData(role='dialog')" );
7471
+
7472
+ // if no pages are found, create one with body's inner html
7473
+ if ( !$pages.length ) {
7474
+ $pages = $( "body" ).wrapInner( "<div data-" + $.mobile.ns + "role='page'></div>" ).children( 0 );
7475
+ }
7476
+
7477
+ // add dialogs, set data-url attrs
7478
+ $pages.each(function() {
7479
+ var $this = $(this);
7480
+
7481
+ // unless the data url is already set set it to the pathname
7482
+ if ( !$this.jqmData("url") ) {
7483
+ $this.attr( "data-" + $.mobile.ns + "url", $this.attr( "id" ) || location.pathname + location.search );
7484
+ }
7485
+ });
7486
+
7487
+ // define first page in dom case one backs out to the directory root (not always the first page visited, but defined as fallback)
7488
+ $.mobile.firstPage = $pages.first();
7489
+
7490
+ // define page container
7491
+ $.mobile.pageContainer = $pages.first().parent().addClass( "ui-mobile-viewport" );
7492
+
7493
+ // alert listeners that the pagecontainer has been determined for binding
7494
+ // to events triggered on it
7495
+ $window.trigger( "pagecontainercreate" );
7496
+
7497
+ // cue page loading message
7498
+ $.mobile.showPageLoadingMsg();
7499
+
7500
+ //remove initial build class (only present on first pageshow)
7501
+ hideRenderingClass();
7502
+
7503
+ // if hashchange listening is disabled or there's no hash deeplink, change to the first page in the DOM
7504
+ if ( !$.mobile.hashListeningEnabled || !$.mobile.path.stripHash( location.hash ) ) {
7505
+ $.mobile.changePage( $.mobile.firstPage, { transition: "none", reverse: true, changeHash: false, fromHashChange: true } );
7506
+ }
7507
+ // otherwise, trigger a hashchange to load a deeplink
7508
+ else {
7509
+ $window.trigger( "hashchange", [ true ] );
7510
+ }
7511
+ }
7512
+ });
7513
+
7514
+ // initialize events now, after mobileinit has occurred
7515
+ $.mobile._registerInternalEvents();
7516
+
7517
+ // check which scrollTop value should be used by scrolling to 1 immediately at domready
7518
+ // then check what the scroll top is. Android will report 0... others 1
7519
+ // note that this initial scroll won't hide the address bar. It's just for the check.
7520
+ $(function() {
7521
+ window.scrollTo( 0, 1 );
7522
+
7523
+ // if defaultHomeScroll hasn't been set yet, see if scrollTop is 1
7524
+ // it should be 1 in most browsers, but android treats 1 as 0 (for hiding addr bar)
7525
+ // so if it's 1, use 0 from now on
7526
+ $.mobile.defaultHomeScroll = ( !$.support.scrollTop || $(window).scrollTop() === 1 ) ? 0 : 1;
7527
+
7528
+
7529
+ // TODO: Implement a proper registration mechanism with dependency handling in order to not have exceptions like the one below
7530
+ //auto self-init widgets for those widgets that have a soft dependency on others
7531
+ if ( $.fn.controlgroup ) {
7532
+ $( document ).bind( "pagecreate create", function( e ){
7533
+ $( ":jqmData(role='controlgroup')", e.target )
7534
+ .jqmEnhanceable()
7535
+ .controlgroup({ excludeInvisible: false });
7536
+ });
7537
+ }
7538
+
7539
+ //dom-ready inits
7540
+ if( $.mobile.autoInitializePage ){
7541
+ $.mobile.initializePage();
7542
+ }
7543
+
7544
+ // window load event
7545
+ // hide iOS browser chrome on load
7546
+ $window.load( $.mobile.silentScroll );
7547
+ });
7548
+ }( jQuery, this ));
7549
+
7550
+
7551
+ }));
skin/adminhtml/default/snm-mobile/js/jquery.mobile-1.1.0.min.js ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! jQuery Mobile v1.1.0 db342b1f315c282692791aa870455901fdb46a55 jquerymobile.com | jquery.org/license */
2
+ (function(D,s,k){typeof define==="function"&&define.amd?define(["jquery"],function(a){k(a,D,s);return a.mobile}):k(D.jQuery,D,s)})(this,document,function(D,s,k){(function(a,c,b,e){function f(a){for(;a&&typeof a.originalEvent!=="undefined";)a=a.originalEvent;return a}function d(b){for(var d={},f,g;b;){f=a.data(b,t);for(g in f)if(f[g])d[g]=d.hasVirtualBinding=true;b=b.parentNode}return d}function g(){y&&(clearTimeout(y),y=0);y=setTimeout(function(){F=y=0;C.length=0;z=false;G=true},a.vmouse.resetTimerDuration)}
3
+ function h(b,d,g){var c,h;if(!(h=g&&g[b])){if(g=!g)a:{for(g=d.target;g;){if((h=a.data(g,t))&&(!b||h[b]))break a;g=g.parentNode}g=null}h=g}if(h){c=d;var g=c.type,z,j;c=a.Event(c);c.type=b;h=c.originalEvent;z=a.event.props;g.search(/^(mouse|click)/)>-1&&(z=w);if(h)for(j=z.length;j;)b=z[--j],c[b]=h[b];if(g.search(/mouse(down|up)|click/)>-1&&!c.which)c.which=1;if(g.search(/^touch/)!==-1&&(b=f(h),g=b.touches,b=b.changedTouches,g=g&&g.length?g[0]:b&&b.length?b[0]:e))for(h=0,len=u.length;h<len;h++)b=u[h],
4
+ c[b]=g[b];a(d.target).trigger(c)}return c}function j(b){var d=a.data(b.target,x);if(!z&&(!F||F!==d))if(d=h("v"+b.type,b))d.isDefaultPrevented()&&b.preventDefault(),d.isPropagationStopped()&&b.stopPropagation(),d.isImmediatePropagationStopped()&&b.stopImmediatePropagation()}function o(b){var g=f(b).touches,c;if(g&&g.length===1&&(c=b.target,g=d(c),g.hasVirtualBinding))F=L++,a.data(c,x,F),y&&(clearTimeout(y),y=0),A=G=false,c=f(b).touches[0],s=c.pageX,E=c.pageY,h("vmouseover",b,g),h("vmousedown",b,g)}
5
+ function m(a){G||(A||h("vmousecancel",a,d(a.target)),A=true,g())}function p(b){if(!G){var c=f(b).touches[0],e=A,z=a.vmouse.moveDistanceThreshold;A=A||Math.abs(c.pageX-s)>z||Math.abs(c.pageY-E)>z;flags=d(b.target);A&&!e&&h("vmousecancel",b,flags);h("vmousemove",b,flags);g()}}function l(a){if(!G){G=true;var b=d(a.target),c;h("vmouseup",a,b);if(!A&&(c=h("vclick",a,b))&&c.isDefaultPrevented())c=f(a).changedTouches[0],C.push({touchID:F,x:c.clientX,y:c.clientY}),z=true;h("vmouseout",a,b);A=false;g()}}function r(b){var b=
6
+ a.data(b,t),d;if(b)for(d in b)if(b[d])return true;return false}function n(){}function k(b){var d=b.substr(1);return{setup:function(){r(this)||a.data(this,t,{});a.data(this,t)[b]=true;v[b]=(v[b]||0)+1;v[b]===1&&H.bind(d,j);a(this).bind(d,n);if(K)v.touchstart=(v.touchstart||0)+1,v.touchstart===1&&H.bind("touchstart",o).bind("touchend",l).bind("touchmove",p).bind("scroll",m)},teardown:function(){--v[b];v[b]||H.unbind(d,j);K&&(--v.touchstart,v.touchstart||H.unbind("touchstart",o).unbind("touchmove",p).unbind("touchend",
7
+ l).unbind("scroll",m));var f=a(this),g=a.data(this,t);g&&(g[b]=false);f.unbind(d,n);r(this)||f.removeData(t)}}}var t="virtualMouseBindings",x="virtualTouchID",c="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),u="clientX clientY pageX pageY screenX screenY".split(" "),w=a.event.props.concat(a.event.mouseHooks?a.event.mouseHooks.props:[]),v={},y=0,s=0,E=0,A=false,C=[],z=false,G=false,K="addEventListener"in b,H=a(b),L=1,F=0;a.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,
8
+ resetTimerDuration:1500};for(var I=0;I<c.length;I++)a.event.special[c[I]]=k(c[I]);K&&b.addEventListener("click",function(b){var d=C.length,f=b.target,g,c,e,h,z;if(d){g=b.clientX;c=b.clientY;threshold=a.vmouse.clickDistanceThreshold;for(e=f;e;){for(h=0;h<d;h++)if(z=C[h],e===f&&Math.abs(z.x-g)<threshold&&Math.abs(z.y-c)<threshold||a.data(e,x)===z.touchID){b.preventDefault();b.stopPropagation();return}e=e.parentNode}}},true)})(jQuery,s,k);(function(a,c,b){function e(a){a=a||location.href;return"#"+a.replace(/^[^#]*#?(.*)$/,
9
+ "$1")}var f="hashchange",d=k,g,h=a.event.special,j=d.documentMode,o="on"+f in c&&(j===b||j>7);a.fn[f]=function(a){return a?this.bind(f,a):this.trigger(f)};a.fn[f].delay=50;h[f]=a.extend(h[f],{setup:function(){if(o)return false;a(g.start)},teardown:function(){if(o)return false;a(g.stop)}});g=function(){function g(){var b=e(),d=t(r);if(b!==r)k(r=b,d),a(c).trigger(f);else if(d!==r)location.href=location.href.replace(/#.*/,"")+d;j=setTimeout(g,a.fn[f].delay)}var h={},j,r=e(),n=function(a){return a},k=
10
+ n,t=n;h.start=function(){j||g()};h.stop=function(){j&&clearTimeout(j);j=b};a.browser.msie&&!o&&function(){var b,c;h.start=function(){if(!b)c=(c=a.fn[f].src)&&c+e(),b=a('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){c||k(e());g()}).attr("src",c||"javascript:0").insertAfter("body")[0].contentWindow,d.onpropertychange=function(){try{if(event.propertyName==="title")b.document.title=d.title}catch(a){}}};h.stop=n;t=function(){return e(b.location.href)};k=function(g,c){var e=b.document,
11
+ h=a.fn[f].domain;if(g!==c)e.title=d.title,e.open(),h&&e.write('<script>document.domain="'+h+'"<\/script>'),e.close(),b.location.hash=g}}();return h}()})(jQuery,this);(function(a,c){if(a.cleanData){var b=a.cleanData;a.cleanData=function(f){for(var d=0,g;(g=f[d])!=null;d++)a(g).triggerHandler("remove");b(f)}}else{var e=a.fn.remove;a.fn.remove=function(b,d){return this.each(function(){d||(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return e.call(a(this),
12
+ b,d)})}}a.widget=function(b,d,g){var c=b.split(".")[0],e,b=b.split(".")[1];e=c+"-"+b;if(!g)g=d,d=a.Widget;a.expr[":"][e]=function(d){return!!a.data(d,b)};a[c]=a[c]||{};a[c][b]=function(a,b){arguments.length&&this._createWidget(a,b)};d=new d;d.options=a.extend(true,{},d.options);a[c][b].prototype=a.extend(true,d,{namespace:c,widgetName:b,widgetEventPrefix:a[c][b].prototype.widgetEventPrefix||b,widgetBaseClass:e},g);a.widget.bridge(b,a[c][b])};a.widget.bridge=function(b,d){a.fn[b]=function(g){var e=
13
+ typeof g==="string",j=Array.prototype.slice.call(arguments,1),o=this,g=!e&&j.length?a.extend.apply(null,[true,g].concat(j)):g;if(e&&g.charAt(0)==="_")return o;e?this.each(function(){var d=a.data(this,b);if(!d)throw"cannot call methods on "+b+" prior to initialization; attempted to call method '"+g+"'";if(!a.isFunction(d[g]))throw"no such method '"+g+"' for "+b+" widget instance";var e=d[g].apply(d,j);if(e!==d&&e!==c)return o=e,false}):this.each(function(){var c=a.data(this,b);c?c.option(g||{})._init():
14
+ a.data(this,b,new d(g,this))});return o}};a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,d){a.data(d,this.widgetName,this);this.element=a(d);this.options=a.extend(true,{},this.options,this._getCreateOptions(),b);var g=this;this.element.bind("remove."+this.widgetName,function(){g.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){var b=
15
+ {};a.metadata&&(b=a.metadata.get(element)[this.widgetName]);return b},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(b,d){var g=b;if(arguments.length===0)return a.extend({},this.options);if(typeof b==="string"){if(d===c)return this.options[b];
16
+ g={};g[b]=d}this._setOptions(g);return this},_setOptions:function(b){var d=this;a.each(b,function(a,b){d._setOption(a,b)});return this},_setOption:function(a,b){this.options[a]=b;a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,d,g){var c=this.options[b],d=a.Event(d);
17
+ d.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();g=g||{};if(d.originalEvent)for(var b=a.event.props.length,e;b;)e=a.event.props[--b],d[e]=d.originalEvent[e];this.element.trigger(d,g);return!(a.isFunction(c)&&c.call(this.element[0],d,g)===false||d.isDefaultPrevented())}}})(jQuery);(function(a,c){a.widget("mobile.widget",{_createWidget:function(){a.Widget.prototype._createWidget.apply(this,arguments);this._trigger("init")},_getCreateOptions:function(){var b=this.element,
18
+ e={};a.each(this.options,function(a){var d=b.jqmData(a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}));d!==c&&(e[a]=d)});return e},enhanceWithin:function(b,c){this.enhance(a(this.options.initSelector,a(b)),c)},enhance:function(b,c){var f,d=a(b),d=a.mobile.enhanceable(d);c&&d.length&&(f=(f=a.mobile.closestPageData(d))&&f.keepNativeSelector()||"",d=d.not(f));d[this.widgetName]()},raise:function(a){throw"Widget ["+this.widgetName+"]: "+a;}})})(jQuery);(function(a,c){var b={};a.mobile=a.extend({},
19
+ {version:"1.1.0",ns:"",subPageUrlKey:"ui-page",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",focusClass:"ui-focus",ajaxEnabled:true,hashListeningEnabled:true,linkBindingEnabled:true,defaultPageTransition:"fade",maxTransitionWidth:false,minScrollBack:250,touchOverflowEnabled:false,defaultDialogTransition:"pop",loadingMessage:"loading",pageLoadErrorMessage:"Error Loading Page",loadingMessageTextVisible:false,loadingMessageTheme:"a",pageLoadErrorMessageTheme:"e",autoInitializePage:true,
20
+ pushStateEnabled:true,ignoreContentEnabled:false,orientationChangeEnabled:true,buttonMarkup:{hoverDelay:200},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},silentScroll:function(b){if(a.type(b)!==
21
+ "number")b=a.mobile.defaultHomeScroll;a.event.special.scrollstart.enabled=false;setTimeout(function(){c.scrollTo(0,b);a(k).trigger("silentscroll",{x:0,y:b})},20);setTimeout(function(){a.event.special.scrollstart.enabled=true},150)},nsNormalizeDict:b,nsNormalize:function(d){return!d?void 0:b[d]||(b[d]=a.camelCase(a.mobile.ns+d))},getInheritedTheme:function(a,b){for(var c=a[0],e="",f=/ui-(bar|body|overlay)-([a-z])\b/,m,p;c;){m=c.className||"";if((p=f.exec(m))&&(e=p[2]))break;c=c.parentNode}return e||
22
+ b||"a"},closestPageData:function(a){return a.closest(':jqmData(role="page"), :jqmData(role="dialog")').data("page")},enhanceable:function(a){return this.haveParents(a,"enhance")},hijackable:function(a){return this.haveParents(a,"ajax")},haveParents:function(b,c){if(!a.mobile.ignoreContentEnabled)return b;for(var e=b.length,f=a(),o,m,p,l=0;l<e;l++){m=b.eq(l);p=false;for(o=b[l];o;){if((o.getAttribute?o.getAttribute("data-"+a.mobile.ns+c):"")==="false"){p=true;break}o=o.parentNode}p||(f=f.add(m))}return f}},
23
+ a.mobile);a.fn.jqmData=function(b,c){var f;typeof b!="undefined"&&(b&&(b=a.mobile.nsNormalize(b)),f=this.data.apply(this,arguments.length<2?[b]:[b,c]));return f};a.jqmData=function(b,c,f){var e;typeof c!="undefined"&&(e=a.data(b,c?a.mobile.nsNormalize(c):c,f));return e};a.fn.jqmRemoveData=function(b){return this.removeData(a.mobile.nsNormalize(b))};a.jqmRemoveData=function(b,c){return a.removeData(b,a.mobile.nsNormalize(c))};a.fn.removeWithDependents=function(){a.removeWithDependents(this)};a.removeWithDependents=
24
+ function(b){b=a(b);(b.jqmData("dependents")||a()).remove();b.remove()};a.fn.addDependents=function(b){a.addDependents(a(this),b)};a.addDependents=function(b,c){var f=a(b).jqmData("dependents")||a();a(b).jqmData("dependents",a.merge(f,c))};a.fn.getEncodedText=function(){return a("<div/>").text(a(this).text()).html()};a.fn.jqmEnhanceable=function(){return a.mobile.enhanceable(this)};a.fn.jqmHijackable=function(){return a.mobile.hijackable(this)};var e=a.find,f=/:jqmData\(([^)]*)\)/g;a.find=function(b,
25
+ c,h,j){b=b.replace(f,"[data-"+(a.mobile.ns||"")+"$1]");return e.call(this,b,c,h,j)};a.extend(a.find,e);a.find.matches=function(b,c){return a.find(b,null,null,c)};a.find.matchesSelector=function(b,c){return a.find(c,null,null,[b]).length>0}})(jQuery,this);(function(a){a(s);var c=a("html");a.mobile.media=function(){var b={},e=a("<div id='jquery-mediatest'>"),f=a("<body>").append(e);return function(a){if(!(a in b)){var g=k.createElement("style"),h="@media "+a+" { #jquery-mediatest { position:absolute; } }";
26
+ g.type="text/css";g.styleSheet?g.styleSheet.cssText=h:g.appendChild(k.createTextNode(h));c.prepend(f).prepend(g);b[a]=e.css("position")==="absolute";f.add(g).remove()}return b[a]}}()})(jQuery);(function(a,c){function b(a){var b=a.charAt(0).toUpperCase()+a.substr(1),a=(a+" "+g.join(b+" ")+b).split(" "),f;for(f in a)if(d[a[f]]!==c)return true}function e(a,b,c){var d=k.createElement("div"),c=c?[c]:g,f;for(i=0;i<c.length;i++){var e=c[i],h="-"+e.charAt(0).toLowerCase()+e.substr(1)+"-"+a+": "+b+";",e=e.charAt(0).toUpperCase()+
27
+ e.substr(1)+(a.charAt(0).toUpperCase()+a.substr(1));d.setAttribute("style",h);d.style[e]&&(f=true)}return!!f}var f=a("<body>").prependTo("html"),d=f[0].style,g=["Webkit","Moz","O"],h="palmGetResource"in s,j=s.operamini&&{}.toString.call(s.operamini)==="[object OperaMini]",o=s.blackberry;a.extend(a.mobile,{browser:{}});a.mobile.browser.ie=function(){for(var a=3,b=k.createElement("div"),c=b.all||[];b.innerHTML="<\!--[if gt IE "+ ++a+"]><br><![endif]--\>",c[0];);return a>4?a:!a}();a.extend(a.support,
28
+ {orientation:"orientation"in s&&"onorientationchange"in s,touch:"ontouchend"in k,cssTransitions:"WebKitTransitionEvent"in s||e("transition","height 100ms linear"),pushState:"pushState"in history&&"replaceState"in history,mediaquery:a.mobile.media("only all"),cssPseudoElement:!!b("content"),touchOverflow:!!b("overflowScrolling"),cssTransform3d:e("perspective","10px","moz")||a.mobile.media("(-"+g.join("-transform-3d),(-")+"-transform-3d),(transform-3d)"),boxShadow:!!b("boxShadow")&&!o,scrollTop:("pageXOffset"in
29
+ s||"scrollTop"in k.documentElement||"scrollTop"in f[0])&&!h&&!j,dynamicBaseTag:function(){var b=location.protocol+"//"+location.host+location.pathname+"ui-dir/",c=a("head base"),d=null,e="",g;c.length?e=c.attr("href"):c=d=a("<base>",{href:b}).appendTo("head");g=a("<a href='testurl' />").prependTo(f)[0].href;c[0].href=e||location.pathname;d&&d.remove();return g.indexOf(b)===0}()});f.remove();h=function(){var a=s.navigator.userAgent;return a.indexOf("Nokia")>-1&&(a.indexOf("Symbian/3")>-1||a.indexOf("Series60/5")>
30
+ -1)&&a.indexOf("AppleWebKit")>-1&&a.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)}();a.mobile.gradeA=function(){return a.support.mediaquery||a.mobile.browser.ie&&a.mobile.browser.ie>=7};a.mobile.ajaxBlacklist=s.blackberry&&!s.WebKitPoint||j||h;h&&a(function(){a("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")});a.support.boxShadow||a("html").addClass("ui-mobile-nosupport-boxshadow")})(jQuery);(function(a,c,b){function e(b,c,d){var f=d.type;d.type=c;a.event.handle.call(b,
31
+ d);d.type=f}a.each("touchstart touchmove touchend orientationchange throttledresize tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(b,c){a.fn[c]=function(a){return a?this.bind(c,a):this.trigger(c)};a.attrFn[c]=true});var f=a.support.touch,d=f?"touchstart":"mousedown",g=f?"touchend":"mouseup",h=f?"touchmove":"mousemove";a.event.special.scrollstart={enabled:true,setup:function(){function b(a,f){d=f;e(c,d?"scrollstart":"scrollstop",a)}var c=this,d,f;a(c).bind("touchmove scroll",
32
+ function(c){a.event.special.scrollstart.enabled&&(d||b(c,true),clearTimeout(f),f=setTimeout(function(){b(c,false)},50))})}};a.event.special.tap={setup:function(){var b=this,c=a(b);c.bind("vmousedown",function(d){function f(){clearTimeout(q)}function g(){f();c.unbind("vclick",h).unbind("vmouseup",f);a(k).unbind("vmousecancel",g)}function h(a){g();n==a.target&&e(b,"tap",a)}if(d.which&&d.which!==1)return false;var n=d.target,q;c.bind("vmouseup",f).bind("vclick",h);a(k).bind("vmousecancel",g);q=setTimeout(function(){e(b,
33
+ "taphold",a.Event("taphold",{target:n}))},750)})}};a.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1E3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var c=a(this);c.bind(d,function(d){function f(b){if(l){var c=b.originalEvent.touches?b.originalEvent.touches[0]:b;k={time:(new Date).getTime(),coords:[c.pageX,c.pageY]};Math.abs(l.coords[0]-k.coords[0])>a.event.special.swipe.scrollSupressionThreshold&&b.preventDefault()}}var e=d.originalEvent.touches?
34
+ d.originalEvent.touches[0]:d,l={time:(new Date).getTime(),coords:[e.pageX,e.pageY],origin:a(d.target)},k;c.bind(h,f).one(g,function(){c.unbind(h,f);l&&k&&k.time-l.time<a.event.special.swipe.durationThreshold&&Math.abs(l.coords[0]-k.coords[0])>a.event.special.swipe.horizontalDistanceThreshold&&Math.abs(l.coords[1]-k.coords[1])<a.event.special.swipe.verticalDistanceThreshold&&l.origin.trigger("swipe").trigger(l.coords[0]>k.coords[0]?"swipeleft":"swiperight");l=k=b})})}};(function(a,b){function c(){var a=
35
+ f();a!==e&&(e=a,d.trigger("orientationchange"))}var d=a(b),f,e,g,h,t={0:true,180:true};if(a.support.orientation&&(g=b.innerWidth||a(b).width(),h=b.innerHeight||a(b).height(),g=g>h&&g-h>50,h=t[b.orientation],g&&h||!g&&!h))t={"-90":true,90:true};a.event.special.orientationchange={setup:function(){if(a.support.orientation&&a.mobile.orientationChangeEnabled)return false;e=f();d.bind("throttledresize",c)},teardown:function(){if(a.support.orientation&&a.mobile.orientationChangeEnabled)return false;d.unbind("throttledresize",
36
+ c)},add:function(a){var b=a.handler;a.handler=function(a){a.orientation=f();return b.apply(this,arguments)}}};a.event.special.orientationchange.orientation=f=function(){var c=true,c=k.documentElement;return(c=a.support.orientation?t[b.orientation]:c&&c.clientWidth/c.clientHeight<1.1)?"portrait":"landscape"}})(jQuery,c);(function(){a.event.special.throttledresize={setup:function(){a(this).bind("resize",b)},teardown:function(){a(this).unbind("resize",b)}};var b=function(){f=(new Date).getTime();g=f-
37
+ c;g>=250?(c=f,a(this).trigger("throttledresize")):(d&&clearTimeout(d),d=setTimeout(b,250-g))},c=0,d,f,g})();a.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(b,c){a.event.special[b]={setup:function(){a(this).bind(c,a.noop)}}})})(jQuery,this);(function(a){a.widget("mobile.page",a.mobile.widget,{options:{theme:"c",domCache:false,keepNativeDefault:":jqmData(role='none'), :jqmData(role='nojs')"},_create:function(){var a=this;if(a._trigger("beforecreate")===
38
+ false)return false;a.element.attr("tabindex","0").addClass("ui-page ui-body-"+a.options.theme).bind("pagebeforehide",function(){a.removeContainerBackground()}).bind("pagebeforeshow",function(){a.setContainerBackground()})},removeContainerBackground:function(){a.mobile.pageContainer.removeClass("ui-overlay-"+a.mobile.getInheritedTheme(this.element.parent()))},setContainerBackground:function(c){this.options.theme&&a.mobile.pageContainer.addClass("ui-overlay-"+(c||this.options.theme))},keepNativeSelector:function(){var c=
39
+ this.options;return c.keepNative&&a.trim(c.keepNative)&&c.keepNative!==c.keepNativeDefault?[c.keepNative,c.keepNativeDefault].join(", "):c.keepNativeDefault}})})(jQuery);(function(a,c,b){var e=function(d){d===b&&(d=true);return function(b,f,e,o){var k=new a.Deferred,p=f?" reverse":"",l=a.mobile.urlHistory.getActive().lastScroll||a.mobile.defaultHomeScroll,r=a.mobile.getScreenHeight(),n=a.mobile.maxTransitionWidth!==false&&a(c).width()>a.mobile.maxTransitionWidth,q=!a.support.cssTransitions||n||!b||
40
+ b==="none",t=function(){a.mobile.pageContainer.toggleClass("ui-mobile-viewport-transitioning viewport-"+b)},x=function(){a.event.special.scrollstart.enabled=false;c.scrollTo(0,l);setTimeout(function(){a.event.special.scrollstart.enabled=true},150)},u=function(){o.removeClass(a.mobile.activePageClass+" out in reverse "+b).height("")},n=function(){o&&d&&u();e.addClass(a.mobile.activePageClass);a.mobile.focusPage(e);e.height(r+l);x();q||e.animationComplete(w);e.addClass(b+" in"+p);q&&w()},w=function(){d||
41
+ o&&u();e.removeClass("out in reverse "+b).height("");t();a(c).scrollTop()!==l&&x();k.resolve(b,f,e,o,true)};t();o&&!q?(d?o.animationComplete(n):n(),o.height(r+a(c).scrollTop()).addClass(b+" out"+p)):n();return k.promise()}},f=e(),e=e(false);a.mobile.defaultTransitionHandler=f;a.mobile.transitionHandlers={"default":a.mobile.defaultTransitionHandler,sequential:f,simultaneous:e};a.mobile.transitionFallbacks={}})(jQuery,this);(function(a,c){function b(b){r&&(!r.closest(".ui-page-active").length||b)&&
42
+ r.removeClass(a.mobile.activeBtnClass);r=null}function e(){t=false;q.length>0&&a.mobile.changePage.apply(null,q.pop())}function f(b,c,d,f){c&&c.data("page")._trigger("beforehide",null,{nextPage:b});b.data("page")._trigger("beforeshow",null,{prevPage:c||a("")});a.mobile.hidePageLoadingMsg();d&&!a.support.cssTransform3d&&a.mobile.transitionFallbacks[d]&&(d=a.mobile.transitionFallbacks[d]);d=(a.mobile.transitionHandlers[d||"default"]||a.mobile.defaultTransitionHandler)(d,f,b,c);d.done(function(){c&&
43
+ c.data("page")._trigger("hide",null,{nextPage:b});b.data("page")._trigger("show",null,{prevPage:c||a("")})});return d}function d(){return s.innerHeight||a(s).height()}function g(){var b=a("."+a.mobile.activePageClass),c=parseFloat(b.css("padding-top")),f=parseFloat(b.css("padding-bottom"));b.css("min-height",d()-c-f)}function h(b,c){c&&b.attr("data-"+a.mobile.ns+"role",c);b.page()}function j(a){for(;a;){if(typeof a.nodeName==="string"&&a.nodeName.toLowerCase()=="a")break;a=a.parentNode}return a}function o(b){var b=
44
+ a(b).closest(".ui-page").jqmData("url"),c=v.hrefNoHash;if(!b||!l.isPath(b))b=c;return l.makeUrlAbsolute(b,c)}var m=a(s);a("html");var p=a("head"),l={urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,parseUrl:function(b){if(a.type(b)==="object")return b;b=l.urlParseRE.exec(b||"")||[];return{href:b[0]||"",hrefNoHash:b[1]||"",hrefNoSearch:b[2]||"",domain:b[3]||"",
45
+ protocol:b[4]||"",doubleSlash:b[5]||"",authority:b[6]||"",username:b[8]||"",password:b[9]||"",host:b[10]||"",hostname:b[11]||"",port:b[12]||"",pathname:b[13]||"",directory:b[14]||"",filename:b[15]||"",search:b[16]||"",hash:b[17]||""}},makePathAbsolute:function(a,b){if(a&&a.charAt(0)==="/")return a;for(var a=a||"",c=(b=b?b.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"")?b.split("/"):[],d=a.split("/"),f=0;f<d.length;f++){var e=d[f];switch(e){case ".":break;case "..":c.length&&c.pop();break;default:c.push(e)}}return"/"+
46
+ c.join("/")},isSameDomain:function(a,b){return l.parseUrl(a).domain===l.parseUrl(b).domain},isRelativeUrl:function(a){return l.parseUrl(a).protocol===""},isAbsoluteUrl:function(a){return l.parseUrl(a).protocol!==""},makeUrlAbsolute:function(a,b){if(!l.isRelativeUrl(a))return a;var c=l.parseUrl(a),d=l.parseUrl(b),f=c.protocol||d.protocol,e=c.protocol?c.doubleSlash:c.doubleSlash||d.doubleSlash,g=c.authority||d.authority,h=c.pathname!=="",j=l.makePathAbsolute(c.pathname||d.filename,d.pathname);return f+
47
+ e+g+j+(c.search||!h&&d.search||"")+c.hash},addSearchParams:function(b,c){var d=l.parseUrl(b),f=typeof c==="object"?a.param(c):c,e=d.search||"?";return d.hrefNoSearch+e+(e.charAt(e.length-1)!=="?"?"&":"")+f+(d.hash||"")},convertUrlToDataUrl:function(a){var b=l.parseUrl(a);if(l.isEmbeddedPage(b))return b.hash.split(x)[0].replace(/^#/,"");else if(l.isSameDomain(b,v))return b.hrefNoHash.replace(v.domain,"");return a},get:function(a){if(a===c)a=location.hash;return l.stripHash(a).replace(/[^\/]*\.[^\/*]+$/,
48
+ "")},getFilePath:function(b){var c="&"+a.mobile.subPageUrlKey;return b&&b.split(c)[0].split(x)[0]},set:function(a){location.hash=a},isPath:function(a){return/\//.test(a)},clean:function(a){return a.replace(v.domain,"")},stripHash:function(a){return a.replace(/^#/,"")},cleanHash:function(a){return l.stripHash(a.replace(/\?.*$/,"").replace(x,""))},isExternal:function(a){a=l.parseUrl(a);return a.protocol&&a.domain!==w.domain?true:false},hasProtocol:function(a){return/^(:?\w+:)/.test(a)},isFirstPageUrl:function(b){var b=
49
+ l.parseUrl(l.makeUrlAbsolute(b,v)),d=a.mobile.firstPage,d=d&&d[0]?d[0].id:c;return(b.hrefNoHash===w.hrefNoHash||y&&b.hrefNoHash===v.hrefNoHash)&&(!b.hash||b.hash==="#"||d&&b.hash.replace(/^#/,"")===d)},isEmbeddedPage:function(a){a=l.parseUrl(a);return a.protocol!==""?a.hash&&(a.hrefNoHash===w.hrefNoHash||y&&a.hrefNoHash===v.hrefNoHash):/^#/.test(a.href)}},r=null,n={stack:[],activeIndex:0,getActive:function(){return n.stack[n.activeIndex]},getPrev:function(){return n.stack[n.activeIndex-1]},getNext:function(){return n.stack[n.activeIndex+
50
+ 1]},addNew:function(a,b,c,d,f){n.getNext()&&n.clearForward();n.stack.push({url:a,transition:b,title:c,pageUrl:d,role:f});n.activeIndex=n.stack.length-1},clearForward:function(){n.stack=n.stack.slice(0,n.activeIndex+1)},directHashChange:function(b){var d,f,e;this.getActive();a.each(n.stack,function(a,c){b.currentUrl===c.url&&(d=a<n.activeIndex,f=!d,e=a)});this.activeIndex=e!==c?e:this.activeIndex;d?(b.either||b.isBack)(true):f&&(b.either||b.isForward)(false)},ignoreNextHashChange:false},q=[],t=false,
51
+ x="&ui-state=dialog",u=p.children("base"),w=l.parseUrl(location.href),v=u.length?l.parseUrl(l.makeUrlAbsolute(u.attr("href"),w.href)):w,y=w.hrefNoHash!==v.hrefNoHash,B=a.support.dynamicBaseTag?{element:u.length?u:a("<base>",{href:v.hrefNoHash}).prependTo(p),set:function(a){B.element.attr("href",l.makeUrlAbsolute(a,v))},reset:function(){B.element.attr("href",v.hrefNoHash)}}:c;a.mobile.focusPage=function(a){var b=a.find("[autofocus]"),c=a.find(".ui-title:eq(0)");b.length?b.focus():c.length?c.focus():
52
+ a.focus()};var E=true,A,C;A=function(){if(E){var b=a.mobile.urlHistory.getActive();if(b){var c=m.scrollTop();b.lastScroll=c<a.mobile.minScrollBack?a.mobile.defaultHomeScroll:c}}};C=function(){setTimeout(A,100)};m.bind(a.support.pushState?"popstate":"hashchange",function(){E=false});m.one(a.support.pushState?"popstate":"hashchange",function(){E=true});m.one("pagecontainercreate",function(){a.mobile.pageContainer.bind("pagechange",function(){E=true;m.unbind("scrollstop",C);m.bind("scrollstop",C)})});
53
+ m.bind("scrollstop",C);a.mobile.getScreenHeight=d;a.fn.animationComplete=function(b){return a.support.cssTransitions?a(this).one("webkitAnimationEnd animationend",b):(setTimeout(b,0),a(this))};a.mobile.path=l;a.mobile.base=B;a.mobile.urlHistory=n;a.mobile.dialogHashKey=x;a.mobile.allowCrossDomainPages=false;a.mobile.getDocumentUrl=function(b){return b?a.extend({},w):w.href};a.mobile.getDocumentBase=function(b){return b?a.extend({},v):v.href};a.mobile._bindPageRemove=function(){var b=a(this);!b.data("page").options.domCache&&
54
+ b.is(":jqmData(external-page='true')")&&b.bind("pagehide.remove",function(){var b=a(this),c=new a.Event("pageremove");b.trigger(c);c.isDefaultPrevented()||b.removeWithDependents()})};a.mobile.loadPage=function(b,d){var f=a.Deferred(),e=a.extend({},a.mobile.loadPage.defaults,d),g=null,j=null,k=l.makeUrlAbsolute(b,a.mobile.activePage&&o(a.mobile.activePage)||v.hrefNoHash);if(e.data&&e.type==="get")k=l.addSearchParams(k,e.data),e.data=c;if(e.data&&e.type==="post")e.reloadPage=true;var u=l.getFilePath(k),
55
+ n=l.convertUrlToDataUrl(k);e.pageContainer=e.pageContainer||a.mobile.pageContainer;g=e.pageContainer.children(":jqmData(url='"+n+"')");g.length===0&&n&&!l.isPath(n)&&(g=e.pageContainer.children("#"+n).attr("data-"+a.mobile.ns+"url",n));if(g.length===0)if(a.mobile.firstPage&&l.isFirstPageUrl(u))a.mobile.firstPage.parent().length&&(g=a(a.mobile.firstPage));else if(l.isEmbeddedPage(u))return f.reject(k,d),f.promise();B&&B.reset();if(g.length){if(!e.reloadPage)return h(g,e.role),f.resolve(k,d,g),f.promise();
56
+ j=g}var m=e.pageContainer,x=new a.Event("pagebeforeload"),p={url:b,absUrl:k,dataUrl:n,deferred:f,options:e};m.trigger(x,p);if(x.isDefaultPrevented())return f.promise();if(e.showLoadMsg)var r=setTimeout(function(){a.mobile.showPageLoadingMsg()},e.loadMsgDelay);!a.mobile.allowCrossDomainPages&&!l.isSameDomain(w,k)?f.reject(k,d):a.ajax({url:u,type:e.type,data:e.data,dataType:"html",success:function(c,o,m){var x=a("<div></div>"),v=c.match(/<title[^>]*>([^<]*)/)&&RegExp.$1,w=RegExp("\\bdata-"+a.mobile.ns+
57
+ "url=[\"']?([^\"'>]*)[\"']?");RegExp("(<[^>]+\\bdata-"+a.mobile.ns+"role=[\"']?page[\"']?[^>]*>)").test(c)&&RegExp.$1&&w.test(RegExp.$1)&&RegExp.$1&&(b=u=l.getFilePath(RegExp.$1));B&&B.set(u);x.get(0).innerHTML=c;g=x.find(":jqmData(role='page'), :jqmData(role='dialog')").first();g.length||(g=a("<div data-"+a.mobile.ns+"role='page'>"+c.split(/<\/?body[^>]*>/gmi)[1]+"</div>"));v&&!g.jqmData("title")&&(~v.indexOf("&")&&(v=a("<div>"+v+"</div>").text()),g.jqmData("title",v));if(!a.support.dynamicBaseTag){var q=
58
+ l.get(u);g.find("[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]").each(function(){var b=a(this).is("[href]")?"href":a(this).is("[src]")?"src":"action",c=a(this).attr(b),c=c.replace(location.protocol+"//"+location.host+location.pathname,"");/^(\w+:|#|\/)/.test(c)||a(this).attr(b,q+c)})}g.attr("data-"+a.mobile.ns+"url",l.convertUrlToDataUrl(u)).attr("data-"+a.mobile.ns+"external-page",true).appendTo(e.pageContainer);g.one("pagecreate",a.mobile._bindPageRemove);h(g,e.role);k.indexOf("&"+
59
+ a.mobile.subPageUrlKey)>-1&&(g=e.pageContainer.children(":jqmData(url='"+n+"')"));e.showLoadMsg&&(clearTimeout(r),a.mobile.hidePageLoadingMsg());p.xhr=m;p.textStatus=o;p.page=g;e.pageContainer.trigger("pageload",p);f.resolve(k,d,g,j)},error:function(b,c,g){B&&B.set(l.get());p.xhr=b;p.textStatus=c;p.errorThrown=g;b=new a.Event("pageloadfailed");e.pageContainer.trigger(b,p);b.isDefaultPrevented()||(e.showLoadMsg&&(clearTimeout(r),a.mobile.hidePageLoadingMsg(),a.mobile.showPageLoadingMsg(a.mobile.pageLoadErrorMessageTheme,
60
+ a.mobile.pageLoadErrorMessage,true),setTimeout(a.mobile.hidePageLoadingMsg,1500)),f.reject(k,d))}});return f.promise()};a.mobile.loadPage.defaults={type:"get",data:c,reloadPage:false,role:c,showLoadMsg:false,pageContainer:c,loadMsgDelay:50};a.mobile.changePage=function(d,g){if(t)q.unshift(arguments);else{var j=a.extend({},a.mobile.changePage.defaults,g);j.pageContainer=j.pageContainer||a.mobile.pageContainer;j.fromPage=j.fromPage||a.mobile.activePage;var u=j.pageContainer,o=new a.Event("pagebeforechange"),
61
+ m={toPage:d,options:j};u.trigger(o,m);if(!o.isDefaultPrevented())if(d=m.toPage,t=true,typeof d=="string")a.mobile.loadPage(d,j).done(function(b,c,d,e){t=false;c.duplicateCachedPage=e;a.mobile.changePage(d,c)}).fail(function(){t=false;b(true);e();j.pageContainer.trigger("pagechangefailed",m)});else{if(d[0]===a.mobile.firstPage[0]&&!j.dataUrl)j.dataUrl=w.hrefNoHash;var o=j.fromPage,p=j.dataUrl&&l.convertUrlToDataUrl(j.dataUrl)||d.jqmData("url"),v=p;l.getFilePath(p);var r=n.getActive(),s=n.activeIndex===
62
+ 0,y=0,B=k.title,A=j.role==="dialog"||d.jqmData("role")==="dialog";if(o&&o[0]===d[0]&&!j.allowSamePageTransition)t=false,u.trigger("pagechange",m);else{h(d,j.role);j.fromHashChange&&n.directHashChange({currentUrl:p,isBack:function(){y=-1},isForward:function(){y=1}});try{k.activeElement&&k.activeElement.nodeName.toLowerCase()!="body"?a(k.activeElement).blur():a("input:focus, textarea:focus, select:focus").blur()}catch(E){}A&&r&&(p=(r.url||"")+x);if(j.changeHash!==false&&p)n.ignoreNextHashChange=true,
63
+ l.set(p);var C=!r?B:d.jqmData("title")||d.children(":jqmData(role='header')").find(".ui-title").getEncodedText();C&&B==k.title&&(B=C);d.jqmData("title")||d.jqmData("title",B);j.transition=j.transition||(y&&!s?r.transition:c)||(A?a.mobile.defaultDialogTransition:a.mobile.defaultPageTransition);y||n.addNew(p,j.transition,B,v,j.role);k.title=n.getActive().title;a.mobile.activePage=d;j.reverse=j.reverse||y<0;f(d,o,j.transition,j.reverse).done(function(c,f,g,h,l){b();j.duplicateCachedPage&&j.duplicateCachedPage.remove();
64
+ l||a.mobile.focusPage(d);e();u.trigger("pagechange",m)})}}}};a.mobile.changePage.defaults={transition:c,reverse:false,changeHash:true,fromHashChange:false,role:c,duplicateCachedPage:c,pageContainer:c,showLoadMsg:true,dataUrl:c,fromPage:c,allowSamePageTransition:false};a.mobile._registerInternalEvents=function(){a(k).delegate("form","submit",function(b){var c=a(this);if(a.mobile.ajaxEnabled&&!c.is(":jqmData(ajax='false')")&&c.jqmHijackable().length){var d=c.attr("method"),e=c.attr("target"),f=c.attr("action");
65
+ if(!f&&(f=o(c),f===v.hrefNoHash))f=w.hrefNoSearch;f=l.makeUrlAbsolute(f,o(c));!l.isExternal(f)&&!e&&(a.mobile.changePage(f,{type:d&&d.length&&d.toLowerCase()||"get",data:c.serialize(),transition:c.jqmData("transition"),direction:c.jqmData("direction"),reloadPage:true}),b.preventDefault())}});a(k).bind("vclick",function(c){if(!(c.which>1)&&a.mobile.linkBindingEnabled&&(c=j(c.target),a(c).jqmHijackable().length&&c&&l.parseUrl(c.getAttribute("href")||"#").hash!=="#"))b(true),r=a(c).closest(".ui-btn").not(".ui-disabled"),
66
+ r.addClass(a.mobile.activeBtnClass),a("."+a.mobile.activePageClass+" .ui-btn").not(c).blur(),a(c).jqmData("href",a(c).attr("href")).attr("href","#")});a(k).bind("click",function(d){if(a.mobile.linkBindingEnabled){var f=j(d.target),e=a(f),g;if(f&&!(d.which>1)&&e.jqmHijackable().length){g=function(){s.setTimeout(function(){b(true)},200)};e.jqmData("href")&&e.attr("href",e.jqmData("href"));if(e.is(":jqmData(rel='back')"))return s.history.back(),false;var h=o(e),f=l.makeUrlAbsolute(e.attr("href")||"#",
67
+ h);if(!a.mobile.ajaxEnabled&&!l.isEmbeddedPage(f))g();else{if(f.search("#")!=-1)if(f=f.replace(/[^#]*#/,""))f=l.isPath(f)?l.makeUrlAbsolute(f,h):l.makeUrlAbsolute("#"+f,w.hrefNoHash);else{d.preventDefault();return}var h=e.is("[rel='external']")||e.is(":jqmData(ajax='false')")||e.is("[target]"),k=a.mobile.allowCrossDomainPages&&w.protocol==="file:"&&f.search(/^https?:/)!=-1;h||l.isExternal(f)&&!k?g():(g=e.jqmData("transition"),h=(h=e.jqmData("direction"))&&h==="reverse"||e.jqmData("back"),e=e.attr("data-"+
68
+ a.mobile.ns+"rel")||c,a.mobile.changePage(f,{transition:g,reverse:h,role:e}),d.preventDefault())}}}});a(k).delegate(".ui-page","pageshow.prefetch",function(){var b=[];a(this).find("a:jqmData(prefetch)").each(function(){var c=a(this),d=c.attr("href");d&&a.inArray(d,b)===-1&&(b.push(d),a.mobile.loadPage(d,{role:c.attr("data-"+a.mobile.ns+"rel")}))})});a.mobile._handleHashChange=function(b){var d=l.stripHash(b),f={transition:a.mobile.urlHistory.stack.length===0?"none":c,changeHash:false,fromHashChange:true};
69
+ if(!a.mobile.hashListeningEnabled||n.ignoreNextHashChange)n.ignoreNextHashChange=false;else{if(n.stack.length>1&&d.indexOf(x)>-1)if(a.mobile.activePage.is(".ui-dialog"))n.directHashChange({currentUrl:d,either:function(b){var c=a.mobile.urlHistory.getActive();d=c.pageUrl;a.extend(f,{role:c.role,transition:c.transition,reverse:b})}});else{n.directHashChange({currentUrl:d,isBack:function(){s.history.back()},isForward:function(){s.history.forward()}});return}d?(d=typeof d==="string"&&!l.isPath(d)?l.makeUrlAbsolute("#"+
70
+ d,v):d,a.mobile.changePage(d,f)):a.mobile.changePage(a.mobile.firstPage,f)}};m.bind("hashchange",function(){a.mobile._handleHashChange(location.hash)});a(k).bind("pageshow",g);a(s).bind("throttledresize",g)}})(jQuery);(function(a,c){var b={},e=a(c),f=a.mobile.path.parseUrl(location.href);a.extend(b,{initialFilePath:f.pathname+f.search,initialHref:f.hrefNoHash,state:function(){return{hash:location.hash||"#"+b.initialFilePath,title:k.title,initialHref:b.initialHref}},resetUIKeys:function(b){var c="&"+
71
+ a.mobile.subPageUrlKey,f=b.indexOf(a.mobile.dialogHashKey);f>-1?b=b.slice(0,f)+"#"+b.slice(f):b.indexOf(c)>-1&&(b=b.split(c).join("#"+c));return b},hashValueAfterReset:function(c){c=b.resetUIKeys(c);return a.mobile.path.parseUrl(c).hash},nextHashChangePrevented:function(c){a.mobile.urlHistory.ignoreNextHashChange=c;b.onHashChangeDisabled=c},onHashChange:function(){if(!b.onHashChangeDisabled){var c,f;c=location.hash;var e=a.mobile.path.isPath(c),j=e?location.href:a.mobile.getDocumentUrl();c=e?c.replace("#",
72
+ ""):c;f=b.state();c=a.mobile.path.makeUrlAbsolute(c,j);e&&(c=b.resetUIKeys(c));history.replaceState(f,k.title,c)}},onPopState:function(c){var c=c.originalEvent.state,f,h;if(c){f=b.hashValueAfterReset(a.mobile.urlHistory.getActive().url);h=b.hashValueAfterReset(c.hash.replace("#",""));if(f=f!==h)e.one("hashchange.pushstate",function(){b.nextHashChangePrevented(false)});b.nextHashChangePrevented(false);a.mobile._handleHashChange(c.hash);f&&b.nextHashChangePrevented(true)}},init:function(){e.bind("hashchange",
73
+ b.onHashChange);e.bind("popstate",b.onPopState);location.hash===""&&history.replaceState(b.state(),k.title,location.href)}});a(function(){a.mobile.pushStateEnabled&&a.support.pushState&&b.init()})})(jQuery,this);jQuery.mobile.transitionFallbacks.pop="fade";(function(a){a.mobile.transitionHandlers.slide=a.mobile.transitionHandlers.simultaneous;a.mobile.transitionFallbacks.slide="fade"})(jQuery,this);jQuery.mobile.transitionFallbacks.slidedown="fade";jQuery.mobile.transitionFallbacks.slideup="fade";
74
+ jQuery.mobile.transitionFallbacks.flip="fade";jQuery.mobile.transitionFallbacks.flow="fade";jQuery.mobile.transitionFallbacks.turn="fade";(function(a){a.mobile.page.prototype.options.degradeInputs={color:false,date:false,datetime:false,"datetime-local":false,email:false,month:false,number:false,range:"number",search:"text",tel:false,time:false,url:false,week:false};a(k).bind("pagecreate create",function(c){var b=a.mobile.closestPageData(a(c.target)),e;if(b)e=b.options,a(c.target).find("input").not(b.keepNativeSelector()).each(function(){var b=
75
+ a(this),c=this.getAttribute("type"),g=e.degradeInputs[c]||"text";if(e.degradeInputs[c]){var h=a("<div>").html(b.clone()).html(),j=h.indexOf(" type=")>-1;b.replaceWith(h.replace(j?/\s+type=["']?\w+['"]?/:/\/?>/,' type="'+g+'" data-'+a.mobile.ns+'type="'+c+'"'+(j?"":">")))}})})})(jQuery);(function(a,c){a.widget("mobile.dialog",a.mobile.widget,{options:{closeBtnText:"Close",overlayTheme:"a",initSelector:":jqmData(role='dialog')"},_create:function(){var b=this,c=this.element,f=a("<a href='#' data-"+a.mobile.ns+
76
+ "icon='delete' data-"+a.mobile.ns+"iconpos='notext'>"+this.options.closeBtnText+"</a>"),d=a("<div/>",{role:"dialog","class":"ui-dialog-contain ui-corner-all ui-overlay-shadow"});c.addClass("ui-dialog ui-overlay-"+this.options.overlayTheme);c.wrapInner(d).children().find(":jqmData(role='header')").prepend(f).end().children(":first-child").addClass("ui-corner-top").end().children(":last-child").addClass("ui-corner-bottom");f.bind("click",function(){b.close()});c.bind("vclick submit",function(b){var b=
77
+ a(b.target).closest(b.type==="vclick"?"a":"form"),c;b.length&&!b.jqmData("transition")&&(c=a.mobile.urlHistory.getActive()||{},b.attr("data-"+a.mobile.ns+"transition",c.transition||a.mobile.defaultDialogTransition).attr("data-"+a.mobile.ns+"direction","reverse"))}).bind("pagehide",function(){a(this).find("."+a.mobile.activeBtnClass).removeClass(a.mobile.activeBtnClass)}).bind("pagebeforeshow",function(){b.options.overlayTheme&&b.element.page("removeContainerBackground").page("setContainerBackground",
78
+ b.options.overlayTheme)})},close:function(){c.history.back()}});a(k).delegate(a.mobile.dialog.prototype.options.initSelector,"pagecreate",function(){a.mobile.dialog.prototype.enhance(this)})})(jQuery,this);(function(a){a.fn.fieldcontain=function(){return this.addClass("ui-field-contain ui-body ui-br")};a(k).bind("pagecreate create",function(c){a(":jqmData(role='fieldcontain')",c.target).jqmEnhanceable().fieldcontain()})})(jQuery);(function(a){a.fn.grid=function(c){return this.each(function(){var b=
79
+ a(this),e=a.extend({grid:null},c),f=b.children(),d={solo:1,a:2,b:3,c:4,d:5},e=e.grid;if(!e)if(f.length<=5)for(var g in d)d[g]===f.length&&(e=g);else e="a";d=d[e];b.addClass("ui-grid-"+e);f.filter(":nth-child("+d+"n+1)").addClass("ui-block-a");d>1&&f.filter(":nth-child("+d+"n+2)").addClass("ui-block-b");d>2&&f.filter(":nth-child(3n+3)").addClass("ui-block-c");d>3&&f.filter(":nth-child(4n+4)").addClass("ui-block-d");d>4&&f.filter(":nth-child(5n+5)").addClass("ui-block-e")})}})(jQuery);(function(a){a(k).bind("pagecreate create",
80
+ function(c){a(":jqmData(role='nojs')",c.target).addClass("ui-nojs")})})(jQuery);(function(a,c){function b(a){for(var b;a;){if((b=typeof a.className==="string"&&a.className+" ")&&b.indexOf("ui-btn ")>-1&&b.indexOf("ui-disabled ")<0)break;a=a.parentNode}return a}a.fn.buttonMarkup=function(b){for(var b=b&&a.type(b)=="object"?b:{},d=0;d<this.length;d++){var g=this.eq(d),h=g[0],j=a.extend({},a.fn.buttonMarkup.defaults,{icon:b.icon!==c?b.icon:g.jqmData("icon"),iconpos:b.iconpos!==c?b.iconpos:g.jqmData("iconpos"),
81
+ theme:b.theme!==c?b.theme:g.jqmData("theme")||a.mobile.getInheritedTheme(g,"c"),inline:b.inline!==c?b.inline:g.jqmData("inline"),shadow:b.shadow!==c?b.shadow:g.jqmData("shadow"),corners:b.corners!==c?b.corners:g.jqmData("corners"),iconshadow:b.iconshadow!==c?b.iconshadow:g.jqmData("iconshadow"),mini:b.mini!==c?b.mini:g.jqmData("mini")},b),o="ui-btn-inner",m,p,l,r,n,q;a.each(j,function(b,c){h.setAttribute("data-"+a.mobile.ns+b,c);g.jqmData(b,c)});(q=a.data(h.tagName==="INPUT"||h.tagName==="BUTTON"?
82
+ h.parentNode:h,"buttonElements"))?(h=q.outer,g=a(h),l=q.inner,r=q.text,a(q.icon).remove(),q.icon=null):(l=k.createElement(j.wrapperEls),r=k.createElement(j.wrapperEls));n=j.icon?k.createElement("span"):null;e&&!q&&e();if(!j.theme)j.theme=a.mobile.getInheritedTheme(g,"c");m="ui-btn ui-btn-up-"+j.theme;m+=j.inline?" ui-btn-inline":"";m+=j.shadow?" ui-shadow":"";m+=j.corners?" ui-btn-corner-all":"";j.mini!==c&&(m+=j.mini?" ui-mini":" ui-fullsize");j.inline!==c&&(m+=j.inline===false?" ui-btn-block":" ui-btn-inline");
83
+ if(j.icon)j.icon="ui-icon-"+j.icon,j.iconpos=j.iconpos||"left",p="ui-icon "+j.icon,j.iconshadow&&(p+=" ui-icon-shadow");j.iconpos&&(m+=" ui-btn-icon-"+j.iconpos,j.iconpos=="notext"&&!g.attr("title")&&g.attr("title",g.getEncodedText()));o+=j.corners?" ui-btn-corner-all":"";j.iconpos&&j.iconpos==="notext"&&!g.attr("title")&&g.attr("title",g.getEncodedText());q&&g.removeClass(q.bcls||"");g.removeClass("ui-link").addClass(m);l.className=o;r.className="ui-btn-text";q||l.appendChild(r);if(n&&(n.className=
84
+ p,!q||!q.icon))n.appendChild(k.createTextNode("\u00a0")),l.appendChild(n);for(;h.firstChild&&!q;)r.appendChild(h.firstChild);q||h.appendChild(l);q={bcls:m,outer:h,inner:l,text:r,icon:n};a.data(h,"buttonElements",q);a.data(l,"buttonElements",q);a.data(r,"buttonElements",q);n&&a.data(n,"buttonElements",q)}return this};a.fn.buttonMarkup.defaults={corners:true,shadow:true,iconshadow:true,wrapperEls:"span"};var e=function(){var c=a.mobile.buttonMarkup.hoverDelay,d,g;a(k).bind({"vmousedown vmousecancel vmouseup vmouseover vmouseout focus blur scrollstart":function(e){var j,
85
+ k=a(b(e.target)),e=e.type;if(k.length)if(j=k.attr("data-"+a.mobile.ns+"theme"),e==="vmousedown")a.support.touch?d=setTimeout(function(){k.removeClass("ui-btn-up-"+j).addClass("ui-btn-down-"+j)},c):k.removeClass("ui-btn-up-"+j).addClass("ui-btn-down-"+j);else if(e==="vmousecancel"||e==="vmouseup")k.removeClass("ui-btn-down-"+j).addClass("ui-btn-up-"+j);else if(e==="vmouseover"||e==="focus")a.support.touch?g=setTimeout(function(){k.removeClass("ui-btn-up-"+j).addClass("ui-btn-hover-"+j)},c):k.removeClass("ui-btn-up-"+
86
+ j).addClass("ui-btn-hover-"+j);else if(e==="vmouseout"||e==="blur"||e==="scrollstart")k.removeClass("ui-btn-hover-"+j+" ui-btn-down-"+j).addClass("ui-btn-up-"+j),d&&clearTimeout(d),g&&clearTimeout(g)},"focusin focus":function(c){a(b(c.target)).addClass(a.mobile.focusClass)},"focusout blur":function(c){a(b(c.target)).removeClass(a.mobile.focusClass)}});e=null};a(k).bind("pagecreate create",function(b){a(":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a",
87
+ b.target).not(".ui-btn, :jqmData(role='none'), :jqmData(role='nojs')").buttonMarkup()})})(jQuery);(function(a){a.mobile.page.prototype.options.backBtnText="Back";a.mobile.page.prototype.options.addBackBtn=false;a.mobile.page.prototype.options.backBtnTheme=null;a.mobile.page.prototype.options.headerTheme="a";a.mobile.page.prototype.options.footerTheme="a";a.mobile.page.prototype.options.contentTheme=null;a(k).delegate(":jqmData(role='page'), :jqmData(role='dialog')","pagecreate",function(){var c=a(this),
88
+ b=c.data("page").options,e=c.jqmData("role"),f=b.theme;a(":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')",this).jqmEnhanceable().each(function(){var d=a(this),g=d.jqmData("role"),h=d.jqmData("theme"),j=h||b.contentTheme||e==="dialog"&&f,k;d.addClass("ui-"+g);if(g==="header"||g==="footer"){var m=h||(g==="header"?b.headerTheme:b.footerTheme)||f;d.addClass("ui-bar-"+m).attr("role",g==="header"?"banner":"contentinfo");g==="header"&&(h=d.children("a"),k=h.hasClass("ui-btn-left"),
89
+ j=h.hasClass("ui-btn-right"),k=k||h.eq(0).not(".ui-btn-right").addClass("ui-btn-left").length,j||h.eq(1).addClass("ui-btn-right"));b.addBackBtn&&g==="header"&&a(".ui-page").length>1&&c.jqmData("url")!==a.mobile.path.stripHash(location.hash)&&!k&&a("<a href='#' class='ui-btn-left' data-"+a.mobile.ns+"rel='back' data-"+a.mobile.ns+"icon='arrow-l'>"+b.backBtnText+"</a>").attr("data-"+a.mobile.ns+"theme",b.backBtnTheme||m).prependTo(d);d.children("h1, h2, h3, h4, h5, h6").addClass("ui-title").attr({role:"heading",
90
+ "aria-level":"1"})}else g==="content"&&(j&&d.addClass("ui-body-"+j),d.attr("role","main"))})})})(jQuery);(function(a){a.widget("mobile.collapsible",a.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:true,heading:"h1,h2,h3,h4,h5,h6,legend",theme:null,contentTheme:null,iconTheme:"d",mini:false,initSelector:":jqmData(role='collapsible')"},_create:function(){var c=this.element,b=this.options,e=c.addClass("ui-collapsible"),f=c.children(b.heading).first(),
91
+ d=e.wrapInner("<div class='ui-collapsible-content'></div>").find(".ui-collapsible-content"),g=c.closest(":jqmData(role='collapsible-set')").addClass("ui-collapsible-set");f.is("legend")&&(f=a("<div role='heading'>"+f.html()+"</div>").insertBefore(f),f.next().remove());if(g.length){if(!b.theme)b.theme=g.jqmData("theme")||a.mobile.getInheritedTheme(g,"c");if(!b.contentTheme)b.contentTheme=g.jqmData("content-theme");if(!b.iconPos)b.iconPos=g.jqmData("iconpos");if(!b.mini)b.mini=g.jqmData("mini")}d.addClass(b.contentTheme?
92
+ "ui-body-"+b.contentTheme:"");f.insertBefore(d).addClass("ui-collapsible-heading").append("<span class='ui-collapsible-heading-status'></span>").wrapInner("<a href='#' class='ui-collapsible-heading-toggle'></a>").find("a").first().buttonMarkup({shadow:false,corners:false,iconpos:c.jqmData("iconpos")||b.iconPos||"left",icon:"plus",mini:b.mini,theme:b.theme}).add(".ui-btn-inner",c).addClass("ui-corner-top ui-corner-bottom");e.bind("expand collapse",function(c){if(!c.isDefaultPrevented()){c.preventDefault();
93
+ var j=a(this),c=c.type==="collapse",k=b.contentTheme;f.toggleClass("ui-collapsible-heading-collapsed",c).find(".ui-collapsible-heading-status").text(c?b.expandCueText:b.collapseCueText).end().find(".ui-icon").toggleClass("ui-icon-minus",!c).toggleClass("ui-icon-plus",c);j.toggleClass("ui-collapsible-collapsed",c);d.toggleClass("ui-collapsible-content-collapsed",c).attr("aria-hidden",c);if(k&&(!g.length||e.jqmData("collapsible-last")))f.find("a").first().add(f.find(".ui-btn-inner")).toggleClass("ui-corner-bottom",
94
+ c),d.toggleClass("ui-corner-bottom",!c);d.trigger("updatelayout")}}).trigger(b.collapsed?"collapse":"expand");f.bind("click",function(a){var b=f.is(".ui-collapsible-heading-collapsed")?"expand":"collapse";e.trigger(b);a.preventDefault()})}});a(k).bind("pagecreate create",function(c){a.mobile.collapsible.prototype.enhanceWithin(c.target)})})(jQuery);(function(a,c){a.widget("mobile.collapsibleset",a.mobile.widget,{options:{initSelector:":jqmData(role='collapsible-set')"},_create:function(){var b=this.element.addClass("ui-collapsible-set"),
95
+ e=this.options;if(!e.theme)e.theme=a.mobile.getInheritedTheme(b,"c");if(!e.contentTheme)e.contentTheme=b.jqmData("content-theme");if(!e.corners)e.corners=b.jqmData("corners")===c?true:false;b.jqmData("collapsiblebound")||b.jqmData("collapsiblebound",true).bind("expand collapse",function(b){var c=b.type==="collapse",b=a(b.target).closest(".ui-collapsible"),e=b.data("collapsible");e.options.contentTheme&&b.jqmData("collapsible-last")&&(b.find(e.options.heading).first().find("a").first().add(".ui-btn-inner").toggleClass("ui-corner-bottom",
96
+ c),b.find(".ui-collapsible-content").toggleClass("ui-corner-bottom",!c))}).bind("expand",function(b){a(b.target).closest(".ui-collapsible").siblings(".ui-collapsible").trigger("collapse")})},_init:function(){this.refresh()},refresh:function(){var b=this.options,c=this.element.children(":jqmData(role='collapsible')");a.mobile.collapsible.prototype.enhance(c.not(".ui-collapsible"));c.each(function(){a(this).find(a.mobile.collapsible.prototype.options.heading).find("a").first().add(".ui-btn-inner").removeClass("ui-corner-top ui-corner-bottom")});
97
+ c.first().find("a").first().addClass(b.corners?"ui-corner-top":"").find(".ui-btn-inner").addClass("ui-corner-top");c.last().jqmData("collapsible-last",true).find("a").first().addClass(b.corners?"ui-corner-bottom":"").find(".ui-btn-inner").addClass("ui-corner-bottom")}});a(k).bind("pagecreate create",function(b){a.mobile.collapsibleset.prototype.enhanceWithin(b.target)})})(jQuery);(function(a,c){a.widget("mobile.navbar",a.mobile.widget,{options:{iconpos:"top",grid:null,initSelector:":jqmData(role='navbar')"},
98
+ _create:function(){var b=this.element,e=b.find("a"),f=e.filter(":jqmData(icon)").length?this.options.iconpos:c;b.addClass("ui-navbar").attr("role","navigation").find("ul").jqmEnhanceable().grid({grid:this.options.grid});f||b.addClass("ui-navbar-noicons");e.buttonMarkup({corners:false,shadow:false,inline:true,iconpos:f});b.delegate("a","vclick",function(b){a(b.target).hasClass("ui-disabled")||(e.removeClass(a.mobile.activeBtnClass),a(this).addClass(a.mobile.activeBtnClass))});b.closest(".ui-page").bind("pagebeforeshow",
99
+ function(){e.filter(".ui-state-persist").addClass(a.mobile.activeBtnClass)})}});a(k).bind("pagecreate create",function(b){a.mobile.navbar.prototype.enhanceWithin(b.target)})})(jQuery);(function(a){var c={};a.widget("mobile.listview",a.mobile.widget,{options:{theme:null,countTheme:"c",headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",mini:false,inset:false,initSelector:":jqmData(role='listview')"},_create:function(){var a="";a+=this.options.inset?" ui-listview-inset ui-corner-all ui-shadow ":
100
+ "";a+=this.element.jqmData("mini")||this.options.mini===true?" ui-mini":"";this.element.addClass(function(c,f){return f+" ui-listview "+a});this.refresh(true)},_removeCorners:function(a,c){a=a.add(a.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb"));c==="top"?a.removeClass("ui-corner-top ui-corner-tr ui-corner-tl"):c==="bottom"?a.removeClass("ui-corner-bottom ui-corner-br ui-corner-bl"):a.removeClass("ui-corner-top ui-corner-tr ui-corner-tl ui-corner-bottom ui-corner-br ui-corner-bl")},_refreshCorners:function(a){var c,
101
+ f;this.options.inset&&(c=this.element.children("li"),f=a?c.not(".ui-screen-hidden"):c.filter(":visible"),this._removeCorners(c),c=f.first().addClass("ui-corner-top"),c.add(c.find(".ui-btn-inner").not(".ui-li-link-alt span:first-child")).addClass("ui-corner-top").end().find(".ui-li-link-alt, .ui-li-link-alt span:first-child").addClass("ui-corner-tr").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-tl"),f=f.last().addClass("ui-corner-bottom"),f.add(f.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-bl"));
102
+ a||this.element.trigger("updatelayout")},_findFirstElementByTagName:function(a,c,f,d){var g={};for(g[f]=g[d]=true;a;){if(g[a.nodeName])return a;a=a[c]}return null},_getChildrenByTagName:function(b,c,f){var d=[],g={};g[c]=g[f]=true;for(b=b.firstChild;b;)g[b.nodeName]&&d.push(b),b=b.nextSibling;return a(d)},_addThumbClasses:function(b){var c,f,d=b.length;for(c=0;c<d;c++)f=a(this._findFirstElementByTagName(b[c].firstChild,"nextSibling","img","IMG")),f.length&&(f.addClass("ui-li-thumb"),a(this._findFirstElementByTagName(f[0].parentNode,
103
+ "parentNode","li","LI")).addClass(f.is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb"))},refresh:function(b){this.parentPage=this.element.closest(".ui-page");this._createSubPages();var c=this.options,f=this.element,d=f.jqmData("dividertheme")||c.dividerTheme,g=f.jqmData("splittheme"),h=f.jqmData("spliticon"),j=this._getChildrenByTagName(f[0],"li","LI"),o=a.support.cssPseudoElement||!a.nodeName(f[0],"ol")?0:1,m={},p,l,r,n,q,t,x;o&&f.find(".ui-li-dec").remove();if(!c.theme)c.theme=a.mobile.getInheritedTheme(this.element,
104
+ "c");for(var u=0,w=j.length;u<w;u++){p=j.eq(u);l="ui-li";if(b||!p.hasClass("ui-li"))r=p.jqmData("theme")||c.theme,n=this._getChildrenByTagName(p[0],"a","A"),n.length?(t=p.jqmData("icon"),p.buttonMarkup({wrapperEls:"div",shadow:false,corners:false,iconpos:"right",icon:n.length>1||t===false?false:t||"arrow-r",theme:r}),t!=false&&n.length==1&&p.addClass("ui-li-has-arrow"),n.first().removeClass("ui-link").addClass("ui-link-inherit"),n.length>1&&(l+=" ui-li-has-alt",n=n.last(),q=g||n.jqmData("theme")||
105
+ c.splitTheme,x=n.jqmData("icon"),n.appendTo(p).attr("title",n.getEncodedText()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:false,corners:false,theme:r,icon:false,iconpos:false}).find(".ui-btn-inner").append(a(k.createElement("span")).buttonMarkup({shadow:true,corners:true,theme:q,iconpos:"notext",icon:x||t||h||c.splitIcon})))):p.jqmData("role")==="list-divider"?(l+=" ui-li-divider ui-bar-"+d,p.attr("role","heading"),o&&(o=1)):l+=" ui-li-static ui-body-"+r;o&&l.indexOf("ui-li-divider")<
106
+ 0&&(r=p.is(".ui-li-static:first")?p:p.find(".ui-link-inherit"),r.addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+o++ +". </span>"));m[l]||(m[l]=[]);m[l].push(p[0])}for(l in m)a(m[l]).addClass(l).children(".ui-btn-inner").addClass(l);f.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading").end().find("p, dl").addClass("ui-li-desc").end().find(".ui-li-aside").each(function(){var b=a(this);b.prependTo(b.parent())}).end().find(".ui-li-count").each(function(){a(this).closest("li").addClass("ui-li-has-count")}).addClass("ui-btn-up-"+
107
+ (f.jqmData("counttheme")||this.options.countTheme)+" ui-btn-corner-all");this._addThumbClasses(j);this._addThumbClasses(f.find(".ui-link-inherit"));this._refreshCorners(b)},_idStringEscape:function(a){return a.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var b=this.element,e=b.closest(".ui-page"),f=e.jqmData("url"),d=f||e[0][a.expando],g=b.attr("id"),h=this.options,j="data-"+a.mobile.ns,k=this,m=e.find(":jqmData(role='footer')").jqmData("id"),p;typeof c[d]==="undefined"&&(c[d]=-1);g=g||
108
+ ++c[d];a(b.find("li>ul, li>ol").toArray().reverse()).each(function(c){var d=a(this),e=d.attr("id")||g+"-"+c,c=d.parent(),k=a(d.prevAll().toArray().reverse()),k=k.length?k:a("<span>"+a.trim(c.contents()[0].nodeValue)+"</span>"),o=k.first().getEncodedText(),e=(f||"")+"&"+a.mobile.subPageUrlKey+"="+e,x=d.jqmData("theme")||h.theme,u=d.jqmData("counttheme")||b.jqmData("counttheme")||h.countTheme;p=true;d.detach().wrap("<div "+j+"role='page' "+j+"url='"+e+"' "+j+"theme='"+x+"' "+j+"count-theme='"+u+"'><div "+
109
+ j+"role='content'></div></div>").parent().before("<div "+j+"role='header' "+j+"theme='"+h.headerTheme+"'><div class='ui-title'>"+o+"</div></div>").after(m?a("<div "+j+"role='footer' "+j+"id='"+m+"'>"):"").parent().appendTo(a.mobile.pageContainer).page();d=c.find("a:first");d.length||(d=a("<a/>").html(k||o).prependTo(c.empty()));d.attr("href","#"+e)}).listview();p&&e.is(":jqmData(external-page='true')")&&e.data("page").options.domCache===false&&e.unbind("pagehide.remove").bind("pagehide.remove",function(b,
110
+ c){var d=c.nextPage;c.nextPage&&(d=d.jqmData("url"),d.indexOf(f+"&"+a.mobile.subPageUrlKey)!==0&&(k.childPages().remove(),e.remove()))})},childPages:function(){var b=this.parentPage.jqmData("url");return a(":jqmData(url^='"+b+"&"+a.mobile.subPageUrlKey+"')")}});a(k).bind("pagecreate create",function(b){a.mobile.listview.prototype.enhanceWithin(b.target)})})(jQuery);(function(a,c){a.widget("mobile.checkboxradio",a.mobile.widget,{options:{theme:null,initSelector:"input[type='checkbox'],input[type='radio']"},
111
+ _create:function(){var b=this,e=this.element,f=a(e).closest("label"),d=f.length?f:a(e).closest("form,fieldset,:jqmData(role='page'),:jqmData(role='dialog')").find("label").filter("[for='"+e[0].id+"']"),g=e[0].type,f=e.jqmData("mini")||e.closest("form,fieldset").jqmData("mini"),h=g+"-on",j=g+"-off",o=e.parents(":jqmData(type='horizontal')").length?c:j,m=e.jqmData("iconpos")||e.closest("form,fieldset").jqmData("iconpos");if(!(g!=="checkbox"&&g!=="radio")){a.extend(this,{label:d,inputtype:g,checkedClass:"ui-"+
112
+ h+(o?"":" "+a.mobile.activeBtnClass),uncheckedClass:"ui-"+j,checkedicon:"ui-icon-"+h,uncheckedicon:"ui-icon-"+j});if(!this.options.theme)this.options.theme=a.mobile.getInheritedTheme(this.element,"c");d.buttonMarkup({theme:this.options.theme,icon:o,shadow:false,mini:f,iconpos:m});f=k.createElement("div");f.className="ui-"+g;e.add(d).wrapAll(f);d.bind({vmouseover:function(b){a(this).parent().is(".ui-disabled")&&b.stopPropagation()},vclick:function(a){if(e.is(":disabled"))a.preventDefault();else return b._cacheVals(),
113
+ e.prop("checked",g==="radio"&&true||!e.prop("checked")),e.triggerHandler("click"),b._getInputSet().not(e).prop("checked",false),b._updateAll(),false}});e.bind({vmousedown:function(){b._cacheVals()},vclick:function(){var c=a(this);c.is(":checked")?(c.prop("checked",true),b._getInputSet().not(c).prop("checked",false)):c.prop("checked",false);b._updateAll()},focus:function(){d.addClass(a.mobile.focusClass)},blur:function(){d.removeClass(a.mobile.focusClass)}});this.refresh()}},_cacheVals:function(){this._getInputSet().each(function(){a(this).jqmData("cacheVal",
114
+ this.checked)})},_getInputSet:function(){return this.inputtype==="checkbox"?this.element:this.element.closest("form,fieldset,:jqmData(role='page')").find("input[name='"+this.element[0].name+"'][type='"+this.inputtype+"']")},_updateAll:function(){var b=this;this._getInputSet().each(function(){var c=a(this);(this.checked||b.inputtype==="checkbox")&&c.trigger("change")}).checkboxradio("refresh")},refresh:function(){var a=this.element[0],c=this.label,f=c.find(".ui-icon");a.checked?(c.addClass(this.checkedClass).removeClass(this.uncheckedClass),
115
+ f.addClass(this.checkedicon).removeClass(this.uncheckedicon)):(c.removeClass(this.checkedClass).addClass(this.uncheckedClass),f.removeClass(this.checkedicon).addClass(this.uncheckedicon));a.disabled?this.disable():this.enable()},disable:function(){this.element.prop("disabled",true).parent().addClass("ui-disabled")},enable:function(){this.element.prop("disabled",false).parent().removeClass("ui-disabled")}});a(k).bind("pagecreate create",function(b){a.mobile.checkboxradio.prototype.enhanceWithin(b.target,
116
+ true)})})(jQuery);(function(a,c){a.widget("mobile.button",a.mobile.widget,{options:{theme:null,icon:null,iconpos:null,inline:false,corners:true,shadow:true,iconshadow:true,initSelector:"button, [type='button'], [type='submit'], [type='reset'], [type='image']",mini:false},_create:function(){var b=this.element,e,f=this.options,d;d="";var g;if(b[0].tagName==="A")!b.hasClass("ui-btn")&&b.buttonMarkup();else{if(!this.options.theme)this.options.theme=a.mobile.getInheritedTheme(this.element,"c");~b[0].className.indexOf("ui-btn-left")&&
117
+ (d="ui-btn-left");~b[0].className.indexOf("ui-btn-right")&&(d="ui-btn-right");e=this.button=a("<div></div>").text(b.text()||b.val()).insertBefore(b).buttonMarkup({theme:f.theme,icon:f.icon,iconpos:f.iconpos,inline:f.inline,corners:f.corners,shadow:f.shadow,iconshadow:f.iconshadow,mini:f.mini}).addClass(d).append(b.addClass("ui-btn-hidden"));f=b.attr("type");d=b.attr("name");f!=="button"&&f!=="reset"&&d&&b.bind("vclick",function(){g===c&&(g=a("<input>",{type:"hidden",name:b.attr("name"),value:b.attr("value")}).insertBefore(b),
118
+ a(k).one("submit",function(){g.remove();g=c}))});b.bind({focus:function(){e.addClass(a.mobile.focusClass)},blur:function(){e.removeClass(a.mobile.focusClass)}});this.refresh()}},enable:function(){this.element.attr("disabled",false);this.button.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.button.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)},refresh:function(){var b=
119
+ this.element;b.prop("disabled")?this.disable():this.enable();a(this.button.data("buttonElements").text).text(b.text()||b.val())}});a(k).bind("pagecreate create",function(b){a.mobile.button.prototype.enhanceWithin(b.target,true)})})(jQuery);(function(a){a.fn.controlgroup=function(c){function b(a,b){a.removeClass("ui-btn-corner-all ui-shadow").eq(0).addClass(b[0]).end().last().addClass(b[1]).addClass("ui-controlgroup-last")}return this.each(function(){var e=a(this),f=a.extend({direction:e.jqmData("type")||
120
+ "vertical",shadow:false,excludeInvisible:true,mini:e.jqmData("mini")},c),d=e.children("legend"),g=f.direction=="horizontal"?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"];e.find("input").first().attr("type");d.length&&(e.wrapInner("<div class='ui-controlgroup-controls'></div>"),a("<div role='heading' class='ui-controlgroup-label'>"+d.html()+"</div>").insertBefore(e.children(0)),d.remove());e.addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+f.direction);b(e.find(".ui-btn"+
121
+ (f.excludeInvisible?":visible":"")).not(".ui-slider-handle"),g);b(e.find(".ui-btn-inner"),g);f.shadow&&e.addClass("ui-shadow");f.mini&&e.addClass("ui-mini")})}})(jQuery);(function(a){a(k).bind("pagecreate create",function(c){a(c.target).find("a").jqmEnhanceable().not(".ui-btn, .ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')").addClass("ui-link")})})(jQuery);(function(a){var c=a("meta[name=viewport]"),b=c.attr("content"),e=b+",maximum-scale=1, user-scalable=no",f=b+",maximum-scale=10, user-scalable=yes",
122
+ d=/(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test(b);a.mobile.zoom=a.extend({},{enabled:!d,locked:false,disable:function(b){if(!d&&!a.mobile.zoom.locked)c.attr("content",e),a.mobile.zoom.enabled=false,a.mobile.zoom.locked=b||false},enable:function(b){if(!d&&(!a.mobile.zoom.locked||b===true))c.attr("content",f),a.mobile.zoom.enabled=true,a.mobile.zoom.locked=false},restore:function(){if(!d)c.attr("content",b),a.mobile.zoom.enabled=true}})})(jQuery);(function(a){a.widget("mobile.textinput",
123
+ a.mobile.widget,{options:{theme:null,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1,initSelector:"input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])",
124
+ clearSearchButtonText:"clear text"},_create:function(){var c=this.element,b=this.options,e=b.theme||a.mobile.getInheritedTheme(this.element,"c"),f=" ui-body-"+e,d=c.jqmData("mini")==true,g=d?" ui-mini":"",h,j;a("label[for='"+c.attr("id")+"']").addClass("ui-input-text");h=c.addClass("ui-input-text ui-body-"+e);typeof c[0].autocorrect!=="undefined"&&!a.support.touchOverflow&&(c[0].setAttribute("autocorrect","off"),c[0].setAttribute("autocomplete","off"));c.is("[type='search'],:jqmData(type='search')")?
125
+ (h=c.wrap("<div class='ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield"+f+g+"'></div>").parent(),j=a("<a href='#' class='ui-input-clear' title='"+b.clearSearchButtonText+"'>"+b.clearSearchButtonText+"</a>").bind("click",function(a){c.val("").focus().trigger("change");j.addClass("ui-input-clear-hidden");a.preventDefault()}).appendTo(h).buttonMarkup({icon:"delete",iconpos:"notext",corners:true,shadow:true,mini:d}),e=function(){setTimeout(function(){j.toggleClass("ui-input-clear-hidden",
126
+ !c.val())},0)},e(),c.bind("paste cut keyup focus change blur",e)):c.addClass("ui-corner-all ui-shadow-inset"+f+g);c.focus(function(){h.addClass(a.mobile.focusClass)}).blur(function(){h.removeClass(a.mobile.focusClass)}).bind("focus",function(){b.preventFocusZoom&&a.mobile.zoom.disable(true)}).bind("blur",function(){b.preventFocusZoom&&a.mobile.zoom.enable(true)});if(c.is("textarea")){var o=function(){var a=c[0].scrollHeight;c[0].clientHeight<a&&c.height(a+15)},m;c.keyup(function(){clearTimeout(m);
127
+ m=setTimeout(o,100)});a(k).one("pagechange",o);a.trim(c.val())&&a(s).load(o)}},disable:function(){(this.element.attr("disabled",true).is("[type='search'],:jqmData(type='search')")?this.element.parent():this.element).addClass("ui-disabled")},enable:function(){(this.element.attr("disabled",false).is("[type='search'],:jqmData(type='search')")?this.element.parent():this.element).removeClass("ui-disabled")}});a(k).bind("pagecreate create",function(c){a.mobile.textinput.prototype.enhanceWithin(c.target,
128
+ true)})})(jQuery);(function(a){a.mobile.listview.prototype.options.filter=false;a.mobile.listview.prototype.options.filterPlaceholder="Filter items...";a.mobile.listview.prototype.options.filterTheme="c";a.mobile.listview.prototype.options.filterCallback=function(a,b){return a.toLowerCase().indexOf(b)===-1};a(k).delegate(":jqmData(role='listview')","listviewcreate",function(){var c=a(this),b=c.data("listview");if(b.options.filter){var e=a("<form>",{"class":"ui-listview-filter ui-bar-"+b.options.filterTheme,
129
+ role:"search"});a("<input>",{placeholder:b.options.filterPlaceholder}).attr("data-"+a.mobile.ns+"type","search").jqmData("lastval","").bind("keyup change",function(){var e=a(this),d=this.value.toLowerCase(),g=null,g=e.jqmData("lastval")+"",h=false,j="";e.jqmData("lastval",d);g=d.length<g.length||d.indexOf(g)!==0?c.children():c.children(":not(.ui-screen-hidden)");if(d){for(var k=g.length-1;k>=0;k--)e=a(g[k]),j=e.jqmData("filtertext")||e.text(),e.is("li:jqmData(role=list-divider)")?(e.toggleClass("ui-filter-hidequeue",
130
+ !h),h=false):b.options.filterCallback(j,d)?e.toggleClass("ui-filter-hidequeue",true):h=true;g.filter(":not(.ui-filter-hidequeue)").toggleClass("ui-screen-hidden",false);g.filter(".ui-filter-hidequeue").toggleClass("ui-screen-hidden",true).toggleClass("ui-filter-hidequeue",false)}else g.toggleClass("ui-screen-hidden",false);b._refreshCorners()}).appendTo(e).textinput();b.options.inset&&e.addClass("ui-listview-filter-inset");e.bind("submit",function(){return false}).insertBefore(c)}})})(jQuery);(function(a,
131
+ c){a.widget("mobile.slider",a.mobile.widget,{options:{theme:null,trackTheme:null,disabled:false,initSelector:"input[type='range'], :jqmData(type='range'), :jqmData(role='slider')",mini:false},_create:function(){var b=this,e=this.element,f=a.mobile.getInheritedTheme(e,"c"),d=this.options.theme||f,f=this.options.trackTheme||f,g=e[0].nodeName.toLowerCase(),h=g=="select"?"ui-slider-switch":"",j=e.attr("id"),o=j+"-label",j=a("[for='"+j+"']").attr("id",o),m=function(){return g=="input"?parseFloat(e.val()):
132
+ e[0].selectedIndex},p=g=="input"?parseFloat(e.attr("min")):0,l=g=="input"?parseFloat(e.attr("max")):e.find("option").length-1,r=s.parseFloat(e.attr("step")||1),n=this.options.inline||e.jqmData("inline")==true?" ui-slider-inline":"",q=this.options.mini||e.jqmData("mini")?" ui-slider-mini":"",t=k.createElement("a"),x=a(t),u=k.createElement("div"),w=a(u),v=e.jqmData("highlight")&&g!="select"?function(){var b=k.createElement("div");b.className="ui-slider-bg ui-btn-active ui-btn-corner-all";return a(b).prependTo(w)}():
133
+ false;t.setAttribute("href","#");u.setAttribute("role","application");u.className=["ui-slider ",h," ui-btn-down-",f," ui-btn-corner-all",n,q].join("");t.className="ui-slider-handle";u.appendChild(t);x.buttonMarkup({corners:true,theme:d,shadow:true}).attr({role:"slider","aria-valuemin":p,"aria-valuemax":l,"aria-valuenow":m(),"aria-valuetext":m(),title:m(),"aria-labelledby":o});a.extend(this,{slider:w,handle:x,valuebg:v,dragging:false,beforeStart:null,userModified:false,mouseMoved:false});if(g=="select"){d=
134
+ k.createElement("div");d.className="ui-slider-inneroffset";h=0;for(o=u.childNodes.length;h<o;h++)d.appendChild(u.childNodes[h]);u.appendChild(d);x.addClass("ui-slider-handle-snapping");u=e.find("option");d=0;for(h=u.length;d<h;d++)o=!d?"b":"a",n=!d?" ui-btn-down-"+f:" "+a.mobile.activeBtnClass,k.createElement("div"),q=k.createElement("span"),q.className=["ui-slider-label ui-slider-label-",o,n," ui-btn-corner-all"].join(""),q.setAttribute("role","img"),q.appendChild(k.createTextNode(u[d].innerHTML)),
135
+ a(q).prependTo(w);b._labels=a(".ui-slider-label",w)}j.addClass("ui-slider");e.addClass(g==="input"?"ui-slider-input":"ui-slider-switch").change(function(){b.mouseMoved||b.refresh(m(),true)}).keyup(function(){b.refresh(m(),true,true)}).blur(function(){b.refresh(m(),true)});a(k).bind("vmousemove",function(a){if(b.dragging)return b.mouseMoved=true,g==="select"&&x.removeClass("ui-slider-handle-snapping"),b.refresh(a),b.userModified=b.beforeStart!==e[0].selectedIndex,false});w.bind("vmousedown",function(a){b.dragging=
136
+ true;b.userModified=false;b.mouseMoved=false;if(g==="select")b.beforeStart=e[0].selectedIndex;b.refresh(a);return false}).bind("vclick",false);w.add(k).bind("vmouseup",function(){if(b.dragging)return b.dragging=false,g==="select"&&(x.addClass("ui-slider-handle-snapping"),b.mouseMoved?b.userModified?b.refresh(b.beforeStart==0?1:0):b.refresh(b.beforeStart):b.refresh(b.beforeStart==0?1:0)),b.mouseMoved=false});w.insertAfter(e);g=="select"&&this.handle.bind({focus:function(){w.addClass(a.mobile.focusClass)},
137
+ blur:function(){w.removeClass(a.mobile.focusClass)}});this.handle.bind({vmousedown:function(){a(this).focus()},vclick:false,keydown:function(c){var d=m();if(!b.options.disabled){switch(c.keyCode){case a.mobile.keyCode.HOME:case a.mobile.keyCode.END:case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:if(c.preventDefault(),!b._keySliding)b._keySliding=true,a(this).addClass("ui-state-active")}switch(c.keyCode){case a.mobile.keyCode.HOME:b.refresh(p);
138
+ break;case a.mobile.keyCode.END:b.refresh(l);break;case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:b.refresh(d+r);break;case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:b.refresh(d-r)}}},keyup:function(){if(b._keySliding)b._keySliding=false,a(this).removeClass("ui-state-active")}});this.refresh(c,c,true)},refresh:function(b,c,f){(this.options.disabled||this.element.attr("disabled"))&&this.disable();var d=this.element,g=d[0].nodeName.toLowerCase(),
139
+ h=g==="input"?parseFloat(d.attr("min")):0,j=g==="input"?parseFloat(d.attr("max")):d.find("option").length-1,k=g==="input"&&parseFloat(d.attr("step"))>0?parseFloat(d.attr("step")):1;if(typeof b==="object"){if(!this.dragging||b.pageX<this.slider.offset().left-8||b.pageX>this.slider.offset().left+this.slider.width()+8)return;b=Math.round((b.pageX-this.slider.offset().left)/this.slider.width()*100)}else b==null&&(b=g==="input"?parseFloat(d.val()||0):d[0].selectedIndex),b=(parseFloat(b)-h)/(j-h)*100;if(!isNaN(b)){b<
140
+ 0&&(b=0);b>100&&(b=100);var m=b/100*(j-h)+h,p=(m-h)%k;m-=p;Math.abs(p)*2>=k&&(m+=p>0?k:-k);m=parseFloat(m.toFixed(5));m<h&&(m=h);m>j&&(m=j);this.handle.css("left",b+"%");this.handle.attr({"aria-valuenow":g==="input"?m:d.find("option").eq(m).attr("value"),"aria-valuetext":g==="input"?m:d.find("option").eq(m).getEncodedText(),title:g==="input"?m:d.find("option").eq(m).getEncodedText()});this.valuebg&&this.valuebg.css("width",b+"%");if(this._labels){var h=this.handle.width()/this.slider.width()*100,
141
+ l=b&&h+(100-h)*b/100,r=b===100?0:Math.min(h+100-l,100);this._labels.each(function(){var b=a(this).is(".ui-slider-label-a");a(this).width((b?l:r)+"%")})}if(!f)f=false,g==="input"?(f=d.val()!==m,d.val(m)):(f=d[0].selectedIndex!==m,d[0].selectedIndex=m),!c&&f&&d.trigger("change")}},enable:function(){this.element.attr("disabled",false);this.slider.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.slider.addClass("ui-disabled").attr("aria-disabled",
142
+ true);return this._setOption("disabled",true)}});a(k).bind("pagecreate create",function(b){a.mobile.slider.prototype.enhanceWithin(b.target,true)})})(jQuery);(function(a){a.widget("mobile.selectmenu",a.mobile.widget,{options:{theme:null,disabled:false,icon:"arrow-d",iconpos:"right",inline:false,corners:true,shadow:true,iconshadow:true,overlayTheme:"a",hidePlaceholderMenuItems:true,closeText:"Close",nativeMenu:true,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>
143
+ -1,initSelector:"select:not(:jqmData(role='slider'))",mini:false},_button:function(){return a("<div/>")},_setDisabled:function(a){this.element.attr("disabled",a);this.button.attr("aria-disabled",a);return this._setOption("disabled",a)},_focusButton:function(){var a=this;setTimeout(function(){a.button.focus()},40)},_selectOptions:function(){return this.select.find("option")},_preExtension:function(){var c="";~this.element[0].className.indexOf("ui-btn-left")&&(c=" ui-btn-left");~this.element[0].className.indexOf("ui-btn-right")&&
144
+ (c=" ui-btn-right");this.select=this.element.wrap("<div class='ui-select"+c+"'>");this.selectID=this.select.attr("id");this.label=a("label[for='"+this.selectID+"']").addClass("ui-select");this.isMultiple=this.select[0].multiple;if(!this.options.theme)this.options.theme=a.mobile.getInheritedTheme(this.select,"c")},_create:function(){this._preExtension();this._trigger("beforeCreate");this.button=this._button();var c=this,b=this.options,e=this.button.text(a(this.select[0].options.item(this.select[0].selectedIndex==
145
+ -1?0:this.select[0].selectedIndex)).text()).insertBefore(this.select).buttonMarkup({theme:b.theme,icon:b.icon,iconpos:b.iconpos,inline:b.inline,corners:b.corners,shadow:b.shadow,iconshadow:b.iconshadow,mini:b.mini});b.nativeMenu&&s.opera&&s.opera.version&&this.select.addClass("ui-select-nativeonly");if(this.isMultiple)this.buttonCount=a("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(e.addClass("ui-li-has-count"));(b.disabled||this.element.attr("disabled"))&&this.disable();
146
+ this.select.change(function(){c.refresh()});this.build()},build:function(){var c=this;this.select.appendTo(c.button).bind("vmousedown",function(){c.button.addClass(a.mobile.activeBtnClass)}).bind("focus",function(){c.button.addClass(a.mobile.focusClass)}).bind("blur",function(){c.button.removeClass(a.mobile.focusClass)}).bind("focus vmouseover",function(){c.button.trigger("vmouseover")}).bind("vmousemove",function(){c.button.removeClass(a.mobile.activeBtnClass)}).bind("change blur vmouseout",function(){c.button.trigger("vmouseout").removeClass(a.mobile.activeBtnClass)}).bind("change blur",
147
+ function(){c.button.removeClass("ui-btn-down-"+c.options.theme)});c.button.bind("vmousedown",function(){c.options.preventFocusZoom&&a.mobile.zoom.disable(true)}).bind("mouseup",function(){c.options.preventFocusZoom&&a.mobile.zoom.enable(true)})},selected:function(){return this._selectOptions().filter(":selected")},selectedIndices:function(){var a=this;return this.selected().map(function(){return a._selectOptions().index(this)}).get()},setButtonText:function(){var c=this,b=this.selected();this.button.find(".ui-btn-text").text(function(){return!c.isMultiple?
148
+ b.text():b.length?b.map(function(){return a(this).text()}).get().join(", "):c.placeholder})},setButtonCount:function(){var a=this.selected();this.isMultiple&&this.buttonCount[a.length>1?"show":"hide"]().text(a.length)},refresh:function(){this.setButtonText();this.setButtonCount()},open:a.noop,close:a.noop,disable:function(){this._setDisabled(true);this.button.addClass("ui-disabled")},enable:function(){this._setDisabled(false);this.button.removeClass("ui-disabled")}});a(k).bind("pagecreate create",
149
+ function(c){a.mobile.selectmenu.prototype.enhanceWithin(c.target,true)})})(jQuery);(function(a){var c=function(b){var c=b.selectID,f=b.label,d=b.select.closest(".ui-page"),g=a("<div>",{"class":"ui-selectmenu-screen ui-screen-hidden"}).appendTo(d),h=b._selectOptions(),j=b.isMultiple=b.select[0].multiple,o=c+"-button",m=c+"-menu",p=a("<div data-"+a.mobile.ns+"role='dialog' data-"+a.mobile.ns+"theme='"+b.options.theme+"' data-"+a.mobile.ns+"overlay-theme='"+b.options.overlayTheme+"'><div data-"+a.mobile.ns+
150
+ "role='header'><div class='ui-title'>"+f.getEncodedText()+"</div></div><div data-"+a.mobile.ns+"role='content'></div></div>"),l=a("<div>",{"class":"ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all ui-body-"+b.options.overlayTheme+" "+a.mobile.defaultDialogTransition}).insertAfter(g),r=a("<ul>",{"class":"ui-selectmenu-list",id:m,role:"listbox","aria-labelledby":o}).attr("data-"+a.mobile.ns+"theme",b.options.theme).appendTo(l),n=a("<div>",{"class":"ui-header ui-bar-"+b.options.theme}).prependTo(l),
151
+ q=a("<h1>",{"class":"ui-title"}).appendTo(n),t;b.isMultiple&&(t=a("<a>",{text:b.options.closeText,href:"#","class":"ui-btn-left"}).attr("data-"+a.mobile.ns+"iconpos","notext").attr("data-"+a.mobile.ns+"icon","delete").appendTo(n).buttonMarkup());a.extend(b,{select:b.select,selectID:c,buttonId:o,menuId:m,thisPage:d,menuPage:p,label:f,screen:g,selectOptions:h,isMultiple:j,theme:b.options.theme,listbox:l,list:r,header:n,headerTitle:q,headerClose:t,menuPageContent:void 0,menuPageClose:void 0,placeholder:"",
152
+ build:function(){var c=this;c.refresh();c.select.attr("tabindex","-1").focus(function(){a(this).blur();c.button.focus()});c.button.bind("vclick keydown",function(b){if(b.type=="vclick"||b.keyCode&&(b.keyCode===a.mobile.keyCode.ENTER||b.keyCode===a.mobile.keyCode.SPACE))c.open(),b.preventDefault()});c.list.attr("role","listbox").bind("focusin",function(b){a(b.target).attr("tabindex","0").trigger("vmouseover")}).bind("focusout",function(b){a(b.target).attr("tabindex","-1").trigger("vmouseout")}).delegate("li:not(.ui-disabled, .ui-li-divider)",
153
+ "click",function(b){var d=c.select[0].selectedIndex,e=c.list.find("li:not(.ui-li-divider)").index(this),f=c._selectOptions().eq(e)[0];f.selected=c.isMultiple?!f.selected:true;c.isMultiple&&a(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",f.selected).toggleClass("ui-icon-checkbox-off",!f.selected);(c.isMultiple||d!==e)&&c.select.trigger("change");c.isMultiple||c.close();b.preventDefault()}).keydown(function(c){var d=a(c.target),e=d.closest("li");switch(c.keyCode){case 38:return c=e.prev().not(".ui-selectmenu-placeholder"),
154
+ c.is(".ui-li-divider")&&(c=c.prev()),c.length&&(d.blur().attr("tabindex","-1"),c.addClass("ui-btn-down-"+b.options.theme).find("a").first().focus()),false;case 40:return c=e.next(),c.is(".ui-li-divider")&&(c=c.next()),c.length&&(d.blur().attr("tabindex","-1"),c.addClass("ui-btn-down-"+b.options.theme).find("a").first().focus()),false;case 13:case 32:return d.trigger("click"),false}});c.menuPage.bind("pagehide",function(){c.list.appendTo(c.listbox);c._focusButton();a.mobile._bindPageRemove.call(c.thisPage)});
155
+ c.screen.bind("vclick",function(){c.close()});c.isMultiple&&c.headerClose.click(function(){if(c.menuType=="overlay")return c.close(),false});c.thisPage.addDependents(this.menuPage)},_isRebuildRequired:function(){var a=this.list.find("li");return this._selectOptions().text()!==a.text()},refresh:function(b){var c=this;this._selectOptions();this.selected();var d=this.selectedIndices();(b||this._isRebuildRequired())&&c._buildList();c.setButtonText();c.setButtonCount();c.list.find("li:not(.ui-li-divider)").removeClass(a.mobile.activeBtnClass).attr("aria-selected",
156
+ false).each(function(b){a.inArray(b,d)>-1&&(b=a(this),b.attr("aria-selected",true),c.isMultiple?b.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on"):b.is(".ui-selectmenu-placeholder")?b.next().addClass(a.mobile.activeBtnClass):b.addClass(a.mobile.activeBtnClass))})},close:function(){if(!this.options.disabled&&this.isOpen)this.menuType=="page"?s.history.back():(this.screen.addClass("ui-screen-hidden"),this.listbox.addClass("ui-selectmenu-hidden").removeAttr("style").removeClass("in"),
157
+ this.list.appendTo(this.listbox),this._focusButton()),this.isOpen=false},open:function(){function b(){c.list.find("."+a.mobile.activeBtnClass+" a").focus()}if(!this.options.disabled){var c=this,d=a(s),e=c.list.parent(),f=e.outerHeight(),e=e.outerWidth();a(".ui-page-active");var g=d.scrollTop(),j=c.button.offset().top,h=d.height(),d=d.width();c.button.addClass(a.mobile.activeBtnClass);setTimeout(function(){c.button.removeClass(a.mobile.activeBtnClass)},300);if(f>h-80||!a.support.scrollTop){c.menuPage.appendTo(a.mobile.pageContainer).page();
158
+ c.menuPageContent=p.find(".ui-content");c.menuPageClose=p.find(".ui-header a");c.thisPage.unbind("pagehide.remove");if(g==0&&j>h)c.thisPage.one("pagehide",function(){a(this).jqmData("lastScroll",j)});c.menuPage.one("pageshow",function(){b();c.isOpen=true});c.menuType="page";c.menuPageContent.append(c.list);c.menuPage.find("div .ui-title").text(c.label.text());a.mobile.changePage(c.menuPage,{transition:a.mobile.defaultDialogTransition})}else{c.menuType="overlay";c.screen.height(a(k).height()).removeClass("ui-screen-hidden");
159
+ var l=j-g,m=g+h-j,n=f/2,o=parseFloat(c.list.parent().css("max-width")),f=l>f/2&&m>f/2?j+c.button.outerHeight()/2-n:l>m?g+h-f-30:g+30;e<o?g=(d-e)/2:(g=c.button.offset().left+c.button.outerWidth()/2-e/2,g<30?g=30:g+e>d&&(g=d-e-30));c.listbox.append(c.list).removeClass("ui-selectmenu-hidden").css({top:f,left:g}).addClass("in");b();c.isOpen=true}}},_buildList:function(){var b=this.options,c=this.placeholder,d=true,e=this.isMultiple?"checkbox-off":"false";this.list.empty().filter(".ui-listview").listview("destroy");
160
+ var f=this.select.find("option"),g=f.length,j=this.select[0],h="data-"+a.mobile.ns,l=h+"option-index",m=h+"icon";h+="role";for(var n=k.createDocumentFragment(),o,p=0;p<g;p++){var r=f[p],q=a(r),s=r.parentNode,t=q.text(),D=k.createElement("a"),J=[];D.setAttribute("href","#");D.appendChild(k.createTextNode(t));s!==j&&s.nodeName.toLowerCase()==="optgroup"&&(s=s.getAttribute("label"),s!=o&&(o=k.createElement("li"),o.setAttribute(h,"list-divider"),o.setAttribute("role","option"),o.setAttribute("tabindex",
161
+ "-1"),o.appendChild(k.createTextNode(s)),n.appendCh