freetrex - Version 1.0.1

Version Notes

Compatible with magento 1.8

Download this release

Release Info

Developer JoomlArt
Extension freetrex
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

Files changed (123) hide show
  1. app/code/local/JoomlArt/JmProducts/Block/Adminhtml/System/Config/Form/Settings.php +0 -13
  2. app/code/local/JoomlArt/JmProducts/Block/Filter.php +0 -318
  3. app/code/local/JoomlArt/JmProducts/Block/List.php +0 -677
  4. app/code/local/JoomlArt/JmProducts/Helper/Data.php +0 -20
  5. app/code/local/JoomlArt/JmProducts/Helper/Mobiledetect.php +0 -17
  6. app/code/local/JoomlArt/JmProducts/Library/Mobile_Detect.php +0 -803
  7. app/code/local/JoomlArt/JmProducts/Model/Resource/Setup.php +0 -4
  8. app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckHeight.php +0 -24
  9. app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckInputCategory.php +0 -28
  10. app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckMax.php +0 -24
  11. app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckMode.php +0 -28
  12. app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckPerrow.php +0 -24
  13. app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckQty.php +0 -24
  14. app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckWidth.php +0 -24
  15. app/code/local/JoomlArt/JmProducts/Model/System/Config/Source/ListType.php +0 -27
  16. app/code/local/JoomlArt/JmProducts/Model/Unit.php +0 -27
  17. app/code/local/JoomlArt/JmProducts/controllers/Catalog/Product/Action/AttributeController.php +0 -155
  18. app/code/local/JoomlArt/JmProducts/controllers/FilterController.php +0 -14
  19. app/code/local/JoomlArt/JmProducts/controllers/ViewallController.php +0 -17
  20. app/code/local/JoomlArt/JmProducts/etc/adminhtml.xml +0 -31
  21. app/code/local/JoomlArt/JmProducts/etc/config.xml +0 -141
  22. app/code/local/JoomlArt/JmProducts/etc/system.xml +0 -303
  23. app/code/local/JoomlArt/JmSlideshow/Block/List.php +0 -660
  24. app/code/local/JoomlArt/JmSlideshow/Helper/Data.php +0 -91
  25. app/code/local/JoomlArt/JmSlideshow/Helper/Jmimage.php +0 -402
  26. app/code/local/JoomlArt/JmSlideshow/Helper/Mobiledetect.php +0 -17
  27. app/code/local/JoomlArt/JmSlideshow/Library/Mobile_Detect.php +0 -803
  28. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Backend/JmSlideshow/CheckInputCategory.php +0 -28
  29. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Backend/JmSlideshow/CheckQty.php +0 -24
  30. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Backend/JmSlideshow/Checkvalue.php +0 -23
  31. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListAnimationType.php +0 -27
  32. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListDirection.php +0 -22
  33. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListEffect.php +0 -31
  34. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListEventTriggerType.php +0 -22
  35. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListMaskAnimation.php +0 -26
  36. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListSource.php +0 -22
  37. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListThumbnailMode.php +0 -23
  38. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListThumbnailPosition.php +0 -28
  39. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListThumbnailType.php +0 -23
  40. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListType.php +0 -27
  41. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListTypeShowDesc.php +0 -23
  42. app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListTypeShowDescwhen.php +0 -22
  43. app/code/local/JoomlArt/JmSlideshow/etc/adminhtml.xml +0 -31
  44. app/code/local/JoomlArt/JmSlideshow/etc/config.xml +0 -147
  45. app/code/local/JoomlArt/JmSlideshow/etc/system.xml +0 -661
  46. app/code/local/Mage/GoogleAnalytics/Block/Ga.php +166 -0
  47. app/design/frontend/default/{jm_trex/template/page/redirect.phtml → default/layout/googleanalytics.xml} +17 -12
  48. app/design/frontend/default/default/layout/jmproducts.xml +0 -37
  49. app/design/frontend/default/default/layout/jmslideshow.xml +0 -8
  50. app/design/frontend/default/default/template/joomlart/jmproducts/column.phtml +0 -73
  51. app/design/frontend/default/default/template/joomlart/jmproducts/list.phtml +0 -143
  52. app/design/frontend/default/default/template/joomlart/jmproducts/oneproduct.phtml +0 -68
  53. app/design/frontend/default/default/template/joomlart/jmproducts/viewall.phtml +0 -179
  54. app/design/frontend/default/default/template/joomlart/jmslideshow/accordion.phtml +0 -127
  55. app/design/frontend/default/default/template/joomlart/jmslideshow/basic.phtml +0 -146
  56. app/design/frontend/default/jm_trex/layout/catalog.xml +0 -401
  57. app/design/frontend/default/jm_trex/layout/catalogsearch.xml +0 -144
  58. app/design/frontend/default/jm_trex/layout/jmtabs.xml +0 -58
  59. app/design/frontend/default/jm_trex/layout/newsletter.xml +0 -69
  60. app/design/frontend/default/jm_trex/layout/page.xml +0 -254
  61. app/design/frontend/default/jm_trex/layout/review.xml +0 -133
  62. app/design/frontend/default/jm_trex/locale/en_US/translate.csv +0 -4
  63. app/design/frontend/default/jm_trex/template/catalog/category/view.phtml +0 -79
  64. app/design/frontend/default/jm_trex/template/catalog/product/list.phtml +0 -143
  65. app/design/frontend/default/jm_trex/template/catalog/product/list/toolbar.phtml +0 -94
  66. app/design/frontend/default/jm_trex/template/catalog/product/list/upsell.phtml +0 -62
  67. app/design/frontend/default/jm_trex/template/catalog/product/view.phtml +0 -200
  68. app/design/frontend/default/jm_trex/template/catalogsearch/form.mini.phtml +0 -43
  69. app/design/frontend/default/jm_trex/template/checkout/cart/item/default.phtml +0 -278
  70. app/design/frontend/default/jm_trex/template/customer/account/dashboard/address.phtml +0 -50
  71. app/design/frontend/default/jm_trex/template/customer/account/dashboard/info.phtml +0 -64
  72. app/design/frontend/default/jm_trex/template/customer/form/login.phtml +0 -86
  73. app/design/frontend/default/jm_trex/template/joomlart/jmproducts/list.phtml +0 -1
  74. app/design/frontend/default/jm_trex/template/joomlart/jmproducts/oneproduct.phtml +0 -76
  75. app/design/frontend/default/jm_trex/template/newsletter/subscribe.phtml +0 -51
  76. app/design/frontend/default/jm_trex/template/page/1column.phtml +0 -158
  77. app/design/frontend/default/jm_trex/template/page/2columns-left.phtml +0 -165
  78. app/design/frontend/default/jm_trex/template/page/2columns-right.phtml +0 -165
  79. app/design/frontend/default/jm_trex/template/page/3columns.phtml +0 -171
  80. app/design/frontend/default/jm_trex/template/page/empty.phtml +0 -46
  81. app/design/frontend/default/jm_trex/template/page/html/botslmenu.phtml +0 -61
  82. app/design/frontend/default/jm_trex/template/page/html/breadcrumbs.phtml +0 -47
  83. app/design/frontend/default/jm_trex/template/page/html/footer.phtml +0 -40
  84. app/design/frontend/default/jm_trex/template/page/html/head.phtml +0 -74
  85. app/design/frontend/default/jm_trex/template/page/html/header.phtml +0 -55
  86. app/design/frontend/default/jm_trex/template/page/html/tool.links.phtml +0 -29
  87. app/design/frontend/default/jm_trex/template/page/html/top.links.phtml +0 -34
  88. app/design/frontend/default/jm_trex/template/page/html/topmenu.phtml +0 -155
  89. app/design/frontend/default/jm_trex/template/page/html/wrapper.phtml +0 -45
  90. app/design/frontend/default/jm_trex/template/page/includes/templatetools.php +0 -413
  91. app/design/frontend/default/jm_trex/template/page/ja_vars.php +0 -43
  92. app/design/frontend/default/jm_trex/template/page/popup.phtml +0 -45
  93. app/design/frontend/default/jm_trex/template/page/print.phtml +0 -52
  94. app/design/frontend/default/jm_trex/template/page/switch/flags.phtml +0 -37
  95. app/design/frontend/default/jm_trex/template/page/switch/languages.phtml +0 -44
  96. app/design/frontend/default/jm_trex/template/page/switch/stores.phtml +0 -47
  97. app/design/frontend/default/jm_trex/template/page/template/container.phtml +0 -35
  98. app/design/frontend/default/jm_trex/template/page/template/footer_links.phtml +0 -52
  99. app/design/frontend/default/jm_trex/template/persistent/customer/form/login.phtml +0 -90
  100. app/etc/modules/JoomlArt_JmProducts.xml +0 -14
  101. app/etc/modules/JoomlArt_JmSlideshow.xml +0 -14
  102. js/joomlart/jmproducts/jmproduct.js +0 -6
  103. js/joomlart/jmproducts/jquery1.6.4.min.js +0 -6
  104. package.xml +5 -5
  105. skin/frontend/base/default/joomlart/jmproducts/css/jmproduct.css +0 -42
  106. skin/frontend/base/default/joomlart/jmproducts/js/jmproducts.js +0 -77
  107. skin/frontend/default/default/joomlart/jmslideshow/css/jm.slideshow.css +0 -388
  108. skin/frontend/default/default/joomlart/jmslideshow/css/jquery-ui/jquery-ui.css +0 -428
  109. skin/frontend/default/default/joomlart/jmslideshow/css/jquery-ui/jquery.hrzAccordion.defaults.css +0 -138
  110. skin/frontend/default/default/joomlart/jmslideshow/images/ajax-loader.gif +0 -0
  111. skin/frontend/default/default/joomlart/jmslideshow/images/arrow-01.png +0 -0
  112. skin/frontend/default/default/joomlart/jmslideshow/images/arrow-02.png +0 -0
  113. skin/frontend/default/default/joomlart/jmslideshow/images/blank.png +0 -0
  114. skin/frontend/default/default/joomlart/jmslideshow/images/btn-bg-01-active.png +0 -0
  115. skin/frontend/default/default/joomlart/jmslideshow/images/btn-bg-01.png +0 -0
  116. skin/frontend/default/default/joomlart/jmslideshow/images/demo3.gif +0 -0
  117. skin/frontend/default/default/joomlart/jmslideshow/images/demo4.gif +0 -0
  118. skin/frontend/default/default/joomlart/jmslideshow/images/grad2.gif +0 -0
  119. skin/frontend/default/default/joomlart/jmslideshow/images/shadow-01.png +0 -0
  120. skin/frontend/default/default/joomlart/jmslideshow/images/shadow.png +0 -0
  121. skin/frontend/default/default/joomlart/jmslideshow/js/jm.slideshow.js +0 -1465
  122. skin/frontend/default/default/joomlart/jmslideshow/js/jquery-ui/jquery-1.3.2.js +0 -4376
  123. skin/frontend/default/default/joomlart/jmslideshow/js/jquery-ui/jquery-ui.min.js +0 -354
app/code/local/JoomlArt/JmProducts/Block/Adminhtml/System/Config/Form/Settings.php DELETED
@@ -1,13 +0,0 @@
1
- <?php
2
-
3
- class JoomlArt_JmProducts_Block_Adminhtml_system_config_form_settings extends Mage_Adminhtml_Block_System_Config_Form_Field
4
- {
5
- protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
6
- {
7
- $output .= '
8
- <script type="text/javascript" src="'.$this->getJsUrl('joomlart/jmproducts/jquery1.6.4.min.js').'"></script>
9
- <script type="text/javascript" src="'.$this->getJsUrl('joomlart/jmproducts/jmproduct.js').'"></script>';
10
-
11
- return $output;
12
- }
13
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Block/Filter.php DELETED
@@ -1,318 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
- class JoomlArt_JmProducts_Block_Filter extends Mage_Catalog_Block_Product_Abstract {
13
-
14
- var $_config = array ();
15
- protected $_defaultToolbarBlock = 'catalog/product_list_toolbar';
16
-
17
- /**
18
- * Product Collection
19
- *
20
- * @var Mage_Eav_Model_Entity_Collection_Abstract
21
- */
22
- protected $_productCollection;
23
-
24
- public function __construct($attributes = array()) {
25
- $helper = Mage::helper ( 'joomlart_jmproducts/data' );
26
- $mode = $this->getRequest()->getParam('type');
27
- $viewall = $this->getRequest()->getParam('viewall');
28
-
29
- $this->_config ['show'] = $helper->get ( 'show', $attributes );
30
- if (! $this->_config ['show'])
31
- return;
32
-
33
- $this->_config ['template'] = $helper->get ( 'template', $attributes );
34
- if (! $this->_config ['template'])
35
- return;
36
-
37
- parent::__construct ();
38
- $this->_config ['mode'] = $helper->get ( 'mode', $attributes );
39
-
40
- $this->_config ['title'] = $helper->get ( 'title', $attributes );
41
- $this->_config ['catsid'] = $helper->get ( 'catsid', $attributes );
42
- $this->_config ['productsid'] = $helper->get ( 'productsid', $attributes );
43
- $this->_config ['qty'] = $helper->get ( 'quanlity', $attributes );
44
- $this->_config ['qty'] = $this->_config ['qty'] > 0 ? $this->_config ['qty'] : $listall;
45
-
46
- $this->_config ['perrow'] = $helper->get ( 'perrow', $attributes );
47
- $this->_config ['perrow'] = $this->_config ['perrow'] > 0 ? $this->_config ['perrow'] : 3;
48
-
49
- $this->_config['width'] = $helper->get('width', $attributes);
50
- $this->_config['width'] = $this->_config['width']>0?$this->_config['width']:135;
51
-
52
- $this->_config['height'] = $helper->get('height', $attributes);
53
- $this->_config['height'] = $this->_config['height']>0?$this->_config['height']:135;
54
-
55
-
56
- $this->setProductCollection ( $this->getCategory () );
57
- }
58
-
59
- function _toHtml() {
60
-
61
- if (! $this->_config ['show'])
62
- return;
63
- $helper = Mage::helper ( 'joomlart_jmproducts/data' );
64
- $this->_config ['title'] = $this->gettitle();
65
-
66
- $listall = $this->getListProducts ();
67
-
68
- $this->assign ( 'listall', $listall );
69
- $this->assign ( 'config', $this->_config );
70
-
71
- if(!$this->getTemplate()){
72
- $this->setTemplate('joomlart/jmproducts/filter.phtml');
73
- }
74
- if ($listall && $listall->count () > 0) {
75
- Mage::getModel ( 'review/review' )->appendSummary ( $listall );
76
- }
77
-
78
- return parent::_toHtml ();
79
- }
80
-
81
- function getListProducts() {
82
- $listall = null;
83
-
84
- if(is_null($this->_productCollection)){
85
-
86
- switch ($this->_config ['mode']) {
87
-
88
- case 'filter':
89
- $listall = $this->getListfilterProducts();
90
- break;
91
- default:
92
- $listall = $this->getListfilterProducts();
93
- }
94
- $this->_productCollection = $listall;
95
- }
96
-
97
- return $this->_productCollection;
98
- }
99
-
100
-
101
-
102
- function getListfilterProducts($perPage = NULL, $currentPage = 1){
103
- // get array product_id
104
-
105
- /*
106
- Always set de $perPage, by template or by config
107
- if $perPage eq 0 (zero) not limit the list
108
- */
109
- if ($perPage === NULL)
110
- $perPage = ( int ) $this->_config ['qty'];
111
-
112
- $params = $this->getRequest()->getParams();
113
- //unset some unrleated params
114
- if($params["p"]){
115
- unset($params["p"]);
116
- }
117
- if($params["mode"]){
118
- unset($params["mode"]);
119
- }
120
- unset($params["filter"]);
121
- if($params["cat"]) {
122
- $this->_config["catsid"] = $params["cat"];
123
-
124
- unset( $params["cat"]);
125
- }
126
- $arr_productids = $this->getProductByCategory();
127
- if($params["price"]){
128
- $prices = explode("-", $params["price"]);
129
- $low_price = $prices[0];
130
- if($prices[1]){
131
- $high_price = $prices[1];
132
- }
133
- unset($params["price"]);
134
- }
135
- unset($params["order"]);
136
- unset($params["dir"]);
137
- unset($params["___store"]);
138
- unset($params["limit"]);
139
- $storeId = Mage::app ()->getStore ()->getId ();
140
- $products = Mage::getResourceModel('catalog/product_collection')
141
- ->setStoreId($storeId)
142
- ->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
143
- ->addMinimalPrice()
144
- ->addFinalPrice()
145
- ->addTaxPercents()
146
- ->addStoreFilter($storeId);
147
-
148
- if($low_price && $high_price) {
149
-
150
- $products->addFieldToFilter('price', array('gteq' => $low_price));
151
- $products->addFieldToFilter('price', array('lteq' => $high_price));
152
- } elseif($high_price) {
153
- $products->addAttributeToFilter('price', array('lteq' => $high_price));
154
- } elseif($low_price) {
155
- $products->addAttributeToFilter('price', array('gteq' => $low_price));
156
- }
157
-
158
- if(!empty($arr_productids)){
159
- $products->addIdFilter($arr_productids);
160
- }
161
- if($params){
162
- foreach($params as $kparam => $vparam){
163
- $products->addAttributeToFilter($kparam,array('in' => array(0 => (int)$vparam)));
164
- }
165
- }
166
- $products->setPageSize ( $perPage )->setCurPage ( $currentPage );
167
-
168
- $this->setProductCollection ( $products );
169
- Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($products);
170
-
171
- if (($_products = $this->getProductCollection()) && $_products->getSize()){
172
- $list = $_products ;
173
- }
174
-
175
- return $list;
176
-
177
- }
178
-
179
-
180
-
181
-
182
-
183
- // ++ added by congtq 18/09/2009
184
- /**
185
- * check the array existed in the other array
186
- *
187
- */
188
- function inArray($source, $target) {
189
- for($j = 0; $j < sizeof ( $source ); $j ++) {
190
- if (in_array ( $source [$j], $target )) {
191
- return true;
192
- //echo 'ok';
193
- }
194
- }
195
- }
196
- // -- added by congtq 18/09/2009
197
-
198
- // ++ added by congtq 27/10/2009
199
- function getProductByCategory(){
200
- $return = array();
201
- $pids = array();
202
-
203
- $products = Mage::getResourceModel ( 'catalog/product_collection' );
204
-
205
- foreach ($products->getItems() as $key => $_product){
206
- $arr_categoryids[$key] = $_product->getCategoryIds();
207
-
208
- if($this->_config['catsid']){
209
- if(stristr($this->_config['catsid'], ',') === FALSE) {
210
- $arr_catsid[$key] = array(0 => $this->_config['catsid']);
211
- }else{
212
- $arr_catsid[$key] = explode(",", $this->_config['catsid']);
213
- }
214
-
215
- $return[$key] = $this->inArray($arr_catsid[$key], $arr_categoryids[$key]);
216
- }
217
- }
218
-
219
- foreach ($return as $k => $v){
220
- if($v==1) $pids[] = $k;
221
- }
222
-
223
- return $pids;
224
- }
225
-
226
- /**
227
- * Retrieve Toolbar block
228
- *
229
- * @return Mage_Catalog_Block_Product_List_Toolbar
230
- */
231
- public function getToolbarBlock()
232
- {
233
- if ($blockName = $this->getToolbarBlockName()) {
234
-
235
- if ($block = $this->getLayout()->getBlock($blockName)) {
236
- return $block;
237
- }
238
- }
239
-
240
- $block = $this->getLayout()->createBlock($this->_defaultToolbarBlock, microtime());
241
- return $block;
242
- }
243
-
244
- /**
245
- * Retrieve current view mode
246
- *
247
- * @return string
248
- */
249
- public function getMode()
250
- {
251
- return $this->getChild('toolbar')->getCurrentMode();
252
- }
253
-
254
-
255
- /**
256
- * Need use as _prepareLayout - but problem in declaring collection from
257
- * another block (was problem with search result)
258
- */
259
- protected function _beforeToHtml()
260
- {
261
- $toolbar = $this->getToolbarBlock();
262
- $viewall = $this->getData("viewall")?$this->getData("viewall"):false;
263
- $filter = $this->getData("filter")?$this->getData("filter"):false;
264
- // called prepare sortable parameters
265
-
266
- //assign some settings from block attributes
267
- if($this->getData("quanlity")){
268
- $this->_config ['qty'] = $this->getData("quanlity");
269
-
270
- }
271
- if($this->getData("perrow")){
272
- $this->_config ['perrow'] = $this->getData("perrow");
273
- }
274
- if($this->getData("mode")){
275
- $this->_config ['mode'] = $this->getData("mode");
276
- }
277
-
278
- $collection = $this->getListProducts();
279
-
280
- // use sortable parameters
281
- if ($orders = $this->getAvailableOrders()) {
282
- $toolbar->setAvailableOrders($orders);
283
- }
284
- if ($sort = $this->getSortBy()) {
285
- $toolbar->setDefaultOrder($sort);
286
- }
287
- if ($dir = $this->getDefaultDirection()) {
288
- $toolbar->setDefaultDirection($dir);
289
- }
290
- if ($modes = $this->getModes()) {
291
- $toolbar->setModes($modes);
292
- }
293
-
294
- // set collection to toolbar and apply sort
295
- // set collection to toolbar and apply sort
296
- if(is_object($collection) && (!empty($collection))){
297
- $toolbar->setCollection($collection);
298
- $this->setChild('toolbar', $toolbar);
299
- Mage::dispatchEvent('catalog_block_product_list_collection', array(
300
- 'collection' => $this->getListProducts()
301
- ));
302
- }
303
-
304
- return parent::_beforeToHtml();
305
-
306
- }
307
-
308
- /**
309
- * Retrieve list toolbar HTML
310
- *
311
- * @return string
312
- */
313
- public function getToolbarHtml()
314
- {
315
- return $this->getChildHtml('toolbar');
316
-
317
- }
318
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Block/List.php DELETED
@@ -1,677 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
- class JoomlArt_JmProducts_Block_List extends Mage_Catalog_Block_Product_Abstract {
13
-
14
- var $_config = array ();
15
- protected $_defaultToolbarBlock = 'catalog/product_list_toolbar';
16
-
17
- /**
18
- * Product Collection
19
- *
20
- * @var Mage_Eav_Model_Entity_Collection_Abstract
21
- */
22
- protected $_productCollection;
23
-
24
- public function __construct($attributes = array()) {
25
- $helper = Mage::helper ( 'joomlart_jmproducts/data' );
26
- $mode = $this->getRequest()->getParam('type');
27
- $viewall = $this->getRequest()->getParam('viewall');
28
- $detect = Mage::helper ( 'joomlart_jmproducts/mobiledetect' );
29
-
30
- $this->_config ['show'] = $helper->get ( 'show', $attributes );
31
- if (! $this->_config ['show'])
32
- return;
33
-
34
- $this->_config ['template'] = $helper->get ( 'template', $attributes );
35
- if (! $this->_config ['template'])
36
- return;
37
-
38
- parent::__construct ();
39
- $this->_config ['viewall'] = $this->getRequest()->getParam('viewall')?$this->getRequest()->getParam('viewall'):0;
40
- $this->_config ['mode'] = $helper->get ( 'mode', $attributes );
41
- if($this->_config ['viewall']){
42
- $this->_config ['mode'] = $mode;
43
- }
44
- if($this->getRequest()->getParam('filter')){
45
- $this->_config ['mode'] = "filter";
46
- }
47
- $this->_config ['title'] = $helper->get ( 'headtitle', $attributes );
48
- $this->_config ['catsid'] = $helper->get ( 'catsid', $attributes );
49
- $this->_config ['productsid'] = $helper->get ( 'productsid', $attributes );
50
- $this->_config ['qty'] = $helper->get ( 'quanlity', $attributes );
51
- $this->_config ['qtytable'] = $helper->get ( 'quanlitytable', $attributes )?$helper->get ( 'quanlitytable', $attributes ):10;
52
- $this->_config ['qtytableportrait'] = $helper->get ( 'quanlitytableportrait', $attributes )?$helper->get ( 'quanlitytableportrait', $attributes ):10;
53
- $this->_config ['qtymobile'] = $helper->get ( 'quanlitymobile', $attributes )?$helper->get ( 'quanlitymobile', $attributes ):4;
54
- $this->_config ['qtymobileportrait'] = $helper->get ( 'quanlitymobileportrait', $attributes )?$helper->get ( 'quanlitymobileportrait', $attributes ):4;
55
- $this->_config ['qtyperpage'] = $helper->get ( 'quanlityperpage', $attributes )?$helper->get ( 'quanlityperpage', $attributes ):9;
56
- $this->_config ['qtyperpagetable'] = $helper->get ( 'quanlityperpagetable', $attributes )?$helper->get ( 'quanlityperpagetable', $attributes ):6;
57
- $this->_config ['qtyperpagemobile'] = $helper->get ( 'qtyperpagemobile', $attributes )?$helper->get ( 'qtyperpagemobile', $attributes ):6;
58
- $this->_config ['istable'] = 0;
59
- $this->_config ['ismobile'] = 0;
60
-
61
- $this->_config ['perrow'] = $helper->get ( 'perrow', $attributes );
62
- $this->_config ['perrow'] = $this->_config ['perrow'] > 0 ? $this->_config ['perrow'] : 3;
63
- $this->_config ['perrowtablet'] = $helper->get ( 'perrowtablet', $attributes )?$helper->get ( 'perrowtablet', $attributes ):3;
64
- $this->_config ['perrowmobile'] = $helper->get ( 'perrowmobile', $attributes )?$helper->get ( 'perrowmobile', $attributes ):3;
65
- $this->_config ['ajaxloadmore'] = $helper->get ( 'ajaxloadmore', $attributes );
66
- $this->_config ['ajaxloadmoremobile'] = $helper->get ( 'ajaxloadmoremobile', $attributes );
67
- $this->_config ['ajaxloadmoretable'] = $helper->get ( 'ajaxloadmoretable', $attributes );
68
- $this->_config ['accordionslider'] = $helper->get ( 'accordionslider', $attributes );
69
-
70
- $this->_config['width'] = $helper->get('width', $attributes);
71
- $this->_config['width'] = $this->_config['width']>0?$this->_config['width']:135;
72
-
73
- $this->_config['height'] = $helper->get('height', $attributes);
74
- $this->_config['height'] = $this->_config['height']>0?$this->_config['height']:135;
75
-
76
- $this->_config['max'] = $helper->get('max', $attributes);
77
- $this->_config['max'] = $this->_config['max']>0?$this->_config['max']:0;
78
-
79
- if($detect->isTablet()){
80
- $this->_config ['istable'] = 1;
81
- $quanlitytable = $this->_config ['qtytable'];
82
- $quanlitytableportrait = $this->_config ['qtytableportrait'];
83
- $qtyperpagetable = $this->_config ['qtyperpagetable'];
84
- $perrowtable = $this->_config ['perrowtablet'];
85
- $ajaxloadmoretable = $this->_config ['ajaxloadmoretable'];
86
- $this->_config ['qty'] = $quanlitytable;
87
- $this->_config['qtyperpage'] = $qtyperpagetable;
88
- $this->_config ['perrow'] = $perrowtable;
89
- $this->_config['ajaxloadmore'] = $ajaxloadmoretable;
90
- $this->_config ['accordionslider'] = "0";
91
-
92
- }elseif($detect->isMobile()){
93
- $this->_config ['ismobile'] = 1;
94
- $quanlitymobile = $this->_config ['qtymobile'] ;
95
- $quanlitymobileportrait = $this->_config ['qtymobileportrait'];
96
- $qtyperpagemobile = $this->_config ['qtyperpagemobile'];
97
- $perrowmobile = $this->_config ['perrowmobile'];
98
- $ajaxloadmoremobile = $this->_config ['ajaxloadmoremobile'];
99
- $this->_config ['qty'] = $quanlitymobile ;
100
- $this->_config['qtyperpage'] = $qtyperpagemobile;
101
- $this->_config ['perrow'] = $perrowmobile;
102
- $this->_config['ajaxloadmore'] = $ajaxloadmoremobile;
103
- $this->_config ['accordionslider'] = "0";
104
- }
105
-
106
- $this->_config ['qty'] = $this->_config ['qty'] > 0 ? $this->_config ['qty'] : $listall;
107
-
108
-
109
-
110
- //$this->_config['template'] = $helper->get('template', $attributes);
111
- /*$this->_config['attributename'] = $helper->get('attributename', $attributes);
112
- $this->_config['attributevalue'] = $helper->get('attributevalue', $attributes);*/
113
-
114
- $this->setProductCollection ( $this->getCategory () );
115
- }
116
-
117
- function _toHtml() {
118
-
119
- if (! $this->_config ['show'])
120
- return;
121
- $helper = Mage::helper ( 'joomlart_jmproducts/data' );
122
-
123
-
124
- $listall = $this->getListProducts ();
125
- $a= $this->_config ['qty'];
126
- $this->_config ['qty']= "5";
127
- $listall2 = $this->getListProducts (true);
128
- $this->_config ['qty'] =$a;
129
-
130
- $this->assign ( 'listall', $listall );
131
- $this->assign ( 'listall2', $listall2 );
132
- $this->assign ( 'config', $this->_config );
133
-
134
- if(!$this->getTemplate()){
135
- $this->setTemplate('joomlart/jmproducts/list.phtml');
136
- }
137
- if ($listall && $listall->count () > 0) {
138
- Mage::getModel ( 'review/review' )->appendSummary ( $listall );
139
- }
140
-
141
- return parent::_toHtml ();
142
- }
143
-
144
- function getListProducts($rerun = false) {
145
- $listall = null;
146
- $helper = Mage::helper ( 'joomlart_jmproducts/data' );
147
- if((is_null($this->_productCollection))||($rerun)){
148
-
149
- switch ($this->_config ['mode']) {
150
- case 'latest' :
151
- $listall = $this->getListBestBuyProducts ('updated_at', 'desc' );
152
- break;
153
- case 'featured' :
154
- $listall = $this->getListFeaturedProducts ();
155
- break;
156
- case 'best_buy' :
157
- $listall = $this->getListBestBuyProducts ();
158
- break;
159
- case 'most_viewed' :
160
- $listall = $this->getListMostViewedProducts ();
161
- break;
162
- case 'most_reviewed' :
163
- $listall = $this->getListTopRatedProducts ( 'reviews_count' );
164
- break;
165
- case 'filter':
166
- $listall = $this->getListfilterProducts();
167
- break;
168
- case 'top_rated' :
169
- $listall = $this->getListTopRatedProducts ();
170
- break;
171
- default:
172
- $listall = $this->getListBestBuyProducts ( 'updated_at', 'desc' );
173
- }
174
- if($helper->get("random") && is_object($listall)){
175
- $listall->getSelect()->order(new Zend_Db_Expr('RAND()'));
176
- }
177
- $this->_productCollection = $listall;
178
-
179
- }
180
-
181
- return $this->_productCollection;
182
- }
183
-
184
- function getListTopRatedProducts($orderfeild = 'rating_summary', $order = 'desc', $perPage = NULL, $currentPage = 1) {
185
- $list = null;
186
-
187
- if ($perPage === NULL)
188
- $perPage = ( int ) $this->_config ['qty'];
189
-
190
- $storeId = Mage::app ()->getStore ()->getId ();
191
-
192
- $entityCondition = '_reviewed_order_table.entity_id = e.entity_id';
193
-
194
- if($this->_config['catsid']){
195
- // get array product_id
196
- $arr_productids = $this->getProductByCategory();
197
-
198
- $products = Mage::getResourceModel('catalog/product_collection')
199
- ->setStoreId($storeId)
200
- ->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
201
- ->addMinimalPrice()
202
- ->addFinalPrice()
203
- ->addTaxPercents()
204
- ->addStoreFilter($storeId)
205
- ->addIdFilter($arr_productids);
206
- }else{
207
- $products = Mage::getResourceModel('catalog/product_collection')
208
- ->setStoreId($storeId)
209
- ->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
210
- ->addMinimalPrice()
211
- ->addFinalPrice()
212
- ->addTaxPercents()
213
- ->addStoreFilter($storeId);
214
- }
215
-
216
- $resource = Mage::getSingleton('core/resource');
217
- $products->getSelect ()->joinLeft ( array ('_reviewed_order_table' => $resource->getTableName( 'review_entity_summary' )), "_reviewed_order_table.store_id=$storeId AND _reviewed_order_table.entity_pk_value=e.entity_id", array () );
218
-
219
- $products->getSelect ()->order ( "_reviewed_order_table.$orderfeild $order" );
220
- $products->getSelect ()->group ( 'e.entity_id' );
221
-
222
- $products->setPageSize ( $perPage )->setCurPage ( $currentPage );
223
-
224
- $this->setProductCollection ( $products );
225
-
226
- $this->_addProductAttributesAndPrices($products);
227
-
228
- Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($products);
229
- Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($products);
230
-
231
- if (($_products = $this->getProductCollection ()) && $_products->getSize ()) {
232
-
233
- if(method_exists($_products,"setMaxSize")){
234
- $_products->setMaxSize($perPage);
235
- }
236
- $list = $_products;
237
- }
238
-
239
- return $list;
240
- }
241
-
242
- function getListfilterProducts($perPage = NULL, $currentPage = 1){
243
- // get array product_id
244
-
245
- /*
246
- Always set de $perPage, by template or by config
247
- if $perPage eq 0 (zero) not limit the list
248
- */
249
- if ($perPage === NULL)
250
- $perPage = ( int ) $this->_config ['qty'];
251
-
252
- $params = $this->getRequest()->getParams();
253
- //unset some unrleated params
254
- if($params["p"]){
255
- unset($params["p"]);
256
- }
257
- if($params["mode"]){
258
- unset($params["mode"]);
259
- }
260
- unset($params["filter"]);
261
- if($params["cat"]) {
262
- $this->_config["catsid"] = $params["cat"];
263
-
264
- unset( $params["cat"]);
265
- }
266
- $arr_productids = $this->getProductByCategory();
267
- if($params["price"]){
268
- $prices = explode("-", $params["price"]);
269
- $low_price = $prices[0];
270
- if($prices[1]){
271
- $high_price = $prices[1];
272
- }
273
- unset($params["price"]);
274
- }
275
-
276
- $storeId = Mage::app ()->getStore ()->getId ();
277
- $products = Mage::getResourceModel('catalog/product_collection')
278
- ->setStoreId($storeId)
279
- ->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
280
- ->addMinimalPrice()
281
- ->addFinalPrice()
282
- ->addTaxPercents()
283
- ->addStoreFilter($storeId);
284
-
285
- if($low_price && $high_price) {
286
-
287
- $products->addFieldToFilter('price', array('gteq' => $low_price));
288
- $products->addFieldToFilter('price', array('lteq' => $high_price));
289
- } elseif($high_price) {
290
- $products->addAttributeToFilter('price', array('lteq' => $high_price));
291
- } elseif($low_price) {
292
- $products->addAttributeToFilter('price', array('gteq' => $low_price));
293
- }
294
-
295
- if(!empty($arr_productids)){
296
- $products->addIdFilter($arr_productids);
297
- }
298
- if($params){
299
- foreach($params as $kparam => $vparam){
300
- $products->addAttributeToFilter($kparam, array('eq' => $vparam));
301
- }
302
- }
303
- $products->setPageSize ( $perPage )->setCurPage ( $currentPage );
304
-
305
- $this->setProductCollection ( $products );
306
-
307
- if (($_products = $this->getProductCollection()) && $_products->getSize()){
308
- $list = $_products ;
309
- }
310
-
311
- return $list;
312
-
313
- }
314
- function getListMostViewedProducts($perPage = NULL, $currentPage = 1) {
315
- /*
316
- Always set de $perPage, by template or by config
317
- if $perPage eq 0 (zero) not limit the list
318
- */
319
- if ($perPage === NULL)
320
- $perPage = ( int ) $this->_config ['qty'];
321
-
322
- /*
323
- Show all the product list in the current store
324
- */
325
- $storeId = Mage::app ()->getStore ()->getStoreId ();
326
- $this->setStoreId ( $storeId );
327
- $this->_productCollection = Mage::getResourceModel('reports/product_collection')
328
- ->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
329
- ->addMinimalPrice()
330
- ->addFinalPrice()
331
- ->addTaxPercents()
332
- ->addViewsCount()
333
- ->setStoreId($storeId)
334
- ->addStoreFilter($storeId)
335
- ->setPageSize($perPage);
336
- if($this->_config['catsid']){
337
- // get array product_id
338
- $arr_productids = $this->getProductByCategory();
339
- $this->_productCollection = $this->_productCollection->addIdFilter($arr_productids);
340
- }
341
-
342
- Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($this->_productCollection);
343
- Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($this->_productCollection);
344
- if ($this->_productCollection && $this->_productCollection->getSize ()) {
345
-
346
- if(method_exists($this->_productCollection,"setMaxSize")){
347
- $this->_productCollection->setMaxSize($perPage);
348
- }
349
- }
350
- return $this->_productCollection;
351
- }
352
-
353
- function getListBestBuyProducts($fieldorder = 'ordered_qty', $order = 'desc', $product_ids = '', $perPage = NULL, $currentPage = 1) {
354
-
355
- $list = null;
356
- /*
357
- Always set de $perPage, by template or by config
358
- if $perPage eq 0 (zero) not limit the list
359
- */
360
- if ($perPage === NULL)
361
- $perPage = ( int ) $this->_config ['qty'];
362
-
363
-
364
- /*
365
- Show all the product list in the current store
366
- order by ordered_qty, showing the bestsellers first
367
- */
368
-
369
- $storeId = Mage::app ()->getStore ()->getId ();
370
- $resource = Mage::getResourceModel('catalog/product_collection');
371
-
372
- $products = $resource->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
373
- ->addMinimalPrice()
374
- ->addFinalPrice()
375
- ->addTaxPercents()
376
- ->setStoreId($storeId)
377
- ->addStoreFilter($storeId)
378
- ->setOrder($fieldorder, $order);
379
-
380
-
381
- if($this->_config['productsid']){
382
- // get array product_id
383
-
384
- $arr_productids = explode(",", $this->_config['productsid']);
385
- $products = $products->addIdFilter($arr_productids);
386
- }
387
- elseif($this->_config['catsid']){
388
- // get array product_id
389
- $arr_productids = $this->getProductByCategory();
390
-
391
- $products = $products->addIdFilter($arr_productids);
392
- }
393
-
394
- if ($product_ids) {
395
- $products->addAttributeToFilter('entity_id', $product_ids);
396
- }
397
-
398
- /*
399
- Filter list of product showing only the active and
400
- visible product
401
- */
402
- Mage::getSingleton ( 'catalog/product_visibility' )->addVisibleInCatalogFilterToCollection ( $products );
403
- Mage::getSingleton ( 'catalog/product_status' )->addVisibleFilterToCollection ( $products );
404
-
405
-
406
- $products->setPageSize ( $perPage )->setCurPage ( $currentPage );
407
-
408
- $this->setProductCollection ( $products );
409
-
410
- $this->_addProductAttributesAndPrices($products);
411
-
412
- if (($_products = $this->getProductCollection ()) && $_products->getSize ()) {
413
-
414
- if(method_exists($_products,"setMaxSize")){
415
- $_products->setMaxSize($perPage);
416
- }
417
- $list = $_products;
418
- }
419
-
420
- return $list;
421
- }
422
-
423
- function getListFeaturedProducts() {
424
-
425
- $list = array ();
426
- // instantiate database connection object
427
-
428
-
429
- $resource = Mage::getSingleton ( 'core/resource' );
430
-
431
- $read = $resource->getConnection ( 'catalog_read' );
432
-
433
- $categoryProductTable = $resource->getTableName ( 'catalog/category_product' );
434
-
435
- $productEntityIntTable = ( string ) Mage::getConfig ()->getTablePrefix () . 'catalog_product_entity_int';
436
-
437
- $eavAttributeTable = $resource->getTableName ( 'eav/attribute' );
438
-
439
- // Query database for featured product
440
- $select = $read->select ( 'cp.product_id' )->
441
-
442
- from ( array ('cp' => $categoryProductTable ) )->
443
-
444
- join ( array ('pei' => $productEntityIntTable ), 'pei.entity_id=cp.product_id', array () )->
445
-
446
- joinNatural ( array ('ea' => $eavAttributeTable ) )->
447
-
448
- where ( "pei.value='1'" )->
449
-
450
- where ( "ea.attribute_code='featured'" );
451
-
452
- //->where($cond_category_id)
453
-
454
- $rows = $read->fetchAll ( $select );
455
-
456
- $product_ids = array ();
457
- if ($rows) {
458
- foreach ( $rows as $row ) {
459
- $product_ids [] = $row ['product_id'];
460
- }
461
- $list = $this->getListBestBuyProducts ( 'updated_at', 'desc', $product_ids );
462
- }
463
-
464
- return $list;
465
- }
466
-
467
- function set($show=1, $mode='', $title='', $catsid='', $quanlity=9, $perrow=3, $template='', $width ='135', $height='135', $max ='80'){
468
- if(!$mode || !$show){
469
- $this->_config['show'] = 0;
470
- return ;
471
- }
472
-
473
- if($mode) $this->_config['mode'] = $mode;
474
- if($title) $this->_config['title'] = $title;
475
- if($catsid!='') $this->_config['catsid'] = $catsid;
476
- if($quanlity) $this->_config['qty'] = $quanlity;
477
- if($perrow) $this->_config['perrow'] = $perrow;
478
-
479
- // -- added by Duchh 15/12/2009
480
- if($width) $this->_config['width'] = $width;
481
- if($height) $this->_config['height'] = $height;
482
- if($max) $this->_config['max'] = $max;
483
- //if($attributename) $this->_config['attributename'] = $attributename;
484
- //if($attributevalue) $this->_config['attributevalue'] = $attributevalue;
485
- //if($template!='') $this->_config['template'] = $template;
486
- }
487
-
488
- // ++ added by congtq 18/09/2009
489
- /**
490
- * check the array existed in the other array
491
- *
492
- */
493
- function inArray($source, $target) {
494
- for($j = 0; $j < sizeof ( $source ); $j ++) {
495
- if (in_array ( $source [$j], $target )) {
496
- return true;
497
- //echo 'ok';
498
- }
499
- }
500
- }
501
- // -- added by congtq 18/09/2009
502
-
503
- // ++ added by congtq 27/10/2009
504
- function getProductByCategory(){
505
- $return = array();
506
- $pids = array();
507
-
508
- $products = Mage::getResourceModel ( 'catalog/product_collection' );
509
-
510
- foreach ($products->getItems() as $key => $_product){
511
- $arr_categoryids[$key] = $_product->getCategoryIds();
512
-
513
- if($this->_config['catsid']){
514
- if(stristr($this->_config['catsid'], ',') === FALSE) {
515
- $arr_catsid[$key] = array(0 => $this->_config['catsid']);
516
- }else{
517
- $arr_catsid[$key] = explode(",", $this->_config['catsid']);
518
- }
519
-
520
- $return[$key] = $this->inArray($arr_catsid[$key], $arr_categoryids[$key]);
521
- }
522
- }
523
-
524
- foreach ($return as $k => $v){
525
- if($v==1) $pids[] = $k;
526
- }
527
-
528
- return $pids;
529
- }
530
-
531
- /**
532
- * Retrieve Toolbar block
533
- *
534
- * @return Mage_Catalog_Block_Product_List_Toolbar
535
- */
536
- public function getToolbarBlock()
537
- {
538
- if ($blockName = $this->getToolbarBlockName()) {
539
-
540
- if ($block = $this->getLayout()->getBlock($blockName)) {
541
- return $block;
542
- }
543
- }
544
-
545
- $block = $this->getLayout()->createBlock($this->_defaultToolbarBlock, microtime());
546
- return $block;
547
- }
548
-
549
- /**
550
- * Retrieve current view mode
551
- *
552
- * @return string
553
- */
554
- public function getMode()
555
- {
556
- return $this->getChild('toolbar')->getCurrentMode();
557
- }
558
-
559
-
560
- /**
561
- * Need use as _prepareLayout - but problem in declaring collection from
562
- * another block (was problem with search result)
563
- */
564
- protected function _beforeToHtml()
565
- {
566
- $toolbar = $this->getToolbarBlock();
567
- $viewall = $this->getData("viewall")?$this->getData("viewall"):false;
568
- $filter = $this->getData("filter")?$this->getData("filter"):false;
569
- // called prepare sortable parameters
570
-
571
- //assign some settings from block attributes
572
- if($this->getData("quanlity")){
573
- $this->_config ['qty'] = $this->getData("quanlity");
574
-
575
- }
576
- if($this->getData("catsid")){
577
- $this->_config ['catsid'] = $this->getData("catsid");
578
- }
579
- if($this->getData("perrow")){
580
- $this->_config ['perrow'] = $this->getData("perrow");
581
- }
582
- if($this->getData("mode")){
583
- $this->_config ['mode'] = $this->getData("mode");
584
- }
585
- if($this->getData("title")){
586
- $this->_config ['title'] = $this->getData("title");
587
- }
588
- if($this->getData("qtyperpage")){
589
- $this->_config ['qtyperpage'] = $this->getData("qtyperpage");
590
- }
591
- $detect = Mage::helper ( 'joomlart_jmproducts/mobiledetect');
592
- if($detect->isTablet()){
593
- //assign some settings from block attributes
594
- if($this->getData("quanlitytable")){
595
- $this->_config ['qty'] = $this->getData("quanlitytable");
596
-
597
- }
598
- if($this->getData("perrowtablet")){
599
- $this->_config ['perrow'] = $this->getData("perrowtablet");
600
- }
601
- if($this->getData("qtyperpagetable")){
602
- $this->_config ['qtyperpagetable'] = $this->getData("qtyperpagetable");
603
- }
604
-
605
- }elseif($detect->isMobile()){
606
- //assign some settings from block attributes
607
- if($this->getData("quanlitymobile")){
608
- $this->_config ['qty'] = $this->getData("quanlitymobile");
609
-
610
- }
611
- if($this->getData("perrowmobile")){
612
- $this->_config ['perrow'] = $this->getData("perrowmobile");
613
- }
614
-
615
- if($this->getData("qtyperpage")){
616
- $this->_config ['qtyperpagemobile'] = $this->getData("qtyperpagemobile");
617
- }
618
-
619
- }
620
- $collection = $this->getListProducts();
621
-
622
- // use sortable parameters
623
- if ($orders = $this->getAvailableOrders()) {
624
- $toolbar->setAvailableOrders($orders);
625
- }
626
- if ($sort = $this->getSortBy()) {
627
- $toolbar->setDefaultOrder($sort);
628
- }
629
- if ($dir = $this->getDefaultDirection()) {
630
- $toolbar->setDefaultDirection($dir);
631
- }
632
- if ($modes = $this->getModes()) {
633
- $toolbar->setModes($modes);
634
- }
635
-
636
- if($this->_config ['qtyperpage']){
637
- $toolbar->addPagerLimit("grid",$this->_config ['qtyperpage']);
638
- $toolbar->addPagerLimit("list",$this->_config ['qtyperpage']);
639
- }
640
- // set collection to toolbar and apply sort
641
- // set collection to toolbar and apply sort
642
- if(is_object($collection) && (method_exists($collection,"setMaxSize") || $viewall || $filter)){
643
- $toolbar->setCollection($collection);
644
- $this->setChild('toolbar', $toolbar);
645
- Mage::dispatchEvent('catalog_block_product_list_collection', array(
646
- 'collection' => $this->getListProducts()
647
- ));
648
- }
649
-
650
- return parent::_beforeToHtml();
651
-
652
- }
653
-
654
- /**
655
- * Retrieve list toolbar HTML
656
- *
657
- * @return string
658
- */
659
- public function getToolbarHtml()
660
- {
661
- return $this->getChildHtml('toolbar');
662
-
663
- }
664
-
665
- public function getFirstCategoryName($_product)
666
- {
667
- $root_cate_id = Mage::app()->getStore()->getRootCategoryId();
668
- $ids = $_product->getCategoryIds();
669
- if ((count($ids)>1)&&($ids[0]==$root_cate_id)){
670
- $category_id = $ids[1];
671
- }else {
672
- $category_id = $ids[0];
673
- }
674
- $cate = Mage::getModel('catalog/category')->load($category_id) ;
675
- return $cate->getName();
676
- }
677
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Helper/Data.php DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
- class JoomlArt_JmProducts_Helper_Data extends Mage_Core_Helper_Abstract {
13
- function get($var, $attributes){
14
- if(isset($attributes[$var])){
15
- return $attributes[$var];
16
- }
17
- return Mage::getStoreConfig("joomlart_jmproducts/joomlart_jmproducts/$var");
18
- }
19
- }
20
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Helper/Mobiledetect.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Optimiseweb MobileDetect Helper Data
5
- *
6
- * @package Optimiseweb_MobileDetect
7
- * @author Kathir Vel (sid@optimiseweb.co.uk)
8
- * @copyright Copyright (c) 2013 Optimise Web Limited
9
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
- */
11
- if(!class_exists("Mobile_Detect")){
12
- require_once Mage::getModuleDir('', 'JoomlArt_JmProducts') . DS . 'Library' . DS . 'Mobile_Detect.php';
13
- }
14
- class JoomlArt_JmProducts_Helper_Mobiledetect extends Mobile_Detect
15
- {
16
-
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Library/Mobile_Detect.php DELETED
@@ -1,803 +0,0 @@
1
- <?php
2
- /**
3
- * MIT License
4
- * ===========
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining
7
- * a copy of this software and associated documentation files (the
8
- * "Software"), to deal in the Software without restriction, including
9
- * without limitation the rights to use, copy, modify, merge, publish,
10
- * distribute, sublicense, and/or sell copies of the Software, and to
11
- * permit persons to whom the Software is furnished to do so, subject to
12
- * the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included
15
- * in all copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
- * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
- * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
- * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
- *
25
- *
26
- * @author Serban Ghita <serbanghita@gmail.com>
27
- * Victor Stanciu <vic.stanciu@gmail.com> (until v1.0)
28
- * @license MIT License https://github.com/serbanghita/Mobile-Detect/blob/master/LICENSE.txt
29
- * @link Official page: http://mobiledetect.net
30
- * GitHub Repository: https://github.com/serbanghita/Mobile-Detect
31
- * Google Code Old Page: http://code.google.com/p/php-mobile-detect/
32
- * @version 2.6.0
33
- */
34
-
35
- class Mobile_Detect {
36
-
37
- protected $scriptVersion = '2.6.0';
38
-
39
- // External info.
40
- protected $userAgent = null;
41
- protected $httpHeaders;
42
-
43
- // Arrays holding all detection rules.
44
- protected $mobileDetectionRules = null;
45
- protected $mobileDetectionRulesExtended = null;
46
- // Type of detection to use.
47
- protected $detectionType = 'mobile'; // mobile, extended @todo: refactor this.
48
-
49
- // List of mobile devices (phones)
50
- protected $phoneDevices = array(
51
- 'iPhone' => '\biPhone.*Mobile|\biPod|\biTunes',
52
- 'BlackBerry' => 'BlackBerry|\bBB10\b|rim[0-9]+',
53
- 'HTC' => 'HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b',
54
- 'Nexus' => 'Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile',
55
- // @todo: Is 'Dell Streak' a tablet or a phone? ;)
56
- 'Dell' => 'Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b',
57
- 'Motorola' => 'Motorola|\bDroid\b.*Build|DROIDX|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT909|XT910|XT912|XT928',
58
- 'Samsung' => 'Samsung|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9300 |GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100',
59
- 'LG' => '\bLG\b;|(LG|LG-)?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999)',
60
- 'Sony' => 'sony|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i',
61
- 'Asus' => 'Asus.*Galaxy',
62
- 'Palm' => 'PalmSource|Palm', // avantgo|blazer|elaine|hiptop|plucker|xiino ; @todo - complete the regex.
63
- 'Vertu' => 'Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature', // Just for fun ;)
64
- // @ref: http://www.pantech.co.kr/en/prod/prodList.do?gbrand=VEGA (PANTECH)
65
- // Most of the VEGA devices are legacy. PANTECH seem to be newer devices based on Android.
66
- 'Pantech' => 'PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790',
67
- // @ref: http://www.fly-phone.com/devices/smartphones/ ; Included only smartphones.
68
- 'Fly' => 'IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250',
69
- // Added simvalley mobile just for fun. They have some interesting devices.
70
- // @ref: http://www.simvalley.fr/telephonie---gps-_22_telephonie-mobile_telephones_.html
71
- 'SimValley' => '\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b',
72
- // @Tapatalk is a mobile app; @ref: http://support.tapatalk.com/threads/smf-2-0-2-os-and-browser-detection-plugin-and-tapatalk.15565/#post-79039
73
- 'GenericPhone' => 'Tapatalk|PDA;|PPC;|SAGEM|mmp|pocket|psp|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|wap|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser|LG-P500'
74
- );
75
- // List of tablet devices.
76
- protected $tabletDevices = array(
77
- 'iPad' => 'iPad|iPad.*Mobile', // @todo: check for mobile friendly emails topic.
78
- 'NexusTablet' => '^.*Android.*Nexus(((?:(?!Mobile))|(?:(\s(7|10).+))).)*$',
79
- 'SamsungTablet' => 'SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739',
80
- // @reference: http://www.labnol.org/software/kindle-user-agent-string/20378/
81
- 'Kindle' => 'Kindle|Silk.*Accelerated',
82
- // Only the Surface tablets with Windows RT are considered mobile.
83
- // @ref: http://msdn.microsoft.com/en-us/library/ie/hh920767(v=vs.85).aspx
84
- 'SurfaceTablet' => 'Windows NT [0-9.]+; ARM;',
85
- 'AsusTablet' => 'Transformer|TF101',
86
- 'BlackBerryTablet' => 'PlayBook|RIM Tablet',
87
- 'HTCtablet' => 'HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200',
88
- 'MotorolaTablet' => 'xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617',
89
- 'NookTablet' => 'Android.*Nook|NookColor|nook browser|BNTV250A|LogicPD Zoom2',
90
- // @ref: http://www.acer.ro/ac/ro/RO/content/drivers
91
- // @ref: http://www.packardbell.co.uk/pb/en/GB/content/download (Packard Bell is part of Acer)
92
- 'AcerTablet' => 'Android.*\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71)\b',
93
- // @ref: http://eu.computers.toshiba-europe.com/innovation/family/Tablets/1098744/banner_id/tablet_footerlink/
94
- // @ref: http://us.toshiba.com/tablets/tablet-finder
95
- // @ref: http://www.toshiba.co.jp/regza/tablet/
96
- 'ToshibaTablet' => 'Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)',
97
- // @ref: http://www.nttdocomo.co.jp/english/service/developer/smart_phone/technical_info/spec/index.html
98
- 'LGTablet' => '\bL-06C|LG-V900|LG-V909\b',
99
- 'YarvikTablet' => 'Android.*(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468)',
100
- 'MedionTablet' => 'Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB',
101
- 'ArnovaTablet' => 'AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT',
102
- // @reference: http://wiki.archosfans.com/index.php?title=Main_Page
103
- 'ArchosTablet' => 'Android.*ARCHOS|101G9|80G9',
104
- // @reference: http://en.wikipedia.org/wiki/NOVO7
105
- 'AinolTablet' => 'NOVO7|Novo7Aurora|Novo7Basic|NOVO7PALADIN',
106
- // @todo: inspect http://esupport.sony.com/US/p/select-system.pl?DIRECTOR=DRIVER
107
- // @ref: Readers http://www.atsuhiro-me.net/ebook/sony-reader/sony-reader-web-browser
108
- // @ref: http://www.sony.jp/support/tablet/
109
- 'SonyTablet' => 'Sony Tablet|Sony Tablet S|SGPT12|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT211|SGPT213|EBRD1101|EBRD1102|EBRD1201',
110
- // @ref: db + http://www.cube-tablet.com/buy-products.html
111
- 'CubeTablet' => 'Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT',
112
- // @ref: http://www.cobyusa.com/?p=pcat&pcat_id=3001
113
- 'CobyTablet' => 'MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010',
114
- // @ref: http://pdadb.net/index.php?m=pdalist&list=SMiT (NoName Chinese Tablets)
115
- // @ref: http://www.imp3.net/14/show.php?itemid=20454
116
- 'SMiTTablet' => 'Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)',
117
- // @ref: http://www.rock-chips.com/index.php?do=prod&pid=2
118
- 'RockChipTablet' => 'Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A',
119
- // @ref: http://www.telstra.com.au/home-phone/thub-2/
120
- 'TelstraTablet' => 'T-Hub2',
121
- // @ref: http://www.fly-phone.com/devices/tablets/ ; http://www.fly-phone.com/service/
122
- 'FlyTablet' => 'IQ310|Fly Vision',
123
- // @ref: http://www.bqreaders.com/gb/tablets-prices-sale.html
124
- 'bqTablet' => 'bq.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant)',
125
- // @ref: http://www.huaweidevice.com/worldwide/productFamily.do?method=index&directoryId=5011&treeId=3290
126
- // @ref: http://www.huaweidevice.com/worldwide/downloadCenter.do?method=index&directoryId=3372&treeId=0&tb=1&type=software (including legacy tablets)
127
- 'HuaweiTablet' => 'MediaPad|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim',
128
- // Nec or Medias Tab
129
- 'NecTablet' => '\bN-06D|\bN-08D',
130
- // Pantech Tablets: http://www.pantechusa.com/phones/
131
- 'PantechTablet' => 'Pantech.*P4100',
132
- // Broncho Tablets: http://www.broncho.cn/ (hard to find)
133
- 'BronchoTablet' => 'Broncho.*(N701|N708|N802|a710)',
134
- // @ref: http://versusuk.com/support.html
135
- 'VersusTablet' => 'TOUCHPAD.*[78910]',
136
- // @ref: http://www.zync.in/index.php/our-products/tablet-phablets
137
- 'ZyncTablet' => 'z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900',
138
- // @ref: http://www.positivoinformatica.com.br/www/pessoal/tablet-ypy/
139
- 'PositivoTablet' => 'TB07STA|TB10STA|TB07FTA|TB10FTA',
140
- // @ref: https://www.nabitablet.com/
141
- 'NabiTablet' => 'Android.*\bNabi',
142
- // @note: Avoid detecting 'PLAYSTATION 3' as mobile.
143
- 'PlaystationTablet' => 'Playstation.*(Portable|Vita)',
144
- 'GenericTablet' => 'Android.*\b97D\b|Tablet(?!.*PC)|ViewPad7|MID7015|BNTV250A|LogicPD Zoom2|\bA7EB\b|CatNova8|A1_07|CT704|CT1002|\bM721\b|hp-tablet',
145
- );
146
- // List of mobile Operating Systems.
147
- protected $operatingSystems = array(
148
- 'AndroidOS' => 'Android',
149
- 'BlackBerryOS' => 'blackberry|\bBB10\b|rim tablet os',
150
- 'PalmOS' => 'PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino',
151
- 'SymbianOS' => 'Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\bS60\b',
152
- // @reference: http://en.wikipedia.org/wiki/Windows_Mobile
153
- 'WindowsMobileOS' => 'Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;',
154
- // @reference: http://en.wikipedia.org/wiki/Windows_Phone
155
- // http://wifeng.cn/?r=blog&a=view&id=106
156
- // http://nicksnettravels.builttoroam.com/post/2011/01/10/Bogus-Windows-Phone-7-User-Agent-String.aspx
157
- 'WindowsPhoneOS' => 'Windows Phone OS|XBLWP7|ZuneWP7',
158
- 'iOS' => '\biPhone.*Mobile|\biPod|\biPad',
159
- // http://en.wikipedia.org/wiki/MeeGo
160
- // @todo: research MeeGo in UAs
161
- 'MeeGoOS' => 'MeeGo',
162
- // http://en.wikipedia.org/wiki/Maemo
163
- // @todo: research Maemo in UAs
164
- 'MaemoOS' => 'Maemo',
165
- 'JavaOS' => 'J2ME/|Java/|\bMIDP\b|\bCLDC\b',
166
- 'webOS' => 'webOS|hpwOS',
167
- 'badaOS' => '\bBada\b',
168
- 'BREWOS' => 'BREW',
169
- );
170
- // List of mobile User Agents.
171
- protected $userAgents = array(
172
- // @reference: https://developers.google.com/chrome/mobile/docs/user-agent
173
- 'Chrome' => '\bCrMo\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?',
174
- 'Dolfin' => '\bDolfin\b',
175
- 'Opera' => 'Opera.*Mini|Opera.*Mobi|Android.*Opera|OPR/[0-9.]+',
176
- 'Skyfire' => 'Skyfire',
177
- 'IE' => 'IEMobile|MSIEMobile',
178
- 'Firefox' => 'fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile',
179
- 'Bolt' => 'bolt',
180
- 'TeaShark' => 'teashark',
181
- 'Blazer' => 'Blazer',
182
- // @reference: http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/OptimizingforSafarioniPhone/OptimizingforSafarioniPhone.html#//apple_ref/doc/uid/TP40006517-SW3
183
- 'Safari' => 'Version.*Mobile.*Safari|Safari.*Mobile',
184
- // @ref: http://en.wikipedia.org/wiki/Midori_(web_browser)
185
- //'Midori' => 'midori',
186
- 'Tizen' => 'Tizen',
187
- 'UCBrowser' => 'UC.*Browser|UCWEB',
188
- // @ref: https://github.com/serbanghita/Mobile-Detect/issues/7
189
- 'DiigoBrowser' => 'DiigoBrowser',
190
- // http://www.puffinbrowser.com/index.php
191
- 'Puffin' => 'Puffin',
192
- // @ref: http://mercury-browser.com/index.html
193
- 'Mercury' => '\bMercury\b',
194
- // @reference: http://en.wikipedia.org/wiki/Minimo
195
- // http://en.wikipedia.org/wiki/Vision_Mobile_Browser
196
- 'GenericBrowser' => 'NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision'
197
- );
198
- // Utilities.
199
- protected $utilities = array(
200
- // Experimental. When a mobile device wants to switch to 'Desktop Mode'.
201
- // @ref: http://scottcate.com/technology/windows-phone-8-ie10-desktop-or-mobile/
202
- // @ref: https://github.com/serbanghita/Mobile-Detect/issues/57#issuecomment-15024011
203
- 'DesktopMode' => 'WPDesktop',
204
- 'TV' => 'SonyDTV115', // experimental
205
- 'WebKit' => '(webkit)[ /]([\w.]+)',
206
- 'Bot' => 'Googlebot|DoCoMo|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|facebookexternalhit',
207
- 'MobileBot' => 'Googlebot-Mobile|DoCoMo|YahooSeeker/M1A1-R2D2',
208
- );
209
- // Properties list.
210
- // @reference: http://user-agent-string.info/list-of-ua#Mobile Browser
211
- const VER = '([\w._]+)';
212
- protected $properties = array(
213
-
214
- // Build
215
- 'Mobile' => 'Mobile/[VER]',
216
- 'Build' => 'Build/[VER]',
217
- 'Version' => 'Version/[VER]',
218
- 'VendorID' => 'VendorID/[VER]',
219
-
220
- // Devices
221
- 'iPad' => 'iPad.*CPU[a-z ]+[VER]',
222
- 'iPhone' => 'iPhone.*CPU[a-z ]+[VER]',
223
- 'iPod' => 'iPod.*CPU[a-z ]+[VER]',
224
- //'BlackBerry' => array('BlackBerry[VER]', 'BlackBerry [VER];'),
225
- 'Kindle' => 'Kindle/[VER]',
226
-
227
- // Browser
228
- 'Chrome' => array('Chrome/[VER]', 'CriOS/[VER]', 'CrMo/[VER]'),
229
- 'Dolfin' => 'Dolfin/[VER]',
230
- // @reference: https://developer.mozilla.org/en-US/docs/User_Agent_Strings_Reference
231
- 'Firefox' => 'Firefox/[VER]',
232
- 'Fennec' => 'Fennec/[VER]',
233
- // @reference: http://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx
234
- 'IEMobile' => array('IEMobile/[VER];', 'IEMobile [VER]'),
235
- 'MSIE' => 'MSIE [VER];',
236
- // http://en.wikipedia.org/wiki/NetFront
237
- 'NetFront' => 'NetFront/[VER]',
238
- 'NokiaBrowser' => 'NokiaBrowser/[VER]',
239
- 'Opera' => 'Version/[VER]',
240
- 'Opera Mini' => 'Opera Mini/[VER]',
241
- 'Opera Mobi' => 'Version/[VER]',
242
- 'UC Browser' => 'UC Browser[VER]',
243
- 'Safari' => 'Version/[VER]',
244
- 'Skyfire' => 'Skyfire/[VER]',
245
- 'Tizen' => 'Tizen/[VER]',
246
- 'Webkit' => 'webkit[ /][VER]',
247
-
248
- // Engine
249
- 'Gecko' => 'Gecko/[VER]',
250
- 'Trident' => 'Trident/[VER]',
251
- 'Presto' => 'Presto/[VER]',
252
-
253
- // OS
254
- 'Android' => 'Android [VER]',
255
- 'BlackBerry' => array('BlackBerry[\w]+/[VER]', 'BlackBerry.*Version/[VER]'),
256
- 'BREW' => 'BREW [VER]',
257
- 'Java' => 'Java/[VER]',
258
- // @reference: http://windowsteamblog.com/windows_phone/b/wpdev/archive/2011/08/29/introducing-the-ie9-on-windows-phone-mango-user-agent-string.aspx
259
- // @reference: http://en.wikipedia.org/wiki/Windows_NT#Releases
260
- 'Windows Phone OS' => 'Windows Phone OS [VER]',
261
- 'Windows Phone' => 'Windows Phone [VER]',
262
- 'Windows CE' => 'Windows CE/[VER]',
263
- // http://social.msdn.microsoft.com/Forums/en-US/windowsdeveloperpreviewgeneral/thread/6be392da-4d2f-41b4-8354-8dcee20c85cd
264
- 'Windows NT' => 'Windows NT [VER]',
265
- 'Symbian' => array('SymbianOS/[VER]', 'Symbian/[VER]'),
266
- 'webOS' => array('webOS/[VER]', 'hpwOS/[VER];'),
267
-
268
-
269
- );
270
-
271
- function __construct(){
272
-
273
- $this->setHttpHeaders();
274
- $this->setUserAgent();
275
-
276
- $this->setMobileDetectionRules();
277
- $this->setMobileDetectionRulesExtended();
278
-
279
- }
280
-
281
-
282
- /**
283
- * Get the current script version.
284
- * This is useful for the demo.php file,
285
- * so people can check on what version they are testing
286
- * for mobile devices.
287
- */
288
- public function getScriptVersion(){
289
-
290
- return $this->scriptVersion;
291
-
292
- }
293
-
294
- public function setHttpHeaders($httpHeaders = null){
295
-
296
- if(!empty($httpHeaders)){
297
- $this->httpHeaders = $httpHeaders;
298
- } else {
299
- foreach($_SERVER as $key => $value){
300
- if(substr($key,0,5)=='HTTP_'){
301
- $this->httpHeaders[$key] = $value;
302
- }
303
- }
304
- }
305
-
306
- }
307
-
308
- public function getHttpHeaders(){
309
-
310
- return $this->httpHeaders;
311
-
312
- }
313
-
314
- public function setUserAgent($userAgent = null){
315
-
316
- if(!empty($userAgent)){
317
- $this->userAgent = $userAgent;
318
- } else {
319
- $this->userAgent = isset($this->httpHeaders['HTTP_USER_AGENT']) ? $this->httpHeaders['HTTP_USER_AGENT'] : null;
320
-
321
- if(empty($this->userAgent)){
322
- $this->userAgent = isset($this->httpHeaders['HTTP_X_DEVICE_USER_AGENT']) ? $this->httpHeaders['HTTP_X_DEVICE_USER_AGENT'] : null;
323
- }
324
- // Header can occur on devices using Opera Mini (can expose the real device type). Let's concatenate it (we need this extra info in the regexes).
325
- if(!empty($this->httpHeaders['HTTP_X_OPERAMINI_PHONE_UA'])){
326
- $this->userAgent .= ' '.$this->httpHeaders['HTTP_X_OPERAMINI_PHONE_UA'];
327
- }
328
- }
329
-
330
- }
331
-
332
- public function getUserAgent(){
333
-
334
- return $this->userAgent;
335
-
336
- }
337
-
338
- function setDetectionType($type = null){
339
-
340
- $this->detectionType = (!empty($type) ? $type : 'mobile');
341
-
342
- }
343
-
344
- public function getPhoneDevices(){
345
-
346
- return $this->phoneDevices;
347
-
348
- }
349
-
350
- public function getTabletDevices(){
351
-
352
- return $this->tabletDevices;
353
-
354
- }
355
-
356
- /**
357
- * Method sets the mobile detection rules.
358
- *
359
- * This method is used for the magic methods $detect->is*()
360
- */
361
- public function setMobileDetectionRules(){
362
- // Merge all rules together.
363
- $this->mobileDetectionRules = array_merge(
364
- $this->phoneDevices,
365
- $this->tabletDevices,
366
- $this->operatingSystems,
367
- $this->userAgents
368
- );
369
-
370
- }
371
-
372
- /**
373
- * Method sets the mobile detection rules + utilities.
374
- * The reason this is separate is because utilities rules
375
- * don't necessary imply mobile.
376
- *
377
- * This method is used inside the new $detect->is('stuff') method.
378
- *
379
- * @return bool
380
- */
381
- public function setMobileDetectionRulesExtended(){
382
-
383
- // Merge all rules together.
384
- $this->mobileDetectionRulesExtended = array_merge(
385
- $this->phoneDevices,
386
- $this->tabletDevices,
387
- $this->operatingSystems,
388
- $this->userAgents,
389
- $this->utilities
390
- );
391
-
392
- }
393
-
394
- /**
395
- * @return array
396
- */
397
- public function getRules()
398
- {
399
-
400
- if($this->detectionType=='extended'){
401
- return $this->mobileDetectionRulesExtended;
402
- } else {
403
- return $this->mobileDetectionRules;
404
- }
405
-
406
- }
407
-
408
- /**
409
- * Check the HTTP headers for signs of mobile.
410
- * This is the fastest mobile check possible; it's used
411
- * inside isMobile() method.
412
- * @return boolean
413
- */
414
- public function checkHttpHeadersForMobile(){
415
-
416
- if(
417
- isset($this->httpHeaders['HTTP_ACCEPT']) &&
418
- (strpos($this->httpHeaders['HTTP_ACCEPT'], 'application/x-obml2d') !== false || // Opera Mini; @reference: http://dev.opera.com/articles/view/opera-binary-markup-language/
419
- strpos($this->httpHeaders['HTTP_ACCEPT'], 'application/vnd.rim.html') !== false || // BlackBerry devices.
420
- strpos($this->httpHeaders['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false ||
421
- strpos($this->httpHeaders['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false) ||
422
- isset($this->httpHeaders['HTTP_X_WAP_PROFILE']) || // @todo: validate
423
- isset($this->httpHeaders['HTTP_X_WAP_CLIENTID']) ||
424
- isset($this->httpHeaders['HTTP_WAP_CONNECTION']) ||
425
- isset($this->httpHeaders['HTTP_PROFILE']) ||
426
- isset($this->httpHeaders['HTTP_X_OPERAMINI_PHONE_UA']) || // Reported by Nokia devices (eg. C3)
427
- isset($this->httpHeaders['HTTP_X_NOKIA_IPADDRESS']) ||
428
- isset($this->httpHeaders['HTTP_X_NOKIA_GATEWAY_ID']) ||
429
- isset($this->httpHeaders['HTTP_X_ORANGE_ID']) ||
430
- isset($this->httpHeaders['HTTP_X_VODAFONE_3GPDPCONTEXT']) ||
431
- isset($this->httpHeaders['HTTP_X_HUAWEI_USERID']) ||
432
- isset($this->httpHeaders['HTTP_UA_OS']) || // Reported by Windows Smartphones.
433
- isset($this->httpHeaders['HTTP_X_MOBILE_GATEWAY']) || // Reported by Verizon, Vodafone proxy system.
434
- isset($this->httpHeaders['HTTP_X_ATT_DEVICEID']) || // Seend this on HTC Sensation. @ref: SensationXE_Beats_Z715e
435
- //HTTP_X_NETWORK_TYPE = WIFI
436
- ( isset($this->httpHeaders['HTTP_UA_CPU']) &&
437
- $this->httpHeaders['HTTP_UA_CPU'] == 'ARM' // Seen this on a HTC.
438
- )
439
- ){
440
-
441
- return true;
442
-
443
- }
444
-
445
- return false;
446
-
447
- }
448
-
449
- /**
450
- * Magic overloading method.
451
- *
452
- * @method boolean is[...]()
453
- * @param string $name
454
- * @param array $arguments
455
- * @return mixed
456
- */
457
- public function __call($name, $arguments)
458
- {
459
-
460
- $this->setDetectionType('mobile');
461
-
462
- $key = substr($name, 2);
463
- return $this->matchUAAgainstKey($key);
464
-
465
- }
466
-
467
- /**
468
- * Find a detection rule that matches the current User-agent.
469
- *
470
- * @param null $userAgent deprecated
471
- * @return boolean
472
- */
473
- private function matchDetectionRulesAgainstUA($userAgent = null){
474
-
475
- // Begin general search.
476
- foreach($this->getRules() as $_regex){
477
- if(empty($_regex)){ continue; }
478
- if( $this->match($_regex, $userAgent) ){
479
- //var_dump( $_regex );
480
- return true;
481
- }
482
- }
483
-
484
- return false;
485
-
486
- }
487
-
488
- /**
489
- * Search for a certain key in the rules array.
490
- * If the key is found the try to match the corresponding
491
- * regex agains the User-agent.
492
- *
493
- * @param string $key
494
- * @param null $userAgent deprecated
495
- * @return mixed
496
- */
497
- private function matchUAAgainstKey($key, $userAgent = null){
498
-
499
- // Make the keys lowercase so we can match: isIphone(), isiPhone(), isiphone(), etc.
500
- $key = strtolower($key);
501
- $_rules = array_change_key_case($this->getRules());
502
-
503
- if(array_key_exists($key, $_rules)){
504
- if(empty($_rules[$key])){ return null; }
505
- return $this->match($_rules[$key], $userAgent);
506
- }
507
-
508
- return false;
509
-
510
- }
511
-
512
- /**
513
- * Check if the device is mobile.
514
- * Returns true if any type of mobile device detected, including special ones
515
- * @param null $userAgent deprecated
516
- * @param null $httpHeaders deprecated
517
- * @return bool
518
- */
519
- public function isMobile($userAgent = null, $httpHeaders = null) {
520
-
521
- if($httpHeaders){ $this->setHttpHeaders($httpHeaders); }
522
- if($userAgent){ $this->setUserAgent($userAgent); }
523
-
524
- $this->setDetectionType('mobile');
525
-
526
- if ($this->checkHttpHeadersForMobile()) {
527
- return true;
528
- } else {
529
- return $this->matchDetectionRulesAgainstUA();
530
- }
531
-
532
- }
533
-
534
- /**
535
- * Check if the device is a tablet.
536
- * Return true if any type of tablet device is detected.
537
- *
538
- * @param null $userAgent deprecated
539
- * @param null $httpHeaders deprecated
540
- * @return bool
541
- */
542
- public function isTablet($userAgent = null, $httpHeaders = null) {
543
-
544
- $this->setDetectionType('mobile');
545
-
546
- foreach($this->tabletDevices as $_regex){
547
- if($this->match($_regex, $userAgent)){
548
- return true;
549
- }
550
- }
551
-
552
- return false;
553
-
554
- }
555
-
556
- /**
557
- * This method checks for a certain property in the
558
- * userAgent.
559
- * @todo: The httpHeaders part is not yet used.
560
- *
561
- * @param $key
562
- * @param string $userAgent deprecated
563
- * @param string $httpHeaders deprecated
564
- * @return bool|int|null
565
- */
566
- public function is($key, $userAgent = null, $httpHeaders = null){
567
-
568
-
569
- // Set the UA and HTTP headers only if needed (eg. batch mode).
570
- if($httpHeaders) $this->setHttpHeaders($httpHeaders);
571
- if($userAgent) $this->setUserAgent($userAgent);
572
-
573
- $this->setDetectionType('extended');
574
-
575
- return $this->matchUAAgainstKey($key);
576
-
577
- }
578
-
579
- public function getOperatingSystems(){
580
-
581
- return $this->operatingSystems;
582
-
583
- }
584
-
585
- /**
586
- * Some detection rules are relative (not standard),
587
- * because of the diversity of devices, vendors and
588
- * their conventions in representing the User-Agent or
589
- * the HTTP headers.
590
- *
591
- * This method will be used to check custom regexes against
592
- * the User-Agent string.
593
- *
594
- * @param $regex
595
- * @param string $userAgent
596
- * @return bool
597
- *
598
- * @todo: search in the HTTP headers too.
599
- */
600
- function match($regex, $userAgent=null){
601
-
602
- // Escape the special character which is the delimiter.
603
- $regex = str_replace('/', '\/', $regex);
604
-
605
- return (bool)preg_match('/'.$regex.'/is', (!empty($userAgent) ? $userAgent : $this->userAgent));
606
-
607
- }
608
-
609
- /**
610
- * Get the properties array.
611
- * @return array
612
- */
613
- function getProperties(){
614
-
615
- return $this->properties;
616
-
617
- }
618
-
619
- /**
620
- * Prepare the version number.
621
- *
622
- * @param $ver
623
- * @return int
624
- */
625
- function prepareVersionNo($ver){
626
-
627
- $ver = str_replace(array('_', ' ', '/'), array('.', '.', '.'), $ver);
628
- $arrVer = explode('.', $ver, 2);
629
- if(isset($arrVer[1])){
630
- $arrVer[1] = @str_replace('.', '', $arrVer[1]); // @todo: treat strings versions.
631
- }
632
- $ver = (float)implode('.', $arrVer);
633
-
634
- return $ver;
635
-
636
- }
637
-
638
- /**
639
- * Check the version of the given property in the User-Agent.
640
- * Will return a float number. (eg. 2_0 will return 2.0, 4.3.1 will return 4.31)
641
- *
642
- * @param string $propertyName
643
- * @return mixed $version
644
- */
645
- function version($propertyName, $type = 'text'){
646
-
647
- if(empty($propertyName)){ return false; }
648
- if( !in_array($type, array('text', 'float')) ){ $type = 'text'; }
649
-
650
- $properties = $this->getProperties();
651
-
652
- // Check if the property exists in the properties array.
653
- if( array_key_exists($propertyName, $properties) ){
654
-
655
- // Prepare the pattern to be matched.
656
- // Make sure we always deal with an array (string is converted).
657
- $properties[$propertyName] = (array)$properties[$propertyName];
658
-
659
- foreach($properties[$propertyName] as $propertyMatchString){
660
-
661
- $propertyPattern = str_replace('[VER]', self::VER, $propertyMatchString);
662
-
663
- // Escape the special character which is the delimiter.
664
- $propertyPattern = str_replace('/', '\/', $propertyPattern);
665
-
666
- // Identify and extract the version.
667
- preg_match('/'.$propertyPattern.'/is', $this->userAgent, $match);
668
-
669
- if(!empty($match[1])){
670
- $version = ( $type == 'float' ? $this->prepareVersionNo($match[1]) : $match[1] );
671
- return $version;
672
- }
673
-
674
- }
675
-
676
- }
677
-
678
- return false;
679
-
680
- }
681
-
682
- function mobileGrade(){
683
-
684
- $isMobile = $this->isMobile();
685
-
686
- if(
687
- // Apple iOS 3.2-5.1 - Tested on the original iPad (4.3 / 5.0), iPad 2 (4.3), iPad 3 (5.1), original iPhone (3.1), iPhone 3 (3.2), 3GS (4.3), 4 (4.3 / 5.0), and 4S (5.1)
688
- $this->version('iPad')>=4.3 ||
689
- $this->version('iPhone')>=3.1 ||
690
- $this->version('iPod')>=3.1 ||
691
-
692
- // Android 2.1-2.3 - Tested on the HTC Incredible (2.2), original Droid (2.2), HTC Aria (2.1), Google Nexus S (2.3). Functional on 1.5 & 1.6 but performance may be sluggish, tested on Google G1 (1.5)
693
- // Android 3.1 (Honeycomb) - Tested on the Samsung Galaxy Tab 10.1 and Motorola XOOM
694
- // Android 4.0 (ICS) - Tested on a Galaxy Nexus. Note: transition performance can be poor on upgraded devices
695
- // Android 4.1 (Jelly Bean) - Tested on a Galaxy Nexus and Galaxy 7
696
- ( $this->version('Android')>2.1 && $this->is('Webkit') ) ||
697
-
698
- // Windows Phone 7-7.5 - Tested on the HTC Surround (7.0) HTC Trophy (7.5), LG-E900 (7.5), Nokia Lumia 800
699
- $this->version('Windows Phone OS')>=7.0 ||
700
-
701
- // Blackberry 7 - Tested on BlackBerry® Torch 9810
702
- // Blackberry 6.0 - Tested on the Torch 9800 and Style 9670
703
- $this->version('BlackBerry')>=6.0 ||
704
- // Blackberry Playbook (1.0-2.0) - Tested on PlayBook
705
- $this->match('Playbook.*Tablet') ||
706
-
707
- // Palm WebOS (1.4-2.0) - Tested on the Palm Pixi (1.4), Pre (1.4), Pre 2 (2.0)
708
- ( $this->version('webOS')>=1.4 && $this->match('Palm|Pre|Pixi') ) ||
709
- // Palm WebOS 3.0 - Tested on HP TouchPad
710
- $this->match('hp.*TouchPad') ||
711
-
712
- // Firefox Mobile (12 Beta) - Tested on Android 2.3 device
713
- ( $this->is('Firefox') && $this->version('Firefox')>=12 ) ||
714
-
715
- // Chrome for Android - Tested on Android 4.0, 4.1 device
716
- ( $this->is('Chrome') && $this->is('AndroidOS') && $this->version('Android')>=4.0 ) ||
717
-
718
- // Skyfire 4.1 - Tested on Android 2.3 device
719
- ( $this->is('Skyfire') && $this->version('Skyfire')>=4.1 && $this->is('AndroidOS') && $this->version('Android')>=2.3 ) ||
720
-
721
- // Opera Mobile 11.5-12: Tested on Android 2.3
722
- ( $this->is('Opera') && $this->version('Opera Mobi')>11 && $this->is('AndroidOS') ) ||
723
-
724
- // Meego 1.2 - Tested on Nokia 950 and N9
725
- $this->is('MeeGoOS') ||
726
-
727
- // Tizen (pre-release) - Tested on early hardware
728
- $this->is('Tizen') ||
729
-
730
- // Samsung Bada 2.0 - Tested on a Samsung Wave 3, Dolphin browser
731
- // @todo: more tests here!
732
- $this->is('Dolfin') && $this->version('Bada')>=2.0 ||
733
-
734
- // UC Browser - Tested on Android 2.3 device
735
- ( ($this->is('UC Browser') || $this->is('Dolfin')) && $this->version('Android')>=2.3 ) ||
736
-
737
- // Kindle 3 and Fire - Tested on the built-in WebKit browser for each
738
- ( $this->match('Kindle Fire') ||
739
- $this->is('Kindle') && $this->version('Kindle')>=3.0 ) ||
740
-
741
- // Nook Color 1.4.1 - Tested on original Nook Color, not Nook Tablet
742
- $this->is('AndroidOS') && $this->is('NookTablet') ||
743
-
744
- // Chrome Desktop 11-21 - Tested on OS X 10.7 and Windows 7
745
- $this->version('Chrome')>=11 && !$isMobile ||
746
-
747
- // Safari Desktop 4-5 - Tested on OS X 10.7 and Windows 7
748
- $this->version('Safari')>=5.0 && !$isMobile ||
749
-
750
- // Firefox Desktop 4-13 - Tested on OS X 10.7 and Windows 7
751
- $this->version('Firefox')>=4.0 && !$isMobile ||
752
-
753
- // Internet Explorer 7-9 - Tested on Windows XP, Vista and 7
754
- $this->version('MSIE')>=7.0 && !$isMobile ||
755
-
756
- // Opera Desktop 10-12 - Tested on OS X 10.7 and Windows 7
757
- // @reference: http://my.opera.com/community/openweb/idopera/
758
- $this->version('Opera')>=10 && !$isMobile
759
-
760
-
761
- ){
762
- return 'A';
763
- }
764
-
765
- if(
766
- // Blackberry 5.0: Tested on the Storm 2 9550, Bold 9770
767
- $this->version('BlackBerry')>=5 && $this->version('BlackBerry')<6 ||
768
-
769
- //Opera Mini (5.0-6.5) - Tested on iOS 3.2/4.3 and Android 2.3
770
- ( $this->version('Opera Mini')>=5.0 && $this->version('Opera Mini')<=6.5 &&
771
- ($this->version('Android')>=2.3 || $this->is('iOS')) ) ||
772
-
773
- // Nokia Symbian^3 - Tested on Nokia N8 (Symbian^3), C7 (Symbian^3), also works on N97 (Symbian^1)
774
- $this->match('NokiaN8|NokiaC7|N97.*Series60|Symbian/3') ||
775
-
776
- // @todo: report this (tested on Nokia N71)
777
- $this->version('Opera Mobi')>=11 && $this->is('SymbianOS')
778
-
779
- ){
780
- return 'B';
781
- }
782
-
783
- if(
784
- // Blackberry 4.x - Tested on the Curve 8330
785
- $this->version('BlackBerry')<5.0 ||
786
- // Windows Mobile - Tested on the HTC Leo (WinMo 5.2)
787
- $this->match('MSIEMobile|Windows CE.*Mobile') || $this->version('Windows Mobile')<=5.2
788
-
789
-
790
- ){
791
-
792
- return 'C';
793
-
794
- }
795
-
796
- // All older smartphone platforms and featurephones - Any device that doesn't support media queries will receive the basic, C grade experience
797
- return 'C';
798
-
799
-
800
- }
801
-
802
-
803
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Model/Resource/Setup.php DELETED
@@ -1,4 +0,0 @@
1
- <?php
2
- class JoomlArt_JmProducts_Model_Resource_Setup extends Mage_Eav_Model_Entity_Setup {
3
- }
4
-
 
 
 
 
app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckHeight.php DELETED
@@ -1,24 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
- // -- added by Duchh 15/12/2009
13
- class JoomlArt_JmProducts_Model_System_Config_Backend_JmProducts_checkHeight extends Mage_Core_Model_Config_Data
14
- {
15
-
16
- protected function _beforeSave(){
17
- $value = $this->getValue();
18
- if ((!is_numeric($value) && !empty($value)) || $value < 0) {
19
- throw new Exception(Mage::helper('joomlart_jmproducts')->__('Height of thumbnail.'));
20
- }
21
- return $this;
22
- }
23
-
24
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckInputCategory.php DELETED
@@ -1,28 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmProducts_Model_System_Config_Backend_JmProducts_checkInputCategory extends Mage_Core_Model_Config_Data
14
- {
15
- protected function _beforeSave(){
16
- $value = trim($this->getValue());
17
-
18
- if ($value && !eregi('^([1-9]+)+([,]?([0-9]+))*$', $value)) {
19
-
20
- throw new Exception(Mage::helper('joomlart_jmproducts')->__('Categories ID: Format is incorrect.'));
21
- }
22
-
23
- return $value;
24
-
25
- }
26
-
27
-
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckMax.php DELETED
@@ -1,24 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
- // -- added by Duchh 15/12/2009
13
- class JoomlArt_JmProducts_Model_System_Config_Backend_JmProducts_checkMax extends Mage_Core_Model_Config_Data
14
- {
15
-
16
- protected function _beforeSave(){
17
- $value = $this->getValue();
18
- if ((!is_numeric($value) && !empty($value)) || $value < 0) {
19
- throw new Exception(Mage::helper('joomlart_jmproducts')->__('Description Max Length.'));
20
- }
21
- return $this;
22
- }
23
-
24
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckMode.php DELETED
@@ -1,28 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmProducts_Model_System_Config_Backend_JmProducts_checkMode extends Mage_Core_Model_Config_Data
14
- {
15
-
16
- protected function _beforeSave(){
17
- $groups = $this->getData('groups');
18
- $datas = $groups['joomlart_jmproducts'];
19
- if($datas['fields']['mode']['value']=='category' && $datas['fields']['catsid']['value']==''){
20
- throw new Exception(Mage::helper('joomlart_jmproducts')->__('Please enter list of Categories ID.'));
21
- }
22
- elseif($datas['fields']['mode']['value']=='category' && $datas['fields']['leading_product']['value']=='' && $datas['fields']['intro_product']['value']=='' ){
23
- throw new Exception(Mage::helper('joomlart_jmproducts')->__('Please enter Leading or Intro number.'));
24
- }
25
- return $this;
26
- }
27
-
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckPerrow.php DELETED
@@ -1,24 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmProducts_Model_System_Config_Backend_JmProducts_checkPerrow extends Mage_Core_Model_Config_Data
14
- {
15
-
16
- protected function _beforeSave(){
17
- $value = $this->getValue();
18
- if ((!is_numeric($value) && !empty($value)) || $value < 0) {
19
- throw new Exception(Mage::helper('joomlart_jmproducts')->__('Number of item/row must be numeric.'));
20
- }
21
- return $this;
22
- }
23
-
24
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckQty.php DELETED
@@ -1,24 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmProducts_Model_System_Config_Backend_JmProducts_checkQty extends Mage_Core_Model_Config_Data
14
- {
15
-
16
- protected function _beforeSave(){
17
- $value = $this->getValue();
18
- if ((!is_numeric($value) && !empty($value)) || $value < 0) {
19
- throw new Exception(Mage::helper('joomlart_jmproducts')->__('Qty of products must be numeric.'));
20
- }
21
- return $this;
22
- }
23
-
24
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Model/System/Config/Backend/JmProducts/CheckWidth.php DELETED
@@ -1,24 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
- // -- added by Duchh 15/12/2009
13
- class JoomlArt_JmProducts_Model_System_Config_Backend_JmProducts_checkWidth extends Mage_Core_Model_Config_Data
14
- {
15
-
16
- protected function _beforeSave(){
17
- $value = $this->getValue();
18
- if ((!is_numeric($value) && !empty($value)) || $value < 0) {
19
- throw new Exception(Mage::helper('joomlart_jmproducts')->__('Width of thumbnail.'));
20
- }
21
- return $this;
22
- }
23
-
24
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Model/System/Config/Source/ListType.php DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmProducts_Model_System_Config_Source_ListType
14
- {
15
- public function toOptionArray()
16
- {
17
- return array(
18
- array('value'=>'', 'label'=>Mage::helper('joomlart_jmproducts')->__('-- Please select --')),
19
- array('value'=>'latest', 'label'=>Mage::helper('joomlart_jmproducts')->__('Latest')),
20
- array('value'=>'best_buy', 'label'=>Mage::helper('joomlart_jmproducts')->__('Best Buy')),
21
- array('value'=>'most_viewed', 'label'=>Mage::helper('joomlart_jmproducts')->__('Most Viewed')),
22
- array('value'=>'most_reviewed', 'label'=>Mage::helper('joomlart_jmproducts')->__('Most Reviewed')),
23
- array('value'=>'top_rated', 'label'=>Mage::helper('joomlart_jmproducts')->__('Top Rated')),
24
- array('value'=>'attribute', 'label'=>Mage::helper('joomlart_jmproducts')->__('Featured Product'))
25
- );
26
- }
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/Model/Unit.php DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
- class JoomlArt_JmProducts_Model_Unit extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
3
- {
4
- public function getAllOptions()
5
- {
6
- if (!$this->_options) {
7
- $this->_options = array(
8
-
9
- array(
10
- 'value' => '0',
11
- 'label' => 'No',
12
- ),
13
- array(
14
- 'value' => '1',
15
- 'label' => 'Yes',
16
- )
17
- );
18
- }
19
- return $this->_options;
20
- }
21
- }
22
-
23
-
24
-
25
-
26
-
27
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/controllers/Catalog/Product/Action/AttributeController.php DELETED
@@ -1,155 +0,0 @@
1
- <?php
2
- include_once("Mage/Adminhtml/controllers/Catalog/Product/Action/AttributeController.php");
3
-
4
- class JoomlArt_JmProducts_Catalog_Product_Action_AttributeController extends Mage_Adminhtml_Catalog_Product_Action_AttributeController
5
- {
6
- /**
7
- * Update product attributes
8
- */
9
- public function saveAction()
10
- {
11
- if (!$this->_validateProducts()) {
12
- return;
13
- }
14
-
15
- /* Collect Data */
16
- $inventoryData = $this->getRequest()->getParam('inventory', array());
17
- $attributesData = $this->getRequest()->getParam('attributes', array());
18
- //$attributesData["updated_at"] = Varien_Date::now();
19
- //$attributesData["tax_class_id"] = 1;
20
-
21
- $websiteRemoveData = $this->getRequest()->getParam('remove_website_ids', array());
22
- $websiteAddData = $this->getRequest()->getParam('add_website_ids', array());
23
-
24
- /* Prepare inventory data item options (use config settings) */
25
- foreach (Mage::helper('cataloginventory')->getConfigItemOptions() as $option) {
26
- if (isset($inventoryData[$option]) && !isset($inventoryData['use_config_' . $option])) {
27
- $inventoryData['use_config_' . $option] = 0;
28
- }
29
- }
30
-
31
- try {
32
- if ($attributesData) {
33
- $dateFormat = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
34
- $storeId = $this->_getHelper()->getSelectedStoreId();
35
-
36
- foreach ($attributesData as $attributeCode => $value) {
37
- $attribute = Mage::getSingleton('eav/config')
38
- ->getAttribute(Mage_Catalog_Model_Product::ENTITY, $attributeCode);
39
- if (!$attribute->getAttributeId()) {
40
-
41
- unset($attributesData[$attributeCode]);
42
- continue;
43
- }
44
-
45
- if ($attribute->getBackendType() == 'datetime') {
46
-
47
- if (!empty($value)) {
48
- $filterInput = new Zend_Filter_LocalizedToNormalized(array(
49
- 'date_format' => $dateFormat
50
- ));
51
- $filterInternal = new Zend_Filter_NormalizedToLocalized(array(
52
- 'date_format' => Varien_Date::DATE_INTERNAL_FORMAT
53
- ));
54
- $value = $filterInternal->filter($filterInput->filter($value));
55
- } else {
56
- $value = null;
57
- }
58
- $attributesData[$attributeCode] = $value;
59
- } elseif ($attribute->getFrontendInput() == 'multiselect') {
60
- // Check if 'Change' checkbox has been checked by admin for this attribute
61
- $isChanged = (bool)$this->getRequest()->getPost($attributeCode . '_checkbox');
62
- if (!$isChanged) {
63
- unset($attributesData[$attributeCode]);
64
- continue;
65
- }
66
- if (is_array($value)) {
67
- $value = implode(',', $value);
68
- }
69
- $attributesData[$attributeCode] = $value;
70
- }
71
- }
72
- $product = Mage::getModel('catalog/product')
73
- ->setStoreId($storeId);
74
- foreach($this->_getHelper()->getProductIds() as $pid){
75
- $product->setData('_edit_mode', true);
76
- $product->load($pid);
77
- $productData['updated_at'] = Varien_Date::now();
78
- $product->addData($productData);
79
- $product->save();
80
- }
81
- Mage::getSingleton('catalog/product_action')
82
- ->updateAttributes($this->_getHelper()->getProductIds(), $attributesData, $storeId);
83
- }
84
- if ($inventoryData) {
85
- /** @var $stockItem Mage_CatalogInventory_Model_Stock_Item */
86
- $stockItem = Mage::getModel('cataloginventory/stock_item');
87
- $stockItem->setProcessIndexEvents(false);
88
- $stockItemSaved = false;
89
-
90
- foreach ($this->_getHelper()->getProductIds() as $productId) {
91
- $stockItem->setData(array());
92
- $stockItem->loadByProduct($productId)
93
- ->setProductId($productId);
94
-
95
- $stockDataChanged = false;
96
- foreach ($inventoryData as $k => $v) {
97
- $stockItem->setDataUsingMethod($k, $v);
98
- if ($stockItem->dataHasChangedFor($k)) {
99
- $stockDataChanged = true;
100
- }
101
- }
102
- if ($stockDataChanged) {
103
- $stockItem->save();
104
- $stockItemSaved = true;
105
- }
106
- }
107
-
108
- if ($stockItemSaved) {
109
- Mage::getSingleton('index/indexer')->indexEvents(
110
- Mage_CatalogInventory_Model_Stock_Item::ENTITY,
111
- Mage_Index_Model_Event::TYPE_SAVE
112
- );
113
- }
114
- }
115
-
116
- if ($websiteAddData || $websiteRemoveData) {
117
- /* @var $actionModel Mage_Catalog_Model_Product_Action */
118
- $actionModel = Mage::getSingleton('catalog/product_action');
119
- $productIds = $this->_getHelper()->getProductIds();
120
-
121
- if ($websiteRemoveData) {
122
- $actionModel->updateWebsites($productIds, $websiteRemoveData, 'remove');
123
- }
124
- if ($websiteAddData) {
125
- $actionModel->updateWebsites($productIds, $websiteAddData, 'add');
126
- }
127
-
128
- /**
129
- * @deprecated since 1.3.2.2
130
- */
131
- Mage::dispatchEvent('catalog_product_to_website_change', array(
132
- 'products' => $productIds
133
- ));
134
-
135
- $this->_getSession()->addNotice(
136
- $this->__('Please refresh "Catalog URL Rewrites" and "Product Attributes" in System -> <a href="%s">Index Management</a>', $this->getUrl('adminhtml/process/list'))
137
- );
138
- }
139
-
140
- $this->_getSession()->addSuccess(
141
- $this->__('Total of %d record(s) were updated', count($this->_getHelper()->getProductIds()))
142
- );
143
- }
144
- catch (Mage_Core_Exception $e) {
145
- $this->_getSession()->addError($e->getMessage());
146
- }
147
- catch (Exception $e) {
148
- $this->_getSession()->addException($e, $this->__('An error occurred while updating the product(s) attributes.'));
149
- }
150
-
151
- $this->_redirect('*/catalog_product/', array('store'=>$this->_getHelper()->getSelectedStoreId()));
152
- }
153
- }
154
-
155
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/controllers/FilterController.php DELETED
@@ -1,14 +0,0 @@
1
- <?php
2
- class JoomlArt_JmProducts_FilterController extends Mage_Core_Controller_Front_Action{
3
-
4
- public function IndexAction() {
5
-
6
- $this->loadLayout();
7
- $this->renderLayout();
8
-
9
- }
10
-
11
-
12
- }
13
-
14
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/controllers/ViewallController.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
-
3
- class JoomlArt_JmProducts_ViewallController extends Mage_Core_Controller_Front_Action{
4
-
5
- public function IndexAction() {
6
- $this->getRequest()->setParam('viewall',true);
7
- $this->loadLayout();
8
- $viewall = $this->getLayout()->getBlock('viewall.jmproducts.list');
9
- $viewall->setData("viewall",true);
10
- $this->renderLayout();
11
-
12
- }
13
-
14
-
15
- }
16
-
17
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/etc/adminhtml.xml DELETED
@@ -1,31 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <acl>
4
- <resources>
5
- <admin>
6
- <children>
7
- <system>
8
- <children>
9
- <config>
10
- <children>
11
- <joomlart_jmproducts>
12
- <title>JM Products List</title>
13
- </joomlart_jmproducts>
14
- </children>
15
- </config>
16
- </children>
17
- </system>
18
- </children>
19
- </admin>
20
- </resources>
21
- </acl>
22
- <translate>
23
- <modules>
24
- <JoomlArt_JmProducts>
25
- <files>
26
- <default>JoomlArt_JmProducts.csv</default>
27
- </files>
28
- </JoomlArt_JmProducts>
29
- </modules>
30
- </translate>
31
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/etc/config.xml DELETED
@@ -1,141 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <JoomlArt_JmProducts>
5
- <version>0.1.1</version>
6
- </JoomlArt_JmProducts>
7
- </modules>
8
- <frontend>
9
- <routers>
10
- <jmproducts>
11
- <use>standard</use>
12
- <args>
13
- <module>JoomlArt_JmProducts</module>
14
- <frontName>jmproducts</frontName>
15
- </args>
16
- </jmproducts>
17
- </routers>
18
- <translate>
19
- <modules>
20
- <JoomlArt_JmProducts>
21
- <files>
22
- <default>JoomlArt_JmProducts.csv</default>
23
- </files>
24
- </JoomlArt_JmProducts>
25
- </modules>
26
- </translate>
27
- <layout>
28
- <updates>
29
- <jmproducts>
30
- <file>jmproducts.xml</file>
31
- </jmproducts>
32
- </updates>
33
- </layout>
34
- </frontend>
35
- <global>
36
- <blocks>
37
- <joomlart_jmproducts>
38
- <class>JoomlArt_JmProducts_Block</class>
39
- </joomlart_jmproducts>
40
- </blocks>
41
- <models>
42
- <joomlart_jmproducts>
43
- <class>JoomlArt_JmProducts_Model</class>
44
- </joomlart_jmproducts>
45
- </models>
46
- <helpers>
47
- <joomlart_jmproducts>
48
- <class>JoomlArt_JmProducts_Helper</class>
49
- </joomlart_jmproducts>
50
- </helpers>
51
- <resources>
52
- <jmproducts_setup>
53
- <setup>
54
- <module>JoomlArt_JmProducts</module>
55
- <class>JoomlArt_JmProducts_Model_Resource_Setup</class>
56
- </setup>
57
- </jmproducts_setup>
58
- </resources>
59
- </global>
60
- <admin>
61
- <routers>
62
- <adminhtml>
63
- <args>
64
- <modules>
65
- <JoomlArt_JmProducts before="Mage_Adminhtml">JoomlArt_JmProducts</JoomlArt_JmProducts>
66
- </modules>
67
- </args>
68
- </adminhtml>
69
- </routers>
70
- </admin>
71
- <adminhtml>
72
- <menu>
73
- <joomlart>
74
- <title>Joomlart</title>
75
- <sort_order>100</sort_order>
76
- <children>
77
- <jmproducts>
78
- <title>JM Products</title>
79
- <sort_order>2</sort_order>
80
- <action>adminhtml/system_config/edit/section/joomlart_jmproducts</action>
81
- </jmproducts>
82
- </children>
83
- </joomlart>
84
- </menu>
85
- <acl>
86
- <resources>
87
- <admin>
88
- <children>
89
- <system>
90
- <children>
91
- <config>
92
- <children>
93
- <joomlart_jmproducts>
94
- <title>JM Products List</title>
95
- </joomlart_jmproducts>
96
- </children>
97
- </config>
98
- </children>
99
- </system>
100
- </children>
101
- </admin>
102
- </resources>
103
- </acl>
104
- <translate>
105
- <modules>
106
- <JoomlArt_JmProducts>
107
- <files>
108
- <default>JoomlArt_JmProducts.csv</default>
109
- </files>
110
- </JoomlArt_JmProducts>
111
- </modules>
112
- </translate>
113
- </adminhtml>
114
- <default>
115
- <joomlart_jmproducts>
116
- <joomlart_jmproducts>
117
- <show>1</show>
118
- <mode>latest</mode>
119
- <title>JM Product List</title>
120
- <quanlity>8</quanlity>
121
- <quanlityperpage>8</quanlityperpage>
122
- <template>joomlart/jmproducts/list.phtml</template>
123
- <perrow>3</perrow>
124
- <width>135</width>
125
- <height>135</height>
126
- <max>0</max>
127
- <widthtable>135</widthtable>
128
- <heighttable>135</heighttable>
129
- <quanlitytable>8</quanlitytable>
130
- <quanlityperpagetable>8</quanlityperpagetable>
131
- <perrowtablet>3</perrowtablet>
132
- <widthmobile>135</widthmobile>
133
- <heightmobile>135</heightmobile>
134
- <quanlitymobile>8</quanlitymobile>
135
- <quanlityperpagemobile>8</quanlityperpagemobile>
136
- <perrowmobile>3</perrowmobile>
137
- </joomlart_jmproducts>
138
- </joomlart_jmproducts>
139
- </default>
140
-
141
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmProducts/etc/system.xml DELETED
@@ -1,303 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <tabs>
4
- <joomlart translate="label" module="joomlart_jmproducts">
5
- <label>JoomlArt</label>
6
- <sort_order>210</sort_order>
7
- </joomlart>
8
- </tabs>
9
- <sections>
10
- <joomlart_jmproducts>
11
- <label>JM Products</label>
12
- <tab>joomlart</tab>
13
- <frontend_type>text</frontend_type>
14
- <sort_order>10</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
- <joomlart_jmproducts translate="label">
20
- <label>JM Products: Config General</label>
21
- <frontend_type>text</frontend_type>
22
- <sort_order>2000</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
- <setting translate="label comment">
28
- <frontend_type>text</frontend_type>
29
- <frontend_model>joomlart_jmproducts/adminhtml_system_config_form_settings</frontend_model>
30
- <sort_order>4</sort_order>
31
- <show_in_default>1</show_in_default>
32
- <show_in_website>1</show_in_website>
33
- <show_in_store>1</show_in_store>
34
- </setting>
35
- <show translate="label" module="core">
36
- <label>Enabled</label>
37
- <sort_order>10</sort_order>
38
- <frontend_type>select</frontend_type>
39
- <source_model>adminhtml/system_config_source_yesno</source_model>
40
- <show_in_default>1</show_in_default>
41
- <show_in_website>1</show_in_website>
42
- <show_in_store>1</show_in_store>
43
- </show>
44
- <headtitle translate="label">
45
- <label>Title: </label>
46
- <frontend_type>text</frontend_type>
47
- <sort_order>20</sort_order>
48
- <show_in_default>1</show_in_default>
49
- <show_in_website>1</show_in_website>
50
- <show_in_store>1</show_in_store>
51
- </headtitle>
52
- <mode translate="label">
53
- <label>Mode: </label>
54
- <frontend_type>select</frontend_type>
55
- <source_model>joomlart_jmproducts/system_config_source_listType</source_model>
56
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkMode</backend_model>
57
- <comment>If "Featured Product" mode is chosen, please add new attribute with attribute code "featured" (if not available), then add it to attribute sets.</comment>
58
- <sort_order>30</sort_order>
59
- <show_in_default>1</show_in_default>
60
- <show_in_website>1</show_in_website>
61
- <show_in_store>1</show_in_store>
62
- </mode>
63
- <catsid translate="label">
64
- <label>Categories ID: </label>
65
- <frontend_type>text</frontend_type>
66
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkInputCategory</backend_model>
67
- <comment>Eg: 22,23. Empty for all categories.</comment>
68
- <sort_order>60</sort_order>
69
- <show_in_default>1</show_in_default>
70
- <show_in_website>1</show_in_website>
71
- <show_in_store>1</show_in_store>
72
- </catsid>
73
- <random translate="label">
74
- <label>Display products as Random: </label>
75
- <sort_order>61</sort_order>
76
- <frontend_type>select</frontend_type>
77
- <source_model>adminhtml/system_config_source_yesno</source_model>
78
- <show_in_default>1</show_in_default>
79
- <show_in_website>1</show_in_website>
80
- <show_in_store>1</show_in_store>
81
- </random>
82
- <!-- <attributename translate="label">
83
- <label>Attribute Name: </label>
84
- <frontend_type>text</frontend_type>
85
- <comment>For Mode="By Attribute". The product will be filtered by name and value of this attribute. eg: featured</comment>
86
- <sort_order>40</sort_order>
87
- <show_in_default>1</show_in_default>
88
- <show_in_website>1</show_in_website>
89
- <show_in_store>1</show_in_store>
90
- </attributename>
91
- <attributevalue translate="label">
92
- <label>Attribute Vakue: </label>
93
- <frontend_type>text</frontend_type>
94
- <comment>For Mode="By Attribute". value of the attribute that you entered in the above. eg: 0 for No, 1 for Yes</comment>
95
- <sort_order>50</sort_order>
96
- <show_in_default>1</show_in_default>
97
- <show_in_website>1</show_in_website>
98
- <show_in_store>1</show_in_store>
99
- </attributevalue> -->
100
-
101
-
102
- <max translate="label">
103
- <label>Description Max Length</label>
104
- <sort_order>100</sort_order>
105
- <frontend_type>text</frontend_type>
106
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkMax</backend_model>
107
- <show_in_default>1</show_in_default>
108
- <show_in_website>1</show_in_website>
109
- <show_in_store>1</show_in_store>
110
- </max>
111
- <title translate="label comment">
112
- <label>Desktop Settings</label>
113
- <frontend_type>hidden</frontend_type>
114
- <sort_order>101</sort_order>
115
- <show_in_default>1</show_in_default>
116
- <show_in_website>0</show_in_website>
117
- <show_in_store>0</show_in_store>
118
- </title>
119
- <ajaxloadmore translate="label" module="core">
120
- <label>Enabled Ajax load more</label>
121
- <sort_order>102</sort_order>
122
- <frontend_type>select</frontend_type>
123
- <source_model>adminhtml/system_config_source_yesno</source_model>
124
- <show_in_default>1</show_in_default>
125
- <show_in_website>1</show_in_website>
126
- <show_in_store>1</show_in_store>
127
- </ajaxloadmore>
128
- <accordionslider translate="label" module="core">
129
- <label>Enabled Accordion Slider</label>
130
- <sort_order>103</sort_order>
131
- <frontend_type>select</frontend_type>
132
- <source_model>adminhtml/system_config_source_yesno</source_model>
133
- <show_in_default>1</show_in_default>
134
- <show_in_website>1</show_in_website>
135
- <show_in_store>1</show_in_store>
136
- </accordionslider>
137
- <width translate="label">
138
- <label>Width of thumbnail</label>
139
- <sort_order>104</sort_order>
140
- <frontend_type>text</frontend_type>
141
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkWidth</backend_model>
142
- <show_in_default>1</show_in_default>
143
- <show_in_website>1</show_in_website>
144
- <show_in_store>1</show_in_store>
145
- </width>
146
- <height translate="label">
147
- <label>Height of thumbnail</label>
148
- <sort_order>105</sort_order>
149
- <frontend_type>text</frontend_type>
150
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkHeight</backend_model>
151
- <show_in_default>1</show_in_default>
152
- <show_in_website>1</show_in_website>
153
- <show_in_store>1</show_in_store>
154
- </height>
155
- <quanlity translate="label">
156
- <label># Qty of products</label>
157
- <sort_order>106</sort_order>
158
- <frontend_type>text</frontend_type>
159
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkQty</backend_model>
160
- <comment>0 for show all</comment>
161
- <show_in_default>1</show_in_default>
162
- <show_in_website>1</show_in_website>
163
- <show_in_store>1</show_in_store>
164
- </quanlity>
165
- <quanlityperpage translate="label">
166
- <label># Qty of products per page (pagination) </label>
167
- <sort_order>107</sort_order>
168
- <frontend_type>text</frontend_type>
169
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkQty</backend_model>
170
- <comment>Empty to show by default</comment>
171
- <show_in_default>1</show_in_default>
172
- <show_in_website>1</show_in_website>
173
- <show_in_store>1</show_in_store>
174
- </quanlityperpage>
175
- <perrow translate="label">
176
- <label># Number of items/rows (or columns)</label>
177
- <sort_order>108</sort_order>
178
- <frontend_type>text</frontend_type>
179
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkPerrow</backend_model>
180
- <show_in_default>1</show_in_default>
181
- <show_in_website>1</show_in_website>
182
- <show_in_store>1</show_in_store>
183
- </perrow>
184
- <title1 translate="label comment">
185
- <label>Tablet Settings</label>
186
- <frontend_type>hidden</frontend_type>
187
- <sort_order>109</sort_order>
188
- <show_in_default>1</show_in_default>
189
- <show_in_website>0</show_in_website>
190
- <show_in_store>0</show_in_store>
191
- </title1>
192
- <ajaxloadmoretable translate="label" module="core">
193
- <label>Enabled Ajax load more</label>
194
- <sort_order>110</sort_order>
195
- <frontend_type>select</frontend_type>
196
- <source_model>adminhtml/system_config_source_yesno</source_model>
197
- <show_in_default>1</show_in_default>
198
- <show_in_website>1</show_in_website>
199
- <show_in_store>1</show_in_store>
200
- </ajaxloadmoretable>
201
-
202
- <quanlitytable translate="label">
203
- <label># Qty of products on tablet</label>
204
- <sort_order>113</sort_order>
205
- <frontend_type>text</frontend_type>
206
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkQty</backend_model>
207
- <comment>0 for show all</comment>
208
- <show_in_default>1</show_in_default>
209
- <show_in_website>1</show_in_website>
210
- <show_in_store>1</show_in_store>
211
- </quanlitytable>
212
- <quanlityperpagetable translate="label">
213
- <label># Qty of products per page (pagination) </label>
214
- <sort_order>114</sort_order>
215
- <frontend_type>text</frontend_type>
216
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkQty</backend_model>
217
- <comment>Empty to show by default</comment>
218
- <show_in_default>1</show_in_default>
219
- <show_in_website>1</show_in_website>
220
- <show_in_store>1</show_in_store>
221
- </quanlityperpagetable>
222
-
223
- <perrowtablet translate="label">
224
- <label># Number of items/rows (or columns)</label>
225
- <sort_order>115</sort_order>
226
- <frontend_type>text</frontend_type>
227
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkPerrow</backend_model>
228
- <show_in_default>1</show_in_default>
229
- <show_in_website>1</show_in_website>
230
- <show_in_store>1</show_in_store>
231
- </perrowtablet>
232
- <perrowtabletportrait translate="label">
233
- <label># Number of items/rows (or columns) on tablet portrait</label>
234
- <sort_order>117</sort_order>
235
- <frontend_type>text</frontend_type>
236
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkPerrow</backend_model>
237
- <show_in_default>1</show_in_default>
238
- <show_in_website>1</show_in_website>
239
- <show_in_store>1</show_in_store>
240
- </perrowtabletportrait>
241
- <title2 translate="label comment">
242
- <label>Mobile Settings</label>
243
- <class>test</class>
244
- <frontend_type>hidden</frontend_type>
245
- <sort_order>118</sort_order>
246
- <show_in_default>1</show_in_default>
247
- <show_in_website>0</show_in_website>
248
- <show_in_store>0</show_in_store>
249
- </title2>
250
- <ajaxloadmoremobile translate="label" module="core">
251
- <label>Enabled Ajax load more</label>
252
- <sort_order>119</sort_order>
253
- <frontend_type>select</frontend_type>
254
- <source_model>adminhtml/system_config_source_yesno</source_model>
255
- <show_in_default>1</show_in_default>
256
- <show_in_website>1</show_in_website>
257
- <show_in_store>1</show_in_store>
258
- </ajaxloadmoremobile>
259
-
260
- <quanlitymobile translate="label">
261
- <label># Qty of products on mobile </label>
262
- <sort_order>122</sort_order>
263
- <frontend_type>text</frontend_type>
264
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkQty</backend_model>
265
- <comment>0 for show all</comment>
266
- <show_in_default>1</show_in_default>
267
- <show_in_website>1</show_in_website>
268
- <show_in_store>1</show_in_store>
269
- </quanlitymobile>
270
- <quanlityperpagemobile translate="label">
271
- <label># Qty of products per page (pagination) </label>
272
- <sort_order>123</sort_order>
273
- <frontend_type>text</frontend_type>
274
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkQty</backend_model>
275
- <comment>Empty to show by default</comment>
276
- <show_in_default>1</show_in_default>
277
- <show_in_website>1</show_in_website>
278
- <show_in_store>1</show_in_store>
279
- </quanlityperpagemobile>
280
- <perrowmobile translate="label">
281
- <label># Number of items/rows (or columns)</label>
282
- <sort_order>124</sort_order>
283
- <frontend_type>text</frontend_type>
284
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkPerrow</backend_model>
285
- <show_in_default>1</show_in_default>
286
- <show_in_website>1</show_in_website>
287
- <show_in_store>1</show_in_store>
288
- </perrowmobile>
289
- <perrowmobileportrait translate="label">
290
- <label># Number of items/rows (or columns) on mobile portrait</label>
291
- <sort_order>127</sort_order>
292
- <frontend_type>text</frontend_type>
293
- <backend_model>joomlart_jmproducts/system_config_backend_jmProducts_checkPerrow</backend_model>
294
- <show_in_default>1</show_in_default>
295
- <show_in_website>1</show_in_website>
296
- <show_in_store>1</show_in_store>
297
- </perrowmobileportrait>
298
- </fields>
299
- </joomlart_jmproducts>
300
- </groups>
301
- </joomlart_jmproducts>
302
- </sections>
303
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Block/List.php DELETED
@@ -1,660 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
- class JoomlArt_JmSlideshow_Block_List extends Mage_Catalog_Block_Product_Abstract
13
- {
14
- protected $_config = '';
15
- protected $_listDesc = array();
16
- protected $_show = 0;
17
-
18
- public function __construct($attributes = array())
19
- {
20
- $helper = Mage::helper('joomlart_jmslideshow/data');
21
- $this->_show = $helper->get('show', $attributes);
22
- if (! $this->_show) {
23
- return;
24
- }
25
-
26
- parent::__construct();
27
-
28
- $this->_config = $helper->get($attributes);
29
- }
30
-
31
- protected function _prepareLayout()
32
- {
33
- if ($this->_show) {
34
- $headBlock = $this->getLayout()->getBlock('head');
35
-
36
- if ($this->getConfig('animation') == 'vrtaccordion' || $this->getConfig('animation') == 'hrzaccordion') {
37
- $headBlock->addCss('joomlart/jmslideshow/css/jquery-ui/jquery-ui.css');
38
-
39
- if ($this->getConfig('animation') == 'hrzaccordion') {
40
- $headBlock->addCss('joomlart/jmslideshow/css/jquery-ui/jquery.hrzAccordion.defaults.css');
41
- }
42
- }
43
- }
44
-
45
- return parent::_prepareLayout();
46
- }
47
-
48
- /**
49
- * get value of the extension's configuration
50
- *
51
- * @return string
52
- */
53
- function getConfig($key)
54
- {
55
- return $this->_config[$key];
56
- }
57
-
58
- /**
59
- * overrde the value of the extension's configuration
60
- *
61
- * @return string
62
- */
63
- function setConfig($key, $value)
64
- {
65
- $this->_config[$key] = $value;
66
- return $this;
67
- }
68
- /**
69
- * Rendering block content
70
- *
71
- * @return string
72
- */
73
- function _toHtml()
74
- {
75
- $helper = Mage::helper('joomlart_jmslideshow/data');
76
-
77
- $this->_config = $helper->get($this->getData());
78
- if (! $this->_show || ! $this->getConfig('show')) {
79
- return;
80
- }
81
-
82
- $config = $helper->get();
83
- $detect = Mage::helper ( 'joomlart_jmslideshow/mobiledetect' );
84
- $this->_config["mainWidthtablet"] = $config["mainWidthtablet"];
85
- $this->_config["mainWidthmobile"] = $config["mainWidthmobile"];
86
- if($detect->isTablet()){
87
- if($this->_config["mainWidthtablet"]) $this->_config["mainWidth"] = $this->_config["mainWidthtablet"];
88
- }elseif($detect->isMobile()){
89
- if($this->_config["mainWidthmobile"]) $this->_config["mainWidth"] = $this->_config["mainWidthmobile"];
90
- }
91
-
92
- $this->__renderSlideShow();
93
- // check the animation used ?
94
- if ($this->getConfig('animation') == 'vrtaccordion' || $this->getConfig('animation') == 'hrzaccordion') {
95
- $this->_config['template'] = 'joomlart/jmslideshow/accordion.phtml';
96
- } else {
97
- $this->_config['template'] = 'joomlart/jmslideshow/basic.phtml';
98
- }
99
-
100
- // render html
101
- $this->assign('config', $this->_config);
102
- $this->setTemplate($this->_config['template']);
103
-
104
- return parent::_toHtml();
105
- }
106
-
107
- /**
108
- * render block content for the slideshow
109
- */
110
- private function __renderSlideShow()
111
- {
112
-
113
- if ($this->getConfig('source') == 'products') {
114
- // products list
115
- $products = $this->getListProducts();
116
-
117
- $urls = array();
118
- $items = array();
119
-
120
- if ($products) {
121
- $jmimage = Mage::helper('joomlart_jmslideshow/jmimage')->setConfig($this->getConfig('thumbImgMode'), $this->getConfig('useRatio'));
122
-
123
- $i = 0;
124
- foreach ($products as $k => $_product) {
125
- $items[$i] = array();
126
-
127
- // product link
128
- $urls[$i] = $_product->getProductUrl();
129
-
130
- // minor thumbnail
131
- $items[$i]['thumb'] = '<img align="left" src="' . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) . $jmimage->resizeThumb('media/catalog/product' . $_product->getImage(), $this->getConfig('thumbImgWidth'), $this->getConfig('thumbImgHeight')) . '" alt="' . $this->htmlEscape($_product->getName()) . '" width="' . $this->getConfig('thumbImgWidth') . '" height="' . $this->getConfig('thumbImgHeight') . '" />';
132
-
133
- // main thumbnail
134
- $items[$i]['mainThumb'] = '<img align="left" src="' . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) . $jmimage->resizeThumb('media/catalog/product' . $_product->getImage(), $this->getConfig('mainWidth'), $this->getConfig('mainHeight')) . '" alt="' . $this->htmlEscape($_product->getName()) . '" width="' . $this->getConfig('mainWidth') . '" height="' . $this->getConfig('mainHeight') . '" />';
135
-
136
- // product title and short description
137
- $items[$i++]['caption'] = '<h3>' . $this->htmlEscape($_product->getName()) . '</h3><p>' . substr($this->htmlEscape($_product->getShortDescription()), 0, 60) . '...' . '</p>';
138
- }
139
- }
140
- } else {
141
- // images list
142
- $items = array();
143
-
144
- $descriptionArray = $mainsThumbs = $imageArray = array();
145
- $thumbArray = array();
146
- $captionsArray = array();
147
- $urls = array();
148
- $titles = array();
149
- $listImgs = $this->getFileInDir();
150
- if ($this->_config['showDesc']) {
151
- $descriptionArray = $this->parseDescNew($this->getConfig('description'));
152
- if (! count($descriptionArray)) {
153
- $descriptionArray = $this->parseDescOld($this->getConfig('description'));
154
- }
155
- }
156
-
157
- if (count($listImgs) > 0) {
158
- foreach ($listImgs as $k => $img) {
159
- $imageArray[] = $this->_config['folder'] . '/' . $img;
160
- if ($this->_config['showDesc']) {
161
- $captionsArray[] = (isset($descriptionArray) && isset($descriptionArray[$img]) && isset($descriptionArray[$img]['caption'])) ? str_replace("'", "\'", $descriptionArray[$img]['caption']) : '';
162
- }
163
- $url = (isset($descriptionArray[$img]) && isset($descriptionArray[$img]['url'])) ? $descriptionArray[$img]['url'] : '';
164
- $title = (isset($descriptionArray[$img]) && isset($descriptionArray[$img]['title'])) ? $descriptionArray[$img]['title'] : '';
165
- $titles[] = $title;
166
- $alt = (isset($descriptionArray[$img]) && isset($descriptionArray[$img]['alt'])) ? $descriptionArray[$img]['alt'] : '';
167
- $alts[] = $alt;
168
- $urls[] = $url;
169
- }
170
- $mainsThumbs = $this->buildThumbnail($imageArray, $this->_config['mainWidth'], $this->_config['mainHeight']);
171
- }
172
-
173
- //Build thumbnail
174
- if ($this->getConfig('thumbType') == 'thumbs') {
175
- if (function_exists('imagecreatetruecolor')) {
176
- $thumbArray = $this->buildThumbnail($imageArray, $this->getConfig('thumbImgWidth'), $this->getConfig('thumbImgHeight'));
177
- } else {
178
- $thumbArray = $imageArray;
179
- }
180
- }
181
-
182
- $items = array();
183
- if ($listImgs) {
184
- $items = $listImgs;
185
-
186
- for ($i = 0; $i < count($listImgs); $i++) {
187
- $items[$i] = array();
188
-
189
- // minor thumbnail
190
- $items[$i]['thumb'] = '<img src="' . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) . $thumbArray[$i] . '" alt="Photo Thumb" width="' . $this->getConfig('thumbImgWidth') . '" height="' . $this->getConfig('thumbImgHeight') . '" />';
191
-
192
- // main thumbnail
193
- $items[$i]['mainThumb'] = '<img src="' . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) . $mainsThumbs[$i] . '" alt="'.$alts[$i].'" width="' . $this->getConfig('mainWidth') . '" height="' . $this->getConfig('mainHeight') . '"/>';
194
-
195
- // product title and description
196
- $items[$i]['caption'] = $captionsArray[$i];
197
- }
198
- }
199
- }
200
-
201
- $this->assign('titles', $titles);
202
- $this->assign('urls', $urls);
203
- $this->assign('items', $items);
204
- }
205
-
206
- function getFileInDir()
207
- {
208
- if (! $this->_config['folder']) {
209
- return;
210
- }
211
-
212
- $imagePath = Mage::getBaseDir() . DIRECTORY_SEPARATOR . $this->_config['folder'];
213
-
214
- /*Get template color - work with JA Template */
215
- $color = '';
216
- if (isset($_GET['ja_color'])) {
217
- $color = trim($_GET['ja_color']);
218
- } else {
219
- global $tmpTools;
220
- if (isset($tmpTools) && isset($tmpTools->template)) {
221
- $color = $tmpTools->getParam('ja_color');
222
- }
223
- }
224
- if ($color && is_dir($imagePath . DIRECTORY_SEPARATOR . $color)) {
225
- $this->_config['folder'] = $this->_config['folder'] . '/' . $color;
226
- $imagePath = $imagePath . DIRECTORY_SEPARATOR . $color;
227
- }
228
-
229
- if (! is_dir($imagePath)) {
230
- return array();
231
- }
232
- $imgFiles = $this->files($imagePath);
233
-
234
- $folderPath = $imagePath . DIRECTORY_SEPARATOR;
235
- $list = array();
236
-
237
- foreach ($imgFiles as $file) {
238
- $i_f = $imagePath . '/' . $file;
239
- if (preg_match("/bmp|gif|jpg|png|jpeg/", $file) && is_file($i_f)) {
240
- $list[] = $file;
241
- }
242
- }
243
- return $list;
244
- }
245
-
246
- function buildThumbnail($imageArray, $twidth, $theight)
247
- {
248
- $thumbImgMode = $this->_config['thumbImgMode'];
249
- if ($thumbImgMode != 'none') {
250
- $thumbs = array();
251
- $jaimage = Mage::helper('joomlart_jmslideshow/jmimage');
252
-
253
- $aspect = $this->_config['useRatio'];
254
- $crop = $thumbImgMode == 'crop' ? true : false;
255
- foreach ($imageArray as $image) {
256
- $thumbs[] = $jaimage->resize($image, $twidth, $theight, $crop, $aspect);
257
- }
258
- } else {
259
- return $imageArray;
260
- }
261
- return $thumbs;
262
- }
263
-
264
- function files($path, $filter = '.', $recurse = false, $fullpath = false, $exclude = array('.svn', 'CVS'))
265
- {
266
- // Initialize variables
267
- $arr = array();
268
- // Is the path a folder?
269
- if (! is_dir($path)) {
270
- return array();
271
- }
272
- // read the source directory
273
- $handle = opendir($path);
274
- while (($file = readdir($handle)) !== false) {
275
- $dir = $path . DIRECTORY_SEPARATOR . $file;
276
- $isDir = is_dir($dir);
277
- if (($file != '.') && ($file != '..') && (! in_array($file, $exclude))) {
278
- if ($isDir) {
279
- if ($recurse) {
280
- if (is_integer($recurse)) {
281
- $recurse--;
282
- }
283
- $arr2 = $this->files($dir, $filter, $recurse, $fullpath);
284
- $arr = array_merge($arr, $arr2);
285
- }
286
- } else {
287
- if (preg_match("/$filter/", $file)) {
288
- if ($fullpath) {
289
- $arr[] = $path . '/' . $file;
290
- } else {
291
- $arr[] = $file;
292
- }
293
- }
294
- }
295
- }
296
- }
297
- closedir($handle);
298
- asort($arr);
299
- return $arr;
300
- }
301
-
302
- function parseDescOld($description)
303
- {
304
- $description = str_replace("<br />", "\n", $description);
305
- $description = explode("\n", $description);
306
- $descriptionArray = array();
307
- foreach ($description as $desc) {
308
- if ($desc) {
309
- $list = split(":", $desc, 2);
310
- $list[1] = (count($list) > 1) ? split("&", $list[1]) : array();
311
- $temp = array();
312
- for ($i = 0; $i < count($list[1]); ++$i) {
313
- $l = split("=", $list[1][$i]);
314
- if (isset($l[1])) {
315
- $temp[trim($l[0])] = trim($l[1]);
316
- }
317
- }
318
- $descriptionArray[$list[0]] = $temp;
319
- }
320
- }
321
- return $descriptionArray;
322
- }
323
-
324
- function parseDescNew($description)
325
- {
326
- $regex = '#\[desc ([^\]]*)\]([^\[]*)\[/desc\]#m';
327
-
328
- preg_match_all($regex, $description, $matches, PREG_SET_ORDER);
329
-
330
- $descriptionArray = array();
331
- foreach ($matches as $match) {
332
- $params = $this->parseParams($match[1]);
333
- if (is_array($params)) {
334
- $img = isset($params['img']) ? trim($params['img']) : '';
335
- if (! $img) {
336
- continue;
337
- }
338
- $url = isset($params['url']) ? trim($params['url']) : '';
339
- $title = isset($params['title']) ? trim($params['title']) : '';
340
- $url = isset($params['url']) ? trim($params['url']) : '';
341
- $alt = isset($params['alt']) ? trim($params['alt']) : '';
342
- $descriptionArray[$img] = array('url' => $url, 'caption' => str_replace("\n", "<br />", trim($match[2])),'title' => $title,'alt' => $alt);
343
- }
344
- }
345
- return $descriptionArray;
346
- }
347
-
348
- function parseParams($params)
349
- {
350
- $params = html_entity_decode($params, ENT_QUOTES);
351
- $regex = "/\s*([^=\s]+)\s*=\s*('([^']*)'|\"([^\"]*)\"|([^\s]*))/";
352
- preg_match_all($regex, $params, $matches);
353
- $paramarray = null;
354
- if (count($matches)) {
355
- $paramarray = array();
356
- for ($i = 0; $i < count($matches[1]); $i++) {
357
- $key = $matches[1][$i];
358
- $val = $matches[3][$i] ? $matches[3][$i] : ($matches[4][$i] ? $matches[4][$i] : $matches[5][$i]);
359
- $paramarray[$key] = $val;
360
- }
361
- }
362
- return $paramarray;
363
- }
364
-
365
- function set($params)
366
- {
367
- $params = preg_split("/\n/", $params);
368
- foreach ($params as $param) {
369
- $param = trim($param);
370
- if (! $param) {
371
- continue;
372
- }
373
- $param = split("=", $param, 2);
374
- if (count($param) == 2 && strlen(trim($param[1])) > 0) {
375
- $this->_config[trim($param[0])] = trim($param[1]);
376
- }
377
- }
378
-
379
- }
380
-
381
- function set_($title = '',
382
- $folder = '',
383
- $mainWidth = '',
384
- $mainHeight = '',
385
- $showDesc = '',
386
- $descTrigger = '',
387
- $readMoreText = '',
388
- $duration = '',
389
- $animation = '',
390
- $thumbType = '',
391
- $thumbImgWidth = '',
392
- $thumbImgHeight = '',
393
- $thumbSpaces = '',
394
- $showItem = '',
395
- $control = '',
396
- $autoplay = '',
397
- $interval = '',
398
- $thumbOpacity = '',
399
- $descOpacity = '',
400
- $description = '',
401
- $loadJQuery = 1,
402
- $useRatio,
403
- $thumbImgMode,
404
- $useRatios)
405
- {
406
- $arrayParams = array(
407
- 'title',
408
- 'folder',
409
- 'mainWidth',
410
- 'mainHeight',
411
- 'showDesc',
412
- 'descTrigger',
413
- 'readMoreText',
414
- 'duration',
415
- 'animation',
416
- 'thumbType',
417
- 'thumbImgWidth',
418
- 'thumbImgHeight',
419
- 'thumbSpaces',
420
- 'showItem',
421
- 'control',
422
- 'autoplay',
423
- 'interval',
424
- 'thumbOpacity',
425
- 'descOpacity',
426
- 'overlapOpacity',
427
- 'description',
428
- 'loadjquery',
429
- 'useRatio',
430
- 'thumbImgMode'
431
- );
432
- $vars = func_get_args();
433
- foreach ($vars as $k => $var) {
434
- $this->_config[$arrayParams[$k]] = $var;
435
- }
436
- }
437
-
438
- function getListProducts()
439
- {
440
- $listall = null;
441
- switch ($this->getConfig('sourceProductsMode')) {
442
- case 'latest':
443
- $listall = $this->getListBestBuyProducts('updated_at', 'desc');
444
- break;
445
- case 'attribute':
446
- $listall = $this->getListFeaturedProducts();
447
- break;
448
- case 'best_buy':
449
- $listall = $this->getListBestBuyProducts();
450
- break;
451
- case 'most_viewed':
452
- $listall = $this->getListMostViewedProducts();
453
- break;
454
- case 'most_reviewed':
455
- $listall = $this->getListTopRatedProducts('reviews_count');
456
- break;
457
- case 'top_rated':
458
- $listall = $this->getListTopRatedProducts();
459
- break;
460
- default:
461
- $listall = $this->getListBestBuyProducts('updated_at', 'desc');
462
- break;
463
- }
464
-
465
- return $listall;
466
- }
467
-
468
- function getListTopRatedProducts($orderfield = 'rating_summary', $order = 'desc', $perPage = NULL, $currentPage = 1)
469
- {
470
- $list = null;
471
- if ($perPage === NULL) {
472
- $perPage = (int) $this->getConfig('quanlity');
473
- }
474
-
475
- $storeId = Mage::app()->getStore()->getId();
476
-
477
- $entityCondition = '_reviewed_order_table.entity_id = e.entity_id';
478
-
479
- if ($this->_config['catsid']) {
480
- // get array of product_id
481
- $arr_productids = $this->getProductByCategory();
482
-
483
- $products = Mage::getResourceModel('catalog/product_collection')->setStoreId($storeId)->addAttributeToSelect('*')->addStoreFilter($storeId)->addIdFilter($arr_productids);
484
- } else {
485
- $products = Mage::getResourceModel('catalog/product_collection')->setStoreId($storeId)->addAttributeToSelect('*')->addStoreFilter($storeId);
486
- }
487
-
488
- $products->getSelect()->joinLeft(array('_reviewed_order_table' => $products->getTable('review_entity_summary')), "_reviewed_order_table.store_id=$storeId AND _reviewed_order_table.entity_pk_value=e.entity_id", array());
489
-
490
- $products->getSelect()->order("_reviewed_order_table.$orderfield $order");
491
- $products->getSelect()->group('e.entity_id');
492
-
493
- $products->setPageSize($perPage)->setCurPage($currentPage);
494
-
495
- $this->setProductCollection($products);
496
-
497
- $this->_addProductAttributesAndPrices($products);
498
-
499
- if (($_products = $this->getProductCollection()) && $_products->getSize()) {
500
- $list = $products;
501
- }
502
-
503
- return $list;
504
- }
505
-
506
- function getListMostViewedProducts($perPage = NULL, $currentPage = 1)
507
- {
508
- /*
509
- Show all the product list in the current store
510
- */
511
- $storeId = Mage::app()->getStore()->getStoreId();
512
- $this->setStoreId($storeId);
513
- if ($perPage === NULL) {
514
- $perPage = (int) $this->getConfig('quanlity');
515
- }
516
- $this->_productCollection = Mage::getResourceModel('reports/product_collection');
517
-
518
- $this->_productCollection = $this->_productCollection->addViewsCount();
519
-
520
- if ($this->_config['catsid']) {
521
- // get array product_id
522
- $arr_productids = $this->getProductByCategory();
523
-
524
- $this->_productCollection = $this->_productCollection->addAttributeToSelect('*')->setStoreId($storeId)->addStoreFilter($storeId)->addIdFilter($arr_productids);
525
- } else {
526
- $this->_productCollection = $this->_productCollection->addAttributeToSelect('*')->setStoreId($storeId)->addStoreFilter($storeId);
527
- }
528
- $this->_productCollection->setPageSize($perPage)->setCurPage($currentPage);
529
- return $this->_productCollection;
530
- }
531
-
532
- function getListBestBuyProducts($fieldorder = 'ordered_qty', $order = 'desc', $product_ids = '', $perPage = NULL, $currentPage = 1)
533
- {
534
- $list = null;
535
- /*
536
- Always set de $perPage, by template or by config
537
- if $perPage eq 0 (zero) not limit the list
538
- */
539
- if ($perPage === NULL) {
540
- $perPage = (int) $this->getConfig('quanlity');
541
- }
542
- /*
543
- Show all the product list in the current store
544
- order by ordered_qty, showing the bestsellers first
545
- */
546
-
547
- $storeId = Mage::app()->getStore()->getId();
548
- $resource = Mage::getResourceModel('catalog/product_collection');
549
-
550
- $products = $resource->addAttributeToSelect('*')->setStoreId($storeId)->addStoreFilter($storeId)->setOrder($fieldorder, $order);
551
- if ($this->_config['catsid']) {
552
- // get array product_id
553
- $arr_productids = $this->getProductByCategory();
554
- $products = $products->addIdFilter($arr_productids);
555
- }
556
-
557
- if ($product_ids) {
558
- $products->addAttributeToFilter('entity_id', $product_ids);
559
- }
560
- /*
561
- Filter list of product showing only the active and
562
- visible product
563
- */
564
- Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($products);
565
- Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($products);
566
-
567
- $products->setPageSize($perPage)->setCurPage($currentPage);
568
-
569
- $this->setProductCollection($products);
570
-
571
- $this->_addProductAttributesAndPrices($products);
572
-
573
- if (($_products = $this->getProductCollection()) && $_products->getSize()) {
574
- $list = $_products;
575
- }
576
-
577
- return $list;
578
- }
579
-
580
- function getListFeaturedProducts()
581
- {
582
- $list = array();
583
- // instantiate database connection object
584
-
585
-
586
- $resource = Mage::getSingleton('core/resource');
587
-
588
- $read = $resource->getConnection('catalog_read');
589
-
590
- $categoryProductTable = $resource->getTableName('catalog/category_product');
591
-
592
- $productEntityIntTable = (string) Mage::getConfig()->getTablePrefix() . 'catalog_product_entity_int';
593
-
594
- $eavAttributeTable = $resource->getTableName('eav/attribute');
595
-
596
- // Query database for featured product
597
- $select = $read->select('cp.product_id')->from(array('cp' => $categoryProductTable))->join(array('pei' => $productEntityIntTable), 'pei.entity_id=cp.product_id', array())->joinNatural(array('ea' => $eavAttributeTable))->where("pei.value='1'")->where("ea.attribute_code='featured'");
598
-
599
- //->where($cond_category_id)
600
- $rows = $read->fetchAll($select);
601
-
602
- $product_ids = array();
603
- if ($rows) {
604
- foreach ($rows as $row) {
605
- $product_ids[] = $row['product_id'];
606
- }
607
- $list = $this->getListBestBuyProducts('updated_at', 'desc', $product_ids);
608
- }
609
-
610
- return $list;
611
- }
612
-
613
- /**
614
- * check the array existed in the other array
615
- *
616
- */
617
- function inArray($source, $target)
618
- {
619
- for ($j = 0; $j < sizeof($source); $j++) {
620
- if (in_array($source[$j], $target)) {
621
- return true;
622
- //echo 'ok';
623
- }
624
- }
625
- }
626
- // -- added by congtq 18/09/2009
627
-
628
-
629
- // ++ added by congtq 27/10/2009
630
- function getProductByCategory()
631
- {
632
- $return = array();
633
- $pids = array();
634
-
635
- $products = Mage::getResourceModel('catalog/product_collection');
636
-
637
- foreach ($products->getItems() as $key => $_product) {
638
- $arr_categoryids[$key] = $_product->getCategoryIds();
639
-
640
- if ($this->_config['catsid']) {
641
- if (stristr($this->_config['catsid'], ',') === FALSE) {
642
- $arr_catsid[$key] = array(0 => $this->_config['catsid']);
643
- } else {
644
- $arr_catsid[$key] = explode(",", $this->_config['catsid']);
645
- }
646
-
647
- $return[$key] = $this->inArray($arr_catsid[$key], $arr_categoryids[$key]);
648
- }
649
- }
650
-
651
- foreach ($return as $k => $v) {
652
- if ($v == 1) {
653
- $pids[] = $k;
654
- }
655
- }
656
-
657
- return $pids;
658
- }
659
- // -- added by congtq 27/10/2009
660
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Helper/Data.php DELETED
@@ -1,91 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
- class JoomlArt_JmSlideshow_Helper_Data extends Mage_Core_Helper_Abstract
13
- {
14
- function get($attributes)
15
- {
16
- $data = array();
17
- $arrayParams = array(
18
- 'show',
19
- 'title',
20
- 'loadjquery' ,
21
- 'source',
22
- 'sourceProductsMode',
23
- 'catsid',
24
- 'quanlity',
25
- 'folder',
26
- 'readMoreText',
27
-
28
- 'animation', //[slide, fade, slice], slide and fade for old compactible
29
-
30
- 'mainWidth', //width of main item
31
- 'mainWidthtablet',
32
- 'mainWidthtabletportrait',
33
- 'mainWidthmobile',
34
- 'mainWidthmobileportrait',
35
- 'mainHeight', //height of main item
36
-
37
- 'duration', //duration - time for animation
38
-
39
- 'autoPlay', //auto play
40
- 'repeat', //animation repeat or not
41
- 'interval', //interval - time for between animation
42
-
43
- 'rtl', //rtl
44
-
45
- 'thumbType', //false - no thumb, other [number, thumb], thumb will animate
46
- 'thumbImgMode',
47
- 'useRatio',
48
- 'thumbImgWidth',
49
- 'thumbImgHeight',
50
-
51
- 'thumbItems', //number of thumb item will be show
52
- 'thumbWidth', //width of thumbnail item
53
- 'thumbHeight', //width of thumbnail item
54
- 'thumbSpaces', //space between thumbnails
55
- 'thumbDirection', //thumb orientation
56
- 'thumbPosition', //[0%, 50%, 100%]
57
- 'thumbTrigger', //thumb trigger event, [click, mouseenter]
58
-
59
- 'controlBox', //show navigation controller [next, prev, play, playback] - JM does not have a config
60
- 'controlPosition', //show navigation controller [next, prev, play, playback] - JM does not have a config
61
-
62
- 'navButtons', //main next/prev navigation buttons mode, [false, auto, fillspace]
63
-
64
- 'showDesc', //show description or not
65
- 'descTrigger', //[always, mouseover, load]
66
- 'maskWidth', //mask - a div over the the main item - used to hold descriptions
67
- 'maskHeight', //mask height
68
- 'maskAnim', //mask transition style [fade, slide, slide-fade], slide - will use the maskAlign to slide
69
- 'maskOpacity', //mask opacity
70
- 'maskPosition', //[0%, 50%, 100%]
71
- 'description',
72
-
73
- 'showProgress', //show the progress bar
74
-
75
- 'urls', // [] array of url of main items
76
- 'targets' // [] same as urls, an array of target value such as, '_blank', 'parent', '' - default
77
- );
78
-
79
- foreach ($arrayParams as $var) {
80
- if (isset($attributes[$var])) {
81
- $data[$var] = $attributes[$var];
82
- }
83
- else {
84
- $data[$var] = Mage::getStoreConfig("joomlart_jmslideshow/joomlart_jmslideshow/$var");
85
- }
86
- }
87
-
88
- return $data;
89
- }
90
- }
91
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Helper/Jmimage.php DELETED
@@ -1,402 +0,0 @@
1
- <?php
2
- /**
3
- * ------------------------------------------------------------------------
4
- * JM Slideshow module for magento
5
- * ------------------------------------------------------------------------
6
- * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
7
- * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
8
- * Author: J.O.O.M Solutions Co., Ltd
9
- * Websites: http://www.joomlart.com - http://www.joomlancers.com
10
- * ------------------------------------------------------------------------
11
- */
12
-
13
-
14
- if( !class_exists('JoomlArt_JmSlideshow_Helper_Jmimage') ){
15
-
16
- /**
17
- * JM Image Class, using for render thumb image or crop image from orginal image.
18
- *
19
- * @author joomlart.com (@see http://joomlart.com, @email: webmaster@joomlart.com)
20
- * @copyright Copyright (C) August - 2009, J.O.O.M Solutions Co., Ltd. All Rights Reserved.
21
- * @license GNU/GPL
22
- * @version 1.0
23
- */
24
- class JoomlArt_JmSlideshow_Helper_Jmimage extends Mage_Core_Helper_Abstract {
25
-
26
- /**
27
- * Identifier of the cache path.
28
- *
29
- * @access private
30
- * @param string $__cachePath
31
- */
32
- private $__cachePath;
33
-
34
- /**
35
- * Identifier of the path of source.
36
- *
37
- * @access private
38
- * @param string $__imageBase
39
- */
40
- private $__imageBase;
41
-
42
- /**
43
- * Identifier of the image's extensions
44
- *
45
- * @access public
46
- * @param array $types
47
- */
48
- private $types = array();
49
-
50
- /**
51
- * Identifier of the quantity of thumnail image.
52
- *
53
- * @access public
54
- * @param string $__quality
55
- */
56
- private $__quality = 90;
57
-
58
- /**
59
- * Identifier of the url of folder cache.
60
- *
61
- * @access public
62
- * @param string $__cacheURL
63
- */
64
- private $__cacheURL;
65
-
66
-
67
- /**
68
- * Identifier of the url of folder cache.
69
- *
70
- * @access public
71
- * @param string $__noImage
72
- */
73
- private $__noImage = null;
74
-
75
- private $__thumbmode = 'crop';
76
-
77
- /**
78
- * constructor
79
- */
80
- function __construct()
81
- {
82
- $this->types = array( 1 => "gif", "jpeg", "png", "swf", "psd", "wbmp" );
83
- $this->__imageBase = Mage::getBaseDir().DIRECTORY_SEPARATOR.'media'.DIRECTORY_SEPARATOR;
84
- $this->__cachePath = $this->__imageBase.'resized'.DIRECTORY_SEPARATOR;
85
- $this->__cacheURL = 'media/resized/';
86
- }
87
- /**
88
- * constructor
89
- */
90
- public function JAImage()
91
- {
92
- $this->__construct();
93
- }
94
- /**
95
- * get a instance of JAImage object.
96
- *
97
- * This method must be invoked as:
98
- * <pre> $jaimage = &JAImage::getInstace();</pre>
99
- *
100
- * @static.
101
- * @access public,
102
- */
103
- public function &getInstance()
104
- {
105
- static $instance = null;
106
- if( !$instance )
107
- {
108
- $instance = new JAImage();
109
- }
110
- return $instance;
111
- }
112
- /**
113
- * crop or resize image
114
- *
115
- *
116
- * @param string $image path of source.
117
- * @param integer $width width of thumnail
118
- * @param integer $height height of thumnail
119
- * @param boolean $aspect whether to render thumnail base on the ratio
120
- * @param boolean $crop whether to use crop image to render thumnail.
121
- * @access public,
122
- */
123
- public function resize( $image, $width, $height, $crop=true, $aspect=true ){
124
- // get image information
125
- if( !$width || !$height ) return '';
126
-
127
- $imagSource =Mage::getBaseDir().DIRECTORY_SEPARATOR. str_replace( '/', DIRECTORY_SEPARATOR, $image );
128
- if( !file_exists($imagSource) || !is_file($imagSource) ){ return ''; }
129
- $size = getimagesize( $imagSource );
130
- // if it's not a image.
131
- if( !$size ){ return ''; }
132
-
133
- // case 1: render image base on the ratio of source.
134
- $x_ratio = $width / $size[0];
135
- $y_ratio = $height / $size[1];
136
-
137
- // set dst, src
138
- $dst = new stdClass();
139
- $src = new stdClass();
140
- $src->y = $src->x = 0;
141
- $dst->y = $dst->x = 0;
142
-
143
- if ($width > $size[0])
144
- $width = $size[0];
145
- if ($height > $height)
146
- $height = $size[1];
147
-
148
-
149
- if ( $crop )
150
- { // processing crop image
151
- $dst->w = $width;
152
- $dst->h = $height;
153
- if ( ($size[0] <= $width) && ($size[1] <= $height) )
154
- {
155
- $src->w = $width;
156
- $src->h = $height;
157
- }
158
- else
159
- {
160
- if ($x_ratio < $y_ratio)
161
- {
162
- $src->w = ceil ( $width / $y_ratio );
163
- $src->h = $size[1];
164
- }
165
- else
166
- {
167
- $src->w = $size[0];
168
- $src->h = ceil ( $height / $x_ratio );
169
- }
170
- }
171
- $src->x = floor ( ($size[0] - $src->w) / 2 );
172
- $src->y = floor ( ($size[1] - $src->h) / 2 );
173
- }
174
- else
175
- { // processing resize image.
176
- $src->w = $size[0];
177
- $src->h = $size[1];
178
- if( $aspect )
179
- { // using ratio
180
- if ( ($size[0] <= $width) && ($size[1] <= $height) )
181
- {
182
- $dst->w = $size[0];
183
- $dst->h = $size[1];
184
- } else if ( ($size[0] <= $width) && ($size[1] <= $height) )
185
- {
186
- $dst->w = $size[0];
187
- $dst->h = $size[1];
188
- }
189
- else if ( ($x_ratio * $size[1]) < $height )
190
- {
191
- $dst->h = ceil ( $x_ratio * $size[1] );
192
- $dst->w = $width;
193
- }
194
- else {
195
- $dst->w = ceil ( $y_ratio * $size[0] );
196
- $dst->h = $height;
197
- }
198
- } else { // resize image without the ratio of source.
199
- $dst->w = $width;
200
- $dst->h = $height;
201
- }
202
- }
203
- //
204
- $ext = substr ( strrchr ( $image, '.' ), 1 );
205
- $thumnail = substr ( $image, 0, strpos ( $image, '.' )) . "_{$width}_{$height}.".$ext;
206
- $imageCache = $this->__cachePath . str_replace( '/', DIRECTORY_SEPARATOR, $thumnail );
207
-
208
- if( file_exists($imageCache) )
209
- {
210
- $smallImg = getimagesize ( $imageCache );
211
- if ( ($smallImg [0] == $dst->w && $smallImg [1] == $dst->h) )
212
- {
213
- return $this->__cacheURL. $thumnail;
214
- }
215
- }
216
-
217
- if( !file_exists($this->__cachePath) && !mkdir($this->__cachePath) )
218
- {
219
- return '';
220
- }
221
-
222
- if( !$this->makeDir( $image ) ) {
223
- return '';
224
- }
225
-
226
- // resize image
227
- $this->_resizeImage( $imagSource, $src, $dst, $size, $imageCache );
228
-
229
- return $this->__cacheURL. $thumnail;
230
- }
231
-
232
- /**
233
- * check the folder is existed, if not make a directory and set permission is 755
234
- *
235
- *
236
- * @param array $path
237
- * @access public,
238
- * @return boolean.
239
- */
240
- public function makeDir( $path )
241
- {
242
- $folders = explode ( '/', ( $path ) );
243
- $tmppath = $this->__cachePath;
244
- for( $i = 0; $i < count ( $folders ) - 1; $i ++)
245
- {
246
- if (! file_exists ( $tmppath . $folders [$i] ) && ! mkdir ( $tmppath . $folders [$i], 0755) )
247
- {
248
- return false;
249
- }
250
- $tmppath = $tmppath . $folders [$i] . DIRECTORY_SEPARATOR;
251
- }
252
- return true;
253
- }
254
-
255
- /**
256
- * process render image
257
- *
258
- * @param string $imageSource is path of the image source.
259
- * @param stdClass $src the setting of image source
260
- * @param stdClass $dst the setting of image dts
261
- * @param string $imageCache path of image cache ( it's thumnail).
262
- * @access public,
263
- */
264
- protected function _resizeImage( $imageSource, $src, $dst, $size, $imageCache )
265
- {
266
- // create image from source.
267
- $extension = $this->types[$size[2]];
268
- $image = call_user_func( "imagecreatefrom".$extension, $imageSource );
269
-
270
- if( function_exists("imagecreatetruecolor")
271
- && ($newimage = imagecreatetruecolor($dst->w, $dst->h)) )
272
- {
273
-
274
- if( $extension == 'gif' || $extension == 'png' )
275
- {
276
- imagealphablending ( $newimage, false );
277
- imagesavealpha ( $newimage, true );
278
- $transparent = imagecolorallocatealpha ( $newimage, 255, 255, 255, 127 );
279
- imagefilledrectangle ( $newimage, 0, 0, $dst->w, $dst->h, $transparent );
280
- }
281
-
282
- imagecopyresampled ( $newimage, $image, $dst->x, $dst->y, $src->x, $src->y, $dst->w, $dst->h, $src->w, $src->h );
283
- }
284
- else
285
- {
286
- $newimage = imagecreate ( $width, $height );
287
- imagecopyresized ( $newimage, $image, $dst->x, $dst->y, $src->x, $src->y, $dst->w, $dst->h, $size[0], $size[1] );
288
- }
289
-
290
- switch( $extension )
291
- {
292
- case 'jpeg' :
293
- call_user_func( 'image'.$extension, $newimage, $imageCache, $this->__quality );
294
- break;
295
- default:
296
- call_user_func( 'image'.$extension,$newimage, $imageCache );
297
- break;
298
- }
299
- // free memory
300
- imagedestroy ( $image );
301
- imagedestroy ( $newimage );
302
- }
303
-
304
- /**
305
- *
306
- */
307
- public function getNoImage( $srcFile )
308
- {
309
- $this->noImage = $srcFile;
310
- return $this;
311
- }
312
- /**
313
- * set quality image will render.
314
- */
315
- public function setQuality( $number = 9 )
316
- {
317
- $this->__quality = $number;
318
- return $this;
319
- }
320
-
321
- /**
322
- * check the image is a linked image from other server.
323
- *
324
- *
325
- * @param string the url of image.
326
- * @access public,
327
- * @return array if it' linked image, return false if not
328
- */
329
- public function isLinkedImage( $imageURL )
330
- {
331
- $parser = parse_url($imageURL);
332
- // return strpos( JURI::base (), $parser['host'] ) ?false:$parser;
333
- }
334
-
335
- /**
336
- * check the file is a image type ?
337
- *
338
- * @param string $ext
339
- * @return boolean.
340
- */
341
- public function isImage( $ext = '' )
342
- {
343
- return in_array($ext, $this->types);
344
- }
345
-
346
- /**
347
- * check the image source is existed ?
348
- *
349
- * @param string $imageSource the path of image source.
350
- * @access public,
351
- * @return boolean,
352
- */
353
- public function sourceExited( $imageSource )
354
- {
355
-
356
- if( $imageSource == '' || $imageSource == '..' || $imageSource == '.' )
357
- {
358
- return false;
359
- }
360
- // $imageSource = str_replace ( JURI::base (), '', $imageSource );
361
- $imageSource = rawurldecode ( $imageSource );
362
- return ( file_exists (Mage::getBaseDir() . '/' . $imageSource ) );
363
- }
364
-
365
- public function setConfig( $thumbnailMode, $ratio=true )
366
- {
367
- $this->__thumbmode = $thumbnailMode;
368
-
369
- if( $thumbnailMode != 'none' )
370
- {
371
- $this->__isCrop = $thumbnailMode == 'crop' ? true:false;
372
- $this->__isResize = $ratio;
373
- }
374
- return $this;
375
- }
376
-
377
- public function resizeThumb( $image, $width, $height )
378
- {
379
- if( $this->__thumbmode == 'none' || empty($this->__thumbmode) )
380
- {
381
- return $image;
382
- }
383
- return $this->resize( $image, $width, $height, $this->__isCrop, $this->__isResize );
384
- }
385
- /**
386
- * check the image source is existed ?
387
- *
388
- * @param string $imageSource the path of image source.
389
- * @access public,
390
- * @return boolean,
391
- */
392
- public function parseImage( $text )
393
- {
394
- $regex = "/\<img.+src\s*=\s*\"([^\"]*)\"[^\>]*\>/";
395
- preg_match ( $regex, $text, $matches );
396
- $images = (count ( $matches )) ? $matches : array ();
397
- $image = count ( $images ) > 1 ? $images [1] : '';
398
- return $image;
399
- }
400
- }
401
- }
402
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Helper/Mobiledetect.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Optimiseweb MobileDetect Helper Data
5
- *
6
- * @package Optimiseweb_MobileDetect
7
- * @author Kathir Vel (sid@optimiseweb.co.uk)
8
- * @copyright Copyright (c) 2013 Optimise Web Limited
9
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
- */
11
- if(!class_exists("Mobile_Detect")){
12
- require_once Mage::getModuleDir('', 'JoomlArt_JmSlideshow') . DS . 'Library' . DS . 'Mobile_Detect.php';
13
- }
14
- class JoomlArt_JmSlideshow_Helper_Mobiledetect extends Mobile_Detect
15
- {
16
-
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Library/Mobile_Detect.php DELETED
@@ -1,803 +0,0 @@
1
- <?php
2
- /**
3
- * MIT License
4
- * ===========
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining
7
- * a copy of this software and associated documentation files (the
8
- * "Software"), to deal in the Software without restriction, including
9
- * without limitation the rights to use, copy, modify, merge, publish,
10
- * distribute, sublicense, and/or sell copies of the Software, and to
11
- * permit persons to whom the Software is furnished to do so, subject to
12
- * the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included
15
- * in all copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
- * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
- * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
- * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
- *
25
- *
26
- * @author Serban Ghita <serbanghita@gmail.com>
27
- * Victor Stanciu <vic.stanciu@gmail.com> (until v1.0)
28
- * @license MIT License https://github.com/serbanghita/Mobile-Detect/blob/master/LICENSE.txt
29
- * @link Official page: http://mobiledetect.net
30
- * GitHub Repository: https://github.com/serbanghita/Mobile-Detect
31
- * Google Code Old Page: http://code.google.com/p/php-mobile-detect/
32
- * @version 2.6.0
33
- */
34
-
35
- class Mobile_Detect {
36
-
37
- protected $scriptVersion = '2.6.0';
38
-
39
- // External info.
40
- protected $userAgent = null;
41
- protected $httpHeaders;
42
-
43
- // Arrays holding all detection rules.
44
- protected $mobileDetectionRules = null;
45
- protected $mobileDetectionRulesExtended = null;
46
- // Type of detection to use.
47
- protected $detectionType = 'mobile'; // mobile, extended @todo: refactor this.
48
-
49
- // List of mobile devices (phones)
50
- protected $phoneDevices = array(
51
- 'iPhone' => '\biPhone.*Mobile|\biPod|\biTunes',
52
- 'BlackBerry' => 'BlackBerry|\bBB10\b|rim[0-9]+',
53
- 'HTC' => 'HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b',
54
- 'Nexus' => 'Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile',
55
- // @todo: Is 'Dell Streak' a tablet or a phone? ;)
56
- 'Dell' => 'Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b',
57
- 'Motorola' => 'Motorola|\bDroid\b.*Build|DROIDX|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT909|XT910|XT912|XT928',
58
- 'Samsung' => 'Samsung|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9300 |GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100',
59
- 'LG' => '\bLG\b;|(LG|LG-)?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999)',
60
- 'Sony' => 'sony|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i',
61
- 'Asus' => 'Asus.*Galaxy',
62
- 'Palm' => 'PalmSource|Palm', // avantgo|blazer|elaine|hiptop|plucker|xiino ; @todo - complete the regex.
63
- 'Vertu' => 'Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature', // Just for fun ;)
64
- // @ref: http://www.pantech.co.kr/en/prod/prodList.do?gbrand=VEGA (PANTECH)
65
- // Most of the VEGA devices are legacy. PANTECH seem to be newer devices based on Android.
66
- 'Pantech' => 'PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790',
67
- // @ref: http://www.fly-phone.com/devices/smartphones/ ; Included only smartphones.
68
- 'Fly' => 'IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250',
69
- // Added simvalley mobile just for fun. They have some interesting devices.
70
- // @ref: http://www.simvalley.fr/telephonie---gps-_22_telephonie-mobile_telephones_.html
71
- 'SimValley' => '\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b',
72
- // @Tapatalk is a mobile app; @ref: http://support.tapatalk.com/threads/smf-2-0-2-os-and-browser-detection-plugin-and-tapatalk.15565/#post-79039
73
- 'GenericPhone' => 'Tapatalk|PDA;|PPC;|SAGEM|mmp|pocket|psp|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|wap|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser|LG-P500'
74
- );
75
- // List of tablet devices.
76
- protected $tabletDevices = array(
77
- 'iPad' => 'iPad|iPad.*Mobile', // @todo: check for mobile friendly emails topic.
78
- 'NexusTablet' => '^.*Android.*Nexus(((?:(?!Mobile))|(?:(\s(7|10).+))).)*$',
79
- 'SamsungTablet' => 'SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739',
80
- // @reference: http://www.labnol.org/software/kindle-user-agent-string/20378/
81
- 'Kindle' => 'Kindle|Silk.*Accelerated',
82
- // Only the Surface tablets with Windows RT are considered mobile.
83
- // @ref: http://msdn.microsoft.com/en-us/library/ie/hh920767(v=vs.85).aspx
84
- 'SurfaceTablet' => 'Windows NT [0-9.]+; ARM;',
85
- 'AsusTablet' => 'Transformer|TF101',
86
- 'BlackBerryTablet' => 'PlayBook|RIM Tablet',
87
- 'HTCtablet' => 'HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200',
88
- 'MotorolaTablet' => 'xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617',
89
- 'NookTablet' => 'Android.*Nook|NookColor|nook browser|BNTV250A|LogicPD Zoom2',
90
- // @ref: http://www.acer.ro/ac/ro/RO/content/drivers
91
- // @ref: http://www.packardbell.co.uk/pb/en/GB/content/download (Packard Bell is part of Acer)
92
- 'AcerTablet' => 'Android.*\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71)\b',
93
- // @ref: http://eu.computers.toshiba-europe.com/innovation/family/Tablets/1098744/banner_id/tablet_footerlink/
94
- // @ref: http://us.toshiba.com/tablets/tablet-finder
95
- // @ref: http://www.toshiba.co.jp/regza/tablet/
96
- 'ToshibaTablet' => 'Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)',
97
- // @ref: http://www.nttdocomo.co.jp/english/service/developer/smart_phone/technical_info/spec/index.html
98
- 'LGTablet' => '\bL-06C|LG-V900|LG-V909\b',
99
- 'YarvikTablet' => 'Android.*(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468)',
100
- 'MedionTablet' => 'Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB',
101
- 'ArnovaTablet' => 'AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT',
102
- // @reference: http://wiki.archosfans.com/index.php?title=Main_Page
103
- 'ArchosTablet' => 'Android.*ARCHOS|101G9|80G9',
104
- // @reference: http://en.wikipedia.org/wiki/NOVO7
105
- 'AinolTablet' => 'NOVO7|Novo7Aurora|Novo7Basic|NOVO7PALADIN',
106
- // @todo: inspect http://esupport.sony.com/US/p/select-system.pl?DIRECTOR=DRIVER
107
- // @ref: Readers http://www.atsuhiro-me.net/ebook/sony-reader/sony-reader-web-browser
108
- // @ref: http://www.sony.jp/support/tablet/
109
- 'SonyTablet' => 'Sony Tablet|Sony Tablet S|SGPT12|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT211|SGPT213|EBRD1101|EBRD1102|EBRD1201',
110
- // @ref: db + http://www.cube-tablet.com/buy-products.html
111
- 'CubeTablet' => 'Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT',
112
- // @ref: http://www.cobyusa.com/?p=pcat&pcat_id=3001
113
- 'CobyTablet' => 'MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010',
114
- // @ref: http://pdadb.net/index.php?m=pdalist&list=SMiT (NoName Chinese Tablets)
115
- // @ref: http://www.imp3.net/14/show.php?itemid=20454
116
- 'SMiTTablet' => 'Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)',
117
- // @ref: http://www.rock-chips.com/index.php?do=prod&pid=2
118
- 'RockChipTablet' => 'Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A',
119
- // @ref: http://www.telstra.com.au/home-phone/thub-2/
120
- 'TelstraTablet' => 'T-Hub2',
121
- // @ref: http://www.fly-phone.com/devices/tablets/ ; http://www.fly-phone.com/service/
122
- 'FlyTablet' => 'IQ310|Fly Vision',
123
- // @ref: http://www.bqreaders.com/gb/tablets-prices-sale.html
124
- 'bqTablet' => 'bq.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant)',
125
- // @ref: http://www.huaweidevice.com/worldwide/productFamily.do?method=index&directoryId=5011&treeId=3290
126
- // @ref: http://www.huaweidevice.com/worldwide/downloadCenter.do?method=index&directoryId=3372&treeId=0&tb=1&type=software (including legacy tablets)
127
- 'HuaweiTablet' => 'MediaPad|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim',
128
- // Nec or Medias Tab
129
- 'NecTablet' => '\bN-06D|\bN-08D',
130
- // Pantech Tablets: http://www.pantechusa.com/phones/
131
- 'PantechTablet' => 'Pantech.*P4100',
132
- // Broncho Tablets: http://www.broncho.cn/ (hard to find)
133
- 'BronchoTablet' => 'Broncho.*(N701|N708|N802|a710)',
134
- // @ref: http://versusuk.com/support.html
135
- 'VersusTablet' => 'TOUCHPAD.*[78910]',
136
- // @ref: http://www.zync.in/index.php/our-products/tablet-phablets
137
- 'ZyncTablet' => 'z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900',
138
- // @ref: http://www.positivoinformatica.com.br/www/pessoal/tablet-ypy/
139
- 'PositivoTablet' => 'TB07STA|TB10STA|TB07FTA|TB10FTA',
140
- // @ref: https://www.nabitablet.com/
141
- 'NabiTablet' => 'Android.*\bNabi',
142
- // @note: Avoid detecting 'PLAYSTATION 3' as mobile.
143
- 'PlaystationTablet' => 'Playstation.*(Portable|Vita)',
144
- 'GenericTablet' => 'Android.*\b97D\b|Tablet(?!.*PC)|ViewPad7|MID7015|BNTV250A|LogicPD Zoom2|\bA7EB\b|CatNova8|A1_07|CT704|CT1002|\bM721\b|hp-tablet',
145
- );
146
- // List of mobile Operating Systems.
147
- protected $operatingSystems = array(
148
- 'AndroidOS' => 'Android',
149
- 'BlackBerryOS' => 'blackberry|\bBB10\b|rim tablet os',
150
- 'PalmOS' => 'PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino',
151
- 'SymbianOS' => 'Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\bS60\b',
152
- // @reference: http://en.wikipedia.org/wiki/Windows_Mobile
153
- 'WindowsMobileOS' => 'Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;',
154
- // @reference: http://en.wikipedia.org/wiki/Windows_Phone
155
- // http://wifeng.cn/?r=blog&a=view&id=106
156
- // http://nicksnettravels.builttoroam.com/post/2011/01/10/Bogus-Windows-Phone-7-User-Agent-String.aspx
157
- 'WindowsPhoneOS' => 'Windows Phone OS|XBLWP7|ZuneWP7',
158
- 'iOS' => '\biPhone.*Mobile|\biPod|\biPad',
159
- // http://en.wikipedia.org/wiki/MeeGo
160
- // @todo: research MeeGo in UAs
161
- 'MeeGoOS' => 'MeeGo',
162
- // http://en.wikipedia.org/wiki/Maemo
163
- // @todo: research Maemo in UAs
164
- 'MaemoOS' => 'Maemo',
165
- 'JavaOS' => 'J2ME/|Java/|\bMIDP\b|\bCLDC\b',
166
- 'webOS' => 'webOS|hpwOS',
167
- 'badaOS' => '\bBada\b',
168
- 'BREWOS' => 'BREW',
169
- );
170
- // List of mobile User Agents.
171
- protected $userAgents = array(
172
- // @reference: https://developers.google.com/chrome/mobile/docs/user-agent
173
- 'Chrome' => '\bCrMo\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?',
174
- 'Dolfin' => '\bDolfin\b',
175
- 'Opera' => 'Opera.*Mini|Opera.*Mobi|Android.*Opera|OPR/[0-9.]+',
176
- 'Skyfire' => 'Skyfire',
177
- 'IE' => 'IEMobile|MSIEMobile',
178
- 'Firefox' => 'fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile',
179
- 'Bolt' => 'bolt',
180
- 'TeaShark' => 'teashark',
181
- 'Blazer' => 'Blazer',
182
- // @reference: http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/OptimizingforSafarioniPhone/OptimizingforSafarioniPhone.html#//apple_ref/doc/uid/TP40006517-SW3
183
- 'Safari' => 'Version.*Mobile.*Safari|Safari.*Mobile',
184
- // @ref: http://en.wikipedia.org/wiki/Midori_(web_browser)
185
- //'Midori' => 'midori',
186
- 'Tizen' => 'Tizen',
187
- 'UCBrowser' => 'UC.*Browser|UCWEB',
188
- // @ref: https://github.com/serbanghita/Mobile-Detect/issues/7
189
- 'DiigoBrowser' => 'DiigoBrowser',
190
- // http://www.puffinbrowser.com/index.php
191
- 'Puffin' => 'Puffin',
192
- // @ref: http://mercury-browser.com/index.html
193
- 'Mercury' => '\bMercury\b',
194
- // @reference: http://en.wikipedia.org/wiki/Minimo
195
- // http://en.wikipedia.org/wiki/Vision_Mobile_Browser
196
- 'GenericBrowser' => 'NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision'
197
- );
198
- // Utilities.
199
- protected $utilities = array(
200
- // Experimental. When a mobile device wants to switch to 'Desktop Mode'.
201
- // @ref: http://scottcate.com/technology/windows-phone-8-ie10-desktop-or-mobile/
202
- // @ref: https://github.com/serbanghita/Mobile-Detect/issues/57#issuecomment-15024011
203
- 'DesktopMode' => 'WPDesktop',
204
- 'TV' => 'SonyDTV115', // experimental
205
- 'WebKit' => '(webkit)[ /]([\w.]+)',
206
- 'Bot' => 'Googlebot|DoCoMo|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|facebookexternalhit',
207
- 'MobileBot' => 'Googlebot-Mobile|DoCoMo|YahooSeeker/M1A1-R2D2',
208
- );
209
- // Properties list.
210
- // @reference: http://user-agent-string.info/list-of-ua#Mobile Browser
211
- const VER = '([\w._]+)';
212
- protected $properties = array(
213
-
214
- // Build
215
- 'Mobile' => 'Mobile/[VER]',
216
- 'Build' => 'Build/[VER]',
217
- 'Version' => 'Version/[VER]',
218
- 'VendorID' => 'VendorID/[VER]',
219
-
220
- // Devices
221
- 'iPad' => 'iPad.*CPU[a-z ]+[VER]',
222
- 'iPhone' => 'iPhone.*CPU[a-z ]+[VER]',
223
- 'iPod' => 'iPod.*CPU[a-z ]+[VER]',
224
- //'BlackBerry' => array('BlackBerry[VER]', 'BlackBerry [VER];'),
225
- 'Kindle' => 'Kindle/[VER]',
226
-
227
- // Browser
228
- 'Chrome' => array('Chrome/[VER]', 'CriOS/[VER]', 'CrMo/[VER]'),
229
- 'Dolfin' => 'Dolfin/[VER]',
230
- // @reference: https://developer.mozilla.org/en-US/docs/User_Agent_Strings_Reference
231
- 'Firefox' => 'Firefox/[VER]',
232
- 'Fennec' => 'Fennec/[VER]',
233
- // @reference: http://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx
234
- 'IEMobile' => array('IEMobile/[VER];', 'IEMobile [VER]'),
235
- 'MSIE' => 'MSIE [VER];',
236
- // http://en.wikipedia.org/wiki/NetFront
237
- 'NetFront' => 'NetFront/[VER]',
238
- 'NokiaBrowser' => 'NokiaBrowser/[VER]',
239
- 'Opera' => 'Version/[VER]',
240
- 'Opera Mini' => 'Opera Mini/[VER]',
241
- 'Opera Mobi' => 'Version/[VER]',
242
- 'UC Browser' => 'UC Browser[VER]',
243
- 'Safari' => 'Version/[VER]',
244
- 'Skyfire' => 'Skyfire/[VER]',
245
- 'Tizen' => 'Tizen/[VER]',
246
- 'Webkit' => 'webkit[ /][VER]',
247
-
248
- // Engine
249
- 'Gecko' => 'Gecko/[VER]',
250
- 'Trident' => 'Trident/[VER]',
251
- 'Presto' => 'Presto/[VER]',
252
-
253
- // OS
254
- 'Android' => 'Android [VER]',
255
- 'BlackBerry' => array('BlackBerry[\w]+/[VER]', 'BlackBerry.*Version/[VER]'),
256
- 'BREW' => 'BREW [VER]',
257
- 'Java' => 'Java/[VER]',
258
- // @reference: http://windowsteamblog.com/windows_phone/b/wpdev/archive/2011/08/29/introducing-the-ie9-on-windows-phone-mango-user-agent-string.aspx
259
- // @reference: http://en.wikipedia.org/wiki/Windows_NT#Releases
260
- 'Windows Phone OS' => 'Windows Phone OS [VER]',
261
- 'Windows Phone' => 'Windows Phone [VER]',
262
- 'Windows CE' => 'Windows CE/[VER]',
263
- // http://social.msdn.microsoft.com/Forums/en-US/windowsdeveloperpreviewgeneral/thread/6be392da-4d2f-41b4-8354-8dcee20c85cd
264
- 'Windows NT' => 'Windows NT [VER]',
265
- 'Symbian' => array('SymbianOS/[VER]', 'Symbian/[VER]'),
266
- 'webOS' => array('webOS/[VER]', 'hpwOS/[VER];'),
267
-
268
-
269
- );
270
-
271
- function __construct(){
272
-
273
- $this->setHttpHeaders();
274
- $this->setUserAgent();
275
-
276
- $this->setMobileDetectionRules();
277
- $this->setMobileDetectionRulesExtended();
278
-
279
- }
280
-
281
-
282
- /**
283
- * Get the current script version.
284
- * This is useful for the demo.php file,
285
- * so people can check on what version they are testing
286
- * for mobile devices.
287
- */
288
- public function getScriptVersion(){
289
-
290
- return $this->scriptVersion;
291
-
292
- }
293
-
294
- public function setHttpHeaders($httpHeaders = null){
295
-
296
- if(!empty($httpHeaders)){
297
- $this->httpHeaders = $httpHeaders;
298
- } else {
299
- foreach($_SERVER as $key => $value){
300
- if(substr($key,0,5)=='HTTP_'){
301
- $this->httpHeaders[$key] = $value;
302
- }
303
- }
304
- }
305
-
306
- }
307
-
308
- public function getHttpHeaders(){
309
-
310
- return $this->httpHeaders;
311
-
312
- }
313
-
314
- public function setUserAgent($userAgent = null){
315
-
316
- if(!empty($userAgent)){
317
- $this->userAgent = $userAgent;
318
- } else {
319
- $this->userAgent = isset($this->httpHeaders['HTTP_USER_AGENT']) ? $this->httpHeaders['HTTP_USER_AGENT'] : null;
320
-
321
- if(empty($this->userAgent)){
322
- $this->userAgent = isset($this->httpHeaders['HTTP_X_DEVICE_USER_AGENT']) ? $this->httpHeaders['HTTP_X_DEVICE_USER_AGENT'] : null;
323
- }
324
- // Header can occur on devices using Opera Mini (can expose the real device type). Let's concatenate it (we need this extra info in the regexes).
325
- if(!empty($this->httpHeaders['HTTP_X_OPERAMINI_PHONE_UA'])){
326
- $this->userAgent .= ' '.$this->httpHeaders['HTTP_X_OPERAMINI_PHONE_UA'];
327
- }
328
- }
329
-
330
- }
331
-
332
- public function getUserAgent(){
333
-
334
- return $this->userAgent;
335
-
336
- }
337
-
338
- function setDetectionType($type = null){
339
-
340
- $this->detectionType = (!empty($type) ? $type : 'mobile');
341
-
342
- }
343
-
344
- public function getPhoneDevices(){
345
-
346
- return $this->phoneDevices;
347
-
348
- }
349
-
350
- public function getTabletDevices(){
351
-
352
- return $this->tabletDevices;
353
-
354
- }
355
-
356
- /**
357
- * Method sets the mobile detection rules.
358
- *
359
- * This method is used for the magic methods $detect->is*()
360
- */
361
- public function setMobileDetectionRules(){
362
- // Merge all rules together.
363
- $this->mobileDetectionRules = array_merge(
364
- $this->phoneDevices,
365
- $this->tabletDevices,
366
- $this->operatingSystems,
367
- $this->userAgents
368
- );
369
-
370
- }
371
-
372
- /**
373
- * Method sets the mobile detection rules + utilities.
374
- * The reason this is separate is because utilities rules
375
- * don't necessary imply mobile.
376
- *
377
- * This method is used inside the new $detect->is('stuff') method.
378
- *
379
- * @return bool
380
- */
381
- public function setMobileDetectionRulesExtended(){
382
-
383
- // Merge all rules together.
384
- $this->mobileDetectionRulesExtended = array_merge(
385
- $this->phoneDevices,
386
- $this->tabletDevices,
387
- $this->operatingSystems,
388
- $this->userAgents,
389
- $this->utilities
390
- );
391
-
392
- }
393
-
394
- /**
395
- * @return array
396
- */
397
- public function getRules()
398
- {
399
-
400
- if($this->detectionType=='extended'){
401
- return $this->mobileDetectionRulesExtended;
402
- } else {
403
- return $this->mobileDetectionRules;
404
- }
405
-
406
- }
407
-
408
- /**
409
- * Check the HTTP headers for signs of mobile.
410
- * This is the fastest mobile check possible; it's used
411
- * inside isMobile() method.
412
- * @return boolean
413
- */
414
- public function checkHttpHeadersForMobile(){
415
-
416
- if(
417
- isset($this->httpHeaders['HTTP_ACCEPT']) &&
418
- (strpos($this->httpHeaders['HTTP_ACCEPT'], 'application/x-obml2d') !== false || // Opera Mini; @reference: http://dev.opera.com/articles/view/opera-binary-markup-language/
419
- strpos($this->httpHeaders['HTTP_ACCEPT'], 'application/vnd.rim.html') !== false || // BlackBerry devices.
420
- strpos($this->httpHeaders['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false ||
421
- strpos($this->httpHeaders['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false) ||
422
- isset($this->httpHeaders['HTTP_X_WAP_PROFILE']) || // @todo: validate
423
- isset($this->httpHeaders['HTTP_X_WAP_CLIENTID']) ||
424
- isset($this->httpHeaders['HTTP_WAP_CONNECTION']) ||
425
- isset($this->httpHeaders['HTTP_PROFILE']) ||
426
- isset($this->httpHeaders['HTTP_X_OPERAMINI_PHONE_UA']) || // Reported by Nokia devices (eg. C3)
427
- isset($this->httpHeaders['HTTP_X_NOKIA_IPADDRESS']) ||
428
- isset($this->httpHeaders['HTTP_X_NOKIA_GATEWAY_ID']) ||
429
- isset($this->httpHeaders['HTTP_X_ORANGE_ID']) ||
430
- isset($this->httpHeaders['HTTP_X_VODAFONE_3GPDPCONTEXT']) ||
431
- isset($this->httpHeaders['HTTP_X_HUAWEI_USERID']) ||
432
- isset($this->httpHeaders['HTTP_UA_OS']) || // Reported by Windows Smartphones.
433
- isset($this->httpHeaders['HTTP_X_MOBILE_GATEWAY']) || // Reported by Verizon, Vodafone proxy system.
434
- isset($this->httpHeaders['HTTP_X_ATT_DEVICEID']) || // Seend this on HTC Sensation. @ref: SensationXE_Beats_Z715e
435
- //HTTP_X_NETWORK_TYPE = WIFI
436
- ( isset($this->httpHeaders['HTTP_UA_CPU']) &&
437
- $this->httpHeaders['HTTP_UA_CPU'] == 'ARM' // Seen this on a HTC.
438
- )
439
- ){
440
-
441
- return true;
442
-
443
- }
444
-
445
- return false;
446
-
447
- }
448
-
449
- /**
450
- * Magic overloading method.
451
- *
452
- * @method boolean is[...]()
453
- * @param string $name
454
- * @param array $arguments
455
- * @return mixed
456
- */
457
- public function __call($name, $arguments)
458
- {
459
-
460
- $this->setDetectionType('mobile');
461
-
462
- $key = substr($name, 2);
463
- return $this->matchUAAgainstKey($key);
464
-
465
- }
466
-
467
- /**
468
- * Find a detection rule that matches the current User-agent.
469
- *
470
- * @param null $userAgent deprecated
471
- * @return boolean
472
- */
473
- private function matchDetectionRulesAgainstUA($userAgent = null){
474
-
475
- // Begin general search.
476
- foreach($this->getRules() as $_regex){
477
- if(empty($_regex)){ continue; }
478
- if( $this->match($_regex, $userAgent) ){
479
- //var_dump( $_regex );
480
- return true;
481
- }
482
- }
483
-
484
- return false;
485
-
486
- }
487
-
488
- /**
489
- * Search for a certain key in the rules array.
490
- * If the key is found the try to match the corresponding
491
- * regex agains the User-agent.
492
- *
493
- * @param string $key
494
- * @param null $userAgent deprecated
495
- * @return mixed
496
- */
497
- private function matchUAAgainstKey($key, $userAgent = null){
498
-
499
- // Make the keys lowercase so we can match: isIphone(), isiPhone(), isiphone(), etc.
500
- $key = strtolower($key);
501
- $_rules = array_change_key_case($this->getRules());
502
-
503
- if(array_key_exists($key, $_rules)){
504
- if(empty($_rules[$key])){ return null; }
505
- return $this->match($_rules[$key], $userAgent);
506
- }
507
-
508
- return false;
509
-
510
- }
511
-
512
- /**
513
- * Check if the device is mobile.
514
- * Returns true if any type of mobile device detected, including special ones
515
- * @param null $userAgent deprecated
516
- * @param null $httpHeaders deprecated
517
- * @return bool
518
- */
519
- public function isMobile($userAgent = null, $httpHeaders = null) {
520
-
521
- if($httpHeaders){ $this->setHttpHeaders($httpHeaders); }
522
- if($userAgent){ $this->setUserAgent($userAgent); }
523
-
524
- $this->setDetectionType('mobile');
525
-
526
- if ($this->checkHttpHeadersForMobile()) {
527
- return true;
528
- } else {
529
- return $this->matchDetectionRulesAgainstUA();
530
- }
531
-
532
- }
533
-
534
- /**
535
- * Check if the device is a tablet.
536
- * Return true if any type of tablet device is detected.
537
- *
538
- * @param null $userAgent deprecated
539
- * @param null $httpHeaders deprecated
540
- * @return bool
541
- */
542
- public function isTablet($userAgent = null, $httpHeaders = null) {
543
-
544
- $this->setDetectionType('mobile');
545
-
546
- foreach($this->tabletDevices as $_regex){
547
- if($this->match($_regex, $userAgent)){
548
- return true;
549
- }
550
- }
551
-
552
- return false;
553
-
554
- }
555
-
556
- /**
557
- * This method checks for a certain property in the
558
- * userAgent.
559
- * @todo: The httpHeaders part is not yet used.
560
- *
561
- * @param $key
562
- * @param string $userAgent deprecated
563
- * @param string $httpHeaders deprecated
564
- * @return bool|int|null
565
- */
566
- public function is($key, $userAgent = null, $httpHeaders = null){
567
-
568
-
569
- // Set the UA and HTTP headers only if needed (eg. batch mode).
570
- if($httpHeaders) $this->setHttpHeaders($httpHeaders);
571
- if($userAgent) $this->setUserAgent($userAgent);
572
-
573
- $this->setDetectionType('extended');
574
-
575
- return $this->matchUAAgainstKey($key);
576
-
577
- }
578
-
579
- public function getOperatingSystems(){
580
-
581
- return $this->operatingSystems;
582
-
583
- }
584
-
585
- /**
586
- * Some detection rules are relative (not standard),
587
- * because of the diversity of devices, vendors and
588
- * their conventions in representing the User-Agent or
589
- * the HTTP headers.
590
- *
591
- * This method will be used to check custom regexes against
592
- * the User-Agent string.
593
- *
594
- * @param $regex
595
- * @param string $userAgent
596
- * @return bool
597
- *
598
- * @todo: search in the HTTP headers too.
599
- */
600
- function match($regex, $userAgent=null){
601
-
602
- // Escape the special character which is the delimiter.
603
- $regex = str_replace('/', '\/', $regex);
604
-
605
- return (bool)preg_match('/'.$regex.'/is', (!empty($userAgent) ? $userAgent : $this->userAgent));
606
-
607
- }
608
-
609
- /**
610
- * Get the properties array.
611
- * @return array
612
- */
613
- function getProperties(){
614
-
615
- return $this->properties;
616
-
617
- }
618
-
619
- /**
620
- * Prepare the version number.
621
- *
622
- * @param $ver
623
- * @return int
624
- */
625
- function prepareVersionNo($ver){
626
-
627
- $ver = str_replace(array('_', ' ', '/'), array('.', '.', '.'), $ver);
628
- $arrVer = explode('.', $ver, 2);
629
- if(isset($arrVer[1])){
630
- $arrVer[1] = @str_replace('.', '', $arrVer[1]); // @todo: treat strings versions.
631
- }
632
- $ver = (float)implode('.', $arrVer);
633
-
634
- return $ver;
635
-
636
- }
637
-
638
- /**
639
- * Check the version of the given property in the User-Agent.
640
- * Will return a float number. (eg. 2_0 will return 2.0, 4.3.1 will return 4.31)
641
- *
642
- * @param string $propertyName
643
- * @return mixed $version
644
- */
645
- function version($propertyName, $type = 'text'){
646
-
647
- if(empty($propertyName)){ return false; }
648
- if( !in_array($type, array('text', 'float')) ){ $type = 'text'; }
649
-
650
- $properties = $this->getProperties();
651
-
652
- // Check if the property exists in the properties array.
653
- if( array_key_exists($propertyName, $properties) ){
654
-
655
- // Prepare the pattern to be matched.
656
- // Make sure we always deal with an array (string is converted).
657
- $properties[$propertyName] = (array)$properties[$propertyName];
658
-
659
- foreach($properties[$propertyName] as $propertyMatchString){
660
-
661
- $propertyPattern = str_replace('[VER]', self::VER, $propertyMatchString);
662
-
663
- // Escape the special character which is the delimiter.
664
- $propertyPattern = str_replace('/', '\/', $propertyPattern);
665
-
666
- // Identify and extract the version.
667
- preg_match('/'.$propertyPattern.'/is', $this->userAgent, $match);
668
-
669
- if(!empty($match[1])){
670
- $version = ( $type == 'float' ? $this->prepareVersionNo($match[1]) : $match[1] );
671
- return $version;
672
- }
673
-
674
- }
675
-
676
- }
677
-
678
- return false;
679
-
680
- }
681
-
682
- function mobileGrade(){
683
-
684
- $isMobile = $this->isMobile();
685
-
686
- if(
687
- // Apple iOS 3.2-5.1 - Tested on the original iPad (4.3 / 5.0), iPad 2 (4.3), iPad 3 (5.1), original iPhone (3.1), iPhone 3 (3.2), 3GS (4.3), 4 (4.3 / 5.0), and 4S (5.1)
688
- $this->version('iPad')>=4.3 ||
689
- $this->version('iPhone')>=3.1 ||
690
- $this->version('iPod')>=3.1 ||
691
-
692
- // Android 2.1-2.3 - Tested on the HTC Incredible (2.2), original Droid (2.2), HTC Aria (2.1), Google Nexus S (2.3). Functional on 1.5 & 1.6 but performance may be sluggish, tested on Google G1 (1.5)
693
- // Android 3.1 (Honeycomb) - Tested on the Samsung Galaxy Tab 10.1 and Motorola XOOM
694
- // Android 4.0 (ICS) - Tested on a Galaxy Nexus. Note: transition performance can be poor on upgraded devices
695
- // Android 4.1 (Jelly Bean) - Tested on a Galaxy Nexus and Galaxy 7
696
- ( $this->version('Android')>2.1 && $this->is('Webkit') ) ||
697
-
698
- // Windows Phone 7-7.5 - Tested on the HTC Surround (7.0) HTC Trophy (7.5), LG-E900 (7.5), Nokia Lumia 800
699
- $this->version('Windows Phone OS')>=7.0 ||
700
-
701
- // Blackberry 7 - Tested on BlackBerry® Torch 9810
702
- // Blackberry 6.0 - Tested on the Torch 9800 and Style 9670
703
- $this->version('BlackBerry')>=6.0 ||
704
- // Blackberry Playbook (1.0-2.0) - Tested on PlayBook
705
- $this->match('Playbook.*Tablet') ||
706
-
707
- // Palm WebOS (1.4-2.0) - Tested on the Palm Pixi (1.4), Pre (1.4), Pre 2 (2.0)
708
- ( $this->version('webOS')>=1.4 && $this->match('Palm|Pre|Pixi') ) ||
709
- // Palm WebOS 3.0 - Tested on HP TouchPad
710
- $this->match('hp.*TouchPad') ||
711
-
712
- // Firefox Mobile (12 Beta) - Tested on Android 2.3 device
713
- ( $this->is('Firefox') && $this->version('Firefox')>=12 ) ||
714
-
715
- // Chrome for Android - Tested on Android 4.0, 4.1 device
716
- ( $this->is('Chrome') && $this->is('AndroidOS') && $this->version('Android')>=4.0 ) ||
717
-
718
- // Skyfire 4.1 - Tested on Android 2.3 device
719
- ( $this->is('Skyfire') && $this->version('Skyfire')>=4.1 && $this->is('AndroidOS') && $this->version('Android')>=2.3 ) ||
720
-
721
- // Opera Mobile 11.5-12: Tested on Android 2.3
722
- ( $this->is('Opera') && $this->version('Opera Mobi')>11 && $this->is('AndroidOS') ) ||
723
-
724
- // Meego 1.2 - Tested on Nokia 950 and N9
725
- $this->is('MeeGoOS') ||
726
-
727
- // Tizen (pre-release) - Tested on early hardware
728
- $this->is('Tizen') ||
729
-
730
- // Samsung Bada 2.0 - Tested on a Samsung Wave 3, Dolphin browser
731
- // @todo: more tests here!
732
- $this->is('Dolfin') && $this->version('Bada')>=2.0 ||
733
-
734
- // UC Browser - Tested on Android 2.3 device
735
- ( ($this->is('UC Browser') || $this->is('Dolfin')) && $this->version('Android')>=2.3 ) ||
736
-
737
- // Kindle 3 and Fire - Tested on the built-in WebKit browser for each
738
- ( $this->match('Kindle Fire') ||
739
- $this->is('Kindle') && $this->version('Kindle')>=3.0 ) ||
740
-
741
- // Nook Color 1.4.1 - Tested on original Nook Color, not Nook Tablet
742
- $this->is('AndroidOS') && $this->is('NookTablet') ||
743
-
744
- // Chrome Desktop 11-21 - Tested on OS X 10.7 and Windows 7
745
- $this->version('Chrome')>=11 && !$isMobile ||
746
-
747
- // Safari Desktop 4-5 - Tested on OS X 10.7 and Windows 7
748
- $this->version('Safari')>=5.0 && !$isMobile ||
749
-
750
- // Firefox Desktop 4-13 - Tested on OS X 10.7 and Windows 7
751
- $this->version('Firefox')>=4.0 && !$isMobile ||
752
-
753
- // Internet Explorer 7-9 - Tested on Windows XP, Vista and 7
754
- $this->version('MSIE')>=7.0 && !$isMobile ||
755
-
756
- // Opera Desktop 10-12 - Tested on OS X 10.7 and Windows 7
757
- // @reference: http://my.opera.com/community/openweb/idopera/
758
- $this->version('Opera')>=10 && !$isMobile
759
-
760
-
761
- ){
762
- return 'A';
763
- }
764
-
765
- if(
766
- // Blackberry 5.0: Tested on the Storm 2 9550, Bold 9770
767
- $this->version('BlackBerry')>=5 && $this->version('BlackBerry')<6 ||
768
-
769
- //Opera Mini (5.0-6.5) - Tested on iOS 3.2/4.3 and Android 2.3
770
- ( $this->version('Opera Mini')>=5.0 && $this->version('Opera Mini')<=6.5 &&
771
- ($this->version('Android')>=2.3 || $this->is('iOS')) ) ||
772
-
773
- // Nokia Symbian^3 - Tested on Nokia N8 (Symbian^3), C7 (Symbian^3), also works on N97 (Symbian^1)
774
- $this->match('NokiaN8|NokiaC7|N97.*Series60|Symbian/3') ||
775
-
776
- // @todo: report this (tested on Nokia N71)
777
- $this->version('Opera Mobi')>=11 && $this->is('SymbianOS')
778
-
779
- ){
780
- return 'B';
781
- }
782
-
783
- if(
784
- // Blackberry 4.x - Tested on the Curve 8330
785
- $this->version('BlackBerry')<5.0 ||
786
- // Windows Mobile - Tested on the HTC Leo (WinMo 5.2)
787
- $this->match('MSIEMobile|Windows CE.*Mobile') || $this->version('Windows Mobile')<=5.2
788
-
789
-
790
- ){
791
-
792
- return 'C';
793
-
794
- }
795
-
796
- // All older smartphone platforms and featurephones - Any device that doesn't support media queries will receive the basic, C grade experience
797
- return 'C';
798
-
799
-
800
- }
801
-
802
-
803
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Backend/JmSlideshow/CheckInputCategory.php DELETED
@@ -1,28 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # $JA#PRODUCT_NAME$ - Version $JA#VERSION$ - Licence Owner $JA#OWNER$
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideShow_Model_System_Config_Backend_JmSlideShow_checkInputCategory extends Mage_Core_Model_Config_Data
14
- {
15
- protected function _beforeSave(){
16
- $value = trim($this->getValue());
17
-
18
- if ($value && !eregi('^([1-9]+)+([,]?([0-9]+))*$', $value)) {
19
-
20
- throw new Exception(Mage::helper('joomlart_jmslideshow')->__('Categories ID: Format is incorrect.'));
21
- }
22
-
23
- return $value;
24
-
25
- }
26
-
27
-
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Backend/JmSlideshow/CheckQty.php DELETED
@@ -1,24 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideshow_Model_System_Config_Backend_JmSlideshow_checkQty extends Mage_Core_Model_Config_Data
14
- {
15
-
16
- protected function _beforeSave(){
17
- $value = $this->getValue();
18
- if ((!is_numeric($value) && !empty($value)) || $value < 0) {
19
- throw new Exception(Mage::helper('joomlart_jmslideshow')->__('Qty of products must be numeric.'));
20
- }
21
- return $this;
22
- }
23
-
24
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Backend/JmSlideshow/Checkvalue.php DELETED
@@ -1,23 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
- class JoomlArt_JmSlideshow_Model_System_Config_Backend_JmSlideshow_Checkvalue extends Mage_Core_Model_Config_Data
13
- {
14
-
15
- protected function _beforeSave(){
16
- $value=$this->getValue();
17
- if ((!is_numeric($value) && !empty($value)) || $value < 0) {
18
- throw new Exception(Mage::helper('joomlart_jmslideshow')->__($this->getField_config()->label . ': Value must be numeric.'));
19
- }
20
- return $this;
21
- }
22
-
23
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListAnimationType.php DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideshow_Model_System_Config_Source_ListAnimationType
14
- {
15
- public function toOptionArray()
16
- {
17
- return array(
18
- array('value'=>'fade', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Fade')),
19
- array('value'=>'hrzslide', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Horizontal Slide')),
20
- array('value'=>'vrtslide', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Vertical Slide')),
21
- array('value'=>'fullslide', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Full Slide')),
22
- array('value'=>'slice', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Random Slices')),
23
- array('value'=>'hrzaccordion', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Horizontal Accordion')),
24
- array('value'=>'vrtaccordion', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Vertical Accordion'))
25
- );
26
- }
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListDirection.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideshow_Model_System_Config_Source_ListDirection
14
- {
15
- public function toOptionArray()
16
- {
17
- return array(
18
- array('value'=>'horizontal', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Horizontal')),
19
- array('value'=>'vertical', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Vertical'))
20
- );
21
- }
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListEffect.php DELETED
@@ -1,31 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideshow_Model_System_Config_Source_ListEffect
14
- {
15
- public function toOptionArray()
16
- {
17
- return array(
18
- array('value'=>'linear', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Linear')),
19
- array('value'=>'quadOut', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Medium to Slow')),
20
- array('value'=>'cubicOut', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Fast to Slow')),
21
- array('value'=>'quartOut', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Very Fast to Slow')),
22
- array('value'=>'quintOut', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Uber Fast to Slow')),
23
- array('value'=>'expoOut', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Exponential Speed')),
24
- array('value'=>'elasticOut', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Elastic')),
25
- array('value'=>'backIn', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Back In')),
26
- array('value'=>'backOut', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Back Out')),
27
- array('value'=>'backInOut', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Back In and Out')),
28
- array('value'=>'bounceOut', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Bouncing')),
29
- );
30
- }
31
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListEventTriggerType.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideshow_Model_System_Config_Source_ListEventTriggerType
14
- {
15
- public function toOptionArray()
16
- {
17
- return array(
18
- array('value'=>'click', 'label'=>Mage::helper('joomlart_jmslideshow')->__('On Click')),
19
- array('value'=>'mouseenter', 'label'=>Mage::helper('joomlart_jmslideshow')->__('On Mouse Enter'))
20
- );
21
- }
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListMaskAnimation.php DELETED
@@ -1,26 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideshow_Model_System_Config_Source_ListMaskAnimation
14
- {
15
- public function toOptionArray()
16
- {
17
- return array(
18
- array('value'=>'', 'label'=>Mage::helper('joomlart_jmslideshow')->__('None')),
19
- array('value'=>'fade', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Fade')),
20
- array('value'=>'vrtslide', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Vertical Slide')),
21
- array('value'=>'hrzslide', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Horizontal Slide')),
22
- array('value'=>'vrtslidefade', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Vertical Slide & Fade')),
23
- array('value'=>'hrzslidefade', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Horizontal Slide & Fade'))
24
- );
25
- }
26
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListSource.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideshow_Model_System_Config_Source_ListSource
14
- {
15
- public function toOptionArray()
16
- {
17
- return array(
18
- array('value'=>'images', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Images Folder')),
19
- array('value'=>'products', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Products List')),
20
- );
21
- }
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListThumbnailMode.php DELETED
@@ -1,23 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideshow_Model_System_Config_Source_ListThumbnailMode
14
- {
15
- public function toOptionArray()
16
- {
17
- return array(
18
- array('value'=>'none', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Using the source image')),
19
- array('value'=>'resize', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Using Image Resizing')),
20
- array('value'=>'crop', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Using Image Croping'))
21
- );
22
- }
23
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListThumbnailPosition.php DELETED
@@ -1,28 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideshow_Model_System_Config_Source_ListThumbnailPosition
14
- {
15
- public function toOptionArray()
16
- {
17
- return array(
18
- array('value'=>'top', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Top')),
19
- array('value'=>'right', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Right')),
20
- array('value'=>'bottom', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Bottom')),
21
- array('value'=>'left', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Left')),
22
- array('value'=>'tl', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Top Left')),
23
- array('value'=>'tr', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Top Right')),
24
- array('value'=>'bl', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Bottom Left')),
25
- array('value'=>'br', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Bottom Right'))
26
- );
27
- }
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListThumbnailType.php DELETED
@@ -1,23 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideshow_Model_System_Config_Source_ListThumbnailType
14
- {
15
- public function toOptionArray()
16
- {
17
- return array(
18
- array('value'=>'', 'label'=>Mage::helper('joomlart_jmslideshow')->__('No')),
19
- array('value'=>'number', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Number')),
20
- array('value'=>'thumbs', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Thumbnails'))
21
- );
22
- }
23
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListType.php DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideshow_Model_System_Config_Source_ListType
14
- {
15
- public function toOptionArray()
16
- {
17
- return array(
18
- array('value'=>'', 'label'=>Mage::helper('joomlart_jmslideshow')->__('-- Please select --')),
19
- array('value'=>'latest', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Latest')),
20
- array('value'=>'best_buy', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Best Buy')),
21
- array('value'=>'most_viewed', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Most Viewed')),
22
- array('value'=>'most_reviewed', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Most Reviewed')),
23
- array('value'=>'top_rated', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Top Rated')),
24
- array('value'=>'attribute', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Featured Product'))
25
- );
26
- }
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListTypeShowDesc.php DELETED
@@ -1,23 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideshow_Model_System_Config_Source_ListTypeShowDesc
14
- {
15
- public function toOptionArray()
16
- {
17
- return array(
18
- array('value'=>'', 'label'=>Mage::helper('joomlart_jmslideshow')->__('No Description')),
19
- array('value'=>'desc', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Description only')),
20
- array('value'=>'desc-readmore', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Description with Readmore'))
21
- );
22
- }
23
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/Model/System/Config/Source/ListTypeShowDescwhen.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- /*------------------------------------------------------------------------
3
- # JM Fabian - Version 1.0 - Licence Owner JA155256
4
- # ------------------------------------------------------------------------
5
- # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
6
- # @license - Copyrighted Commercial Software
7
- # Author: J.O.O.M Solutions Co., Ltd
8
- # Websites: http://www.joomlart.com - http://www.joomlancers.com
9
- # This file may not be redistributed in whole or significant part.
10
- -------------------------------------------------------------------------*/
11
-
12
-
13
- class JoomlArt_JmSlideshow_Model_System_Config_Source_ListTypeShowDescwhen
14
- {
15
- public function toOptionArray()
16
- {
17
- return array(
18
- array('value'=>'always', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Always')),
19
- array('value'=>'mouseenter', 'label'=>Mage::helper('joomlart_jmslideshow')->__('Mouse Over Image'))
20
- );
21
- }
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/etc/adminhtml.xml DELETED
@@ -1,31 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <acl>
4
- <resources>
5
- <admin>
6
- <children>
7
- <system>
8
- <children>
9
- <config>
10
- <children>
11
- <joomlart_jmslideshow>
12
- <title>JM Products List</title>
13
- </joomlart_jmslideshow>
14
- </children>
15
- </config>
16
- </children>
17
- </system>
18
- </children>
19
- </admin>
20
- </resources>
21
- </acl>
22
- <translate>
23
- <modules>
24
- <JoomlArt_JmSlideshow>
25
- <files>
26
- <default>JoomlArt_JmSlideshow.csv</default>
27
- </files>
28
- </JoomlArt_JmSlideshow>
29
- </modules>
30
- </translate>
31
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/etc/config.xml DELETED
@@ -1,147 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <JoomlArt_JmSlideshow>
5
- <version>1.1.0</version>
6
- </JoomlArt_JmSlideshow>
7
- </modules>
8
- <frontend>
9
- <translate>
10
- <modules>
11
- <JoomlArt_JmSlideshow>
12
- <files>
13
- <default>JoomlArt_JmSlideshow.csv</default>
14
- </files>
15
- </JoomlArt_JmSlideshow>
16
- </modules>
17
- </translate>
18
- <layout>
19
- <updates>
20
- <jmslideshow>
21
- <file>jmslideshow.xml</file>
22
- </jmslideshow>
23
- </updates>
24
- </layout>
25
- </frontend>
26
- <global>
27
- <blocks>
28
- <joomlart_jmslideshow>
29
- <class>JoomlArt_JmSlideshow_Block</class>
30
- </joomlart_jmslideshow>
31
- </blocks>
32
- <models>
33
- <joomlart_jmslideshow>
34
- <class>JoomlArt_JmSlideshow_Model</class>
35
- </joomlart_jmslideshow>
36
- </models>
37
- <helpers>
38
- <joomlart_jmslideshow>
39
- <class>JoomlArt_JmSlideshow_Helper</class>
40
- </joomlart_jmslideshow>
41
- </helpers>
42
- </global>
43
-
44
- <adminhtml>
45
- <menu>
46
- <joomlart>
47
- <title>Joomlart</title>
48
- <sort_order>100</sort_order>
49
- <children>
50
- <jmslideshow>
51
- <title>JM SlideShow</title>
52
- <sort_order>3</sort_order>
53
- <action>adminhtml/system_config/edit/section/joomlart_jmslideshow</action>
54
- </jmslideshow>
55
- </children>
56
- </joomlart>
57
- </menu>
58
- <acl>
59
- <resources>
60
- <admin>
61
- <children>
62
- <system>
63
- <children>
64
- <config>
65
- <children>
66
- <joomlart_jmslideshow>
67
- <title>JM Products List</title>
68
- </joomlart_jmslideshow>
69
- </children>
70
- </config>
71
- </children>
72
- </system>
73
- </children>
74
- </admin>
75
- </resources>
76
- </acl>
77
- <translate>
78
- <modules>
79
- <JoomlArt_JmSlideshow>
80
- <files>
81
- <default>JoomlArt_JmSlideshow.csv</default>
82
- </files>
83
- </JoomlArt_JmSlideshow>
84
- </modules>
85
- </translate>
86
- </adminhtml>
87
-
88
- <default>
89
- <joomlart_jmslideshow>
90
- <joomlart_jmslideshow>
91
- <show>1</show>
92
- <title>JM Slideshow</title>
93
- <loadjquery>0</loadjquery>
94
-
95
- <source>images</source>
96
- <sourceProductsMode>latest</sourceProductsMode>
97
- <catsid></catsid>
98
- <quanlity>10</quanlity>
99
- <folder></folder>
100
-
101
- <animation>fade</animation>
102
-
103
- <mainWidth>360</mainWidth>
104
- <mainHeight>240</mainHeight>
105
-
106
- <duration>500</duration>
107
-
108
- <autoPlay>1</autoPlay>
109
- <repeat>1</repeat>
110
- <interval>5000</interval>
111
-
112
- <thumbType>false</thumbType>
113
- <thumbImgMode>crop</thumbImgMode>
114
- <thumbImgWidth>100</thumbImgWidth>
115
- <thumbImgHeight>100</thumbImgHeight>
116
- <useRatio>1</useRatio>
117
- <thumbItems>4</thumbItems>
118
- <thumbWidth>60</thumbWidth>
119
- <thumbHeight>60</thumbHeight>
120
- <thumbSpaces>3:3:3:3</thumbSpaces>
121
- <thumbDirection>horizontal</thumbDirection>
122
- <thumbPosition>br</thumbPosition>
123
- <thumbTrigger>click</thumbTrigger>
124
-
125
- <controlBox>0</controlBox>
126
- <controlPosition>tr</controlPosition>
127
-
128
- <navButtons>0</navButtons>
129
-
130
- <showDesc>desc</showDesc>
131
- <descTrigger>always</descTrigger>
132
- <maskWidth>300</maskWidth>
133
- <maskHeight>200</maskHeight>
134
- <maskAnim>fade</maskAnim>
135
- <maskOpacity>0.8</maskOpacity>
136
- <maskPosition>bl</maskPosition>
137
- <description>[desc img="sl-1.jpg" url="#"] <h3>EndWar Exclusive Theater of War Hands-On </h3> <p>Augue neque rutrum elit vitae nec in pretium et faucibus In. Felis non sit Phasellus hac dictumst Pellentesque Proin eu leo Phasellus. Magna eros consequat eu eu dui vel consequat ipsum dolor ipsum. Tempus quis id massa nisl ac.</p> [/desc]</description>
138
- <readMoreText>Read more</readMoreText>
139
-
140
- <showProgress>0</showProgress>
141
-
142
- <urls></urls>
143
- <targets></targets>
144
- </joomlart_jmslideshow>
145
- </joomlart_jmslideshow>
146
- </default>
147
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/JoomlArt/JmSlideshow/etc/system.xml DELETED
@@ -1,661 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <tabs>
4
- <joomlart translate="label" module="joomlart_jmslideshow">
5
- <label>JoomlArt</label>
6
- <sort_order>210</sort_order>
7
- </joomlart>
8
- </tabs>
9
- <sections>
10
- <joomlart_jmslideshow>
11
- <label>JM Slideshow</label>
12
- <tab>joomlart</tab>
13
- <frontend_type>text</frontend_type>
14
- <sort_order>10</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
- <joomlart_jmslideshow translate="label">
20
- <label>JM Slideshow: Config General</label>
21
- <frontend_type>text</frontend_type>
22
- <sort_order>2000</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
- <show translate="label" module="core">
28
- <label>Enabled</label>
29
- <sort_order>1</sort_order>
30
- <frontend_type>select</frontend_type>
31
- <source_model>adminhtml/system_config_source_yesno</source_model>
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
- </show>
36
- <title translate="label">
37
- <label>Module Title</label>
38
- <frontend_type>text</frontend_type>
39
- <sort_order>2</sort_order>
40
- <comment>Empty for hide</comment>
41
- <show_in_default>1</show_in_default>
42
- <show_in_website>1</show_in_website>
43
- <show_in_store>1</show_in_store>
44
- </title>
45
- <loadjquery translate="label">
46
- <label>Load jQuery</label>
47
- <sort_order>3</sort_order>
48
- <frontend_type>select</frontend_type>
49
- <source_model>adminhtml/system_config_source_yesno</source_model>
50
- <show_in_default>1</show_in_default>
51
- <show_in_website>1</show_in_website>
52
- <show_in_store>1</show_in_store>
53
- </loadjquery>
54
-
55
- <source translate="label">
56
- <label>From Source</label>
57
- <frontend_type>select</frontend_type>
58
- <source_model>joomlart_jmslideshow/system_config_source_listSource</source_model>
59
- <sort_order>4</sort_order>
60
- <comment>Choose Source to render image and content in the slideshow</comment>
61
- <show_in_default>1</show_in_default>
62
- <show_in_website>1</show_in_website>
63
- <show_in_store>1</show_in_store>
64
- </source>
65
- <sourceProductsMode translate="label">
66
- <label>Show Products From: </label>
67
- <frontend_type>select</frontend_type>
68
- <source_model>joomlart_jmslideshow/system_config_source_listType</source_model>
69
- <comment>If you choose to show products from "Featured Product", please add new attribute with attribute code "featured" (if not available), then add it to attribute sets.</comment>
70
- <depends>
71
- <source>products</source>
72
- </depends>
73
- <sort_order>5</sort_order>
74
- <show_in_default>1</show_in_default>
75
- <show_in_website>1</show_in_website>
76
- <show_in_store>1</show_in_store>
77
- </sourceProductsMode>
78
- <catsid translate="label">
79
- <label>Categories ID: </label>
80
- <frontend_type>text</frontend_type>
81
- <backend_model>joomlart_jmslideshow/system_config_backend_jmSlideshow_checkInputCategory</backend_model>
82
- <sort_order>6</sort_order>
83
- <comment>Eg: 22,23. Empty for all categories.</comment>
84
- <depends>
85
- <source>products</source>
86
- </depends>
87
- <show_in_default>1</show_in_default>
88
- <show_in_website>1</show_in_website>
89
- <show_in_store>1</show_in_store>
90
- </catsid>
91
- <quanlity translate="label">
92
- <label># Qty of products</label>
93
- <sort_order>7</sort_order>
94
- <frontend_type>text</frontend_type>
95
- <backend_model>joomlart_jmslideshow/system_config_backend_jmSlideshow_checkQty</backend_model>
96
- <comment>0 for show all</comment>
97
- <depends>
98
- <source>products</source>
99
- </depends>
100
- <show_in_default>1</show_in_default>
101
- <show_in_website>1</show_in_website>
102
- <show_in_store>1</show_in_store>
103
- </quanlity>
104
- <folder translate="label">
105
- <label>Images Folder </label>
106
- <frontend_type>text</frontend_type>
107
- <sort_order>8</sort_order>
108
- <comment>Path to images folder. Eg: media/jmslideshow</comment>
109
- <depends>
110
- <source>images</source>
111
- </depends>
112
- <show_in_default>1</show_in_default>
113
- <show_in_website>1</show_in_website>
114
- <show_in_store>1</show_in_store>
115
- </folder>
116
-
117
- <animation translate="label">
118
- <label>Animation Type</label>
119
- <frontend_type>select</frontend_type>
120
- <source_model>joomlart_jmslideshow/system_config_source_listAnimationType</source_model>
121
- <sort_order>10</sort_order>
122
- <comment>Animation effect you want to display</comment>
123
- <show_in_default>1</show_in_default>
124
- <show_in_website>1</show_in_website>
125
- <show_in_store>1</show_in_store>
126
- </animation>
127
-
128
- <mainWidth translate="label">
129
- <label>Main Item width</label>
130
- <frontend_type>text</frontend_type>
131
- <sort_order>11</sort_order>
132
- <backend_model>joomlart_jmslideshow/system_config_backend_jmSlideshow_checkvalue</backend_model>
133
- <show_in_default>1</show_in_default>
134
- <show_in_website>1</show_in_website>
135
- <show_in_store>1</show_in_store>
136
- </mainWidth>
137
-
138
- <mainHeight translate="label">
139
- <label>Main Item height</label>
140
- <frontend_type>text</frontend_type>
141
- <sort_order>12</sort_order>
142
- <backend_model>joomlart_jmslideshow/system_config_backend_jmSlideshow_checkvalue</backend_model>
143
- <show_in_default>1</show_in_default>
144
- <show_in_website>1</show_in_website>
145
- <show_in_store>1</show_in_store>
146
- </mainHeight>
147
-
148
- <mainWidthtablet translate="label">
149
- <label>Main Item width (tablet)</label>
150
- <frontend_type>text</frontend_type>
151
- <sort_order>13</sort_order>
152
- <backend_model>joomlart_jmslideshow/system_config_backend_jmSlideshow_checkvalue</backend_model>
153
- <show_in_default>1</show_in_default>
154
- <show_in_website>1</show_in_website>
155
- <show_in_store>1</show_in_store>
156
- </mainWidthtablet>
157
- <mainWidthtabletportrait translate="label">
158
- <label>Main Item width (tablet portrait)</label>
159
- <frontend_type>text</frontend_type>
160
- <sort_order>14</sort_order>
161
- <backend_model>joomlart_jmslideshow/system_config_backend_jmSlideshow_checkvalue</backend_model>
162
- <show_in_default>1</show_in_default>
163
- <show_in_website>1</show_in_website>
164
- <show_in_store>1</show_in_store>
165
- </mainWidthtabletportrait>
166
- <mainWidthmobile translate="label">
167
- <label>Main Item width (mobile)</label>
168
- <frontend_type>text</frontend_type>
169
- <sort_order>15</sort_order>
170
- <backend_model>joomlart_jmslideshow/system_config_backend_jmSlideshow_checkvalue</backend_model>
171
- <show_in_default>1</show_in_default>
172
- <show_in_website>1</show_in_website>
173
- <show_in_store>1</show_in_store>
174
- </mainWidthmobile>
175
- <mainWidthmobileportrait translate="label">
176
- <label>Main Item width (mobile portrait)</label>
177
- <frontend_type>text</frontend_type>
178
- <sort_order>16</sort_order>
179
- <backend_model>joomlart_jmslideshow/system_config_backend_jmSlideshow_checkvalue</backend_model>
180
- <show_in_default>1</show_in_default>
181
- <show_in_website>1</show_in_website>
182
- <show_in_store>1</show_in_store>
183
- </mainWidthmobileportrait>
184
-
185
-
186
- <duration translate="label">
187
- <label>Animation Duration</label>
188
- <frontend_type>text</frontend_type>
189
- <sort_order>20</sort_order>
190
- <comment>Main image animation duration (ms). Enter number.</comment>
191
- <backend_model>joomlart_jmslideshow/system_config_backend_jmSlideshow_checkvalue</backend_model>
192
- <show_in_default>1</show_in_default>
193
- <show_in_website>1</show_in_website>
194
- <show_in_store>1</show_in_store>
195
- </duration>
196
-
197
- <autoPlay translate="label">
198
- <label>Auto play</label>
199
- <frontend_type>select</frontend_type>
200
- <source_model>adminhtml/system_config_source_yesno</source_model>
201
- <sort_order>21</sort_order>
202
- <comment>If yes, the slideshow will auto switch based on time interval?</comment>
203
- <depends>
204
- <animation separator=",">
205
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
206
- </animation>
207
- </depends>
208
- <show_in_default>1</show_in_default>
209
- <show_in_website>1</show_in_website>
210
- <show_in_store>1</show_in_store>
211
- </autoPlay>
212
- <repeat translate="label" module="core">
213
- <label>Repeat</label>
214
- <sort_order>22</sort_order>
215
- <frontend_type>select</frontend_type>
216
- <source_model>adminhtml/system_config_source_yesno</source_model>
217
- <depends>
218
- <animation separator=",">
219
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
220
- </animation>
221
- <autoPlay>1</autoPlay>
222
- </depends>
223
- <show_in_default>1</show_in_default>
224
- <show_in_website>1</show_in_website>
225
- <show_in_store>1</show_in_store>
226
- </repeat>
227
- <interval translate="label">
228
- <label>Interval</label>
229
- <frontend_type>text</frontend_type>
230
- <sort_order>23</sort_order>
231
- <comment>Time (in seconds) for next play/run</comment>
232
- <backend_model>joomlart_jmslideshow/system_config_backend_jmSlideshow_checkvalue</backend_model>
233
- <depends>
234
- <animation separator=",">
235
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
236
- </animation>
237
- <autoPlay>1</autoPlay>
238
- </depends>
239
- <show_in_default>1</show_in_default>
240
- <show_in_website>1</show_in_website>
241
- <show_in_store>1</show_in_store>
242
- </interval>
243
-
244
- <thumbType translate="label">
245
- <label>Thumbnail Type</label>
246
- <frontend_type>select</frontend_type>
247
- <source_model>joomlart_jmslideshow/system_config_source_listThumbnailType</source_model>
248
- <depends>
249
- <animation separator=",">
250
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
251
- </animation>
252
- </depends>
253
- <sort_order>30</sort_order>
254
- <comment>Choose navigation type?</comment>
255
- <show_in_default>1</show_in_default>
256
- <show_in_website>1</show_in_website>
257
- <show_in_store>1</show_in_store>
258
- </thumbType>
259
- <thumbImgMode translate="label">
260
- <label>Thumbnail Image Mode</label>
261
- <frontend_type>select</frontend_type>
262
- <source_model>joomlart_jmslideshow/system_config_source_listThumbnailMode</source_model>
263
- <sort_order>31</sort_order>
264
- <comment>If you like use image thumbnail which render from the image source, then you choose ''Using Image Croping'' or ''Using Image Resizing''</comment>
265
- <depends>
266
- <animation separator=",">
267
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
268
- </animation>
269
- <thumbType>thumbs</thumbType>
270
- </depends>
271
- <show_in_default>1</show_in_default>
272
- <show_in_website>1</show_in_website>
273
- <show_in_store>1</show_in_store>
274
- </thumbImgMode>
275
- <useRatio translate="label">
276
- <label>Resize Thumbnail with the ratio</label>
277
- <frontend_type>select</frontend_type>
278
- <source_model>adminhtml/system_config_source_yesno</source_model>
279
- <sort_order>32</sort_order>
280
- <comment>Only for the ''Using Image Resizing'' option choosed, If you choose ''yes'', then the extension will render a thumbnail with the ratio about dimension of the image source</comment>
281
- <depends>
282
- <animation separator=",">
283
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
284
- </animation>
285
- <thumbnailMode>resize</thumbnailMode>
286
- </depends>
287
- <show_in_default>1</show_in_default>
288
- <show_in_website>1</show_in_website>
289
- <show_in_store>1</show_in_store>
290
- </useRatio>
291
- <thumbImgWidth translate="label">
292
- <label>Thumbnail Image Width</label>
293
- <frontend_type>text</frontend_type>
294
- <sort_order>33</sort_order>
295
- <comment>Thumbnail Width (If Navigation is Thumbnails)</comment>
296
- <backend_model>joomlart_jmslideshow/system_config_backend_jmSlideshow_checkvalue</backend_model>
297
- <depends>
298
- <animation separator=",">
299
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
300
- </animation>
301
- <thumbType>thumbs</thumbType>
302
- </depends>
303
- <show_in_default>1</show_in_default>
304
- <show_in_website>1</show_in_website>
305
- <show_in_store>1</show_in_store>
306
- </thumbImgWidth>
307
- <thumbImgHeight translate="label">
308
- <label>Thumbnail Image Height</label>
309
- <frontend_type>text</frontend_type>
310
- <sort_order>34</sort_order>
311
- <comment>Thumbnail Height (If Navigation is Thumbnails)</comment>
312
- <backend_model>joomlart_jmslideshow/system_config_backend_jmSlideshow_checkvalue</backend_model>
313
- <depends>
314
- <animation separator=",">
315
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
316
- </animation>
317
- <thumbType>thumbs</thumbType>
318
- </depends>
319
- <show_in_default>1</show_in_default>
320
- <show_in_website>1</show_in_website>
321
- <show_in_store>1</show_in_store>
322
- </thumbImgHeight>
323
- <thumbItems translate="label">
324
- <label>Number of thumbnails</label>
325
- <frontend_type>text</frontend_type>
326
- <sort_order>35</sort_order>
327
- <comment>Number of displayed thumbnail items. Enter number</comment>
328
- <backend_model>joomlart_jmslideshow/system_config_backend_jmSlideshow_checkvalue</backend_model>
329
- <depends>
330
- <animation separator=",">
331
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
332
- </animation>
333
- <thumbType separator=",">
334
- <value>number,thumbs</value>
335
- </thumbType>
336
- </depends>
337
- <show_in_default>1</show_in_default>
338
- <show_in_website>1</show_in_website>
339
- <show_in_store>1</show_in_store>
340
- </thumbItems>
341
- <thumbWidth translate="label">
342
- <label>Width of a Navigation Item</label>
343
- <sort_order>36</sort_order>
344
- <frontend_type>text</frontend_type>
345
- <comment>Set width for a thumbnail item in the list</comment>
346
- <depends>
347
- <animation separator=",">
348
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
349
- </animation>
350
- <thumbType separator=",">
351
- <value>number,thumbs</value>
352
- </thumbType>
353
- </depends>
354
- <show_in_default>1</show_in_default>
355
- <show_in_website>1</show_in_website>
356
- <show_in_store>1</show_in_store>
357
- </thumbWidth>
358
- <thumbHeight translate="label">
359
- <label>Height of a Navigation Item </label>
360
- <sort_order>37</sort_order>
361
- <frontend_type>text</frontend_type>
362
- <comment>Set Height for a thumbnail item in the list</comment>
363
- <depends>
364
- <animation separator=",">
365
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
366
- </animation>
367
- <thumbType separator=",">
368
- <value>number,thumbs</value>
369
- </thumbType>
370
- </depends>
371
- <show_in_default>1</show_in_default>
372
- <show_in_website>1</show_in_website>
373
- <show_in_store>1</show_in_store>
374
- </thumbHeight>
375
- <thumbSpaces translate="label">
376
- <label>Thumbnail Spacing</label>
377
- <frontend_type>text</frontend_type>
378
- <sort_order>38</sort_order>
379
- <comment>Space between each item and the border in format top:right:bottom:left</comment>
380
- <depends>
381
- <animation separator=",">
382
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
383
- </animation>
384
- <thumbType separator=",">
385
- <value>number,thumbs</value>
386
- </thumbType>
387
- </depends>
388
- <show_in_default>1</show_in_default>
389
- <show_in_website>1</show_in_website>
390
- <show_in_store>1</show_in_store>
391
- </thumbSpaces>
392
- <thumbDirection translate="label">
393
- <label>Thumbnail direction</label>
394
- <frontend_type>select</frontend_type>
395
- <source_model>joomlart_jmslideshow/system_config_source_listDirection</source_model>
396
- <sort_order>39</sort_order>
397
- <comment>Choose navigation direction?</comment>
398
- <depends>
399
- <animation separator=",">
400
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
401
- </animation>
402
- <thumbType separator=",">
403
- <value>number,thumbs</value>
404
- </thumbType>
405
- </depends>
406
- <show_in_default>1</show_in_default>
407
- <show_in_website>1</show_in_website>
408
- <show_in_store>1</show_in_store>
409
- </thumbDirection>
410
- <thumbPosition translate="label">
411
- <label>Thumbnail Position</label>
412
- <frontend_type>select</frontend_type>
413
- <source_model>joomlart_jmslideshow/system_config_source_listThumbnailPosition</source_model>
414
- <sort_order>40</sort_order>
415
- <comment>Choose how the thumbnail block dock on the slideshow</comment>
416
- <depends>
417
- <animation separator=",">
418
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
419
- </animation>
420
- <thumbType separator=",">
421
- <value>number,thumbs</value>
422
- </thumbType>
423
- </depends>
424
- <show_in_default>1</show_in_default>
425
- <show_in_website>1</show_in_website>
426
- <show_in_store>1</show_in_store>
427
- </thumbPosition>
428
- <thumbTrigger translate="label">
429
- <label>Event to trigher a thumbnail</label>
430
- <frontend_type>select</frontend_type>
431
- <source_model>joomlart_jmslideshow/system_config_source_listEventTriggerType</source_model>
432
- <sort_order>41</sort_order>
433
- <comment>How we interact with the thumbnail to trigger the slideshow</comment>
434
- <depends>
435
- <animation separator=",">
436
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
437
- </animation>
438
- <thumbType separator=",">
439
- <value>number,thumbs</value>
440
- </thumbType>
441
- </depends>
442
- <show_in_default>1</show_in_default>
443
- <show_in_website>1</show_in_website>
444
- <show_in_store>1</show_in_store>
445
- </thumbTrigger>
446
-
447
- <controlBox translate="label">
448
- <label>Show Control Box</label>
449
- <frontend_type>select</frontend_type>
450
- <source_model>adminhtml/system_config_source_yesno</source_model>
451
- <depends>
452
- <animation separator=",">
453
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
454
- </animation>
455
- </depends>
456
- <sort_order>50</sort_order>
457
- <comment>Show control button?</comment>
458
- <show_in_default>1</show_in_default>
459
- <show_in_website>1</show_in_website>
460
- <show_in_store>1</show_in_store>
461
- </controlBox>
462
- <controlPosition translate="label">
463
- <label>Control Box Position</label>
464
- <frontend_type>select</frontend_type>
465
- <source_model>joomlart_jmslideshow/system_config_source_listThumbnailPosition</source_model>
466
- <sort_order>51</sort_order>
467
- <comment>Select how the control box dock on its parent</comment>
468
- <depends>
469
- <animation separator=",">
470
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
471
- </animation>
472
- <controlBox>1</controlBox>
473
- </depends>
474
- <show_in_default>1</show_in_default>
475
- <show_in_website>1</show_in_website>
476
- <show_in_store>1</show_in_store>
477
- </controlPosition>
478
-
479
- <navButtons translate="label">
480
- <label>Show navigation buttons</label>
481
- <frontend_type>select</frontend_type>
482
- <source_model>adminhtml/system_config_source_yesno</source_model>
483
- <comment>Show the next/prev navigation buttons</comment>
484
- <depends>
485
- <animation separator=",">
486
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
487
- </animation>
488
- </depends>
489
- <sort_order>60</sort_order>
490
- <comment>Show control button?</comment>
491
- <show_in_default>1</show_in_default>
492
- <show_in_website>1</show_in_website>
493
- <show_in_store>1</show_in_store>
494
- </navButtons>
495
-
496
- <showDesc translate="label">
497
- <label>Show Description</label>
498
- <frontend_type>select</frontend_type>
499
- <source_model>joomlart_jmslideshow/system_config_source_listTypeShowDesc</source_model>
500
- <sort_order>70</sort_order>
501
- <comment>Show/hide description?</comment>
502
- <show_in_default>1</show_in_default>
503
- <show_in_website>1</show_in_website>
504
- <show_in_store>1</show_in_store>
505
- </showDesc>
506
- <descTrigger translate="label">
507
- <label>Show Description when</label>
508
- <frontend_type>select</frontend_type>
509
- <source_model>joomlart_jmslideshow/system_config_source_listTypeShowDescwhen</source_model>
510
- <sort_order>71</sort_order>
511
- <comment>How to show description?</comment>
512
- <depends>
513
- <animation separator=",">
514
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
515
- </animation>
516
- <showDesc separator=",">
517
- <value>desc,desc-readmore</value>
518
- </showDesc>
519
- </depends>
520
- <show_in_default>1</show_in_default>
521
- <show_in_website>1</show_in_website>
522
- <show_in_store>1</show_in_store>
523
- </descTrigger>
524
- <maskWidth translate="label">
525
- <label>Description Width</label>
526
- <sort_order>72</sort_order>
527
- <frontend_type>text</frontend_type>
528
- <comment>Set width of description block</comment>
529
- <depends>
530
- <animation separator=",">
531
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
532
- </animation>
533
- <showDesc separator=",">
534
- <value>desc,desc-readmore</value>
535
- </showDesc>
536
- </depends>
537
- <show_in_default>1</show_in_default>
538
- <show_in_website>1</show_in_website>
539
- <show_in_store>1</show_in_store>
540
- </maskWidth>
541
- <maskHeight translate="label">
542
- <label>Description Height</label>
543
- <sort_order>73</sort_order>
544
- <frontend_type>text</frontend_type>
545
- <comment>Set height of description block</comment>
546
- <depends>
547
- <animation separator=",">
548
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
549
- </animation>
550
- <showDesc separator=",">
551
- <value>desc,desc-readmore</value>
552
- </showDesc>
553
- </depends>
554
- <show_in_default>1</show_in_default>
555
- <show_in_website>1</show_in_website>
556
- <show_in_store>1</show_in_store>
557
- </maskHeight>
558
- <maskAnim translate="label">
559
- <label>Description Animation Type</label>
560
- <frontend_type>select</frontend_type>
561
- <source_model>joomlart_jmslideshow/system_config_source_listMaskAnimation</source_model>
562
- <sort_order>74</sort_order>
563
- <comment>Animation type for the description block</comment>
564
- <depends>
565
- <animation separator=",">
566
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
567
- </animation>
568
- <showDesc separator=",">
569
- <value>desc,desc-readmore</value>
570
- </showDesc>
571
- </depends>
572
- <show_in_default>1</show_in_default>
573
- <show_in_website>1</show_in_website>
574
- <show_in_store>1</show_in_store>
575
- </maskAnim>
576
- <maskOpacity translate="label">
577
- <label>Description background opacity</label>
578
- <frontend_type>text</frontend_type>
579
- <sort_order>75</sort_order>
580
- <comment>Opacity for the description</comment>
581
- <depends>
582
- <animation separator=",">
583
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
584
- </animation>
585
- <showDesc separator=",">
586
- <value>desc,desc-readmore</value>
587
- </showDesc>
588
- </depends>
589
- <show_in_default>1</show_in_default>
590
- <show_in_website>1</show_in_website>
591
- <show_in_store>1</show_in_store>
592
- </maskOpacity>
593
- <maskPosition translate="label">
594
- <label>Description Position</label>
595
- <frontend_type>select</frontend_type>
596
- <source_model>joomlart_jmslideshow/system_config_source_listThumbnailPosition</source_model>
597
- <sort_order>76</sort_order>
598
- <comment>Position of description block, depend of the Description Align value</comment>
599
- <depends>
600
- <animation separator=",">
601
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
602
- </animation>
603
- <showDesc separator=",">
604
- <value>desc,desc-readmore</value>
605
- </showDesc>
606
- </depends>
607
- <show_in_default>1</show_in_default>
608
- <show_in_website>1</show_in_website>
609
- <show_in_store>1</show_in_store>
610
- </maskPosition>
611
- <description translate="label">
612
- <label>Description for each Item</label>
613
- <frontend_type>textarea</frontend_type>
614
- <validate>required-entry</validate>
615
- <cols>50</cols>
616
- <rows>20</rows>
617
- <comment>the description for each item</comment>
618
- <depends>
619
- <showDesc separator=",">
620
- <value>desc,desc-readmore</value>
621
- </showDesc>
622
- </depends>
623
- <sort_order>77</sort_order>
624
- <show_in_default>1</show_in_default>
625
- <show_in_website>1</show_in_website>
626
- <show_in_store>1</show_in_store>
627
- </description>
628
- <readMoreText translate="label">
629
- <label>Readmore Text</label>
630
- <frontend_type>text</frontend_type>
631
- <sort_order>78</sort_order>
632
- <comment>Text to display in Readmore button</comment>
633
- <depends>
634
- <showDesc>desc-readmore</showDesc>
635
- </depends>
636
- <show_in_default>1</show_in_default>
637
- <show_in_website>1</show_in_website>
638
- <show_in_store>1</show_in_store>
639
- </readMoreText>
640
-
641
- <showProgress translate="label">
642
- <label>Progress Bar</label>
643
- <frontend_type>select</frontend_type>
644
- <source_model>adminhtml/system_config_source_yesno</source_model>
645
- <depends>
646
- <animation separator=",">
647
- <value>fade,hrzslide,vrtslide,fullslide,slice</value>
648
- </animation>
649
- </depends>
650
- <sort_order>80</sort_order>
651
- <comment>Show progress bar?</comment>
652
- <show_in_default>1</show_in_default>
653
- <show_in_website>1</show_in_website>
654
- <show_in_store>1</show_in_store>
655
- </showProgress>
656
- </fields>
657
- </joomlart_jmslideshow>
658
- </groups>
659
- </joomlart_jmslideshow>
660
- </sections>
661
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Mage/GoogleAnalytics/Block/Ga.php ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-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 Mage
22
+ * @package Mage_GoogleAnalytics
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+
28
+ /**
29
+ * GoogleAnalitics Page Block
30
+ *
31
+ * @category Mage
32
+ * @package Mage_GoogleAnalytics
33
+ * @author Magento Core Team <core@magentocommerce.com>
34
+ */
35
+ class Mage_GoogleAnalytics_Block_Ga extends Mage_Core_Block_Text
36
+ {
37
+ /**
38
+ * @deprecated after 1.4.1.1
39
+ * @see self::_getOrdersTrackingCode()
40
+ * @return string
41
+ */
42
+ public function getQuoteOrdersHtml()
43
+ {
44
+ return '';
45
+ }
46
+
47
+ /**
48
+ * @deprecated after 1.4.1.1
49
+ * self::_getOrdersTrackingCode()
50
+ * @return string
51
+ */
52
+ public function getOrderHtml()
53
+ {
54
+ return '';
55
+ }
56
+
57
+ /**
58
+ * @deprecated after 1.4.1.1
59
+ * @see _toHtml()
60
+ * @return string
61
+ */
62
+ public function getAccount()
63
+ {
64
+ return '';
65
+ }
66
+
67
+ /**
68
+ * Get a specific page name (may be customized via layout)
69
+ *
70
+ * @return string|null
71
+ */
72
+ public function getPageName()
73
+ {
74
+ return $this->_getData('page_name');
75
+ }
76
+
77
+ /**
78
+ * Render regular page tracking javascript code
79
+ * The custom "page name" may be set from layout or somewhere else. It must start from slash.
80
+ *
81
+ * @link http://code.google.com/apis/analytics/docs/gaJS/gaJSApiBasicConfiguration.html#_gat.GA_Tracker_._trackPageview
82
+ * @link http://code.google.com/apis/analytics/docs/gaJS/gaJSApi_gaq.html
83
+ * @param string $accountId
84
+ * @return string
85
+ */
86
+ protected function _getPageTrackingCode($accountId)
87
+ {
88
+ $pageName = trim($this->getPageName());
89
+ $optPageURL = '';
90
+ if ($pageName && preg_match('/^\/.*/i', $pageName)) {
91
+ $optPageURL = ", '{$this->jsQuoteEscape($pageName)}'";
92
+ }
93
+ return "
94
+ _gaq.push(['_setAccount', '{$this->jsQuoteEscape($accountId)}']);
95
+ _gaq.push(['_trackPageview'{$optPageURL}]);
96
+ ";
97
+ }
98
+
99
+ /**
100
+ * Render information about specified orders and their items
101
+ *
102
+ * @link http://code.google.com/apis/analytics/docs/gaJS/gaJSApiEcommerce.html#_gat.GA_Tracker_._addTrans
103
+ * @return string
104
+ */
105
+ protected function _getOrdersTrackingCode()
106
+ {
107
+ $orderIds = $this->getOrderIds();
108
+ if (empty($orderIds) || !is_array($orderIds)) {
109
+ return;
110
+ }
111
+ $collection = Mage::getResourceModel('sales/order_collection')
112
+ ->addFieldToFilter('entity_id', array('in' => $orderIds))
113
+ ;
114
+ $result = array();
115
+ foreach ($collection as $order) {
116
+ if ($order->getIsVirtual()) {
117
+ $address = $order->getBillingAddress();
118
+ } else {
119
+ $address = $order->getShippingAddress();
120
+ }
121
+ $result[] = sprintf("_gaq.push(['_addTrans', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s']);",
122
+ $order->getIncrementId(), Mage::app()->getStore()->getFrontendName(), $order->getBaseGrandTotal(),
123
+ $order->getBaseTaxAmount(), $order->getBaseShippingAmount(),
124
+ $this->jsQuoteEscape($address->getCity()),
125
+ $this->jsQuoteEscape($address->getRegion()),
126
+ $this->jsQuoteEscape($address->getCountry())
127
+ );
128
+ foreach ($order->getAllVisibleItems() as $item) {
129
+ $result[] = sprintf("_gaq.push(['_addItem', '%s', '%s', '%s', '%s', '%s', '%s']);",
130
+ $order->getIncrementId(),
131
+ $this->jsQuoteEscape($item->getSku()), $this->jsQuoteEscape($item->getName()),
132
+ null, // there is no "category" defined for the order item
133
+ $item->getBasePrice(), $item->getQtyOrdered()
134
+ );
135
+ }
136
+ $result[] = "_gaq.push(['_trackTrans']);";
137
+ }
138
+ return implode("\n", $result);
139
+ }
140
+
141
+ /**
142
+ * Render GA tracking scripts
143
+ *
144
+ * @return string
145
+ */
146
+ protected function _toHtml()
147
+ {
148
+ if (!Mage::helper('googleanalytics')->isGoogleAnalyticsAvailable()) {
149
+ return '';
150
+ }
151
+ $accountId = Mage::getStoreConfig(Mage_GoogleAnalytics_Helper_Data::XML_PATH_ACCOUNT);
152
+ return '
153
+ <!-- BEGIN GOOGLE ANALYTICS CODE -->
154
+ <script type="text/javascript">
155
+ var _gaq = _gaq || [];
156
+ _gaq.push([\'_setAccount\', \'' . $this->jsQuoteEscape($accountId) . '\']);
157
+ _gaq.push([\'_trackPageview\']);
158
+ (function() {
159
+ var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
160
+ ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
161
+ var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
162
+ })();
163
+ </script>
164
+ <!-- END GOOGLE ANALYTICS CODE -->';
165
+ }
166
+ }
app/design/frontend/default/{jm_trex/template/page/redirect.phtml → default/layout/googleanalytics.xml} RENAMED
@@ -1,4 +1,5 @@
1
- <?php
 
2
  /**
3
  * Magento
4
  *
@@ -23,14 +24,18 @@
23
  * @copyright Copyright (c) 2011 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
- <div class="page-title">
28
- <h1><?php echo $this->__('Redirecting...') ?></h1>
29
- </div>
30
- <?php if($this->getMessage()): ?>
31
- <p><?php echo $this->getMessage() ?></p>
32
- <?php endif; ?>
33
- <?php echo $this->getRedirectOutput() ?>
34
- <?php if(!$this->isHtmlFormRedirect()): ?>
35
- <p><?php echo $this->__('Click <a href="%s">here</a> if nothing has happened', $this->getTargetURL()) ?></p>
36
- <?php endif; ?>
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
  /**
4
  * Magento
5
  *
24
  * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
25
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
  */
27
+
28
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <!--
32
+ Default layout, loads most of the pages
33
+ -->
34
+
35
+ <default>
36
+ <!-- Mage_GoogleAnalytics -->
37
+ <reference name="before_body_end">
38
+ <block type="googleanalytics/ga" name="google_analytics" as="google_analytics" />
39
+ </reference>
40
+ </default>
41
+ </layout>
app/design/frontend/default/default/layout/jmproducts.xml DELETED
@@ -1,37 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <layout version="0.1.0">
3
- <jmproducts_viewall_index>
4
- <reference name="root">
5
- <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
6
- </reference>
7
- <reference name="content">
8
- <block type="joomlart_jmproducts/list" name="viewall.jmproducts.list" template="joomlart/jmproducts/viewall.phtml" >
9
- <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
10
- <block type="page/html_pager" name="product_list_toolbar_pager" />
11
- </block>
12
- <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
13
- <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
14
- </block>
15
- </reference>
16
- </jmproducts_viewall_index>
17
- <jmproducts_filter_index>
18
- <reference name="root">
19
- <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
20
- </reference>
21
- <reference name="content">
22
- <block type="joomlart_jmproducts/filter" name="filter.jmproducts.list" template="joomlart/jmproducts/filter.phtml" >
23
- <action method="setData"><name>title</name><value>Filtered Products</value></action>
24
- <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
25
- <block type="page/html_pager" name="product_list_toolbar_pager" />
26
- </block>
27
- <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
28
- <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
29
- </block>
30
- </reference>
31
- </jmproducts_filter_index>
32
- <default>
33
- <reference name="head">
34
- <action method="addCss"><stylesheet>joomlart/jmproducts/css/jmproduct.css</stylesheet></action>
35
- </reference>
36
- </default>
37
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/layout/jmslideshow.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0"?>
2
- <layout version="0.1.0">
3
- <default>
4
- <reference name="head">
5
- <action method="addCss"><stylesheet>joomlart/jmslideshow/css/jm.slideshow.css</stylesheet></action>
6
- </reference>
7
- </default>
8
- </layout>
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/joomlart/jmproducts/column.phtml DELETED
@@ -1,73 +0,0 @@
1
- <div class="jm-product-list <?php echo $config['mode']; ?> clearfix">
2
- <?php if($config['title']){?><div class="page-title category-title">
3
- <h1><?php echo $config['title']; ?></h1>
4
- </div><?php }; ?>
5
- <div class="listing-type-grid category-products">
6
- <?php $_collectionSize = $listall?$listall->count():0; ?>
7
-
8
- <?php $i = 0;
9
- $width = 100;
10
- // -- added by Duchh 15/12/2009
11
- $thumbnailw = $config['width'];
12
- $thumbnailh = $config['height'];
13
- $numberchar = $config['max'];
14
-
15
- if ($config['perrow']) $width = 100/$config['perrow'];
16
- $width = "style=\"width:{$width}%;\"";
17
- $return = false;
18
- ?>
19
- <?php if($_collectionSize){?>
20
- <ul class="products-grid">
21
- <?php foreach ($listall->getItems() as $_product){
22
- $_rowCount = ceil($_collectionSize/$config['perrow']);
23
- if ($i%$config['perrow']==0) : $j++; endif;
24
- $i++;
25
- ?>
26
- <li class="item <?php if ($j==$_rowCount) : echo "item-row-last"; endif; ?> <?php if(($i-1)%$config['perrow']==0): ?> first<?php elseif($i%$config['perrow']==0): ?> last<?php endif; ?>" <?php echo $width;?>>
27
-
28
- <p class="product-image">
29
- <a title="<?php echo $this->htmlEscape($_product->getName()) ?>" href="<?php echo $_product->getProductUrl() ?>">
30
- <img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize($thumbnailw, $thumbnailh)->setWatermarkSize('30x10'); ?>" alt="<?php echo $this->htmlEscape($_product->getName()) ?>"/>
31
- </a>
32
- </p>
33
- <div class="product-information">
34
- <h5>
35
- <a title="<?php echo $this->htmlEscape($_product->getName()) ?>" href="<?php echo $_product->getProductUrl() ?>"><?php echo $_product->getName() ?></a>
36
- </h5>
37
- <?php echo $this->getReviewsSummaryHtml($_product, true, true)?>
38
- <?php echo $this->getPriceHtml($_product,true, '_jmproduct_' . rand()) ?>
39
-
40
- <?php if($numberchar) : ?>
41
- <p class="pdescription"><?php echo substr(nl2br(strlen($_product->getDescription()) > 10 ? $_product->getDescription() : $_product->getShortDescription()), 0, $numberchar).'...';?></p>
42
- <?php endif; ?>
43
- <?php if($_product->getRatingSummary()): ?>
44
- <?php echo $this->getReviewsSummaryHtml($_product) ?>
45
- <?php endif; ?>
46
-
47
- <?php if($_product->isSaleable()){ ?>
48
- <button class="form-button" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')">
49
- <span><?php echo $this->helper("catalog")->__('Add to Cart') ?></span>
50
- </button>
51
- <?php } else { ?>
52
- <div class="out-of-stock"><?php echo $this->helper("catalog")->__('Out of stock') ?></div>
53
- <?php } ?>
54
- <ul class="add-to-links">
55
- <?php if ($this->helper('wishlist')->isAllow()) : ?>
56
- <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist">
57
- <?php echo $this->__('Add to Wishlist') ?>
58
- </a></li>
59
- <?php endif; ?>
60
- <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
61
- <li>
62
- <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
63
- <?php endif; ?>
64
- </ul>
65
- </div>
66
- </li>
67
- <?php }?>
68
- </ul>
69
- <a href="<?php echo Mage::getBaseUrl()."jmproducts/viewall/index/type/".$config['mode']; ?>"> View more </a>
70
- <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
71
- <?php }?>
72
- </div>
73
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/joomlart/jmproducts/list.phtml DELETED
@@ -1,143 +0,0 @@
1
- <?php echo $this->getToolbarHtml(); ?>
2
- <?php
3
- $_productCollection=$this->getLoadedProductCollection();
4
- $_helper = $this->helper('catalog/output');
5
- $baseconfig = Mage::helper("jmbasetheme")->getactiveprofile();
6
-
7
- if ($baseconfig) :
8
- $productlistimagewidth = $baseconfig["productlistimagewidth"];
9
- $productlistimageheight = $baseconfig["productlistimageheight"];
10
- $productgriddeslenght = $baseconfig["productgriddeslenght"];
11
- $productgridimageheight = $baseconfig["productgridimageheight"];
12
- $productgridimagewidth = $baseconfig["productgridimagewidth"];
13
- $showlabel = $baseconfig["showlabel"];
14
- else :
15
- $productlistimagewidth = 180;
16
- $productlistimageheight = 180;
17
- $productgriddeslenght = 0;
18
- $productgridimageheight = 180;
19
- $productgridimagewidth = 180;
20
- $showlabel = 0;
21
- endif;
22
-
23
-
24
- ?>
25
-
26
- <?php
27
- $randomid = rand();
28
- ?>
29
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('joomlart/jmproducts/js/jmproducts.js') ?>"></script>
30
- <script type="text/javascript">
31
-
32
-
33
- ja = jQuery.noConflict();
34
- ja(document).ready(function() {
35
- ja("ul#productsgrid"+<?php echo $randomid; ?>).jmproduct({
36
- qtytable:<?php echo $config['qtytable']; ?>,
37
- qtytableportrait:<?php echo $config['qtytableportrait']; ?>,
38
- istable:<?php echo $config['istable']; ?>,
39
- qtymobile:<?php echo $config['qtymobile']; ?>,
40
- qtymobileportrait:<?php echo $config['qtymobileportrait']; ?>,
41
- ismobile:<?php echo $config['ismobile']; ?>,
42
- });
43
-
44
-
45
- });
46
- </script>
47
-
48
- <div class="jm-product-list <?php echo $config['mode']; ?> clearfix">
49
- <?php if($config['title']){?><div class="page-title category-title">
50
- <h1><?php echo $config['title']; ?></h1>
51
- <a href="<?php echo Mage::getBaseUrl()."jmproducts/viewall/index/type/".$config['mode']; ?>"> view all </a>
52
- </div><?php }; ?>
53
-
54
- <div class="listing-type-grid category-products">
55
- <?php $_collectionSize = $listall?$listall->count():0; ?>
56
-
57
- <?php $i = 0;
58
- $width = 100;
59
- // -- added by Duchh 15/12/2009
60
- $thumbnailw = $config['width'];
61
- $thumbnailh = $config['height'];
62
- $numberchar = $config['max'];
63
-
64
- if ($config['perrow']) $width = 100/$config['perrow'];
65
- $width = "style=\"width:{$width}%;\"";
66
- $return = false;
67
- ?>
68
- <?php if($_collectionSize){?>
69
- <ul class="products-grid" id="productsgrid<?php echo $randomid; ?>">
70
- <?php foreach ($listall->getItems() as $_product){
71
- $_rowCount = ceil($_collectionSize/$config['perrow']);
72
- if ($i%$config['perrow']==0) : $j++; endif;
73
- $i++;
74
- $product = Mage::getModel('catalog/product')->load($_product->getId());
75
- $attribute = $product->getResource()->getAttribute('label');
76
- if(is_object($attribute)){
77
-
78
- $_options= $attribute->getSource()->getAllOptions(true, true);
79
- foreach($_options as $option){
80
- if ($option['value'] == $product->getData("label")){
81
- $class = $option['label'];
82
- }
83
- }
84
- $attdefaultvalue = $attribute->getDefaultValue();
85
- $attributeValue = Mage::getModel('catalog/product')->load($_product->getId())->getlabel();
86
- $attributeValueName = Mage::getModel('catalog/product')->load($_product->getId())->getAttributeText('label');
87
- if(strlen($attributeValue) && ($attdefaultvalue !== $attributeValue)) {
88
- $labeltype = $class;
89
- $labelname = $attributeValueName;
90
- }
91
- else {
92
- $labeltype = "";
93
- }
94
- }
95
- ?>
96
- <li class="item <?php if ($j==$_rowCount) : echo "item-row-last"; endif; ?> <?php if(($i-1)%$config['perrow']==0): ?> first<?php elseif($i%$config['perrow']==0): ?> last<?php endif; ?>" <?php echo $width;?>>
97
-
98
- <p class="product-image">
99
- <a title="<?php echo $this->htmlEscape($_product->getName()) ?>" href="<?php echo $_product->getProductUrl() ?>">
100
- <img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize($thumbnailw, $thumbnailh)->setWatermarkSize('30x10'); ?>" alt="<?php echo $this->htmlEscape($_product->getName()) ?>"/>
101
- </a>
102
- <?php if ($labeltype && $showlabel): ?>
103
- <span class="<?php echo $labeltype; ?>-label label"><?php echo $labelname; ?></span>
104
- <?php endif; ?>
105
- </p>
106
- <div class="product-information">
107
- <h5>
108
- <a title="<?php echo $this->htmlEscape($_product->getName()) ?>" href="<?php echo $_product->getProductUrl() ?>"><?php echo $_product->getName() ?></a>
109
- </h5>
110
- <?php echo $this->getReviewsSummaryHtml($_product, true, true)?>
111
-
112
- <?php echo $this->getPriceHtml($_product,true, '_jmproduct_' . rand()) ?>
113
-
114
- <?php if($numberchar) : ?>
115
- <p class="pdescription"><?php echo substr(nl2br(strlen($_product->getDescription()) > 10 ? $_product->getDescription() : $_product->getShortDescription()), 0, $numberchar).'...';?></p>
116
- <?php endif; ?>
117
-
118
- <?php if($_product->isSaleable()){ ?>
119
- <button class="form-button" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')">
120
- <span><?php echo $this->helper("catalog")->__('Add to Cart') ?></span>
121
- </button>
122
- <?php } else { ?>
123
- <div class="out-of-stock"><?php echo $this->helper("catalog")->__('Out of stock') ?></div>
124
- <?php } ?>
125
- <ul class="add-to-links">
126
- <?php if ($this->helper('wishlist')->isAllow()) : ?>
127
- <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist">
128
- <?php echo $this->__('Wishlist') ?>
129
- </a></li>
130
- <?php endif; ?>
131
- <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
132
- <li>
133
- <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Compare') ?></a></li>
134
- <?php endif; ?>
135
- </ul>
136
- </div>
137
- </li>
138
- <?php }?>
139
- </ul>
140
- <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
141
- <?php }?>
142
- </div>
143
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/joomlart/jmproducts/oneproduct.phtml DELETED
@@ -1,68 +0,0 @@
1
- <div class="jm-product-list <?php echo $config['mode']; ?> clearfix">
2
- <div class="listing-type-grid category-products">
3
- <?php $_collectionSize = $listall?$listall->count():0 ?>
4
- <?php $i = 0;
5
- $width = 100;
6
- // -- added by Duchh 15/12/2009
7
- $thumbnailw = $config['width'];
8
- $thumbnailh = $config['height'];
9
- $numberchar = $config['max'];
10
-
11
- if ($config['perrow']) $width = 99/$config['perrow'];
12
- $width = "style=\"width:{$width}%;\"";
13
- $return = false;
14
-
15
- ?>
16
- <?php if($_collectionSize){?>
17
- <?php foreach ($listall->getItems() as $_product){
18
- $product = Mage::getModel('catalog/product')->load($_product->getId());
19
- $attribute = $product->getResource()->getAttribute('label');
20
- if(is_object($attribute)){
21
- $attdefaultvalue = $attribute->getDefaultValue();
22
- $attributeValue = Mage::getModel('catalog/product')->load($_product->getId())->getlabel();
23
- $attributeValueName = Mage::getModel('catalog/product')->load($_product->getId())->getAttributeText('label');
24
- }
25
- if(strlen($attributeValue) && ($attdefaultvalue !== $attributeValue)) {
26
- $labeltype = $attributeValueName;
27
- }
28
- else {
29
- $labeltype = "";
30
- }
31
- ?>
32
-
33
- <?php if($i++%$config['perrow']==0): ?>
34
- <div class="products-grid">
35
- <?php endif; ?>
36
- <div class="item"><div class="item-inner">
37
- <?php if ($labeltype): ?>
38
- <span class="<?php echo $labeltype; ?>-label"><?php echo $labeltype; ?></span>
39
- <?php endif; ?>
40
- <p class="product-image">
41
- <a title="<?php echo $this->htmlEscape($_product->getName()) ?>" href="<?php echo $_product->getProductUrl() ?>">
42
- <img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize($thumbnailw, $thumbnailh)->setWatermarkSize('30x10'); ?>" alt="<?php echo $this->htmlEscape($_product->getName()) ?>"/>
43
- </a>
44
- </p>
45
- <div class="product-information">
46
- <h2 class="product-name">
47
- <a title="<?php echo $this->htmlEscape($_product->getName()) ?>" href="<?php echo $_product->getProductUrl() ?>"><?php echo $_product->getName() ?></a>
48
- </h2>
49
- <?php echo $this->getPriceHtml($_product,true, '_jmproduct') ?>
50
-
51
- <?php if($numberchar) : ?>
52
- <p class="pdescription"><?php echo substr(nl2br($_product->getShortDescription()), 0, $numberchar).'...';?></p>
53
- <?php endif; ?>
54
-
55
- <?php if($_product->getRatingSummary()): ?>
56
- <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
57
- <?php endif; ?>
58
- </div>
59
- </div></div>
60
-
61
- <?php if($i%$config['perrow']==0 || $i==$_collectionSize): ?>
62
- </div>
63
- <?php endif; ?>
64
-
65
- <?php }?>
66
- <?php }?>
67
- </div>
68
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/joomlart/jmproducts/viewall.phtml DELETED
@@ -1,179 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- * Product list template
30
- *
31
- * @see Mage_Catalog_Block_Product_List
32
- */
33
- ?>
34
- <?php
35
- $_productCollection = $listall;
36
- $_helper = $this->helper('catalog/output');
37
- $baseconfig = Mage::helper("jmbasetheme")->getactiveprofile();
38
-
39
- if ($baseconfig) :
40
- $productlistimagewidth = $baseconfig["productlistimagewidth"];
41
- $productlistimageheight = $baseconfig["productlistimageheight"];
42
- $productgriddeslenght = $baseconfig["productgriddeslenght"];
43
- $productgridimageheight = $baseconfig["productgridimageheight"];
44
- $productgridimagewidth = $baseconfig["productgridimagewidth"];
45
- $showlabel = $baseconfig["showlabel"];
46
- else :
47
- $productlistimagewidth = 180;
48
- $productlistimageheight = 180;
49
- $productgriddeslenght = 0;
50
- $productgridimageheight = 180;
51
- $productgridimagewidth = 180;
52
- $showlabel = 0;
53
- endif;
54
- ?>
55
- <?php if(!$_productCollection->count()): ?>
56
- <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
57
- <?php else: ?>
58
- <div class="page-title category-title">
59
- <h1><?php echo 'Featured Product list.'; ?></h1>
60
- </div>
61
- <div class="category-products">
62
- <?php echo $this->getToolbarHtml() ?>
63
- <?php // List mode ?>
64
- <?php if($this->getMode()!='grid'): ?>
65
- <?php $_iterator = 0; ?>
66
- <ol class="products-list" id="products-list">
67
- <?php foreach ($_productCollection as $_product): ?>
68
- <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
69
- <?php // Product Image ?>
70
- <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(225,340); ?>" width="225" height="340" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
71
- <?php // Product description ?>
72
- <div class="product-shop">
73
- <div class="f-fix">
74
- <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
75
- <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
76
- <?php echo $this->getReviewsSummaryHtml($_product, true, true)?>
77
- <?php echo $this->getPriceHtml($_product, true) ?>
78
-
79
- <div class="desc std">
80
- <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
81
- <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
82
- </div>
83
-
84
- <?php if($_product->isSaleable()): ?>
85
- <p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
86
- <?php else: ?>
87
- <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
88
- <?php endif; ?>
89
-
90
- <ul class="add-to-links">
91
- <?php if ($this->helper('wishlist')->isAllow()) : ?>
92
- <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
93
- <?php endif; ?>
94
- <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
95
- <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
96
- <?php endif; ?>
97
- </ul>
98
- </div>
99
- </div>
100
- </li>
101
- <?php endforeach; ?>
102
- </ol>
103
- <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
104
-
105
- <?php else: ?>
106
-
107
- <?php // Grid Mode ?>
108
-
109
- <?php $_collectionSize = $_productCollection->count() ?>
110
- <?php
111
- if($baseconfig["productgridnumbercolumn"]) :
112
- $config['perrow'] = $baseconfig["productgridnumbercolumn"];
113
- endif;
114
- ?>
115
- <?php $_columnCount = $config['perrow']?$config['perrow']:$this->getColumnCount(); ?>
116
- <ul class="products-grid">
117
- <?php $i=0; foreach ($_productCollection as $_product): ?>
118
-
119
- <?php
120
- $_rowCount = ceil($_collectionSize/$_columnCount);
121
- if ($i%$_columnCount==0) : $j++; endif;
122
- if ($i++%$_columnCount==0):
123
- $width = 100;
124
- if ($_columnCount) $width = 100/$_columnCount;
125
- $width = "style=\"width:{$width}%;\"";
126
- $return = false;
127
- $product = Mage::getModel('catalog/product')->load($_product->getId());
128
- $attribute = $product->getResource()->getAttribute('label');
129
- if(is_object($attribute)) {
130
- $attdefaultvalue = $attribute->getDefaultValue();
131
- $attributeValue = Mage::getModel('catalog/product')->load($_product->getId())->getlabel();
132
- $attributeValueName = Mage::getModel('catalog/product')->load($_product->getId())->getAttributeText('label');
133
- if(strlen($attributeValue) && ($attdefaultvalue !== $attributeValue)) {
134
- $labeltype = $attributeValueName;
135
- }
136
- else {
137
- $labeltype = "";
138
- }
139
- }
140
- ?>
141
-
142
- <?php endif ?>
143
- <li class="item <?php if ($j==$_rowCount) : echo "item-row-last"; endif; ?> <?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>" <?php echo $width; ?>>
144
- <p class="product-image">
145
- <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" ><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(160,240); ?>" width="160" height="240" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
146
- <?php if ($labeltype): ?>
147
- <span class="<?php echo $labeltype; ?>-label label"><?php echo $labeltype; ?></span>
148
- <?php endif; ?>
149
- </p>
150
- <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
151
- <?php echo $this->getReviewsSummaryHtml($_product, true, true); ?>
152
-
153
- <?php echo $this->getPriceHtml($_product, true) ?>
154
- <div class="actions">
155
- <?php if($_product->isSaleable()): ?>
156
- <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
157
- <?php else: ?>
158
- <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
159
- <?php endif; ?>
160
- <ul class="add-to-links">
161
- <?php if ($this->helper('wishlist')->isAllow()) : ?>
162
- <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Wishlist') ?></a></li>
163
- <?php endif; ?>
164
- <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
165
- <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Compare') ?></a></li>
166
- <?php endif; ?>
167
- </ul>
168
- </div>
169
- </li>
170
- <?php endforeach ?>
171
- </ul>
172
-
173
- <?php endif; ?>
174
-
175
- <div class="toolbar-bottom">
176
- <?php echo $this->getToolbarHtml() ?>
177
- </div>
178
- </div>
179
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/joomlart/jmslideshow/accordion.phtml DELETED
@@ -1,127 +0,0 @@
1
- <?php $rand = time().rand().rand();?>
2
-
3
- <?php if(!defined('JM_ADD_JQUERY') && $config['loadjquery']){?>
4
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('joomlart/jmslideshow/js/jquery-ui/jquery.min.js') ?>"></script>
5
- <?php define('JM_ADD_JQUERY', true); ?>
6
- <?php }?>
7
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('joomlart/jmslideshow/js/jquery-ui/jquery-ui.min.js') ?>"></script>
8
-
9
- <!-- Vertical Accordion -->
10
- <?php if($config['animation'] == 'vrtaccordion'): ?>
11
- <script type="text/javascript">
12
- jQuery.noConflict();
13
- jQuery(document).ready(function() {
14
- jQuery("#jm-slide-<?php echo $rand; ?>").accordion(
15
- {
16
- event: 'mouseover',
17
- animated: "bounceslide"
18
- }
19
- );
20
- });
21
- </script>
22
- <?php if($items): ?>
23
- <div class="block jm-slideshow jm-slideshow-vertical">
24
- <?php if($config['title']){?><div class="block-title"><strong><span><?php echo $config['title']; ?></span></strong></div><?php } ?>
25
-
26
- <div class="jm-slidewrap">
27
- <div class="jm-slide-main-wrap">
28
- <ul id="jm-slide-<?php echo $rand; ?>" class="clearfix">
29
- <?php $i = 0; foreach ($items as $item): ?>
30
- <?php
31
- preg_match('/(<h3>).*(<\/h3>)/i', $item['caption'], $matches);
32
- if ($matches) {
33
- $itemTitle = $matches[0];
34
- }
35
- else {
36
- $itemTitle = $item['caption'];
37
- }
38
- ?>
39
- <li class="clearfix">
40
- <div class="handle" style="width:<?php echo $config['mainWidth'];?>px;">
41
- <div class="handle-title"><?php echo $itemTitle;?></div>
42
- <a href="#" class="jm-slide-number"><?php echo str_pad($i + 1, 2, '0', STR_PAD_LEFT); ?></a>
43
- </div>
44
- <div class="jm-slide-desc">
45
- <div class="jm-slide-container">
46
- <?php echo $item['mainThumb']; ?>
47
- <?php if ($config['showDesc'] != '' && $item['caption']):?>
48
- <div class="maskDesc" style="display:block;visibility:visible;width:<?php echo $config['mainWidth'];?>px;height:<?php echo $config['mainHeight'];?>px;opacity:<?php echo $config['descOpacity'];?>;">
49
- <div class="jm-slide-desc"><div class="jm-slide-desc-inner"><?php echo $item['caption'];?></div></div>
50
- </div>
51
- <?php endif; ?>
52
- <?php if ($config['showDesc']=='desc-readmore'){?>
53
- <a class="readon" title="" href="<?php echo $urls[$i]; ?>"><span><?php echo $config['readMoreText'];?></span></a>
54
- <?php }?>
55
- </div>
56
- </div>
57
- </li>
58
- <?php $i++; endforeach; ?>
59
- </ul>
60
- </div>
61
- </div>
62
- </div>
63
- <div class="jm-slideshow-mask">&nbsp;</div>
64
- <?php endif; // end if ($items) ?>
65
-
66
- <!-- Horizontal Accordion -->
67
- <?php elseif($config['animation']=='hrzaccordion'): ?>
68
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('joomlart/jmslideshow/js/jquery-ui/jquery.hrzAccordion.js')?>"></script>
69
- <script type="text/javascript">
70
- jQuery.noConflict();
71
- jQuery(document).ready(function(){
72
- jQuery("#jm-slide-<?php echo $rand; ?>").hrzAccordion(
73
- {
74
- containerClass : "container",
75
- listItemClass : "listItem",
76
- contentWrapper : "contentWrapper",
77
- contentInnerWrapper : "contentInnerWrapper",
78
- contentContainerClass : "contentContainer",
79
- contentContainerClassSelected : "contentContainerSelected",
80
- handleClass : "handle",
81
- handleClassOver : "handleOver",
82
- handleClassSelected : "handleSelected",
83
- handlePosition : "left",
84
- openOnLoad : 1
85
- }
86
- );
87
- }
88
- );
89
- </script>
90
- <?php if($items): ?>
91
- <div class="block jm-slideshow jm-slideshow-horizontal">
92
- <?php if($config['title']){?><div class="block-title"><strong><span><?php echo $config['title']; ?></span></strong></div><?php } ?>
93
-
94
- <div class="jm-slidewrap">
95
- <div class="jm-slide-main-wrap">
96
- <ul id="jm-slide-<?php echo $rand; ?>" class="clearfix">
97
- <?php $i = 0; foreach ($items as $item): ?>
98
- <?php
99
- preg_match('/(<h3>).*(<\/h3>)/i', $item['caption'], $matches);
100
- if ($matches) {
101
- $itemTitle = $matches[0];
102
- }
103
- else {
104
- $itemTitle = $item['caption'];
105
- }
106
- ?>
107
- <li class="clearfix">
108
- <div class="handle" style="height: <?php echo $config['mainHeight'];?>px;">
109
- <div class="handle-title"><?php echo $itemTitle;?></div>
110
- <a href="#" class="jm-slide-number"><?php echo str_pad($i + 1, 2, '0', STR_PAD_LEFT); ?></a>
111
- <div class="handle-mask">&nbsp;</div>
112
- </div>
113
- <div class="jm-slide-thumb"><?php echo $item['mainThumb']; ?></div>
114
- <div class="jm-slide-desc">
115
- <?php if ($config['showDesc'] != '' && $item['caption']):?><div class="jm-slide-desc-inner clearfix"><?php echo $item['caption'];?></div><?php endif; ?>
116
- <?php if ($config['showDesc']=='desc-readmore'){?><a class="readon" title="" href="<?php echo $urls[$i]; ?>"><span><?php echo $config['readMoreText'];?></span></a><?php }?>
117
- </div>
118
- </li>
119
- <?php $i++; endforeach;?>
120
- </ul>
121
- </div>
122
- </div>
123
- </div>
124
- <div class="jm-slideshow-mask">&nbsp;</div>
125
- <?php endif; // end if ($items) ?>
126
-
127
- <?php endif; // end if $config['animation'] ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/joomlart/jmslideshow/basic.phtml DELETED
@@ -1,146 +0,0 @@
1
- <?php $rand = time().rand().rand();?>
2
-
3
- <?php if($items){?>
4
- <?php if(!defined('JM_ADD_JQUERY') && $config['loadjquery']): ?>
5
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('joomlart/jmslideshow/js/jquery-ui/jquery.min.js'); ?>"></script>
6
- <?php define('JM_ADD_JQUERY', true); ?>
7
- <?php endif?>
8
-
9
- <?php if(!defined('JM_ADD_SKIN_SILDESHOWS')): ?>
10
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('joomlart/jmslideshow/js/jm.slideshow.js') ?>"></script>
11
- <?php define('JM_ADD_SKIN_SILDESHOWS', true); ?>
12
- <?php endif; ?>
13
- <?php
14
- /*Convert to array*/
15
- $config['thumbSpaces'] = preg_split ('/:/', $config['thumbSpaces']);
16
- ?>
17
- <script type="text/javascript">
18
- jQuery.noConflict();
19
- jQuery(document).ready(function($){
20
- $('#jm-slide-<?php echo $rand;?>').jaslider({
21
- animation: '<?php echo $config['animation']; ?>', //[slide, fade, slice], slide and fade for old compactible
22
-
23
- interval: <?php echo $config['interval']; ?>, //interval - time for between animation
24
- duration: <?php echo $config['duration']; ?>, //duration - time for animation
25
-
26
- repeat: <?php echo $config['repeat']; ?>, //animation repeat or not
27
- autoPlay: <?php echo $config['autoPlay']; ?>, //auto play
28
-
29
- mainWidth: <?php echo $config['mainWidth']; ?>, //width of main item
30
- mainHeight: <?php echo $config['mainHeight']; ?>, //height of main item
31
-
32
- rtl: null, //rtl
33
-
34
- thumbType: '<?php echo $config['thumbType']; ?>', //false - no thumb, other [number, thumb], thumb will animate
35
- thumbItems: <?php echo $config['thumbItems']; ?>, //number of thumb item will be show
36
- thumbWidth: <?php echo $config['thumbWidth']; ?>, //width of thumbnail item
37
- thumbHeight: <?php echo $config['thumbHeight']; ?>, //width of thumbnail item
38
- thumbSpaces: [<?php echo implode(',', $config['thumbSpaces']); ?>], //space between thumbnails
39
- thumbTrigger: '<?php echo $config['thumbTrigger']; ?>', //thumb trigger event, [click, mouseenter]
40
- thumbDirection: '<?php echo $config['thumbDirection']; ?>', //thumb orientation
41
- thumbPosition: '<?php echo $config['thumbPosition']; ?>', //[0%, 50%, 100%]
42
-
43
- showDesc: '<?php echo $config['showDesc']; ?>', //show description or not
44
- descTrigger: '<?php echo $config['descTrigger']; ?>', //[always, mouseover, load]
45
- maskAnim: '<?php echo $config['maskAnim']; ?>', //mask transition style [fade, slide, slide-fade], slide - will use the maskAlign to slide
46
- maskWidth: <?php echo $config['maskWidth']; ?>, //mask - a div over the the main item - used to hold descriptions
47
- maskHeight: <?php echo $config['maskHeight']; ?>, //mask height
48
- maskOpacity: <?php echo $config['maskOpacity']; ?>, //mask opacity
49
- maskPosition: '<?php echo $config['maskPosition']; ?>', //[0%, 50%, 100%]
50
-
51
- controlBox: <?php echo $config['controlBox']; ?>, //show navigation controller [next, prev, play, playback] - JM does not have a config
52
- controlPosition: '<?php echo $config['controlPosition']; ?>', //show navigation controller [next, prev, play, playback] - JM does not have a config
53
-
54
- navButtons: '<?php echo $config['navButtons']; ?>', //main next/prev navigation buttons mode, [false, auto, fillspace]
55
-
56
- showProgress: <?php echo $config['showProgress']; ?>, //show the progress bar
57
-
58
- urls: ['<?php echo implode("','", $urls); ?>'], // [] array of url of main items
59
- targets: false // [] same as urls, an array of target value such as, '_blank', 'parent', '' - default
60
- });
61
- });
62
- </script>
63
- <?php }?>
64
-
65
-
66
- <div class="block jm-slideshow jm-slideshow<?php echo '-'.$config['thumbDirection'];?>">
67
- <?php if($config['title']){?><div class="block-title"><strong><span><?php echo $config['title']; ?></span></strong></div><?php } ?>
68
-
69
- <div class="jm-slidewrap" id="jm-slide-<?php echo $rand;?>" style="visibility:hidden;">
70
- <div class="jm-slide-main-wrap">
71
- <div class="jm-slide-main">
72
-
73
- <?php foreach ($items as $item) { ?>
74
- <div class="jm-slide-item"><?php echo $item['mainThumb']; ?>
75
- <?php if ($config['showDesc'] == 'always' && $item['caption']) : ?><span class="jm-slide-desc"><?php echo $item['caption']; ?></span><?php endif; ?>
76
- </div>
77
- <?php }?>
78
- </div>
79
-
80
- <div class="jm-slide-loader"></div>
81
-
82
- <?php if ($config['showProgress']): ?>
83
- <div class="jm-slide-progress"></div>
84
- <?php endif; ?>
85
-
86
- <?php if ($config['navButtons']): ?>
87
- <div class="jm-slide-buttons clearfix">
88
- <span class="jm-slide-prev">&laquo; Previous</span>
89
- <span class="jm-slide-next">Next &raquo;</span>
90
- </div>
91
- <?php endif; ?>
92
-
93
- <?php if ($config['thumbType']): ?>
94
- <div class="jm-slide-thumbs-wrap <?php echo 'jm-'.$config['thumbDirection'];?> <?php if ($config['thumbType']=='thumbs') : echo "jm-slide-thumbnails"; else: echo "jm-slide-number"; endif; ?>">
95
- <div class="jm-slide-thumbs">
96
- <?php $i = 1; foreach ($items as $item) {?>
97
- <div class="jm-slide-thumb">
98
- <?php if ($config['thumbType']=='thumbs'){?><?php echo $item['thumb']; ?>
99
- <?php }else{?><span><?php echo ($i++);?></span><?php } ?>
100
- </div>
101
- <?php }?>
102
- </div>
103
-
104
- <div class="jm-slide-thumbs-mask">
105
- <span class="jm-slide-thumbs-mask-left">&nbsp;</span>
106
- <span class="jm-slide-thumbs-mask-center">&nbsp;</span>
107
- <span class="jm-slide-thumbs-mask-right">&nbsp;</span>
108
- </div>
109
-
110
- <p class="jm-slide-thumbs-handles">
111
- <?php foreach ($items as $item) {?>
112
- <span>&nbsp;</span>
113
- <?php }?>
114
- </p>
115
- </div>
116
- <?php endif; ?>
117
-
118
- </div>
119
-
120
- <?php if ($config['controlBox']): ?>
121
- <div class="jm-slide-controls clearfix">
122
- <span class="jm-slide-prev">&laquo; Previous</span>
123
- <span class="jm-slide-playback">&laquo; Previous</span>
124
- <span class="jm-slide-stop">Stop</span>
125
- <span class="jm-slide-play">Next &raquo;</span>
126
- <span class="jm-slide-next">Next &raquo;</span>
127
- </div>
128
- <?php endif; ?>
129
-
130
- <?php if ($config['showDesc']): ?>
131
- <div class="jm-mask-desc">
132
- <div class="jm-slide-desc"></div>
133
- <div class="jm-slide-mask"></div>
134
- <?php if ($config['showDesc']=='desc-readmore'){?><div class="readmore"><a class="readon" title=""><span><span><?php echo $config['readMoreText'];?></span></span></a></div><?php }?>
135
- </div>
136
- <?php endif; ?>
137
-
138
- <?php if($config['showDesc']){?>
139
- <div class="jm-slide-descs">
140
- <?php foreach ($items as $item) {?>
141
- <div class="jm-slide-desc"><?php echo $item['caption']; ?></div>
142
- <?php }?>
143
- </div>
144
- <?php }?>
145
- </div>
146
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/layout/catalog.xml DELETED
@@ -1,401 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Academic Free License (AFL 3.0)
9
- * that is bundled with this package in the file LICENSE_AFL.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/afl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category design
23
- * @package base_default
24
- * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
25
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
- */
27
-
28
- Supported layout update handles (action):
29
- - catalog_product_gallery
30
- - catalog_product_compare_index
31
-
32
- Supported layout update handles (special):
33
- - default
34
- - catalog_category_default
35
- - catalog_category_layered
36
- - catalog_product_view
37
-
38
- -->
39
- <layout version="0.1.0">
40
-
41
- <!--
42
- Default layout, loads most of the pages
43
- -->
44
-
45
- <default>
46
-
47
- <!-- Mage_Catalog -->
48
- <reference name="left">
49
- <!-- <block type="core/template" name="left.permanent.callout" template="callouts/left_col.phtml">
50
- <action method="setImgSrc"><src>images/media/col_left_callout.jpg</src></action>
51
- <action method="setImgAlt" translate="alt" module="catalog"><alt>Our customer service is available 24/7. Call us at (555) 555-0123.</alt></action>
52
- <action method="setLinkUrl"><url>checkout/cart</url></action>
53
- </block> -->
54
- </reference>
55
- <reference name="right">
56
- <block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
57
- <block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml" after="right.poll" >
58
- <action method="setImgSrc"><src>images/media/col_right_callout.jpg</src></action>
59
- <action method="setImgAlt" translate="alt" module="catalog"><alt>Keep your eyes open for our special Back to School items and save A LOT!</alt></action>
60
- </block>
61
- </reference>
62
- <reference name="footer_links">
63
- <action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map"><label>Site Map</label><url helper="catalog/map/getCategoryUrl" /><title>Site Map</title></action>
64
- </reference>
65
- <block type="catalog/product_price_template" name="catalog_product_price_template" />
66
- </default>
67
-
68
-
69
- <!--
70
- Category default layout
71
- -->
72
-
73
- <catalog_category_default translate="label">
74
- <label>Catalog Category (Non-Anchor)</label>
75
- <reference name="left">
76
- <block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
77
- <block type="cms/block" name="position-7">
78
- <action method="setBlockId"><block_id>position-7</block_id></action>
79
- </block>
80
- </reference>
81
- <reference name="content">
82
- <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
83
- <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
84
- <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
85
- <block type="page/html_pager" name="product_list_toolbar_pager"/>
86
- </block>
87
- <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>4</count></action>
88
- <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>4</count></action>
89
- <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>3</count></action>
90
- <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>3</count></action>
91
- <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>2</count></action>
92
- <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
93
- </block>
94
- </block>
95
- </reference>
96
- </catalog_category_default>
97
-
98
- <!--
99
- Category layered navigation layout
100
- -->
101
-
102
- <catalog_category_layered translate="label">
103
- <label>Catalog Category (Anchor)</label>
104
- <reference name="left">
105
- <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
106
- <block type="cms/block" name="position-7">
107
- <action method="setBlockId"><block_id>position-7</block_id></action>
108
- </block>
109
- </reference>
110
- <reference name="content">
111
- <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
112
- <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
113
- <!-- <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/su.phtml</template></action> -->
114
- <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
115
- <block type="page/html_pager" name="product_list_toolbar_pager"/>
116
- <!-- The following code shows how to set your own pager increments -->
117
- </block>
118
- <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>4</count></action>
119
- <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>4</count></action>
120
- <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>3</count></action>
121
- <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>3</count></action>
122
- <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>2</count></action>
123
- <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
124
- </block>
125
- </block>
126
- </reference>
127
- </catalog_category_layered>
128
-
129
- <!--
130
- Compare products page
131
- -->
132
-
133
- <catalog_product_compare_index translate="label">
134
- <label>Catalog Product Compare List</label>
135
- <!-- Mage_Catalog -->
136
- <reference name="root">
137
- <action method="setTemplate"><template>page/popup.phtml</template></action>
138
- </reference>
139
- <reference name="head">
140
- <action method="addJs"><script>scriptaculous/scriptaculous.js</script></action>
141
- <action method="addJs"><script>varien/product.js</script></action>
142
- </reference>
143
- <reference name="content">
144
- <block type="catalog/product_compare_list" name="catalog.compare.list" template="catalog/product/compare/list.phtml"/>
145
- </reference>
146
- </catalog_product_compare_index>
147
-
148
- <customer_account_index>
149
- <reference name="right">
150
- <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
151
- </reference>
152
- </customer_account_index>
153
-
154
- <!--
155
- Product view
156
- -->
157
-
158
- <catalog_product_view translate="label">
159
- <label>Catalog Product View (Any)</label>
160
- <!-- Mage_Catalog -->
161
- <reference name="root">
162
- <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
163
- </reference>
164
- <reference name="head">
165
- <action method="addJs"><script>varien/product.js</script></action>
166
- <action method="addJs"><script>varien/configurable.js</script></action>
167
-
168
- <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
169
- <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
170
- <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
171
- </reference>
172
- <reference name="content">
173
- <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
174
- <!--
175
- <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/summary.phtml</template></action>
176
- <action method="addReviewSummaryTemplate"><type>short</type><template>review/helper/summary_short.phtml</template></action>
177
- <action method="addReviewSummaryTemplate"><type>...</type><template>...</template></action>
178
- -->
179
- <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml"/>
180
- <block type="core/text_list" name="alert.urls" as="alert_urls" translate="label">
181
- <label>Alert Urls</label>
182
- </block>
183
-
184
- <action method="setTierPriceTemplate"><template>catalog/product/view/tierprices.phtml</template></action>
185
-
186
- <block type="catalog/product_list_upsell" name="product.info.upsell" as="upsell_products" template="catalog/product/list/upsell.phtml">
187
- <action method="setColumnCount"><columns>3</columns></action>
188
- <action method="setItemLimit"><type>upsell</type><limit>3</limit></action>
189
- </block>
190
-
191
- <block type="catalog/product_view_additional" name="product.info.additional" as="product_additional_data" />
192
- <block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
193
- <action method="addToParentGroup"><group>detailed_info</group></action>
194
- </block>
195
- <block type="catalog/product_view_attributes" name="product.attributes" as="additional" template="catalog/product/view/attributes.phtml">
196
- <action method="addToParentGroup"><group>detailed_info</group></action>
197
- </block>
198
- <block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
199
- <block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/>
200
-
201
- <block type="core/text_list" name="product.info.extrahint" as="extrahint" translate="label">
202
- <label>Product View Extra Hint</label>
203
- </block>
204
-
205
- <block type="catalog/product_view" name="product.info.options.wrapper" as="product_options_wrapper" template="catalog/product/view/options/wrapper.phtml" translate="label">
206
- <label>Info Column Options Wrapper</label>
207
- <block type="core/template" name="options_js" template="catalog/product/view/options/js.phtml"/>
208
- <block type="catalog/product_view_options" name="product.info.options" as="product_options" template="catalog/product/view/options.phtml">
209
- <action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/view/options/type/text.phtml</template></action>
210
- <action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/view/options/type/file.phtml</template></action>
211
- <action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/view/options/type/select.phtml</template></action>
212
- <action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/view/options/type/date.phtml</template></action>
213
- </block>
214
- <block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
215
- </block>
216
- <block type="catalog/product_view" name="product.info.options.wrapper.bottom" as="product_options_wrapper_bottom" template="catalog/product/view/options/wrapper/bottom.phtml" translate="label">
217
- <label>Bottom Block Options Wrapper</label>
218
- <action method="insert"><block>product.tierprices</block></action>
219
- <block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/>
220
- <action method="append"><block>product.info.addtocart</block></action>
221
- <action method="append"><block>product.info.addto</block></action>
222
- </block>
223
-
224
- <block type="core/template_facade" name="product.info.container1" as="container1">
225
- <action method="setDataByKey"><key>alias_in_layout</key><value>container1</value></action>
226
- <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
227
- <action method="append"><block>product.info.options.wrapper</block></action>
228
- <action method="append"><block>product.info.options.wrapper.bottom</block></action>
229
- </block>
230
- <block type="core/template_facade" name="product.info.container2" as="container2">
231
- <action method="setDataByKey"><key>alias_in_layout</key><value>container2</value></action>
232
- <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
233
- <action method="append"><block>product.info.options.wrapper</block></action>
234
- <action method="append"><block>product.info.options.wrapper.bottom</block></action>
235
- </block>
236
- <action method="unsetCallChild"><child>container1</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
237
- <action method="unsetCallChild"><child>container2</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
238
- </block>
239
- </reference>
240
- <reference name="right">
241
- <block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/>
242
- </reference>
243
- </catalog_product_view>
244
-
245
- <!--
246
- Additional block dependant on product type
247
- -->
248
- <PRODUCT_TYPE_simple translate="label" module="catalog">
249
- <label>Catalog Product View (Simple)</label>
250
- <reference name="product.info">
251
- <block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/default.phtml">
252
- <block type="core/text_list" name="product.info.simple.extra" as="product_type_data_extra" translate="label">
253
- <label>Product Extra Info</label>
254
- </block>
255
- </block>
256
- </reference>
257
- </PRODUCT_TYPE_simple>
258
- <PRODUCT_TYPE_configurable translate="label" module="catalog">
259
- <label>Catalog Product View (Configurable)</label>
260
- <reference name="product.info">
261
- <block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml">
262
- <block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label">
263
- <label>Product Extra Info</label>
264
- </block>
265
- </block>
266
- </reference>
267
- <reference name="product.info.options.wrapper">
268
- <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
269
- </reference>
270
- </PRODUCT_TYPE_configurable>
271
- <PRODUCT_TYPE_grouped translate="label" module="catalog">
272
- <label>Catalog Product View (Grouped)</label>
273
- <reference name="product.info">
274
- <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml">
275
- <block type="core/text_list" name="product.info.grouped.extra" as="product_type_data_extra" translate="label">
276
- <label>Product Extra Info</label>
277
- </block>
278
- </block>
279
- </reference>
280
- </PRODUCT_TYPE_grouped>
281
- <PRODUCT_TYPE_virtual translate="label" module="catalog">
282
- <label>Catalog Product View (Virtual)</label>
283
- <reference name="product.info">
284
- <block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/default.phtml">
285
- <block type="core/text_list" name="product.info.virtual.extra" as="product_type_data_extra" translate="label">
286
- <label>Product Extra Info</label>
287
- </block>
288
- </block>
289
- </reference>
290
- </PRODUCT_TYPE_virtual>
291
-
292
-
293
-
294
- <!--
295
- Product send to friend
296
- -->
297
-
298
- <catalog_product_send translate="label">
299
- <label>Catalog Product Email to a Friend</label>
300
- <!-- Mage_Catalog -->
301
- <reference name="root">
302
- <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
303
- </reference>
304
- <reference name="head">
305
- <action method="addJs"><script>varien/product.js</script></action>
306
- </reference>
307
- <reference name="content">
308
- <block type="catalog/product_send" name="product.send" template="catalog/product/send.phtml">
309
- </block>
310
- </reference>
311
- </catalog_product_send>
312
-
313
- <!--
314
- Product additional images gallery popup
315
- -->
316
-
317
- <catalog_product_gallery translate="label">
318
- <label>Catalog Product Image Gallery Popup</label>
319
- <!-- Mage_Catalog -->
320
- <reference name="root">
321
- <action method="setTemplate"><template>page/popup.phtml</template></action>
322
- </reference>
323
- <reference name="content">
324
- <block type="catalog/product_gallery" name="catalog_product_gallery" template="catalog/product/gallery.phtml"/>
325
- </reference>
326
- </catalog_product_gallery>
327
-
328
- <!--
329
- SEO Site Map
330
- -->
331
-
332
- <catalog_seo_sitemap translate="label">
333
- <label>Catalog Seo Sitemap (Common)</label>
334
- <remove name="right"/>
335
- <remove name="left"/>
336
-
337
- <reference name="root">
338
- <action method="setTemplate"><template>page/1column.phtml</template></action>
339
- </reference>
340
- <reference name="content">
341
- <block type="page/template_container" name="seo.sitemap.container" template="catalog/seo/sitemap/container.phtml">
342
- <block type="page/template_links" name="seo.sitemap.links" as="links" template="page/template/links.phtml"/>
343
- <block type="page/html_pager" name="seo.sitemap.pager.top" as="pager_top" template="page/html/pager.phtml"/>
344
- <block type="page/html_pager" name="seo.sitemap.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
345
- </block>
346
- </reference>
347
- </catalog_seo_sitemap>
348
-
349
- <catalog_seo_sitemap_category translate="label">
350
- <label>Catalog Seo Sitemap (Category List)</label>
351
- <reference name="head">
352
- <action method="setTitle" translate="title" module="catalog"><title>Site Map</title></action>
353
- </reference>
354
- <update handle="catalog_seo_sitemap" />
355
- <reference name="seo.sitemap.container">
356
- <action method="setTitle" translate="title" module="catalog"><title>Categories</title></action>
357
- <block type="catalog/seo_sitemap_category" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
358
- <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
359
- <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
360
- <action method="setItemsTitle" translate="title" module="catalog"><title>categories</title></action>
361
- </block>
362
- </reference>
363
- <reference name="seo.sitemap.links">
364
- <action method="addLink" translate="label title" module="catalog"><label>Products Sitemap</label><url helper="catalog/map/getProductUrl"/><title>Products Sitemap</title></action>
365
- </reference>
366
- </catalog_seo_sitemap_category>
367
-
368
- <catalog_seo_sitemap_category_tree translate="label">
369
- <label>Catalog Seo Sitemap (Category Tree)</label>
370
- <reference name="seo.sitemap.container">
371
- <remove name="seo.sitemap.pager.top" />
372
- <remove name="seo.sitemap.pager.bottom" />
373
- <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.top" as="pager_top" template="page/html/pager.phtml"/>
374
- <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
375
- <remove name="seo.sitemap.sitemap" />
376
- <block type="catalog/seo_sitemap_tree_category" name="seo.sitemap.sitemap_tree" as="sitemap" after="pager_top" template="catalog/seo/tree.phtml">
377
- <action method="bindPager"><pager>seo.sitemap.tree.pager.top</pager></action>
378
- <action method="bindPager"><pager>seo.sitemap.tree.pager.bottom</pager></action>
379
- </block>
380
- </reference>
381
- </catalog_seo_sitemap_category_tree>
382
-
383
- <catalog_seo_sitemap_product translate="label">
384
- <label>Catalog Seo Sitemap (Product List)</label>
385
- <reference name="head">
386
- <action method="setTitle" translate="title" module="catalog"><title>Site Map</title></action>
387
- </reference>
388
- <update handle="catalog_seo_sitemap" />
389
- <reference name="seo.sitemap.container">
390
- <action method="setTitle" translate="title" module="catalog"><title>Products</title></action>
391
- <block type="catalog/seo_sitemap_product" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
392
- <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
393
- <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
394
- <action method="setItemsTitle" translate="title" module="catalog"><title>products</title></action>
395
- </block>
396
- </reference>
397
- <reference name="seo.sitemap.links">
398
- <action method="addLink" translate="label title" module="catalog"><label>Categories Sitemap</label><url helper="catalog/map/getCategoryUrl"/><title>Categories Sitemap</title></action>
399
- </reference>
400
- </catalog_seo_sitemap_product>
401
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/layout/catalogsearch.xml DELETED
@@ -1,144 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Academic Free License (AFL 3.0)
9
- * that is bundled with this package in the file LICENSE_AFL.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/afl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category design
23
- * @package base_default
24
- * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
25
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
- */
27
-
28
- -->
29
- <layout version="0.1.0">
30
-
31
- <default>
32
- <reference name="header">
33
- <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>
34
- </reference>
35
- <reference name="footer_links">
36
- <action method="addLink" translate="label title" module="catalogsearch" ifconfig="catalog/seo/search_terms">
37
- <label>Search Terms</label>
38
- <url helper="catalogsearch/getSearchTermUrl" />
39
- <title>Search Terms</title>
40
- </action>
41
- <action method="addLink" translate="label title" module="catalogsearch">
42
- <label>Advanced Search</label>
43
- <url helper="catalogsearch/getAdvancedSearchUrl" />
44
- <title>Advanced Search</title>
45
- </action>
46
- </reference>
47
- </default>
48
-
49
- <catalogsearch_result_index translate="label">
50
- <label>Quick Search Form</label>
51
- <reference name="root">
52
- <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
53
- </reference>
54
- <reference name="right">
55
- <block type="catalogsearch/layer" name="catalogsearch.leftnav" before="-" template="catalog/layer/view.phtml"/>
56
- </reference>
57
- <reference name="content">
58
- <block type="catalogsearch/result" name="search.result" template="catalogsearch/result.phtml">
59
- <block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
60
- <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
61
- <block type="page/html_pager" name="product_list_toolbar_pager"/>
62
- </block>
63
- <action method="setColumnCount"><count>3</count></action>
64
- <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>4</count></action>
65
- <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>4</count></action>
66
- <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>3</count></action>
67
- <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>3</count></action>
68
- <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>2</count></action>
69
- <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
70
- </block>
71
- <action method="setListOrders"/>
72
- <action method="setListModes"/>
73
- <action method="setListCollection"/>
74
- </block>
75
- </reference>
76
- </catalogsearch_result_index>
77
-
78
- <catalogsearch_advanced_index translate="label">
79
- <label>Advanced Search Form</label>
80
- <!-- Mage_Catalogsearch -->
81
- <reference name="root">
82
- <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
83
- </reference>
84
- <reference name="head">
85
- <action method="setTitle" translate="title" module="catalogsearch"><title>Advanced Search</title></action>
86
- <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
87
- <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
88
- <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
89
- </reference>
90
- <reference name="content">
91
- <block type="catalogsearch/advanced_form" name="catalogsearch_advanced_form" template="catalogsearch/advanced/form.phtml"/>
92
- <block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
93
- </reference>
94
- </catalogsearch_advanced_index>
95
-
96
- <!--
97
- Advanced search results
98
- -->
99
-
100
- <catalogsearch_advanced_result translate="label">
101
- <label>Advanced Search Result</label>
102
- <update handle="page_two_columns_right" />
103
- <!-- Mage_Catalogsearch -->
104
- <reference name="root">
105
- <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
106
- </reference>
107
- <reference name="content">
108
- <block type="catalogsearch/advanced_result" name="catalogsearch_advanced_result" template="catalogsearch/advanced/result.phtml">
109
- <block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
110
- <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
111
- <block type="page/html_pager" name="product_list_toolbar_pager"/>
112
- </block>
113
- <action method="setColumnCount"><count>2</count></action>
114
- <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>4</count></action>
115
- <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>4</count></action>
116
- <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>3</count></action>
117
- <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>3</count></action>
118
- <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>2</count></action>
119
- <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
120
- </block>
121
- <action method="setListOrders"/>
122
- <action method="setListModes"/>
123
- <action method="setListCollection"/>
124
- </block>
125
- </reference>
126
- </catalogsearch_advanced_result>
127
-
128
- <catalogsearch_term_popular translate="label">
129
- <label>Popular Search Terms</label>
130
- <remove name="right"/>
131
- <remove name="left"/>
132
-
133
- <reference name="head">
134
- <action method="setTitle" translate="title" module="catalogsearch"><title>Search Terms</title></action>
135
- </reference>
136
- <reference name="root">
137
- <action method="setTemplate"><template>page/1column.phtml</template></action>
138
- </reference>
139
- <reference name="content">
140
- <block type="catalogsearch/term" name="seo.searchterm" template="catalogsearch/term.phtml"/>
141
- </reference>
142
- </catalogsearch_term_popular>
143
-
144
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/layout/jmtabs.xml DELETED
@@ -1,58 +0,0 @@
1
- <?xml version="1.0"?>
2
- <layout version="0.1.0">
3
- <default>
4
- <reference name="head">
5
- <action method="addCss"><stylesheet>joomlart/jmtabs/css/jm.tabs.css</stylesheet></action>
6
- </reference>
7
- <!-- <reference name="content">
8
- <block type="joomlart_jmtabs/core" name="jmtabs">
9
- <action method="set">
10
- <show>1</show>
11
- <title>JM Tabssss</title>
12
- <style>pyrite</style>
13
- <height>auto</height>
14
- <width>100</width>
15
- <position>top</position>
16
- <animation>fadeIn</animation>
17
- <event>click</event>
18
- <duration>1000</duration>
19
- <skipanim>false</skipanim>
20
- </action>
21
- <action method="addTabs_staticblock">
22
- <title>Tab 1</title>
23
- <identifier>footer_links</identifier>
24
- </action>
25
- <action method="addTabs_staticblock">
26
- <title>header_links</title>
27
- <identifier>header_links</identifier>
28
- </action>
29
- <action method="addTabs_staticblock">
30
- <title>electronics-landing</title>
31
- <identifier>electronics-landing</identifier>
32
- </action>
33
- <action method="addTabs_staticblock">
34
- <title>cellphones-landing</title>
35
- <identifier>cellphones-landing</identifier>
36
- </action>
37
- <action method="addTabs_block">
38
- <title>jmproducts</title>
39
- <block>joomlart_jmproducts/list</block>
40
- <template>joomlart/jmproducts/list.phtml</template>
41
- <alias>tab1-jmproducts</alias>
42
- </action>
43
- <action method="addTabs_block">
44
- <title>jmproductsspotlight</title>
45
- <block>joomlart_jmproductsspotlight/list</block>
46
- <template>joomlart/jmproductsspotlight/list.phtml</template>
47
- <alias>tab1-jmproductsspotlight</alias>
48
- </action>
49
- <action method="addTabs_block">
50
- <title>jmcategorylist</title>
51
- <block>joomlart_jmcategorylist/list</block>
52
- <template>joomlart/jmcategorylist/list.phtml</template>
53
- <alias>tab1-jmcategorylist</alias>
54
- </action>
55
- </block>
56
- </reference>-->
57
- </default>
58
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/layout/newsletter.xml DELETED
@@ -1,69 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Academic Free License (AFL 3.0)
9
- * that is bundled with this package in the file LICENSE_AFL.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/afl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category design
23
- * @package base_default
24
- * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
25
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
- */
27
-
28
- -->
29
- <layout version="0.1.0">
30
-
31
- <!--
32
- Default layout, loads most of the pages
33
- -->
34
-
35
- <default>
36
-
37
- <!-- Mage_Newsletter
38
- <reference name="left">
39
- <block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
40
- </reference> -->
41
-
42
- </default>
43
-
44
- <!--
45
- Customer account pages, rendered for all tabs in dashboard
46
- -->
47
-
48
- <customer_account>
49
- <!-- Mage_Newsletter -->
50
- <reference name="customer_account_navigation">
51
- <action method="addLink" translate="label" module="newsletter"><name>newsletter</name><path>newsletter/manage/</path><label>Newsletter Subscriptions</label></action>
52
- </reference>
53
- <remove name="left.newsletter"/>
54
- </customer_account>
55
-
56
- <newsletter_manage_index translate="label">
57
- <label>Customer My Account Newsletter Subscriptions</label>
58
- <update handle="customer_account"/>
59
- <reference name="my.account.wrapper">
60
- <block type="customer/newsletter" name="customer_newsletter">
61
- <block type="page/html_wrapper" name="customer.newsletter.form.before" as="form_before" translate="label">
62
- <label>Newsletter Subscription Form Before</label>
63
- <action method="setMayBeInvisible"><value>1</value></action>
64
- </block>
65
- </block>
66
- </reference>
67
- </newsletter_manage_index>
68
-
69
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/layout/page.xml DELETED
@@ -1,254 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Academic Free License (AFL 3.0)
9
- * that is bundled with this package in the file LICENSE_AFL.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/afl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category design
23
- * @package base_default
24
- * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
25
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
- */
27
- -->
28
- <layout version="0.1.0">
29
- <!--
30
- Default layout, loads most of the pages
31
- -->
32
-
33
- <default translate="label" module="page">
34
- <label>All Pages</label>
35
- <block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">
36
-
37
- <block type="page/html_head" name="head" as="head">
38
- <action method="addJs"><script>prototype/prototype.js</script></action>
39
-
40
- <action method="addJs"><script>lib/ccard.js</script></action>
41
- <action method="addJs"><script>prototype/validation.js</script></action>
42
- <action method="addJs"><script>scriptaculous/builder.js</script></action>
43
- <action method="addJs"><script>scriptaculous/effects.js</script></action>
44
- <action method="addJs"><script>scriptaculous/dragdrop.js</script></action>
45
- <action method="addJs"><script>scriptaculous/controls.js</script></action>
46
- <action method="addJs"><script>scriptaculous/slider.js</script></action>
47
- <action method="addJs"><script>varien/js.js</script></action>
48
- <action method="addJs"><script>varien/form.js</script></action>
49
- <action method="addJs"><script>varien/menu.js</script></action>
50
- <action method="addJs"><script>mage/translate.js</script></action>
51
- <action method="addJs"><script>mage/cookies.js</script></action>
52
-
53
- <block type="page/js_cookie" name="js_cookies" template="page/js/cookie.phtml"/>
54
- <action method="addCss"><stylesheet>css/addons.css</stylesheet></action>
55
- <action method="addCss"><stylesheet>css/layout.css</stylesheet></action>
56
- <action method="addCss"><stylesheet>css/theme.css</stylesheet></action>
57
- <action method="addCss"><stylesheet>css/menu.css</stylesheet></action>
58
- <action method="addCss"><stylesheet>css/colorbox.css</stylesheet></action>
59
- <action method="addItem"><type>skin_css</type><name>css/ie.css</name><params/><if>IE</if></action>
60
- <action method="addCss"><stylesheet>css/off-canvas.css</stylesheet></action>
61
- <action method="addCss"><stylesheet>css/widgets.css</stylesheet></action>
62
- <action method="addCss"><stylesheet>css/print.css</stylesheet><params>media="print"</params></action>
63
- <action method="addCss"><stylesheet>css/layout-tablet.css</stylesheet><params>media="only screen and (min-width:720px) and (max-width: 919px)"</params></action>
64
- <action method="addCss"><stylesheet>css/layout-mobile.css</stylesheet><params>media="only screen and (max-width:719px)"</params></action>
65
- <action method="addCss"><stylesheet>css/layout-mobile-portrait.css</stylesheet><params>media="only screen and (max-width:479px)"</params></action>
66
- <action method="addItem"><type>js</type><name>lib/ds-sleight.js</name><params/><if>lt IE 7</if></action>
67
- <action method="addItem"><type>skin_js</type><name>js/ie6.js</name><params/><if>lt IE 7</if></action>
68
- </block>
69
-
70
- <block type="core/text_list" name="after_body_start" as="after_body_start" translate="label">
71
- <label>Page Top</label>
72
- </block>
73
-
74
- <block type="page/html_notices" name="global_notices" as="global_notices" template="page/html/notices.phtml" />
75
-
76
- <block type="page/html_header" name="header" as="header">
77
- <block type="page/template_links" name="top.links" as="topLinks"/>
78
- <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
79
- <block type="core/text_list" name="top.menu" as="topMenu" translate="label">
80
- <label>Navigation Bar</label>
81
- <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
82
- </block>
83
- <block type="checkout/cart_sidebar" name="top_cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
84
- <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
85
- <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
86
- <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
87
- <block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
88
- <label>Shopping Cart Sidebar Extra Actions</label>
89
- <block type="paypal/express_shortcut" name="checkout.cart.methods.paypal_express.top" before="-" template="paypal/express/shortcut.phtml">
90
- <action method="setIsQuoteAllowed"><value>1</value></action>
91
- </block>
92
- </block>
93
- </block>
94
- </block>
95
-
96
- <block type="page/html_wrapper" name="top.container" as="topContainer" translate="label">
97
- <label>Page Header</label>
98
- <action method="setElementClass"><value>top-container</value></action>
99
- </block>
100
-
101
- <block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
102
-
103
- <block type="core/text_list" name="left" as="left" translate="label">
104
- <label>Left Column</label>
105
- </block>
106
-
107
- <block type="core/messages" name="global_messages" as="global_messages"/>
108
- <block type="core/messages" name="messages" as="messages"/>
109
-
110
- <block type="core/text_list" name="content" as="content" translate="label">
111
- <label>Main Content Area</label>
112
- </block>
113
-
114
- <block type="core/text_list" name="content-mass-top" as="content-mass-top" translate="label">
115
- <label>Content Mass Top</label>
116
- </block>
117
-
118
- <block type="core/text_list" name="content-mass-bottom" as="content-mass-bottom" translate="label">
119
- <label>Content Mass Bottom</label>
120
- </block>
121
-
122
- <block type="core/text_list" name="topsl" as="topsl" translate="label">
123
- <label>Top Spotlight</label>
124
- </block>
125
-
126
- <block type="core/text_list" name="topsl1" as="topsl1" translate="label">
127
- <label>Top Spotlight 1</label>
128
- </block>
129
-
130
- <block type="core/text_list" name="botsl" as="botsl" translate="label">
131
- <label>Bottom Spotlight</label>
132
- </block>
133
-
134
- <block type="core/text_list" name="botsl1" as="botsl1" translate="label">
135
- <label>Bottom Spotlight 1</label>
136
- </block>
137
-
138
- <!-- Bottom Spotlight - botsl 1-->
139
- <reference name="botsl1">
140
- <block type="core/text_list" name="botsl.menu" as="botslMenu" translate="label">
141
- <label>Navigation Bar</label>
142
-
143
- </block>
144
- <block type="cms/block" name="position-10">
145
- <action method="setBlockId"><block_id>position-10</block_id></action>
146
- </block>
147
- <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/footer_links.phtml"/>
148
- <block type="cms/block" name="position-12">
149
- <action method="setBlockId"><block_id>position-12</block_id></action>
150
- </block>
151
- <block type="cms/block" name="position-13">
152
- <action method="setBlockId"><block_id>position-13</block_id></action>
153
- </block>
154
- </reference>
155
- <!-- Bottom Spotlight - botsl 1-->
156
-
157
- <block type="core/text_list" name="right" as="right" translate="label">
158
- <label>Right Column</label>
159
- </block>
160
-
161
- <block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
162
- <block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label">
163
- <label>Page Footer</label>
164
- <action method="setElementClass"><value>bottom-container</value></action>
165
- </block>
166
- <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>
167
- </block>
168
-
169
- <block type="core/text_list" name="before_body_end" as="before_body_end" translate="label">
170
- <label>Page Bottom</label>
171
- </block>
172
- </block>
173
-
174
- <block type="core/profiler" output="toHtml" name="core_profiler"/>
175
-
176
- </default>
177
-
178
- <print translate="label" module="page">
179
- <label>All Pages (Print Version)</label>
180
- <!-- Mage_Page -->
181
- <block type="page/html" name="root" output="toHtml" template="page/print.phtml">
182
-
183
- <block type="page/html_head" name="head" as="head">
184
- <action method="addJs"><script>prototype/prototype.js</script></action>
185
- <action method="addJs"><script>mage/translate.js</script></action>
186
- <action method="addJs"><script>lib/ccard.js</script></action>
187
- <action method="addJs"><script>prototype/validation.js</script></action>
188
- <action method="addJs"><script>varien/js.js</script></action>
189
-
190
- <action method="addCss"><stylesheet>css/addons.css</stylesheet></action>
191
- <action method="addCss"><stylesheet>css/layout.css</stylesheet></action>
192
- <action method="addCss"><stylesheet>css/theme.css</stylesheet></action>
193
- <action method="addItem"><type>skin_css</type><name>css/ie.css</name><params/><if>lt IE 8</if></action>
194
- <action method="addCss"><stylesheet>css/widgets.css</stylesheet></action>
195
- <action method="addCss"><stylesheet>css/print.css</stylesheet><params>media="print"</params></action>
196
-
197
- <action method="addItem"><type>js</type><name>lib/ds-sleight.js</name><params/><if>lt IE 7</if></action>
198
- <action method="addItem"><type>skin_js</type><name>js/ie6.js</name><params/><if>lt IE 7</if></action>
199
-
200
- </block>
201
-
202
- <block type="core/text_list" name="content" as="content" translate="label">
203
- <label>Main Content Area</label>
204
- </block>
205
-
206
- </block>
207
- </print>
208
-
209
- <!-- Custom page layout handles -->
210
- <page_empty translate="label">
211
- <label>All Empty Layout Pages</label>
212
- <reference name="root">
213
- <action method="setTemplate"><template>page/empty.phtml</template></action>
214
- <!-- Mark root page block that template is applied -->
215
- <action method="setIsHandle"><applied>1</applied></action>
216
- </reference>
217
- </page_empty>
218
-
219
- <page_one_column translate="label">
220
- <label>All One-Column Layout Pages</label>
221
- <reference name="root">
222
- <action method="setTemplate"><template>page/1column.phtml</template></action>
223
- <!-- Mark root page block that template is applied -->
224
- <action method="setIsHandle"><applied>1</applied></action>
225
- </reference>
226
- </page_one_column>
227
-
228
- <page_two_columns_left translate="label">
229
- <label>All Two-Column Layout Pages (Left Column)</label>
230
- <reference name="root">
231
- <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
232
- <!-- Mark root page block that template is applied -->
233
- <action method="setIsHandle"><applied>1</applied></action>
234
- </reference>
235
- </page_two_columns_left>
236
-
237
- <page_two_columns_right translate="label">
238
- <label>All Two-Column Layout Pages (Right Column)</label>
239
- <reference name="root">
240
- <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
241
- <!-- Mark root page block that template is applied -->
242
- <action method="setIsHandle"><applied>1</applied></action>
243
- </reference>
244
- </page_two_columns_right>
245
-
246
- <page_three_columns translate="label">
247
- <label>All Three-Column Layout Pages</label>
248
- <reference name="root">
249
- <action method="setTemplate"><template>page/3columns.phtml</template></action>
250
- <!-- Mark root page block that template is applied -->
251
- <action method="setIsHandle"><applied>1</applied></action>
252
- </reference>
253
- </page_three_columns>
254
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/layout/review.xml DELETED
@@ -1,133 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Academic Free License (AFL 3.0)
9
- * that is bundled with this package in the file LICENSE_AFL.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/afl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category design
23
- * @package base_default
24
- * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
25
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
- */
27
-
28
- -->
29
- <layout version="0.1.0">
30
-
31
- <customer_account>
32
- <!-- Mage_Review -->
33
- <reference name="customer_account_navigation">
34
- <action method="addLink" translate="label" module="review"><name>reviews</name><path>review/customer</path><label>My Product Reviews</label></action>
35
- </reference>
36
-
37
- </customer_account>
38
-
39
- <!--
40
- Customer account home dashboard layout
41
- -->
42
-
43
- <customer_account_index>
44
-
45
- <!-- Mage_Review -->
46
- <reference name="customer_account_dashboard">
47
- <block type="review/customer_recent" name="customer_account_dashboard_info1" as="info1" template="review/customer/recent.phtml"/>
48
- </reference>
49
-
50
- </customer_account_index>
51
-
52
-
53
- <!--
54
- Product reviews page (?)
55
- -->
56
-
57
- <reviews>
58
- <!-- Mage_Review -->
59
- <reference name="root">
60
- <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
61
- </reference>
62
- </reviews>
63
-
64
- <!--
65
- Product reviews page
66
- -->
67
-
68
- <review_product_list translate="label">
69
- <label>Catalog Product Reviews List</label>
70
- <reference name="root">
71
- <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
72
- </reference>
73
- <reference name="head">
74
- <action method="addJs"><script>varien/product.js</script></action>
75
- <action method="addJs"><script>varien/configurable.js</script></action>
76
- </reference>
77
- <reference name="content">
78
- <block type="review/product_view" name="product.info" template="catalog/product/view.phtml">
79
- <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml">
80
- <action method="disableGallery"/>
81
- </block>
82
- <block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
83
- <block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml">
84
- <!-- workaround: a better place for this code is in paypal.xml -->
85
- <block type="page/html_wrapper" name="review.product.info.addtocart.paypal.wrapper" translate="label" module="paypal">
86
- <label>PayPal Express Checkout Shortcut Wrapper</label>
87
- <block type="paypal/express_shortcut" name="review.product.info.addtocart.paypal" template="paypal/express/shortcut.phtml">
88
- <action method="setIsInCatalogProduct"><value>1</value></action>
89
- </block>
90
- </block>
91
- </block>
92
- <block type="catalog/product_view" name="product.tierprices" as="tierprices" template="catalog/product/view/tierprices.phtml"/>
93
- <block type="core/template" name="product.info.other" as="other" template="review/product/view/other.phtml"/>
94
- <block type="page/html_pager" name="product_review_list.toolbar" />
95
- <block type="core/template" name="product_review_list.count" template="review/product/view/count.phtml" />
96
- <block type="review/product_view_list" name="product.info.product_additional_data" as="product_reviews" template="review/product/view/list.phtml" />
97
- <block type="review/form" name="product.review.form" as="review_form">
98
- <block type="page/html_wrapper" name="product.review.form.fields.before" as="form_fields_before" translate="label">
99
- <label>Review Form Fields Before</label>
100
- <action method="setMayBeInvisible"><value>1</value></action>
101
- </block>
102
- </block>
103
- </block>
104
- </reference>
105
- </review_product_list>
106
-
107
- <review_product_view translate="label">
108
- <label>Catalog Product Review View</label>
109
- <reference name="root">
110
- <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
111
- </reference>
112
- <reference name="content">
113
- <block type="review/view" name="review_view"/>
114
- </reference>
115
- </review_product_view>
116
-
117
- <review_customer_index translate="label">
118
- <label>Customer My Account Product Reviews</label>
119
- <update handle="customer_account"/>
120
- <reference name="my.account.wrapper">
121
- <block type="review/customer_list" name="review_customer_list" template="review/customer/list.phtml"/>
122
- </reference>
123
- </review_customer_index>
124
-
125
- <review_customer_view translate="label">
126
- <label>Customer My Account Review Details</label>
127
- <update handle="customer_account"/>
128
- <reference name="my.account.wrapper">
129
- <block type="review/customer_view" name="customers_review"/>
130
- </reference>
131
- </review_customer_view>
132
-
133
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/locale/en_US/translate.csv DELETED
@@ -1,4 +0,0 @@
1
- Search entire store here�,Search�
2
- Sign Up for Our Newsletter:,Make sure you dont miss interesting happenings by joining our newsletter program. We don't do spam. Ever. Because that sucks.
3
- Newsletter,Monthly Newsletter
4
- Subscribe,Go
 
 
 
 
app/design/frontend/default/jm_trex/template/catalog/category/view.phtml DELETED
@@ -1,79 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- * Category view template
30
- *
31
- * @see Mage_Catalog_Block_Category_View
32
- */
33
- ?>
34
- <?php
35
- $_helper = $this->helper('catalog/output');
36
- $_category = $this->getCurrentCategory();
37
- $_imgHtml = '';
38
- if ($_imgUrl = $_category->getImageUrl()) {
39
- $_imgHtml = '<p class="category-image"><img src="'.$_imgUrl.'" alt="'.$this->htmlEscape($_category->getName()).'" title="'.$this->htmlEscape($_category->getName()).'" /></p>';
40
- $_imgHtml = $_helper->categoryAttribute($_category, $_imgHtml, 'image');
41
- }
42
- ?>
43
- <div class="page-title category-title">
44
- <?php if($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?>
45
- <a href="<?php echo $this->getRssLink() ?>" class="link-rss"><?php echo $this->__('Subscribe to RSS Feed') ?></a>
46
- <?php endif; ?>
47
- <h1><?php echo $_helper->categoryAttribute($_category, $_category->getName(), 'name') ?></h1>
48
- </div>
49
-
50
- <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
51
-
52
- <?php if($_description=$this->getCurrentCategory()->getDescription()): ?>
53
- <div class="category-description std">
54
- <?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?>
55
- </div>
56
- <?php endif; ?>
57
-
58
- <?php if($this->isContentMode()): ?>
59
- <?php echo $this->getCmsBlockHtml() ?>
60
-
61
- <?php elseif($this->isMixedMode()): ?>
62
- <?php echo $this->getCmsBlockHtml() ?>
63
- <?php echo $this->getProductListHtml() ?>
64
-
65
- <?php else: ?>
66
- <?php echo $this->getProductListHtml() ?>
67
- <?php endif; ?>
68
-
69
- <?php if($_imgUrl): ?>
70
-
71
- <?php
72
- echo "<script type=\"text/javascript\">\n";
73
- echo "jQuery(window).load(function () {";
74
- echo "jQuery('.catalog-category-view #ja-container .main').css('background-image','url($_imgUrl)');\n";
75
- echo "})";
76
- echo "</script>\n\n";
77
- ?>
78
-
79
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/catalog/product/list.phtml DELETED
@@ -1,143 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- * Product list template
30
- *
31
- * @see Mage_Catalog_Block_Product_List
32
- */
33
- ?>
34
- <?php
35
- $_productCollection=$this->getLoadedProductCollection();
36
- $_helper = $this->helper('catalog/output');
37
- ?>
38
- <?php if(!$_productCollection->count()): ?>
39
- <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
40
- <?php else: ?>
41
- <div class="category-products <?php if($this->getMode()=='grid'): ?> listing-type-grid <?php endif; ?>">
42
- <?php echo $this->getToolbarHtml() ?>
43
- <?php // List mode ?>
44
- <?php if($this->getMode()!='grid'): ?>
45
- <?php $_iterator = 0; ?>
46
- <ol class="products-list" id="products-list">
47
- <?php foreach ($_productCollection as $_product): ?>
48
- <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>"><div class="item-inner clearfix">
49
- <?php // Product Image ?>
50
- <div class="product-image-wrap">
51
- <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(200); ?>" width="200" height="200" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
52
- <?php if($_product->isSaleable()): ?>
53
- <p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
54
- <?php else: ?>
55
- <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
56
- <?php endif; ?>
57
- <ul class="add-to-links">
58
- <?php if ($this->helper('wishlist')->isAllow()) : ?>
59
- <li><a title="<?php echo $this->__('Add to Wishlist') ?>" href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
60
- <?php endif; ?>
61
- <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
62
- <li><span class="separator">|</span> <a title="<?php echo $this->__('Add to Compare') ?>" href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
63
- <?php endif; ?>
64
- </ul>
65
- </div>
66
- <?php // Product description ?>
67
- <div class="product-shop">
68
- <div class="f-fix">
69
- <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
70
- <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
71
- <?php if($_product->getRatingSummary()): ?>
72
- <?php echo $this->getReviewsSummaryHtml($_product) ?>
73
- <?php endif; ?>
74
- <?php echo $this->getPriceHtml($_product, true) ?>
75
- <div class="desc std">
76
- <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
77
- <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
78
- </div>
79
- </div>
80
- </div>
81
- </div></li>
82
- <?php endforeach; ?>
83
- </ol>
84
- <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
85
-
86
- <?php else: ?>
87
-
88
- <?php // Grid Mode ?>
89
-
90
- <?php $_collectionSize = $_productCollection->count() ?>
91
- <?php $_columnCount = $this->getColumnCount(); ?>
92
- <ul class="products-grid">
93
- <?php $i=0; foreach ($_productCollection as $_product): ?>
94
- <?php if ($i++%$_columnCount==0):
95
-
96
- $width = 100;
97
- // -- added by Duchh 15/06/2012
98
- if ($_columnCount) $width = 100/$_columnCount;
99
- $width = "style=\"width:{$width}%;\"";
100
- $return = false;
101
-
102
- ?>
103
- <?php endif ?>
104
- <li class="item item-grid<?php echo $_columnCount; ?> <?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>" <?php echo $width; ?>>
105
- <p class="product-image">
106
- <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(175); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
107
- </p>
108
- <div class="product-information">
109
- <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
110
- <?php if($_product->getRatingSummary()): ?>
111
- <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
112
- <?php endif; ?>
113
- <?php echo $this->getPriceHtml($_product, true) ?>
114
- <div class="actions">
115
- <?php if($_product->isSaleable()): ?>
116
- <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
117
- <?php else: ?>
118
- <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
119
- <?php endif; ?>
120
- <ul class="add-to-links">
121
- <?php if ($this->helper('wishlist')->isAllow()) : ?>
122
- <li><a title="<?php echo $this->__('Add to Wishlist') ?>" href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
123
- <?php endif; ?>
124
- <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
125
- <li><span class="separator">|</span> <a title="<?php echo $this->__('Add to Compare') ?>" href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
126
- <?php endif; ?>
127
- </ul>
128
- </div>
129
- </div>
130
- </li>
131
- <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
132
-
133
- <?php endif ?>
134
- <?php endforeach ?>
135
- </ul>
136
- <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
137
- <?php endif; ?>
138
-
139
- <div class="toolbar-bottom">
140
- <?php echo $this->getToolbarHtml() ?>
141
- </div>
142
- </div>
143
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/catalog/product/list/toolbar.phtml DELETED
@@ -1,94 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- * Product list toolbar
30
- *
31
- * @see Mage_Catalog_Block_Product_List_Toolbar
32
- */
33
- ?>
34
- <?php if($this->getCollection()->getSize()): ?>
35
- <div class="toolbar">
36
- <?php if( $this->isExpanded() ): ?>
37
- <div class="sorter">
38
- <?php if( $this->isEnabledViewSwitcher() ): ?>
39
- <p class="view-mode">
40
- <?php $_modes = $this->getModes(); ?>
41
- <?php if($_modes && count($_modes)>1): ?>
42
- <label><?php echo $this->__('View as') ?>:</label>
43
- <?php foreach ($this->getModes() as $_code=>$_label): ?>
44
- <?php if($this->isModeActive($_code)): ?>
45
- <strong title="<?php echo $_label ?>" class="<?php echo strtolower($_code); ?>"><?php echo $_label ?></strong>&nbsp;
46
- <?php else: ?>
47
- <a href="<?php echo $this->getModeUrl($_code) ?>" title="<?php echo $_label ?>" class="<?php echo strtolower($_code); ?>"><?php echo $_label ?></a>&nbsp;
48
- <?php endif; ?>
49
- <?php endforeach; ?>
50
- <?php endif; ?>
51
- </p>
52
- <?php endif; ?>
53
-
54
- <div class="sort-by">
55
- <label><?php echo $this->__('Sort By') ?></label>
56
- <select onchange="setLocation(this.value)">
57
- <?php foreach($this->getAvailableOrders() as $_key=>$_order): ?>
58
- <option value="<?php echo $this->getOrderUrl($_key, 'asc') ?>"<?php if($this->isOrderCurrent($_key)): ?> selected="selected"<?php endif; ?>>
59
- <?php echo $this->__($_order) ?>
60
- </option>
61
- <?php endforeach; ?>
62
- </select>
63
- <?php if($this->getCurrentDirection() == 'desc'): ?>
64
- <a href="<?php echo $this->getOrderUrl(null, 'asc') ?>" title="<?php echo $this->__('Set Ascending Direction') ?>"><img src="<?php echo $this->getSkinUrl('images/i_desc_arrow.gif') ?>" alt="<?php echo $this->__('Set Ascending Direction') ?>" class="v-middle" /></a>
65
- <?php else: ?>
66
- <a href="<?php echo $this->getOrderUrl(null, 'desc') ?>" title="<?php echo $this->__('Set Descending Direction') ?>"><img src="<?php echo $this->getSkinUrl('images/i_asc_arrow.gif') ?>" alt="<?php echo $this->__('Set Descending Direction') ?>" class="v-middle" /></a>
67
- <?php endif; ?>
68
- </div>
69
-
70
- <div class="limiter">
71
- <label><?php echo $this->__('Show') ?></label>
72
- <select onchange="setLocation(this.value)">
73
- <?php foreach ($this->getAvailableLimit() as $_key=>$_limit): ?>
74
- <option value="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif ?>>
75
- <?php echo $_limit ?> <?php echo $this->__('per page') ?>
76
- </option>
77
- <?php endforeach; ?>
78
- </select>
79
- </div>
80
- </div>
81
- <?php endif; ?>
82
- <div class="pager">
83
- <p class="amount">
84
- <?php if($this->getLastPageNum()>1): ?>
85
- <?php echo $this->__('Items %s to %s of %s total', $this->getFirstNum(), $this->getLastNum(), $this->getTotalNum()) ?>
86
- <?php else: ?>
87
- <strong><?php echo $this->__('%s Item(s)', $this->getTotalNum()) ?></strong>
88
- <?php endif; ?>
89
- </p>
90
- <?php echo $this->getPagerHtml() ?>
91
-
92
- </div>
93
- </div>
94
- <?php endif ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/catalog/product/list/upsell.phtml DELETED
@@ -1,62 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
-
28
- <?php if(count($this->getItemCollection()->getItems())): ?>
29
- <?php
30
- $width = 100;
31
- // -- added by Duchh 13/08/2012
32
- $width = 100/$this->getColumnCount();
33
- $width = "style=\"width:{$width}%;\"";
34
- $return = false;
35
- ?>
36
- <div class="box-collateral box-up-sell">
37
- <h2><span><?php echo $this->__('You may also be interested in the following product(s)') ?></span></h2>
38
- <div class="listing-type-grid category-products" id="upsell-product-table"><ul class="products-grid">
39
- <?php // $this->setColumnCount(5); // uncomment this line if you want to have another number of columns. also can be changed in layout ?>
40
- <?php $this->resetItemsIterator() ?>
41
- <?php for($_i=0;$_i<$this->getRowCount();$_i++): ?>
42
- <?php for($_j=0;$_j<$this->getColumnCount();$_j++): ?>
43
- <?php if($_link=$this->getIterableItem()): ?>
44
- <li class="item item-grid <?php if($this->getColumnCount()==$_j+1): echo 'last'; endif; ?>" <?php echo $width; ?>>
45
- <p class="product-image">
46
- <a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_link->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_link, 'small_image')->resize(125) ?>" width="125" height="125" alt="<?php echo $this->htmlEscape($_link->getName()) ?>" /></a>
47
- </p>
48
- <div class="product-information">
49
- <h2 class="product-name">
50
- <a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_link->getName()) ?>"><?php echo $this->htmlEscape($_link->getName()) ?></a>
51
- </h2>
52
- <?php echo $this->getPriceHtml($_link, true, '-upsell') ?>
53
- <?php echo $this->getReviewsSummaryHtml($_link) ?>
54
- </div>
55
- </li>
56
- <?php endif; ?>
57
- <?php endfor; ?>
58
- <?php endfor; ?>
59
- </ul></div>
60
- <script type="text/javascript">decorateTable('upsell-product-table')</script>
61
- </div>
62
- <?php endif ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/catalog/product/view.phtml DELETED
@@ -1,200 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 2011 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
- /**
28
- * Product view template
29
- *
30
- * @see Mage_Catalog_Block_Product_View
31
- * @see Mage_Review_Block_Product_View
32
- */
33
- ?>
34
- <?php $_helper = $this->helper('catalog/output'); ?>
35
- <?php $_product = $this->getProduct(); ?>
36
- <script type="text/javascript">
37
- var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
38
- if( jQuery ){
39
- jQuery( "#ja-tab-products" ).ready( function($) {
40
- $( "#ja-tab-products" ).jaContentTabs();
41
- } );
42
- }
43
- </script>
44
- <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
45
- <div class="product-view">
46
- <div class="product-essential">
47
- <form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
48
- <div class="no-display">
49
- <input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
50
- <input type="hidden" name="related_product" id="related-products-field" value="" />
51
- </div>
52
- <div class="product-img-box">
53
- <?php echo $this->getChildHtml('media') ?>
54
- </div>
55
- <div class="product-shop">
56
- <div class="product-name">
57
- <h1><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h1>
58
- </div>
59
-
60
- <?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
61
- <?php echo $this->getChildHtml('alert_urls') ?>
62
- <?php echo $this->getChildHtml('product_type_data') ?>
63
- <?php if ($this->canEmailToFriend()): ?>
64
- <p class="email-friend"><a href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php echo $this->__('Email to a Friend') ?></a></p>
65
- <?php endif; ?>
66
- <div class="clearer"></div>
67
- <?php echo $this->getTierPriceHtml() ?>
68
- <?php echo $this->getChildHtml('extrahint') ?>
69
-
70
- <?php if (!$this->hasOptions()):?>
71
- <div class="add-to-box">
72
- <?php if($_product->isSaleable()): ?>
73
- <?php echo $this->getChildHtml('addtocart') ?>
74
- <?php if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
75
- <span class="or"><?php echo $this->__('OR') ?></span>
76
- <?php endif; ?>
77
- <?php endif; ?>
78
- <?php echo $this->getChildHtml('addto') ?>
79
- </div>
80
- <?php echo $this->getChildHtml('extra_buttons') ?>
81
- <?php elseif (!$_product->isSaleable()): ?>
82
- <div class="add-to-box">
83
- <?php echo $this->getChildHtml('addto') ?>
84
- </div>
85
- <?php endif; ?>
86
-
87
- <?php if ($_product->getShortDescription()):?>
88
- <div class="short-description">
89
- <h2><?php echo $this->__('Quick Overview') ?></h2>
90
- <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>
91
- </div>
92
- <?php endif;?>
93
-
94
- <?php echo $this->getChildHtml('other');?>
95
-
96
- <?php if ($_product->isSaleable() && $this->hasOptions()):?>
97
- <?php echo $this->getChildChildHtml('container1', '', true, true) ?>
98
- <?php endif;?>
99
-
100
- </div>
101
- <div class="clearer"></div>
102
- <?php if ($_product->isSaleable() && $this->hasOptions()):?>
103
- <?php echo $this->getChildChildHtml('container2', '', true, true) ?>
104
- <?php endif;?>
105
- </form>
106
- <script type="text/javascript">
107
- //<![CDATA[
108
- var productAddToCartForm = new VarienForm('product_addtocart_form');
109
- productAddToCartForm.submit = function(button, url) {
110
- if (this.validator.validate()) {
111
- var form = this.form;
112
- var oldUrl = form.action;
113
-
114
- if (url) {
115
- form.action = url;
116
- }
117
- var e = null;
118
- try {
119
- this.form.submit();
120
- } catch (e) {
121
- }
122
- this.form.action = oldUrl;
123
- if (e) {
124
- throw e;
125
- }
126
-
127
- if (button && button != 'undefined') {
128
- button.disabled = true;
129
- }
130
- }
131
- }.bind(productAddToCartForm);
132
-
133
- productAddToCartForm.submitLight = function(button, url){
134
- if(this.validator) {
135
- var nv = Validation.methods;
136
- delete Validation.methods['required-entry'];
137
- delete Validation.methods['validate-one-required'];
138
- delete Validation.methods['validate-one-required-by-name'];
139
- if (this.validator.validate()) {
140
- if (url) {
141
- this.form.action = url;
142
- }
143
- this.form.submit();
144
- }
145
- Object.extend(Validation.methods, nv);
146
- }
147
- }.bind(productAddToCartForm);
148
- //]]>
149
- </script>
150
- </div>
151
-
152
- <div id="ja-tab-products" class="product-collateral">
153
- <ul class="ja-tab-navigator clearfix">
154
- <?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
155
- <li><a href="<?php echo "#ja-tab-{$alias}"?>"><?php echo $alias; ?></a></li>
156
- <?php endforeach;?>
157
-
158
- <?php if($product_additional_data = $this->getChildHtml('product_additional_data')): ?>
159
- <li><a href="#ja-tabitem-tags"><?php echo $this->__('Product Tags') ?></a></li>
160
- <?php endif; ?>
161
- <?php if($product_reviews = $this->getChildHtml('product_reviews')): ?>
162
- <li><a href="#ja-tabitem-reviews"><?php echo $this->__('Product Reviews') ?></a></li>
163
- <?php endif; ?>
164
- <?php if($review_form = $this->getChildHtml('review_form')): ?>
165
- <li><a href="#ja-tabitem-reviewform"><?php echo $this->__('Write Your Own Review') ?></a></li>
166
- <?php endif; ?>
167
- </ul>
168
- <div class="ja-tab-content">
169
- <?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
170
- <div id="<?php echo "ja-tab-{$alias}"?>">
171
- <div class="box-collateral <?php echo "box-{$alias}"?>">
172
- <?php echo $html; ?>
173
- </div>
174
- </div>
175
- <?php endforeach;?>
176
-
177
- <?php if( $product_additional_data ): ?>
178
- <div id="ja-tabitem-tags">
179
- <?php echo $product_additional_data; ?>
180
- </div>
181
- <?php endif;?>
182
-
183
- <?php if($product_reviews): ?>
184
- <div id="ja-tabitem-reviews">
185
- <?php echo $product_reviews ?>
186
- </div>
187
- <?php endif;?>
188
-
189
- <?php if($review_form): ?>
190
- <div id="ja-tabitem-reviewform">
191
- <?php echo $review_form; ?>
192
- </div>
193
- <?php endif;?>
194
- </div>
195
- </div>
196
- <?php if($upsell_products = $this->getChildHtml('upsell_products')): ?>
197
- <div><?php echo $upsell_products; ?></div>
198
- <?php endif; ?>
199
-
200
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/catalogsearch/form.mini.phtml DELETED
@@ -1,43 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- /* @var $this Mage_Core_Block_Template */
27
- /* @var $catalogSearchHelper Mage_Catalogsearch_Helper_Data */
28
- $catalogSearchHelper = $this->helper('catalogsearch');
29
- ?>
30
- <form id="search_mini_form" action="<?php echo $catalogSearchHelper->getResultUrl() ?>" method="get">
31
- <div class="form-search">
32
- <label for="search"><?php echo $this->__('Search:') ?></label>
33
- <input id="search" type="text" name="<?php echo $catalogSearchHelper->getQueryParamName() ?>" value="<?php echo $catalogSearchHelper->getEscapedQueryText() ?>" class="input-text" maxlength="<?php echo $catalogSearchHelper->getMaxQueryLength();?>" />
34
- <button type="submit" title="<?php echo $this->__('Search') ?>" class="button"><span><span><?php echo $this->__('Search') ?></span></span></button>
35
- <div id="search_autocomplete" class="search-autocomplete"></div>
36
- <script type="text/javascript">
37
- //<![CDATA[
38
- var searchForm = new Varien.searchForm('search_mini_form', 'search', '<?php echo $this->__('Search...') ?>');
39
- searchForm.initAutocomplete('<?php echo $catalogSearchHelper->getSuggestUrl() ?>', 'search_autocomplete');
40
- //]]>
41
- </script>
42
- </div>
43
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/checkout/cart/item/default.phtml DELETED
@@ -1,278 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- $_item = $this->getItem();
29
- $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
30
- $canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
31
- ?>
32
- <tr>
33
- <td><?php if ($this->hasProductUrl()):?><a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>" class="product-image"><?php endif;?><img src="<?php echo $this->getProductThumbnail()->resize(180); ?>" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /><?php if ($this->hasProductUrl()):?></a><?php endif;?></td>
34
- <td>
35
- <h2 class="product-name">
36
- <?php if ($this->hasProductUrl()):?>
37
- <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->htmlEscape($this->getProductName()) ?></a>
38
- <?php else: ?>
39
- <?php echo $this->htmlEscape($this->getProductName()) ?>
40
- <?php endif; ?>
41
- </h2>
42
- <?php if ($_options = $this->getOptionList()):?>
43
- <dl class="item-options">
44
- <?php foreach ($_options as $_option) : ?>
45
- <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
46
- <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
47
- <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
48
- <?php if (isset($_formatedOptionValue['full_view'])): ?>
49
- <div class="truncated_full_value">
50
- <dl class="item-options">
51
- <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
52
- <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
53
- </dl>
54
- </div>
55
- <?php endif; ?>
56
- </dd>
57
- <?php endforeach; ?>
58
- </dl>
59
- <?php endif;?>
60
- <?php if ($messages = $this->getMessages()): ?>
61
- <?php foreach ($messages as $message): ?>
62
- <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $this->escapeHtml($message['text']) ?></p>
63
- <?php endforeach; ?>
64
- <?php endif; ?>
65
- <?php $addInfoBlock = $this->getProductAdditionalInformationBlock(); ?>
66
- <?php if ($addInfoBlock): ?>
67
- <?php echo $addInfoBlock->setItem($_item)->toHtml() ?>
68
- <?php endif;?>
69
- </td>
70
- <td class="a-center">
71
- <?php if ($isVisibleProduct): ?>
72
- <a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo $this->__('Edit item parameters') ?>"><?php echo $this->__('Edit') ?></a>
73
- <?php endif ?>
74
- </td>
75
- <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
76
- <td class="a-center">
77
- <?php if ($isVisibleProduct): ?>
78
- <a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist use-ajax"><?php echo $this->__('Move'); ?></a>
79
- <?php endif ?>
80
- </td>
81
- <?php endif ?>
82
-
83
- <?php if ($canApplyMsrp): ?>
84
- <td class="a-right"<?php if ($this->helper('tax')->displayCartBothPrices()): ?> colspan="2"<?php endif; ?>>
85
- <span class="cart-price">
86
- <span class="cart-msrp-unit"><?php echo $this->__('See price before order confirmation.'); ?></span>
87
- <?php $helpLinkId = 'cart-msrp-help-' . $_item->getId(); ?>
88
- <a id="<?php echo $helpLinkId ?>" href="#" class="map-help-link"><?php echo $this->__("What's this?"); ?></a>
89
- <script type="text/javascript">
90
- Catalog.Map.addHelpLink($('<?php echo $helpLinkId ?>'), "<?php echo $this->__("What's this?") ?>");
91
- </script>
92
- </span>
93
- </td>
94
- <?php else: ?>
95
-
96
- <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
97
- <td class="a-right">
98
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
99
- <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
100
- <?php else: ?>
101
- <span class="cart-price">
102
- <?php endif; ?>
103
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
104
- <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
105
- <?php else: ?>
106
- <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
107
- <?php endif; ?>
108
-
109
- </span>
110
-
111
-
112
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
113
-
114
- <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
115
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
116
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
117
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
118
- <?php endforeach; ?>
119
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
120
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
121
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
122
- <?php endforeach; ?>
123
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
124
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
125
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
126
- <?php endforeach; ?>
127
- <?php endif; ?>
128
- </div>
129
-
130
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
131
- <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
132
- <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
133
- </div>
134
- <?php endif; ?>
135
- <?php endif; ?>
136
- </td>
137
- <?php endif; ?>
138
- <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
139
- <td>
140
- <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
141
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
142
- <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
143
- <?php else: ?>
144
- <span class="cart-price">
145
- <?php endif; ?>
146
-
147
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
148
- <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
149
- <?php else: ?>
150
- <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
151
- <?php endif; ?>
152
-
153
- </span>
154
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
155
-
156
- <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
157
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
158
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
159
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
160
- <?php endforeach; ?>
161
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
162
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
163
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
164
- <?php endforeach; ?>
165
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
166
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
167
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
168
- <?php endforeach; ?>
169
- <?php endif; ?>
170
- </div>
171
-
172
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
173
- <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
174
- <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
175
- </div>
176
- <?php endif; ?>
177
- <?php endif; ?>
178
- </td>
179
- <?php endif; ?>
180
- <?php endif; ?>
181
- <td class="a-center">
182
- <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" title="<?php echo $this->__('Qty') ?>" class="input-text qty" maxlength="12" />
183
- </td>
184
- <?php if (($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
185
- <td class="a-right">
186
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
187
- <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
188
- <?php else: ?>
189
- <span class="cart-price">
190
- <?php endif; ?>
191
-
192
- <?php if ($canApplyMsrp): ?>
193
- <span class="cart-msrp-subtotal">--</span>
194
- <?php else: ?>
195
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
196
- <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
197
- <?php else: ?>
198
- <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
199
- <?php endif; ?>
200
- <?php endif; ?>
201
-
202
- </span>
203
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
204
-
205
- <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
206
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
207
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
208
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
209
- <?php endforeach; ?>
210
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
211
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
212
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
213
- <?php endforeach; ?>
214
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
215
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
216
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
217
- <?php endforeach; ?>
218
- <?php endif; ?>
219
- </div>
220
-
221
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
222
- <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
223
- <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
224
- </div>
225
- <?php endif; ?>
226
- <?php endif; ?>
227
- </td>
228
- <?php endif; ?>
229
- <?php if (($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
230
- <td>
231
- <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
232
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
233
- <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
234
- <?php else: ?>
235
- <span class="cart-price">
236
- <?php endif; ?>
237
-
238
- <?php if ($canApplyMsrp): ?>
239
- <span class="cart-msrp-subtotal">--</span>
240
- <?php else: ?>
241
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
242
- <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
243
- <?php else: ?>
244
- <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
245
- <?php endif; ?>
246
- <?php endif; ?>
247
-
248
- </span>
249
-
250
-
251
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
252
-
253
- <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
254
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
255
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
256
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
257
- <?php endforeach; ?>
258
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
259
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
260
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
261
- <?php endforeach; ?>
262
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
263
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
264
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
265
- <?php endforeach; ?>
266
- <?php endif; ?>
267
- </div>
268
-
269
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
270
- <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
271
- <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
272
- </div>
273
- <?php endif; ?>
274
- <?php endif; ?>
275
- </td>
276
- <?php endif; ?>
277
- <td class="a-center"><a href="<?php echo $this->getDeleteUrl()?>" title="<?php echo $this->__('Remove item')?>" class="btn-remove btn-remove2"><?php echo $this->__('Remove item')?></a></td>
278
- </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/customer/account/dashboard/address.phtml DELETED
@@ -1,50 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- <div class="col2-set">
28
- <div class="box">
29
- <div class="box-title">
30
- <h3><?php echo $this->__('Address Book') ?></h3>
31
- <a href="<?php echo $this->getAddressBookUrl() ?>"><?php echo $this->__('Manage Addresses') ?></a>
32
- </div>
33
- <div class="box-content">
34
- <div class="col-1">
35
- <h4><?php echo $this->__('Default Billing Address') ?></h4>
36
- <address>
37
- <?php echo $this->getPrimaryBillingAddressHtml() ?><br />
38
- <a class="button" href="<?php echo $this->getPrimaryBillingAddressEditUrl() ?>"><?php echo $this->__('Edit Address') ?></a>
39
- </address>
40
- </div>
41
- <div class="col-2">
42
- <h4><?php echo $this->__('Default Shipping Address') ?></h4>
43
- <address>
44
- <?php echo $this->getPrimaryShippingAddressHtml() ?><br />
45
- <a class="button" href="<?php echo $this->getPrimaryShippingAddressEditUrl() ?>"><?php echo $this->__('Edit Address') ?></a>
46
- </address>
47
- </div>
48
- </div>
49
- </div>
50
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/customer/account/dashboard/info.phtml DELETED
@@ -1,64 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- <div class="col2-set">
28
- <div class="col-1">
29
- <div class="box">
30
- <div class="box-title">
31
- <h3><?php echo $this->__('Contact Information') ?></h3>
32
- <a href="<?php echo $this->getUrl('customer/account/edit') ?>"><?php echo $this->__('Edit') ?></a>
33
- </div>
34
- <div class="box-content">
35
- <p>
36
- <?php echo $this->htmlEscape($this->getCustomer()->getName()) ?><br />
37
- <?php echo $this->htmlEscape($this->getCustomer()->getEmail()) ?><br />
38
- <a class="button" href="<?php echo $this->getChangePasswordUrl() ?>"><?php echo $this->__('Change Password') ?></a>
39
- </p>
40
- </div>
41
- </div>
42
- </div>
43
- <?php if( $this->isNewsletterEnabled() ): ?>
44
- <div class="col-2">
45
- <div class="box">
46
- <div class="box-title">
47
- <h3><?php echo $this->__('Newsletters') ?></h3>
48
- <a href="<?php echo $this->getUrl('newsletter/manage') ?>"><?php echo $this->__('Edit') ?></a>
49
- </div>
50
- <div class="box-content">
51
- <p>
52
- <?php if( $this->getIsSubscribed() ): ?>
53
- <?php echo $this->__("You are currently subscribed to 'General Subscription'.") ?>
54
- <?php else: ?>
55
- <?php echo $this->__('You are currently not subscribed to any newsletter.') ?>
56
- <?php endif; ?>
57
- </p>
58
- </div>
59
- </div>
60
- <?php /* Extensions placeholder */ ?>
61
- <?php echo $this->getChildHtml('customer.account.dashboard.info.extra')?>
62
- </div>
63
- <?php endif; ?>
64
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/customer/form/login.phtml DELETED
@@ -1,86 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- * Customer login form template
30
- *
31
- * @see Mage_Customer_Block_Form_Login
32
- */
33
- ?>
34
- <div class="account-login">
35
- <div class="page-title">
36
- <h1><?php echo $this->__('Login or Create an Account') ?></h1>
37
- </div>
38
- <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
39
- <?php /* Extensions placeholder */ ?>
40
- <?php echo $this->getChildHtml('customer.form.login.extra')?>
41
- <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="login-form">
42
- <input type="hidden" name="form_key" value="<? echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
43
- <div class="col2-set">
44
- <div class="col-1 new-users">
45
- <div class="content">
46
- <h2><?php echo $this->__('New Customers') ?></h2>
47
- <p><?php echo $this->__('By creating an account with our store, you will be able to move through the checkout process faster, store multiple shipping addresses, view and track your orders in your account and more.') ?></p>
48
- </div>
49
- <div class="buttons-set">
50
- <button type="button" title="<?php echo $this->__('Create an Account') ?>" class="button" onclick="window.location='<?php echo $this->getCreateAccountUrl() ?>';"><span><span><?php echo $this->__('Create an Account') ?></span></span></button>
51
- </div>
52
- </div>
53
- <div class="col-2 registered-users">
54
- <div class="content">
55
- <h2><?php echo $this->__('Registered Customers') ?></h2>
56
- <p><?php echo $this->__('If you have an account with us, please log in.') ?></p>
57
- <ul class="form-list">
58
- <li>
59
- <label for="email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
60
- <div class="input-box">
61
- <input type="text" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" id="email" class="input-text required-entry validate-email" title="<?php echo $this->__('Email Address') ?>" />
62
- </div>
63
- </li>
64
- <li>
65
- <label for="pass" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
66
- <div class="input-box">
67
- <input type="password" name="login[password]" class="input-text required-entry validate-password" id="pass" title="<?php echo $this->__('Password') ?>" />
68
- </div>
69
- </li>
70
- <?php echo $this->getChildHtml('form.additional.info'); ?>
71
- </ul>
72
- <p class="required"><?php echo $this->__('* Required Fields') ?></p>
73
- </div>
74
- <div class="buttons-set">
75
- <a href="<?php echo $this->getForgotPasswordUrl() ?>" class="f-left"><?php echo $this->__('Forgot Your Password?') ?></a>
76
- <button type="submit" class="button" title="<?php echo $this->__('Login') ?>" name="send" id="send2"><span><span><?php echo $this->__('Login') ?></span></span></button>
77
- </div>
78
- </div>
79
- </div>
80
- </form>
81
- <script type="text/javascript">
82
- //<![CDATA[
83
- var dataForm = new VarienForm('login-form', true);
84
- //]]>
85
- </script>
86
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/joomlart/jmproducts/list.phtml DELETED
@@ -1 +0,0 @@
1
- <div class="jm-product-list <?php echo $config['mode']; ?> clearfix">
2
  $return = false;
3
 
4
  <div class="ja-dot">&nbsp;</div>
 
0
  $return = false;
1
 
2
  <div class="ja-dot">&nbsp;</div>
app/design/frontend/default/jm_trex/template/joomlart/jmproducts/oneproduct.phtml DELETED
@@ -1,76 +0,0 @@
1
- <div class="jm-product-list <?php echo $config['mode']; ?> clearfix">
2
- <div class="listing-type-grid category-products">
3
- <?php $_collectionSize = $listall?$listall->count():0 ?>
4
- <?php $i = 0;
5
- $width = 100;
6
- // -- added by Duchh 15/12/2009
7
- $thumbnailw = $config['width'];
8
- $thumbnailh = $config['height'];
9
- $numberchar = $config['max'];
10
-
11
- if ($config['perrow']) $width = 99/$config['perrow'];
12
- $width = "style=\"width:{$width}%;\"";
13
- $return = false;
14
-
15
- ?>
16
- <?php if($_collectionSize){?>
17
- <?php foreach ($listall->getItems() as $_product){
18
- $product = Mage::getModel('catalog/product')->load($_product->getId());
19
- $attribute = $product->getResource()->getAttribute('label');
20
- if(is_object($attribute)){
21
- $attdefaultvalue = $attribute->getDefaultValue();
22
- $attributeValue = Mage::getModel('catalog/product')->load($_product->getId())->getlabel();
23
- $attributeValueName = Mage::getModel('catalog/product')->load($_product->getId())->getAttributeText('label');
24
- }
25
- if(strlen($attributeValue) && ($attdefaultvalue !== $attributeValue)) {
26
- $labeltype = $attributeValueName;
27
- }
28
- else {
29
- $labeltype = "";
30
- }
31
- ?>
32
-
33
- <?php if($i++%$config['perrow']==0): ?>
34
- <div class="products-grid">
35
- <?php endif; ?>
36
- <div class="item"><div class="item-inner">
37
- <?php if ($labeltype): ?>
38
- <span class="<?php echo $labeltype; ?>-label"><?php echo $labeltype; ?></span>
39
- <?php endif; ?>
40
- <p class="product-image">
41
- <a title="<?php echo $this->htmlEscape($_product->getName()) ?>" href="<?php echo $_product->getProductUrl() ?>">
42
- <img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize($thumbnailw, $thumbnailh)->setWatermarkSize('30x10'); ?>" alt="<?php echo $this->htmlEscape($_product->getName()) ?>"/>
43
- </a>
44
- </p>
45
- <div class="product-information">
46
- <h2 class="product-name">
47
- <a title="<?php echo $this->htmlEscape($_product->getName()) ?>" href="<?php echo $_product->getProductUrl() ?>">
48
- <?php
49
- if (strlen($_product->getName()) > 36) :
50
- echo substr($_product->getName(),0, 34).'...';
51
- else :
52
- echo $_product->getName();
53
- endif;
54
- ?>
55
- </a>
56
- </h2>
57
-
58
-
59
- <?php echo $this->getReviewsSummaryHtml($_product, true, true)?>
60
- <?php echo $this->getPriceHtml($_product,true, '_jmproduct') ?>
61
- <?php if($numberchar) : ?>
62
- <p class="pdescription"><?php echo substr(nl2br($_product->getShortDescription()), 0, $numberchar).'...';?></p>
63
- <?php endif; ?>
64
-
65
-
66
- </div>
67
- </div></div>
68
-
69
- <?php if($i%$config['perrow']==0 || $i==$_collectionSize): ?>
70
- </div>
71
- <?php endif; ?>
72
-
73
- <?php }?>
74
- <?php }?>
75
- </div>
76
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/newsletter/subscribe.phtml DELETED
@@ -1,51 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- <div class="block block-subscribe">
28
- <div class="block-title">
29
- <strong><span><?php echo $this->__('Newsletter') ?></span></strong>
30
- </div>
31
- <form action="<?php echo $this->getFormActionUrl() ?>" method="post" id="newsletter-validate-detail">
32
- <div class="block-content">
33
- <div class="form-subscribe-header">
34
- <label for="newsletter"><?php echo $this->__('Sign Up for Our Newsletter:') ?></label>
35
- </div>
36
- <div class="input-wrap">
37
- <div class="input-box">
38
- <input type="text" name="email" id="newsletter" title="<?php echo $this->__('Sign up for our newsletter') ?>" class="input-text required-entry validate-email" />
39
- </div>
40
- <div class="actions">
41
- <button type="submit" title="<?php echo $this->__('Subscribe') ?>" class="button"><span><span><?php echo $this->__('Subscribe') ?></span></span></button>
42
- </div>
43
- </div>
44
- </div>
45
- </form>
46
- <script type="text/javascript">
47
- //<![CDATA[
48
- var newsletterSubscriberFormDetail = new VarienForm('newsletter-validate-detail');
49
- //]]>
50
- </script>
51
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/1column.phtml DELETED
@@ -1,158 +0,0 @@
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_default
22
- * @package Mage
23
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- ?>
27
- <?php
28
- /**
29
- * Template for Mage_Page_Block_Html
30
- */
31
- global $tmpTools;
32
- ?>
33
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
34
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
35
-
36
- <head>
37
- <?php echo $this->getChildHtml('head') ?>
38
- </head>
39
-
40
- <body id="bd" class="<?php echo $this->getBodyClass();?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>">
41
- <?php echo $this->getChildHtml('after_body_start') ?>
42
- <div id="ja-wrapper">
43
-
44
- <!-- BEGIN: HEADER -->
45
- <div id="ja-header" class="wrap">
46
- <div class="main"><div class="inner clearfix">
47
- <?php echo $this->getChildHtml('header') ?>
48
- </div></div>
49
- </div>
50
- <!-- END: HEADER -->
51
-
52
- <!-- TOP SPOTLIGHT -->
53
- <?php if ($this->getChildHtml('topsl')) : ?>
54
- <div id="ja-topsl" class="ja-spotlight wrap">
55
- <div class="main col2-set"><div class="inner clearfix">
56
- <?php echo $this->getChildHtml('topsl') ?>
57
- </div></div>
58
- </div>
59
- <?php endif; ?>
60
- <!-- //TOP SPOTLIGHT -->
61
-
62
- <!-- TOP SPOTLIGHT 1-->
63
- <?php if ($this->getChildHtml('topsl1')) : ?>
64
- <div id="ja-topsl1" class="ja-spotlight wrap">
65
- <div class="main col3-set"><div class="inner clearfix">
66
- <?php echo $this->getChildHtml('topsl1') ?>
67
- </div></div>
68
- </div>
69
- <?php endif; ?>
70
- <!-- //TOP SPOTLIGHT 1-->
71
-
72
- <!-- BEGIN: MAIN CONTAINER -->
73
- <div id="ja-container" class="ja-lo-1col wrap">
74
- <div class="main"><div class="inner clearfix">
75
-
76
- <div id="ja-mainbody">
77
-
78
- <!-- BEGIN: CONTENT -->
79
- <div id="ja-main"><div class="inner clearfix">
80
-
81
- <!-- global messages -->
82
- <?php echo $this->getChildHtml('global_messages') ?>
83
- <!-- // global messages -->
84
-
85
- <div id="ja-current-content" class="clearfix">
86
- <!-- breadcrums -->
87
- <?php echo $this->getChildHtml('breadcrumbs') ?>
88
- <!-- // breadcrums -->
89
- <!-- primary content -->
90
- <?php echo $this->getChildHtml('content') ?>
91
- <!-- // primary content -->
92
- </div>
93
-
94
- </div></div>
95
- <!-- END: CONTENT -->
96
-
97
- </div>
98
-
99
- </div></div>
100
- </div>
101
- <!-- END: MAIN CONTAINER -->
102
-
103
- <!-- CONTENT MASS BOTTOM -->
104
- <?php if ($this->getChildHtml('content-mass-bottom')) : ?>
105
- <div id="ja-content-mass-bottom" class="ja-content-mass-bottom wrap">
106
- <div class="main"><div class="inner clearfix">
107
- <?php echo $this->getChildHtml('content-mass-bottom') ?>
108
- </div></div>
109
- </div>
110
- <?php endif; ?>
111
- <!-- //CONTENT MASS BOTTOM -->
112
-
113
- <!-- BOTTOM SPOTLIGHT -->
114
- <?php if ($this->getChildHtml('botsl')) : ?>
115
- <div id="ja-botsl" class="ja-spotlight wrap">
116
- <div class="main col3-set"><div class="inner clearfix">
117
- <?php echo $this->getChildHtml('botsl') ?>
118
- </div></div>
119
- </div>
120
- <?php endif; ?>
121
- <!-- //TOP SPOTLIGHT -->
122
-
123
- <!-- BOTTOM SPOTLIGHT 1-->
124
- <?php if ($this->getChildHtml('botsl1')) : ?>
125
- <div id="ja-botsl1" class="ja-spotlight wrap">
126
- <div class="main col5-set"><div class="inner clearfix">
127
- <?php echo $this->getChildHtml('botsl1') ?>
128
- </div></div>
129
- </div>
130
- <?php endif; ?>
131
- <!-- //BOTTOM SPOTLIGHT 1-->
132
-
133
- <!-- BEGIN: FOOTER -->
134
- <div id="ja-footer" class="wrap">
135
- <div class="main"><div class="inner clearfix">
136
- <?php echo $this->getChildHtml('footer') ?>
137
- </div></div>
138
- </div>
139
- <!-- END: FOOTER -->
140
-
141
- <?php echo $this->getChildHtml('before_body_end') ?>
142
-
143
- </div>
144
-
145
- <?php echo $this->getAbsoluteFooter() ?>
146
- <script type="text/javascript">
147
- jQuery(window).load(function () {
148
- window.setTimeout("jm_equalheight()", 200);
149
- })
150
-
151
- function jm_equalheight(){
152
- jQuery('.listing-type-grid li.item, .products-grid li.item').equalHeight();
153
- jQuery('.jm-product-list-bycat .jm-cat-left, .jm-product-list-bycat .jm-cat-center, .jm-product-list-bycat .jm-cat-right').equalHeight();
154
- }
155
- </script>
156
-
157
- </body>
158
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/2columns-left.phtml DELETED
@@ -1,165 +0,0 @@
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_default
22
- * @package Mage
23
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- ?>
27
- <?php
28
- /**
29
- * Template for Mage_Page_Block_Html
30
- */
31
- global $tmpTools;
32
- ?>
33
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
34
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
35
-
36
- <head>
37
- <?php echo $this->getChildHtml('head') ?>
38
- </head>
39
-
40
- <body id="bd" class="<?php echo $this->getBodyClass();?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>">
41
- <?php echo $this->getChildHtml('after_body_start') ?>
42
- <div id="ja-wrapper">
43
-
44
- <!-- BEGIN: HEADER -->
45
- <div id="ja-header" class="wrap">
46
- <div class="main"><div class="inner clearfix">
47
- <?php echo $this->getChildHtml('header') ?>
48
- </div></div>
49
- </div>
50
- <!-- END: HEADER -->
51
-
52
- <!-- TOP SPOTLIGHT -->
53
- <?php if ($this->getChildHtml('topsl')) : ?>
54
- <div id="ja-topsl" class="ja-spotlight wrap">
55
- <div class="main col2-set"><div class="inner clearfix">
56
- <?php echo $this->getChildHtml('topsl') ?>
57
- </div></div>
58
- </div>
59
- <?php endif; ?>
60
- <!-- //TOP SPOTLIGHT -->
61
-
62
- <!-- TOP SPOTLIGHT 1-->
63
- <?php if ($this->getChildHtml('topsl1')) : ?>
64
- <div id="ja-topsl1" class="ja-spotlight wrap">
65
- <div class="main col3-set"><div class="inner clearfix">
66
- <?php echo $this->getChildHtml('topsl1') ?>
67
- </div></div>
68
- </div>
69
- <?php endif; ?>
70
- <!-- //TOP SPOTLIGHT 1-->
71
-
72
- <!-- BEGIN: MAIN CONTAINER -->
73
- <div id="ja-container" class="ja-lo-2colsl wrap">
74
- <div class="main"><div class="inner clearfix">
75
-
76
- <div id="ja-mainbody">
77
-
78
- <!-- BEGIN: CONTENT -->
79
- <div id="ja-main"><div class="inner clearfix">
80
-
81
- <!-- global messages -->
82
- <?php echo $this->getChildHtml('global_messages') ?>
83
- <!-- // global messages -->
84
-
85
- <div id="ja-current-content" class="clearfix">
86
- <!-- breadcrums -->
87
- <?php echo $this->getChildHtml('breadcrumbs') ?>
88
- <!-- // breadcrums -->
89
- <!-- primary content -->
90
- <?php echo $this->getChildHtml('content') ?>
91
- <!-- // primary content -->
92
- </div>
93
-
94
- </div></div>
95
- <!-- END: CONTENT -->
96
-
97
- <!-- BEGIN: COLUMN 1 -->
98
- <div id="ja-col1" class="col-left side-col">
99
- <?php echo $this->getChildHtml('left') ?>
100
- </div>
101
- <!-- END: COLUMN 1 -->
102
-
103
- </div>
104
-
105
- </div></div>
106
- </div>
107
- <!-- END: MAIN CONTAINER -->
108
-
109
-
110
- <!-- CONTENT MASS BOTTOM -->
111
- <?php if ($this->getChildHtml('content-mass-bottom')) : ?>
112
- <div id="ja-content-mass-bottom" class="ja-content-mass-bottom wrap">
113
- <div class="main"><div class="inner clearfix">
114
- <?php echo $this->getChildHtml('content-mass-bottom') ?>
115
- </div></div>
116
- </div>
117
- <?php endif; ?>
118
- <!-- //CONTENT MASS BOTTOM -->
119
-
120
- <!-- BOTTOM SPOTLIGHT -->
121
- <?php if ($this->getChildHtml('botsl')) : ?>
122
- <div id="ja-botsl" class="ja-spotlight wrap">
123
- <div class="main col3-set"><div class="inner clearfix">
124
- <?php echo $this->getChildHtml('botsl') ?>
125
- </div></div>
126
- </div>
127
- <?php endif; ?>
128
- <!-- //BOTTOM SPOTLIGHT -->
129
-
130
- <!-- BOTTOM SPOTLIGHT 1-->
131
- <?php if ($this->getChildHtml('botsl1')) : ?>
132
- <div id="ja-botsl1" class="ja-spotlight wrap">
133
- <div class="main col5-set"><div class="inner clearfix">
134
- <?php echo $this->getChildHtml('botsl1') ?>
135
- </div></div>
136
- </div>
137
- <?php endif; ?>
138
- <!-- //BOTTOM SPOTLIGHT 1-->
139
-
140
- <!-- BEGIN: FOOTER -->
141
- <div id="ja-footer" class="wrap">
142
- <div class="main"><div class="inner clearfix">
143
- <?php echo $this->getChildHtml('footer') ?>
144
- </div></div>
145
- </div>
146
- <!-- END: FOOTER -->
147
-
148
- <?php echo $this->getChildHtml('before_body_end') ?>
149
-
150
- </div>
151
-
152
- <?php echo $this->getAbsoluteFooter() ?>
153
- <script type="text/javascript">
154
- jQuery(window).load(function () {
155
- window.setTimeout("jm_equalheight()", 200);
156
- })
157
-
158
- function jm_equalheight(){
159
- jQuery('.listing-type-grid li.item, .products-grid li.item').equalHeight();
160
- jQuery('.jm-product-list-bycat .jm-cat-left, .jm-product-list-bycat .jm-cat-center, .jm-product-list-bycat .jm-cat-right').equalHeight();
161
- }
162
- </script>
163
-
164
- </body>
165
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/2columns-right.phtml DELETED
@@ -1,165 +0,0 @@
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_default
22
- * @package Mage
23
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- ?>
27
- <?php
28
- /**
29
- * Template for Mage_Page_Block_Html
30
- */
31
- global $tmpTools;
32
- ?>
33
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
34
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
35
-
36
- <head>
37
- <?php echo $this->getChildHtml('head') ?>
38
- </head>
39
-
40
- <body id="bd" class="<?php echo $this->getBodyClass();?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>">
41
- <?php echo $this->getChildHtml('after_body_start') ?>
42
- <div id="ja-wrapper">
43
-
44
- <!-- BEGIN: HEADER -->
45
- <div id="ja-header" class="wrap">
46
- <div class="main"><div class="inner clearfix">
47
- <?php echo $this->getChildHtml('header') ?>
48
- </div></div>
49
- </div>
50
- <!-- END: HEADER -->
51
-
52
- <!-- TOP SPOTLIGHT -->
53
- <?php if ($this->getChildHtml('topsl')) : ?>
54
- <div id="ja-topsl" class="ja-spotlight wrap">
55
- <div class="main col2-set"><div class="inner clearfix">
56
- <?php echo $this->getChildHtml('topsl') ?>
57
- </div></div>
58
- </div>
59
- <?php endif; ?>
60
- <!-- //TOP SPOTLIGHT -->
61
-
62
- <!-- TOP SPOTLIGHT 1-->
63
- <?php if ($this->getChildHtml('topsl1')) : ?>
64
- <div id="ja-topsl1" class="ja-spotlight wrap">
65
- <div class="main col3-set"><div class="inner clearfix">
66
- <?php echo $this->getChildHtml('topsl1') ?>
67
- </div></div>
68
- </div>
69
- <?php endif; ?>
70
- <!-- //TOP SPOTLIGHT 1-->
71
-
72
- <!-- BEGIN: MAIN CONTAINER -->
73
- <div id="ja-container" class="ja-lo-2colsr wrap">
74
- <div class="main"><div class="inner clearfix">
75
-
76
- <div id="ja-mainbody">
77
-
78
- <!-- BEGIN: CONTENT -->
79
- <div id="ja-main"><div class="inner clearfix">
80
-
81
- <!-- global messages -->
82
- <?php echo $this->getChildHtml('global_messages') ?>
83
- <!-- // global messages -->
84
-
85
- <div id="ja-current-content" class="clearfix">
86
- <!-- breadcrums -->
87
- <?php echo $this->getChildHtml('breadcrumbs') ?>
88
- <!-- // breadcrums -->
89
- <!-- primary content -->
90
- <?php echo $this->getChildHtml('content') ?>
91
- <!-- // primary content -->
92
- </div>
93
-
94
- </div></div>
95
- <!-- END: CONTENT -->
96
-
97
- </div>
98
-
99
- <!-- BEGIN: COLUMN 2 -->
100
- <div id="ja-col2" class="col-right side-col">
101
- <?php echo $this->getChildHtml('right') ?>
102
- </div>
103
- <!-- END: COLUMN 2 -->
104
-
105
- </div></div>
106
- </div>
107
- <!-- END: MAIN CONTAINER -->
108
-
109
-
110
- <!-- CONTENT MASS BOTTOM -->
111
- <?php if ($this->getChildHtml('content-mass-bottom')) : ?>
112
- <div id="ja-content-mass-bottom" class="ja-content-mass-bottom wrap">
113
- <div class="main"><div class="inner clearfix">
114
- <?php echo $this->getChildHtml('content-mass-bottom') ?>
115
- </div></div>
116
- </div>
117
- <?php endif; ?>
118
- <!-- //CONTENT MASS BOTTOM -->
119
-
120
- <!-- BOTTOM SPOTLIGHT -->
121
- <?php if ($this->getChildHtml('botsl')) : ?>
122
- <div id="ja-botsl" class="ja-spotlight wrap">
123
- <div class="main col3-set"><div class="inner clearfix">
124
- <?php echo $this->getChildHtml('botsl') ?>
125
- </div></div>
126
- </div>
127
- <?php endif; ?>
128
- <!-- //BOTTOM SPOTLIGHT -->
129
-
130
- <!-- BOTTOM SPOTLIGHT 1-->
131
- <?php if ($this->getChildHtml('botsl1')) : ?>
132
- <div id="ja-botsl1" class="ja-spotlight wrap">
133
- <div class="main col5-set"><div class="inner clearfix">
134
- <?php echo $this->getChildHtml('botsl1') ?>
135
- </div></div>
136
- </div>
137
- <?php endif; ?>
138
- <!-- //BOTTOM SPOTLIGHT 1-->
139
-
140
- <!-- BEGIN: FOOTER -->
141
- <div id="ja-footer" class="wrap">
142
- <div class="main"><div class="inner clearfix">
143
- <?php echo $this->getChildHtml('footer') ?>
144
- </div></div>
145
- </div>
146
- <!-- END: FOOTER -->
147
-
148
- <?php echo $this->getChildHtml('before_body_end') ?>
149
-
150
- </div>
151
-
152
- <?php echo $this->getAbsoluteFooter() ?>
153
- <script type="text/javascript">
154
- jQuery(window).load(function () {
155
- window.setTimeout("jm_equalheight()", 200);
156
- })
157
-
158
- function jm_equalheight(){
159
- jQuery('.listing-type-grid li.item, .products-grid li.item').equalHeight();
160
- jQuery('.jm-product-list-bycat .jm-cat-left, .jm-product-list-bycat .jm-cat-center, .jm-product-list-bycat .jm-cat-right').equalHeight();
161
- }
162
- </script>
163
-
164
- </body>
165
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/3columns.phtml DELETED
@@ -1,171 +0,0 @@
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_default
22
- * @package Mage
23
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- ?>
27
- <?php
28
- /**
29
- * Template for Mage_Page_Block_Html
30
- */
31
- global $tmpTools;
32
- ?>
33
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
34
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
35
-
36
- <head>
37
- <?php echo $this->getChildHtml('head') ?>
38
- </head>
39
-
40
- <body id="bd" class="<?php echo $this->getBodyClass();?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>">
41
- <?php echo $this->getChildHtml('after_body_start') ?>
42
- <div id="ja-wrapper">
43
-
44
- <!-- BEGIN: HEADER -->
45
- <div id="ja-header" class="wrap">
46
- <div class="main"><div class="inner clearfix">
47
- <?php echo $this->getChildHtml('header') ?>
48
- </div></div>
49
- </div>
50
- <!-- END: HEADER -->
51
-
52
- <!-- TOP SPOTLIGHT -->
53
- <?php if ($this->getChildHtml('topsl')) : ?>
54
- <div id="ja-topsl" class="ja-spotlight wrap">
55
- <div class="main col2-set"><div class="inner clearfix">
56
- <?php echo $this->getChildHtml('topsl') ?>
57
- </div></div>
58
- </div>
59
- <?php endif; ?>
60
- <!-- //TOP SPOTLIGHT -->
61
-
62
- <!-- TOP SPOTLIGHT 1-->
63
- <?php if ($this->getChildHtml('topsl1')) : ?>
64
- <div id="ja-topsl1" class="ja-spotlight wrap">
65
- <div class="main col3-set"><div class="inner clearfix">
66
- <?php echo $this->getChildHtml('topsl1') ?>
67
- </div></div>
68
- </div>
69
- <?php endif; ?>
70
- <!-- //TOP SPOTLIGHT 1-->
71
-
72
- <!-- BEGIN: MAIN CONTAINER -->
73
- <div id="ja-container" class="ja-lo-3cols wrap">
74
- <div class="main"><div class="inner clearfix">
75
-
76
- <div id="ja-mainbody">
77
-
78
- <!-- BEGIN: CONTENT -->
79
- <div id="ja-main"><div class="inner clearfix">
80
-
81
- <!-- global messages -->
82
- <?php echo $this->getChildHtml('global_messages') ?>
83
- <!-- // global messages -->
84
-
85
- <div id="ja-current-content" class="clearfix">
86
- <!-- breadcrums -->
87
- <?php echo $this->getChildHtml('breadcrumbs') ?>
88
- <!-- // breadcrums -->
89
- <!-- primary content -->
90
- <?php echo $this->getChildHtml('content') ?>
91
- <!-- // primary content -->
92
- </div>
93
-
94
- </div></div>
95
- <!-- END: CONTENT -->
96
-
97
- <!-- BEGIN: COLUMN 1 -->
98
- <div id="ja-col1" class="col-left side-col">
99
- <?php echo $this->getChildHtml('left') ?>
100
- </div>
101
- <!-- END: COLUMN 1 -->
102
-
103
- </div>
104
-
105
- <!-- BEGIN: COLUMN 2 -->
106
- <div id="ja-col2" class="col-right side-col">
107
- <?php echo $this->getChildHtml('right') ?>
108
- </div>
109
- <!-- END: COLUMN 2 -->
110
-
111
- </div></div>
112
- </div>
113
- <!-- END: MAIN CONTAINER -->
114
-
115
-
116
- <!-- CONTENT MASS BOTTOM -->
117
- <?php if ($this->getChildHtml('content-mass-bottom')) : ?>
118
- <div id="ja-content-mass-bottom" class="ja-content-mass-bottom wrap">
119
- <div class="main"><div class="inner clearfix">
120
- <?php echo $this->getChildHtml('content-mass-bottom') ?>
121
- </div></div>
122
- </div>
123
- <?php endif; ?>
124
- <!-- //CONTENT MASS BOTTOM -->
125
-
126
- <!-- BOTTOM SPOTLIGHT -->
127
- <?php if ($this->getChildHtml('botsl')) : ?>
128
- <div id="ja-botsl" class="ja-spotlight wrap">
129
- <div class="main col3-set"><div class="inner clearfix">
130
- <?php echo $this->getChildHtml('botsl') ?>
131
- </div></div>
132
- </div>
133
- <?php endif; ?>
134
- <!-- //BOTTOM SPOTLIGHT -->
135
-
136
- <!-- BOTTOM SPOTLIGHT 1-->
137
- <?php if ($this->getChildHtml('botsl1')) : ?>
138
- <div id="ja-botsl1" class="ja-spotlight wrap">
139
- <div class="main col5-set"><div class="inner clearfix">
140
- <?php echo $this->getChildHtml('botsl1') ?>
141
- </div></div>
142
- </div>
143
- <?php endif; ?>
144
- <!-- //BOTTOM SPOTLIGHT 1-->
145
-
146
- <!-- BEGIN: FOOTER -->
147
- <div id="ja-footer" class="wrap">
148
- <div class="main"><div class="inner clearfix">
149
- <?php echo $this->getChildHtml('footer') ?>
150
- </div></div>
151
- </div>
152
- <!-- END: FOOTER -->
153
-
154
- <?php echo $this->getChildHtml('before_body_end') ?>
155
-
156
- </div>
157
-
158
- <?php echo $this->getAbsoluteFooter() ?>
159
- <script type="text/javascript">
160
- jQuery(window).load(function () {
161
- window.setTimeout("jm_equalheight()", 200);
162
- })
163
-
164
- function jm_equalheight(){
165
- jQuery('.listing-type-grid li.item, .products-grid li.item').equalHeight();
166
- jQuery('.jm-product-list-bycat .jm-cat-left, .jm-product-list-bycat .jm-cat-center, .jm-product-list-bycat .jm-cat-right').equalHeight();
167
- }
168
- </script>
169
-
170
- </body>
171
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/empty.phtml DELETED
@@ -1,46 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 2011 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
- * Template for Mage_Page_Block_Html
30
- */
31
- ?>
32
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
34
- <head>
35
- <?php echo $this->getChildHtml('head') ?>
36
- </head>
37
- <body class="page-empty <?php echo $this->getBodyClass()?$this->getBodyClass():'' ?>">
38
- <div>
39
- <?php echo $this->getChildHtml('after_body_start') ?>
40
- <?php echo $this->getChildHtml('global_messages') ?>
41
- <?php echo $this->getChildHtml('content') ?>
42
- <?php echo $this->getChildHtml('before_body_end') ?>
43
- <?php echo $this->getAbsoluteFooter() ?>
44
- </div>
45
- </body>
46
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/html/botslmenu.phtml DELETED
@@ -1,61 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- * Top menu for store
30
- *
31
- * @see Mage_Page_Block_Html_Topmenu
32
- */
33
- ?>
34
- <?php $_menu = $this->getHtml('level-top') ?>
35
- <?php
36
- global $tmpTools;
37
- if ($tmpTools->isHomepage()===FALSE)
38
- {
39
- $homecls='class="nav-home"';
40
- } else {
41
- $homecls='class="nav-home active"';
42
- }
43
- ?>
44
- <div class=" col-1 col-narrow">
45
- <?php if($_menu): ?>
46
- <div class="block block-list navitage">
47
- <div class="block-title">
48
- <strong>Navigate</strong>
49
- </div>
50
- <div class="block-content">
51
- <ul>
52
- <?php $first=0;?>
53
- <li <?php echo $homecls;?>>
54
- <a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->__('Home') ?>" class="<?php if($first==0): echo ' first'; endif;?>" ><span><?php echo $this->__('Home') ?></span></a>
55
- </li>
56
- <?php echo $_menu ?>
57
- </ul>
58
- </div>
59
- </div>
60
- <?php endif ?>
61
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/html/breadcrumbs.phtml DELETED
@@ -1,47 +0,0 @@
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_default
22
- * @package Mage
23
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- ?>
27
- <?php if($crumbs && is_array($crumbs)): ?>
28
- <div id="ja-pathway" class="clearfix">
29
- <h4 class="no-display"><?php echo $this->__("You're currently on:") ?></h4>
30
- <ul class="breadcrumbs">
31
- <?php foreach($crumbs as $_crumbName=>$_crumbInfo): ?>
32
- <li class="<?php echo $_crumbName ?>">
33
- <?php if($_crumbInfo['link']): ?>
34
- <a href="<?php echo $_crumbInfo['link'] ?>" title="<?php echo $_crumbInfo['title'] ?>"><?php echo $_crumbInfo['label'] ?></a>
35
- <?php elseif($_crumbInfo['last']): ?>
36
- <?php echo $_crumbInfo['label'] ?>
37
- <?php else: ?>
38
- <?php echo $_crumbInfo['label'] ?>
39
- <?php endif; ?>
40
- </li>
41
- <?php if(!$_crumbInfo['last']): ?>
42
- <li class="arrow"> > </li>
43
- <?php endif; ?>
44
- <?php endforeach; ?>
45
- </ul>
46
- </div>
47
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/html/footer.phtml DELETED
@@ -1,40 +0,0 @@
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_default
22
- * @package Mage
23
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- ?>
27
- <div class="jm-info clearfix">
28
- <?php echo $this->getChildHtml() ?>
29
- </div>
30
- <div class="jm-legal">
31
- <?php echo $this->__('Help Us to Keep Magento Healthy') ?> - <a href="http://www.magentocommerce.com/bug-tracking" id="bug_tracking_link"><strong><?php echo $this->__('Report All Bugs') ?></strong></a> <?php echo $this->__('(ver. %s)', Mage::getVersion()) ?><br />
32
- <script type="text/javascript">
33
- $('bug_tracking_link').target = "varien_external";
34
- </script>
35
- <?php echo $this->getCopyright() ?>.
36
- Designed by <a href="http://www.joomlart.com/" title="Visit Joomlart.com!">JoomlArt.com</a>.
37
- </div>
38
- <div class="jm-footer-logo">
39
- <h1 id="footer-logo"><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>"><span>JM Trex</span></a></h1>
40
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/html/head.phtml DELETED
@@ -1,74 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- include (dirname(dirname(__FILE__)).'/ja_vars.php');
27
- ?>
28
- <title><?php echo $this->getTitle() ?></title>
29
- <!-- META FOR IOS & HANDHELD -->
30
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes"/>
31
- <meta name="HandheldFriendly" content="true" />
32
- <meta name="apple-touch-fullscreen" content="YES" />
33
- <!-- //META FOR IOS & HANDHELD -->
34
- <meta http-equiv="Content-Type" content="<?php echo $this->getContentType() ?>" />
35
- <?php if($this->getCanLoadTinyMce()): ?>
36
- <meta http-equiv="X-UA-Compatible" content="IE=8" />
37
- <?php endif; ?>
38
- <meta name="description" content="<?php echo htmlspecialchars($this->getDescription()) ?>" />
39
- <meta name="keywords" content="<?php echo htmlspecialchars($this->getKeywords()) ?>" />
40
- <meta name="robots" content="<?php echo htmlspecialchars($this->getRobots()) ?>" />
41
- <link rel="icon" href="<?php echo $this->getFaviconFile(); ?>" type="image/x-icon" />
42
- <link rel="shortcut icon" href="<?php echo $this->getFaviconFile(); ?>" type="image/x-icon" />
43
-
44
- <!--[if lt IE 7]>
45
- <script type="text/javascript">
46
- //<![CDATA[
47
- var BLANK_URL = '<?php echo $this->helper('core/js')->getJsUrl('blank.html') ?>';
48
- var BLANK_IMG = '<?php echo $this->helper('core/js')->getJsUrl('spacer.gif') ?>';
49
- //]]>
50
- </script>
51
- <![endif]-->
52
-
53
- <script type="text/javascript">
54
- //<![CDATA[
55
- document.write('<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('css/css3.css')?>" media="all" \/>');
56
- //]]>
57
- </script>
58
-
59
- <?php echo $this->getCssJsHtml() ?>
60
- <?php echo $this->getChildHtml() ?>
61
- <?php echo $this->helper('core/js')->getTranslatorScript() ?>
62
- <?php echo $this->getIncludes() ?>
63
-
64
- <link rel="stylesheet" href="<?php echo $this->getSkinUrl('css/colors/'.$tmpTools->getParam(JA_TOOL_COLOR).'.css') ?>" type="text/css" />
65
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery/jquery.js') ?>"></script>
66
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery/jquery.easing.js') ?>"></script>
67
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery/jquery.dimensions.js') ?>"></script>
68
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/ja.accordion.nav.js') ?>"></script>
69
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery/plugins/colorbox/jquery.colorbox-min.js') ?>"></script>
70
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery/plugins/accordion/jquery.accordion.js') ?>"></script>
71
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/off-canvas.js') ?>"></script>
72
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/ja.script.js') ?>"></script>
73
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery.equalheights.js') ?>"></script>
74
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/lemmon-slider.js') ?>"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/html/header.phtml DELETED
@@ -1,55 +0,0 @@
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_default
22
- * @package Mage
23
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- global $tmpTools;
27
- ?>
28
- <h1 id="logo"><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" style="background-image: url(<?php echo $this->getLogoSrc() ?>);"><?php echo $this->getLogoAlt() ?></a></h1>
29
- <p class="no-display"><a href="#main"><strong><?php echo $this->__('Skip to Main Content') ?> &raquo;</strong></a></p>
30
- <div id="topbar">
31
- <div class="quick-access clearfix">
32
- <p><?php echo $this->getWelcome() ?></p>
33
- <div class="shop-access">
34
- <?php echo $this->getChildHtml('topLinks') ?>
35
- </div>
36
- <!-- BEGIN: SITE SEARCH -->
37
- <div id="ja-search">
38
- <?php echo $this->getChildHtml('topSearch') ?>
39
- </div>
40
- <!-- END: SITE SEARCH -->
41
- </div>
42
-
43
- <!-- BEGIN: MAIN NAVIGATION -->
44
- <div id="ja-mainnav" class="clearfix has-toggle">
45
- <div class="btn-toggle menu-toggle" data-target="#jm-megamenu ul.level0" >
46
- <span>&nbsp;</span><strong><?php echo $this->__('Menu') ?></strong>
47
- </div>
48
- <div class="inner-toggle clearfix" id="ja-mainnav-inner">
49
- <span class="arrow"></span>
50
- <?php echo $this->getChildHtml('topMenu') ?>
51
- </div>
52
- <?php echo $this->getChildHtml('top_cart_sidebar') ?>
53
- </div>
54
- <!-- END: MAIN NAVIGATION -->
55
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/html/tool.links.phtml DELETED
@@ -1,29 +0,0 @@
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_default
22
- * @package Mage
23
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- global $tmpTools;
27
- ?>
28
- <?php echo $tmpTools->genToolMenu ($tmpTools->getParam('usertool_font'),'png'); ?>
29
- <?php echo $this->getChildHtml() ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/html/top.links.phtml DELETED
@@ -1,34 +0,0 @@
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_default
22
- * @package Mage
23
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- ?>
27
- <?php if($toplinks && is_array($toplinks)): ?>
28
- <ul>
29
- <?php echo $this->getChildHtml() ?>
30
- <?php foreach($toplinks as $_toplink): ?>
31
- <li<?php if($_toplink['first']||$_toplink['last']): ?> class="<?php if($_toplink['first']): ?>first <?php endif; ?><?php if($_toplink['last']): ?>last <?php endif; ?>"<?php endif; ?> <?php echo $_toplink['liParams'] ?>> <?php echo $_toplink['beforeText'] ?><a <?php echo $_toplink['aParams'] ?>><?php echo $_toplink['innerText'] ?></a><?php echo $_toplink['afterText'] ?></li>
32
- <?php endforeach; ?>
33
- </ul>
34
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/html/topmenu.phtml DELETED
@@ -1,155 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- * Top menu for store
30
- *
31
- * @see Mage_Page_Block_Html_Topmenu
32
- */
33
- function renderMenuItemHtml($inst, $category, $level = 0)
34
- {
35
- if (!$category->getIsActive()) {
36
- return '';
37
- }
38
- $html = array();
39
-
40
- // get all children
41
- if (Mage::helper('catalog/category_flat')->isEnabled()) {
42
- $children = (array)$category->getChildrenNodes();
43
- $childrenCount = count($children);
44
- } else {
45
- $children = $category->getChildren();
46
- $childrenCount = $children->count();
47
- }
48
- $hasChildren = ($children && $childrenCount);
49
-
50
- // select active children
51
- $activeChildren = array();
52
- foreach ($children as $child) {
53
- if ($child->getIsActive()) {
54
- $activeChildren[] = $child;
55
- }
56
- }
57
- $activeChildrenCount = count($activeChildren);
58
- $hasActiveChildren = ($activeChildrenCount > 0);
59
-
60
- // prepare list item html classes
61
- $active = '';
62
- if ($inst->isCategoryActive($category)) {
63
- $active = ' selected="selected"';
64
- }
65
-
66
- // assemble list item with attributes
67
- $html[] = '<option value="'.$inst->getCategoryUrl($category).'"'.$active.'>'.str_repeat('&nbsp;&nbsp;', $level).($level > 0 ? '---&nbsp;&nbsp;' : '').$inst->escapeHtml($category->getName()).'</option>';
68
-
69
- // render children
70
- $htmlChildren = '';
71
- $j = 0;
72
- foreach ($activeChildren as $child) {
73
- $htmlChildren .= renderMenuItemHtml(
74
- $inst,
75
- $child,
76
- ($level + 1)
77
- );
78
- $j++;
79
- }
80
-
81
- if (!empty($htmlChildren)) {
82
- $html[] = $htmlChildren;
83
- }
84
-
85
- $html = implode("\n", $html);
86
- return $html;
87
- }
88
-
89
- function renderMenuHtml($inst, $level = 0, $outermostItemClass = '', $childrenWrapClass = '')
90
- {
91
- $activeCategories = array();
92
- foreach ($inst->getStoreCategories() as $child) {
93
- if ($child->getIsActive()) {
94
- $activeCategories[] = $child;
95
- }
96
- }
97
- $activeCategoriesCount = count($activeCategories);
98
- $hasActiveCategoriesCount = ($activeCategoriesCount > 0);
99
-
100
- if (!$hasActiveCategoriesCount) {
101
- return '';
102
- }
103
-
104
- $html = '';
105
- $j = 0;
106
- foreach ($activeCategories as $category) {
107
- $html .= renderMenuItemHtml(
108
- $inst,
109
- $category,
110
- $level
111
- );
112
- $j++;
113
- }
114
-
115
- return $html;
116
- }
117
-
118
- ?>
119
- <?php $_menu = $this->getHtml('level-top') ?>
120
- <?php
121
- global $tmpTools;
122
- if ($tmpTools->isHomepage()===FALSE)
123
- {
124
- $homecls='class="level0 nav-home"';
125
- } else {
126
- $homecls='class="level0 nav-home active"';
127
- }
128
- ?>
129
- <?php if($_menu):
130
- $mhtml = renderMenuHtml(new Mage_Catalog_Block_Navigation(), 0, 'level-top');
131
- ?>
132
- <div class="nav-container">
133
- <ul id="nav">
134
- <?php $first=0;?>
135
- <li <?php echo $homecls;?>>
136
- <a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->__('Home') ?>" class="<?php if($first==0): echo ' first'; endif;?>" ><span><?php echo $this->__('Home') ?></span></a>
137
- </li>
138
- <?php echo $_menu ?>
139
- <?php if ( $tmpTools->getParam("usertool_color", '4') == "4" ) : ?>
140
- <li class="level0 parent" >
141
- <a onmouseout="toggleMenu(this,0)" onmouseover="toggleMenu(this,1)" href="#"><span>Colors</span></a>
142
- <?php echo $tmpTools->genToolMenu ($tmpTools->getParam('usertool_color'),'txt'); ?>
143
- </li>
144
- <?php endif; ?>
145
- </ul>
146
- <div id="nav-mobile-button">
147
- <select id="nav-mobile" onchange="if(this.value.substr(0, 6) == 'switch') { eval(this.value); } else { window.location.href = this.value; }">
148
- <option <?php echo $tmpTools->isHomepage()? 'selected="selected" ' : ''?>value="<?php echo $this->getUrl('') ?>"><?php echo $this->__('Home') ?></option>
149
- <?php echo $mhtml ?>
150
- <option value="#"><?php echo $this->__('Colors') ?></option>
151
- <?php echo $tmpTools->genToolMenu ($tmpTools->getParam('usertool_color'),'select'); ?>
152
- </select>
153
- </div>
154
- </div>
155
- <?php endif ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/html/wrapper.phtml DELETED
@@ -1,45 +0,0 @@
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_default
22
- * @package Mage
23
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
-
27
- /**
28
- * This template is for generic wrapper purposes, including ajax.updater loaded blocks
29
- *
30
- * Usage in layout xml files:
31
- * <block type="core/template" template="page/html/wrapper.phtml">
32
- * <action method="setId"><id>some-custom-identificator</id></action>
33
- *
34
- * <!-- optional -->
35
- * <action method="setTag"><tag>span</tag></action> <!-- div is used if not specified -->
36
- * <action method="setParams"><params>class="custom-class"</params></action>
37
- *
38
- * <!-- insert wrapped blocks here -->
39
- * </block>
40
- */
41
- ?>
42
- <?php $_tag = $this->hasTag() ? $this->getTag() : "div" ?>
43
- <<?php echo $_tag?> id="<?php echo $this->getId()?>" <?php echo $this->getParams()?>>
44
- <?php echo $this->getChildHtml()?>
45
- </<?php echo $_tag?>>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/includes/templatetools.php DELETED
@@ -1,413 +0,0 @@
1
- <?php
2
- /*
3
- * ------------------------------------------------------------------------
4
- * JM Trex Theme for Magento 1.8
5
- * ------------------------------------------------------------------------
6
- * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
7
- * @license - Copyrighted Commercial Software
8
- * Author: J.O.O.M Solutions Co., Ltd
9
- * Websites: http://www.joomlart.com - http://www.joomlancers.com
10
- * This file may not be redistributed in whole or significant part.
11
- * ------------------------------------------------------------------------
12
- */
13
-
14
- define ('JA_TOOL_COLOR', 'ja_color');
15
- define ('JA_TOOL_SCREEN', 'ja_screen');
16
- define ('JA_TOOL_FONT', 'ja_font');
17
- define ('JA_TOOL_LAYOUT', 'ja_layout');
18
- define ('JA_TOOL_BODY', 'ja_body');
19
- define ('JA_TOOL_MENU', 'ja_menu');
20
- define ('JA_TOOL_USER', 'usertool');
21
-
22
- $mageFilename = 'app/Mage.php';
23
-
24
- if (!file_exists($mageFilename)) {
25
- if (is_dir('downloader')) {
26
- header("Location: downloader");
27
- } else {
28
- echo $mageFilename." was not found";
29
- }
30
- exit;
31
- }
32
-
33
- require_once $mageFilename;
34
-
35
- class JA_Tools {
36
- var $_params_cookie = array(); //Params will store in cookie for user select. Default: store all params
37
- var $_params = null; //Params will store in cookie for user select. Default: store all params
38
- var $template = 'ja_labra';
39
- //This default value could override by setting with function setScreenSizes() and setColorThemes()
40
- var $_ja_layouts = null;
41
- var $_ja_body_themes = null;
42
- var $_ja_screen_sizes = null;
43
- var $_ja_color_themes = null;
44
-
45
- function JA_Tools ($template, $_param, $_params_cookie=null) {
46
- $this->template = $template;
47
- $this->_params = $_param;
48
- if(!$_params_cookie) {
49
- $_params_cookie = array();
50
- }
51
-
52
- if ($this->getParam('usertool_screen') && !in_array(JA_TOOL_SCREEN, $_params_cookie)) {
53
- $_params_cookie[]=JA_TOOL_SCREEN;
54
- }
55
- if ($this->getParam('usertool_font') && !in_array(JA_TOOL_FONT, $_params_cookie)) {
56
- $_params_cookie[]=JA_TOOL_FONT;
57
- }
58
- if ($this->getParam('usertool_color') && !in_array(JA_TOOL_COLOR, $_params_cookie)) {
59
- $_params_cookie[]=JA_TOOL_COLOR;
60
- }
61
-
62
- if ($this->getParam('usertool_layout') && !in_array(JA_TOOL_LAYOUT, $_params_cookie)) {
63
- $_params_cookie[]=JA_TOOL_LAYOUT;
64
- }
65
- if ($this->getParam('usertool_body') && !in_array(JA_TOOL_BODY, $_params_cookie)) {
66
- $_params_cookie[]=JA_TOOL_BODY;
67
- }
68
- if($_params_cookie){
69
- foreach ($_params_cookie as $k) {
70
- $this->_params_cookie[$k] = $this->_params->get($k);
71
- }
72
- }
73
- $this->getUserSetting();
74
- }
75
-
76
- function getUserSetting(){
77
- $exp = time() + 60*60*24*355;
78
- if (isset($_COOKIE[$this->template.'_tpl']) && $_COOKIE[$this->template.'_tpl'] == $this->template){
79
- foreach($this->_params_cookie as $k=>$v) {
80
- $kc = $this->template."_".$k;
81
- if (isset($_GET[$k])){
82
- $v = $_GET[$k];
83
- setcookie ($kc, $v, $exp, '/');
84
- }else{
85
- if (isset($_COOKIE[$kc])){
86
- $v = $_COOKIE[$kc];
87
- }
88
- }
89
- $this->setParam($k, $v);
90
- }
91
-
92
- }else{
93
- @setcookie ($this->template.'_tpl', $this->template, $exp, '/');
94
- }
95
- return $this;
96
- }
97
-
98
- function getParam ($param, $default='') {
99
- if (isset($this->_params_cookie[$param])) {
100
- return $this->_params_cookie[$param];
101
- }
102
- return $this->_params->get($param, $default);
103
- }
104
-
105
- function setParam ($param, $value) {
106
- $this->_params_cookie[$param] = $value;
107
- }
108
-
109
- function genToolMenu($ja_tools, $imgext = 'gif'){
110
- if($ja_tools & 1){//show screen tools
111
- ?>
112
- <ul class="ja-usertools-screen">
113
- <?php
114
- foreach ($this->_ja_screen_sizes as $ja_screen_size) {
115
- echo "
116
- <li><img style=\"cursor: pointer;\" alt=\"$ja_screen_size\" src=\"".$this->skinurl()."/images/".strtolower($ja_screen_size).( ($this->getParam(JA_TOOL_SCREEN)==$ja_screen_size) ? "-hilite" : "" ).".".$imgext."\" title=\"".$ja_screen_size."\" alt=\"".$ja_screen_size."\" id=\"ja-tool-".$ja_screen_size."\" onclick=\"switchTool('".$this->template."_".JA_TOOL_SCREEN."','$ja_screen_size');return false;\" /></li>
117
- ";
118
- }
119
- ?>
120
- </ul>
121
- <?php
122
- }
123
-
124
- if ($ja_tools & 2){//show font tools
125
- ?>
126
- <ul class="ja-usertools-font">
127
- <li><img style="cursor: pointer;" title="Increase font size" src="<?php echo $this->skinurl();?>/images/user-increase.<?php echo $imgext;?>" alt="Increase font size" id="ja-tool-increase" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>','inc'); return false;" /></li>
128
- <li><img style="cursor: pointer;" title="Default font size" src="<?php echo $this->skinurl();?>/images/user-reset.<?php echo $imgext;?>" alt="Default font size" id="ja-tool-reset" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>',<?php echo $this->_params->get(JA_TOOL_FONT);?>); return false;" /></li>
129
- <li><img style="cursor: pointer;" title="Decrease font size" src="<?php echo $this->skinurl();?>/images/user-decrease.<?php echo $imgext;?>" alt="Decrease font size" id="ja-tool-decrease" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>','dec'); return false;" /></li>
130
- </ul>
131
- <script type="text/javascript">var CurrentFontSize=parseInt('<?php echo $this->getParam(JA_TOOL_FONT);?>');</script>
132
- <?php } ?>
133
-
134
- <?php
135
- if ($ja_tools & 4){//show color tools
136
- ?>
137
-
138
- <?php
139
- if ($imgext=='txt'){
140
- ?>
141
- <ul class="ja-usertools-color level0 clearfix">
142
- <?php
143
- foreach ($this->_ja_color_themes as $ja_color_theme)
144
- {
145
- echo "
146
- <li class=\"level1 ".( ($this->getParam(JA_TOOL_COLOR)==$ja_color_theme) ? "hilite " : "" ).$ja_color_theme."\"><a href=\"#\" style=\"cursor: pointer;\" title=\"".$ja_color_theme." color\" id=\"ja-tool-".$ja_color_theme."color\" onclick=\"switchTool('".$this->template."_".JA_TOOL_COLOR."','$ja_color_theme');return false;\"><span>".ucfirst($ja_color_theme)."&nbsp;Color</span></a></li>
147
- ";
148
- }
149
- ?>
150
- </ul>
151
- <?php
152
- }
153
- elseif ($imgext=='img') {
154
- ?>
155
- <ul class="ja-usertools-color level0 clearfix">
156
- <?php
157
- foreach ($this->_ja_color_themes as $ja_color_theme)
158
- {
159
- echo "
160
- <li><img style=\"cursor: pointer;\" src=\"".$this->skinurl()."/images/".strtolower($ja_color_theme).( ($this->getParam(JA_TOOL_COLOR)==$ja_color_theme) ? "-hilite" : "" ).".".$imgext."\" title=\"".$ja_color_theme." color\" alt=\"".$ja_color_theme." color\" id=\"ja-tool-".$ja_color_theme."color\" onclick=\"switchTool('".$this->template."_".JA_TOOL_COLOR."','$ja_color_theme');return false;\" /></li>
161
- ";
162
- }
163
- ?>
164
- </ul>
165
- <?php
166
- }
167
- else {
168
- ?>
169
- <?php
170
- foreach ($this->_ja_color_themes as $ja_color_theme)
171
- {
172
- ?>
173
- <option value="switchTool('<?php echo $this->template . '_' . JA_TOOL_COLOR . '\', \'' . $ja_color_theme . '\'' ?>)"><?php echo "&nbsp;&nbsp;---&nbsp;&nbsp;".ucfirst($ja_color_theme)."&nbsp;Color"; ?></option>
174
- <?php
175
- }
176
- ?>
177
- <?php
178
- }
179
- ?>
180
- <?php
181
- }
182
-
183
- if ($ja_tools & 16){//show LAYOUT tools
184
- ?>
185
- <ul class="ja-usertools-body">
186
- <?php
187
- foreach ($this->_ja_body_themes as $ja_body_theme) {
188
- echo "
189
- <li><img style=\"cursor: pointer;\" src=\"".$this->skinurl()."/images/".strtolower($ja_body_theme).( ($this->getParam(JA_TOOL_BODY)==$ja_body_theme) ? "-hilite" : "" ).".".$imgext."\" title=\"$ja_body_theme\" alt=\"$ja_body_theme\" id=\"ja-tool-".$ja_body_theme."\" onclick=\"switchTool('".$this->template."_".JA_TOOL_BODY."','$ja_body_theme');return false;\" /></li>
190
- ";
191
- }
192
- ?>
193
- </ul>
194
- <?php
195
- }
196
-
197
- if ($ja_tools & 32){//show font tools
198
- ?>
199
- <ul class="ja-usertools-expand">
200
- <li id="ja-mainbody-resize"></li>
201
- </ul>
202
- <?php
203
- }
204
-
205
- if ($ja_tools & 64){//show font tools
206
- ?>
207
- <div class="ja-usertools-modfunc">
208
- <a href="" title="Reset Module Status" onclick="switchTool('ja-ordercolumn','-'); return false;" >Reset Module Status</a>
209
- </div>
210
- <?php
211
- }
212
- }
213
-
214
- function setLayouts ($_array_layouts) {
215
- $this->_ja_layouts = $_array_layouts;
216
- }
217
-
218
- function setBodyThemes ($_array_body_themes){
219
- $this->_ja_body_themes = $_array_body_themes ;
220
- }
221
-
222
- function setScreenSizes ($_array_screen_sizes) {
223
- $this->_ja_screen_sizes = $_array_screen_sizes;
224
- }
225
-
226
- function setColorThemes ($_array_color_themes) {
227
- $this->_ja_color_themes = $_array_color_themes;
228
- }
229
-
230
- function isIE6 () {
231
- $msie='/msie\s(5\.[5-9]|[6]\.[0-9]*).*(win)/i';
232
- return isset($_SERVER['HTTP_USER_AGENT']) &&
233
- preg_match($msie,$_SERVER['HTTP_USER_AGENT']) &&
234
- !preg_match('/opera/i',$_SERVER['HTTP_USER_AGENT']);
235
- }
236
-
237
- function isOP () {
238
- return isset($_SERVER['HTTP_USER_AGENT']) &&
239
- preg_match('/opera/i',$_SERVER['HTTP_USER_AGENT']);
240
- }
241
-
242
- function baseurl(){
243
- return $this->getBaseURL();
244
- }
245
-
246
- function getBaseURL() {
247
- static $_baseURL = '';
248
- if (!$_baseURL) {
249
- // Determine if the request was over SSL (HTTPS)
250
- if (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) != 'off')) {
251
- $https = 's://';
252
- } else {
253
- $https = '://';
254
- }
255
-
256
- /*
257
- * Since we are assigning the URI from the server variables, we first need
258
- * to determine if we are running on apache or IIS. If PHP_SELF and REQUEST_URI
259
- * are present, we will assume we are running on apache.
260
- */
261
- if (!empty ($_SERVER['PHP_SELF']) && !empty ($_SERVER['REQUEST_URI'])) {
262
-
263
- /*
264
- * To build the entire URI we need to prepend the protocol, and the http host
265
- * to the URI string.
266
- */
267
- $theURI = 'http' . $https . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
268
-
269
- /*
270
- * Since we do not have REQUEST_URI to work with, we will assume we are
271
- * running on IIS and will therefore need to work some magic with the SCRIPT_NAME and
272
- * QUERY_STRING environment variables.
273
- */
274
- }
275
- else
276
- {
277
- // IIS uses the SCRIPT_NAME variable instead of a REQUEST_URI variable... thanks, MS
278
- $theURI = 'http' . $https . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
279
-
280
- // If the query string exists append it to the URI string
281
- if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {
282
- $theURI .= '?' . $_SERVER['QUERY_STRING'];
283
- }
284
- }
285
-
286
- // Now we need to clean what we got since we can't trust the server var
287
- $theURI = urldecode($theURI);
288
- $theURI = str_replace('"', '&quot;',$theURI);
289
- $theURI = str_replace('<', '&lt;',$theURI);
290
- $theURI = str_replace('>', '&gt;',$theURI);
291
- $theURI = preg_replace('/eval\((.*)\)/', '', $theURI);
292
- $theURI = preg_replace('/[\\\"\\\'][\\s]*javascript:(.*)[\\\"\\\']/', '""', $theURI);
293
-
294
- //Parse theURL
295
- $_parts = $this->_parseURL ($theURI);
296
- $_baseURL = '';
297
- $_baseURL .= (!empty($_parts['scheme']) ? $_parts['scheme'].'://' : '');
298
- $_baseURL .= (!empty($_parts['host']) ? $_parts['host'] : '');
299
- $_baseURL .= (!empty($_parts['port']) && $_parts['port']!=80 ? ':'.$_parts['port'] : '');
300
-
301
- if (strpos(php_sapi_name(), 'cgi') !== false && !empty($_SERVER['REQUEST_URI'])) {
302
- //Apache CGI
303
- $_path = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
304
- } else {
305
- //Others
306
- $_path = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\\');
307
- }
308
-
309
- $_baseURL .= $_path;
310
- }
311
- return $_baseURL;
312
- }
313
-
314
- function _parseURL($uri)
315
- {
316
- $parts = array();
317
- if (version_compare( phpversion(), '4.4' ) < 0)
318
- {
319
- $regex = "<^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?>";
320
- $matches = array();
321
- preg_match($regex, $uri, $matches, PREG_OFFSET_CAPTURE);
322
-
323
- $authority = @$matches[4][0];
324
- if (strpos($authority, '@') !== false) {
325
- $authority = explode('@', $authority);
326
- @list($parts['user'], $parts['pass']) = explode(':', $authority[0]);
327
- $authority = $authority[1];
328
- }
329
-
330
- if (strpos($authority, ':') !== false) {
331
- $authority = explode(':', $authority);
332
- $parts['host'] = $authority[0];
333
- $parts['port'] = $authority[1];
334
- } else {
335
- $parts['host'] = $authority;
336
- }
337
-
338
- $parts['scheme'] = @$matches[2][0];
339
- $parts['path'] = @$matches[5][0];
340
- $parts['query'] = @$matches[7][0];
341
- $parts['fragment'] = @$matches[9][0];
342
- }
343
- else
344
- {
345
- $parts = @parse_url($uri);
346
- }
347
- return $parts;
348
- }
349
-
350
- function templateurl(){
351
- return $this->getBaseURL()."/app/design/frontend/default/".$this->template;
352
- }
353
-
354
- function skinurl(){
355
- return Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)."skin/frontend/default/".$this->template;
356
- }
357
-
358
- function getRandomImage ($img_folder) {
359
- $imglist=array();
360
-
361
- mt_srand((double)microtime()*1000);
362
-
363
- //use the directory class
364
- $imgs = dir($img_folder);
365
-
366
- //read all files from the directory, checks if are images and ads them to a list (see below how to display flash banners)
367
- while ($file = $imgs->read()) {
368
- if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
369
- $imglist[] = $file;
370
- }
371
- closedir($imgs->handle);
372
-
373
- if(!count($imglist)) return '';
374
-
375
- //generate a random number between 0 and the number of images
376
- $random = mt_rand(0, count($imglist)-1);
377
- $image = $imglist[$random];
378
-
379
- return $image;
380
- }
381
-
382
- function isHomepage () {
383
- if (strpos(php_sapi_name(), 'cgi') !== false && !empty($_SERVER['REQUEST_URI'])) {
384
- //Apache CGI
385
- $_path = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
386
- } else {
387
- //Others
388
- $_path = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\\');
389
- }
390
- $uri = $_SERVER['REQUEST_URI'];
391
- if ($uri && $_path && strpos ($uri, $_path) === 0) {
392
- $uri = substr($uri, strlen ($_path));
393
- }
394
- $uri = strtolower($uri);
395
- if (in_array($uri, array('', '/', '/index.php','/index.php/', '/home', '/home/', '/default', '/default/', '/default/home', '/default/home/'))) return $uri;
396
- if (strpos($uri, '/home-')===0) return $uri;
397
- return FALSE;
398
- }
399
- }
400
-
401
- class JParameter {
402
- var $_params;
403
- function JParameter () {
404
- $this->_params = array();
405
- }
406
- function get ($key, $default = '') {
407
- return isset($this->_params[$key])?$this->_params[$key]:$default;
408
- }
409
- function set ($key, $value = '') {
410
- $this->_params[$key] = $value;
411
- }
412
- }
413
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/ja_vars.php DELETED
@@ -1,43 +0,0 @@
1
- <?php
2
- /*
3
- * ------------------------------------------------------------------------
4
- * JM Trex Theme for Magento 1.8
5
- * ------------------------------------------------------------------------
6
- * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
7
- * @license - Copyrighted Commercial Software
8
- * Author: J.O.O.M Solutions Co., Ltd
9
- * Websites: http://www.joomlart.com - http://www.joomlancers.com
10
- * This file may not be redistributed in whole or significant part.
11
- * ------------------------------------------------------------------------
12
- */
13
-
14
- // no direct access
15
- include_once (dirname(__FILE__).DS.'/includes/templatetools.php');
16
-
17
- # BEGIN: TEMPLATE CONFIGURATIONS ##########
18
- ####################################
19
- $_params = new JParameter();
20
- #FONT SIZE DESCRIPTION
21
- $_params->set('ja_font','3');//value from 1 to 6
22
- #Color
23
- $_params->set('ja_color','default');//default, red
24
- #TEMPLATE WIDTH DESCRIPTION
25
- $_params->set('ja_screen','wide');//narrow:Narrow Screen; wide:Wide Screen;
26
- #MENU'S TYPE
27
- $_params->set('ja_menu','css');//css:CSS Menu; moo:Moo Menu;
28
-
29
- $_params->set('usertool_font', 2); //0: disable, 2: show font tools
30
- $_params->set('usertool_color', 4); //0: disable, 4: show font tools
31
- # END: TEMPLATE CONFIGURATIONS ##########
32
-
33
- global $tmpTools;
34
- if (defined('_DEMO_MODE_')) {
35
- $tmpTools = new JA_Tools('jm_trex', $_params, array(JA_TOOL_MENU, JA_TOOL_COLOR));
36
- $tmpTools->checkHomepage();
37
- } else {
38
- $tmpTools = new JA_Tools('jm_trex', $_params);
39
- }
40
-
41
- #Supported colors
42
- $tmpTools->setColorThemes (array('default','blue','green','violet','yellow'));
43
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/popup.phtml DELETED
@@ -1,45 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 2011 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
- * Template for Mage_Page_Block_Html
30
- */
31
- ?>
32
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
34
- <head>
35
- <?php echo $this->getChildHtml('head') ?>
36
- </head>
37
- <body class="page-popup<?php echo $this->getBodyClass()?$this->getBodyClass() : ''?>">
38
- <div>
39
- <?php echo $this->getChildHtml('after_body_start') ?>
40
- <?php echo $this->getChildHtml('content') ?>
41
- <?php echo $this->getChildHtml('before_body_end') ?>
42
- </div>
43
- <?php echo $this->getAbsoluteFooter() ?>
44
- </body>
45
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/print.phtml DELETED
@@ -1,52 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 2011 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
- * Template for Mage_Page_Block_Html
30
- */
31
- ?>
32
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
34
- <head>
35
- <?php echo $this->getChildHtml('head') ?>
36
- </head>
37
- <body class="page-print<?php echo $this->getBodyClass()?$this->getBodyClass():'' ?>">
38
- <div>
39
- <div class="print-head">
40
- <img src="<?php echo $this->getPrintLogoUrl() ? $this->getPrintLogoUrl() : $this->getSkinUrl('images/logo_print.gif') ?>" class="logo" alt="" />
41
- <?php if ($this->getPrintLogoText()):?>
42
- <address><?php echo nl2br($this->htmlEscape($this->getPrintLogoText())) ?></address>
43
- <?php endif;?>
44
- </div>
45
- <?php echo $this->getChildHtml('content') ?>
46
- <div class="buttons-set">
47
- <button type="button" title="<?php echo $this->__('Close Window') ?>" class="button" onclick="window.close();"><span><span><?php echo $this->__('Close Window') ?></span></span></button>
48
- </div>
49
- <?php echo $this->getAbsoluteFooter() ?>
50
- </div>
51
- </body>
52
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/switch/flags.phtml DELETED
@@ -1,37 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 2011 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(count($this->getStores())>1): ?>
28
- <div class="form-language">
29
- <label for="select-language"><?php echo $this->__('Your Language:') ?></label>
30
- <select id="select-language" title="<?php echo $this->__('Your Language') ?>" onchange="window.location.href=this.value" class="flags">
31
- <?php foreach ($this->getStores() as $_lang): ?>
32
- <?php $_selected = ($_lang->getId() == $this->getCurrentStoreId()) ? ' selected="selected"' : '' ?>
33
- <option value="<?php echo $_lang->getCurrentUrl() ?>" style="background-image:url('<?php echo $this->getSkinUrl('images/flags/flag_'.$_lang->getCode().'.gif') ?>');"<?php echo $_selected ?>><?php echo $this->htmlEscape($_lang->getName()) ?></option>
34
- <?php endforeach; ?>
35
- </select>
36
- </div>
37
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/switch/languages.phtml DELETED
@@ -1,44 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 2011 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
- * Language switcher template
30
- *
31
- * @see Mage_Page_Block_Switch
32
- */
33
- ?>
34
- <?php if(count($this->getStores())>1): ?>
35
- <div class="form-language">
36
- <label for="select-language"><?php echo $this->__('Your Language:') ?></label>
37
- <select id="select-language" title="<?php echo $this->__('Your Language') ?>" onchange="window.location.href=this.value">
38
- <?php foreach ($this->getStores() as $_lang): ?>
39
- <?php $_selected = ($_lang->getId() == $this->getCurrentStoreId()) ? ' selected="selected"' : '' ?>
40
- <option value="<?php echo $_lang->getCurrentUrl() ?>"<?php echo $_selected ?>><?php echo $this->htmlEscape($_lang->getName()) ?></option>
41
- <?php endforeach; ?>
42
- </select>
43
- </div>
44
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/switch/stores.phtml DELETED
@@ -1,47 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 2011 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
- * Store switcher template
30
- *
31
- * @see Mage_Core_Block_Store_Switcher
32
- */
33
- ?>
34
- <?php if(count($this->getGroups())>1): ?>
35
- <div class="store-switcher">
36
- <label for="select-store"><?php echo $this->__('Select Store:') ?></label>
37
- <select id="select-store" title="<?php echo $this->__('Select Store') ?>" onchange="location.href=this.value">
38
- <?php /*foreach ($this->getStores() as $_store): ?>
39
- <option value="<?php echo $_store->getUrl('') ?>"<?php if($_store->getId()==$this->getCurrentStoreId()): ?> selected="selected"<?php endif; ?>><?php echo $_store->getName() ?></option>
40
- <?php endforeach;*/ ?>
41
- <?php foreach ($this->getGroups() as $_group): ?>
42
- <?php $_selected = ($_group->getId()==$this->getCurrentGroupId()) ? ' selected="selected"' : '' ?>
43
- <option value="<?php echo $_group->getHomeUrl() ?>"<?php echo $_selected ?>><?php echo $this->htmlEscape($_group->getName()) ?></option>
44
- <?php endforeach; ?>
45
- </select>
46
- </div>
47
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/template/container.phtml DELETED
@@ -1,35 +0,0 @@
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_default
22
- * @package Mage
23
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- ?>
27
- <?php
28
- /**
29
- * @see Mage_Page_Block_Template_Container
30
- */
31
- ?>
32
- <div class="page-head">
33
- <h3><?php echo $this->getTitle() ?></h3>
34
- </div>
35
- <?php echo $this->getChildHtml() ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/page/template/footer_links.phtml DELETED
@@ -1,52 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- * @see Mage_Page_Block_Template_Links
30
- */
31
- ?>
32
- <div class=" col-3 col-narrow">
33
- <div class="block block-list">
34
- <div class="block-title">
35
- <strong><span><?php echo $this->__('Quick Links') ?></span></strong>
36
- </div>
37
- <div class="block-content">
38
- <?php $_links = $this->getLinks(); ?>
39
- <?php if(count($_links)>0): ?>
40
- <ul class="links"<?php if($this->getName()): ?> id="<?php echo $this->getName() ?>"<?php endif;?>>
41
- <?php foreach($_links as $_link): ?>
42
- <?php if ($_link instanceof Mage_Core_Block_Abstract):?>
43
- <?php echo $_link->toHtml() ?>
44
- <?php else: ?>
45
- <li<?php if($_link->getIsFirst()||$_link->getIsLast()): ?> class="<?php if($_link->getIsFirst()): ?>first<?php endif; ?><?php if($_link->getIsLast()): ?> last<?php endif; ?>"<?php endif; ?> <?php echo $_link->getLiParams() ?>><?php echo $_link->getBeforeText() ?><a href="<?php echo $_link->getUrl() ?>" title="<?php echo $_link->getTitle() ?>" <?php echo $_link->getAParams() ?>><?php echo $_link->getLabel() ?></a><?php echo $_link->getAfterText() ?></li>
46
- <?php endif;?>
47
- <?php endforeach; ?>
48
- </ul>
49
- <?php endif; ?>
50
- </div>
51
- </div>
52
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/jm_trex/template/persistent/customer/form/login.phtml DELETED
@@ -1,90 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 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
- * Customer login form template
30
- *
31
- * @see app/design/frontend/base/default/template/customer/form/login.phtml
32
- */
33
- /** @var $this Mage_Customer_Block_Form_Login */
34
- ?>
35
- <div class="account-login">
36
- <div class="page-title">
37
- <h1><?php echo $this->__('Login or Create an Account') ?></h1>
38
- </div>
39
- <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
40
- <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="login-form">
41
- <input type="hidden" name="form_key" value="<? echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
42
- <div class="col2-set">
43
- <div class="col-1 new-users">
44
- <div class="content">
45
- <h2><?php echo $this->__('New Customers') ?></h2>
46
- <p><?php echo $this->__('By creating an account with our store, you will be able to move through the checkout process faster, store multiple shipping addresses, view and track your orders in your account and more.') ?></p>
47
- </div>
48
- <div class="buttons-set">
49
- <button type="button" title="<?php echo $this->__('Create an Account') ?>" class="button" onclick="window.location='<?php echo Mage::helper('persistent')->getCreateAccountUrl($this->getCreateAccountUrl()) ?>';"><span><span><?php echo $this->__('Create an Account') ?></span></span></button>
50
- </div>
51
- </div>
52
- <div class="col-2 registered-users">
53
- <div class="content">
54
- <h2><?php echo $this->__('Registered Customers') ?></h2>
55
- <p><?php echo $this->__('If you have an account with us, please log in.') ?></p>
56
- <ul class="form-list">
57
- <li>
58
- <label for="email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
59
- <div class="input-box">
60
- <input type="text" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" id="email" class="input-text required-entry validate-email" title="<?php echo $this->__('Email Address') ?>" />
61
- </div>
62
- </li>
63
- <li>
64
- <label for="pass" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
65
- <div class="input-box">
66
- <input type="password" name="login[password]" class="input-text required-entry validate-password" id="pass" title="<?php echo $this->__('Password') ?>" />
67
- </div>
68
- </li>
69
- <?php echo $this->getChildHtml('form.additional.info'); ?>
70
- <?php echo $this->getChildHtml('persistent.remember.me'); ?>
71
- </ul>
72
- <?php echo $this->getChildHtml('persistent.remember.me.tooltip'); ?>
73
- <p class="required"><?php echo $this->__('* Required Fields') ?></p>
74
- </div>
75
- <div class="buttons-set">
76
- <a href="<?php echo $this->getForgotPasswordUrl() ?>" class="f-left"><?php echo $this->__('Forgot Your Password?') ?></a>
77
- <button type="submit" class="button" title="<?php echo $this->__('Login') ?>" name="send" id="send2"><span><span><?php echo $this->__('Login') ?></span></span></button>
78
- </div>
79
- </div>
80
- </div>
81
- <?php if (Mage::helper('checkout')->isContextCheckout()): ?>
82
- <input name="context" type="hidden" value="checkout" />
83
- <?php endif; ?>
84
- </form>
85
- <script type="text/javascript">
86
- //<![CDATA[
87
- var dataForm = new VarienForm('login-form', true);
88
- //]]>
89
- </script>
90
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/JoomlArt_JmProducts.xml DELETED
@@ -1,14 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <JoomlArt_JmProducts>
5
- <active>true</active>
6
- <codePool>local</codePool>
7
- <depends>
8
- <Mage_Catalog />
9
- </depends>
10
- <version>1.0.2</version>
11
- </JoomlArt_JmProducts>
12
- </modules>
13
- </config>
14
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/JoomlArt_JmSlideshow.xml DELETED
@@ -1,14 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <JoomlArt_JmSlideshow>
5
- <active>true</active>
6
- <codePool>local</codePool>
7
- <depends>
8
- <Mage_Catalog />
9
- </depends>
10
- <version>0.1.0</version>
11
- </JoomlArt_JmSlideshow>
12
- </modules>
13
- </config>
14
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/joomlart/jmproducts/jmproduct.js DELETED
@@ -1,6 +0,0 @@
1
- // JavaScript Document
2
-
3
- jQuery(document).ready(function(){
4
- jQuery('tr[id*="row_joomlart_jmproducts_joomlart_jmproducts_title"]').addClass("row_wavethemes_jmbasetheme_wavethemes_jmbasetheme_title")
5
- })
6
-
 
 
 
 
 
 
js/joomlart/jmproducts/jquery1.6.4.min.js DELETED
@@ -1,6 +0,0 @@
1
- /*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */
2
- (function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cq(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cp(){cn=b}function co(){setTimeout(cp,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(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 bZ(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 bY(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bA.test(a)?d(a,e):bY(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)bY(a+"["+e+"]",b[e],c,d);else d(a,b)}function bX(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 bW(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===bP,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=bW(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bW(a,c,d,e,"*",g));return l}function bV(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bL),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 by(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bt:bu;if(d>0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bv(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bl(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bd,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bk(a){f.nodeName(a,"input")?bj(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bj)}function bj(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bi(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bh(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bg(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)f.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function bf(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function V(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(Q.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 U(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function M(a,b){return(a&&a!=="*"?a+".":"")+b.replace(y,"`").replace(z,"&")}function L(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;i<s.length;i++)g=s[i],g.origType.replace(w,"")===a.type?q.push(g.selector):s.splice(i--,1);e=f(a.target).closest(q,a.currentTarget);for(j=0,k=e.length;j<k;j++){m=e[j];for(i=0;i<s.length;i++){g=s[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,d=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,d=f(a.relatedTarget).closest(g.selector)[0],d&&f.contains(h,d)&&(d=h);(!d||d!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p[j];if(c&&e.level>c)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function J(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function D(){return!0}function C(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function K(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(K,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=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/ig,x=/^-ms-/,y=function(a,b){return(b+"").toUpperCase()},z=d.userAgent,A,B,C,D=Object.prototype.toString,E=Object.prototype.hasOwnProperty,F=Array.prototype.push,G=Array.prototype.slice,H=String.prototype.trim,I=Array.prototype.indexOf,J={};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=n.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.6.4",length:0,size:function(){return this.length},toArray:function(){return G.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)?F.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(),B.done(a);return this},eq:function(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(G.apply(this,arguments),"slice",G.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:F,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;B.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!B){B=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",C,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",C),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&K()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):J[D.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!E.call(a,"constructor")&&!E.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||E.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw 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(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){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(x,"ms-").replace(w,y)},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:H?function(a){return a==null?"":H.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)?F.call(c,a):e.merge(c,a)}return c},inArray:function(a,b){if(!b)return-1;if(I)return I.call(b,a);for(var c=0,d=b.length;c<d;c++)if(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=G.call(arguments,2),g=function(){return a.apply(c,f.concat(G.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=s.exec(a)||t.exec(a)||u.exec(a)||a.indexOf("compatible")<0&&v.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){J["[object "+b+"]"]=b.toLowerCase()}),A=e.uaMatch(z),A.browser&&(e.browser[A.browser]=!0,e.browser.version=A.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?C=function(){c.removeEventListener("DOMContentLoaded",C,!1),e.ready()}:c.attachEvent&&(C=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",C),e.ready())});return e}(),g="done fail isResolved isRejected promise then always pipe".split(" "),h=[].slice;f.extend({_Deferred:function(){var a=[],b,c,d,e={done:function(){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=f.type(i),j==="array"?e.done.apply(e,i):j==="function"&&a.push(i);k&&e.resolveWith(k[0],k[1])}return this},resolveWith:function(e,f){if(!d&&!b&&!c){f=f||[],c=1;try{while(a[0])a.shift().apply(e,f)}finally{b=[e,f],c=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return!!c||!!b},cancel:function(){d=1,a=[];return this}};return e},Deferred:function(a){var b=f._Deferred(),c=f._Deferred(),d;f.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[c,"reject"]},function(a,c){var e=c[0],g=c[1],h;f.isFunction(e)?b[a](function(){h=e.apply(this,arguments),h&&f.isFunction(h.promise)?h.promise().then(d.resolve,d.reject):d[g+"With"](this===b?d:this,[h])}):b[a](d[g])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=g.length;while(c--)a[g[c]]=b[g[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){function i(a){return function(c){b[a]=arguments.length>1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c<d;c++)b[c]&&f.isFunction(b[c].promise)?b[c].promise().then(i(c),g.reject):--e;e||g.resolveWith(g,b)}else g!==a&&g.resolveWith(g,d?[a]:[]);return g.promise()}}),f.support=function(){var a=c.createElement("div"),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute("className","t"),a.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.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:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},m&&f.extend(p,{position:"absolute",left:"-1000px",top:"-1000px"});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([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&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i=f.expando,j=typeof c=="string",k=a.nodeType,l=k?f.cache:a,m=k?a[f.expando]:a[f.expando]&&f.expando;if((!m||e&&m&&l[m]&&!l[m][i])&&j&&d===b)return;m||(k?a[f.expando]=m=++f.uuid:m=f.expando),l[m]||(l[m]={},k||(l[m].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?l[m][i]=f.extend(l[m][i],c):l[m]=f.extend(l[m],c);g=l[m],e&&(g[i]||(g[i]={}),g=g[i]),d!==b&&(g[f.camelCase(c)]=d);if(c==="events"&&!g[c])return g[i]&&g[i].events;j?(h=g[c],h==null&&(h=g[f.camelCase(c)])):h=g;return h}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e=f.expando,g=a.nodeType,h=g?f.cache:a,i=g?a[f.expando]:f.expando;if(!h[i])return;if(b){d=c?h[i][e]:h[i];if(d){d[b]||(b=f.camelCase(b)),delete d[b];if(!l(d))return}}if(c){delete h[i][e];if(!l(h[i]))return}var j=h[i][e];f.support.deleteExpando||!h.setInterval?delete h[i]:h[i]=null,j?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=j):g&&(f.support.deleteExpando?delete a[f.expando]:a.removeAttribute?a.removeAttribute(f.expando):a[f.expando]=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=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h<i;h++)g=e[h].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),k(this[0],g,d[g]))}}return d}if(typeof a=="object")return this.each(function(){f.data(this,a)});var j=a.split(".");j[1]=j[1]?"."+j[1]:"";if(c===b){d=this.triggerHandler("getData"+j[1]+"!",[j[0]]),d===b&&this.length&&(d=f.data(this[0],a),d=k(this[0],a,d));return d===b&&j[1]?this.data(j[0]):d}return this.each(function(){var b=f(this),d=[j[0],c];b.triggerHandler("setData"+j[1]+"!",d),f.data(this,a,c),b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",f.data(a,c,(f.data(a,c,b,!0)||0)+1,!0))},_unmark:function(a,c,d){a!==!0&&(d=c,c=a,a=!1);if(c){d=d||"fx";var e=d+"mark",g=a?0:(f.data(c,e,b,!0)||1)-1;g?f.data(c,e,g,!0):(f.removeData(c,e,!0),m(c,d,"mark"))}},queue:function(a,c,d){if(a){c=(c||"fx")+"queue";var e=f.data(a,c,b,!0);d&&(!e||f.isArray(d)?e=f.data(a,c,f.makeArray(d),!0):e.push(d));return e||[]}},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"),d.call(a,function(){f.dequeue(a,b)})),c.length||(f.removeData(a,b+"queue",!0),m(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return 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(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},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._Deferred(),!0))h++,l.done(m);m();return d.promise()}});var n=/[\n\t\r]/g,o=/\s+/,p=/\r/g,q=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,t=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u,v;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},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(o);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(o);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(n," ");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(o);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+" ";for(var c=0,d=this.length;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(n," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.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.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),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=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h<i;h++){var j=e[h];if(j.selected&&(f.support.optDisabled?!j.disabled:j.getAttribute("disabled")===null)&&(!j.parentNode.disabled||!f.nodeName(j.parentNode,"optgroup"))){b=f(j).val();if(g)return b;d.push(b)}}if(g&&!d.length&&e.length)return f(e[c]).val();return d},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},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=v:u&&(i=u)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.attr(a,b,""),a.removeAttribute(b),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.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(u&&f.nodeName(a,"button"))return u.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(u&&f.nodeName(a,"button"))return u.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=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==null?g:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabIndex=f.propHooks.tabIndex,v={get:function(a,c){var d;return f.prop(a,c)===!0||(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}},f.support.getSetAttribute||(u=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?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.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.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.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 w=/\.(.*)$/,x=/^(?:textarea|input|select)$/i,y=/\./g,z=/ /g,A=/[^\w\s.|`]/g,B=function(a){return a.replace(A,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=C;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=C);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),B).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))f.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=f.event.special[h]||{};for(j=e||0;j<p.length;j++){q=p[j];if(d.guid===q.guid){if(l||n.test(q.namespace))e==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(e!=null)break}}if(p.length===0||e!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&f.removeEvent(a,h,s.handle),g=null,delete
3
- t[h]}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,f.isEmptyObject(s)&&f.removeData(a,b,!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){var h=c.type||c,i=[],j;h.indexOf("!")>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d[h];if(e||c.namespace_re.test(j.namespace)){c.handler=j.handler,c.data=j.data,c.handleObj=j;var k=j.handler.apply(this,g);k!==b&&(c.result=k,k===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[f.expando])return a;var d=a;a=f.Event(d);for(var e=this.props.length,g;e;)g=this.props[--e],a[g]=d[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocument||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scrollLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollTop||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(a){f.event.add(this,M(a.origType,a.selector),f.extend({},a,{handler:L,guid:a.handler.guid}))},remove:function(a){f.event.remove(this,M(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},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.preventDefault)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()?D:C):this.type=a,b&&f.extend(this,b),this.timeStamp=f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=D;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=D;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=D,this.stopPropagation()},isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C};var E=function(a){var b=a.relatedTarget,c=!1,d=a.type;a.type=a.data,b!==this&&(b&&(c=f.contains(this,b)),c||(f.event.handle.apply(this,arguments),a.type=d))},F=function(a){a.type=a.data,f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={setup:function(c){f.event.add(this,b,c&&c.selector?F:E,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?F:E)}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.nodeName(this,"form"))f.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=f.nodeName(b,"input")||f.nodeName(b,"button")?b.type:"";(c==="submit"||c==="image")&&f(b).closest("form").length&&J("submit",this,arguments)}),f.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=f.nodeName(b,"input")||f.nodeName(b,"button")?b.type:"";(c==="text"||c==="password")&&f(b).closest("form").length&&a.keyCode===13&&J("submit",this,arguments)});else return!1},teardown:function(a){f.event.remove(this,".specialSubmit")}});if(!f.support.changeBubbles){var G,H=function(a){var b=f.nodeName(a,"input")?a.type:"",c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},I=function(c){var d=c.target,e,g;if(!!x.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=H(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:I,beforedeactivate:I,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&I.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&I.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",H(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in G)f.event.add(this,c+".specialChange",G[c]);return x.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return x.test(this.nodeName)}},G=f.event.special.change.filters,G.focus=G.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i<j;i++)f.event.add(this[i],a,g,d);return this}}),f.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else for(var d=0,e=this.length;d<e;d++)f.event.remove(this[d],a,b);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},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)}});var K={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(a,c){f.fn[c]=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(this.context);if(typeof a=="object"&&!a.preventDefault){for(var o in a)n[c](o,d,a[o],m);return this}if(c==="die"&&!a&&g&&g.charAt(0)==="."){n.unbind(g);return this}if(d===!1||f.isFunction(d))e=d||C,d=b;a=(a||"").split(" ");while((h=a[i++])!=null){j=w.exec(h),k="",j&&(k=j[0],h=h.replace(w,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,K[h]?(a.push(K[h]+k),h=h+k):h=(K[h]||h)+k;if(c==="live")for(var p=0,q=n.length;p<q;p++)f.event.add(n[p],"live."+M(h,m),{data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l});else n.unbind("live."+M(h,m),e)}return this}}),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".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(!f)g=o=!0;else if(f===!0)continue}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.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&&!j.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&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.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&&k.filter(b,a,!0)}},"":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("parentNode",b,f,a,e,c)},"~":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("previousSibling",b,f,a,e,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(i,"")+" ";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(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.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]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),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]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.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!!k(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=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([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}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||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=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":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=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=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(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c<f;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){if(a===b){g=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i)return s(a,b);if(!h)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 s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=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}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},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)&&(l.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:[]}},l.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&&(l.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")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[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}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.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 k(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;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr[":"]=f.expr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains=k.contains}();var N=/Until$/,O=/^(?:parents|prevUntil|prevAll)/,P=/,/,Q=/^.[^:#\[\.,]*$/,R=Array.prototype.slice,S=f.expr.match.POS,T={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(V(this,a,!1),"not",a)},filter:function(a){return this.pushStack(V(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?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,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d<e;d++)i=a[d],j[i]||(j[i]=S.test(i)?f(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=S.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(l?l.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(U(c[0])||U(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),g=R.call(arguments);N.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!T[a]?f.unique(e):e,(this.length>1||P.test(d))&&O.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.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 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|object|embed|option|style)/i,bb=/checked\s*(?:[^=]|=\s*.checked.)/i,bc=/\/(java|ecma)script/i,bd=/^\s*<!(?:\[CDATA\[|\-\-)/,be={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,"",""]};be.optgroup=be.option,be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,f.support.htmlSerialize||(be._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},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){return this.each(function(){f(this).wrapAll(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(arguments[0]);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(arguments[0]).toArray());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){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!be[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},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"&&bb.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?bf(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bl)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i;b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof a[0]=="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!ba.test(a[0])&&(f.support.checkClone||!bb.test(a[0]))&&(g=!0,h=f.fragments[a[0]],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean
4
- (a,i,e,d)),g&&(f.fragments[a[0]]=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=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bh(a,d),e=bi(a),g=bi(d);for(h=0;e[h];++h)g[h]&&bh(e[h],g[h])}if(b){bg(a,d);if(c){e=bi(a),g=bi(d);for(h=0;e[h];++h)bg(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=be[l]||be._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bk(k[i]);else bk(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||bc.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&f.noData[j.nodeName.toLowerCase()])continue;c=j[f.expando];if(c){b=d[c]&&d[c][e];if(b&&b.events){for(var k in b.events)g[k]?f.event.remove(j,k):f.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[f.expando]:j.removeAttribute&&j.removeAttribute(f.expando),delete d[c]}}}});var bm=/alpha\([^)]*\)/i,bn=/opacity=([^)]*)/,bo=/([A-Z]|^ms)/g,bp=/^-?\d+(?:px)?$/i,bq=/^-?\d/,br=/^([\-+])=([\-+.\de]+)/,bs={position:"absolute",visibility:"hidden",display:"block"},bt=["Left","Right"],bu=["Top","Bottom"],bv,bw,bx;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bv(a,"opacity","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=br.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(bv)return bv(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return by(a,b,d);f.swap(a,bs,function(){e=by(a,b,d)});return e}},set:function(a,b){if(!bp.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bn.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.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bm,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bm.test(g)?g.replace(bm,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bv(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bw=function(a,c){var d,e,g;c=c.replace(bo,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bx=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bp.test(d)&&bq.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bv=bw||bx,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.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bz=/%20/g,bA=/\[\]$/,bB=/\r?\n/g,bC=/#.*$/,bD=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bE=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bF=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bG=/^(?:GET|HEAD)$/,bH=/^\/\//,bI=/\?/,bJ=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bK=/^(?:select|textarea)/i,bL=/\s+/,bM=/([?&])_=[^&]*/,bN=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bO=f.fn.load,bP={},bQ={},bR,bS,bT=["*/"]+["*"];try{bR=e.href}catch(bU){bR=c.createElement("a"),bR.href="",bR=bR.href}bS=bN.exec(bR.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bO)return bO.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(bJ,"")).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||bK.test(this.nodeName)||bE.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(bB,"\r\n")}}):{name:b.name,value:c.replace(bB,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(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?bX(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),bX(a,b);return a},ajaxSettings:{url:bR,isLocal:bF.test(bS[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bT},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:bV(bP),ajaxTransport:bV(bQ),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?bZ(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=b$(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.resolveWith(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._Deferred(),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=bD.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.done,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(bC,"").replace(bH,bS[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bL),d.crossDomain==null&&(r=bN.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bS[1]&&r[2]==bS[2]&&(r[3]||(r[1]==="http:"?80:443))==(bS[3]||(bS[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bW(bP,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bG.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bI.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bM,"$1_="+x);d.url=y+(y===d.url?(bI.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]!=="*"?", "+bT+"; 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=bW(bQ,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){s<2?w(-1,z):f.error(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)bY(g,a[g],c,e);return d.join("&").replace(bz,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.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(ca,l),b.url===j&&(e&&(k=k.replace(ca,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 cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,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,cb&&delete cd[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),m.text=h.responseText;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=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cq("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._data(d,"olddisplay",cr(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(cq("hide",3),a,b,c);for(var d=0,e=this.length;d<e;d++)if(this[d].style){var g=f.css(this[d],"display");g!=="none"&&!f._data(this[d],"olddisplay")&&f._data(this[d],"olddisplay",g)}for(d=0;d<e;d++)this[d].style&&(this[d].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(cq("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){var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return this[e.queue===!1?"each":"queue"](function(){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;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),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?(j=cr(this.nodeName),j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)k=new f.fx(this,b,i),h=a[i],cj.test(h)?k[h==="toggle"?d?"show":"hide":h]():(l=ck.exec(h),m=k.cur(),l?(n=parseFloat(l[2]),o=l[3]||(f.cssNumber[i]?"":"px"),o!=="px"&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.style(this,i,m+o)),l[1]&&(n=(l[1]==="-="?-1:1)*n+m),k.custom(m,n,o)):k.custom(m,h,""));return!0})},stop:function(a,b){a&&this.queue([]),this.each(function(){var a=f.timers,c=a.length;b||f._unmark(!0,this);while(c--)a[c].elem===this&&(b&&a[c](!0),a.splice(c,1))}),b||this.dequeue();return this}}),f.each({slideDown:cq("show",1),slideUp:cq("hide",1),slideToggle:cq("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,d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue!==!1?f.dequeue(this):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},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,b,c){function g(a){return d.step(a)}var d=this,e=f.fx;this.startTime=cn||co(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&f.timers.push(g)&&!cl&&(cl=setInterval(e.tick,e.interval))},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cn||co(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cl),cl=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.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cs=/^t(?:able|d|h)$/i,ct=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cu(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!cs.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={initialize:function(){var a=c.body,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.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=ct.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&&!ct.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cu(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cu(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNaN(j)?i:j}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window);
5
- // Don't interfere with prototype
6
- var $j = jQuery.noConflict();
 
 
 
 
 
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>freetrex</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>Custom License</license>
7
  <channel>community</channel>
@@ -12,11 +12,11 @@
12
  Moreover, along with responsive layout, JM Trex has the Item List page with 2 styles: List view and Grid view.&#xD;
13
  &#xD;
14
  Powered by latest Magento version 1.7.0.2 and accompanied with 3 extensions include: JM Slideshow, JM Product Slider and JM Product List. JM Trex meet your needs for a sport store just as what you looking for. Explore and see how responsive Magento theme with latest version could be.</description>
15
- <notes>first release</notes>
16
  <authors><author><name>JoomlArt</name><user>arvind1</user><email>arvind@joomsolutions.com</email></author><author><name>m_joomlart</name><user>m_joomlart</user><email>jm@joomsolutions.com</email></author></authors>
17
- <date>2013-12-18</date>
18
- <time>10:24:05</time>
19
- <contents><target name="magelocal"><dir name="JoomlArt"><dir name="JmProducts"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Settings.php" hash="af860d6655bf5d315fcb48e9b7192842"/></dir></dir></dir></dir><file name="Filter.php" hash="f8f67d7ae4fc6990e365048eed20ce2c"/><file name="List.php" hash="e5dad4968bfeb2776851846d88c07dfb"/></dir><dir name="Helper"><file name="Data.php" hash="018a26eec1b0edfd02015ea8bd6fa50d"/><file name="Mobiledetect.php" hash="afa689f30a785a79e8f63e8af7c82f8f"/></dir><dir name="Library"><file name="Mobile_Detect.php" hash="dfbccd9e06f3d58545c113bf18a0762a"/></dir><dir name="Model"><dir name="Resource"><file name="Setup.php" hash="e5eca54b15ec7852018e3947997fb1d5"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><dir name="JmProducts"><file name="CheckHeight.php" hash="b2a940590d7075b9af934f64ae46692b"/><file name="CheckInputCategory.php" hash="63a28fb6c3e2d0489f29ae1c71e17cf1"/><file name="CheckMax.php" hash="2c7ffaf22182ddadb9334e53a6ff750c"/><file name="CheckMode.php" hash="4e0cca2de5cc89d44b6722d88fc4c885"/><file name="CheckPerrow.php" hash="1c7f21594fcdde5bc6ca6bd1302f4ebc"/><file name="CheckQty.php" hash="c45ec68e53265348be320ea1cf4e0f4e"/><file name="CheckWidth.php" hash="27f881374cb89ec11743222081a96e4b"/></dir></dir><dir name="Source"><file name="ListType.php" hash="65d7c41788e47b6d9c358cc35ada1d5b"/></dir></dir></dir><file name="Unit.php" hash="589bfd9ac91973abc586cc33c1506a18"/></dir><dir name="controllers"><dir name="Catalog"><dir name="Product"><dir name="Action"><file name="AttributeController.php" hash="1419df1f12d9fe8dbf9f2e40c32037d2"/></dir></dir></dir><file name="FilterController.php" hash="8fd6fe4c8a057d44ab35416a2e47495c"/><file name="ViewallController.php" hash="ecd5eeba77e0d72591eebc1666dd973d"/></dir><dir name="etc"><file name="adminhtml.xml" hash="a3451baf98b184a6027b322264506ad2"/><file name="config.xml" hash="f216a23ec62da3b3da296c1faa4a35b5"/><file name="system.xml" hash="4d430313e7b6a4aa9868848e27a3b8b1"/></dir></dir><dir name="JmSlideshow"><dir name="Block"><file name="List.php" hash="3d6a79769808a119feedf1b9908026c9"/></dir><dir name="Helper"><file name="Data.php" hash="bec0d4a8e79cc884bb60f8389b0019e4"/><file name="Jmimage.php" hash="05c9a5a18f5bc755a7c121f49fa26d8f"/><file name="Mobiledetect.php" hash="34e78fb6870ed0fe0630f6971821d2e5"/></dir><dir name="Library"><file name="Mobile_Detect.php" hash="dfbccd9e06f3d58545c113bf18a0762a"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Backend"><dir name="JmSlideshow"><file name="CheckInputCategory.php" hash="f14ef02779136a82aaa259e553ad9428"/><file name="CheckQty.php" hash="fa0a874d33261a5647da54b413fde671"/><file name="Checkvalue.php" hash="86552c534bb314e414d091255e15fd47"/></dir></dir><dir name="Source"><file name="ListAnimationType.php" hash="fb681e6b3cc4b4a418ccc254f1b79610"/><file name="ListDirection.php" hash="333f309f69c33734cfce745866b2d7d3"/><file name="ListEffect.php" hash="7bf73eb515ea2874f7241ceb69b807a3"/><file name="ListEventTriggerType.php" hash="f80ab83ed3288e31f6f001673432bab4"/><file name="ListMaskAnimation.php" hash="3b142c1b6951a7a9faaeea1f78fcd0c5"/><file name="ListSource.php" hash="7731356c5c804f215f42f33e29592226"/><file name="ListThumbnailMode.php" hash="a26ce2014fbc0b159e0ed043dc35905c"/><file name="ListThumbnailPosition.php" hash="f6fcac9b1be7da6f0b5dc84e0b47ce8f"/><file name="ListThumbnailType.php" hash="8638f3420149e44177a0d3db53558375"/><file name="ListType.php" hash="3f1697a9f1bb023fa35bf78421d404fc"/><file name="ListTypeShowDesc.php" hash="4935237b3e13c671c2c0465fbf765940"/><file name="ListTypeShowDescwhen.php" hash="e1fdd69b77ff106f356360e2b458c8c1"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="ead183dff46e6704840d7ee891730054"/><file name="config.xml" hash="3f55a45a1ffb41a0abcdd6d74c1a6c11"/><file name="system.xml" hash="8d3cdb3055fc60e7a74a256e0244cb7a"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="jmproducts.xml" hash="4f4c207b5f4d5174e8d2701648140b03"/><file name="jmslideshow.xml" hash="36055a5c617daeabb6cef94927866c87"/></dir><dir name="template"><dir name="joomlart"><dir name="jmproducts"><file name="column.phtml" hash="014b5d8d5b46880116308a0802f48f9c"/><file name="list.phtml" hash="0ab74a068f3c1021e23aa5f882b6cb66"/><file name="oneproduct.phtml" hash="7b56b5c9f789b99fd61e5c75b6078b20"/><file name="viewall.phtml" hash="11a320528d64ef2992e2a518bd448c2e"/></dir><dir name="jmslideshow"><file name="accordion.phtml" hash="00d149dc9c03268842433d1aadb8b54b"/><file name="basic.phtml" hash="6218ff9811489cf4592cb177e9cbbdda"/></dir></dir></dir></dir><dir name="jm_trex"><dir name="layout"><file name="catalog.xml" hash="70243ec780adc1d43f50c02939b8fffe"/><file name="catalogsearch.xml" hash="3ddff79d9cb85927350caa3b693854bb"/><file name="jmtabs.xml" hash="17532173fc1e872373312ec13762ab6d"/><file name="newsletter.xml" hash="07286f2a062ec52fd3b3329baa7cccaa"/><file name="page.xml" hash="089e44d0a2aa1237fb7140d0900bfa35"/><file name="review.xml" hash="8eab5f135f1643c4f0ff823ceb4e63f9"/></dir><dir name="locale"><dir name="en_US"><file name="translate.csv" hash="f0f5c0c914daf8e25a86cd86c57331c2"/></dir></dir><dir name="template"><dir name="catalog"><dir name="category"><file name="view.phtml" hash="c676b768320a78a61e4621521726f0c8"/></dir><dir name="product"><dir name="list"><file name="toolbar.phtml" hash="b5d50d9eefbdb1fd82a1a796cbdbba1d"/><file name="upsell.phtml" hash="c1d4563b0803f3dd702580c30f4dbaa4"/></dir><file name="list.phtml" hash="333712393d1b0fd363f3d697bc6951d4"/><file name="view.phtml" hash="67369fbbbbd3597f34d6f2619b5ca016"/></dir></dir><dir name="catalogsearch"><file name="form.mini.phtml" hash="035b314a89ca6a7a506a739716f04cdc"/></dir><dir name="checkout"><dir name="cart"><dir name="item"><file name="default.phtml" hash="0c920bd2920ac461043d8832298874ab"/></dir></dir></dir><dir name="customer"><dir name="account"><dir name="dashboard"><file name="address.phtml" hash="19c8714f430303274bcd0c79a2c5c169"/><file name="info.phtml" hash="553ccabb840b19d72eaa25c17850a872"/></dir></dir><dir name="form"><file name="login.phtml" hash="90b226f8fbaf464c9e00aaa10cd7852a"/></dir></dir><dir name="joomlart"><dir name="jmproducts"><file name="list.phtml" hash="e6ccfc13ff3062e580a506f29db70851"/><file name="oneproduct.phtml" hash="c8330092cb4a3651b13e8fc870c1e968"/></dir></dir><dir name="newsletter"><file name="subscribe.phtml" hash="6b663f912fbb10d5d68546380e133434"/></dir><dir name="page"><file name="1column.phtml" hash="b41cc09d1eab34246e38be052b613507"/><file name="2columns-left.phtml" hash="a8206989d9012f19e2179ae4d7554285"/><file name="2columns-right.phtml" hash="00abb2143f2a76971a2b3f7618601280"/><file name="3columns.phtml" hash="1f7718cf871c93ce0acb7d39a4b1f2bd"/><file name="empty.phtml" hash="83b27149ba4ecc117e69075aa9ad9d00"/><dir name="html"><file name="botslmenu.phtml" hash="b2b345e36d1c1f646fb320e78bf4208d"/><file name="breadcrumbs.phtml" hash="c3349c096500eaf48ad93bd698a72d17"/><file name="footer.phtml" hash="9dbe49eef68e4add830753a20bea0a13"/><file name="head.phtml" hash="33beb73e096454efc6bd20edd762d757"/><file name="header.phtml" hash="53614211b961338c56dd20cdbc73b11a"/><file name="tool.links.phtml" hash="961ae262ffdc6e5029338be6b4a6c034"/><file name="top.links.phtml" hash="5de168b9dd31195fe5f4baf6593502b8"/><file name="topmenu.phtml" hash="9d351573824695a3ea57a32f784081e9"/><file name="wrapper.phtml" hash="e87800398a14b3c5ecf3c983194d8b24"/></dir><dir name="includes"><file name="templatetools.php" hash="c5fbc9b69773c2074f933fb394f234d9"/></dir><file name="ja_vars.php" hash="d62deb7ad9d348cb3409f9a38db96e8d"/><file name="popup.phtml" hash="b9c5fb830e2d190447a777cdb642ef99"/><file name="print.phtml" hash="9fe82c0b18b8edf5358cccaa46c664cd"/><file name="redirect.phtml" hash="1aa3ca527795bcc80fde72d5ceb61e39"/><dir name="switch"><file name="flags.phtml" hash="3068b3387472198ca78615e7b9ff4186"/><file name="languages.phtml" hash="8f08677ac13ab2e14d1197d1790ec3e5"/><file name="stores.phtml" hash="83d55bacd92f6b452a098bdd1618b268"/></dir><dir name="template"><file name="container.phtml" hash="3adc7ab205fd10627e33f3962e069c22"/><file name="footer_links.phtml" hash="dc51280a3df4e3cc6de87f670c741c28"/></dir></dir><dir name="persistent"><dir name="customer"><dir name="form"><file name="login.phtml" hash="6b4542bda82f6d7317fa1d7733f9a933"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="JoomlArt_JmProducts.xml" hash="6e4578eaa26e49bfa4e605f6a5a93aea"/><file name="JoomlArt_JmSlideshow.xml" hash="23348efe9dc8de08c42ac58b32b346a8"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="joomlart"><dir name="jmslideshow"><dir name="css"><file name="jm.slideshow.css" hash="7b9b291773c680d4b037c0da204289ef"/><dir name="jquery-ui"><file name="jquery-ui.css" hash="96669285bc71f4e50b02cbf7f2401508"/><file name="jquery.hrzAccordion.defaults.css" hash="60fe842dbe1ed52b96e6e9376a264325"/></dir></dir><dir name="images"><file name="ajax-loader.gif" hash="54a581c288ec3e28d4b487233330ad09"/><file name="arrow-01.png" hash="2f60748a46b78d90a8d8946972e8384c"/><file name="arrow-02.png" hash="bf104cfe7721f6eefca5a2034735a579"/><file name="blank.png" hash="05e8d1ff9dc55aad50ad54c57e99d188"/><file name="btn-bg-01-active.png" hash="31b7c7d4f396e6554b64dd16aa3cce8a"/><file name="btn-bg-01.png" hash="fde1fb11f387245c92233e34feacd400"/><file name="demo3.gif" hash="df84b5f52db100c9e730eb096d4ecd53"/><file name="demo4.gif" hash="7ebbd98f157cc708246a5122c9b44bdc"/><file name="grad2.gif" hash="5b0de295dfab7b3a1d1a26c25bfb83d3"/><file name="shadow-01.png" hash="be8e9d09bcfccc9d71df447158b55847"/><file name="shadow.png" hash="86e55bf6985eec1d100654b9dd748c53"/></dir><dir name="js"><file name="jm.slideshow.js" hash="17e0abd55ef236f90d7499e8b0244edb"/><dir name="jquery-ui"><file name="jquery-1.3.2.js" hash="e4af2b4805203f1ac490ad67531b848b"/><file name="jquery-ui.min.js" hash="677034c42b6ef8de5ee8f518ece1f337"/><file name="jquery.hrzAccordion.js" hash="151cec4ab2df877b84a252537b6af8f3"/><file name="jquery.min.js" hash="ddb84c1587287b2df08966081ef063bf"/></dir></dir></dir></dir></dir><dir name="jm_trex"><dir name="css"><file name="addons.css" hash="87bb8b642e53217242880a4a2755b076"/><file name="colorbox.css" hash="f62f016458ce6b37e74c1c881339d03f"/><dir name="colors"><file name="blue.css" hash="f1876fece08aca9863678833df5a901e"/><file name="default.css" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="green.css" hash="45a850d3a58665933dd53fccead809a5"/><file name="violet.css" hash="942c07f670815631921e374fef5cca33"/><file name="yellow.css" hash="62cd09f7f9b77fbf7f96461b5e4c80c8"/></dir><file name="css3.css" hash="eba300620b7e0fa88d4daee15f0c6caa"/><file name="ie.css" hash="aa19b95c6868d3652ab5666ab652c064"/><file name="layout-mobile-portrait.css" hash="eeb9595dd85bf93eb6627eda78d76b51"/><file name="layout-mobile.css" hash="950bacd007871597cf7ad800f270daaf"/><file name="layout-tablet.css" hash="1228a32d1fe200c8cfdd6f73f714b5f1"/><file name="layout.css" hash="ea1faacd1758bb02bc4284160474151d"/><file name="menu.css" hash="d3f854033f5a60c86bb26c416bbaf337"/><file name="off-canvas.css" hash="ae5c9cbec1e050fe528ed47090d1a3ab"/><file name="print.css" hash="6ed6068180e2aaa7135fedac37af3017"/><file name="theme.css" hash="0212539abf04848a5d50e02ee7bcdc9e"/></dir><dir name="fonts"><dir name="Novecento_wide_Normal"><file name="License.txt" hash="a107c5020680e05c3dfc95bbb56844d0"/><file name="Novecentowide-Normal.otf" hash="691ce81733437394b0d9f6c362b0ec44"/><file name="novecento-specimen.pdf" hash="268caff01475f0ab11766473c0e24477"/><dir name="web_fonts"><file name="@Font-Face License.txt" hash="b175c5e56dcf5aad8a17691187c87b81"/><file name="how_to_use_webfonts.html" hash="7f5d5fa519774a0ea8bdc8bfed9401cf"/><dir name="novecentowide_normal_macroman"><file name="Novecentowide-Normal-demo.html" hash="261f8f5227f86012cdf78e2d365f841e"/><file name="Novecentowide-Normal-webfont.eot" hash="52a23c35fe7bc3f937e54157e2627209"/><file name="Novecentowide-Normal-webfont.svg" hash="6d8dd7a1a945ad70b95777aa4dc955ae"/><file name="Novecentowide-Normal-webfont.ttf" hash="22052ac825f58584aa354bf895180d1c"/><file name="Novecentowide-Normal-webfont.woff" hash="eec478ea8a537a2a459b78f0e58201b2"/><dir name="specimen_files"><file name="Novecentowide-Normal-cleartype.png" hash="f5c3b1a2962a942a3a438355e942e013"/><file name="easytabs.js" hash="ca967cf40ebb80004a08c67d53824dc4"/><file name="grid_12-825-55-15.css" hash="45e9422c89bf16e8067b6ca13c6a7405"/><file name="specimen_stylesheet.css" hash="e2cb9ea14b546a77ddd7e9dfc8c0d32f"/></dir><file name="stylesheet.css" hash="f9fe1f28bee53090918da7635513270b"/></dir></dir></dir></dir><dir name="images"><file name="arrow.gif" hash="54cd0a2aab852e457e2a4cefc69ed312"/><file name="arrow_d1.gif" hash="9f9c1febc7f805a1df154a0a3adf2c23"/><file name="arrow_d2.gif" hash="de3ee75c895656dcec90cf5b95e92ecb"/><file name="arrow_l1.gif" hash="e948fe4cc1ea440f79f32f6437586be8"/><file name="att_group_label_bg.gif" hash="d154333f4a0769ff63eb86e905a55c7a"/><file name="att_group_last_row_bg.gif" hash="c771b9dc40f43bfd53ee465a5d2be3d8"/><file name="att_group_last_row_odd_bg.gif" hash="8eaaeb22bbe0a79913c08c543717ba54"/><file name="attribute_set_toggler_bg.gif" hash="dff0a76c2c443e5f4b5e8897fa352079"/><file name="base_mini_tabs_bg.gif" hash="6dc92b0e2458683c3c7559f388214d78"/><file name="bg_collapse.gif" hash="2333c68e38163ed4656da82b9bcf362b"/><file name="bg_tierico.gif" hash="e650201649ce0393ffca68132328b7e9"/><file name="bg_tierico1.gif" hash="de3ee75c895656dcec90cf5b95e92ecb"/><file name="blank.png" hash="05e8d1ff9dc55aad50ad54c57e99d188"/><dir name="blue"><file name="icon-grid-active.gif" hash="73a1b7dae95d52868e6615f76cbdd040"/><file name="icon-list-active.gif" hash="c394c33934486a8c1c4f40b54f59d94c"/><file name="logo.gif" hash="b31049bf8004ea954f35d2b41d53b9d4"/><file name="next.png" hash="955c6ee07f0c93b4f128c363bcd4dc27"/><file name="pre.png" hash="a0dfc0ca4d9ed3c9974718cf6dce1d04"/></dir><file name="blue-hilite.png" hash="ef6e33c42837237c29a80bb9d5ead655"/><file name="blue.png" hash="47acb30913570b40d21e6aa4aa60c666"/><file name="body-bg.gif" hash="1d114a1211bf38d3679c9f8771d0156e"/><file name="border.gif" hash="09164bf67d8f33d64a094e5418713812"/><file name="botsl1-bg.gif" hash="79045639d9dac3979b6cb160d4f246c1"/><file name="btn_add.png" hash="a667b9246235158aad92afa11a31120f"/><file name="btn_edit.gif" hash="df3565eb4e4d0dc578201df60de54b47"/><file name="btn_google_checkout.gif" hash="4f132129c309d00d8c7fe6088962f4d9"/><file name="btn_paypal_checkout.gif" hash="50e214bd089635c7ba108060cd36939a"/><file name="btn_place_order.gif" hash="d821ef66bd0a104372b8a296f4d3d8a5"/><file name="btn_proceed_to_checkout.gif" hash="5aad4a196379d922e7e13bb838f6bc80"/><file name="btn_proceed_to_checkout.png" hash="dd84c4d341c34f4f8e1cc254d6f1e6af"/><file name="btn_proceed_to_checkout_dis.gif" hash="256d66c23816a21c205d0476253917c5"/><file name="btn_remove.gif" hash="6182e723aa2a253dc6cf334a3dfaaa84"/><file name="btn_trash.gif" hash="bcb22f558a0eb32243a2a36645189e9f"/><file name="btn_window_close.gif" hash="c83f3cbbb2aedfc580dff78d5cfb63ed"/><file name="bullet.gif" hash="e3d26d6421aec0b2d544faa60fccb721"/><file name="calendar.gif" hash="b1468e5239504974c689eea5d93f86d4"/><file name="cart_out_of_stock_bg.gif" hash="113c8f25414b8e1360d3fad883b1b06a"/><dir name="catalog"><dir name="product"><dir name="placeholder"><file name="image.jpg" hash="097ab8a3051bc037ea3de0e17f440540"/><file name="small_image.jpg" hash="f825d16f97a640453553c79c48ebaa73"/><file name="thumbnail.jpg" hash="b2b682d28a08a748a73d2cda70ab5a57"/></dir></dir></dir><file name="chart_remove.gif" hash="ca4ba231b9f8c7e5ffd9e101fa5ae245"/><file name="checkout_progress_active_bg.gif" hash="edc19e92c0a2f595b9b26729443ad005"/><file name="checkout_progress_bg.gif" hash="248ea58c122ebb3da73101a45570f0c1"/><file name="checkout_progress_corner.gif" hash="fc7378ed1e65293ec9774759f6b62010"/><file name="controls.gif" hash="15cb7d7ff0caaa8ac4254120660147d1"/><file name="currency_converter_head_bg.gif" hash="5b2319621ef8337a82a898e5d6d3e0bc"/><file name="currency_switcher_bg.gif" hash="bfaad1b64557c05ad6f4b124ad3d3532"/><file name="cvv.gif" hash="ed0f392004a405466291071a760b285d"/><file name="cvv.jpg" hash="e27210d810bbab732935d9410936ef87"/><file name="dark-dot.gif" hash="04f90a685747b3f430c835277b18a71d"/><file name="dark-title.gif" hash="56ee25537efbc51dc3f820dffe4a1dff"/><file name="default-hilite.png" hash="16d4a507418f0fba210c002ae0bda540"/><file name="default.png" hash="a89633994b6f59ae7385fd66ba0cc0b7"/><file name="dot.gif" hash="e86974a22081ae54eb41d4696230f2ce"/><file name="error.png" hash="4ecb5c708d6a32d449c54c92b57355f5"/><file name="fam_book_open.png" hash="0ba89b9fbe7e88d4c6896ed0a1f495aa"/><file name="fam_world.png" hash="05ca48f89822be2e26e8eb2124e09ea5"/><file name="gift-message-close.gif" hash="346e26eece27449a2f224aef76ae372e"/><file name="gift-message-collapse.gif" hash="b051534bc90c9be80b5d4e9c978f05a8"/><file name="gift-message-expand.gif" hash="eca2e78f696f8d62537114e2ccf421c1"/><file name="grad_d1.gif" hash="658d46665c675e99e24eaccef8195f06"/><file name="grad_d2.gif" hash="6a79891a4a9176d7739525cf414b9b6d"/><file name="grad_d3.gif" hash="6c07382f435f71dba09812442d21da73"/><file name="grad_d4.gif" hash="585375beedb6750fef85f10548cec608"/><file name="grad_l1.gif" hash="dde72c4fc23a37879230c029ef89e14f"/><dir name="green"><file name="icon-grid-active.gif" hash="7c0055587c36c659f3571422fd2df7c5"/><file name="icon-list-active.gif" hash="6939c0c883d92ed1ed613bc8ace7c2e0"/><file name="logo.gif" hash="610358d104f6e76163b038a3780ac1b0"/><file name="next.png" hash="a68ac05d87312c6bd2dc80219ac14b71"/><file name="pre.png" hash="4cd899859f18f27bc56426a6205c1290"/></dir><file name="grid-cal.gif" hash="b1468e5239504974c689eea5d93f86d4"/><file name="hilite-title.gif" hash="021752cca774f93537006d68af3a3f29"/><file name="hsep.gif" hash="f8d5e00d1e59f4d92ca078f9dda0b463"/><file name="i_asc_arrow.gif" hash="e746c245281156c917a6323e840c78ac"/><file name="i_desc_arrow.gif" hash="d30fee4374a14282e2561dd866563f3c"/><file name="icon-grid-active.gif" hash="b05b5264b8a894748d7350e755b7e003"/><file name="icon-grid.gif" hash="eee8c1f71291b76a34b4d0765100999b"/><file name="icon-list-active.gif" hash="c1fcd6a90b9f2fc66b5ca05d02e13596"/><file name="icon-list.gif" hash="032a5f06908e4a0c3408c07009d218e2"/><file name="icon_accept.gif" hash="834dfafd5f8b44c4b24a4c00add56fcf"/><file name="icon_add_to_compare.gif" hash="5971794b3b0ec16ee8ac03718a90c940"/><file name="icon_addreview.gif" hash="a18630e40536b7ef03044aae671d6c21"/><file name="icon_asterick.gif" hash="908d44da90de5e54185764d093bbdb77"/><file name="icon_basket.gif" hash="cc19e21f9c89b70cc10354ff588ca8ab"/><file name="icon_bell.gif" hash="8f8cda89ca20ba4a9b2f8c91f73fdff9"/><file name="icon_big_rss.png" hash="6cf70e7c52a3f3d7b833ccadb041a555"/><file name="icon_cart_item_remove.gif" hash="6aebfb294fa1f98ea6d8a53f438c0173"/><file name="icon_clip.gif" hash="4e277173b6372b1a90b0f19e0388ad54"/><file name="icon_compare.png" hash="0730296ee3815429f14f9edbd59315af"/><file name="icon_compare_hilite.png" hash="6610a09de12dfea0f3cfde48218a77d6"/><file name="icon_currency_switcher.gif" hash="6021ec7588ee57fe7557e7b19c9c9c3f"/><file name="icon_daily_poll.gif" hash="e6d430a51ac1bc4456572928d0353fe0"/><file name="icon_email.gif" hash="9d1aaafe03119e6cf07e38652821f42f"/><file name="icon_facebook.png" hash="2493e47c3433f6e1f60bcb5a8d652cc8"/><file name="icon_feed.png" hash="40549b5de331aca47ee110dc31ab55ad"/><file name="icon_flickr.png" hash="96c0c1c137318f4f5878303d4da75507"/><file name="icon_folder_table.gif" hash="bf006ddb591d8ac95d2e895bf2fdbc8d"/><file name="icon_group.gif" hash="52d778dddbf48b8d04226bee9370a7ef"/><file name="icon_lock.gif" hash="05a873322664a7bb4f60aecacbdce577"/><file name="icon_lorry.gif" hash="91a0d2cc2eb2391f90ec8a75c04b3183"/><file name="icon_ma_info.gif" hash="91259557447ee80eb1110fe0c85cb3b5"/><file name="icon_ma_reviews.gif" hash="859c97695ec396c0b284a0c3c7c416ad"/><file name="icon_ma_tags.gif" hash="1e83e3b0b677c92b3aa8a252268f7b86"/><file name="icon_menu.gif" hash="2b74c8a27c05388a489da035dafcab3c"/><file name="icon_menu_header.png" hash="2b2280d336f863940fc2e5df09876cc5"/><file name="icon_mini_cart_heading_bg.gif" hash="ce6ec46e00c68bf7f8689e621acde672"/><file name="icon_newspaper.gif" hash="9e5fee06a543742045118a95f2debcb8"/><file name="icon_opc_back.gif" hash="3dbb0584e8eb1d96cc3d3c40c17d7aaf"/><file name="icon_page_white.gif" hash="704f7d4eccbdf9cabbad7770f18856ff"/><file name="icon_page_white_text.gif" hash="57a04ca584e05e28dc94c7e68f0af62e"/><file name="icon_picture.gif" hash="c27a554be8d858650230f2b1f3200075"/><file name="icon_printer.gif" hash="0aed138181495642e9ab29e55d194d40"/><file name="icon_review.gif" hash="24f3cb419bfea0e3699573bc2e563c91"/><file name="icon_rss.gif" hash="e5bbc388d818c142868b4a1df0b48793"/><file name="icon_search.gif" hash="268bbfa41892ae3bd82ce0f125279fbd"/><file name="icon_search.png" hash="1f4075d3fdcc2c6d33e6c7d8133bfa47"/><file name="icon_special_price.gif" hash="8c192cc00b2df327e27e7c72406a1967"/><file name="icon_table.gif" hash="fe8424127ecbe4b0d893bcf6f253dc1a"/><file name="icon_tag_add.gif" hash="a736baa992aa55b6fb71e8742a04dc82"/><file name="icon_tag_green.gif" hash="67d1255c2c3e9ed1a5c845f8d4e4a3ba"/><file name="icon_twitter.png" hash="2bc54ea5d406441eb4218ca33865e196"/><file name="icon_wishlist.png" hash="e14f507842864c468e98d6d7ac4afba0"/><file name="icon_wishlist_hilite.png" hash="08196645047027d295d459aae26db7cf"/><file name="icon_world.gif" hash="643024bcae5ece554fdbbc041aeb297c"/><file name="layered_nav_narrowed_category_heading.gif" hash="607167f198572e83a0e728b6b9383a70"/><file name="light-title.gif" hash="30f85a74c9c4ed6a283cf1452b314de5"/><file name="list_remove_btn.gif" hash="bcbe0b308f1e68176d10d658d380cac9"/><file name="listing_type_grid.gif" hash="a1e5d8ac36fb2891ea16e729b95c552c"/><file name="listing_type_list.gif" hash="61333d383ec142b8d270abe77324aa5d"/><file name="loading.gif" hash="e6611f867d63754b7a2a974fb0a0e7dc"/><file name="loading_background.png" hash="7c96a54b079f79d48db5c29c3a538b83"/><file name="logo.gif" hash="e7c554d27f3c3c496b40922b387fb680"/><file name="logo_email.gif" hash="ea27acc7899185dbfb3fc47b180409ae"/><file name="logo_print.gif" hash="ddc1971c1e17d1f9880bbea6f783076f"/><file name="magnifier_handle.gif" hash="6e71b98c98778d74971d1e3d4dadeb9c"/><dir name="media"><file name="404_callout1.jpg" hash="834e53a03e2921a2fd3c135c0c7189df"/><file name="404_callout2.jpg" hash="016984b4a1579df34147f9407098db73"/><file name="about_us_img.jpg" hash="726f36dd75b5a709a1a14acab1660188"/><file name="best_selling_img01.jpg" hash="5e7337a4061a636df8ee4bf979a092ac"/><file name="best_selling_img02.jpg" hash="b9a49c0964938ec72fb834cb166b9352"/><file name="best_selling_img03.jpg" hash="e3581487fb4589baecc553f2ce8d5247"/><file name="best_selling_img04.jpg" hash="7e59bf99f5f813e327595c52d3320174"/><file name="best_selling_img05.jpg" hash="e396892daec7ffcf7244082b3e596911"/><file name="best_selling_img06.jpg" hash="2702839637efbe0fd0a4bad41cd6a551"/><file name="category_default_view.jpg" hash="003a46ddb46f31f558a0f91b168b14bb"/><file name="cell_phone_landing_banner1.jpg" hash="b25562360fc470f1091ca7ea014a3290"/><file name="col_left_callout.jpg" hash="0f35fa5e8ce71d4bae7514b569eb1e15"/><file name="col_right_callout.jpg" hash="b5d528921c90289f0ee3225dd14db88b"/><file name="electronics_cellphones.jpg" hash="8f6badbc32ce806c6109c788df6ef5e9"/><file name="electronics_digitalcameras.jpg" hash="953b8d7db6f0bdcd53b1d6b1386962b9"/><file name="electronics_laptops.jpg" hash="e050e92d72000e6bdc763a7b5888ec8a"/><file name="furniture_callout_spot.jpg" hash="28edc7d72486ab2362324995550d87af"/><file name="furnitures_bed_room.jpg" hash="b8616c5bffc23a92d2a1c97dae57b262"/><file name="furnitures_living_room.jpg" hash="2663737f3997cb1a49ce24d07dc8aefb"/><file name="head_electronics_cellphones.gif" hash="a69425966444ea597fb7c629114d5165"/><file name="head_electronics_digicamera.gif" hash="bde3cec3fc16b2d0ae57e7783eb00652"/><file name="head_electronics_laptops.gif" hash="b2c55387ffa92277315bdedeb4cb9b8f"/><file name="laptop_callout_mid1.jpg" hash="4ffb50bd3b7b32a78fd059b1571c202e"/><file name="laptop_callout_mid2.jpg" hash="662cf3881b06b090e9500496b19b03e4"/><file name="laptop_callout_mid3.jpg" hash="22aa71ecfe0aa9b6936a1eddb62d889e"/><file name="laptop_callout_spot.jpg" hash="2e469d1bd871355eaef6076487a973db"/><file name="shirts_landing_banner1.jpg" hash="4acc8620b009d835e5c25587671ea25d"/></dir><file name="mini_search_magnifier.gif" hash="f75d5751497592d6ec5675ed4dfa3bac"/><file name="msg_error.gif" hash="e4f28607f075a105e53fa3113d84bd26"/><file name="msg_notice.gif" hash="e774ee481a2820789c1a77112377c4e0"/><file name="msg_success.gif" hash="834dfafd5f8b44c4b24a4c00add56fcf"/><file name="narrow_by_li_by.gif" hash="14687dfa3921cfd12d2149c1497d9765"/><file name="narrow_by_set.gif" hash="ba8229068657b80f2c42111c5a1a307e"/><file name="nav_link_bg.gif" hash="4017b4e80ae14dd7b0c02c9115233093"/><file name="nav_link_over_bg.gif" hash="081dae439754cf1ec4b8b8932c9054b3"/><file name="next.png" hash="4767df76c12233045121091f277e8f9b"/><file name="no_image.jpg" hash="0ce8ad0026d8b8a83ed7acdf6209129b"/><file name="np_cart_thumb.gif" hash="e9fdd943e0947e15f0638506f477e358"/><file name="np_more_img.gif" hash="ace357bfe3e81ffb62137cd5b25ae5e1"/><file name="np_product_main.gif" hash="d0cccda76de50efa025215ce85dacb1c"/><file name="np_thumb.gif" hash="e46270c89358ecc8341d1565c14644b8"/><file name="np_thumb2.gif" hash="8502866cdabc5c74aca7d7bd32a06a03"/><file name="opc-ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="opc_on_box_bg.gif" hash="065d507000e7d0b887fcb324bb9d5995"/><file name="pager_arrow_left.gif" hash="67a12cc98e00de2b1a884fef93b87de3"/><file name="pager_arrow_right.gif" hash="454c400ab24c7107686c881e8c3aa1f7"/><file name="pat_1.gif" hash="f80b86387024850c0e299a7f05ebb68f"/><file name="ph.gif" hash="77d96eebccea5801290ad68b3ccb4199"/><file name="pipe.gif" hash="26e0335ee538898905799e0f82f9acab"/><file name="point-con.gif" hash="3dce96d9fc4e43252c3060b148ba057f"/><file name="pre.png" hash="f8eff99fc8a6d1555997d531e4bd8ed2"/><file name="product_collateral_bg.gif" hash="3c8ae459c61b3a9895ae16b109515b05"/><file name="product_rating_blank_star.gif" hash="5e20a299c0ff16168be38b6dde580eda"/><file name="product_rating_blank_star.png" hash="7be74ee8252a8e2e855d2019c0ed125d"/><file name="product_rating_full_star.gif" hash="dd5aae332178d928a7f49dea7691b5f6"/><file name="product_rating_full_star.png" hash="8431d6ccfe44844ee46008e5aeec42e0"/><file name="product_zoom_overlay_magnif.gif" hash="83834893e162221d6d9257fe67847370"/><file name="ratings-line.gif" hash="e89c8e3149308e3dde3d10a68ec47306"/><file name="red-hilite.png" hash="ea347a8b15ce78bee4d7e25954919a2b"/><file name="red.png" hash="9d45d42d94bf20f2f7c416c9f19df770"/><file name="saved_head_bg.gif" hash="332be6a4f8ff25259e30c5bf89e484a4"/><file name="search_criteria.gif" hash="cf67b9cc5c311ae3f99e68cd29ae17be"/><file name="sep-vdot.gif" hash="bfba6a98961ff3d2c711934f8381d827"/><file name="sep-vline.gif" hash="7125f2cab2273ea0b285fb40e18b849a"/><file name="sep_checkout_progress.gif" hash="cf8811599bdca2cf9e679ceca0c58760"/><file name="shipping_method_pointer.gif" hash="4108cca0ea3304e8972973102061c8c7"/><file name="slider_bg.gif" hash="dddafc85ba1ef83bfff3cbb7529422b7"/><file name="slider_btn_zoom_in.gif" hash="e4e150122f0d42f9252e03b4cff5e8f3"/><file name="slider_btn_zoom_out.gif" hash="978bb2171eef04c03ec32605b36a673e"/><file name="sort_asc_arrow.gif" hash="40aa554212d6a1f60593c27d78d85fa3"/><file name="sort_desc_arrow.gif" hash="92fd194bfae4ce5ae3354e1e47d7ac7d"/><file name="spacer.gif" hash="df3e567d6f16d040326c7a0ea29a4f41"/><file name="tab-bg.gif" hash="a2d3c0c993772e4ec187e8167be56e21"/><file name="this_is_a_demo.gif" hash="43eff8af6cce88f0b1149e73b1c2ed1b"/><file name="user-decrease.png" hash="9ac71e263d1b19fe3c6cb9c6ea2992fd"/><file name="user-increase.png" hash="c365a5eec7f5ac4206d19b0088be8054"/><file name="user-reset.png" hash="60aa8e281fac6345ffc946502d69268f"/><file name="validation_advice_bg.gif" hash="b85432906de8985a8b14eeb2dc652d3c"/><dir name="violet"><file name="icon-grid-active.gif" hash="214da28863a41b629cb79d731ecc9e8d"/><file name="icon-list-active.gif" hash="76abbfd06e523453aeba63fe17eac7c5"/><file name="logo.gif" hash="f74e584848a830010f4ce329fd8f2efd"/><file name="next.png" hash="edd6830140788c1cd40a8b92dca1c4d7"/><file name="pre.png" hash="2dc00b71bd2dad121ca114948a0602fa"/></dir><file name="white-title.gif" hash="b916c1091355d892a66709a4dc36d90c"/><dir name="yellow"><file name="black-title.gif" hash="4e0347fd114a40b3a0a3b253343fcdc3"/><file name="icon-grid-active.gif" hash="bb26fa565668653d9eac0f63e2d315af"/><file name="icon-list-active.gif" hash="7f67ee2b138415589c7f4dc0873585c5"/><file name="logo.gif" hash="ff05c81bf8cf64cc7a3a47fdcb7f33f6"/><file name="next.png" hash="ceb0109083230d86bfbbd4c1fb3c3463"/><file name="pre.png" hash="33e85d4a677ad839f17f337a5c0f14a1"/></dir></dir><dir name="joomlart"><dir name="jmmegamenu"><dir name="css"><file name="jmmegamenu.css" hash="239fca2000ec307d29f3e721ac30273c"/></dir><dir name="images"><file name="arrow.gif" hash="de3ee75c895656dcec90cf5b95e92ecb"/><file name="white-title.gif" hash="b916c1091355d892a66709a4dc36d90c"/></dir></dir><dir name="jmslideshow"><dir name="css"><file name="jm.slideshow.css" hash="f04ee49fc854bca1054b5631ffc12634"/><dir name="jquery-ui"><file name="jquery-ui.css" hash="96669285bc71f4e50b02cbf7f2401508"/><file name="jquery.hrzAccordion.defaults.css" hash="60fe842dbe1ed52b96e6e9376a264325"/></dir></dir><dir name="images"><file name="ajax-loader.gif" hash="54a581c288ec3e28d4b487233330ad09"/><file name="arrow-01.png" hash="2f60748a46b78d90a8d8946972e8384c"/><file name="arrow-02.png" hash="bf104cfe7721f6eefca5a2034735a579"/><file name="blank.png" hash="05e8d1ff9dc55aad50ad54c57e99d188"/><file name="btn-bg-01-active.png" hash="31b7c7d4f396e6554b64dd16aa3cce8a"/><file name="btn-bg-01.png" hash="fde1fb11f387245c92233e34feacd400"/><file name="demo3.gif" hash="df84b5f52db100c9e730eb096d4ecd53"/><file name="demo4.gif" hash="7ebbd98f157cc708246a5122c9b44bdc"/><file name="grad2.gif" hash="5b0de295dfab7b3a1d1a26c25bfb83d3"/><file name="shadow-01.png" hash="be8e9d09bcfccc9d71df447158b55847"/><file name="shadow.png" hash="86e55bf6985eec1d100654b9dd748c53"/></dir><dir name="js"><file name="jm.slideshow.js" hash="c7e2b185317b4017648e42412ec628c8"/><dir name="jquery-ui"><file name="jquery-1.3.2.js" hash="e4af2b4805203f1ac490ad67531b848b"/><file name="jquery-ui.min.js" hash="677034c42b6ef8de5ee8f518ece1f337"/><file name="jquery.hrzAccordion.js" hash="df7cc56e391ce2a585dd1e979d62ab0a"/><file name="jquery.min.js" hash="ddb84c1587287b2df08966081ef063bf"/></dir></dir></dir></dir><dir name="js"><file name="ja.accordion.nav.js" hash="bd79b28feb5c702e84808e8f6365f584"/><file name="ja.script.js" hash="2751875fe45c8d1da12e9b05ef57e9ec"/><dir name="jquery"><file name="jquery.dimensions.js" hash="1820ca03e1e177045eacf5e73177d070"/><file name="jquery.easing.js" hash="2b59bb7b4e84e9d75fe3ff43fbf2309e"/><file name="jquery.js" hash="a1a8cb16a060f6280a767187fd22e037"/><dir name="plugins"><dir name="accordion"><file name="jquery.accordion.js" hash="a4d73f610b4a25e3bcf5551dd088d238"/><file name="jquery.accordion.min.js" hash="82653c9182b34ddc8827bfa6e392179a"/><file name="jquery.accordion.pack.js" hash="152844235d2000706a7c5d58aac30159"/></dir><dir name="colorbox"><file name="jquery.colorbox-min.js" hash="be15649d1dee9fa82b22c8cc17912713"/><file name="jquery.colorbox.js" hash="9388dbd17ebbcb92580c24ed191867e9"/></dir></dir></dir><file name="jquery.equalheights.js" hash="aebd7ada0211675c49faf7714b656547"/><file name="lemmon-slider.js" hash="4ebb9d28349f598d8eecac246be3e6b9"/><file name="off-canvas.js" hash="9cb1fa058e6d6e1ce64d0a7c14d38f06"/></dir></dir></dir><dir name="base"><dir name="default"><dir name="joomlart"><dir name="jmproducts"><dir name="css"><file name="jmproduct.css" hash="53bf66c4f7e88e8fb1798351b8911715"/></dir><dir name="js"><file name="jmproducts.js" hash="7c0ab41a1db2251861055abe67e116d8"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="joomlart"><dir name="jmproducts"><file name="jmproduct.js" hash="6395019dc9772377ca7951d04febf926"/><file name="jquery1.6.4.min.js" hash="e6abb02e31bf04915a2f98a65078b513"/></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.1.0</min><max>6.1.0</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>freetrex</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>Custom License</license>
7
  <channel>community</channel>
12
  Moreover, along with responsive layout, JM Trex has the Item List page with 2 styles: List view and Grid view.&#xD;
13
  &#xD;
14
  Powered by latest Magento version 1.7.0.2 and accompanied with 3 extensions include: JM Slideshow, JM Product Slider and JM Product List. JM Trex meet your needs for a sport store just as what you looking for. Explore and see how responsive Magento theme with latest version could be.</description>
15
+ <notes>Compatible with magento 1.8</notes>
16
  <authors><author><name>JoomlArt</name><user>arvind1</user><email>arvind@joomsolutions.com</email></author><author><name>m_joomlart</name><user>m_joomlart</user><email>jm@joomsolutions.com</email></author></authors>
17
+ <date>2013-12-27</date>
18
+ <time>08:53:35</time>
19
+ <contents><target name="magelocal"><dir name="Mage"><dir name="GoogleAnalytics"><dir name="Block"><file name="Ga.php" hash="f43a7b0d4ce2867a473331744cfad002"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="googleanalytics.xml" hash="c263298b022aa81e21cf017cfcb8e865"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="jm_trex"><dir name="css"><file name="addons.css" hash="87bb8b642e53217242880a4a2755b076"/><file name="colorbox.css" hash="f62f016458ce6b37e74c1c881339d03f"/><dir name="colors"><file name="blue.css" hash="f1876fece08aca9863678833df5a901e"/><file name="default.css" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="green.css" hash="45a850d3a58665933dd53fccead809a5"/><file name="violet.css" hash="942c07f670815631921e374fef5cca33"/><file name="yellow.css" hash="62cd09f7f9b77fbf7f96461b5e4c80c8"/></dir><file name="css3.css" hash="eba300620b7e0fa88d4daee15f0c6caa"/><file name="ie.css" hash="aa19b95c6868d3652ab5666ab652c064"/><file name="layout-mobile-portrait.css" hash="457ad6e29d52966c3e7f9301f0c5537b"/><file name="layout-mobile.css" hash="950bacd007871597cf7ad800f270daaf"/><file name="layout-tablet.css" hash="1228a32d1fe200c8cfdd6f73f714b5f1"/><file name="layout.css" hash="ea1faacd1758bb02bc4284160474151d"/><file name="menu.css" hash="d3f854033f5a60c86bb26c416bbaf337"/><file name="off-canvas.css" hash="ae5c9cbec1e050fe528ed47090d1a3ab"/><file name="print.css" hash="6ed6068180e2aaa7135fedac37af3017"/><file name="theme.css" hash="70784f053d504288b690a88d0c75728c"/></dir><dir name="fonts"><dir name="Novecento_wide_Normal"><file name="License.txt" hash="a107c5020680e05c3dfc95bbb56844d0"/><file name="Novecentowide-Normal.otf" hash="691ce81733437394b0d9f6c362b0ec44"/><file name="novecento-specimen.pdf" hash="268caff01475f0ab11766473c0e24477"/><dir name="web_fonts"><file name="@Font-Face License.txt" hash="b175c5e56dcf5aad8a17691187c87b81"/><file name="how_to_use_webfonts.html" hash="7f5d5fa519774a0ea8bdc8bfed9401cf"/><dir name="novecentowide_normal_macroman"><file name="Novecentowide-Normal-demo.html" hash="261f8f5227f86012cdf78e2d365f841e"/><file name="Novecentowide-Normal-webfont.eot" hash="52a23c35fe7bc3f937e54157e2627209"/><file name="Novecentowide-Normal-webfont.svg" hash="6d8dd7a1a945ad70b95777aa4dc955ae"/><file name="Novecentowide-Normal-webfont.ttf" hash="22052ac825f58584aa354bf895180d1c"/><file name="Novecentowide-Normal-webfont.woff" hash="eec478ea8a537a2a459b78f0e58201b2"/><dir name="specimen_files"><file name="Novecentowide-Normal-cleartype.png" hash="f5c3b1a2962a942a3a438355e942e013"/><file name="easytabs.js" hash="ca967cf40ebb80004a08c67d53824dc4"/><file name="grid_12-825-55-15.css" hash="45e9422c89bf16e8067b6ca13c6a7405"/><file name="specimen_stylesheet.css" hash="e2cb9ea14b546a77ddd7e9dfc8c0d32f"/></dir><file name="stylesheet.css" hash="f9fe1f28bee53090918da7635513270b"/></dir></dir></dir></dir><dir name="images"><file name="arrow.gif" hash="54cd0a2aab852e457e2a4cefc69ed312"/><file name="arrow_d1.gif" hash="9f9c1febc7f805a1df154a0a3adf2c23"/><file name="arrow_d2.gif" hash="de3ee75c895656dcec90cf5b95e92ecb"/><file name="arrow_l1.gif" hash="e948fe4cc1ea440f79f32f6437586be8"/><file name="att_group_label_bg.gif" hash="d154333f4a0769ff63eb86e905a55c7a"/><file name="att_group_last_row_bg.gif" hash="c771b9dc40f43bfd53ee465a5d2be3d8"/><file name="att_group_last_row_odd_bg.gif" hash="8eaaeb22bbe0a79913c08c543717ba54"/><file name="attribute_set_toggler_bg.gif" hash="dff0a76c2c443e5f4b5e8897fa352079"/><file name="base_mini_tabs_bg.gif" hash="6dc92b0e2458683c3c7559f388214d78"/><file name="bg_collapse.gif" hash="2333c68e38163ed4656da82b9bcf362b"/><file name="bg_tierico.gif" hash="e650201649ce0393ffca68132328b7e9"/><file name="bg_tierico1.gif" hash="de3ee75c895656dcec90cf5b95e92ecb"/><file name="blank.png" hash="05e8d1ff9dc55aad50ad54c57e99d188"/><dir name="blue"><file name="icon-grid-active.gif" hash="73a1b7dae95d52868e6615f76cbdd040"/><file name="icon-list-active.gif" hash="c394c33934486a8c1c4f40b54f59d94c"/><file name="logo.gif" hash="b31049bf8004ea954f35d2b41d53b9d4"/><file name="next.png" hash="955c6ee07f0c93b4f128c363bcd4dc27"/><file name="pre.png" hash="a0dfc0ca4d9ed3c9974718cf6dce1d04"/></dir><file name="blue-hilite.png" hash="ef6e33c42837237c29a80bb9d5ead655"/><file name="blue.png" hash="47acb30913570b40d21e6aa4aa60c666"/><file name="body-bg.gif" hash="1d114a1211bf38d3679c9f8771d0156e"/><file name="border.gif" hash="09164bf67d8f33d64a094e5418713812"/><file name="botsl1-bg.gif" hash="79045639d9dac3979b6cb160d4f246c1"/><file name="btn_add.png" hash="a667b9246235158aad92afa11a31120f"/><file name="btn_edit.gif" hash="df3565eb4e4d0dc578201df60de54b47"/><file name="btn_google_checkout.gif" hash="4f132129c309d00d8c7fe6088962f4d9"/><file name="btn_paypal_checkout.gif" hash="50e214bd089635c7ba108060cd36939a"/><file name="btn_place_order.gif" hash="d821ef66bd0a104372b8a296f4d3d8a5"/><file name="btn_proceed_to_checkout.gif" hash="5aad4a196379d922e7e13bb838f6bc80"/><file name="btn_proceed_to_checkout.png" hash="dd84c4d341c34f4f8e1cc254d6f1e6af"/><file name="btn_proceed_to_checkout_dis.gif" hash="256d66c23816a21c205d0476253917c5"/><file name="btn_remove.gif" hash="6182e723aa2a253dc6cf334a3dfaaa84"/><file name="btn_trash.gif" hash="bcb22f558a0eb32243a2a36645189e9f"/><file name="btn_window_close.gif" hash="c83f3cbbb2aedfc580dff78d5cfb63ed"/><file name="bullet.gif" hash="e3d26d6421aec0b2d544faa60fccb721"/><file name="calendar.gif" hash="b1468e5239504974c689eea5d93f86d4"/><file name="cart_out_of_stock_bg.gif" hash="113c8f25414b8e1360d3fad883b1b06a"/><dir name="catalog"><dir name="product"><dir name="placeholder"><file name="image.jpg" hash="097ab8a3051bc037ea3de0e17f440540"/><file name="small_image.jpg" hash="f825d16f97a640453553c79c48ebaa73"/><file name="thumbnail.jpg" hash="b2b682d28a08a748a73d2cda70ab5a57"/></dir></dir></dir><file name="chart_remove.gif" hash="ca4ba231b9f8c7e5ffd9e101fa5ae245"/><file name="checkout_progress_active_bg.gif" hash="edc19e92c0a2f595b9b26729443ad005"/><file name="checkout_progress_bg.gif" hash="248ea58c122ebb3da73101a45570f0c1"/><file name="checkout_progress_corner.gif" hash="fc7378ed1e65293ec9774759f6b62010"/><file name="controls.gif" hash="15cb7d7ff0caaa8ac4254120660147d1"/><file name="currency_converter_head_bg.gif" hash="5b2319621ef8337a82a898e5d6d3e0bc"/><file name="currency_switcher_bg.gif" hash="bfaad1b64557c05ad6f4b124ad3d3532"/><file name="cvv.gif" hash="ed0f392004a405466291071a760b285d"/><file name="cvv.jpg" hash="e27210d810bbab732935d9410936ef87"/><file name="dark-dot.gif" hash="04f90a685747b3f430c835277b18a71d"/><file name="dark-title.gif" hash="56ee25537efbc51dc3f820dffe4a1dff"/><file name="default-hilite.png" hash="16d4a507418f0fba210c002ae0bda540"/><file name="default.png" hash="a89633994b6f59ae7385fd66ba0cc0b7"/><file name="dot.gif" hash="e86974a22081ae54eb41d4696230f2ce"/><file name="error.png" hash="4ecb5c708d6a32d449c54c92b57355f5"/><file name="fam_book_open.png" hash="0ba89b9fbe7e88d4c6896ed0a1f495aa"/><file name="fam_world.png" hash="05ca48f89822be2e26e8eb2124e09ea5"/><file name="gift-message-close.gif" hash="346e26eece27449a2f224aef76ae372e"/><file name="gift-message-collapse.gif" hash="b051534bc90c9be80b5d4e9c978f05a8"/><file name="gift-message-expand.gif" hash="eca2e78f696f8d62537114e2ccf421c1"/><file name="grad_d1.gif" hash="658d46665c675e99e24eaccef8195f06"/><file name="grad_d2.gif" hash="6a79891a4a9176d7739525cf414b9b6d"/><file name="grad_d3.gif" hash="6c07382f435f71dba09812442d21da73"/><file name="grad_d4.gif" hash="585375beedb6750fef85f10548cec608"/><file name="grad_l1.gif" hash="dde72c4fc23a37879230c029ef89e14f"/><dir name="green"><file name="icon-grid-active.gif" hash="7c0055587c36c659f3571422fd2df7c5"/><file name="icon-list-active.gif" hash="6939c0c883d92ed1ed613bc8ace7c2e0"/><file name="logo.gif" hash="610358d104f6e76163b038a3780ac1b0"/><file name="next.png" hash="a68ac05d87312c6bd2dc80219ac14b71"/><file name="pre.png" hash="4cd899859f18f27bc56426a6205c1290"/></dir><file name="grid-cal.gif" hash="b1468e5239504974c689eea5d93f86d4"/><file name="hilite-title.gif" hash="021752cca774f93537006d68af3a3f29"/><file name="hsep.gif" hash="f8d5e00d1e59f4d92ca078f9dda0b463"/><file name="i_asc_arrow.gif" hash="e746c245281156c917a6323e840c78ac"/><file name="i_desc_arrow.gif" hash="d30fee4374a14282e2561dd866563f3c"/><file name="icon-grid-active.gif" hash="b05b5264b8a894748d7350e755b7e003"/><file name="icon-grid.gif" hash="eee8c1f71291b76a34b4d0765100999b"/><file name="icon-list-active.gif" hash="c1fcd6a90b9f2fc66b5ca05d02e13596"/><file name="icon-list.gif" hash="032a5f06908e4a0c3408c07009d218e2"/><file name="icon_accept.gif" hash="834dfafd5f8b44c4b24a4c00add56fcf"/><file name="icon_add_to_compare.gif" hash="5971794b3b0ec16ee8ac03718a90c940"/><file name="icon_addreview.gif" hash="a18630e40536b7ef03044aae671d6c21"/><file name="icon_asterick.gif" hash="908d44da90de5e54185764d093bbdb77"/><file name="icon_basket.gif" hash="cc19e21f9c89b70cc10354ff588ca8ab"/><file name="icon_bell.gif" hash="8f8cda89ca20ba4a9b2f8c91f73fdff9"/><file name="icon_big_rss.png" hash="6cf70e7c52a3f3d7b833ccadb041a555"/><file name="icon_cart_item_remove.gif" hash="6aebfb294fa1f98ea6d8a53f438c0173"/><file name="icon_clip.gif" hash="4e277173b6372b1a90b0f19e0388ad54"/><file name="icon_compare.png" hash="0730296ee3815429f14f9edbd59315af"/><file name="icon_compare_hilite.png" hash="6610a09de12dfea0f3cfde48218a77d6"/><file name="icon_currency_switcher.gif" hash="6021ec7588ee57fe7557e7b19c9c9c3f"/><file name="icon_daily_poll.gif" hash="e6d430a51ac1bc4456572928d0353fe0"/><file name="icon_email.gif" hash="9d1aaafe03119e6cf07e38652821f42f"/><file name="icon_facebook.png" hash="2493e47c3433f6e1f60bcb5a8d652cc8"/><file name="icon_feed.png" hash="40549b5de331aca47ee110dc31ab55ad"/><file name="icon_flickr.png" hash="96c0c1c137318f4f5878303d4da75507"/><file name="icon_folder_table.gif" hash="bf006ddb591d8ac95d2e895bf2fdbc8d"/><file name="icon_group.gif" hash="52d778dddbf48b8d04226bee9370a7ef"/><file name="icon_lock.gif" hash="05a873322664a7bb4f60aecacbdce577"/><file name="icon_lorry.gif" hash="91a0d2cc2eb2391f90ec8a75c04b3183"/><file name="icon_ma_info.gif" hash="91259557447ee80eb1110fe0c85cb3b5"/><file name="icon_ma_reviews.gif" hash="859c97695ec396c0b284a0c3c7c416ad"/><file name="icon_ma_tags.gif" hash="1e83e3b0b677c92b3aa8a252268f7b86"/><file name="icon_menu.gif" hash="2b74c8a27c05388a489da035dafcab3c"/><file name="icon_menu_header.png" hash="2b2280d336f863940fc2e5df09876cc5"/><file name="icon_mini_cart_heading_bg.gif" hash="ce6ec46e00c68bf7f8689e621acde672"/><file name="icon_newspaper.gif" hash="9e5fee06a543742045118a95f2debcb8"/><file name="icon_opc_back.gif" hash="3dbb0584e8eb1d96cc3d3c40c17d7aaf"/><file name="icon_page_white.gif" hash="704f7d4eccbdf9cabbad7770f18856ff"/><file name="icon_page_white_text.gif" hash="57a04ca584e05e28dc94c7e68f0af62e"/><file name="icon_picture.gif" hash="c27a554be8d858650230f2b1f3200075"/><file name="icon_printer.gif" hash="0aed138181495642e9ab29e55d194d40"/><file name="icon_review.gif" hash="24f3cb419bfea0e3699573bc2e563c91"/><file name="icon_rss.gif" hash="e5bbc388d818c142868b4a1df0b48793"/><file name="icon_search.gif" hash="268bbfa41892ae3bd82ce0f125279fbd"/><file name="icon_search.png" hash="1f4075d3fdcc2c6d33e6c7d8133bfa47"/><file name="icon_special_price.gif" hash="8c192cc00b2df327e27e7c72406a1967"/><file name="icon_table.gif" hash="fe8424127ecbe4b0d893bcf6f253dc1a"/><file name="icon_tag_add.gif" hash="a736baa992aa55b6fb71e8742a04dc82"/><file name="icon_tag_green.gif" hash="67d1255c2c3e9ed1a5c845f8d4e4a3ba"/><file name="icon_twitter.png" hash="2bc54ea5d406441eb4218ca33865e196"/><file name="icon_wishlist.png" hash="e14f507842864c468e98d6d7ac4afba0"/><file name="icon_wishlist_hilite.png" hash="08196645047027d295d459aae26db7cf"/><file name="icon_world.gif" hash="643024bcae5ece554fdbbc041aeb297c"/><file name="layered_nav_narrowed_category_heading.gif" hash="607167f198572e83a0e728b6b9383a70"/><file name="light-title.gif" hash="30f85a74c9c4ed6a283cf1452b314de5"/><file name="list_remove_btn.gif" hash="bcbe0b308f1e68176d10d658d380cac9"/><file name="listing_type_grid.gif" hash="a1e5d8ac36fb2891ea16e729b95c552c"/><file name="listing_type_list.gif" hash="61333d383ec142b8d270abe77324aa5d"/><file name="loading.gif" hash="e6611f867d63754b7a2a974fb0a0e7dc"/><file name="loading_background.png" hash="7c96a54b079f79d48db5c29c3a538b83"/><file name="logo.gif" hash="e7c554d27f3c3c496b40922b387fb680"/><file name="logo_email.gif" hash="ea27acc7899185dbfb3fc47b180409ae"/><file name="logo_print.gif" hash="ddc1971c1e17d1f9880bbea6f783076f"/><file name="magnifier_handle.gif" hash="6e71b98c98778d74971d1e3d4dadeb9c"/><dir name="media"><file name="404_callout1.jpg" hash="834e53a03e2921a2fd3c135c0c7189df"/><file name="404_callout2.jpg" hash="016984b4a1579df34147f9407098db73"/><file name="about_us_img.jpg" hash="726f36dd75b5a709a1a14acab1660188"/><file name="best_selling_img01.jpg" hash="5e7337a4061a636df8ee4bf979a092ac"/><file name="best_selling_img02.jpg" hash="b9a49c0964938ec72fb834cb166b9352"/><file name="best_selling_img03.jpg" hash="e3581487fb4589baecc553f2ce8d5247"/><file name="best_selling_img04.jpg" hash="7e59bf99f5f813e327595c52d3320174"/><file name="best_selling_img05.jpg" hash="e396892daec7ffcf7244082b3e596911"/><file name="best_selling_img06.jpg" hash="2702839637efbe0fd0a4bad41cd6a551"/><file name="category_default_view.jpg" hash="003a46ddb46f31f558a0f91b168b14bb"/><file name="cell_phone_landing_banner1.jpg" hash="b25562360fc470f1091ca7ea014a3290"/><file name="col_left_callout.jpg" hash="0f35fa5e8ce71d4bae7514b569eb1e15"/><file name="col_right_callout.jpg" hash="b5d528921c90289f0ee3225dd14db88b"/><file name="electronics_cellphones.jpg" hash="8f6badbc32ce806c6109c788df6ef5e9"/><file name="electronics_digitalcameras.jpg" hash="953b8d7db6f0bdcd53b1d6b1386962b9"/><file name="electronics_laptops.jpg" hash="e050e92d72000e6bdc763a7b5888ec8a"/><file name="furniture_callout_spot.jpg" hash="28edc7d72486ab2362324995550d87af"/><file name="furnitures_bed_room.jpg" hash="b8616c5bffc23a92d2a1c97dae57b262"/><file name="furnitures_living_room.jpg" hash="2663737f3997cb1a49ce24d07dc8aefb"/><file name="head_electronics_cellphones.gif" hash="a69425966444ea597fb7c629114d5165"/><file name="head_electronics_digicamera.gif" hash="bde3cec3fc16b2d0ae57e7783eb00652"/><file name="head_electronics_laptops.gif" hash="b2c55387ffa92277315bdedeb4cb9b8f"/><file name="laptop_callout_mid1.jpg" hash="4ffb50bd3b7b32a78fd059b1571c202e"/><file name="laptop_callout_mid2.jpg" hash="662cf3881b06b090e9500496b19b03e4"/><file name="laptop_callout_mid3.jpg" hash="22aa71ecfe0aa9b6936a1eddb62d889e"/><file name="laptop_callout_spot.jpg" hash="2e469d1bd871355eaef6076487a973db"/><file name="shirts_landing_banner1.jpg" hash="4acc8620b009d835e5c25587671ea25d"/></dir><file name="mini_search_magnifier.gif" hash="f75d5751497592d6ec5675ed4dfa3bac"/><file name="msg_error.gif" hash="e4f28607f075a105e53fa3113d84bd26"/><file name="msg_notice.gif" hash="e774ee481a2820789c1a77112377c4e0"/><file name="msg_success.gif" hash="834dfafd5f8b44c4b24a4c00add56fcf"/><file name="narrow_by_li_by.gif" hash="14687dfa3921cfd12d2149c1497d9765"/><file name="narrow_by_set.gif" hash="ba8229068657b80f2c42111c5a1a307e"/><file name="nav_link_bg.gif" hash="4017b4e80ae14dd7b0c02c9115233093"/><file name="nav_link_over_bg.gif" hash="081dae439754cf1ec4b8b8932c9054b3"/><file name="next.png" hash="4767df76c12233045121091f277e8f9b"/><file name="no_image.jpg" hash="0ce8ad0026d8b8a83ed7acdf6209129b"/><file name="np_cart_thumb.gif" hash="e9fdd943e0947e15f0638506f477e358"/><file name="np_more_img.gif" hash="ace357bfe3e81ffb62137cd5b25ae5e1"/><file name="np_product_main.gif" hash="d0cccda76de50efa025215ce85dacb1c"/><file name="np_thumb.gif" hash="e46270c89358ecc8341d1565c14644b8"/><file name="np_thumb2.gif" hash="8502866cdabc5c74aca7d7bd32a06a03"/><file name="opc-ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="opc_on_box_bg.gif" hash="065d507000e7d0b887fcb324bb9d5995"/><file name="pager_arrow_left.gif" hash="67a12cc98e00de2b1a884fef93b87de3"/><file name="pager_arrow_right.gif" hash="454c400ab24c7107686c881e8c3aa1f7"/><file name="pat_1.gif" hash="f80b86387024850c0e299a7f05ebb68f"/><file name="ph.gif" hash="77d96eebccea5801290ad68b3ccb4199"/><file name="pipe.gif" hash="26e0335ee538898905799e0f82f9acab"/><file name="point-con.gif" hash="3dce96d9fc4e43252c3060b148ba057f"/><file name="pre.png" hash="f8eff99fc8a6d1555997d531e4bd8ed2"/><file name="product_collateral_bg.gif" hash="3c8ae459c61b3a9895ae16b109515b05"/><file name="product_rating_blank_star.gif" hash="5e20a299c0ff16168be38b6dde580eda"/><file name="product_rating_blank_star.png" hash="7be74ee8252a8e2e855d2019c0ed125d"/><file name="product_rating_full_star.gif" hash="dd5aae332178d928a7f49dea7691b5f6"/><file name="product_rating_full_star.png" hash="8431d6ccfe44844ee46008e5aeec42e0"/><file name="product_zoom_overlay_magnif.gif" hash="83834893e162221d6d9257fe67847370"/><file name="ratings-line.gif" hash="e89c8e3149308e3dde3d10a68ec47306"/><file name="red-hilite.png" hash="ea347a8b15ce78bee4d7e25954919a2b"/><file name="red.png" hash="9d45d42d94bf20f2f7c416c9f19df770"/><file name="saved_head_bg.gif" hash="332be6a4f8ff25259e30c5bf89e484a4"/><file name="search_criteria.gif" hash="cf67b9cc5c311ae3f99e68cd29ae17be"/><file name="sep-vdot.gif" hash="bfba6a98961ff3d2c711934f8381d827"/><file name="sep-vline.gif" hash="7125f2cab2273ea0b285fb40e18b849a"/><file name="sep_checkout_progress.gif" hash="cf8811599bdca2cf9e679ceca0c58760"/><file name="shipping_method_pointer.gif" hash="4108cca0ea3304e8972973102061c8c7"/><file name="slider_bg.gif" hash="dddafc85ba1ef83bfff3cbb7529422b7"/><file name="slider_btn_zoom_in.gif" hash="e4e150122f0d42f9252e03b4cff5e8f3"/><file name="slider_btn_zoom_out.gif" hash="978bb2171eef04c03ec32605b36a673e"/><file name="sort_asc_arrow.gif" hash="40aa554212d6a1f60593c27d78d85fa3"/><file name="sort_desc_arrow.gif" hash="92fd194bfae4ce5ae3354e1e47d7ac7d"/><file name="spacer.gif" hash="df3e567d6f16d040326c7a0ea29a4f41"/><file name="tab-bg.gif" hash="a2d3c0c993772e4ec187e8167be56e21"/><file name="this_is_a_demo.gif" hash="43eff8af6cce88f0b1149e73b1c2ed1b"/><file name="user-decrease.png" hash="9ac71e263d1b19fe3c6cb9c6ea2992fd"/><file name="user-increase.png" hash="c365a5eec7f5ac4206d19b0088be8054"/><file name="user-reset.png" hash="60aa8e281fac6345ffc946502d69268f"/><file name="validation_advice_bg.gif" hash="b85432906de8985a8b14eeb2dc652d3c"/><dir name="violet"><file name="icon-grid-active.gif" hash="214da28863a41b629cb79d731ecc9e8d"/><file name="icon-list-active.gif" hash="76abbfd06e523453aeba63fe17eac7c5"/><file name="logo.gif" hash="f74e584848a830010f4ce329fd8f2efd"/><file name="next.png" hash="edd6830140788c1cd40a8b92dca1c4d7"/><file name="pre.png" hash="2dc00b71bd2dad121ca114948a0602fa"/></dir><file name="white-title.gif" hash="b916c1091355d892a66709a4dc36d90c"/><dir name="yellow"><file name="black-title.gif" hash="4e0347fd114a40b3a0a3b253343fcdc3"/><file name="icon-grid-active.gif" hash="bb26fa565668653d9eac0f63e2d315af"/><file name="icon-list-active.gif" hash="7f67ee2b138415589c7f4dc0873585c5"/><file name="logo.gif" hash="ff05c81bf8cf64cc7a3a47fdcb7f33f6"/><file name="next.png" hash="ceb0109083230d86bfbbd4c1fb3c3463"/><file name="pre.png" hash="33e85d4a677ad839f17f337a5c0f14a1"/></dir></dir><dir name="joomlart"><dir name="jmmegamenu"><dir name="css"><file name="jmmegamenu.css" hash="239fca2000ec307d29f3e721ac30273c"/></dir><dir name="images"><file name="arrow.gif" hash="de3ee75c895656dcec90cf5b95e92ecb"/><file name="white-title.gif" hash="b916c1091355d892a66709a4dc36d90c"/></dir></dir><dir name="jmslideshow"><dir name="css"><file name="jm.slideshow.css" hash="f04ee49fc854bca1054b5631ffc12634"/><dir name="jquery-ui"><file name="jquery-ui.css" hash="96669285bc71f4e50b02cbf7f2401508"/><file name="jquery.hrzAccordion.defaults.css" hash="60fe842dbe1ed52b96e6e9376a264325"/></dir></dir><dir name="images"><file name="ajax-loader.gif" hash="54a581c288ec3e28d4b487233330ad09"/><file name="arrow-01.png" hash="2f60748a46b78d90a8d8946972e8384c"/><file name="arrow-02.png" hash="bf104cfe7721f6eefca5a2034735a579"/><file name="blank.png" hash="05e8d1ff9dc55aad50ad54c57e99d188"/><file name="btn-bg-01-active.png" hash="31b7c7d4f396e6554b64dd16aa3cce8a"/><file name="btn-bg-01.png" hash="fde1fb11f387245c92233e34feacd400"/><file name="demo3.gif" hash="df84b5f52db100c9e730eb096d4ecd53"/><file name="demo4.gif" hash="7ebbd98f157cc708246a5122c9b44bdc"/><file name="grad2.gif" hash="5b0de295dfab7b3a1d1a26c25bfb83d3"/><file name="shadow-01.png" hash="be8e9d09bcfccc9d71df447158b55847"/><file name="shadow.png" hash="86e55bf6985eec1d100654b9dd748c53"/></dir><dir name="js"><file name="jm.slideshow.js" hash="049671a8732d1b4ec5127ed512fe68b5"/><dir name="jquery-ui"><file name="jquery-1.3.2.js" hash="e4af2b4805203f1ac490ad67531b848b"/><file name="jquery-ui.min.js" hash="677034c42b6ef8de5ee8f518ece1f337"/><file name="jquery.hrzAccordion.js" hash="df7cc56e391ce2a585dd1e979d62ab0a"/><file name="jquery.min.js" hash="ddb84c1587287b2df08966081ef063bf"/></dir></dir></dir></dir><dir name="js"><file name="ja.accordion.nav.js" hash="bd79b28feb5c702e84808e8f6365f584"/><file name="ja.script.js" hash="2751875fe45c8d1da12e9b05ef57e9ec"/><dir name="jquery"><file name="jquery.dimensions.js" hash="1820ca03e1e177045eacf5e73177d070"/><file name="jquery.easing.js" hash="2b59bb7b4e84e9d75fe3ff43fbf2309e"/><file name="jquery.js" hash="a1a8cb16a060f6280a767187fd22e037"/><dir name="plugins"><dir name="accordion"><file name="jquery.accordion.js" hash="a4d73f610b4a25e3bcf5551dd088d238"/><file name="jquery.accordion.min.js" hash="82653c9182b34ddc8827bfa6e392179a"/><file name="jquery.accordion.pack.js" hash="152844235d2000706a7c5d58aac30159"/></dir><dir name="colorbox"><file name="jquery.colorbox-min.js" hash="be15649d1dee9fa82b22c8cc17912713"/><file name="jquery.colorbox.js" hash="9388dbd17ebbcb92580c24ed191867e9"/></dir></dir></dir><file name="jquery.equalheights.js" hash="aebd7ada0211675c49faf7714b656547"/><file name="lemmon-slider.js" hash="4ebb9d28349f598d8eecac246be3e6b9"/><file name="off-canvas.js" hash="9cb1fa058e6d6e1ce64d0a7c14d38f06"/></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.1.0</min><max>6.1.0</max></php></required></dependencies>
22
  </package>
skin/frontend/base/default/joomlart/jmproducts/css/jmproduct.css DELETED
@@ -1,42 +0,0 @@
1
- ul.products-grid .item-more {
2
- float: left;
3
- height: 60px;
4
- width: 100%;
5
- }
6
-
7
- ul.products-grid .item-more .item-inner {
8
- background: none repeat scroll 0 0 #FC615D;
9
- border-radius: 5px 5px 5px 5px;
10
- color: #FFFFFF;
11
- cursor: pointer;
12
- display: block;
13
- font-family: 'NovecentowideNormalRegular';
14
- font-size: 120%;
15
- font-style: normal;
16
- font-weight: bold;
17
- height: 60px;
18
- line-height: 60px;
19
- margin: 0 auto;
20
- text-align: center;
21
- text-transform: uppercase;
22
- width: 610px;
23
- }
24
-
25
- div.item-more h3{
26
- display: block;
27
- float: left;
28
- width: 100%;
29
- }
30
- div#infscr-loading{
31
- display: block;
32
- height: 60px;
33
- margin: 0 auto;
34
- position: relative;
35
- width: 100px;
36
-
37
- }
38
- div#infscr-loading div{
39
- margin: 0 auto;
40
- position: absolute;
41
- top: 0;
42
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/frontend/base/default/joomlart/jmproducts/js/jmproducts.js DELETED
@@ -1,77 +0,0 @@
1
- // JavaScript Document
2
- (function($){
3
-
4
- var defaults = {
5
- productsgrid:{},
6
- istable:0,
7
- qtytable:10,
8
- qtytableportrait:10,
9
- qtymobile:4,
10
- qtymobileportrait:4,
11
- ismobile:0,
12
- qtymobile:4,
13
- qtymobileportrait:4
14
- }
15
-
16
- var jmproduct = function(options){
17
- this.elm = options.productsgrid;
18
- this.options = $.extend({}, defaults, options);
19
- this.initialize();
20
- }
21
- jmproduct.prototype = {
22
-
23
- initialize:function(){
24
-
25
- if(this.options.istable){
26
- $(window).resize($.proxy(function(){
27
-
28
- if($(window).width() < 780 && this.options.qtytableportrait < this.elm.children("li.item").length){
29
- diff = this.options.qtytableportrait - 1;
30
- this.elm.children("li.item:gt("+diff+")").css("display","none");
31
- }else if($(window).width() > 780 && this.options.qtytable < this.elm.children("li.item").length){
32
- diff = this.options.qtytable - 1;
33
- this.elm.children("li.item:gt("+diff+")").css("display","none");
34
- }else{
35
- this.elm.children("li.item").css("display","block");
36
- }
37
-
38
- },this));
39
-
40
- }
41
-
42
- if(this.options.ismobile){
43
-
44
- $(window).resize($.proxy(function(){
45
- if($(window).width() < 361 && this.options.qtymobileportrait < this.elm.children("li.item").length){
46
- diff = this.options.qtymobileportrait - 1;
47
- this.elm.children("li.item:gt("+diff+")").css("display","none");
48
- }else if($(window).width() >= 361 && this.options.qtymobile < this.elm.children("li.item").length){
49
- diff = this.options.qtymobile - 1;
50
- this.elm.children("li.item:gt("+diff+")").css("display","none");
51
- }else{
52
- this.elm.children("li.item").css("display","block");
53
- }
54
-
55
- },this))
56
- }
57
- this.reloadtab();
58
- },
59
-
60
- reloadtab:function(){
61
- if($("ul.jm-tabs-title li.active")){
62
- $("ul.jm-tabs-title li.active").trigger("click");
63
- }
64
- }
65
-
66
-
67
- }
68
- $.fn.jmproduct = function(options){
69
-
70
- options.productsgrid = $(this);
71
- opotions = $.extend({},options);
72
- new jmproduct(options);
73
-
74
- };
75
-
76
- })(jQuery);
77
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/frontend/default/default/joomlart/jmslideshow/css/jm.slideshow.css DELETED
@@ -1,388 +0,0 @@
1
- .jm-slideshow {
2
- border-bottom: 5px solid #2c2d35;
3
- margin: 30px 0 20px;
4
- border: 0;
5
- }
6
-
7
- .jm-slidewrap {
8
- background: white no-repeat left bottom;
9
- margin: 0;
10
- padding: 20px;
11
- position: relative;
12
- overflow: hidden;
13
- height: auto;
14
- }
15
-
16
- .jm-slide-main-wrap {
17
- position: relative;
18
- overflow: hidden;
19
- z-index: 10;
20
- }
21
-
22
- .jm-slide-main {
23
- position: absolute;
24
- z-index: 1;
25
- }
26
-
27
- .jm-slide-item {
28
- display: block;
29
- float: left;
30
- position: relative;
31
- overflow: hidden;
32
- margin: 0;
33
- }
34
-
35
- .jm-slide-item img {
36
- padding: 0;
37
- }
38
-
39
- .jm-slide-thumbs-wrap {
40
- background: #000;
41
- position: absolute;
42
- overflow: hidden;
43
- clear: both;
44
- bottom: 40px;
45
- right: 40px;
46
- z-index: 999;
47
- }
48
-
49
- .jm-thumbs-top {
50
- margin-top: 10px;
51
- }
52
-
53
- .jm-thumbs-bottom {
54
- margin-bottom: 10px;
55
- }
56
-
57
- .jm-thumbs-left {
58
- margin-left: 10px;
59
- }
60
-
61
- .jm-thumbs-right {
62
- margin-right: 10px;
63
- }
64
-
65
- .jm-slide-thumbs,
66
- .jm-slide-thumbs-mask,
67
- .jm-slide-thumbs-handles {
68
- position: absolute;
69
- top: 0;
70
- margin: 0;
71
- padding: 0;
72
- width: 5000px;
73
- }
74
-
75
- .jm-slide-descs {
76
- display: none;
77
- }
78
-
79
- .jm-slide-thumb,
80
- .jm-slide-thumbs-handles span {
81
- display: block;
82
- margin: 0;
83
- float: left;
84
- cursor: pointer;
85
- color: #eee;
86
- background: url(../images/blank.png) left top no-repeat;
87
- }
88
-
89
- .jm-slide-thumbs-mask-left,
90
- .jm-slide-thumbs-mask-right,
91
- .jm-slide-thumbs-mask-center {
92
- float: left;
93
- }
94
-
95
- .jm-slide-thumbs-mask-left, .jm-slide-thumbs-mask-right{
96
- background: #000000;
97
- }
98
-
99
- .jm-mask-desc {
100
- display: block;
101
- z-index: 100;
102
- position: relative;
103
- padding: 20px;
104
- }
105
-
106
- .jm-mask-desc .jm-slide-desc br {
107
- display: none;
108
- }
109
-
110
- .jm-mask-desc .readmore {
111
- position: absolute;
112
- left: 0;
113
- bottom: 0;
114
- color: #B5B5B4;
115
- font-size: 100%;
116
- margin: 30px;
117
- }
118
-
119
- .jm-mask-desc a.readon:hover,
120
- .jm-mask-desc a.readon:active,
121
- .jm-mask-desc a.readon:focus {
122
- color: #eee;
123
- }
124
-
125
- .jm-slide-buttons {
126
- z-index: 999;
127
- position: absolute;
128
- display: block;
129
- margin: 0;
130
- padding: 0;
131
- top: 0;
132
- left: 0;
133
- z-index: 101;
134
- width: 100%;
135
- }
136
-
137
- .jm-slide-controls {
138
- position: absolute;
139
- z-index: 901;
140
- }
141
-
142
- .jm-slide-buttons span {
143
- background: url(../images/arrow.png) left top no-repeat;
144
- color: #eee;
145
- display: block;
146
- cursor: pointer;
147
- width: 37px;
148
- height: 37px;
149
- text-indent: -10000em;
150
- }
151
-
152
- .jm-slide-buttons span.jm-slide-prev {
153
- float: left;
154
- margin-left: 30px;
155
- background-position: left top;
156
- }
157
-
158
- .jm-slide-buttons span.jm-slide-next {
159
- float: right;
160
- margin-right: 30px;
161
- background-position: right top;
162
- }
163
-
164
- .jm-slide-buttons span.jm-slide-prev:hover {
165
- background-position: left bottom;
166
- }
167
-
168
- .jm-slide-buttons span.jm-slide-next:hover {
169
- background-position: right bottom;
170
- }
171
-
172
- .jm-slide-mask {
173
- position: absolute;
174
- right: 10px;
175
- bottom: 10px;
176
- height: 70px;
177
- width: 210px;
178
- z-index: 99;
179
- display: none;
180
- filter: none !important; /* IE < 9 */
181
- }
182
-
183
- .jm-slide-thumb img {
184
- overflow: hidden;
185
- }
186
-
187
- .jm-mask-desc .jm-slide-desc {
188
- color: #999;
189
- font-size: 100%;
190
- padding: 30px;
191
- position: absolute;
192
- top: 20px;
193
- left: 0;
194
- min-width: 300px;
195
- }
196
-
197
- .jm-mask-desc .jm-slide-desc h3 {
198
- color: #eee;
199
- text-transform: uppercase;
200
- margin: 0;
201
- padding: 0;
202
- font-size: 200%;
203
- }
204
-
205
- .jm-mask-top {
206
- margin-top: 0px;
207
- }
208
-
209
- .jm-mask-bottom {
210
- margin-bottom: 0px;
211
- }
212
-
213
- .jm-mask-left {
214
- margin-left: 0px;
215
- }
216
-
217
- .jm-mask-right {
218
- margin-right: 0px;
219
- }
220
-
221
- .jm-slide-desc {
222
- color: #999;
223
- font-size: 115%;
224
- }
225
-
226
- .jm-slide-desc h3 {
227
- color: #eee;
228
- font-size: 200%;
229
- font-weight: normal;
230
- background: none;
231
- margin: 0;
232
- padding: 0;
233
- }
234
-
235
- .jm-slide-desc p {
236
- font-weight: normal;
237
- }
238
-
239
- .jm-slide-desc .price {
240
- font-size: 165%;
241
- color: #eee;
242
- margin-right: 30px;
243
- vertical-align: middle;
244
- }
245
-
246
- .jm-slide-desc button span {
247
- background-image: url(../images/btn-bg-01-active.png);
248
- }
249
-
250
- .jm-slide-desc button:hover span {
251
- background-image: url(../images/btn-bg-01.png);
252
- }
253
-
254
- /* Slideshow layout style ---*/
255
- .jm-vertical_right {
256
- overflow: hidden;
257
- position: absolute;
258
- right: 80px;
259
- top: 40px;
260
- z-index: 100;
261
- }
262
-
263
- .jm-vertical_left {
264
- left: 80px;
265
- overflow: hidden;
266
- position: absolute;
267
- top: 40px;
268
- z-index: 999;
269
- }
270
-
271
- .jm-vertical_right .active {}
272
-
273
- .jm-vertical_left .active {}
274
-
275
- .jm-slide-right{
276
- margin-left: auto;
277
- right: 0;
278
- top: 0;
279
- }
280
-
281
- .jm-slideshowjm-vertical_left .jm-mask-desc .jm-slide-desc {
282
- right: 40px;
283
- left: auto;
284
- }
285
-
286
- .jm-slideshowjm-vertical_left .jm-mask-desc a.readon {
287
- right: 60px;
288
- left: auto;
289
- }
290
-
291
- .jm-vertical_right .jm-slide-thumb,
292
- .jm-vertical_right .jm-slide-thumbs-handles span {
293
- float: none!important;
294
- }
295
-
296
- .jm-vertical_left .jm-slide-thumb,
297
- .jm-vertical_left .jm-slide-thumbs-handles span {
298
- float: none!important;
299
- }
300
-
301
- .jm-slide-thumbs-wrap .active .jm-slide-thumb-inner {
302
- background-image: url(../images/grad2.gif);
303
- color: #eee;
304
- }
305
-
306
- .jm-vertical_right .jm-slide-thumbs-mask-left,
307
- .jm-vertical_right .jm-slide-thumbs-mask-right,
308
- .jm-vertical_right .jm-slide-thumbs-mask-center {
309
- display: block;
310
- float: none;
311
- }
312
-
313
- .jm-vertical_left .jm-slide-thumbs-mask-left,
314
- .jm-vertical_left .jm-slide-thumbs-mask-right,
315
- .jm-vertical_left .jm-slide-thumbs-mask-center {
316
- display: block;
317
- float: none;
318
- }
319
-
320
- .jm-vertical_left .jm-slide-thumb-inner {
321
- margin-left: 0px;
322
- margin-right: 19px;
323
- }
324
-
325
- .jm-slide-thumb-inner img {
326
- background: #fcfcfc;
327
- border: 1px solid #ddd;
328
- margin: 15px 15px 4px !important;
329
- padding: 3px;
330
- }
331
-
332
- .jm-slide-thumb-inner h3 {
333
- color: #1c1c1c;
334
- font-family: "Segoe UI", Verdana, Arial, sans-serif;
335
- font-size: 125%;
336
- margin-top: 15px;
337
- }
338
-
339
- .jm-slide-thumb-inner .ratings {
340
- height: 18px;
341
- margin: 0;
342
- padding: 0;
343
- }
344
-
345
- .jm-slide-thumb-inner .price-box {
346
- font-size: 110%;
347
- margin: 0;
348
- }
349
-
350
- .active .jm-slide-thumb-inner {
351
- border-top: 1px solid #65A7F5;
352
- }
353
-
354
- .active .jm-slide-thumb-inner img {
355
- background: #88BBF7;
356
- border: 1px solid #5F9DE7;
357
- }
358
-
359
- .active .jm-slide-thumb-inner h3 {
360
- color: #eee;
361
- }
362
-
363
- .ja-slideshow .block .block-title {
364
- margin-bottom: 20px;
365
- margin-top: -10px;
366
- padding-top: 0;
367
- }
368
-
369
- .jm-slide-loader {
370
- background: #fff url(../images/ajax-loader.gif);
371
- width: 16px;
372
- height: 11px;
373
- position: absolute;
374
- top: 50%;
375
- left: 50%;
376
- margin: -5px 0 0 -8px;
377
- z-index: 501;
378
- }
379
-
380
- .jm-slide-progress {
381
- position: absolute;
382
- bottom: 0px;
383
- left: 0px;
384
- height: 7px;
385
- z-index: 500;
386
- background: #fff;
387
- opacity: 0.7;
388
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/frontend/default/default/joomlart/jmslideshow/css/jquery-ui/jquery-ui.css DELETED
@@ -1,428 +0,0 @@
1
- /*
2
- * jQuery UI CSS Framework 1.8.12
3
- *
4
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5
- * Dual licensed under the MIT or GPL Version 2 licenses.
6
- * http://jquery.org/license
7
- *
8
- * http://docs.jquery.com/UI/Theming/API
9
- */
10
-
11
- /* Layout helpers
12
- ----------------------------------*/
13
- .ui-helper-hidden { display: none; }
14
- .ui-helper-hidden-accessible { position: absolute !important; }
15
- .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; text-decoration: none; list-style: none; overflow: hidden; }
16
- .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
17
- .ui-helper-clearfix { display: inline-block; }
18
- /* required comment for clearfix to work in Opera \*/
19
- * html .ui-helper-clearfix { height:1%; }
20
- .ui-helper-clearfix { display:block; }
21
- /* end clearfix */
22
- .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; }
23
-
24
-
25
- /* Interaction Cues
26
- ----------------------------------*/
27
- .ui-state-disabled { cursor: default !important; }
28
-
29
-
30
- /* Icons
31
- ----------------------------------*/
32
-
33
- /* states and images */
34
- .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
35
-
36
-
37
- /* Misc visuals
38
- ----------------------------------*/
39
-
40
- /* Overlays */
41
- .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
42
- /*
43
- * jQuery UI Accordion 1.8.12
44
- *
45
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
46
- * Dual licensed under the MIT or GPL Version 2 licenses.
47
- * http://jquery.org/license
48
- *
49
- * http://docs.jquery.com/UI/Accordion#theming
50
- */
51
- /* IE/Win - Fix animation bug - #4615 */
52
- .ui-accordion { width: 100%; }
53
- .ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 5px; }
54
- .ui-accordion .ui-accordion-li-fix:first-child .ui-accordion-header { margin-top: 0; }
55
- .ui-accordion .ui-accordion-header h3 {
56
- color: #a0a0a0;
57
- height: 60px;
58
- line-height: 60px;
59
- font-size: 220%;
60
- text-transform: uppercase;
61
- margin: 0 20px 0 100px;
62
- text-align: right;
63
- font-weight: normal;
64
- }
65
- .ui-accordion .ui-accordion-li-fix { display: inline; margin: 0; padding: 0; border: 0; }
66
- .ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
67
- .ui-accordion .ui-accordion-header a {}
68
- .ui-accordion-icons .ui-accordion-header a { }
69
- .ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
70
- .ui-accordion .ui-accordion-content { }
71
- .ui-accordion .ui-accordion-content-active { display: block; }
72
- .jm-slide-number {
73
- font-size: 320%;
74
- color: #a0a0a0;
75
- font-weight: 600;
76
- position: absolute;
77
- left: 20px;
78
- top: 7px;
79
- display: block;
80
- width: 60px;
81
- }
82
- /*
83
- * jQuery UI Autocomplete 1.8.12
84
- *
85
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
86
- * Dual licensed under the MIT or GPL Version 2 licenses.
87
- * http://jquery.org/license
88
- *
89
- * http://docs.jquery.com/UI/Autocomplete#theming
90
- */
91
- .ui-autocomplete { position: absolute; cursor: default; }
92
-
93
- /* workarounds */
94
- * html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
95
-
96
- /*
97
- * jQuery UI Menu 1.8.12
98
- *
99
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
100
- * Dual licensed under the MIT or GPL Version 2 licenses.
101
- * http://jquery.org/license
102
- *
103
- * http://docs.jquery.com/UI/Menu#theming
104
- */
105
- .ui-menu {
106
- list-style:none;
107
- padding: 2px;
108
- margin: 0;
109
- display:block;
110
- float: left;
111
- }
112
- .ui-menu .ui-menu {
113
- margin-top: -3px;
114
- }
115
- .ui-menu .ui-menu-item {
116
- margin:0;
117
- padding: 0;
118
- float: left;
119
- clear: left;
120
- width: 100%;
121
- }
122
- .ui-menu .ui-menu-item a {
123
- text-decoration:none;
124
- display:block;
125
- padding:.2em .4em;
126
- line-height:1.5;
127
- }
128
- .ui-menu .ui-menu-item a.ui-state-hover,
129
- .ui-menu .ui-menu-item a.ui-state-active {
130
- font-weight: normal;
131
- margin: -1px;
132
- }
133
- /*
134
- * jQuery UI Button 1.8.12
135
- *
136
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
137
- * Dual licensed under the MIT or GPL Version 2 licenses.
138
- * http://jquery.org/license
139
- *
140
- * http://docs.jquery.com/UI/Button#theming
141
- */
142
- .ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; overflow: visible; } /* the overflow property removes extra width in IE */
143
- .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
144
- button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
145
- .ui-button-icons-only { width: 3.4em; }
146
- button.ui-button-icons-only { width: 3.7em; }
147
-
148
- /*button text element */
149
- .ui-button .ui-button-text { display: block; line-height: 1.4; }
150
- .ui-button-text-only .ui-button-text { padding: .4em 1em; }
151
- .ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
152
- .ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
153
- .ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
154
- .ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
155
- /* no icon support for input elements, provide padding by default */
156
- input.ui-button { padding: .4em 1em; }
157
-
158
- /*button icon element(s) */
159
- .ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
160
- .ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
161
- .ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
162
- .ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
163
- .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
164
-
165
- /*button sets*/
166
- .ui-buttonset { margin-right: 7px; }
167
- .ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
168
-
169
- /* workarounds */
170
-
171
- /*
172
- * jQuery UI Datepicker 1.8.12
173
- *
174
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
175
- * Dual licensed under the MIT or GPL Version 2 licenses.
176
- * http://jquery.org/license
177
- *
178
- * http://docs.jquery.com/UI/Datepicker#theming
179
- */
180
- .ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
181
- .ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
182
- .ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
183
- .ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
184
- .ui-datepicker .ui-datepicker-prev { left:2px; }
185
- .ui-datepicker .ui-datepicker-next { right:2px; }
186
- .ui-datepicker .ui-datepicker-prev-hover { left:1px; }
187
- .ui-datepicker .ui-datepicker-next-hover { right:1px; }
188
- .ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
189
- .ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
190
- .ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
191
- .ui-datepicker select.ui-datepicker-month-year {width: 100%;}
192
- .ui-datepicker select.ui-datepicker-month,
193
- .ui-datepicker select.ui-datepicker-year { width: 49%;}
194
- .ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
195
- .ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: 600; border: 0; }
196
- .ui-datepicker td { border: 0; padding: 1px; }
197
- .ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
198
- .ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
199
- .ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
200
- .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
201
-
202
- /* with multiple calendars */
203
- .ui-datepicker.ui-datepicker-multi { width:auto; }
204
- .ui-datepicker-multi .ui-datepicker-group { float:left; }
205
- .ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
206
- .ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
207
- .ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
208
- .ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
209
- .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
210
- .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
211
- .ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
212
- .ui-datepicker-row-break { clear:both; width:100%; }
213
-
214
- /* RTL support */
215
- .ui-datepicker-rtl { direction: rtl; }
216
- .ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
217
- .ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
218
- .ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
219
- .ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
220
- .ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
221
- .ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
222
- .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
223
- .ui-datepicker-rtl .ui-datepicker-group { float:right; }
224
- .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
225
- .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
226
-
227
- /* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
228
- .ui-datepicker-cover {
229
- display: none; /*sorry for IE5*/
230
- display/**/: block; /*sorry for IE5*/
231
- position: absolute; /*must have*/
232
- z-index: -1; /*must have*/
233
- top: -4px; /*must have*/
234
- left: -4px; /*must have*/
235
- width: 200px; /*must have*/
236
- height: 200px; /*must have*/
237
- }/*
238
- * jQuery UI Dialog 1.8.12
239
- *
240
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
241
- * Dual licensed under the MIT or GPL Version 2 licenses.
242
- * http://jquery.org/license
243
- *
244
- * http://docs.jquery.com/UI/Dialog#theming
245
- */
246
- .ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
247
- .ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
248
- .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
249
- .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
250
- .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
251
- .ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
252
- .ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; }
253
- .ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
254
- .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
255
- .ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
256
- .ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
257
- .ui-draggable .ui-dialog-titlebar { cursor: move; }
258
- /*
259
- * jQuery UI Progressbar 1.8.12
260
- *
261
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
262
- * Dual licensed under the MIT or GPL Version 2 licenses.
263
- * http://jquery.org/license
264
- *
265
- * http://docs.jquery.com/UI/Progressbar#theming
266
- */
267
- .ui-progressbar { height:2em; text-align: left; }
268
- .ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }/*
269
- * jQuery UI Resizable 1.8.12
270
- *
271
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
272
- * Dual licensed under the MIT or GPL Version 2 licenses.
273
- * http://jquery.org/license
274
- *
275
- * http://docs.jquery.com/UI/Resizable#theming
276
- */
277
- .ui-resizable { position: relative;}
278
- .ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;
279
- /* http://bugs.jqueryui.com/ticket/7233
280
- - Resizable: resizable handles fail to work in IE if transparent and content overlaps
281
- */
282
- background-image:url(data:);
283
- }
284
- .ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
285
- .ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
286
- .ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
287
- .ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
288
- .ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
289
- .ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
290
- .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
291
- .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
292
- .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
293
- * jQuery UI Selectable 1.8.12
294
- *
295
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
296
- * Dual licensed under the MIT or GPL Version 2 licenses.
297
- * http://jquery.org/license
298
- *
299
- * http://docs.jquery.com/UI/Selectable#theming
300
- */
301
- .ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
302
- /*
303
- * jQuery UI Slider 1.8.12
304
- *
305
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
306
- * Dual licensed under the MIT or GPL Version 2 licenses.
307
- * http://jquery.org/license
308
- *
309
- * http://docs.jquery.com/UI/Slider#theming
310
- */
311
- .ui-slider { position: relative; text-align: left; }
312
- .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
313
- .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
314
-
315
- .handle-mask {
316
- display: none;
317
- }
318
- .ui-state-active .handle-mask {
319
- display: block;
320
- width: 13px;
321
- height: 7px;
322
- background: url(../../images/arrow-02.png) left top repeat;
323
- position: absolute;
324
- bottom: -7px;
325
- right: 200px;
326
- z-index: 9;
327
- }
328
-
329
- .ui-slider-horizontal { height: .8em; }
330
- .ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
331
- .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
332
- .ui-slider-horizontal .ui-slider-range-min { left: 0; }
333
- .ui-slider-horizontal .ui-slider-range-max { right: 0; }
334
-
335
- .ui-slider-vertical { width: .8em; height: 100px; }
336
- .ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
337
- .ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
338
- .ui-slider-vertical .ui-slider-range-min { bottom: 0; }
339
- .ui-slider-vertical .ui-slider-range-max { top: 0; }/*
340
- * jQuery UI Tabs 1.8.12
341
- *
342
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
343
- * Dual licensed under the MIT or GPL Version 2 licenses.
344
- * http://jquery.org/license
345
- *
346
- * http://docs.jquery.com/UI/Tabs#theming
347
- */
348
- .ui-tabs { position: relative; padding: .2em; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
349
- .ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
350
- .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
351
- .ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
352
- .ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
353
- .ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
354
- .ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
355
- .ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
356
- .ui-tabs .ui-tabs-hide { display: none !important; }
357
- /*
358
- * jQuery UI CSS Framework 1.8.12
359
- *
360
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
361
- * Dual licensed under the MIT or GPL Version 2 licenses.
362
- * http://jquery.org/license
363
- *
364
- * http://docs.jquery.com/UI/Theming/API
365
- *
366
- * To view and modify this theme, visit http://jqueryui.com/themeroller/
367
- */
368
-
369
-
370
- /* Component containers
371
- ----------------------------------*/
372
- .ui-widget { }
373
- .ui-widget .ui-widget { font-size: 1em; }
374
- .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { }
375
- .ui-widget-content { position: relative; }
376
- .ui-widget-content .maskDesc { position: absolute; left: 0; right: auto; top: 0; bottom: auto; padding: 0; }
377
- .ui-widget-content .jm-slide-desc { position: static; padding: 0; width: 100%; }
378
- .ui-widget-content .jm-slide-desc-inner { padding: 40px 20px; }
379
- .ui-widget-content a { }
380
- .ui-widget-header { border: 1px solid #aaaaaa/*{borderColorHeader}*/; background: #cccccc/*{bgColorHeader}*/ ; color: #222222/*{fcHeader}*/; font-weight: 600; }
381
- .ui-widget-header a { color: #222222/*{fcHeader}*/; }
382
- .readon {
383
- float: right;
384
- font-style: italic;
385
- text-decoration: underline;
386
- font-size: 11px;
387
- position: absolute;
388
- left: 42%;
389
- top: 20px;
390
- z-index: 999;
391
- }
392
-
393
- .readon:hover {
394
- color: #fff;
395
- }
396
-
397
- /* Interaction states
398
- ----------------------------------*/
399
- .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { background: #404040/*{bgColorDefault}*/; font-weight: normal/*{fwDefault}*/; color: #A0A0A0/*{fcDefault}*/; }
400
- .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555/*{fcDefault}*/; text-decoration: none; }
401
- .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { color: #fff/*{fcHover}*/; }
402
- .ui-state-hover a, .ui-state-hover a:hover { color: #212121/*{fcHover}*/; text-decoration: none; }
403
- .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { background: #000/*{bgColorActive}*/; font-weight: normal/*{fwDefault}*/; color: #808080/*{fcActive}*/; }
404
- .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #fff/*{fcActive}*/; text-decoration: none; }
405
- .ui-widget :active { outline: none; }
406
-
407
- /* Interaction Cues
408
- ----------------------------------*/
409
- .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fcefa1/*{borderColorHighlight}*/; background: #fbf9ee/*{bgColorHighlight}*/ ; color: #363636/*{fcHighlight}*/; }
410
- .ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636/*{fcHighlight}*/; }
411
- .ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a/*{borderColorError}*/; background: #fef1ec/*{bgColorError}*/ ; color: #cd0a0a/*{fcError}*/; }
412
- .ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a/*{fcError}*/; }
413
- .ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a/*{fcError}*/; }
414
- .ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: 600; }
415
- .ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { font-weight: normal; }
416
- .ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { background-image: none; }
417
-
418
- /* Icons
419
- ----------------------------------*/
420
-
421
- /* Misc visuals
422
- ----------------------------------*/
423
-
424
- /* Corner radius */
425
-
426
- /* Overlays */
427
- .ui-widget-overlay { background: #aaaaaa/*{bgColorOverlay}*/ ; }
428
- .ui-widget-shadow { margin: -8px/*{offsetTopShadow}*/ 0 0 -8px/*{offsetLeftShadow}*/; padding: 8px/*{thicknessShadow}*/; background: #aaaaaa/*{bgColorShadow}*/ ; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/frontend/default/default/joomlart/jmslideshow/css/jquery-ui/jquery.hrzAccordion.defaults.css DELETED
@@ -1,138 +0,0 @@
1
- /*Main Container*/
2
- .jm-slideshow .container {
3
- width:100%;
4
- height: 100%;
5
- overflow: hidden;
6
- position: relative;
7
- }
8
- .jm-slideshow .container ul {
9
- list-style-type: none;
10
- margin: 0px;
11
- padding: 0px;
12
- overflow: hidden;
13
- width: 940px;
14
- }
15
-
16
- .jm-slideshow .container ul li {
17
- display: inline;
18
- margin: 0;
19
- padding: 0;
20
- border-top: 0;
21
- }
22
-
23
- /*Handle*/
24
- .handle {
25
- position: relative;
26
- background: #404040;
27
- float: left;
28
- width: 60px;
29
- height: 390px;
30
- text-align:center;
31
- margin-left: 5px;
32
- }
33
-
34
- .listItem:first-child .handle {
35
- margin-left: 0;
36
- }
37
-
38
- .handle img { margin-top: 2px; }
39
- .handleOver { cursor: pointer; }
40
- .handleOver img { margin-top: 2px; }
41
- .handleSelected { background: #000; position: relative; z-index: 1; }
42
-
43
- /*Content Container*/
44
- .contentContainer {
45
- padding-left: 0;
46
- float: left;
47
- width: 0;
48
- height: auto;
49
- overflow: hidden;
50
- }
51
-
52
- .contentInnerWrapper p {
53
- margin: 0;
54
- }
55
-
56
- .contentInnerWrapper {
57
- position: relative;
58
- }
59
-
60
- .jm-slide-desc {
61
- background: url(../../images/shadow-01.png) left top repeat;
62
- position: absolute;
63
- left: 0;
64
- top: 0;
65
- padding: 40px 20px;
66
- height: 310px;
67
- width: 300px;
68
- }
69
-
70
- .readon {
71
- float: right;
72
- margin-top: 20px;
73
- font-style: italic;
74
- text-decoration: underline;
75
- font-size: 11px;
76
- top: auto;
77
- left: auto;
78
- bottom: 50px;
79
- right: 20px;
80
- }
81
-
82
- .readon:hover {
83
- color: #fff;
84
- }
85
-
86
- .jm-slide-number {
87
- font-size: 320%;
88
- color: #a0a0a0;
89
- font-weight: 600;
90
- position: absolute;
91
- left: 0;
92
- bottom: 0;
93
- top: auto;
94
- display: block;
95
- width: 60px;
96
- }
97
-
98
- .listItem:hover .jm-slide-number,
99
- .jm-slide-number:hover,
100
- .handleSelected .jm-slide-number {
101
- color: #fff;
102
- }
103
-
104
- .handle-mask {
105
- display: none;
106
- }
107
-
108
- .handleSelected .handle-mask {
109
- display: block;
110
- width: 7px;
111
- height: 13px;
112
- background: url(../../images/arrow-01.png) left top no-repeat;
113
- position: absolute;
114
- right: -7px;
115
- top: 60px;
116
- z-index: 9;
117
- }
118
-
119
- .handle h3 {
120
- color: #a0a0a0;
121
- white-space: nowrap;
122
- width: 60px;
123
- font-size: 220%;
124
- text-transform: uppercase;
125
- font-weight: normal;
126
- margin-top: 30px;
127
- position: absolute;
128
- bottom: 80px;
129
- }
130
-
131
- .handle:hover h3 {
132
- color: #fff;
133
- }
134
-
135
- .handleSelected h3,
136
- .handleSelected:hover h3 {
137
- color: #808080;
138
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/frontend/default/default/joomlart/jmslideshow/images/ajax-loader.gif DELETED
Binary file
skin/frontend/default/default/joomlart/jmslideshow/images/arrow-01.png DELETED
Binary file
skin/frontend/default/default/joomlart/jmslideshow/images/arrow-02.png DELETED
Binary file
skin/frontend/default/default/joomlart/jmslideshow/images/blank.png DELETED
Binary file
skin/frontend/default/default/joomlart/jmslideshow/images/btn-bg-01-active.png DELETED
Binary file
skin/frontend/default/default/joomlart/jmslideshow/images/btn-bg-01.png DELETED
Binary file
skin/frontend/default/default/joomlart/jmslideshow/images/demo3.gif DELETED
Binary file
skin/frontend/default/default/joomlart/jmslideshow/images/demo4.gif DELETED
Binary file
skin/frontend/default/default/joomlart/jmslideshow/images/grad2.gif DELETED
Binary file
skin/frontend/default/default/joomlart/jmslideshow/images/shadow-01.png DELETED
Binary file
skin/frontend/default/default/joomlart/jmslideshow/images/shadow.png DELETED
Binary file
skin/frontend/default/default/joomlart/jmslideshow/js/jm.slideshow.js DELETED
@@ -1,1465 +0,0 @@
1
- /*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
2
- * Licensed under the MIT License (LICENSE.txt).
3
- *
4
- * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
5
- * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
6
- * Thanks to: Seamus Leahy for adding deltaX and deltaY
7
- *
8
- * Version: 3.0.6
9
- *
10
- * Requires: 1.2.2+
11
- */
12
-
13
- (function($) {
14
-
15
- var types = ['DOMMouseScroll', 'mousewheel'];
16
-
17
- if ($.event.fixHooks) {
18
- for ( var i=types.length; i; ) {
19
- $.event.fixHooks[ types[--i] ] = $.event.mouseHooks;
20
- }
21
- }
22
-
23
- $.event.special.mousewheel = {
24
- setup: function() {
25
- if ( this.addEventListener ) {
26
- for ( var i=types.length; i; ) {
27
- this.addEventListener( types[--i], handler, false );
28
- }
29
- } else {
30
- this.onmousewheel = handler;
31
- }
32
- },
33
-
34
- teardown: function() {
35
- if ( this.removeEventListener ) {
36
- for ( var i=types.length; i; ) {
37
- this.removeEventListener( types[--i], handler, false );
38
- }
39
- } else {
40
- this.onmousewheel = null;
41
- }
42
- }
43
- };
44
-
45
- $.fn.extend({
46
- mousewheel: function(fn) {
47
- return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
48
- },
49
-
50
- unmousewheel: function(fn) {
51
- return this.unbind("mousewheel", fn);
52
- }
53
- });
54
-
55
-
56
- function handler(event) {
57
- var orgEvent = event || window.event, args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true, deltaX = 0, deltaY = 0;
58
- event = $.event.fix(orgEvent);
59
- event.type = "mousewheel";
60
-
61
- // Old school scrollwheel delta
62
- if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta/120; }
63
- if ( orgEvent.detail ) { delta = -orgEvent.detail/3; }
64
-
65
- // New school multidimensional scroll (touchpads) deltas
66
- deltaY = delta;
67
-
68
- // Gecko
69
- if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
70
- deltaY = 0;
71
- deltaX = -1*delta;
72
- }
73
-
74
- // Webkit
75
- if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY/120; }
76
- if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = -1*orgEvent.wheelDeltaX/120; }
77
-
78
- // Add event and delta to the front of the arguments
79
- args.unshift(event, delta, deltaX, deltaY);
80
-
81
- return ($.event.dispatch || $.event.handle).apply(this, args);
82
- }
83
-
84
- })(jQuery);
85
-
86
- /**
87
- * ------------------------------------------------------------------------
88
- * JM Siotis Theme
89
- * ------------------------------------------------------------------------
90
- * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
91
- * @license - Copyrighted Commercial Software
92
- * Author: J.O.O.M Solutions Co., Ltd
93
- * Websites: http://www.joomlart.com - http://www.joomlancers.com
94
- * This file may not be redistributed in whole or significant part.
95
- * ------------------------------------------------------------------------
96
- */
97
-
98
- (function($){
99
-
100
- var defaults = {
101
- effects: [
102
- 'slice-down-right', //animate height and opacity
103
- 'slice-down-left',
104
- 'slice-up-right',
105
- 'slice-up-left',
106
-
107
-
108
- 'slice-down-right-offset', //have an offset for top or bottom, no animate height
109
- 'slice-down-left-offset',
110
- 'slice-up-right-offset',
111
- 'slice-up-left-offset',
112
-
113
- 'slice-updown-right', //slide up alternate column
114
- 'slice-updown-left',
115
-
116
- 'slice-down-center-offset',
117
- 'slice-up-center-offset',
118
-
119
- 'slice-down-right-inv', //look like above, slide from an offset, but use the current image instead of the new image
120
- 'slice-down-left-inv',
121
- 'slice-down-center-inv',
122
- 'slice-up-right-inv',
123
- 'slice-up-left-inv',
124
- 'slice-up-center-inv',
125
-
126
- 'slice-down-random', //slide and offset fade
127
- 'slice-up-random',
128
-
129
- 'slice-down-left-wider', //slice, wider === fold
130
- 'slice-down-right-wider',
131
-
132
- 'slide-in-left',
133
- 'slide-in-right',
134
- 'slide-in-up',
135
- 'slide-in-down',
136
- 'slide-in-left-inv',
137
- 'slide-in-right-inv',
138
- 'slide-in-up-inv',
139
- 'slide-in-down-inv',
140
-
141
- 'fade',
142
-
143
- 'box-sort-random', //box, offset from random other position, and animate fade to it position, fadein
144
- 'box-random',
145
- 'box-rain-normal',
146
- 'box-rain-reverse',
147
- 'box-rain-normal-grow',
148
- 'box-rain-reverse-grow',
149
- 'box-rain-normal-jelly',
150
- 'box-rain-reverse-jelly',
151
-
152
- 'circle-out',
153
- 'circle-in'//,
154
- //'circle-rotate'
155
- ],
156
-
157
- animation: 'fade', //[fade, vrtslide, hrzslide, fullslide, slice], slide and fade for old compactible, fullslide is horizontal only
158
- direction: 'horizontal', //depend on [animation=slide] - [horizontal, vertical] - slide direction of main item for move animation
159
-
160
- mainWidth: 600, //width of main item
161
- mainHeight: 320, //height of main item
162
-
163
- //private:
164
- fullsize: false, //depend on [animation=slide] - full size mean we will set the slideshow block to 100%
165
- fbanim: 'fade', //fallback animation - const
166
- slices: 13, //depend on [animation=slice] - number of vertical slices - const
167
- boxCols: 8, //depend on [animation=slice] - number of box columns - const
168
- boxRows: 5, //depend on [animation=slice] - number of box columns - const
169
-
170
- duration: 500, //duration - time for animation
171
-
172
- //private:
173
- repeat: true, //animation repeat or not
174
- autoPlay: false, //auto play
175
- interval: 5000, //interval - time for between animation
176
-
177
- rtl: null, //rtl - for future
178
-
179
- //private:
180
- startItem: 0, //start item will be show - const
181
-
182
- thumbItems: 4, //number of thumb item will be show
183
- thumbType: 'thumb', //false - no thumb, other [number, thumb], thumb will animate
184
- thumbWidth: 60, //width of thumbnail item
185
- thumbHeight: 60, //width of thumbnail item
186
- thumbSpaces: [3, 3, 3, 3], //space between thumbnails
187
- thumbOpacity: 0.8, //thumb opacity - set to the mask
188
- thumbTrigger: 'click', //thumb trigger event, [click, mouseenter]
189
- thumbDirection: 'horizontal', //thumb orientation
190
- thumbPosition: 'br', //default is bottom right
191
-
192
- showDesc: true, //show description or not
193
- descTrigger: 'always', //[always, mouseover]
194
- maskWidth: 360, //mask - a div over the the main item - used to hold descriptions
195
- maskHeight: 300, //mask height
196
- maskOpacity: 0.8, //mask opacity
197
- maskPosition: 'bl', //default is bottom left
198
- maskAnim: 'hrzslidefade', //mask transition style [none, fade, vrtslide, hrzslide, vrtslidefade, hrzslidefade]
199
-
200
- //private:
201
- maskAlign: 'left',
202
-
203
- controlBox: true, //show navigation controller [next, prev, play, playback] - JM does not have a config
204
- controlPosition: 'tl', //show navigation controller [next, prev, play, playback] - JM does not have a config
205
-
206
- navButtons: false, //[next, prev] buttons of other position, control by css, even overwrite html structure, everywhere but not in main block
207
-
208
- showProgress: true, //show the progress bar
209
-
210
- urls: false, // [] array of url of main items
211
- targets: false // [] same as urls, an array of target value such as, '_blank', 'parent', '' - default
212
- };
213
-
214
- var jaslider = function(elm, options){
215
- this.element = $(elm);
216
- this.options = $.extend({}, defaults, options);
217
- this.initialize();
218
- };
219
-
220
- jaslider.prototype = {
221
-
222
- initialize: function () {
223
- var slider = this.element,
224
- options = this.options,
225
- mainWrap = slider.find('.jm-slide-main-wrap'),
226
- mainFrame = slider.find('.jm-slide-main'),
227
- mainItems = slider.find('.jm-slide-item');
228
-
229
- if(!mainItems.length){
230
- return false;
231
- }
232
-
233
- var imgItems = mainItems.find('img');
234
- if(mainItems.length != imgItems.length && options.animation == 'slice'){
235
- options.animation = options.fbanim;
236
- }
237
-
238
- if(options.animation == 'vrtslide'){
239
- options.animation = 'slide';
240
- options.direction = 'vertical';
241
- } else if (options.animation == 'hrzslide'){
242
- options.animation = 'slide';
243
- options.direction = 'horizontal';
244
- } else if (options.animation == 'fullslide'){
245
- options.animation = 'slide';
246
- options.direction = 'horizontal';
247
- options.fullsize = true;
248
- }
249
-
250
- if (options.animation !== 'slide'){
251
- options.fullsize = false;
252
- }
253
-
254
- if(!options.thumbSpaces || options.thumbSpaces.length < 4){
255
- options.thumbSpaces = [0, 0, 0, 0];
256
- }
257
-
258
- mainWrap.css({
259
- 'width': options.fullsize ? '100%' : options.mainWidth,
260
- 'height': options.mainHeight
261
- });
262
-
263
- mainItems.css({
264
- 'width': options.mainWidth,
265
- 'height': options.mainHeight
266
- });
267
-
268
- var mainItemSpace = 0,
269
- isHorz = (options.direction == 'horizontal');
270
-
271
- if (options.animation == 'slide') { //full size
272
- mainItemSpace = 10;
273
- mainItems.css(isHorz ? 'margin-right' : 'margin-bottom', mainItemSpace);
274
- }
275
-
276
- var mainItem = mainItems.eq(0),
277
- mainItemSize = isHorz ? mainItem.outerWidth(true) : mainItem.outerHeight(true),
278
- rearSize = Math.ceil(((isHorz ? mainWrap.innerWidth() : mainWrap.innerHeight()) - mainItemSize) / 2),
279
-
280
- vars = {
281
- slider: slider,
282
- mainWrap: mainWrap,
283
- mainFrame: mainFrame,
284
- mainItems: mainItems,
285
-
286
- size: mainItemSize,
287
- rearSize: rearSize,
288
- offset: options.fullsize ? (rearSize - mainItemSize + mainItemSpace / 2) : 0,
289
- mainItemSpace: mainItemSpace,
290
-
291
- total: mainItems.length,
292
- curIdx: Math.min(options.startItem, mainItems.length - 1),
293
- nextIdx: -1,
294
- curImg: '',
295
-
296
- running: 0,
297
- stop: 0,
298
- timer: 0,
299
-
300
- sliceTime: Math.round(Math.max(70, options.duration / options.slices)),
301
- boxTime: Math.round(Math.max(50, options.duration / Math.max(options.boxCols, options.boxRows))),
302
-
303
- modes: (isHorz ? (options.rtl == 'rtl' ? ['right', 'width'] : ['left', 'width']) : ['top', 'height']),
304
-
305
- finished: $.proxy(this.animFinished, this)
306
- };
307
-
308
- this.vars = vars;
309
-
310
- //Description
311
- this.initMasker();
312
-
313
- //Get initial images
314
- if(options.animation == 'slice'){
315
- mainItems.css('display', 'none');
316
- vars.mainItems = imgItems;
317
- vars.curImg = imgItems[vars.curIdx];
318
-
319
- var ofsParent = mainFrame.offsetParent() || mainWrap;
320
-
321
- //Set first background
322
- mainFrame.css({
323
- position: 'relative',
324
- left: (ofsParent.width() - options.mainWidth) / 2,
325
- top: (ofsParent.height() - options.mainHeight) / 2,
326
- overflow: 'hidden',
327
- display: 'block',
328
- width: options.mainWidth,
329
- height: options.mainHeight,
330
- background: 'url("'+ vars.curImg.src +'") no-repeat'
331
- });
332
- }
333
-
334
- if(options.animation == 'slide'){
335
- vars.offset -= parseInt(mainFrame.css(isHorz ? 'margin-left' : 'margin-top'));
336
-
337
- mainFrame
338
- .css(vars.modes[1], vars.size * (vars.total + 2))
339
- .css(vars.modes[0], -vars.curIdx * vars.size + vars.offset);
340
- }
341
- if(options.fullsize){
342
- mainItems.eq(0).clone().appendTo(mainFrame);
343
- mainItems.eq(vars.total - 1).clone().prependTo(mainFrame, 'top');
344
- }
345
- if(options.animation == 'fade'){
346
- mainItems.css({
347
- position: 'absolute',
348
- top: 0,
349
- opacity: 0,
350
- visibility: 'visible'
351
- }).eq(vars.curIdx).css('opacity', 1);
352
- }
353
-
354
- this.initMainItemAction();
355
- this.initMainCtrlButton();
356
- this.initThumbAction();
357
- this.initControlAction();
358
- this.initHoverBehavior();
359
- this.initProgressBar();
360
- this.initLoader();
361
-
362
- vars.direct = 'next';
363
- slider.css('visibility', 'visible');
364
-
365
- this.prepare(false, vars.curIdx);
366
- this.animFinished();
367
- },
368
-
369
- stop: function(){
370
- clearInterval(this.vars.timer);
371
- this.vars.stop = 1;
372
-
373
- if(this.options.showProgress){ //stop the progress bar
374
- this.vars.progress.stop().css('width', 0);
375
- }
376
-
377
- return false;
378
- },
379
-
380
- prev: function(force){
381
- var vars = this.vars;
382
- if(vars.running && !force){
383
- return false;
384
- }
385
- this.prepare(force, vars.curIdx -1);
386
-
387
- return false;
388
- },
389
-
390
- next: function(force){
391
- var vars = this.vars;
392
- if(vars.running && !force){
393
- return false;
394
- }
395
- this.prepare(force, vars.curIdx +1);
396
-
397
- return false;
398
- },
399
-
400
- playback: function(force){
401
- this.vars.direct = 'prev';
402
- this.vars.stop = 0;
403
- this.prev(force);
404
-
405
- return false;
406
- },
407
-
408
- play: function(force){
409
- this.vars.direct = 'next';
410
- this.vars.stop = 0;
411
- this.next(force);
412
-
413
- return false;
414
- },
415
-
416
- start: function(){
417
- var vars = this.vars;
418
-
419
- clearTimeout(vars.timer);
420
- vars.timer = setTimeout($.proxy(this[this.vars.direct], this), this.options.interval)
421
- },
422
-
423
- loadimg: function(cimg, idx){
424
- var img = new Image();
425
- img.onload = $.proxy(this.load, this, cimg, idx);
426
- img.src = cimg.attr('src');
427
- },
428
-
429
- load: function(img, idx){
430
- img.data('loaded', 1);
431
-
432
- var vars = this.vars;
433
-
434
- if(vars.nextIdx == idx){
435
- if(vars.loader){
436
- vars.loader.stop().fadeTo(500, 0);
437
- }
438
-
439
- this.run(false, idx);
440
- } else if(vars.nextIdx == -1 && vars.loader){
441
- vars.loader.stop().fadeTo(500, 0);
442
- }
443
- },
444
-
445
- prepare: function(force, idx){
446
- var vars = this.vars,
447
- options = this.options;
448
-
449
- if(options.animation === 'slice' && vars.running){
450
- return false;
451
- }
452
-
453
- if(idx >= vars.total){
454
- idx = 0;
455
- }
456
-
457
- if(idx < 0){
458
- idx = vars.total - 1;
459
- }
460
-
461
- var curImg = vars.mainItems.eq(idx);
462
- if(curImg[0].tagName.toLowerCase() != 'img'){
463
- curImg = curImg.find('img');
464
- }
465
-
466
- if(!curImg.length){
467
- return this.run(force, idx);
468
- }
469
-
470
- vars.nextIdx = idx;
471
-
472
- clearTimeout(vars.timer);
473
-
474
- if(curImg.data('loaded')){
475
- if(idx == vars.curIdx){
476
- return false;
477
- }
478
-
479
- this.run(force, idx);
480
- }
481
-
482
- else{
483
-
484
- if(vars.loader){
485
- vars.loader.css('display', 'block').stop().animate({opacity: 0.3});
486
- }
487
-
488
- this.loadimg(curImg, idx);
489
- }
490
-
491
- return false;
492
- },
493
-
494
- run: function(force, idx){
495
- var vars = this.vars,
496
- options = this.options;
497
-
498
- if(vars.curIdx == idx){
499
- return false;
500
- }
501
-
502
- if(this[options.animation]){
503
- this[options.animation](force, idx);
504
- }else{
505
- this.fade(force, idx);
506
- }
507
-
508
- if (vars.thumbMask) {
509
- if (idx <= vars.thumbStartIdx || idx >= vars.thumbStartIdx + options.thumbItems - 1) {
510
- vars.thumbStartIdx = Math.max(0, Math.min(idx - options.thumbItems + 2, vars.total - options.thumbItems));
511
-
512
- var pos = {};
513
- pos[vars.thumbAnimStyle] = -vars.thumbStartIdx * vars.thumbStep;
514
- vars.thumbBox.stop().animate(pos);
515
- vars.handleBox.stop().animate(pos);
516
- }
517
-
518
- var mpos = {};
519
- mpos[vars.thumbAnimStyle] = (idx - vars.thumbStartIdx) * vars.thumbStep - 2000 + vars.stepOffs;
520
- vars.thumbMask.animate(mpos);
521
- vars.thumbItems.removeClass('active').eq(idx).addClass('active');
522
- vars.handleItems.removeClass('active').eq(idx).addClass('active');
523
- }
524
-
525
- if (options.descTrigger === 'always' && options.showDesc) {
526
- this.hideDescription();
527
- }
528
-
529
- if(options.showProgress){
530
- vars.progress.stop().css('width', 0);
531
- }
532
- },
533
-
534
- slide: function(force, idx){
535
- var vars = this.vars,
536
- aobj = {};
537
-
538
- vars.curIdx = idx;
539
- aobj[vars.modes[0]] = -idx * vars.size + vars.offset;
540
- vars.mainFrame.animate(aobj, vars.finished);
541
- },
542
-
543
- fade: function(force, idx){
544
- var options = this.options,
545
- vars = this.vars;
546
-
547
- if(idx != vars.curIdx){
548
- vars.mainItems.eq(vars.curIdx).stop().fadeTo(options.duration, 0);
549
- vars.mainItems.eq(idx).stop().fadeTo(options.duration + 200, 1, vars.finished);
550
- }
551
-
552
- vars.curIdx = idx;
553
- },
554
-
555
- slice: function(force, idx){
556
-
557
- var options = this.options,
558
- vars = this.vars,
559
- container = vars.mainFrame,
560
- oldImg = vars.curImg;
561
-
562
- //Set vars.curImg
563
- vars.curIdx = idx;
564
- vars.curImg = vars.mainItems[vars.curIdx];
565
-
566
- // Remove any slices & boxs from last transition
567
- container.children('.jm-slice').remove();
568
- container.children('.jm-box').remove();
569
-
570
- //Generate random effect
571
- var effect = options.effects[Math.floor(Math.random() * (options.effects.length))];
572
- if(effect == undefined){
573
- effect = 'fading';
574
- }
575
-
576
- //Run effects
577
- var effects = effect.split('-'),
578
- callfun = 'anim' + effects[0];
579
-
580
- if(this[callfun]){
581
-
582
- vars.running = true;
583
- this[callfun](effects, oldImg, vars.curImg);
584
- }
585
- },
586
-
587
- animFinished: function(){
588
- var options = this.options,
589
- vars = this.vars;
590
-
591
- vars.running = false;
592
-
593
- //Trigger the afterChange callback
594
- if (options.showDesc) {
595
- this.swapDescription();
596
-
597
- if (options.descTrigger === 'always') {
598
- this.showDescription();
599
- }
600
- }
601
-
602
- if (!vars.stop && (options.autoPlay && (vars.curIdx < vars.total -1 || options.repeat))) {
603
- this.start();
604
-
605
- if(options.showProgress){
606
- vars.progress.stop().animate({ width: vars.progressWidth }, options.interval - options.duration);
607
- }
608
- }
609
- },
610
-
611
- createSlice: function(img){
612
- var options = this.options,
613
- vars = this.vars,
614
- container = vars.mainFrame;
615
-
616
- return $('<div class="jm-slice"></div>').css({
617
- display: 'block',
618
- position: 'absolute',
619
- left: 0,
620
- width: options.mainWidth,
621
- height: options.mainHeight,
622
- opacity: 0,
623
- background: 'url("'+ img.src +'") no-repeat 0% 0%',
624
- zIndex: 10
625
- }).appendTo(container);
626
- },
627
-
628
- createSlices: function(img, height, opacity){
629
- var options = this.options,
630
- vars = this.vars,
631
- container = vars.mainFrame,
632
- width = Math.round(options.mainWidth / options.slices),
633
- slices = [];
634
-
635
- for(var i = 0; i < options.slices; i++){
636
- var sliceWidth = i == options.slices - 1 ? (options.mainWidth - width * i) : width;
637
-
638
- slices.push($('<div class="jm-slice"></div>').css({
639
- position: 'absolute',
640
- left: i * width,
641
- width: sliceWidth,
642
- height: height,
643
- opacity: opacity,
644
- background: 'url("'+ img.src +'") no-repeat -'+ (i * width) +'px 0%',
645
- zIndex: 10
646
- })[0]);
647
- }
648
-
649
- container.append(slices);
650
-
651
- return slices;
652
- },
653
-
654
- createBoxes: function(img, opacity){
655
- var options = this.options,
656
- vars = this.vars,
657
- container = vars.mainFrame,
658
- width = Math.round(options.mainWidth / options.boxCols),
659
- height = Math.round(options.mainHeight / options.boxRows),
660
- bwidth,
661
- bheight,
662
- boxes = [];
663
-
664
- for(var rows = 0; rows < options.boxRows; rows++){
665
- bheight = rows == options.boxRows - 1 ? options.mainHeight - height * rows : height;
666
-
667
- for(var cols = 0; cols < options.boxCols; cols++){
668
- bwidth = cols == options.boxCols - 1 ? options.mainWidth - width * cols : width;
669
-
670
- boxes.push($('<div class="jm-box"></div>').css({
671
- position: 'absolute',
672
- opacity: opacity,
673
- left: width * cols,
674
- top: height * rows,
675
- width: bwidth,
676
- height: bheight,
677
- background: 'url("'+ img.src +'") no-repeat -'+ (width * cols) +'px -'+ (height * rows) +'px',
678
- zIndex: 10
679
- })[0]);
680
- }
681
- }
682
-
683
- container.append(boxes);
684
-
685
- return boxes;
686
- },
687
-
688
- createCircles: function(img, opacity){
689
- var options = this.options,
690
- vars = this.vars,
691
- container = vars.mainFrame,
692
- size = 100,
693
- radius = Math.ceil(Math.sqrt(Math.pow((options.mainWidth), 2) + Math.pow((options.mainHeight), 2))),
694
- total = Math.ceil(radius / 100),
695
- left, top, elm,
696
- circles = [];
697
-
698
- for(var i = 0; i < total; i++){
699
- left = Math.round((options.mainWidth - size) / 2);
700
- top = Math.round((options.mainHeight - size) / 2);
701
-
702
- elm = $('<div class="jm-box"></div>').css({
703
- position: 'absolute',
704
- opacity: opacity,
705
- left: left,
706
- top: top,
707
- width: size,
708
- height: size,
709
- background: 'url("'+ img.src +'") no-repeat '+ (0 - left) +'px '+ (0 - top) +'px',
710
- zIndex: 10
711
- }).css3({
712
- 'border-radius': radius + 'px'
713
- })[0];
714
-
715
- circles.push(elm);
716
-
717
- size += 100;
718
- }
719
-
720
- container.append(circles);
721
-
722
- return circles;
723
- },
724
-
725
- animslice: function(effects, oldImg, curImg){
726
- var options = this.options,
727
- vars = this.vars,
728
- img = curImg,
729
- height = 0,
730
- opacity = 0;
731
-
732
- if(effects[3] == 'inv'){
733
- img = oldImg;
734
- height = options.mainHeight;
735
- opacity = 1;
736
- }
737
-
738
- //set the background
739
- vars.mainFrame.css('background','url("'+ (effects[3] == 'inv' ? curImg.src : oldImg.src) +'") no-repeat');
740
-
741
- var slices = this.createSlices(img, height, opacity),
742
- styleOn = { height: options.mainHeight - height, opacity: 1 - opacity / 2},
743
- last = slices.length -1,
744
- timeBuff = 100;
745
-
746
- // by default, animate is sequence from left to right
747
- if(effects[2] == 'left'){ // reverse the direction, so animation is sequence from right to left
748
- slices = slices.reverse();
749
- } else if(effects[2] == 'random'){ // so randomly
750
- this.shuffle(slices);
751
- }
752
-
753
- if(effects[3] == 'offset'){ //have offset style - we will not animate height, so set it to fullheight, we animate 'top' or 'bottom' property
754
- var property = effects[1] == 'up' ? 'top' : 'bottom';
755
-
756
- delete styleOn.height;
757
- styleOn[property] = 0;
758
-
759
- $(slices).css(property, '250px').css('height', options.mainHeight);
760
- }
761
-
762
- else if(effects[1] == 'updown'){
763
- for(var k = 0, kl = slices.length; k < kl; k++){
764
- $(slices[k]).css((k & 1) == 0 ? 'top' : 'bottom', '0px');
765
- }
766
- }
767
-
768
- else if(effects[1] == 'down'){
769
- $(slices).css('top', '0px');
770
- }
771
-
772
- else if(effects[1] == 'up'){
773
- $(slices).css('bottom', '0px');
774
- }
775
-
776
- if(effects[3] == 'wider'){
777
-
778
- $.each(slices, function(i, slice){
779
- var orgWidth = $(slice).innerWidth();
780
-
781
- $(slice).css({
782
- 'width': 0,
783
- 'height': options.mainHeight
784
- });
785
-
786
- setTimeout(function(){
787
- $(slice).animate({
788
- width: orgWidth,
789
- opacity: 1
790
- }, options.duration, i == last ? vars.finished : null);
791
- }, timeBuff);
792
-
793
- timeBuff += vars.sliceTime;
794
- });
795
- }
796
- else if(effects[2] == 'center'){
797
- var center = last / 2;
798
- $.each(slices, function(i, slice){
799
- var delay = Math.abs(center - i) * 100;
800
-
801
- setTimeout(function(){
802
- $(slice).animate(styleOn, options.duration, i == last ? vars.finished : null);
803
- }, delay);
804
-
805
- });
806
- } else {
807
- $.each(slices, function(i, slice){
808
-
809
- setTimeout(function(){
810
- $(slice).animate(styleOn, options.duration, i == last ? vars.finished : null);
811
- }, timeBuff);
812
-
813
- timeBuff += vars.sliceTime;
814
- });
815
- }
816
- },
817
-
818
- animbox: function(effects, oldImg, curImg){
819
- var options = this.options,
820
- vars = this.vars,
821
- img = vars.curImg,
822
- height = 0,
823
- opacity = 0;
824
-
825
- if(effects[3] == 'jelly'){
826
- img = oldImg;
827
- opacity = 1;
828
- }
829
-
830
- vars.mainFrame.css('background','url("'+ (effects[3] == 'jelly' ? curImg.src : oldImg.src) +'") no-repeat');
831
-
832
- var boxes = this.createBoxes(img, opacity),
833
- last = options.boxCols * options.boxRows -1,
834
- boxTime = vars.boxTime,
835
- i = 0,
836
- timeBuff = 100;
837
-
838
- if(effects[1] == 'sort'){
839
- var width = Math.round(options.mainWidth / options.boxCols),
840
- height = Math.round(options.mainHeight / options.boxRows),
841
- boxTime = boxTime / 3;
842
-
843
- $.each(this.shuffle(boxes), function(idx, box){
844
- var jbox = $(box),
845
- styleOn = {
846
- top: jbox.css('top'),
847
- left: jbox.css('left')
848
- };
849
-
850
- jbox.css({
851
- top: Math.round(Math.random() * options.boxRows / 2) * height,
852
- left: Math.round(Math.random() * options.boxCols / 2) * width
853
- });
854
-
855
- styleOn['opacity'] = 1;
856
-
857
- setTimeout(function(){
858
- jbox.animate(styleOn, options.duration, idx == last ? vars.finished : null);
859
- }, timeBuff);
860
-
861
- timeBuff += boxTime;
862
- });
863
- }
864
-
865
- else if(effects[1] == 'random'){
866
- boxTime = boxTime / 3;
867
-
868
- $.each(this.shuffle(boxes), function(idx, box){
869
- setTimeout(function(){
870
- $(box).animate({ opacity: 1 }, options.duration, idx == last ? vars.finished : null);
871
- }, timeBuff);
872
-
873
- timeBuff += boxTime;
874
- });
875
- }
876
- else if(effects[1] == 'rain'){
877
- var rowIndex = 0,
878
- colIndex = 0,
879
- arr2d = [];
880
-
881
- // Split boxes into 2D array
882
- arr2d[rowIndex] = [];
883
-
884
- if(effects[2] == 'reverse'){
885
- boxes = boxes.reverse();
886
- }
887
-
888
- $.each(boxes, function(idx, box){
889
- arr2d[rowIndex][colIndex] = box;
890
- colIndex++;
891
- if(colIndex == options.boxCols){
892
- rowIndex++;
893
- colIndex = 0;
894
- arr2d[rowIndex] = [];
895
- }
896
- });
897
-
898
- // Run animation
899
- for(var cols = 0; cols < (options.boxCols * 2); cols++){
900
- var prevCol = cols;
901
- for(var rows = 0; rows < options.boxRows; rows++){
902
- if(prevCol >= 0 && prevCol < options.boxCols){
903
-
904
- (function(row, col, time, i) {
905
- var jbox = $(arr2d[row][col]),
906
- w = jbox.innerWidth(),
907
- h = jbox.innerHeight();
908
-
909
- if(effects[3] == 'grow'){
910
- jbox.css({
911
- width: 0,
912
- height: 0
913
- });
914
- }
915
-
916
- else if(effects[3] == 'jelly'){
917
- w = 0;
918
- h = 0;
919
- }
920
-
921
- setTimeout(function(){
922
- jbox.animate({ opacity: 1 - opacity, width: w, height: h }, options.duration, i == last ? vars.finished : null);
923
- }, time);
924
-
925
- })(rows, prevCol, timeBuff, i);
926
-
927
- i++;
928
- }
929
- prevCol--;
930
- }
931
- timeBuff += boxTime;
932
- }
933
- }
934
- },
935
-
936
- animslide: function(effects, oldImg, curImg){
937
-
938
- var options = this.options,
939
- vars = this.vars,
940
- img = curImg;
941
-
942
- if(effects[3] == 'inv'){
943
- img = oldImg;
944
- }
945
-
946
- vars.mainFrame.css('background','url("'+ (effects[3] == 'inv' ? curImg.src : oldImg.src) +'") no-repeat');
947
-
948
- var slice = this.createSlice(img),
949
- mapOn = { left: 'left', right: 'right', up: 'top', down: 'bottom' },
950
- mapOff = { left: 'right', right: 'left', up: 'bottom', down: 'top' },
951
- value = (effects[2] == 'left' || effects[2] == 'right') ? options.mainWidth : options.mainHeight,
952
- styleOn = { opacity: 1},
953
- styleOff = { opacity: 0.5 };
954
-
955
- styleOff[mapOn[effects[2]]] = -value;
956
- styleOff[mapOff[effects[2]]] = '';
957
-
958
- styleOn[mapOn[effects[2]]] = 0;
959
-
960
- if(effects[3] == 'inv'){
961
- styleOn.opacity = 0.5;
962
- styleOn[mapOn[effects[2]]] = - value;
963
-
964
- styleOff.opacity = 1;
965
- styleOff[mapOn[effects[2]]] = 0;
966
- styleOff[mapOff[effects[2]]] = '';
967
- }
968
-
969
- slice.css(styleOff);
970
-
971
- $(slice).animate(styleOn, options.duration, vars.finished);
972
- },
973
-
974
- animcircle: function(effects, oldImg, curImg){
975
-
976
- var options = this.options,
977
- vars = this.vars,
978
- img = curImg,
979
- opacity = 0;
980
-
981
- if(effects[1] == 'in'){
982
- img = oldImg;
983
- opacity = 1;
984
- }
985
-
986
- vars.mainFrame.css('background','url("'+ (effects[1] == 'in' ? curImg.src : oldImg.src) +'") no-repeat');
987
-
988
- var circles = this.createCircles(img, opacity),
989
- timeBuff = 100,
990
- last = circles.length -1;
991
-
992
- if(effects[1] == 'in'){
993
- circles = circles.reverse();
994
- }
995
-
996
- $.each(circles, function(i, circle){
997
-
998
- setTimeout(function(){
999
- $(circle).animate({opacity: 1 - opacity}, options.duration, i == last ? vars.finished : null);
1000
- }, timeBuff);
1001
-
1002
- timeBuff += vars.boxTime;
1003
- });
1004
- },
1005
-
1006
- animfade: function(effects, oldImg, curImg){
1007
-
1008
- var vars = this.vars,
1009
- options = this.options,
1010
- slice = this.createSlice(curImg),
1011
- styleOn = {
1012
- opacity: 1
1013
- };
1014
-
1015
- vars.mainFrame.css('background','url("'+ oldImg.src +'") no-repeat');
1016
-
1017
- slice.animate(styleOn, options.duration, vars.finished);
1018
- },
1019
-
1020
- shuffle: function(arr){
1021
- for(var j, x, i = arr.length; i; j = parseInt(Math.random() * i), x = arr[--i], arr[i] = arr[j], arr[j] = x);
1022
- return arr;
1023
- },
1024
-
1025
- docking: function(cont, elm, dock){
1026
- var vars = this.vars,
1027
- options = this.options;
1028
-
1029
- switch(dock){
1030
- case 'top':
1031
- case 'bottom':
1032
- elm.css(dock, 0).css('left', Math.max(0, (cont.width() - elm.outerWidth(true)) / 2));
1033
- break;
1034
-
1035
- case 'left':
1036
- case 'right':
1037
- elm.css(dock, 0).css('top', Math.max(0, (cont.height() - elm.outerHeight(true)) / 2));
1038
- break;
1039
-
1040
- case 'tl':
1041
- elm.css({top: 0, left: 0});
1042
- break;
1043
-
1044
- case 'tr':
1045
- elm.css({top: 0, right: 0});
1046
- break;
1047
-
1048
- case 'bl':
1049
- elm.css({bottom: 0, left: 0});
1050
- break;
1051
-
1052
- case 'br':
1053
- elm.css({bottom: 0, right: 0});
1054
- break;
1055
- }
1056
- },
1057
-
1058
- showDescription: function(){
1059
- this.vars.maskDesc.stop().animate(this.vars.maskOn, this.vars.iecallback);
1060
- },
1061
-
1062
- hideDescription: function(){
1063
- this.vars.maskDesc.stop().animate(this.vars.maskOff);
1064
- },
1065
-
1066
- swapDescription: function(){
1067
- var vars = this.vars;
1068
-
1069
- vars.maskDesc.find('.jm-slide-desc').detach();
1070
- vars.maskDesc.append(vars.descs[vars.curIdx]);
1071
- },
1072
-
1073
- initMasker: function(){
1074
- var options = this.options,
1075
- vars = this.vars,
1076
- slider = vars.slider,
1077
- maskDesc = slider.find('.jm-mask-desc');
1078
-
1079
- if(!maskDesc.length){
1080
- return;
1081
- }
1082
-
1083
- if (options.showDesc) {
1084
- var mask = slider.find('.jm-slide-mask');
1085
-
1086
- maskDesc.add(mask).css({
1087
- 'display': 'block',
1088
- 'position': 'absolute',
1089
- 'width': options.maskWidth,
1090
- 'height': options.maskHeight
1091
- });
1092
-
1093
- mask.css('opacity', options.maskOpacity);
1094
-
1095
- this.docking(vars.slider, maskDesc, options.maskPosition);
1096
-
1097
- if($.inArray(options.maskPosition, ['top', 'right', 'bottom', 'left']) != -1){
1098
- options.maskAlign = options.maskPosition;
1099
- } else {
1100
- if(options.maskAnim.indexOf('vrt') != -1){
1101
- options.maskAlign = options.maskPosition.indexOf('t') != -1 ? 'top' : 'bottom';
1102
- } else if (options.maskAnim.indexOf('hrz') != -1){
1103
- options.maskAlign = options.maskPosition.indexOf('l') != -1 ? 'left' : 'right';
1104
- }
1105
- }
1106
-
1107
- maskDesc.addClass('jm-mask-pos-' + options.maskPosition);
1108
-
1109
- var descs = slider.find('.jm-slide-descs .jm-slide-desc'),
1110
- maskOn = {},
1111
- maskOff = {};
1112
-
1113
- if(options.maskAnim.indexOf('slide') != -1){
1114
- maskOn[options.maskAlign] = 0;
1115
- maskOff[options.maskAlign] = (options.maskAlign == 'top' || options.maskAlign == 'bottom' ? -options.maskHeight : -options.maskWidth);
1116
- }
1117
-
1118
- if(options.maskAnim.indexOf('fade') != -1){
1119
- maskOn['opacity'] = 1;
1120
- maskOff['opacity'] = 0.01;
1121
- }
1122
-
1123
- if (options.descTrigger === 'mouseenter') {
1124
- maskDesc.add(vars.mainWrap)
1125
- .bind('mouseenter', $.proxy(this.showDescription, this))
1126
- .bind('mouseleave', $.proxy(this.hideDescription, this));
1127
-
1128
- }
1129
-
1130
- $.extend(vars, {
1131
- maskOn: maskOn,
1132
- maskOff: maskOff,
1133
- maskDesc: maskDesc,
1134
- descs: descs,
1135
- iecallback: (($.browser.ie && parseFloat($.browser.version) <= 8 && options.maskAnim.indexOf('fade') != -1) ? function(){ vars.maskDesc.css('filter', ''); } : undefined)
1136
- });
1137
-
1138
- } else {
1139
- maskDesc.css('display', 'none');
1140
- }
1141
- },
1142
-
1143
- initThumbAction: function () {
1144
- var options = this.options,
1145
- vars = this.vars;
1146
-
1147
- var thumbWrap = vars.slider.find('.jm-slide-thumbs-wrap');
1148
- if(!thumbWrap.length){
1149
- return false;
1150
- }
1151
-
1152
- if (options.thumbType) {
1153
- var thumbMask = thumbWrap.find('.jm-slide-thumbs-mask'),
1154
- thumbBox = thumbWrap.find('.jm-slide-thumbs'),
1155
- thumbItems = thumbBox.find('.jm-slide-thumb'),
1156
- handleBox = thumbWrap.find('.jm-slide-thumbs-handles'),
1157
- handleItems = handleBox.children(),
1158
- spaces = options.thumbSpaces,
1159
- stepOffs = isHorz ? spaces[3] : spaces[0],
1160
- isHorz = (options.thumbDirection == 'horizontal'),
1161
- thumbAnimStyle = isHorz ? 'left' : 'top',
1162
- thumbStep = isHorz ? options.thumbWidth + spaces[1] : options.thumbHeight + spaces[2],
1163
- thumbStartIdx = Math.max(0, Math.min(vars.curIdx - options.thumbItems + 2, vars.total - options.thumbItems));
1164
-
1165
- thumbBox
1166
- .add(handleBox)
1167
- .add(thumbMask)
1168
- .css(isHorz ? 'height' : 'width', isHorz ? options.thumbWidth + spaces[1] + spaces[3] : options.thumbWidth + spaces[1] + spaces[3]);
1169
-
1170
- var itemStyle = {
1171
- 'width': options.thumbWidth,
1172
- 'height': options.thumbHeight,
1173
- 'margin-right': spaces[1],
1174
- 'margin-bottom': spaces[2]
1175
- };
1176
-
1177
- if(isHorz){
1178
- itemStyle['margin-top'] = spaces[0];
1179
- handleItems.eq(0).add(thumbItems.eq(0)).css('margin-left', spaces[3]);
1180
- } else {
1181
- itemStyle['margin-left'] = spaces[3];
1182
- handleItems.eq(0).add(thumbItems.eq(0)).css('margin-top', spaces[0]);
1183
- }
1184
-
1185
- $.each([handleItems, thumbItems], function(){
1186
- $(this).css(itemStyle).removeClass('active').eq(vars.curIdx).addClass('active');
1187
- });
1188
-
1189
- if(vars.slider.hasClass('jm-articles')){
1190
- handleItems.css({
1191
- 'opacity':'0.001',
1192
- 'background':'#FFF'
1193
- });
1194
- }
1195
-
1196
- thumbMask
1197
- .css(isHorz ? 'width' : 'height', 5000)
1198
- .css(thumbAnimStyle, (vars.curIdx - thumbStartIdx) * thumbStep - 2000 + stepOffs);
1199
-
1200
- thumbBox.add(handleBox).css(thumbAnimStyle, -thumbStartIdx * thumbStep);
1201
-
1202
- thumbWrap
1203
- .css(isHorz ? {
1204
- 'width': thumbStep * options.thumbItems + spaces[3] * 2 - spaces[1],
1205
- 'height': options.thumbHeight + spaces[2] + spaces[0]
1206
- } : {
1207
- 'width': options.thumbWidth + spaces[3] + spaces[1],
1208
- 'height': thumbStep * options.thumbItems + spaces[0] * 2 - spaces[2]
1209
- });
1210
-
1211
- this.docking(vars.mainWrap, thumbWrap, options.thumbPosition);
1212
-
1213
- thumbWrap.addClass('jm-thumbs-' + options.thumbPosition);
1214
-
1215
- thumbWrap.find('.jm-slide-thumbs-mask-left, .jm-slide-thumbs-mask-right').css({
1216
- 'width': isHorz ? 2000 : options.thumbWidth + spaces[1] + spaces[3],
1217
- 'height': isHorz ? options.thumbHeight + spaces[0] + spaces[2] : 2000,
1218
- 'opacity': options.thumbOpacity
1219
- });
1220
-
1221
- thumbWrap.find('.jm-slide-thumbs-mask-center').css({
1222
- 'width': options.thumbWidth,
1223
- 'height': options.thumbHeight,
1224
- 'opacity': options.thumbOpacity
1225
- });
1226
-
1227
- for (var i = 0; i < handleItems.length; i++) {
1228
- handleItems.eq(i).bind(options.thumbTrigger, $.proxy(this.prepare, this, true, i));
1229
- }
1230
-
1231
- handleBox.bind('mousewheel', $.proxy(function (e, delta) {
1232
-
1233
- if (delta < 0) {
1234
- this.next(true);
1235
- } else {
1236
- this.prev(true);
1237
- }
1238
-
1239
- return false;
1240
- }, this));
1241
-
1242
- $.extend(vars, {
1243
- thumbStartIdx: thumbStartIdx,
1244
- thumbAnimStyle: thumbAnimStyle,
1245
- thumbStep: thumbStep,
1246
- stepOffs: stepOffs,
1247
- thumbMask: thumbMask,
1248
- thumbBox: thumbBox,
1249
- handleBox: handleBox,
1250
- thumbItems: thumbItems,
1251
- handleItems: handleItems
1252
- });
1253
-
1254
- } else {
1255
- thumbWrap.css('display', 'none');
1256
- }
1257
- },
1258
-
1259
- initControlAction: function () {
1260
- var options = this.options,
1261
- vars = this.vars,
1262
- slider = this.vars.slider,
1263
- controls = ['prev', 'play', 'stop', 'playback', 'next'],
1264
- btnarr;
1265
-
1266
- for (var j = 0, jl = controls.length; j < jl; j++) {
1267
- if(this[controls[j]]){
1268
- btnarr = slider.find('.jm-slide-' + controls[j]);
1269
-
1270
- for (var i = 0, il = btnarr.length; i < il; i++) {
1271
- btnarr.eq(i).bind('click', $.proxy(this[controls[j]], this, true));
1272
- }
1273
- }
1274
- }
1275
-
1276
- var jcontrols = $('.jm-slide-controls');
1277
- if(options.controlBox){
1278
- this.docking(vars.mainWrap, jcontrols, options.controlPosition);
1279
- } else {
1280
- jcontrols.css('display', 'none');
1281
- }
1282
- },
1283
-
1284
- initMainCtrlButton: function(){
1285
- var options = this.options,
1286
- vars = this.vars,
1287
- navBtns = vars.mainWrap.find('.jm-slide-prev, .jm-slide-next');
1288
-
1289
- if(options.navButtons){
1290
-
1291
- if(options.fullsize){
1292
- navBtns.css({
1293
- width: (options.direction == 'horizontal' ? Math.max(vars.rearSize - vars.mainItemSpace / 2, 0) : options.mainWidth),
1294
- height: (options.direction == 'horizontal' ? options.mainHeight : Math.max(0, vars.rearSize - vars.mainItemSpace / 2))
1295
- });
1296
- }
1297
-
1298
- } else {
1299
- navBtns.css('display', 'none');
1300
- }
1301
- },
1302
-
1303
- initMainItemAction: function(){
1304
- var options = this.options;
1305
-
1306
- if (options.urls) {
1307
- var vars = this.vars,
1308
- handle = function(e){
1309
- var index = vars.mainItems.index(this);
1310
-
1311
- if(index == -1){
1312
- index = vars.curIdx;
1313
- }
1314
-
1315
- var url = options.urls[index],
1316
- target = options.targets[index];
1317
-
1318
- if (url) {
1319
- e.preventDefault();
1320
-
1321
- if (target == '_blank'){
1322
- window.open(url, 'JAWindow');
1323
- } else {
1324
- window.location.href = url;
1325
- }
1326
- }
1327
- };
1328
-
1329
- $(vars.mainFrame).add(vars.maskDesc).add(vars.mainItems).bind('click', handle);
1330
- }
1331
- },
1332
-
1333
- initHoverBehavior: function(){
1334
- var vars = this.vars,
1335
- slider = vars.slider,
1336
- controls = ['prev', 'play', 'stop', 'playback', 'next'],
1337
- buttons = $();
1338
-
1339
- for (var j = 0, jl = controls.length; j < jl; j++) {
1340
- buttons = buttons.add(slider.find('.jm-slide-' + controls[j]));
1341
- }
1342
-
1343
- buttons = buttons.add(vars.handleItems);
1344
-
1345
- buttons.bind('mouseenter', function () {
1346
- $(this).addClass('hover');
1347
- }).bind('mouseleave', function () {
1348
- $(this).removeClass('hover');
1349
- });
1350
- },
1351
-
1352
- initProgressBar: function(){
1353
- var options = this.options,
1354
- vars = this.vars,
1355
- progress = vars.slider.find('.jm-slide-progress');
1356
-
1357
- if(!progress.length){
1358
- options.showProgress = false;
1359
-
1360
- return false;
1361
- }
1362
-
1363
- if(options.showProgress){
1364
- $.extend(vars, {
1365
- progress: progress,
1366
- progressWidth: options.mainWidth
1367
- });
1368
- } else {
1369
- progress.css('display', 'none');
1370
- }
1371
- },
1372
-
1373
- initLoader: function(){
1374
- var vars = this.vars,
1375
- loader = vars.slider.find('.jm-slide-loader');
1376
-
1377
- if(!loader){
1378
- return false;
1379
- }
1380
-
1381
- $.extend(vars, {
1382
- loader: loader
1383
- });
1384
- }
1385
- };
1386
-
1387
- $.fn.css3 = function(props) {
1388
- var css = {},
1389
- prefixes = ['moz', 'ms', 'o', 'webkit'];
1390
-
1391
- for(var prop in props) {
1392
- // Add the vendor specific versions
1393
- for(var i=0; i<prefixes.length; i++){
1394
- css['-'+prefixes[i]+'-'+prop] = props[prop];
1395
- }
1396
-
1397
- // Add the actual version
1398
- css[prop] = props[prop];
1399
- }
1400
-
1401
- return this.css(css);
1402
- };
1403
-
1404
- $.fn.jaslider = function(options){
1405
- return this.each(function(){
1406
- var cslider = new jaslider(this, options);
1407
- $(document).ready(function() {
1408
- var slider = cslider.element,
1409
- vars = cslider.vars;
1410
- mainWrap = slider.find('.jm-slide-main-wrap'),
1411
- mainFrame = slider.find('.jm-slide-main'),
1412
- mainItems = slider.find('.jm-slide-item');
1413
- slidewraper = slider.parents("#ja-mass-top-sticky-wrapper");
1414
- maskdesc = slider.find(".jm-mask-desc");
1415
- mainImages = slider.find('.jm-slide-item img');
1416
- mainImages.css({
1417
- 'width':slider.width()
1418
- });
1419
- maskwidth = maskdesc.width();
1420
- maskheight = maskdesc.height();
1421
- masktop = maskdesc.css("margin-top");
1422
- maskleft = maskdesc.css("left");
1423
- $(window).resize(function() {
1424
-
1425
- ratio = Math.min(options.mainWidth, slider.width()) / options.mainWidth;
1426
-
1427
-
1428
- var newheight = options.mainHeight*ratio;
1429
- slidewraper.css({
1430
- 'height':newheight
1431
- });
1432
- maskdesc.css({
1433
- 'width':parseInt(maskwidth)*ratio,
1434
- 'height':parseInt(maskheight)*ratio,
1435
- "margin-top":parseInt(masktop)*ratio,
1436
- });
1437
- mainWrap.css({
1438
- 'height': newheight,
1439
- 'width':slider.width()
1440
- });
1441
- mainItems.css({
1442
- 'height': newheight,
1443
- 'width':slider.width()
1444
- });
1445
- mainImages.css({
1446
- 'height': newheight,
1447
- 'width':slider.width()
1448
- });
1449
-
1450
- isHorz = (cslider.options.direction == 'horizontal');
1451
- idx = vars.curIdx;
1452
- var mainItem = mainItems.eq(0),
1453
- newitemsize = isHorz ? mainItem.outerWidth(true) : mainItem.outerHeight(true);
1454
- cslider.vars.size = newitemsize;
1455
- if(parseInt(mainFrame.css(vars.modes[0])) < 0){
1456
- mainFrame.css(vars.modes[0],-idx * newitemsize + vars.offset)
1457
- }
1458
- });
1459
-
1460
- $(window).trigger("resize");
1461
- });
1462
- });
1463
- };
1464
-
1465
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/frontend/default/default/joomlart/jmslideshow/js/jquery-ui/jquery-1.3.2.js DELETED
@@ -1,4376 +0,0 @@
1
- /*!
2
- * jQuery JavaScript Library v1.3.2
3
- * http://jquery.com/
4
- *
5
- * Copyright (c) 2009 John Resig
6
- * Dual licensed under the MIT and GPL licenses.
7
- * http://docs.jquery.com/License
8
- *
9
- * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
10
- * Revision: 6246
11
- */
12
- (function(){
13
-
14
- var
15
- // Will speed up references to window, and allows munging its name.
16
- window = this,
17
- // Will speed up references to undefined, and allows munging its name.
18
- undefined,
19
- // Map over jQuery in case of overwrite
20
- _jQuery = window.jQuery,
21
- // Map over the $ in case of overwrite
22
- _$ = window.$,
23
-
24
- jQuery = window.jQuery = window.$ = function( selector, context ) {
25
- // The jQuery object is actually just the init constructor 'enhanced'
26
- return new jQuery.fn.init( selector, context );
27
- },
28
-
29
- // A simple way to check for HTML strings or ID strings
30
- // (both of which we optimize for)
31
- quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
32
- // Is it a simple selector
33
- isSimple = /^.[^:#\[\.,]*$/;
34
-
35
- jQuery.fn = jQuery.prototype = {
36
- init: function( selector, context ) {
37
- // Make sure that a selection was provided
38
- selector = selector || document;
39
-
40
- // Handle $(DOMElement)
41
- if ( selector.nodeType ) {
42
- this[0] = selector;
43
- this.length = 1;
44
- this.context = selector;
45
- return this;
46
- }
47
- // Handle HTML strings
48
- if ( typeof selector === "string" ) {
49
- // Are we dealing with HTML string or an ID?
50
- var match = quickExpr.exec( selector );
51
-
52
- // Verify a match, and that no context was specified for #id
53
- if ( match && (match[1] || !context) ) {
54
-
55
- // HANDLE: $(html) -> $(array)
56
- if ( match[1] )
57
- selector = jQuery.clean( [ match[1] ], context );
58
-
59
- // HANDLE: $("#id")
60
- else {
61
- var elem = document.getElementById( match[3] );
62
-
63
- // Handle the case where IE and Opera return items
64
- // by name instead of ID
65
- if ( elem && elem.id != match[3] )
66
- return jQuery().find( selector );
67
-
68
- // Otherwise, we inject the element directly into the jQuery object
69
- var ret = jQuery( elem || [] );
70
- ret.context = document;
71
- ret.selector = selector;
72
- return ret;
73
- }
74
-
75
- // HANDLE: $(expr, [context])
76
- // (which is just equivalent to: $(content).find(expr)
77
- } else
78
- return jQuery( context ).find( selector );
79
-
80
- // HANDLE: $(function)
81
- // Shortcut for document ready
82
- } else if ( jQuery.isFunction( selector ) )
83
- return jQuery( document ).ready( selector );
84
-
85
- // Make sure that old selector state is passed along
86
- if ( selector.selector && selector.context ) {
87
- this.selector = selector.selector;
88
- this.context = selector.context;
89
- }
90
-
91
- return this.setArray(jQuery.isArray( selector ) ?
92
- selector :
93
- jQuery.makeArray(selector));
94
- },
95
-
96
- // Start with an empty selector
97
- selector: "",
98
-
99
- // The current version of jQuery being used
100
- jquery: "1.3.2",
101
-
102
- // The number of elements contained in the matched element set
103
- size: function() {
104
- return this.length;
105
- },
106
-
107
- // Get the Nth element in the matched element set OR
108
- // Get the whole matched element set as a clean array
109
- get: function( num ) {
110
- return num === undefined ?
111
-
112
- // Return a 'clean' array
113
- Array.prototype.slice.call( this ) :
114
-
115
- // Return just the object
116
- this[ num ];
117
- },
118
-
119
- // Take an array of elements and push it onto the stack
120
- // (returning the new matched element set)
121
- pushStack: function( elems, name, selector ) {
122
- // Build a new jQuery matched element set
123
- var ret = jQuery( elems );
124
-
125
- // Add the old object onto the stack (as a reference)
126
- ret.prevObject = this;
127
-
128
- ret.context = this.context;
129
-
130
- if ( name === "find" )
131
- ret.selector = this.selector + (this.selector ? " " : "") + selector;
132
- else if ( name )
133
- ret.selector = this.selector + "." + name + "(" + selector + ")";
134
-
135
- // Return the newly-formed element set
136
- return ret;
137
- },
138
-
139
- // Force the current matched set of elements to become
140
- // the specified array of elements (destroying the stack in the process)
141
- // You should use pushStack() in order to do this, but maintain the stack
142
- setArray: function( elems ) {
143
- // Resetting the length to 0, then using the native Array push
144
- // is a super-fast way to populate an object with array-like properties
145
- this.length = 0;
146
- Array.prototype.push.apply( this, elems );
147
-
148
- return this;
149
- },
150
-
151
- // Execute a callback for every element in the matched set.
152
- // (You can seed the arguments with an array of args, but this is
153
- // only used internally.)
154
- each: function( callback, args ) {
155
- return jQuery.each( this, callback, args );
156
- },
157
-
158
- // Determine the position of an element within
159
- // the matched set of elements
160
- index: function( elem ) {
161
- // Locate the position of the desired element
162
- return jQuery.inArray(
163
- // If it receives a jQuery object, the first element is used
164
- elem && elem.jquery ? elem[0] : elem
165
- , this );
166
- },
167
-
168
- attr: function( name, value, type ) {
169
- var options = name;
170
-
171
- // Look for the case where we're accessing a style value
172
- if ( typeof name === "string" )
173
- if ( value === undefined )
174
- return this[0] && jQuery[ type || "attr" ]( this[0], name );
175
-
176
- else {
177
- options = {};
178
- options[ name ] = value;
179
- }
180
-
181
- // Check to see if we're setting style values
182
- return this.each(function(i){
183
- // Set all the styles
184
- for ( name in options )
185
- jQuery.attr(
186
- type ?
187
- this.style :
188
- this,
189
- name, jQuery.prop( this, options[ name ], type, i, name )
190
- );
191
- });
192
- },
193
-
194
- css: function( key, value ) {
195
- // ignore negative width and height values
196
- if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )
197
- value = undefined;
198
- return this.attr( key, value, "curCSS" );
199
- },
200
-
201
- text: function( text ) {
202
- if ( typeof text !== "object" && text != null )
203
- return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
204
-
205
- var ret = "";
206
-
207
- jQuery.each( text || this, function(){
208
- jQuery.each( this.childNodes, function(){
209
- if ( this.nodeType != 8 )
210
- ret += this.nodeType != 1 ?
211
- this.nodeValue :
212
- jQuery.fn.text( [ this ] );
213
- });
214
- });
215
-
216
- return ret;
217
- },
218
-
219
- wrapAll: function( html ) {
220
- if ( this[0] ) {
221
- // The elements to wrap the target around
222
- var wrap = jQuery( html, this[0].ownerDocument ).clone();
223
-
224
- if ( this[0].parentNode )
225
- wrap.insertBefore( this[0] );
226
-
227
- wrap.map(function(){
228
- var elem = this;
229
-
230
- while ( elem.firstChild )
231
- elem = elem.firstChild;
232
-
233
- return elem;
234
- }).append(this);
235
- }
236
-
237
- return this;
238
- },
239
-
240
- wrapInner: function( html ) {
241
- return this.each(function(){
242
- jQuery( this ).contents().wrapAll( html );
243
- });
244
- },
245
-
246
- wrap: function( html ) {
247
- return this.each(function(){
248
- jQuery( this ).wrapAll( html );
249
- });
250
- },
251
-
252
- append: function() {
253
- return this.domManip(arguments, true, function(elem){
254
- if (this.nodeType == 1)
255
- this.appendChild( elem );
256
- });
257
- },
258
-
259
- prepend: function() {
260
- return this.domManip(arguments, true, function(elem){
261
- if (this.nodeType == 1)
262
- this.insertBefore( elem, this.firstChild );
263
- });
264
- },
265
-
266
- before: function() {
267
- return this.domManip(arguments, false, function(elem){
268
- this.parentNode.insertBefore( elem, this );
269
- });
270
- },
271
-
272
- after: function() {
273
- return this.domManip(arguments, false, function(elem){
274
- this.parentNode.insertBefore( elem, this.nextSibling );
275
- });
276
- },
277
-
278
- end: function() {
279
- return this.prevObject || jQuery( [] );
280
- },
281
-
282
- // For internal use only.
283
- // Behaves like an Array's method, not like a jQuery method.
284
- push: [].push,
285
- sort: [].sort,
286
- splice: [].splice,
287
-
288
- find: function( selector ) {
289
- if ( this.length === 1 ) {
290
- var ret = this.pushStack( [], "find", selector );
291
- ret.length = 0;
292
- jQuery.find( selector, this[0], ret );
293
- return ret;
294
- } else {
295
- return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){
296
- return jQuery.find( selector, elem );
297
- })), "find", selector );
298
- }
299
- },
300
-
301
- clone: function( events ) {
302
- // Do the clone
303
- var ret = this.map(function(){
304
- if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
305
- // IE copies events bound via attachEvent when
306
- // using cloneNode. Calling detachEvent on the
307
- // clone will also remove the events from the orignal
308
- // In order to get around this, we use innerHTML.
309
- // Unfortunately, this means some modifications to
310
- // attributes in IE that are actually only stored
311
- // as properties will not be copied (such as the
312
- // the name attribute on an input).
313
- var html = this.outerHTML;
314
- if ( !html ) {
315
- var div = this.ownerDocument.createElement("div");
316
- div.appendChild( this.cloneNode(true) );
317
- html = div.innerHTML;
318
- }
319
-
320
- return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0];
321
- } else
322
- return this.cloneNode(true);
323
- });
324
-
325
- // Copy the events from the original to the clone
326
- if ( events === true ) {
327
- var orig = this.find("*").andSelf(), i = 0;
328
-
329
- ret.find("*").andSelf().each(function(){
330
- if ( this.nodeName !== orig[i].nodeName )
331
- return;
332
-
333
- var events = jQuery.data( orig[i], "events" );
334
-
335
- for ( var type in events ) {
336
- for ( var handler in events[ type ] ) {
337
- jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data );
338
- }
339
- }
340
-
341
- i++;
342
- });
343
- }
344
-
345
- // Return the cloned set
346
- return ret;
347
- },
348
-
349
- filter: function( selector ) {
350
- return this.pushStack(
351
- jQuery.isFunction( selector ) &&
352
- jQuery.grep(this, function(elem, i){
353
- return selector.call( elem, i );
354
- }) ||
355
-
356
- jQuery.multiFilter( selector, jQuery.grep(this, function(elem){
357
- return elem.nodeType === 1;
358
- }) ), "filter", selector );
359
- },
360
-
361
- closest: function( selector ) {
362
- var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null,
363
- closer = 0;
364
-
365
- return this.map(function(){
366
- var cur = this;
367
- while ( cur && cur.ownerDocument ) {
368
- if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) {
369
- jQuery.data(cur, "closest", closer);
370
- return cur;
371
- }
372
- cur = cur.parentNode;
373
- closer++;
374
- }
375
- });
376
- },
377
-
378
- not: function( selector ) {
379
- if ( typeof selector === "string" )
380
- // test special case where just one selector is passed in
381
- if ( isSimple.test( selector ) )
382
- return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector );
383
- else
384
- selector = jQuery.multiFilter( selector, this );
385
-
386
- var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
387
- return this.filter(function() {
388
- return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;
389
- });
390
- },
391
-
392
- add: function( selector ) {
393
- return this.pushStack( jQuery.unique( jQuery.merge(
394
- this.get(),
395
- typeof selector === "string" ?
396
- jQuery( selector ) :
397
- jQuery.makeArray( selector )
398
- )));
399
- },
400
-
401
- is: function( selector ) {
402
- return !!selector && jQuery.multiFilter( selector, this ).length > 0;
403
- },
404
-
405
- hasClass: function( selector ) {
406
- return !!selector && this.is( "." + selector );
407
- },
408
-
409
- val: function( value ) {
410
- if ( value === undefined ) {
411
- var elem = this[0];
412
-
413
- if ( elem ) {
414
- if( jQuery.nodeName( elem, 'option' ) )
415
- return (elem.attributes.value || {}).specified ? elem.value : elem.text;
416
-
417
- // We need to handle select boxes special
418
- if ( jQuery.nodeName( elem, "select" ) ) {
419
- var index = elem.selectedIndex,
420
- values = [],
421
- options = elem.options,
422
- one = elem.type == "select-one";
423
-
424
- // Nothing was selected
425
- if ( index < 0 )
426
- return null;
427
-
428
- // Loop through all the selected options
429
- for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
430
- var option = options[ i ];
431
-
432
- if ( option.selected ) {
433
- // Get the specifc value for the option
434
- value = jQuery(option).val();
435
-
436
- // We don't need an array for one selects
437
- if ( one )
438
- return value;
439
-
440
- // Multi-Selects return an array
441
- values.push( value );
442
- }
443
- }
444
-
445
- return values;
446
- }
447
-
448
- // Everything else, we just grab the value
449
- return (elem.value || "").replace(/\r/g, "");
450
-
451
- }
452
-
453
- return undefined;
454
- }
455
-
456
- if ( typeof value === "number" )
457
- value += '';
458
-
459
- return this.each(function(){
460
- if ( this.nodeType != 1 )
461
- return;
462
-
463
- if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) )
464
- this.checked = (jQuery.inArray(this.value, value) >= 0 ||
465
- jQuery.inArray(this.name, value) >= 0);
466
-
467
- else if ( jQuery.nodeName( this, "select" ) ) {
468
- var values = jQuery.makeArray(value);
469
-
470
- jQuery( "option", this ).each(function(){
471
- this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
472
- jQuery.inArray( this.text, values ) >= 0);
473
- });
474
-
475
- if ( !values.length )
476
- this.selectedIndex = -1;
477
-
478
- } else
479
- this.value = value;
480
- });
481
- },
482
-
483
- html: function( value ) {
484
- return value === undefined ?
485
- (this[0] ?
486
- this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") :
487
- null) :
488
- this.empty().append( value );
489
- },
490
-
491
- replaceWith: function( value ) {
492
- return this.after( value ).remove();
493
- },
494
-
495
- eq: function( i ) {
496
- return this.slice( i, +i + 1 );
497
- },
498
-
499
- slice: function() {
500
- return this.pushStack( Array.prototype.slice.apply( this, arguments ),
501
- "slice", Array.prototype.slice.call(arguments).join(",") );
502
- },
503
-
504
- map: function( callback ) {
505
- return this.pushStack( jQuery.map(this, function(elem, i){
506
- return callback.call( elem, i, elem );
507
- }));
508
- },
509
-
510
- andSelf: function() {
511
- return this.add( this.prevObject );
512
- },
513
-
514
- domManip: function( args, table, callback ) {
515
- if ( this[0] ) {
516
- var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(),
517
- scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ),
518
- first = fragment.firstChild;
519
-
520
- if ( first )
521
- for ( var i = 0, l = this.length; i < l; i++ )
522
- callback.call( root(this[i], first), this.length > 1 || i > 0 ?
523
- fragment.cloneNode(true) : fragment );
524
-
525
- if ( scripts )
526
- jQuery.each( scripts, evalScript );
527
- }
528
-
529
- return this;
530
-
531
- function root( elem, cur ) {
532
- return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ?
533
- (elem.getElementsByTagName("tbody")[0] ||
534
- elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
535
- elem;
536
- }
537
- }
538
- };
539
-
540
- // Give the init function the jQuery prototype for later instantiation
541
- jQuery.fn.init.prototype = jQuery.fn;
542
-
543
- function evalScript( i, elem ) {
544
- if ( elem.src )
545
- jQuery.ajax({
546
- url: elem.src,
547
- async: false,
548
- dataType: "script"
549
- });
550
-
551
- else
552
- jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
553
-
554
- if ( elem.parentNode )
555
- elem.parentNode.removeChild( elem );
556
- }
557
-
558
- function now(){
559
- return +new Date;
560
- }
561
-
562
- jQuery.extend = jQuery.fn.extend = function() {
563
- // copy reference to target object
564
- var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;
565
-
566
- // Handle a deep copy situation
567
- if ( typeof target === "boolean" ) {
568
- deep = target;
569
- target = arguments[1] || {};
570
- // skip the boolean and the target
571
- i = 2;
572
- }
573
-
574
- // Handle case when target is a string or something (possible in deep copy)
575
- if ( typeof target !== "object" && !jQuery.isFunction(target) )
576
- target = {};
577
-
578
- // extend jQuery itself if only one argument is passed
579
- if ( length == i ) {
580
- target = this;
581
- --i;
582
- }
583
-
584
- for ( ; i < length; i++ )
585
- // Only deal with non-null/undefined values
586
- if ( (options = arguments[ i ]) != null )
587
- // Extend the base object
588
- for ( var name in options ) {
589
- var src = target[ name ], copy = options[ name ];
590
-
591
- // Prevent never-ending loop
592
- if ( target === copy )
593
- continue;
594
-
595
- // Recurse if we're merging object values
596
- if ( deep && copy && typeof copy === "object" && !copy.nodeType )
597
- target[ name ] = jQuery.extend( deep,
598
- // Never move original objects, clone them
599
- src || ( copy.length != null ? [ ] : { } )
600
- , copy );
601
-
602
- // Don't bring in undefined values
603
- else if ( copy !== undefined )
604
- target[ name ] = copy;
605
-
606
- }
607
-
608
- // Return the modified object
609
- return target;
610
- };
611
-
612
- // exclude the following css properties to add px
613
- var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
614
- // cache defaultView
615
- defaultView = document.defaultView || {},
616
- toString = Object.prototype.toString;
617
-
618
- jQuery.extend({
619
- noConflict: function( deep ) {
620
- window.$ = _$;
621
-
622
- if ( deep )
623
- window.jQuery = _jQuery;
624
-
625
- return jQuery;
626
- },
627
-
628
- // See test/unit/core.js for details concerning isFunction.
629
- // Since version 1.3, DOM methods and functions like alert
630
- // aren't supported. They return false on IE (#2968).
631
- isFunction: function( obj ) {
632
- return toString.call(obj) === "[object Function]";
633
- },
634
-
635
- isArray: function( obj ) {
636
- return toString.call(obj) === "[object Array]";
637
- },
638
-
639
- // check if an element is in a (or is an) XML document
640
- isXMLDoc: function( elem ) {
641
- return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
642
- !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument );
643
- },
644
-
645
- // Evalulates a script in a global context
646
- globalEval: function( data ) {
647
- if ( data && /\S/.test(data) ) {
648
- // Inspired by code by Andrea Giammarchi
649
- // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
650
- var head = document.getElementsByTagName("head")[0] || document.documentElement,
651
- script = document.createElement("script");
652
-
653
- script.type = "text/javascript";
654
- if ( jQuery.support.scriptEval )
655
- script.appendChild( document.createTextNode( data ) );
656
- else
657
- script.text = data;
658
-
659
- // Use insertBefore instead of appendChild to circumvent an IE6 bug.
660
- // This arises when a base node is used (#2709).
661
- head.insertBefore( script, head.firstChild );
662
- head.removeChild( script );
663
- }
664
- },
665
-
666
- nodeName: function( elem, name ) {
667
- return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
668
- },
669
-
670
- // args is for internal usage only
671
- each: function( object, callback, args ) {
672
- var name, i = 0, length = object.length;
673
-
674
- if ( args ) {
675
- if ( length === undefined ) {
676
- for ( name in object )
677
- if ( callback.apply( object[ name ], args ) === false )
678
- break;
679
- } else
680
- for ( ; i < length; )
681
- if ( callback.apply( object[ i++ ], args ) === false )
682
- break;
683
-
684
- // A special, fast, case for the most common use of each
685
- } else {
686
- if ( length === undefined ) {
687
- for ( name in object )
688
- if ( callback.call( object[ name ], name, object[ name ] ) === false )
689
- break;
690
- } else
691
- for ( var value = object[0];
692
- i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
693
- }
694
-
695
- return object;
696
- },
697
-
698
- prop: function( elem, value, type, i, name ) {
699
- // Handle executable functions
700
- if ( jQuery.isFunction( value ) )
701
- value = value.call( elem, i );
702
-
703
- // Handle passing in a number to a CSS property
704
- return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ?
705
- value + "px" :
706
- value;
707
- },
708
-
709
- className: {
710
- // internal only, use addClass("class")
711
- add: function( elem, classNames ) {
712
- jQuery.each((classNames || "").split(/\s+/), function(i, className){
713
- if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) )
714
- elem.className += (elem.className ? " " : "") + className;
715
- });
716
- },
717
-
718
- // internal only, use removeClass("class")
719
- remove: function( elem, classNames ) {
720
- if (elem.nodeType == 1)
721
- elem.className = classNames !== undefined ?
722
- jQuery.grep(elem.className.split(/\s+/), function(className){
723
- return !jQuery.className.has( classNames, className );
724
- }).join(" ") :
725
- "";
726
- },
727
-
728
- // internal only, use hasClass("class")
729
- has: function( elem, className ) {
730
- return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
731
- }
732
- },
733
-
734
- // A method for quickly swapping in/out CSS properties to get correct calculations
735
- swap: function( elem, options, callback ) {
736
- var old = {};
737
- // Remember the old values, and insert the new ones
738
- for ( var name in options ) {
739
- old[ name ] = elem.style[ name ];
740
- elem.style[ name ] = options[ name ];
741
- }
742
-
743
- callback.call( elem );
744
-
745
- // Revert the old values
746
- for ( var name in options )
747
- elem.style[ name ] = old[ name ];
748
- },
749
-
750
- css: function( elem, name, force, extra ) {
751
- if ( name == "width" || name == "height" ) {
752
- var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ];
753
-
754
- function getWH() {
755
- val = name == "width" ? elem.offsetWidth : elem.offsetHeight;
756
-
757
- if ( extra === "border" )
758
- return;
759
-
760
- jQuery.each( which, function() {
761
- if ( !extra )
762
- val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
763
- if ( extra === "margin" )
764
- val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0;
765
- else
766
- val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
767
- });
768
- }
769
-
770
- if ( elem.offsetWidth !== 0 )
771
- getWH();
772
- else
773
- jQuery.swap( elem, props, getWH );
774
-
775
- return Math.max(0, Math.round(val));
776
- }
777
-
778
- return jQuery.curCSS( elem, name, force );
779
- },
780
-
781
- curCSS: function( elem, name, force ) {
782
- var ret, style = elem.style;
783
-
784
- // We need to handle opacity special in IE
785
- if ( name == "opacity" && !jQuery.support.opacity ) {
786
- ret = jQuery.attr( style, "opacity" );
787
-
788
- return ret == "" ?
789
- "1" :
790
- ret;
791
- }
792
-
793
- // Make sure we're using the right name for getting the float value
794
- if ( name.match( /float/i ) )
795
- name = styleFloat;
796
-
797
- if ( !force && style && style[ name ] )
798
- ret = style[ name ];
799
-
800
- else if ( defaultView.getComputedStyle ) {
801
-
802
- // Only "float" is needed here
803
- if ( name.match( /float/i ) )
804
- name = "float";
805
-
806
- name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();
807
-
808
- var computedStyle = defaultView.getComputedStyle( elem, null );
809
-
810
- if ( computedStyle )
811
- ret = computedStyle.getPropertyValue( name );
812
-
813
- // We should always get a number back from opacity
814
- if ( name == "opacity" && ret == "" )
815
- ret = "1";
816
-
817
- } else if ( elem.currentStyle ) {
818
- var camelCase = name.replace(/\-(\w)/g, function(all, letter){
819
- return letter.toUpperCase();
820
- });
821
-
822
- ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
823
-
824
- // From the awesome hack by Dean Edwards
825
- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
826
-
827
- // If we're not dealing with a regular pixel number
828
- // but a number that has a weird ending, we need to convert it to pixels
829
- if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {
830
- // Remember the original values
831
- var left = style.left, rsLeft = elem.runtimeStyle.left;
832
-
833
- // Put in the new values to get a computed value out
834
- elem.runtimeStyle.left = elem.currentStyle.left;
835
- style.left = ret || 0;
836
- ret = style.pixelLeft + "px";
837
-
838
- // Revert the changed values
839
- style.left = left;
840
- elem.runtimeStyle.left = rsLeft;
841
- }
842
- }
843
-
844
- return ret;
845
- },
846
-
847
- clean: function( elems, context, fragment ) {
848
- context = context || document;
849
-
850
- // !context.createElement fails in IE with an error but returns typeof 'object'
851
- if ( typeof context.createElement === "undefined" )
852
- context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
853
-
854
- // If a single string is passed in and it's a single tag
855
- // just do a createElement and skip the rest
856
- if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) {
857
- var match = /^<(\w+)\s*\/?>$/.exec(elems[0]);
858
- if ( match )
859
- return [ context.createElement( match[1] ) ];
860
- }
861
-
862
- var ret = [], scripts = [], div = context.createElement("div");
863
-
864
- jQuery.each(elems, function(i, elem){
865
- if ( typeof elem === "number" )
866
- elem += '';
867
-
868
- if ( !elem )
869
- return;
870
-
871
- // Convert html string into DOM nodes
872
- if ( typeof elem === "string" ) {
873
- // Fix "XHTML"-style tags in all browsers
874
- elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
875
- return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
876
- all :
877
- front + "></" + tag + ">";
878
- });
879
-
880
- // Trim whitespace, otherwise indexOf won't work as expected
881
- var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase();
882
-
883
- var wrap =
884
- // option or optgroup
885
- !tags.indexOf("<opt") &&
886
- [ 1, "<select multiple='multiple'>", "</select>" ] ||
887
-
888
- !tags.indexOf("<leg") &&
889
- [ 1, "<fieldset>", "</fieldset>" ] ||
890
-
891
- tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
892
- [ 1, "<table>", "</table>" ] ||
893
-
894
- !tags.indexOf("<tr") &&
895
- [ 2, "<table><tbody>", "</tbody></table>" ] ||
896
-
897
- // <thead> matched above
898
- (!tags.indexOf("<td") || !tags.indexOf("<th")) &&
899
- [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||
900
-
901
- !tags.indexOf("<col") &&
902
- [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||
903
-
904
- // IE can't serialize <link> and <script> tags normally
905
- !jQuery.support.htmlSerialize &&
906
- [ 1, "div<div>", "</div>" ] ||
907
-
908
- [ 0, "", "" ];
909
-
910
- // Go to html and back, then peel off extra wrappers
911
- div.innerHTML = wrap[1] + elem + wrap[2];
912
-
913
- // Move to the right depth
914
- while ( wrap[0]-- )
915
- div = div.lastChild;
916
-
917
- // Remove IE's autoinserted <tbody> from table fragments
918
- if ( !jQuery.support.tbody ) {
919
-
920
- // String was a <table>, *may* have spurious <tbody>
921
- var hasBody = /<tbody/i.test(elem),
922
- tbody = !tags.indexOf("<table") && !hasBody ?
923
- div.firstChild && div.firstChild.childNodes :
924
-
925
- // String was a bare <thead> or <tfoot>
926
- wrap[1] == "<table>" && !hasBody ?
927
- div.childNodes :
928
- [];
929
-
930
- for ( var j = tbody.length - 1; j >= 0 ; --j )
931
- if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length )
932
- tbody[ j ].parentNode.removeChild( tbody[ j ] );
933
-
934
- }
935
-
936
- // IE completely kills leading whitespace when innerHTML is used
937
- if ( !jQuery.support.leadingWhitespace && /^\s/.test( elem ) )
938
- div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );
939
-
940
- elem = jQuery.makeArray( div.childNodes );
941
- }
942
-
943
- if ( elem.nodeType )
944
- ret.push( elem );
945
- else
946
- ret = jQuery.merge( ret, elem );
947
-
948
- });
949
-
950
- if ( fragment ) {
951
- for ( var i = 0; ret[i]; i++ ) {
952
- if ( jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
953
- scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
954
- } else {
955
- if ( ret[i].nodeType === 1 )
956
- ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) );
957
- fragment.appendChild( ret[i] );
958
- }
959
- }
960
-
961
- return scripts;
962
- }
963
-
964
- return ret;
965
- },
966
-
967
- attr: function( elem, name, value ) {
968
- // don't set attributes on text and comment nodes
969
- if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
970
- return undefined;
971
-
972
- var notxml = !jQuery.isXMLDoc( elem ),
973
- // Whether we are setting (or getting)
974
- set = value !== undefined;
975
-
976
- // Try to normalize/fix the name
977
- name = notxml && jQuery.props[ name ] || name;
978
-
979
- // Only do all the following if this is a node (faster for style)
980
- // IE elem.getAttribute passes even for style
981
- if ( elem.tagName ) {
982
-
983
- // These attributes require special treatment
984
- var special = /href|src|style/.test( name );
985
-
986
- // Safari mis-reports the default selected property of a hidden option
987
- // Accessing the parent's selectedIndex property fixes it
988
- if ( name == "selected" && elem.parentNode )
989
- elem.parentNode.selectedIndex;
990
-
991
- // If applicable, access the attribute via the DOM 0 way
992
- if ( name in elem && notxml && !special ) {
993
- if ( set ){
994
- // We can't allow the type property to be changed (since it causes problems in IE)
995
- if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )
996
- throw "type property can't be changed";
997
-
998
- elem[ name ] = value;
999
- }
1000
-
1001
- // browsers index elements by id/name on forms, give priority to attributes.
1002
- if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )
1003
- return elem.getAttributeNode( name ).nodeValue;
1004
-
1005
- // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
1006
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
1007
- if ( name == "tabIndex" ) {
1008
- var attributeNode = elem.getAttributeNode( "tabIndex" );
1009
- return attributeNode && attributeNode.specified
1010
- ? attributeNode.value
1011
- : elem.nodeName.match(/(button|input|object|select|textarea)/i)
1012
- ? 0
1013
- : elem.nodeName.match(/^(a|area)$/i) && elem.href
1014
- ? 0
1015
- : undefined;
1016
- }
1017
-
1018
- return elem[ name ];
1019
- }
1020
-
1021
- if ( !jQuery.support.style && notxml && name == "style" )
1022
- return jQuery.attr( elem.style, "cssText", value );
1023
-
1024
- if ( set )
1025
- // convert the value to a string (all browsers do this but IE) see #1070
1026
- elem.setAttribute( name, "" + value );
1027
-
1028
- var attr = !jQuery.support.hrefNormalized && notxml && special
1029
- // Some attributes require a special call on IE
1030
- ? elem.getAttribute( name, 2 )
1031
- : elem.getAttribute( name );
1032
-
1033
- // Non-existent attributes return null, we normalize to undefined
1034
- return attr === null ? undefined : attr;
1035
- }
1036
-
1037
- // elem is actually elem.style ... set the style
1038
-
1039
- // IE uses filters for opacity
1040
- if ( !jQuery.support.opacity && name == "opacity" ) {
1041
- if ( set ) {
1042
- // IE has trouble with opacity if it does not have layout
1043
- // Force it by setting the zoom level
1044
- elem.zoom = 1;
1045
-
1046
- // Set the alpha filter to set the opacity
1047
- elem.filter = (elem.filter || "").replace( /alpha\([^)]*\)/, "" ) +
1048
- (parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
1049
- }
1050
-
1051
- return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
1052
- (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
1053
- "";
1054
- }
1055
-
1056
- name = name.replace(/-([a-z])/ig, function(all, letter){
1057
- return letter.toUpperCase();
1058
- });
1059
-
1060
- if ( set )
1061
- elem[ name ] = value;
1062
-
1063
- return elem[ name ];
1064
- },
1065
-
1066
- trim: function( text ) {
1067
- return (text || "").replace( /^\s+|\s+$/g, "" );
1068
- },
1069
-
1070
- makeArray: function( array ) {
1071
- var ret = [];
1072
-
1073
- if( array != null ){
1074
- var i = array.length;
1075
- // The window, strings (and functions) also have 'length'
1076
- if( i == null || typeof array === "string" || jQuery.isFunction(array) || array.setInterval )
1077
- ret[0] = array;
1078
- else
1079
- while( i )
1080
- ret[--i] = array[i];
1081
- }
1082
-
1083
- return ret;
1084
- },
1085
-
1086
- inArray: function( elem, array ) {
1087
- for ( var i = 0, length = array.length; i < length; i++ )
1088
- // Use === because on IE, window == document
1089
- if ( array[ i ] === elem )
1090
- return i;
1091
-
1092
- return -1;
1093
- },
1094
-
1095
- merge: function( first, second ) {
1096
- // We have to loop this way because IE & Opera overwrite the length
1097
- // expando of getElementsByTagName
1098
- var i = 0, elem, pos = first.length;
1099
- // Also, we need to make sure that the correct elements are being returned
1100
- // (IE returns comment nodes in a '*' query)
1101
- if ( !jQuery.support.getAll ) {
1102
- while ( (elem = second[ i++ ]) != null )
1103
- if ( elem.nodeType != 8 )
1104
- first[ pos++ ] = elem;
1105
-
1106
- } else
1107
- while ( (elem = second[ i++ ]) != null )
1108
- first[ pos++ ] = elem;
1109
-
1110
- return first;
1111
- },
1112
-
1113
- unique: function( array ) {
1114
- var ret = [], done = {};
1115
-
1116
- try {
1117
-
1118
- for ( var i = 0, length = array.length; i < length; i++ ) {
1119
- var id = jQuery.data( array[ i ] );
1120
-
1121
- if ( !done[ id ] ) {
1122
- done[ id ] = true;
1123
- ret.push( array[ i ] );
1124
- }
1125
- }
1126
-
1127
- } catch( e ) {
1128
- ret = array;
1129
- }
1130
-
1131
- return ret;
1132
- },
1133
-
1134
- grep: function( elems, callback, inv ) {
1135
- var ret = [];
1136
-
1137
- // Go through the array, only saving the items
1138
- // that pass the validator function
1139
- for ( var i = 0, length = elems.length; i < length; i++ )
1140
- if ( !inv != !callback( elems[ i ], i ) )
1141
- ret.push( elems[ i ] );
1142
-
1143
- return ret;
1144
- },
1145
-
1146
- map: function( elems, callback ) {
1147
- var ret = [];
1148
-
1149
- // Go through the array, translating each of the items to their
1150
- // new value (or values).
1151
- for ( var i = 0, length = elems.length; i < length; i++ ) {
1152
- var value = callback( elems[ i ], i );
1153
-
1154
- if ( value != null )
1155
- ret[ ret.length ] = value;
1156
- }
1157
-
1158
- return ret.concat.apply( [], ret );
1159
- }
1160
- });
1161
-
1162
- // Use of jQuery.browser is deprecated.
1163
- // It's included for backwards compatibility and plugins,
1164
- // although they should work to migrate away.
1165
-
1166
- var userAgent = navigator.userAgent.toLowerCase();
1167
-
1168
- // Figure out what browser is being used
1169
- jQuery.browser = {
1170
- version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
1171
- safari: /webkit/.test( userAgent ),
1172
- opera: /opera/.test( userAgent ),
1173
- msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
1174
- mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
1175
- };
1176
-
1177
- jQuery.each({
1178
- parent: function(elem){return elem.parentNode;},
1179
- parents: function(elem){return jQuery.dir(elem,"parentNode");},
1180
- next: function(elem){return jQuery.nth(elem,2,"nextSibling");},
1181
- prev: function(elem){return jQuery.nth(elem,2,"previousSibling");},
1182
- nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
1183
- prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
1184
- siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
1185
- children: function(elem){return jQuery.sibling(elem.firstChild);},
1186
- contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
1187
- }, function(name, fn){
1188
- jQuery.fn[ name ] = function( selector ) {
1189
- var ret = jQuery.map( this, fn );
1190
-
1191
- if ( selector && typeof selector == "string" )
1192
- ret = jQuery.multiFilter( selector, ret );
1193
-
1194
- return this.pushStack( jQuery.unique( ret ), name, selector );
1195
- };
1196
- });
1197
-
1198
- jQuery.each({
1199
- appendTo: "append",
1200
- prependTo: "prepend",
1201
- insertBefore: "before",
1202
- insertAfter: "after",
1203
- replaceAll: "replaceWith"
1204
- }, function(name, original){
1205
- jQuery.fn[ name ] = function( selector ) {
1206
- var ret = [], insert = jQuery( selector );
1207
-
1208
- for ( var i = 0, l = insert.length; i < l; i++ ) {
1209
- var elems = (i > 0 ? this.clone(true) : this).get();
1210
- jQuery.fn[ original ].apply( jQuery(insert[i]), elems );
1211
- ret = ret.concat( elems );
1212
- }
1213
-
1214
- return this.pushStack( ret, name, selector );
1215
- };
1216
- });
1217
-
1218
- jQuery.each({
1219
- removeAttr: function( name ) {
1220
- jQuery.attr( this, name, "" );
1221
- if (this.nodeType == 1)
1222
- this.removeAttribute( name );
1223
- },
1224
-
1225
- addClass: function( classNames ) {
1226
- jQuery.className.add( this, classNames );
1227
- },
1228
-
1229
- removeClass: function( classNames ) {
1230
- jQuery.className.remove( this, classNames );
1231
- },
1232
-
1233
- toggleClass: function( classNames, state ) {
1234
- if( typeof state !== "boolean" )
1235
- state = !jQuery.className.has( this, classNames );
1236
- jQuery.className[ state ? "add" : "remove" ]( this, classNames );
1237
- },
1238
-
1239
- remove: function( selector ) {
1240
- if ( !selector || jQuery.filter( selector, [ this ] ).length ) {
1241
- // Prevent memory leaks
1242
- jQuery( "*", this ).add([this]).each(function(){
1243
- jQuery.event.remove(this);
1244
- jQuery.removeData(this);
1245
- });
1246
- if (this.parentNode)
1247
- this.parentNode.removeChild( this );
1248
- }
1249
- },
1250
-
1251
- empty: function() {
1252
- // Remove element nodes and prevent memory leaks
1253
- jQuery(this).children().remove();
1254
-
1255
- // Remove any remaining nodes
1256
- while ( this.firstChild )
1257
- this.removeChild( this.firstChild );
1258
- }
1259
- }, function(name, fn){
1260
- jQuery.fn[ name ] = function(){
1261
- return this.each( fn, arguments );
1262
- };
1263
- });
1264
-
1265
- // Helper function used by the dimensions and offset modules
1266
- function num(elem, prop) {
1267
- return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
1268
- }
1269
- var expando = "jQuery" + now(), uuid = 0, windowData = {};
1270
-
1271
- jQuery.extend({
1272
- cache: {},
1273
-
1274
- data: function( elem, name, data ) {
1275
- elem = elem == window ?
1276
- windowData :
1277
- elem;
1278
-
1279
- var id = elem[ expando ];
1280
-
1281
- // Compute a unique ID for the element
1282
- if ( !id )
1283
- id = elem[ expando ] = ++uuid;
1284
-
1285
- // Only generate the data cache if we're
1286
- // trying to access or manipulate it
1287
- if ( name && !jQuery.cache[ id ] )
1288
- jQuery.cache[ id ] = {};
1289
-
1290
- // Prevent overriding the named cache with undefined values
1291
- if ( data !== undefined )
1292
- jQuery.cache[ id ][ name ] = data;
1293
-
1294
- // Return the named cache data, or the ID for the element
1295
- return name ?
1296
- jQuery.cache[ id ][ name ] :
1297
- id;
1298
- },
1299
-
1300
- removeData: function( elem, name ) {
1301
- elem = elem == window ?
1302
- windowData :
1303
- elem;
1304
-
1305
- var id = elem[ expando ];
1306
-
1307
- // If we want to remove a specific section of the element's data
1308
- if ( name ) {
1309
- if ( jQuery.cache[ id ] ) {
1310
- // Remove the section of cache data
1311
- delete jQuery.cache[ id ][ name ];
1312
-
1313
- // If we've removed all the data, remove the element's cache
1314
- name = "";
1315
-
1316
- for ( name in jQuery.cache[ id ] )
1317
- break;
1318
-
1319
- if ( !name )
1320
- jQuery.removeData( elem );
1321
- }
1322
-
1323
- // Otherwise, we want to remove all of the element's data
1324
- } else {
1325
- // Clean up the element expando
1326
- try {
1327
- delete elem[ expando ];
1328
- } catch(e){
1329
- // IE has trouble directly removing the expando
1330
- // but it's ok with using removeAttribute
1331
- if ( elem.removeAttribute )
1332
- elem.removeAttribute( expando );
1333
- }
1334
-
1335
- // Completely remove the data cache
1336
- delete jQuery.cache[ id ];
1337
- }
1338
- },
1339
- queue: function( elem, type, data ) {
1340
- if ( elem ){
1341
-
1342
- type = (type || "fx") + "queue";
1343
-
1344
- var q = jQuery.data( elem, type );
1345
-
1346
- if ( !q || jQuery.isArray(data) )
1347
- q = jQuery.data( elem, type, jQuery.makeArray(data) );
1348
- else if( data )
1349
- q.push( data );
1350
-
1351
- }
1352
- return q;
1353
- },
1354
-
1355
- dequeue: function( elem, type ){
1356
- var queue = jQuery.queue( elem, type ),
1357
- fn = queue.shift();
1358
-
1359
- if( !type || type === "fx" )
1360
- fn = queue[0];
1361
-
1362
- if( fn !== undefined )
1363
- fn.call(elem);
1364
- }
1365
- });
1366
-
1367
- jQuery.fn.extend({
1368
- data: function( key, value ){
1369
- var parts = key.split(".");
1370
- parts[1] = parts[1] ? "." + parts[1] : "";
1371
-
1372
- if ( value === undefined ) {
1373
- var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
1374
-
1375
- if ( data === undefined && this.length )
1376
- data = jQuery.data( this[0], key );
1377
-
1378
- return data === undefined && parts[1] ?
1379
- this.data( parts[0] ) :
1380
- data;
1381
- } else
1382
- return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){
1383
- jQuery.data( this, key, value );
1384
- });
1385
- },
1386
-
1387
- removeData: function( key ){
1388
- return this.each(function(){
1389
- jQuery.removeData( this, key );
1390
- });
1391
- },
1392
- queue: function(type, data){
1393
- if ( typeof type !== "string" ) {
1394
- data = type;
1395
- type = "fx";
1396
- }
1397
-
1398
- if ( data === undefined )
1399
- return jQuery.queue( this[0], type );
1400
-
1401
- return this.each(function(){
1402
- var queue = jQuery.queue( this, type, data );
1403
-
1404
- if( type == "fx" && queue.length == 1 )
1405
- queue[0].call(this);
1406
- });
1407
- },
1408
- dequeue: function(type){
1409
- return this.each(function(){
1410
- jQuery.dequeue( this, type );
1411
- });
1412
- }
1413
- });/*!
1414
- * Sizzle CSS Selector Engine - v0.9.3
1415
- * Copyright 2009, The Dojo Foundation
1416
- * Released under the MIT, BSD, and GPL Licenses.
1417
- * More information: http://sizzlejs.com/
1418
- */
1419
- (function(){
1420
-
1421
- var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,
1422
- done = 0,
1423
- toString = Object.prototype.toString;
1424
-
1425
- var Sizzle = function(selector, context, results, seed) {
1426
- results = results || [];
1427
- context = context || document;
1428
-
1429
- if ( context.nodeType !== 1 && context.nodeType !== 9 )
1430
- return [];
1431
-
1432
- if ( !selector || typeof selector !== "string" ) {
1433
- return results;
1434
- }
1435
-
1436
- var parts = [], m, set, checkSet, check, mode, extra, prune = true;
1437
-
1438
- // Reset the position of the chunker regexp (start from head)
1439
- chunker.lastIndex = 0;
1440
-
1441
- while ( (m = chunker.exec(selector)) !== null ) {
1442
- parts.push( m[1] );
1443
-
1444
- if ( m[2] ) {
1445
- extra = RegExp.rightContext;
1446
- break;
1447
- }
1448
- }
1449
-
1450
- if ( parts.length > 1 && origPOS.exec( selector ) ) {
1451
- if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
1452
- set = posProcess( parts[0] + parts[1], context );
1453
- } else {
1454
- set = Expr.relative[ parts[0] ] ?
1455
- [ context ] :
1456
- Sizzle( parts.shift(), context );
1457
-
1458
- while ( parts.length ) {
1459
- selector = parts.shift();
1460
-
1461
- if ( Expr.relative[ selector ] )
1462
- selector += parts.shift();
1463
-
1464
- set = posProcess( selector, set );
1465
- }
1466
- }
1467
- } else {
1468
- var ret = seed ?
1469
- { expr: parts.pop(), set: makeArray(seed) } :
1470
- Sizzle.find( parts.pop(), parts.length === 1 && context.parentNode ? context.parentNode : context, isXML(context) );
1471
- set = Sizzle.filter( ret.expr, ret.set );
1472
-
1473
- if ( parts.length > 0 ) {
1474
- checkSet = makeArray(set);
1475
- } else {
1476
- prune = false;
1477
- }
1478
-
1479
- while ( parts.length ) {
1480
- var cur = parts.pop(), pop = cur;
1481
-
1482
- if ( !Expr.relative[ cur ] ) {
1483
- cur = "";
1484
- } else {
1485
- pop = parts.pop();
1486
- }
1487
-
1488
- if ( pop == null ) {
1489
- pop = context;
1490
- }
1491
-
1492
- Expr.relative[ cur ]( checkSet, pop, isXML(context) );
1493
- }
1494
- }
1495
-
1496
- if ( !checkSet ) {
1497
- checkSet = set;
1498
- }
1499
-
1500
- if ( !checkSet ) {
1501
- throw "Syntax error, unrecognized expression: " + (cur || selector);
1502
- }
1503
-
1504
- if ( toString.call(checkSet) === "[object Array]" ) {
1505
- if ( !prune ) {
1506
- results.push.apply( results, checkSet );
1507
- } else if ( context.nodeType === 1 ) {
1508
- for ( var i = 0; checkSet[i] != null; i++ ) {
1509
- if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
1510
- results.push( set[i] );
1511
- }
1512
- }
1513
- } else {
1514
- for ( var i = 0; checkSet[i] != null; i++ ) {
1515
- if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
1516
- results.push( set[i] );
1517
- }
1518
- }
1519
- }
1520
- } else {
1521
- makeArray( checkSet, results );
1522
- }
1523
-
1524
- if ( extra ) {
1525
- Sizzle( extra, context, results, seed );
1526
-
1527
- if ( sortOrder ) {
1528
- hasDuplicate = false;
1529
- results.sort(sortOrder);
1530
-
1531
- if ( hasDuplicate ) {
1532
- for ( var i = 1; i < results.length; i++ ) {
1533
- if ( results[i] === results[i-1] ) {
1534
- results.splice(i--, 1);
1535
- }
1536
- }
1537
- }
1538
- }
1539
- }
1540
-
1541
- return results;
1542
- };
1543
-
1544
- Sizzle.matches = function(expr, set){
1545
- return Sizzle(expr, null, null, set);
1546
- };
1547
-
1548
- Sizzle.find = function(expr, context, isXML){
1549
- var set, match;
1550
-
1551
- if ( !expr ) {
1552
- return [];
1553
- }
1554
-
1555
- for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
1556
- var type = Expr.order[i], match;
1557
-
1558
- if ( (match = Expr.match[ type ].exec( expr )) ) {
1559
- var left = RegExp.leftContext;
1560
-
1561
- if ( left.substr( left.length - 1 ) !== "\\" ) {
1562
- match[1] = (match[1] || "").replace(/\\/g, "");
1563
- set = Expr.find[ type ]( match, context, isXML );
1564
- if ( set != null ) {
1565
- expr = expr.replace( Expr.match[ type ], "" );
1566
- break;
1567
- }
1568
- }
1569
- }
1570
- }
1571
-
1572
- if ( !set ) {
1573
- set = context.getElementsByTagName("*");
1574
- }
1575
-
1576
- return {set: set, expr: expr};
1577
- };
1578
-
1579
- Sizzle.filter = function(expr, set, inplace, not){
1580
- var old = expr, result = [], curLoop = set, match, anyFound,
1581
- isXMLFilter = set && set[0] && isXML(set[0]);
1582
-
1583
- while ( expr && set.length ) {
1584
- for ( var type in Expr.filter ) {
1585
- if ( (match = Expr.match[ type ].exec( expr )) != null ) {
1586
- var filter = Expr.filter[ type ], found, item;
1587
- anyFound = false;
1588
-
1589
- if ( curLoop == result ) {
1590
- result = [];
1591
- }
1592
-
1593
- if ( Expr.preFilter[ type ] ) {
1594
- match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
1595
-
1596
- if ( !match ) {
1597
- anyFound = found = true;
1598
- } else if ( match === true ) {
1599
- continue;
1600
- }
1601
- }
1602
-
1603
- if ( match ) {
1604
- for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
1605
- if ( item ) {
1606
- found = filter( item, match, i, curLoop );
1607
- var pass = not ^ !!found;
1608
-
1609
- if ( inplace && found != null ) {
1610
- if ( pass ) {
1611
- anyFound = true;
1612
- } else {
1613
- curLoop[i] = false;
1614
- }
1615
- } else if ( pass ) {
1616
- result.push( item );
1617
- anyFound = true;
1618
- }
1619
- }
1620
- }
1621
- }
1622
-
1623
- if ( found !== undefined ) {
1624
- if ( !inplace ) {
1625
- curLoop = result;
1626
- }
1627
-
1628
- expr = expr.replace( Expr.match[ type ], "" );
1629
-
1630
- if ( !anyFound ) {
1631
- return [];
1632
- }
1633
-
1634
- break;
1635
- }
1636
- }
1637
- }
1638
-
1639
- // Improper expression
1640
- if ( expr == old ) {
1641
- if ( anyFound == null ) {
1642
- throw "Syntax error, unrecognized expression: " + expr;
1643
- } else {
1644
- break;
1645
- }
1646
- }
1647
-
1648
- old = expr;
1649
- }
1650
-
1651
- return curLoop;
1652
- };
1653
-
1654
- var Expr = Sizzle.selectors = {
1655
- order: [ "ID", "NAME", "TAG" ],
1656
- match: {
1657
- ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
1658
- CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
1659
- NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,
1660
- ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
1661
- TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,
1662
- CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
1663
- POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
1664
- PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/
1665
- },
1666
- attrMap: {
1667
- "class": "className",
1668
- "for": "htmlFor"
1669
- },
1670
- attrHandle: {
1671
- href: function(elem){
1672
- return elem.getAttribute("href");
1673
- }
1674
- },
1675
- relative: {
1676
- "+": function(checkSet, part, isXML){
1677
- var isPartStr = typeof part === "string",
1678
- isTag = isPartStr && !/\W/.test(part),
1679
- isPartStrNotTag = isPartStr && !isTag;
1680
-
1681
- if ( isTag && !isXML ) {
1682
- part = part.toUpperCase();
1683
- }
1684
-
1685
- for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
1686
- if ( (elem = checkSet[i]) ) {
1687
- while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
1688
-
1689
- checkSet[i] = isPartStrNotTag || elem && elem.nodeName === part ?
1690
- elem || false :
1691
- elem === part;
1692
- }
1693
- }
1694
-
1695
- if ( isPartStrNotTag ) {
1696
- Sizzle.filter( part, checkSet, true );
1697
- }
1698
- },
1699
- ">": function(checkSet, part, isXML){
1700
- var isPartStr = typeof part === "string";
1701
-
1702
- if ( isPartStr && !/\W/.test(part) ) {
1703
- part = isXML ? part : part.toUpperCase();
1704
-
1705
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
1706
- var elem = checkSet[i];
1707
- if ( elem ) {
1708
- var parent = elem.parentNode;
1709
- checkSet[i] = parent.nodeName === part ? parent : false;
1710
- }
1711
- }
1712
- } else {
1713
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
1714
- var elem = checkSet[i];
1715
- if ( elem ) {
1716
- checkSet[i] = isPartStr ?
1717
- elem.parentNode :
1718
- elem.parentNode === part;
1719
- }
1720
- }
1721
-
1722
- if ( isPartStr ) {
1723
- Sizzle.filter( part, checkSet, true );
1724
- }
1725
- }
1726
- },
1727
- "": function(checkSet, part, isXML){
1728
- var doneName = done++, checkFn = dirCheck;
1729
-
1730
- if ( !part.match(/\W/) ) {
1731
- var nodeCheck = part = isXML ? part : part.toUpperCase();
1732
- checkFn = dirNodeCheck;
1733
- }
1734
-
1735
- checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
1736
- },
1737
- "~": function(checkSet, part, isXML){
1738
- var doneName = done++, checkFn = dirCheck;
1739
-
1740
- if ( typeof part === "string" && !part.match(/\W/) ) {
1741
- var nodeCheck = part = isXML ? part : part.toUpperCase();
1742
- checkFn = dirNodeCheck;
1743
- }
1744
-
1745
- checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
1746
- }
1747
- },
1748
- find: {
1749
- ID: function(match, context, isXML){
1750
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
1751
- var m = context.getElementById(match[1]);
1752
- return m ? [m] : [];
1753
- }
1754
- },
1755
- NAME: function(match, context, isXML){
1756
- if ( typeof context.getElementsByName !== "undefined" ) {
1757
- var ret = [], results = context.getElementsByName(match[1]);
1758
-
1759
- for ( var i = 0, l = results.length; i < l; i++ ) {
1760
- if ( results[i].getAttribute("name") === match[1] ) {
1761
- ret.push( results[i] );
1762
- }
1763
- }
1764
-
1765
- return ret.length === 0 ? null : ret;
1766
- }
1767
- },
1768
- TAG: function(match, context){
1769
- return context.getElementsByTagName(match[1]);
1770
- }
1771
- },
1772
- preFilter: {
1773
- CLASS: function(match, curLoop, inplace, result, not, isXML){
1774
- match = " " + match[1].replace(/\\/g, "") + " ";
1775
-
1776
- if ( isXML ) {
1777
- return match;
1778
- }
1779
-
1780
- for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
1781
- if ( elem ) {
1782
- if ( not ^ (elem.className && (" " + elem.className + " ").indexOf(match) >= 0) ) {
1783
- if ( !inplace )
1784
- result.push( elem );
1785
- } else if ( inplace ) {
1786
- curLoop[i] = false;
1787
- }
1788
- }
1789
- }
1790
-
1791
- return false;
1792
- },
1793
- ID: function(match){
1794
- return match[1].replace(/\\/g, "");
1795
- },
1796
- TAG: function(match, curLoop){
1797
- for ( var i = 0; curLoop[i] === false; i++ ){}
1798
- return curLoop[i] && isXML(curLoop[i]) ? match[1] : match[1].toUpperCase();
1799
- },
1800
- CHILD: function(match){
1801
- if ( match[1] == "nth" ) {
1802
- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
1803
- var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
1804
- match[2] == "even" && "2n" || match[2] == "odd" && "2n+1" ||
1805
- !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
1806
-
1807
- // calculate the numbers (first)n+(last) including if they are negative
1808
- match[2] = (test[1] + (test[2] || 1)) - 0;
1809
- match[3] = test[3] - 0;
1810
- }
1811
-
1812
- // TODO: Move to normal caching system
1813
- match[0] = done++;
1814
-
1815
- return match;
1816
- },
1817
- ATTR: function(match, curLoop, inplace, result, not, isXML){
1818
- var name = match[1].replace(/\\/g, "");
1819
-
1820
- if ( !isXML && Expr.attrMap[name] ) {
1821
- match[1] = Expr.attrMap[name];
1822
- }
1823
-
1824
- if ( match[2] === "~=" ) {
1825
- match[4] = " " + match[4] + " ";
1826
- }
1827
-
1828
- return match;
1829
- },
1830
- PSEUDO: function(match, curLoop, inplace, result, not){
1831
- if ( match[1] === "not" ) {
1832
- // If we're dealing with a complex expression, or a simple one
1833
- if ( match[3].match(chunker).length > 1 || /^\w/.test(match[3]) ) {
1834
- match[3] = Sizzle(match[3], null, null, curLoop);
1835
- } else {
1836
- var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
1837
- if ( !inplace ) {
1838
- result.push.apply( result, ret );
1839
- }
1840
- return false;
1841
- }
1842
- } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
1843
- return true;
1844
- }
1845
-
1846
- return match;
1847
- },
1848
- POS: function(match){
1849
- match.unshift( true );
1850
- return match;
1851
- }
1852
- },
1853
- filters: {
1854
- enabled: function(elem){
1855
- return elem.disabled === false && elem.type !== "hidden";
1856
- },
1857
- disabled: function(elem){
1858
- return elem.disabled === true;
1859
- },
1860
- checked: function(elem){
1861
- return elem.checked === true;
1862
- },
1863
- selected: function(elem){
1864
- // Accessing this property makes selected-by-default
1865
- // options in Safari work properly
1866
- elem.parentNode.selectedIndex;
1867
- return elem.selected === true;
1868
- },
1869
- parent: function(elem){
1870
- return !!elem.firstChild;
1871
- },
1872
- empty: function(elem){
1873
- return !elem.firstChild;
1874
- },
1875
- has: function(elem, i, match){
1876
- return !!Sizzle( match[3], elem ).length;
1877
- },
1878
- header: function(elem){
1879
- return /h\d/i.test( elem.nodeName );
1880
- },
1881
- text: function(elem){
1882
- return "text" === elem.type;
1883
- },
1884
- radio: function(elem){
1885
- return "radio" === elem.type;
1886
- },
1887
- checkbox: function(elem){
1888
- return "checkbox" === elem.type;
1889
- },
1890
- file: function(elem){
1891
- return "file" === elem.type;
1892
- },
1893
- password: function(elem){
1894
- return "password" === elem.type;
1895
- },
1896
- submit: function(elem){
1897
- return "submit" === elem.type;
1898
- },
1899
- image: function(elem){
1900
- return "image" === elem.type;
1901
- },
1902
- reset: function(elem){
1903
- return "reset" === elem.type;
1904
- },
1905
- button: function(elem){
1906
- return "button" === elem.type || elem.nodeName.toUpperCase() === "BUTTON";
1907
- },
1908
- input: function(elem){
1909
- return /input|select|textarea|button/i.test(elem.nodeName);
1910
- }
1911
- },
1912
- setFilters: {
1913
- first: function(elem, i){
1914
- return i === 0;
1915
- },
1916
- last: function(elem, i, match, array){
1917
- return i === array.length - 1;
1918
- },
1919
- even: function(elem, i){
1920
- return i % 2 === 0;
1921
- },
1922
- odd: function(elem, i){
1923
- return i % 2 === 1;
1924
- },
1925
- lt: function(elem, i, match){
1926
- return i < match[3] - 0;
1927
- },
1928
- gt: function(elem, i, match){
1929
- return i > match[3] - 0;
1930
- },
1931
- nth: function(elem, i, match){
1932
- return match[3] - 0 == i;
1933
- },
1934
- eq: function(elem, i, match){
1935
- return match[3] - 0 == i;
1936
- }
1937
- },
1938
- filter: {
1939
- PSEUDO: function(elem, match, i, array){
1940
- var name = match[1], filter = Expr.filters[ name ];
1941
-
1942
- if ( filter ) {
1943
- return filter( elem, i, match, array );
1944
- } else if ( name === "contains" ) {
1945
- return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0;
1946
- } else if ( name === "not" ) {
1947
- var not = match[3];
1948
-
1949
- for ( var i = 0, l = not.length; i < l; i++ ) {
1950
- if ( not[i] === elem ) {
1951
- return false;
1952
- }
1953
- }
1954
-
1955
- return true;
1956
- }
1957
- },
1958
- CHILD: function(elem, match){
1959
- var type = match[1], node = elem;
1960
- switch (type) {
1961
- case 'only':
1962
- case 'first':
1963
- while (node = node.previousSibling) {
1964
- if ( node.nodeType === 1 ) return false;
1965
- }
1966
- if ( type == 'first') return true;
1967
- node = elem;
1968
- case 'last':
1969
- while (node = node.nextSibling) {
1970
- if ( node.nodeType === 1 ) return false;
1971
- }
1972
- return true;
1973
- case 'nth':
1974
- var first = match[2], last = match[3];
1975
-
1976
- if ( first == 1 && last == 0 ) {
1977
- return true;
1978
- }
1979
-
1980
- var doneName = match[0],
1981
- parent = elem.parentNode;
1982
-
1983
- if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
1984
- var count = 0;
1985
- for ( node = parent.firstChild; node; node = node.nextSibling ) {
1986
- if ( node.nodeType === 1 ) {
1987
- node.nodeIndex = ++count;
1988
- }
1989
- }
1990
- parent.sizcache = doneName;
1991
- }
1992
-
1993
- var diff = elem.nodeIndex - last;
1994
- if ( first == 0 ) {
1995
- return diff == 0;
1996
- } else {
1997
- return ( diff % first == 0 && diff / first >= 0 );
1998
- }
1999
- }
2000
- },
2001
- ID: function(elem, match){
2002
- return elem.nodeType === 1 && elem.getAttribute("id") === match;
2003
- },
2004
- TAG: function(elem, match){
2005
- return (match === "*" && elem.nodeType === 1) || elem.nodeName === match;
2006
- },
2007
- CLASS: function(elem, match){
2008
- return (" " + (elem.className || elem.getAttribute("class")) + " ")
2009
- .indexOf( match ) > -1;
2010
- },
2011
- ATTR: function(elem, match){
2012
- var name = match[1],
2013
- result = Expr.attrHandle[ name ] ?
2014
- Expr.attrHandle[ name ]( elem ) :
2015
- elem[ name ] != null ?
2016
- elem[ name ] :
2017
- elem.getAttribute( name ),
2018
- value = result + "",
2019
- type = match[2],
2020
- check = match[4];
2021
-
2022
- return result == null ?
2023
- type === "!=" :
2024
- type === "=" ?
2025
- value === check :
2026
- type === "*=" ?
2027
- value.indexOf(check) >= 0 :
2028
- type === "~=" ?
2029
- (" " + value + " ").indexOf(check) >= 0 :
2030
- !check ?
2031
- value && result !== false :
2032
- type === "!=" ?
2033
- value != check :
2034
- type === "^=" ?
2035
- value.indexOf(check) === 0 :
2036
- type === "$=" ?
2037
- value.substr(value.length - check.length) === check :
2038
- type === "|=" ?
2039
- value === check || value.substr(0, check.length + 1) === check + "-" :
2040
- false;
2041
- },
2042
- POS: function(elem, match, i, array){
2043
- var name = match[2], filter = Expr.setFilters[ name ];
2044
-
2045
- if ( filter ) {
2046
- return filter( elem, i, match, array );
2047
- }
2048
- }
2049
- }
2050
- };
2051
-
2052
- var origPOS = Expr.match.POS;
2053
-
2054
- for ( var type in Expr.match ) {
2055
- Expr.match[ type ] = RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
2056
- }
2057
-
2058
- var makeArray = function(array, results) {
2059
- array = Array.prototype.slice.call( array );
2060
-
2061
- if ( results ) {
2062
- results.push.apply( results, array );
2063
- return results;
2064
- }
2065
-
2066
- return array;
2067
- };
2068
-
2069
- // Perform a simple check to determine if the browser is capable of
2070
- // converting a NodeList to an array using builtin methods.
2071
- try {
2072
- Array.prototype.slice.call( document.documentElement.childNodes );
2073
-
2074
- // Provide a fallback method if it does not work
2075
- } catch(e){
2076
- makeArray = function(array, results) {
2077
- var ret = results || [];
2078
-
2079
- if ( toString.call(array) === "[object Array]" ) {
2080
- Array.prototype.push.apply( ret, array );
2081
- } else {
2082
- if ( typeof array.length === "number" ) {
2083
- for ( var i = 0, l = array.length; i < l; i++ ) {
2084
- ret.push( array[i] );
2085
- }
2086
- } else {
2087
- for ( var i = 0; array[i]; i++ ) {
2088
- ret.push( array[i] );
2089
- }
2090
- }
2091
- }
2092
-
2093
- return ret;
2094
- };
2095
- }
2096
-
2097
- var sortOrder;
2098
-
2099
- if ( document.documentElement.compareDocumentPosition ) {
2100
- sortOrder = function( a, b ) {
2101
- var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
2102
- if ( ret === 0 ) {
2103
- hasDuplicate = true;
2104
- }
2105
- return ret;
2106
- };
2107
- } else if ( "sourceIndex" in document.documentElement ) {
2108
- sortOrder = function( a, b ) {
2109
- var ret = a.sourceIndex - b.sourceIndex;
2110
- if ( ret === 0 ) {
2111
- hasDuplicate = true;
2112
- }
2113
- return ret;
2114
- };
2115
- } else if ( document.createRange ) {
2116
- sortOrder = function( a, b ) {
2117
- var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
2118
- aRange.selectNode(a);
2119
- aRange.collapse(true);
2120
- bRange.selectNode(b);
2121
- bRange.collapse(true);
2122
- var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
2123
- if ( ret === 0 ) {
2124
- hasDuplicate = true;
2125
- }
2126
- return ret;
2127
- };
2128
- }
2129
-
2130
- // Check to see if the browser returns elements by name when
2131
- // querying by getElementById (and provide a workaround)
2132
- (function(){
2133
- // We're going to inject a fake input element with a specified name
2134
- var form = document.createElement("form"),
2135
- id = "script" + (new Date).getTime();
2136
- form.innerHTML = "<input name='" + id + "'/>";
2137
-
2138
- // Inject it into the root element, check its status, and remove it quickly
2139
- var root = document.documentElement;
2140
- root.insertBefore( form, root.firstChild );
2141
-
2142
- // The workaround has to do additional checks after a getElementById
2143
- // Which slows things down for other browsers (hence the branching)
2144
- if ( !!document.getElementById( id ) ) {
2145
- Expr.find.ID = function(match, context, isXML){
2146
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
2147
- var m = context.getElementById(match[1]);
2148
- return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
2149
- }
2150
- };
2151
-
2152
- Expr.filter.ID = function(elem, match){
2153
- var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
2154
- return elem.nodeType === 1 && node && node.nodeValue === match;
2155
- };
2156
- }
2157
-
2158
- root.removeChild( form );
2159
- })();
2160
-
2161
- (function(){
2162
- // Check to see if the browser returns only elements
2163
- // when doing getElementsByTagName("*")
2164
-
2165
- // Create a fake element
2166
- var div = document.createElement("div");
2167
- div.appendChild( document.createComment("") );
2168
-
2169
- // Make sure no comments are found
2170
- if ( div.getElementsByTagName("*").length > 0 ) {
2171
- Expr.find.TAG = function(match, context){
2172
- var results = context.getElementsByTagName(match[1]);
2173
-
2174
- // Filter out possible comments
2175
- if ( match[1] === "*" ) {
2176
- var tmp = [];
2177
-
2178
- for ( var i = 0; results[i]; i++ ) {
2179
- if ( results[i].nodeType === 1 ) {
2180
- tmp.push( results[i] );
2181
- }
2182
- }
2183
-
2184
- results = tmp;
2185
- }
2186
-
2187
- return results;
2188
- };
2189
- }
2190
-
2191
- // Check to see if an attribute returns normalized href attributes
2192
- div.innerHTML = "<a href='#'></a>";
2193
- if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
2194
- div.firstChild.getAttribute("href") !== "#" ) {
2195
- Expr.attrHandle.href = function(elem){
2196
- return elem.getAttribute("href", 2);
2197
- };
2198
- }
2199
- })();
2200
-
2201
- if ( document.querySelectorAll ) (function(){
2202
- var oldSizzle = Sizzle, div = document.createElement("div");
2203
- div.innerHTML = "<p class='TEST'></p>";
2204
-
2205
- // Safari can't handle uppercase or unicode characters when
2206
- // in quirks mode.
2207
- if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
2208
- return;
2209
- }
2210
-
2211
- Sizzle = function(query, context, extra, seed){
2212
- context = context || document;
2213
-
2214
- // Only use querySelectorAll on non-XML documents
2215
- // (ID selectors don't work in non-HTML documents)
2216
- if ( !seed && context.nodeType === 9 && !isXML(context) ) {
2217
- try {
2218
- return makeArray( context.querySelectorAll(query), extra );
2219
- } catch(e){}
2220
- }
2221
-
2222
- return oldSizzle(query, context, extra, seed);
2223
- };
2224
-
2225
- Sizzle.find = oldSizzle.find;
2226
- Sizzle.filter = oldSizzle.filter;
2227
- Sizzle.selectors = oldSizzle.selectors;
2228
- Sizzle.matches = oldSizzle.matches;
2229
- })();
2230
-
2231
- if ( document.getElementsByClassName && document.documentElement.getElementsByClassName ) (function(){
2232
- var div = document.createElement("div");
2233
- div.innerHTML = "<div class='test e'></div><div class='test'></div>";
2234
-
2235
- // Opera can't find a second classname (in 9.6)
2236
- if ( div.getElementsByClassName("e").length === 0 )
2237
- return;
2238
-
2239
- // Safari caches class attributes, doesn't catch changes (in 3.2)
2240
- div.lastChild.className = "e";
2241
-
2242
- if ( div.getElementsByClassName("e").length === 1 )
2243
- return;
2244
-
2245
- Expr.order.splice(1, 0, "CLASS");
2246
- Expr.find.CLASS = function(match, context, isXML) {
2247
- if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
2248
- return context.getElementsByClassName(match[1]);
2249
- }
2250
- };
2251
- })();
2252
-
2253
- function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
2254
- var sibDir = dir == "previousSibling" && !isXML;
2255
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
2256
- var elem = checkSet[i];
2257
- if ( elem ) {
2258
- if ( sibDir && elem.nodeType === 1 ){
2259
- elem.sizcache = doneName;
2260
- elem.sizset = i;
2261
- }
2262
- elem = elem[dir];
2263
- var match = false;
2264
-
2265
- while ( elem ) {
2266
- if ( elem.sizcache === doneName ) {
2267
- match = checkSet[elem.sizset];
2268
- break;
2269
- }
2270
-
2271
- if ( elem.nodeType === 1 && !isXML ){
2272
- elem.sizcache = doneName;
2273
- elem.sizset = i;
2274
- }
2275
-
2276
- if ( elem.nodeName === cur ) {
2277
- match = elem;
2278
- break;
2279
- }
2280
-
2281
- elem = elem[dir];
2282
- }
2283
-
2284
- checkSet[i] = match;
2285
- }
2286
- }
2287
- }
2288
-
2289
- function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
2290
- var sibDir = dir == "previousSibling" && !isXML;
2291
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
2292
- var elem = checkSet[i];
2293
- if ( elem ) {
2294
- if ( sibDir && elem.nodeType === 1 ) {
2295
- elem.sizcache = doneName;
2296
- elem.sizset = i;
2297
- }
2298
- elem = elem[dir];
2299
- var match = false;
2300
-
2301
- while ( elem ) {
2302
- if ( elem.sizcache === doneName ) {
2303
- match = checkSet[elem.sizset];
2304
- break;
2305
- }
2306
-
2307
- if ( elem.nodeType === 1 ) {
2308
- if ( !isXML ) {
2309
- elem.sizcache = doneName;
2310
- elem.sizset = i;
2311
- }
2312
- if ( typeof cur !== "string" ) {
2313
- if ( elem === cur ) {
2314
- match = true;
2315
- break;
2316
- }
2317
-
2318
- } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
2319
- match = elem;
2320
- break;
2321
- }
2322
- }
2323
-
2324
- elem = elem[dir];
2325
- }
2326
-
2327
- checkSet[i] = match;
2328
- }
2329
- }
2330
- }
2331
-
2332
- var contains = document.compareDocumentPosition ? function(a, b){
2333
- return a.compareDocumentPosition(b) & 16;
2334
- } : function(a, b){
2335
- return a !== b && (a.contains ? a.contains(b) : true);
2336
- };
2337
-
2338
- var isXML = function(elem){
2339
- return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
2340
- !!elem.ownerDocument && isXML( elem.ownerDocument );
2341
- };
2342
-
2343
- var posProcess = function(selector, context){
2344
- var tmpSet = [], later = "", match,
2345
- root = context.nodeType ? [context] : context;
2346
-
2347
- // Position selectors must be done after the filter
2348
- // And so must :not(positional) so we move all PSEUDOs to the end
2349
- while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
2350
- later += match[0];
2351
- selector = selector.replace( Expr.match.PSEUDO, "" );
2352
- }
2353
-
2354
- selector = Expr.relative[selector] ? selector + "*" : selector;
2355
-
2356
- for ( var i = 0, l = root.length; i < l; i++ ) {
2357
- Sizzle( selector, root[i], tmpSet );
2358
- }
2359
-
2360
- return Sizzle.filter( later, tmpSet );
2361
- };
2362
-
2363
- // EXPOSE
2364
- jQuery.find = Sizzle;
2365
- jQuery.filter = Sizzle.filter;
2366
- jQuery.expr = Sizzle.selectors;
2367
- jQuery.expr[":"] = jQuery.expr.filters;
2368
-
2369
- Sizzle.selectors.filters.hidden = function(elem){
2370
- return elem.offsetWidth === 0 || elem.offsetHeight === 0;
2371
- };
2372
-
2373
- Sizzle.selectors.filters.visible = function(elem){
2374
- return elem.offsetWidth > 0 || elem.offsetHeight > 0;
2375
- };
2376
-
2377
- Sizzle.selectors.filters.animated = function(elem){
2378
- return jQuery.grep(jQuery.timers, function(fn){
2379
- return elem === fn.elem;
2380
- }).length;
2381
- };
2382
-
2383
- jQuery.multiFilter = function( expr, elems, not ) {
2384
- if ( not ) {
2385
- expr = ":not(" + expr + ")";
2386
- }
2387
-
2388
- return Sizzle.matches(expr, elems);
2389
- };
2390
-
2391
- jQuery.dir = function( elem, dir ){
2392
- var matched = [], cur = elem[dir];
2393
- while ( cur && cur != document ) {
2394
- if ( cur.nodeType == 1 )
2395
- matched.push( cur );
2396
- cur = cur[dir];
2397
- }
2398
- return matched;
2399
- };
2400
-
2401
- jQuery.nth = function(cur, result, dir, elem){
2402
- result = result || 1;
2403
- var num = 0;
2404
-
2405
- for ( ; cur; cur = cur[dir] )
2406
- if ( cur.nodeType == 1 && ++num == result )
2407
- break;
2408
-
2409
- return cur;
2410
- };
2411
-
2412
- jQuery.sibling = function(n, elem){
2413
- var r = [];
2414
-
2415
- for ( ; n; n = n.nextSibling ) {
2416
- if ( n.nodeType == 1 && n != elem )
2417
- r.push( n );
2418
- }
2419
-
2420
- return r;
2421
- };
2422
-
2423
- return;
2424
-
2425
- window.Sizzle = Sizzle;
2426
-
2427
- })();
2428
- /*
2429
- * A number of helper functions used for managing events.
2430
- * Many of the ideas behind this code originated from
2431
- * Dean Edwards' addEvent library.
2432
- */
2433
- jQuery.event = {
2434
-
2435
- // Bind an event to an element
2436
- // Original by Dean Edwards
2437
- add: function(elem, types, handler, data) {
2438
- if ( elem.nodeType == 3 || elem.nodeType == 8 )
2439
- return;
2440
-
2441
- // For whatever reason, IE has trouble passing the window object
2442
- // around, causing it to be cloned in the process
2443
- if ( elem.setInterval && elem != window )
2444
- elem = window;
2445
-
2446
- // Make sure that the function being executed has a unique ID
2447
- if ( !handler.guid )
2448
- handler.guid = this.guid++;
2449
-
2450
- // if data is passed, bind to handler
2451
- if ( data !== undefined ) {
2452
- // Create temporary function pointer to original handler
2453
- var fn = handler;
2454
-
2455
- // Create unique handler function, wrapped around original handler
2456
- handler = this.proxy( fn );
2457
-
2458
- // Store data in unique handler
2459
- handler.data = data;
2460
- }
2461
-
2462
- // Init the element's event structure
2463
- var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}),
2464
- handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){
2465
- // Handle the second event of a trigger and when
2466
- // an event is called after a page has unloaded
2467
- return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
2468
- jQuery.event.handle.apply(arguments.callee.elem, arguments) :
2469
- undefined;
2470
- });
2471
- // Add elem as a property of the handle function
2472
- // This is to prevent a memory leak with non-native
2473
- // event in IE.
2474
- handle.elem = elem;
2475
-
2476
- // Handle multiple events separated by a space
2477
- // jQuery(...).bind("mouseover mouseout", fn);
2478
- jQuery.each(types.split(/\s+/), function(index, type) {
2479
- // Namespaced event handlers
2480
- var namespaces = type.split(".");
2481
- type = namespaces.shift();
2482
- handler.type = namespaces.slice().sort().join(".");
2483
-
2484
- // Get the current list of functions bound to this event
2485
- var handlers = events[type];
2486
-
2487
- if ( jQuery.event.specialAll[type] )
2488
- jQuery.event.specialAll[type].setup.call(elem, data, namespaces);
2489
-
2490
- // Init the event handler queue
2491
- if (!handlers) {
2492
- handlers = events[type] = {};
2493
-
2494
- // Check for a special event handler
2495
- // Only use addEventListener/attachEvent if the special
2496
- // events handler returns false
2497
- if ( !jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem, data, namespaces) === false ) {
2498
- // Bind the global event handler to the element
2499
- if (elem.addEventListener)
2500
- elem.addEventListener(type, handle, false);
2501
- else if (elem.attachEvent)
2502
- elem.attachEvent("on" + type, handle);
2503
- }
2504
- }
2505
-
2506
- // Add the function to the element's handler list
2507
- handlers[handler.guid] = handler;
2508
-
2509
- // Keep track of which events have been used, for global triggering
2510
- jQuery.event.global[type] = true;
2511
- });
2512
-
2513
- // Nullify elem to prevent memory leaks in IE
2514
- elem = null;
2515
- },
2516
-
2517
- guid: 1,
2518
- global: {},
2519
-
2520
- // Detach an event or set of events from an element
2521
- remove: function(elem, types, handler) {
2522
- // don't do events on text and comment nodes
2523
- if ( elem.nodeType == 3 || elem.nodeType == 8 )
2524
- return;
2525
-
2526
- var events = jQuery.data(elem, "events"), ret, index;
2527
-
2528
- if ( events ) {
2529
- // Unbind all events for the element
2530
- if ( types === undefined || (typeof types === "string" && types.charAt(0) == ".") )
2531
- for ( var type in events )
2532
- this.remove( elem, type + (types || "") );
2533
- else {
2534
- // types is actually an event object here
2535
- if ( types.type ) {
2536
- handler = types.handler;
2537
- types = types.type;
2538
- }
2539
-
2540
- // Handle multiple events seperated by a space
2541
- // jQuery(...).unbind("mouseover mouseout", fn);
2542
- jQuery.each(types.split(/\s+/), function(index, type){
2543
- // Namespaced event handlers
2544
- var namespaces = type.split(".");
2545
- type = namespaces.shift();
2546
- var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
2547
-
2548
- if ( events[type] ) {
2549
- // remove the given handler for the given type
2550
- if ( handler )
2551
- delete events[type][handler.guid];
2552
-
2553
- // remove all handlers for the given type
2554
- else
2555
- for ( var handle in events[type] )
2556
- // Handle the removal of namespaced events
2557
- if ( namespace.test(events[type][handle].type) )
2558
- delete events[type][handle];
2559
-
2560
- if ( jQuery.event.specialAll[type] )
2561
- jQuery.event.specialAll[type].teardown.call(elem, namespaces);
2562
-
2563
- // remove generic event handler if no more handlers exist
2564
- for ( ret in events[type] ) break;
2565
- if ( !ret ) {
2566
- if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem, namespaces) === false ) {
2567
- if (elem.removeEventListener)
2568
- elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
2569
- else if (elem.detachEvent)
2570
- elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
2571
- }
2572
- ret = null;
2573
- delete events[type];
2574
- }
2575
- }
2576
- });
2577
- }
2578
-
2579
- // Remove the expando if it's no longer used
2580
- for ( ret in events ) break;
2581
- if ( !ret ) {
2582
- var handle = jQuery.data( elem, "handle" );
2583
- if ( handle ) handle.elem = null;
2584
- jQuery.removeData( elem, "events" );
2585
- jQuery.removeData( elem, "handle" );
2586
- }
2587
- }
2588
- },
2589
-
2590
- // bubbling is internal
2591
- trigger: function( event, data, elem, bubbling ) {
2592
- // Event object or event type
2593
- var type = event.type || event;
2594
-
2595
- if( !bubbling ){
2596
- event = typeof event === "object" ?
2597
- // jQuery.Event object
2598
- event[expando] ? event :
2599
- // Object literal
2600
- jQuery.extend( jQuery.Event(type), event ) :
2601
- // Just the event type (string)
2602
- jQuery.Event(type);
2603
-
2604
- if ( type.indexOf("!") >= 0 ) {
2605
- event.type = type = type.slice(0, -1);
2606
- event.exclusive = true;
2607
- }
2608
-
2609
- // Handle a global trigger
2610
- if ( !elem ) {
2611
- // Don't bubble custom events when global (to avoid too much overhead)
2612
- event.stopPropagation();
2613
- // Only trigger if we've ever bound an event for it
2614
- if ( this.global[type] )
2615
- jQuery.each( jQuery.cache, function(){
2616
- if ( this.events && this.events[type] )
2617
- jQuery.event.trigger( event, data, this.handle.elem );
2618
- });
2619
- }
2620
-
2621
- // Handle triggering a single element
2622
-
2623
- // don't do events on text and comment nodes
2624
- if ( !elem || elem.nodeType == 3 || elem.nodeType == 8 )
2625
- return undefined;
2626
-
2627
- // Clean up in case it is reused
2628
- event.result = undefined;
2629
- event.target = elem;
2630
-
2631
- // Clone the incoming data, if any
2632
- data = jQuery.makeArray(data);
2633
- data.unshift( event );
2634
- }
2635
-
2636
- event.currentTarget = elem;
2637
-
2638
- // Trigger the event, it is assumed that "handle" is a function
2639
- var handle = jQuery.data(elem, "handle");
2640
- if ( handle )
2641
- handle.apply( elem, data );
2642
-
2643
- // Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
2644
- if ( (!elem[type] || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
2645
- event.result = false;
2646
-
2647
- // Trigger the native events (except for clicks on links)
2648
- if ( !bubbling && elem[type] && !event.isDefaultPrevented() && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
2649
- this.triggered = true;
2650
- try {
2651
- elem[ type ]();
2652
- // prevent IE from throwing an error for some hidden elements
2653
- } catch (e) {}
2654
- }
2655
-
2656
- this.triggered = false;
2657
-
2658
- if ( !event.isPropagationStopped() ) {
2659
- var parent = elem.parentNode || elem.ownerDocument;
2660
- if ( parent )
2661
- jQuery.event.trigger(event, data, parent, true);
2662
- }
2663
- },
2664
-
2665
- handle: function(event) {
2666
- // returned undefined or false
2667
- var all, handlers;
2668
-
2669
- event = arguments[0] = jQuery.event.fix( event || window.event );
2670
- event.currentTarget = this;
2671
-
2672
- // Namespaced event handlers
2673
- var namespaces = event.type.split(".");
2674
- event.type = namespaces.shift();
2675
-
2676
- // Cache this now, all = true means, any handler
2677
- all = !namespaces.length && !event.exclusive;
2678
-
2679
- var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
2680
-
2681
- handlers = ( jQuery.data(this, "events") || {} )[event.type];
2682
-
2683
- for ( var j in handlers ) {
2684
- var handler = handlers[j];
2685
-
2686
- // Filter the functions by class
2687
- if ( all || namespace.test(handler.type) ) {
2688
- // Pass in a reference to the handler function itself
2689
- // So that we can later remove it
2690
- event.handler = handler;
2691
- event.data = handler.data;
2692
-
2693
- var ret = handler.apply(this, arguments);
2694
-
2695
- if( ret !== undefined ){
2696
- event.result = ret;
2697
- if ( ret === false ) {
2698
- event.preventDefault();
2699
- event.stopPropagation();
2700
- }
2701
- }
2702
-
2703
- if( event.isImmediatePropagationStopped() )
2704
- break;
2705
-
2706
- }
2707
- }
2708
- },
2709
-
2710
- props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
2711
-
2712
- fix: function(event) {
2713
- if ( event[expando] )
2714
- return event;
2715
-
2716
- // store a copy of the original event object
2717
- // and "clone" to set read-only properties
2718
- var originalEvent = event;
2719
- event = jQuery.Event( originalEvent );
2720
-
2721
- for ( var i = this.props.length, prop; i; ){
2722
- prop = this.props[ --i ];
2723
- event[ prop ] = originalEvent[ prop ];
2724
- }
2725
-
2726
- // Fix target property, if necessary
2727
- if ( !event.target )
2728
- event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
2729
-
2730
- // check if target is a textnode (safari)
2731
- if ( event.target.nodeType == 3 )
2732
- event.target = event.target.parentNode;
2733
-
2734
- // Add relatedTarget, if necessary
2735
- if ( !event.relatedTarget && event.fromElement )
2736
- event.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement;
2737
-
2738
- // Calculate pageX/Y if missing and clientX/Y available
2739
- if ( event.pageX == null && event.clientX != null ) {
2740
- var doc = document.documentElement, body = document.body;
2741
- event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
2742
- event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
2743
- }
2744
-
2745
- // Add which for key events
2746
- if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) )
2747
- event.which = event.charCode || event.keyCode;
2748
-
2749
- // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
2750
- if ( !event.metaKey && event.ctrlKey )
2751
- event.metaKey = event.ctrlKey;
2752
-
2753
- // Add which for click: 1 == left; 2 == middle; 3 == right
2754
- // Note: button is not normalized, so don't use it
2755
- if ( !event.which && event.button )
2756
- event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
2757
-
2758
- return event;
2759
- },
2760
-
2761
- proxy: function( fn, proxy ){
2762
- proxy = proxy || function(){ return fn.apply(this, arguments); };
2763
- // Set the guid of unique handler to the same of original handler, so it can be removed
2764
- proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++;
2765
- // So proxy can be declared as an argument
2766
- return proxy;
2767
- },
2768
-
2769
- special: {
2770
- ready: {
2771
- // Make sure the ready event is setup
2772
- setup: bindReady,
2773
- teardown: function() {}
2774
- }
2775
- },
2776
-
2777
- specialAll: {
2778
- live: {
2779
- setup: function( selector, namespaces ){
2780
- jQuery.event.add( this, namespaces[0], liveHandler );
2781
- },
2782
- teardown: function( namespaces ){
2783
- if ( namespaces.length ) {
2784
- var remove = 0, name = RegExp("(^|\\.)" + namespaces[0] + "(\\.|$)");
2785
-
2786
- jQuery.each( (jQuery.data(this, "events").live || {}), function(){
2787
- if ( name.test(this.type) )
2788
- remove++;
2789
- });
2790
-
2791
- if ( remove < 1 )
2792
- jQuery.event.remove( this, namespaces[0], liveHandler );
2793
- }
2794
- }
2795
- }
2796
- }
2797
- };
2798
-
2799
- jQuery.Event = function( src ){
2800
- // Allow instantiation without the 'new' keyword
2801
- if( !this.preventDefault )
2802
- return new jQuery.Event(src);
2803
-
2804
- // Event object
2805
- if( src && src.type ){
2806
- this.originalEvent = src;
2807
- this.type = src.type;
2808
- // Event type
2809
- }else
2810
- this.type = src;
2811
-
2812
- // timeStamp is buggy for some events on Firefox(#3843)
2813
- // So we won't rely on the native value
2814
- this.timeStamp = now();
2815
-
2816
- // Mark it as fixed
2817
- this[expando] = true;
2818
- };
2819
-
2820
- function returnFalse(){
2821
- return false;
2822
- }
2823
- function returnTrue(){
2824
- return true;
2825
- }
2826
-
2827
- // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
2828
- // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
2829
- jQuery.Event.prototype = {
2830
- preventDefault: function() {
2831
- this.isDefaultPrevented = returnTrue;
2832
-
2833
- var e = this.originalEvent;
2834
- if( !e )
2835
- return;
2836
- // if preventDefault exists run it on the original event
2837
- if (e.preventDefault)
2838
- e.preventDefault();
2839
- // otherwise set the returnValue property of the original event to false (IE)
2840
- e.returnValue = false;
2841
- },
2842
- stopPropagation: function() {
2843
- this.isPropagationStopped = returnTrue;
2844
-
2845
- var e = this.originalEvent;
2846
- if( !e )
2847
- return;
2848
- // if stopPropagation exists run it on the original event
2849
- if (e.stopPropagation)
2850
- e.stopPropagation();
2851
- // otherwise set the cancelBubble property of the original event to true (IE)
2852
- e.cancelBubble = true;
2853
- },
2854
- stopImmediatePropagation:function(){
2855
- this.isImmediatePropagationStopped = returnTrue;
2856
- this.stopPropagation();
2857
- },
2858
- isDefaultPrevented: returnFalse,
2859
- isPropagationStopped: returnFalse,
2860
- isImmediatePropagationStopped: returnFalse
2861
- };
2862
- // Checks if an event happened on an element within another element
2863
- // Used in jQuery.event.special.mouseenter and mouseleave handlers
2864
- var withinElement = function(event) {
2865
- // Check if mouse(over|out) are still within the same parent element
2866
- var parent = event.relatedTarget;
2867
- // Traverse up the tree
2868
- while ( parent && parent != this )
2869
- try { parent = parent.parentNode; }
2870
- catch(e) { parent = this; }
2871
-
2872
- if( parent != this ){
2873
- // set the correct event type
2874
- event.type = event.data;
2875
- // handle event if we actually just moused on to a non sub-element
2876
- jQuery.event.handle.apply( this, arguments );
2877
- }
2878
- };
2879
-
2880
- jQuery.each({
2881
- mouseover: 'mouseenter',
2882
- mouseout: 'mouseleave'
2883
- }, function( orig, fix ){
2884
- jQuery.event.special[ fix ] = {
2885
- setup: function(){
2886
- jQuery.event.add( this, orig, withinElement, fix );
2887
- },
2888
- teardown: function(){
2889
- jQuery.event.remove( this, orig, withinElement );
2890
- }
2891
- };
2892
- });
2893
-
2894
- jQuery.fn.extend({
2895
- bind: function( type, data, fn ) {
2896
- return type == "unload" ? this.one(type, data, fn) : this.each(function(){
2897
- jQuery.event.add( this, type, fn || data, fn && data );
2898
- });
2899
- },
2900
-
2901
- one: function( type, data, fn ) {
2902
- var one = jQuery.event.proxy( fn || data, function(event) {
2903
- jQuery(this).unbind(event, one);
2904
- return (fn || data).apply( this, arguments );
2905
- });
2906
- return this.each(function(){
2907
- jQuery.event.add( this, type, one, fn && data);
2908
- });
2909
- },
2910
-
2911
- unbind: function( type, fn ) {
2912
- return this.each(function(){
2913
- jQuery.event.remove( this, type, fn );
2914
- });
2915
- },
2916
-
2917
- trigger: function( type, data ) {
2918
- return this.each(function(){
2919
- jQuery.event.trigger( type, data, this );
2920
- });
2921
- },
2922
-
2923
- triggerHandler: function( type, data ) {
2924
- if( this[0] ){
2925
- var event = jQuery.Event(type);
2926
- event.preventDefault();
2927
- event.stopPropagation();
2928
- jQuery.event.trigger( event, data, this[0] );
2929
- return event.result;
2930
- }
2931
- },
2932
-
2933
- toggle: function( fn ) {
2934
- // Save reference to arguments for access in closure
2935
- var args = arguments, i = 1;
2936
-
2937
- // link all the functions, so any of them can unbind this click handler
2938
- while( i < args.length )
2939
- jQuery.event.proxy( fn, args[i++] );
2940
-
2941
- return this.click( jQuery.event.proxy( fn, function(event) {
2942
- // Figure out which function to execute
2943
- this.lastToggle = ( this.lastToggle || 0 ) % i;
2944
-
2945
- // Make sure that clicks stop
2946
- event.preventDefault();
2947
-
2948
- // and execute the function
2949
- return args[ this.lastToggle++ ].apply( this, arguments ) || false;
2950
- }));
2951
- },
2952
-
2953
- hover: function(fnOver, fnOut) {
2954
- return this.mouseenter(fnOver).mouseleave(fnOut);
2955
- },
2956
-
2957
- ready: function(fn) {
2958
- // Attach the listeners
2959
- bindReady();
2960
-
2961
- // If the DOM is already ready
2962
- if ( jQuery.isReady )
2963
- // Execute the function immediately
2964
- fn.call( document, jQuery );
2965
-
2966
- // Otherwise, remember the function for later
2967
- else
2968
- // Add the function to the wait list
2969
- jQuery.readyList.push( fn );
2970
-
2971
- return this;
2972
- },
2973
-
2974
- live: function( type, fn ){
2975
- var proxy = jQuery.event.proxy( fn );
2976
- proxy.guid += this.selector + type;
2977
-
2978
- jQuery(document).bind( liveConvert(type, this.selector), this.selector, proxy );
2979
-
2980
- return this;
2981
- },
2982
-
2983
- die: function( type, fn ){
2984
- jQuery(document).unbind( liveConvert(type, this.selector), fn ? { guid: fn.guid + this.selector + type } : null );
2985
- return this;
2986
- }
2987
- });
2988
-
2989
- function liveHandler( event ){
2990
- var check = RegExp("(^|\\.)" + event.type + "(\\.|$)"),
2991
- stop = true,
2992
- elems = [];
2993
-
2994
- jQuery.each(jQuery.data(this, "events").live || [], function(i, fn){
2995
- if ( check.test(fn.type) ) {
2996
- var elem = jQuery(event.target).closest(fn.data)[0];
2997
- if ( elem )
2998
- elems.push({ elem: elem, fn: fn });
2999
- }
3000
- });
3001
-
3002
- elems.sort(function(a,b) {
3003
- return jQuery.data(a.elem, "closest") - jQuery.data(b.elem, "closest");
3004
- });
3005
-
3006
- jQuery.each(elems, function(){
3007
- if ( this.fn.call(this.elem, event, this.fn.data) === false )
3008
- return (stop = false);
3009
- });
3010
-
3011
- return stop;
3012
- }
3013
-
3014
- function liveConvert(type, selector){
3015
- return ["live", type, selector.replace(/\./g, "`").replace(/ /g, "|")].join(".");
3016
- }
3017
-
3018
- jQuery.extend({
3019
- isReady: false,
3020
- readyList: [],
3021
- // Handle when the DOM is ready
3022
- ready: function() {
3023
- // Make sure that the DOM is not already loaded
3024
- if ( !jQuery.isReady ) {
3025
- // Remember that the DOM is ready
3026
- jQuery.isReady = true;
3027
-
3028
- // If there are functions bound, to execute
3029
- if ( jQuery.readyList ) {
3030
- // Execute all of them
3031
- jQuery.each( jQuery.readyList, function(){
3032
- this.call( document, jQuery );
3033
- });
3034
-
3035
- // Reset the list of functions
3036
- jQuery.readyList = null;
3037
- }
3038
-
3039
- // Trigger any bound ready events
3040
- jQuery(document).triggerHandler("ready");
3041
- }
3042
- }
3043
- });
3044
-
3045
- var readyBound = false;
3046
-
3047
- function bindReady(){
3048
- if ( readyBound ) return;
3049
- readyBound = true;
3050
-
3051
- // Mozilla, Opera and webkit nightlies currently support this event
3052
- if ( document.addEventListener ) {
3053
- // Use the handy event callback
3054
- document.addEventListener( "DOMContentLoaded", function(){
3055
- document.removeEventListener( "DOMContentLoaded", arguments.callee, false );
3056
- jQuery.ready();
3057
- }, false );
3058
-
3059
- // If IE event model is used
3060
- } else if ( document.attachEvent ) {
3061
- // ensure firing before onload,
3062
- // maybe late but safe also for iframes
3063
- document.attachEvent("onreadystatechange", function(){
3064
- if ( document.readyState === "complete" ) {
3065
- document.detachEvent( "onreadystatechange", arguments.callee );
3066
- jQuery.ready();
3067
- }
3068
- });
3069
-
3070
- // If IE and not an iframe
3071
- // continually check to see if the document is ready
3072
- if ( document.documentElement.doScroll && window == window.top ) (function(){
3073
- if ( jQuery.isReady ) return;
3074
-
3075
- try {
3076
- // If IE is used, use the trick by Diego Perini
3077
- // http://javascript.nwbox.com/IEContentLoaded/
3078
- document.documentElement.doScroll("left");
3079
- } catch( error ) {
3080
- setTimeout( arguments.callee, 0 );
3081
- return;
3082
- }
3083
-
3084
- // and execute any waiting functions
3085
- jQuery.ready();
3086
- })();
3087
- }
3088
-
3089
- // A fallback to window.onload, that will always work
3090
- jQuery.event.add( window, "load", jQuery.ready );
3091
- }
3092
-
3093
- jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
3094
- "mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," +
3095
- "change,select,submit,keydown,keypress,keyup,error").split(","), function(i, name){
3096
-
3097
- // Handle event binding
3098
- jQuery.fn[name] = function(fn){
3099
- return fn ? this.bind(name, fn) : this.trigger(name);
3100
- };
3101
- });
3102
-
3103
- // Prevent memory leaks in IE
3104
- // And prevent errors on refresh with events like mouseover in other browsers
3105
- // Window isn't included so as not to unbind existing unload events
3106
- jQuery( window ).bind( 'unload', function(){
3107
- for ( var id in jQuery.cache )
3108
- // Skip the window
3109
- if ( id != 1 && jQuery.cache[ id ].handle )
3110
- jQuery.event.remove( jQuery.cache[ id ].handle.elem );
3111
- });
3112
- (function(){
3113
-
3114
- jQuery.support = {};
3115
-
3116
- var root = document.documentElement,
3117
- script = document.createElement("script"),
3118
- div = document.createElement("div"),
3119
- id = "script" + (new Date).getTime();
3120
-
3121
- div.style.display = "none";
3122
- div.innerHTML = ' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
3123
-
3124
- var all = div.getElementsByTagName("*"),
3125
- a = div.getElementsByTagName("a")[0];
3126
-
3127
- // Can't get basic test support
3128
- if ( !all || !all.length || !a ) {
3129
- return;
3130
- }
3131
-
3132
- jQuery.support = {
3133
- // IE strips leading whitespace when .innerHTML is used
3134
- leadingWhitespace: div.firstChild.nodeType == 3,
3135
-
3136
- // Make sure that tbody elements aren't automatically inserted
3137
- // IE will insert them into empty tables
3138
- tbody: !div.getElementsByTagName("tbody").length,
3139
-
3140
- // Make sure that you can get all elements in an <object> element
3141
- // IE 7 always returns no results
3142
- objectAll: !!div.getElementsByTagName("object")[0]
3143
- .getElementsByTagName("*").length,
3144
-
3145
- // Make sure that link elements get serialized correctly by innerHTML
3146
- // This requires a wrapper element in IE
3147
- htmlSerialize: !!div.getElementsByTagName("link").length,
3148
-
3149
- // Get the style information from getAttribute
3150
- // (IE uses .cssText insted)
3151
- style: /red/.test( a.getAttribute("style") ),
3152
-
3153
- // Make sure that URLs aren't manipulated
3154
- // (IE normalizes it by default)
3155
- hrefNormalized: a.getAttribute("href") === "/a",
3156
-
3157
- // Make sure that element opacity exists
3158
- // (IE uses filter instead)
3159
- opacity: a.style.opacity === "0.5",
3160
-
3161
- // Verify style float existence
3162
- // (IE uses styleFloat instead of cssFloat)
3163
- cssFloat: !!a.style.cssFloat,
3164
-
3165
- // Will be defined later
3166
- scriptEval: false,
3167
- noCloneEvent: true,
3168
- boxModel: null
3169
- };
3170
-
3171
- script.type = "text/javascript";
3172
- try {
3173
- script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
3174
- } catch(e){}
3175
-
3176
- root.insertBefore( script, root.firstChild );
3177
-
3178
- // Make sure that the execution of code works by injecting a script
3179
- // tag with appendChild/createTextNode
3180
- // (IE doesn't support this, fails, and uses .text instead)
3181
- if ( window[ id ] ) {
3182
- jQuery.support.scriptEval = true;
3183
- delete window[ id ];
3184
- }
3185
-
3186
- root.removeChild( script );
3187
-
3188
- if ( div.attachEvent && div.fireEvent ) {
3189
- div.attachEvent("onclick", function(){
3190
- // Cloning a node shouldn't copy over any
3191
- // bound event handlers (IE does this)
3192
- jQuery.support.noCloneEvent = false;
3193
- div.detachEvent("onclick", arguments.callee);
3194
- });
3195
- div.cloneNode(true).fireEvent("onclick");
3196
- }
3197
-
3198
- // Figure out if the W3C box model works as expected
3199
- // document.body must exist before we can do this
3200
- jQuery(function(){
3201
- var div = document.createElement("div");
3202
- div.style.width = div.style.paddingLeft = "1px";
3203
-
3204
- document.body.appendChild( div );
3205
- jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
3206
- document.body.removeChild( div ).style.display = 'none';
3207
- });
3208
- })();
3209
-
3210
- var styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat";
3211
-
3212
- jQuery.props = {
3213
- "for": "htmlFor",
3214
- "class": "className",
3215
- "float": styleFloat,
3216
- cssFloat: styleFloat,
3217
- styleFloat: styleFloat,
3218
- readonly: "readOnly",
3219
- maxlength: "maxLength",
3220
- cellspacing: "cellSpacing",
3221
- rowspan: "rowSpan",
3222
- tabindex: "tabIndex"
3223
- };
3224
- jQuery.fn.extend({
3225
- // Keep a copy of the old load
3226
- _load: jQuery.fn.load,
3227
-
3228
- load: function( url, params, callback ) {
3229
- if ( typeof url !== "string" )
3230
- return this._load( url );
3231
-
3232
- var off = url.indexOf(" ");
3233
- if ( off >= 0 ) {
3234
- var selector = url.slice(off, url.length);
3235
- url = url.slice(0, off);
3236
- }
3237
-
3238
- // Default to a GET request
3239
- var type = "GET";
3240
-
3241
- // If the second parameter was provided
3242
- if ( params )
3243
- // If it's a function
3244
- if ( jQuery.isFunction( params ) ) {
3245
- // We assume that it's the callback
3246
- callback = params;
3247
- params = null;
3248
-
3249
- // Otherwise, build a param string
3250
- } else if( typeof params === "object" ) {
3251
- params = jQuery.param( params );
3252
- type = "POST";
3253
- }
3254
-
3255
- var self = this;
3256
-
3257
- // Request the remote document
3258
- jQuery.ajax({
3259
- url: url,
3260
- type: type,
3261
- dataType: "html",
3262
- data: params,
3263
- complete: function(res, status){
3264
- // If successful, inject the HTML into all the matched elements
3265
- if ( status == "success" || status == "notmodified" )
3266
- // See if a selector was specified
3267
- self.html( selector ?
3268
- // Create a dummy div to hold the results
3269
- jQuery("<div/>")
3270
- // inject the contents of the document in, removing the scripts
3271
- // to avoid any 'Permission Denied' errors in IE
3272
- .append(res.responseText.replace(/<script(.|\s)*?\/script>/g, ""))
3273
-
3274
- // Locate the specified elements
3275
- .find(selector) :
3276
-
3277
- // If not, just inject the full result
3278
- res.responseText );
3279
-
3280
- if( callback )
3281
- self.each( callback, [res.responseText, status, res] );
3282
- }
3283
- });
3284
- return this;
3285
- },
3286
-
3287
- serialize: function() {
3288
- return jQuery.param(this.serializeArray());
3289
- },
3290
- serializeArray: function() {
3291
- return this.map(function(){
3292
- return this.elements ? jQuery.makeArray(this.elements) : this;
3293
- })
3294
- .filter(function(){
3295
- return this.name && !this.disabled &&
3296
- (this.checked || /select|textarea/i.test(this.nodeName) ||
3297
- /text|hidden|password|search/i.test(this.type));
3298
- })
3299
- .map(function(i, elem){
3300
- var val = jQuery(this).val();
3301
- return val == null ? null :
3302
- jQuery.isArray(val) ?
3303
- jQuery.map( val, function(val, i){
3304
- return {name: elem.name, value: val};
3305
- }) :
3306
- {name: elem.name, value: val};
3307
- }).get();
3308
- }
3309
- });
3310
-
3311
- // Attach a bunch of functions for handling common AJAX events
3312
- jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){
3313
- jQuery.fn[o] = function(f){
3314
- return this.bind(o, f);
3315
- };
3316
- });
3317
-
3318
- var jsc = now();
3319
-
3320
- jQuery.extend({
3321
-
3322
- get: function( url, data, callback, type ) {
3323
- // shift arguments if data argument was ommited
3324
- if ( jQuery.isFunction( data ) ) {
3325
- callback = data;
3326
- data = null;
3327
- }
3328
-
3329
- return jQuery.ajax({
3330
- type: "GET",
3331
- url: url,
3332
- data: data,
3333
- success: callback,
3334
- dataType: type
3335
- });
3336
- },
3337
-
3338
- getScript: function( url, callback ) {
3339
- return jQuery.get(url, null, callback, "script");
3340
- },
3341
-
3342
- getJSON: function( url, data, callback ) {
3343
- return jQuery.get(url, data, callback, "json");
3344
- },
3345
-
3346
- post: function( url, data, callback, type ) {
3347
- if ( jQuery.isFunction( data ) ) {
3348
- callback = data;
3349
- data = {};
3350
- }
3351
-
3352
- return jQuery.ajax({
3353
- type: "POST",
3354
- url: url,
3355
- data: data,
3356
- success: callback,
3357
- dataType: type
3358
- });
3359
- },
3360
-
3361
- ajaxSetup: function( settings ) {
3362
- jQuery.extend( jQuery.ajaxSettings, settings );
3363
- },
3364
-
3365
- ajaxSettings: {
3366
- url: location.href,
3367
- global: true,
3368
- type: "GET",
3369
- contentType: "application/x-www-form-urlencoded",
3370
- processData: true,
3371
- async: true,
3372
- /*
3373
- timeout: 0,
3374
- data: null,
3375
- username: null,
3376
- password: null,
3377
- */
3378
- // Create the request object; Microsoft failed to properly
3379
- // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
3380
- // This function can be overriden by calling jQuery.ajaxSetup
3381
- xhr:function(){
3382
- return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
3383
- },
3384
- accepts: {
3385
- xml: "application/xml, text/xml",
3386
- html: "text/html",
3387
- script: "text/javascript, application/javascript",
3388
- json: "application/json, text/javascript",
3389
- text: "text/plain",
3390
- _default: "*/*"
3391
- }
3392
- },
3393
-
3394
- // Last-Modified header cache for next request
3395
- lastModified: {},
3396
-
3397
- ajax: function( s ) {
3398
- // Extend the settings, but re-extend 's' so that it can be
3399
- // checked again later (in the test suite, specifically)
3400
- s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
3401
-
3402
- var jsonp, jsre = /=\?(&|$)/g, status, data,
3403
- type = s.type.toUpperCase();
3404
-
3405
- // convert data if not already a string
3406
- if ( s.data && s.processData && typeof s.data !== "string" )
3407
- s.data = jQuery.param(s.data);
3408
-
3409
- // Handle JSONP Parameter Callbacks
3410
- if ( s.dataType == "jsonp" ) {
3411
- if ( type == "GET" ) {
3412
- if ( !s.url.match(jsre) )
3413
- s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?";
3414
- } else if ( !s.data || !s.data.match(jsre) )
3415
- s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
3416
- s.dataType = "json";
3417
- }
3418
-
3419
- // Build temporary JSONP function
3420
- if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
3421
- jsonp = "jsonp" + jsc++;
3422
-
3423
- // Replace the =? sequence both in the query string and the data
3424
- if ( s.data )
3425
- s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
3426
- s.url = s.url.replace(jsre, "=" + jsonp + "$1");
3427
-
3428
- // We need to make sure
3429
- // that a JSONP style response is executed properly
3430
- s.dataType = "script";
3431
-
3432
- // Handle JSONP-style loading
3433
- window[ jsonp ] = function(tmp){
3434
- data = tmp;
3435
- success();
3436
- complete();
3437
- // Garbage collect
3438
- window[ jsonp ] = undefined;
3439
- try{ delete window[ jsonp ]; } catch(e){}
3440
- if ( head )
3441
- head.removeChild( script );
3442
- };
3443
- }
3444
-
3445
- if ( s.dataType == "script" && s.cache == null )
3446
- s.cache = false;
3447
-
3448
- if ( s.cache === false && type == "GET" ) {
3449
- var ts = now();
3450
- // try replacing _= if it is there
3451
- var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
3452
- // if nothing was replaced, add timestamp to the end
3453
- s.url = ret + ((ret == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + ts : "");
3454
- }
3455
-
3456
- // If data is available, append data to url for get requests
3457
- if ( s.data && type == "GET" ) {
3458
- s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
3459
-
3460
- // IE likes to send both get and post data, prevent this
3461
- s.data = null;
3462
- }
3463
-
3464
- // Watch for a new set of requests
3465
- if ( s.global && ! jQuery.active++ )
3466
- jQuery.event.trigger( "ajaxStart" );
3467
-
3468
- // Matches an absolute URL, and saves the domain
3469
- var parts = /^(\w+:)?\/\/([^\/?#]+)/.exec( s.url );
3470
-
3471
- // If we're requesting a remote document
3472
- // and trying to load JSON or Script with a GET
3473
- if ( s.dataType == "script" && type == "GET" && parts
3474
- && ( parts[1] && parts[1] != location.protocol || parts[2] != location.host )){
3475
-
3476
- var head = document.getElementsByTagName("head")[0];
3477
- var script = document.createElement("script");
3478
- script.src = s.url;
3479
- if (s.scriptCharset)
3480
- script.charset = s.scriptCharset;
3481
-
3482
- // Handle Script loading
3483
- if ( !jsonp ) {
3484
- var done = false;
3485
-
3486
- // Attach handlers for all browsers
3487
- script.onload = script.onreadystatechange = function(){
3488
- if ( !done && (!this.readyState ||
3489
- this.readyState == "loaded" || this.readyState == "complete") ) {
3490
- done = true;
3491
- success();
3492
- complete();
3493
-
3494
- // Handle memory leak in IE
3495
- script.onload = script.onreadystatechange = null;
3496
- head.removeChild( script );
3497
- }
3498
- };
3499
- }
3500
-
3501
- head.appendChild(script);
3502
-
3503
- // We handle everything using the script element injection
3504
- return undefined;
3505
- }
3506
-
3507
- var requestDone = false;
3508
-
3509
- // Create the request object
3510
- var xhr = s.xhr();
3511
-
3512
- // Open the socket
3513
- // Passing null username, generates a login popup on Opera (#2865)
3514
- if( s.username )
3515
- xhr.open(type, s.url, s.async, s.username, s.password);
3516
- else
3517
- xhr.open(type, s.url, s.async);
3518
-
3519
- // Need an extra try/catch for cross domain requests in Firefox 3
3520
- try {
3521
- // Set the correct header, if data is being sent
3522
- if ( s.data )
3523
- xhr.setRequestHeader("Content-Type", s.contentType);
3524
-
3525
- // Set the If-Modified-Since header, if ifModified mode.
3526
- if ( s.ifModified )
3527
- xhr.setRequestHeader("If-Modified-Since",
3528
- jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT" );
3529
-
3530
- // Set header so the called script knows that it's an XMLHttpRequest
3531
- xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
3532
-
3533
- // Set the Accepts header for the server, depending on the dataType
3534
- xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
3535
- s.accepts[ s.dataType ] + ", */*" :
3536
- s.accepts._default );
3537
- } catch(e){}
3538
-
3539
- // Allow custom headers/mimetypes and early abort
3540
- if ( s.beforeSend && s.beforeSend(xhr, s) === false ) {
3541
- // Handle the global AJAX counter
3542
- if ( s.global && ! --jQuery.active )
3543
- jQuery.event.trigger( "ajaxStop" );
3544
- // close opended socket
3545
- xhr.abort();
3546
- return false;
3547
- }
3548
-
3549
- if ( s.global )
3550
- jQuery.event.trigger("ajaxSend", [xhr, s]);
3551
-
3552
- // Wait for a response to come back
3553
- var onreadystatechange = function(isTimeout){
3554
- // The request was aborted, clear the interval and decrement jQuery.active
3555
- if (xhr.readyState == 0) {
3556
- if (ival) {
3557
- // clear poll interval
3558
- clearInterval(ival);
3559
- ival = null;
3560
- // Handle the global AJAX counter
3561
- if ( s.global && ! --jQuery.active )
3562
- jQuery.event.trigger( "ajaxStop" );
3563
- }
3564
- // The transfer is complete and the data is available, or the request timed out
3565
- } else if ( !requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout") ) {
3566
- requestDone = true;
3567
-
3568
- // clear poll interval
3569
- if (ival) {
3570
- clearInterval(ival);
3571
- ival = null;
3572
- }
3573
-
3574
- status = isTimeout == "timeout" ? "timeout" :
3575
- !jQuery.httpSuccess( xhr ) ? "error" :
3576
- s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? "notmodified" :
3577
- "success";
3578
-
3579
- if ( status == "success" ) {
3580
- // Watch for, and catch, XML document parse errors
3581
- try {
3582
- // process the data (runs the xml through httpData regardless of callback)
3583
- data = jQuery.httpData( xhr, s.dataType, s );
3584
- } catch(e) {
3585
- status = "parsererror";
3586
- }
3587
- }
3588
-
3589
- // Make sure that the request was successful or notmodified
3590
- if ( status == "success" ) {
3591
- // Cache Last-Modified header, if ifModified mode.
3592
- var modRes;
3593
- try {
3594
- modRes = xhr.getResponseHeader("Last-Modified");
3595
- } catch(e) {} // swallow exception thrown by FF if header is not available
3596
-
3597
- if ( s.ifModified && modRes )
3598
- jQuery.lastModified[s.url] = modRes;
3599
-
3600
- // JSONP handles its own success callback
3601
- if ( !jsonp )
3602
- success();
3603
- } else
3604
- jQuery.handleError(s, xhr, status);
3605
-
3606
- // Fire the complete handlers
3607
- complete();
3608
-
3609
- if ( isTimeout )
3610
- xhr.abort();
3611
-
3612
- // Stop memory leaks
3613
- if ( s.async )
3614
- xhr = null;
3615
- }
3616
- };
3617
-
3618
- if ( s.async ) {
3619
- // don't attach the handler to the request, just poll it instead
3620
- var ival = setInterval(onreadystatechange, 13);
3621
-
3622
- // Timeout checker
3623
- if ( s.timeout > 0 )
3624
- setTimeout(function(){
3625
- // Check to see if the request is still happening
3626
- if ( xhr && !requestDone )
3627
- onreadystatechange( "timeout" );
3628
- }, s.timeout);
3629
- }
3630
-
3631
- // Send the data
3632
- try {
3633
- xhr.send(s.data);
3634
- } catch(e) {
3635
- jQuery.handleError(s, xhr, null, e);
3636
- }
3637
-
3638
- // firefox 1.5 doesn't fire statechange for sync requests
3639
- if ( !s.async )
3640
- onreadystatechange();
3641
-
3642
- function success(){
3643
- // If a local callback was specified, fire it and pass it the data
3644
- if ( s.success )
3645
- s.success( data, status );
3646
-
3647
- // Fire the global callback
3648
- if ( s.global )
3649
- jQuery.event.trigger( "ajaxSuccess", [xhr, s] );
3650
- }
3651
-
3652
- function complete(){
3653
- // Process result
3654
- if ( s.complete )
3655
- s.complete(xhr, status);
3656
-
3657
- // The request was completed
3658
- if ( s.global )
3659
- jQuery.event.trigger( "ajaxComplete", [xhr, s] );
3660
-
3661
- // Handle the global AJAX counter
3662
- if ( s.global && ! --jQuery.active )
3663
- jQuery.event.trigger( "ajaxStop" );
3664
- }
3665
-
3666
- // return XMLHttpRequest to allow aborting the request etc.
3667
- return xhr;
3668
- },
3669
-
3670
- handleError: function( s, xhr, status, e ) {
3671
- // If a local callback was specified, fire it
3672
- if ( s.error ) s.error( xhr, status, e );
3673
-
3674
- // Fire the global callback
3675
- if ( s.global )
3676
- jQuery.event.trigger( "ajaxError", [xhr, s, e] );
3677
- },
3678
-
3679
- // Counter for holding the number of active queries
3680
- active: 0,
3681
-
3682
- // Determines if an XMLHttpRequest was successful or not
3683
- httpSuccess: function( xhr ) {
3684
- try {
3685
- // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
3686
- return !xhr.status && location.protocol == "file:" ||
3687
- ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223;
3688
- } catch(e){}
3689
- return false;
3690
- },
3691
-
3692
- // Determines if an XMLHttpRequest returns NotModified
3693
- httpNotModified: function( xhr, url ) {
3694
- try {
3695
- var xhrRes = xhr.getResponseHeader("Last-Modified");
3696
-
3697
- // Firefox always returns 200. check Last-Modified date
3698
- return xhr.status == 304 || xhrRes == jQuery.lastModified[url];
3699
- } catch(e){}
3700
- return false;
3701
- },
3702
-
3703
- httpData: function( xhr, type, s ) {
3704
- var ct = xhr.getResponseHeader("content-type"),
3705
- xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,
3706
- data = xml ? xhr.responseXML : xhr.responseText;
3707
-
3708
- if ( xml && data.documentElement.tagName == "parsererror" )
3709
- throw "parsererror";
3710
-
3711
- // Allow a pre-filtering function to sanitize the response
3712
- // s != null is checked to keep backwards compatibility
3713
- if( s && s.dataFilter )
3714
- data = s.dataFilter( data, type );
3715
-
3716
- // The filter can actually parse the response
3717
- if( typeof data === "string" ){
3718
-
3719
- // If the type is "script", eval it in global context
3720
- if ( type == "script" )
3721
- jQuery.globalEval( data );
3722
-
3723
- // Get the JavaScript object, if JSON is used.
3724
- if ( type == "json" )
3725
- data = window["eval"]("(" + data + ")");
3726
- }
3727
-
3728
- return data;
3729
- },
3730
-
3731
- // Serialize an array of form elements or a set of
3732
- // key/values into a query string
3733
- param: function( a ) {
3734
- var s = [ ];
3735
-
3736
- function add( key, value ){
3737
- s[ s.length ] = encodeURIComponent(key) + '=' + encodeURIComponent(value);
3738
- };
3739
-
3740
- // If an array was passed in, assume that it is an array
3741
- // of form elements
3742
- if ( jQuery.isArray(a) || a.jquery )
3743
- // Serialize the form elements
3744
- jQuery.each( a, function(){
3745
- add( this.name, this.value );
3746
- });
3747
-
3748
- // Otherwise, assume that it's an object of key/value pairs
3749
- else
3750
- // Serialize the key/values
3751
- for ( var j in a )
3752
- // If the value is an array then the key names need to be repeated
3753
- if ( jQuery.isArray(a[j]) )
3754
- jQuery.each( a[j], function(){
3755
- add( j, this );
3756
- });
3757
- else
3758
- add( j, jQuery.isFunction(a[j]) ? a[j]() : a[j] );
3759
-
3760
- // Return the resulting serialization
3761
- return s.join("&").replace(/%20/g, "+");
3762
- }
3763
-
3764
- });
3765
- var elemdisplay = {},
3766
- timerId,
3767
- fxAttrs = [
3768
- // height animations
3769
- [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
3770
- // width animations
3771
- [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
3772
- // opacity animations
3773
- [ "opacity" ]
3774
- ];
3775
-
3776
- function genFx( type, num ){
3777
- var obj = {};
3778
- jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function(){
3779
- obj[ this ] = type;
3780
- });
3781
- return obj;
3782
- }
3783
-
3784
- jQuery.fn.extend({
3785
- show: function(speed,callback){
3786
- if ( speed ) {
3787
- return this.animate( genFx("show", 3), speed, callback);
3788
- } else {
3789
- for ( var i = 0, l = this.length; i < l; i++ ){
3790
- var old = jQuery.data(this[i], "olddisplay");
3791
-
3792
- this[i].style.display = old || "";
3793
-
3794
- if ( jQuery.css(this[i], "display") === "none" ) {
3795
- var tagName = this[i].tagName, display;
3796
-
3797
- if ( elemdisplay[ tagName ] ) {
3798
- display = elemdisplay[ tagName ];
3799
- } else {
3800
- var elem = jQuery("<" + tagName + " />").appendTo("body");
3801
-
3802
- display = elem.css("display");
3803
- if ( display === "none" )
3804
- display = "block";
3805
-
3806
- elem.remove();
3807
-
3808
- elemdisplay[ tagName ] = display;
3809
- }
3810
-
3811
- jQuery.data(this[i], "olddisplay", display);
3812
- }
3813
- }
3814
-
3815
- // Set the display of the elements in a second loop
3816
- // to avoid the constant reflow
3817
- for ( var i = 0, l = this.length; i < l; i++ ){
3818
- this[i].style.display = jQuery.data(this[i], "olddisplay") || "";
3819
- }
3820
-
3821
- return this;
3822
- }
3823
- },
3824
-
3825
- hide: function(speed,callback){
3826
- if ( speed ) {
3827
- return this.animate( genFx("hide", 3), speed, callback);
3828
- } else {
3829
- for ( var i = 0, l = this.length; i < l; i++ ){
3830
- var old = jQuery.data(this[i], "olddisplay");
3831
- if ( !old && old !== "none" )
3832
- jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
3833
- }
3834
-
3835
- // Set the display of the elements in a second loop
3836
- // to avoid the constant reflow
3837
- for ( var i = 0, l = this.length; i < l; i++ ){
3838
- this[i].style.display = "none";
3839
- }
3840
-
3841
- return this;
3842
- }
3843
- },
3844
-
3845
- // Save the old toggle function
3846
- _toggle: jQuery.fn.toggle,
3847
-
3848
- toggle: function( fn, fn2 ){
3849
- var bool = typeof fn === "boolean";
3850
-
3851
- return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
3852
- this._toggle.apply( this, arguments ) :
3853
- fn == null || bool ?
3854
- this.each(function(){
3855
- var state = bool ? fn : jQuery(this).is(":hidden");
3856
- jQuery(this)[ state ? "show" : "hide" ]();
3857
- }) :
3858
- this.animate(genFx("toggle", 3), fn, fn2);
3859
- },
3860
-
3861
- fadeTo: function(speed,to,callback){
3862
- return this.animate({opacity: to}, speed, callback);
3863
- },
3864
-
3865
- animate: function( prop, speed, easing, callback ) {
3866
- var optall = jQuery.speed(speed, easing, callback);
3867
-
3868
- return this[ optall.queue === false ? "each" : "queue" ](function(){
3869
-
3870
- var opt = jQuery.extend({}, optall), p,
3871
- hidden = this.nodeType == 1 && jQuery(this).is(":hidden"),
3872
- self = this;
3873
-
3874
- for ( p in prop ) {
3875
- if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
3876
- return opt.complete.call(this);
3877
-
3878
- if ( ( p == "height" || p == "width" ) && this.style ) {
3879
- // Store display property
3880
- opt.display = jQuery.css(this, "display");
3881
-
3882
- // Make sure that nothing sneaks out
3883
- opt.overflow = this.style.overflow;
3884
- }
3885
- }
3886
-
3887
- if ( opt.overflow != null )
3888
- this.style.overflow = "hidden";
3889
-
3890
- opt.curAnim = jQuery.extend({}, prop);
3891
-
3892
- jQuery.each( prop, function(name, val){
3893
- var e = new jQuery.fx( self, opt, name );
3894
-
3895
- if ( /toggle|show|hide/.test(val) )
3896
- e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );
3897
- else {
3898
- var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
3899
- start = e.cur(true) || 0;
3900
-
3901
- if ( parts ) {
3902
- var end = parseFloat(parts[2]),
3903
- unit = parts[3] || "px";
3904
-
3905
- // We need to compute starting value
3906
- if ( unit != "px" ) {
3907
- self.style[ name ] = (end || 1) + unit;
3908
- start = ((end || 1) / e.cur(true)) * start;
3909
- self.style[ name ] = start + unit;
3910
- }
3911
-
3912
- // If a +=/-= token was provided, we're doing a relative animation
3913
- if ( parts[1] )
3914
- end = ((parts[1] == "-=" ? -1 : 1) * end) + start;
3915
-
3916
- e.custom( start, end, unit );
3917
- } else
3918
- e.custom( start, val, "" );
3919
- }
3920
- });
3921
-
3922
- // For JS strict compliance
3923
- return true;
3924
- });
3925
- },
3926
-
3927
- stop: function(clearQueue, gotoEnd){
3928
- var timers = jQuery.timers;
3929
-
3930
- if (clearQueue)
3931
- this.queue([]);
3932
-
3933
- this.each(function(){
3934
- // go in reverse order so anything added to the queue during the loop is ignored
3935
- for ( var i = timers.length - 1; i >= 0; i-- )
3936
- if ( timers[i].elem == this ) {
3937
- if (gotoEnd)
3938
- // force the next step to be the last
3939
- timers[i](true);
3940
- timers.splice(i, 1);
3941
- }
3942
- });
3943
-
3944
- // start the next in the queue if the last step wasn't forced
3945
- if (!gotoEnd)
3946
- this.dequeue();
3947
-
3948
- return this;
3949
- }
3950
-
3951
- });
3952
-
3953
- // Generate shortcuts for custom animations
3954
- jQuery.each({
3955
- slideDown: genFx("show", 1),
3956
- slideUp: genFx("hide", 1),
3957
- slideToggle: genFx("toggle", 1),
3958
- fadeIn: { opacity: "show" },
3959
- fadeOut: { opacity: "hide" }
3960
- }, function( name, props ){
3961
- jQuery.fn[ name ] = function( speed, callback ){
3962
- return this.animate( props, speed, callback );
3963
- };
3964
- });
3965
-
3966
- jQuery.extend({
3967
-
3968
- speed: function(speed, easing, fn) {
3969
- var opt = typeof speed === "object" ? speed : {
3970
- complete: fn || !fn && easing ||
3971
- jQuery.isFunction( speed ) && speed,
3972
- duration: speed,
3973
- easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
3974
- };
3975
-
3976
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
3977
- jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
3978
-
3979
- // Queueing
3980
- opt.old = opt.complete;
3981
- opt.complete = function(){
3982
- if ( opt.queue !== false )
3983
- jQuery(this).dequeue();
3984
- if ( jQuery.isFunction( opt.old ) )
3985
- opt.old.call( this );
3986
- };
3987
-
3988
- return opt;
3989
- },
3990
-
3991
- easing: {
3992
- linear: function( p, n, firstNum, diff ) {
3993
- return firstNum + diff * p;
3994
- },
3995
- swing: function( p, n, firstNum, diff ) {
3996
- return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
3997
- }
3998
- },
3999
-
4000
- timers: [],
4001
-
4002
- fx: function( elem, options, prop ){
4003
- this.options = options;
4004
- this.elem = elem;
4005
- this.prop = prop;
4006
-
4007
- if ( !options.orig )
4008
- options.orig = {};
4009
- }
4010
-
4011
- });
4012
-
4013
- jQuery.fx.prototype = {
4014
-
4015
- // Simple function for setting a style value
4016
- update: function(){
4017
- if ( this.options.step )
4018
- this.options.step.call( this.elem, this.now, this );
4019
-
4020
- (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
4021
-
4022
- // Set display property to block for height/width animations
4023
- if ( ( this.prop == "height" || this.prop == "width" ) && this.elem.style )
4024
- this.elem.style.display = "block";
4025
- },
4026
-
4027
- // Get the current size
4028
- cur: function(force){
4029
- if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) )
4030
- return this.elem[ this.prop ];
4031
-
4032
- var r = parseFloat(jQuery.css(this.elem, this.prop, force));
4033
- return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
4034
- },
4035
-
4036
- // Start an animation from one number to another
4037
- custom: function(from, to, unit){
4038
- this.startTime = now();
4039
- this.start = from;
4040
- this.end = to;
4041
- this.unit = unit || this.unit || "px";
4042
- this.now = this.start;
4043
- this.pos = this.state = 0;
4044
-
4045
- var self = this;
4046
- function t(gotoEnd){
4047
- return self.step(gotoEnd);
4048
- }
4049
-
4050
- t.elem = this.elem;
4051
-
4052
- if ( t() && jQuery.timers.push(t) && !timerId ) {
4053
- timerId = setInterval(function(){
4054
- var timers = jQuery.timers;
4055
-
4056
- for ( var i = 0; i < timers.length; i++ )
4057
- if ( !timers[i]() )
4058
- timers.splice(i--, 1);
4059
-
4060
- if ( !timers.length ) {
4061
- clearInterval( timerId );
4062
- timerId = undefined;
4063
- }
4064
- }, 13);
4065
- }
4066
- },
4067
-
4068
- // Simple 'show' function
4069
- show: function(){
4070
- // Remember where we started, so that we can go back to it later
4071
- this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
4072
- this.options.show = true;
4073
-
4074
- // Begin the animation
4075
- // Make sure that we start at a small width/height to avoid any
4076
- // flash of content
4077
- this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur());
4078
-
4079
- // Start by showing the element
4080
- jQuery(this.elem).show();
4081
- },
4082
-
4083
- // Simple 'hide' function
4084
- hide: function(){
4085
- // Remember where we started, so that we can go back to it later
4086
- this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
4087
- this.options.hide = true;
4088
-
4089
- // Begin the animation
4090
- this.custom(this.cur(), 0);
4091
- },
4092
-
4093
- // Each step of an animation
4094
- step: function(gotoEnd){
4095
- var t = now();
4096
-
4097
- if ( gotoEnd || t >= this.options.duration + this.startTime ) {
4098
- this.now = this.end;
4099
- this.pos = this.state = 1;
4100
- this.update();
4101
-
4102
- this.options.curAnim[ this.prop ] = true;
4103
-
4104
- var done = true;
4105
- for ( var i in this.options.curAnim )
4106
- if ( this.options.curAnim[i] !== true )
4107
- done = false;
4108
-
4109
- if ( done ) {
4110
- if ( this.options.display != null ) {
4111
- // Reset the overflow
4112
- this.elem.style.overflow = this.options.overflow;
4113
-
4114
- // Reset the display
4115
- this.elem.style.display = this.options.display;
4116
- if ( jQuery.css(this.elem, "display") == "none" )
4117
- this.elem.style.display = "block";
4118
- }
4119
-
4120
- // Hide the element if the "hide" operation was done
4121
- if ( this.options.hide )
4122
- jQuery(this.elem).hide();
4123
-
4124
- // Reset the properties, if the item has been hidden or shown
4125
- if ( this.options.hide || this.options.show )
4126
- for ( var p in this.options.curAnim )
4127
- jQuery.attr(this.elem.style, p, this.options.orig[p]);
4128
-
4129
- // Execute the complete function
4130
- this.options.complete.call( this.elem );
4131
- }
4132
-
4133
- return false;
4134
- } else {
4135
- var n = t - this.startTime;
4136
- this.state = n / this.options.duration;
4137
-
4138
- // Perform the easing function, defaults to swing
4139
- this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);
4140
- this.now = this.start + ((this.end - this.start) * this.pos);
4141
-
4142
- // Perform the next step of the animation
4143
- this.update();
4144
- }
4145
-
4146
- return true;
4147
- }
4148
-
4149
- };
4150
-
4151
- jQuery.extend( jQuery.fx, {
4152
- speeds:{
4153
- slow: 600,
4154
- fast: 200,
4155
- // Default speed
4156
- _default: 400
4157
- },
4158
- step: {
4159
-
4160
- opacity: function(fx){
4161
- jQuery.attr(fx.elem.style, "opacity", fx.now);
4162
- },
4163
-
4164
- _default: function(fx){
4165
- if ( fx.elem.style && fx.elem.style[ fx.prop ] != null )
4166
- fx.elem.style[ fx.prop ] = fx.now + fx.unit;
4167
- else
4168
- fx.elem[ fx.prop ] = fx.now;
4169
- }
4170
- }
4171
- });
4172
- if ( document.documentElement["getBoundingClientRect"] )
4173
- jQuery.fn.offset = function() {
4174
- if ( !this[0] ) return { top: 0, left: 0 };
4175
- if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
4176
- var box = this[0].getBoundingClientRect(), doc = this[0].ownerDocument, body = doc.body, docElem = doc.documentElement,
4177
- clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,
4178
- top = box.top + (self.pageYOffset || jQuery.boxModel && docElem.scrollTop || body.scrollTop ) - clientTop,
4179
- left = box.left + (self.pageXOffset || jQuery.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
4180
- return { top: top, left: left };
4181
- };
4182
- else
4183
- jQuery.fn.offset = function() {
4184
- if ( !this[0] ) return { top: 0, left: 0 };
4185
- if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
4186
- jQuery.offset.initialized || jQuery.offset.initialize();
4187
-
4188
- var elem = this[0], offsetParent = elem.offsetParent, prevOffsetParent = elem,
4189
- doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement,
4190
- body = doc.body, defaultView = doc.defaultView,
4191
- prevComputedStyle = defaultView.getComputedStyle(elem, null),
4192
- top = elem.offsetTop, left = elem.offsetLeft;
4193
-
4194
- while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
4195
- computedStyle = defaultView.getComputedStyle(elem, null);
4196
- top -= elem.scrollTop, left -= elem.scrollLeft;
4197
- if ( elem === offsetParent ) {
4198
- top += elem.offsetTop, left += elem.offsetLeft;
4199
- if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.tagName)) )
4200
- top += parseInt( computedStyle.borderTopWidth, 10) || 0,
4201
- left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
4202
- prevOffsetParent = offsetParent, offsetParent = elem.offsetParent;
4203
- }
4204
- if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" )
4205
- top += parseInt( computedStyle.borderTopWidth, 10) || 0,
4206
- left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
4207
- prevComputedStyle = computedStyle;
4208
- }
4209
-
4210
- if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" )
4211
- top += body.offsetTop,
4212
- left += body.offsetLeft;
4213
-
4214
- if ( prevComputedStyle.position === "fixed" )
4215
- top += Math.max(docElem.scrollTop, body.scrollTop),
4216
- left += Math.max(docElem.scrollLeft, body.scrollLeft);
4217
-
4218
- return { top: top, left: left };
4219
- };
4220
-
4221
- jQuery.offset = {
4222
- initialize: function() {
4223
- if ( this.initialized ) return;
4224
- var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop,
4225
- html = '<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';
4226
-
4227
- rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' };
4228
- for ( prop in rules ) container.style[prop] = rules[prop];
4229
-
4230
- container.innerHTML = html;
4231
- body.insertBefore(container, body.firstChild);
4232
- innerDiv = container.firstChild, checkDiv = innerDiv.firstChild, td = innerDiv.nextSibling.firstChild.firstChild;
4233
-
4234
- this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
4235
- this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
4236
-
4237
- innerDiv.style.overflow = 'hidden', innerDiv.style.position = 'relative';
4238
- this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
4239
-
4240
- body.style.marginTop = '1px';
4241
- this.doesNotIncludeMarginInBodyOffset = (body.offsetTop === 0);
4242
- body.style.marginTop = bodyMarginTop;
4243
-
4244
- body.removeChild(container);
4245
- this.initialized = true;
4246
- },
4247
-
4248
- bodyOffset: function(body) {
4249
- jQuery.offset.initialized || jQuery.offset.initialize();
4250
- var top = body.offsetTop, left = body.offsetLeft;
4251
- if ( jQuery.offset.doesNotIncludeMarginInBodyOffset )
4252
- top += parseInt( jQuery.curCSS(body, 'marginTop', true), 10 ) || 0,
4253
- left += parseInt( jQuery.curCSS(body, 'marginLeft', true), 10 ) || 0;
4254
- return { top: top, left: left };
4255
- }
4256
- };
4257
-
4258
-
4259
- jQuery.fn.extend({
4260
- position: function() {
4261
- var left = 0, top = 0, results;
4262
-
4263
- if ( this[0] ) {
4264
- // Get *real* offsetParent
4265
- var offsetParent = this.offsetParent(),
4266
-
4267
- // Get correct offsets
4268
- offset = this.offset(),
4269
- parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();
4270
-
4271
- // Subtract element margins
4272
- // note: when an element has margin: auto the offsetLeft and marginLeft
4273
- // are the same in Safari causing offset.left to incorrectly be 0
4274
- offset.top -= num( this, 'marginTop' );
4275
- offset.left -= num( this, 'marginLeft' );
4276
-
4277
- // Add offsetParent borders
4278
- parentOffset.top += num( offsetParent, 'borderTopWidth' );
4279
- parentOffset.left += num( offsetParent, 'borderLeftWidth' );
4280
-
4281
- // Subtract the two offsets
4282
- results = {
4283
- top: offset.top - parentOffset.top,
4284
- left: offset.left - parentOffset.left
4285
- };
4286
- }
4287
-
4288
- return results;
4289
- },
4290
-
4291
- offsetParent: function() {
4292
- var offsetParent = this[0].offsetParent || document.body;
4293
- while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static') )
4294
- offsetParent = offsetParent.offsetParent;
4295
- return jQuery(offsetParent);
4296
- }
4297
- });
4298
-
4299
-
4300
- // Create scrollLeft and scrollTop methods
4301
- jQuery.each( ['Left', 'Top'], function(i, name) {
4302
- var method = 'scroll' + name;
4303
-
4304
- jQuery.fn[ method ] = function(val) {
4305
- if (!this[0]) return null;
4306
-
4307
- return val !== undefined ?
4308
-
4309
- // Set the scroll offset
4310
- this.each(function() {
4311
- this == window || this == document ?
4312
- window.scrollTo(
4313
- !i ? val : jQuery(window).scrollLeft(),
4314
- i ? val : jQuery(window).scrollTop()
4315
- ) :
4316
- this[ method ] = val;
4317
- }) :
4318
-
4319
- // Return the scroll offset
4320
- this[0] == window || this[0] == document ?
4321
- self[ i ? 'pageYOffset' : 'pageXOffset' ] ||
4322
- jQuery.boxModel && document.documentElement[ method ] ||
4323
- document.body[ method ] :
4324
- this[0][ method ];
4325
- };
4326
- });
4327
- // Create innerHeight, innerWidth, outerHeight and outerWidth methods
4328
- jQuery.each([ "Height", "Width" ], function(i, name){
4329
-
4330
- var tl = i ? "Left" : "Top", // top or left
4331
- br = i ? "Right" : "Bottom", // bottom or right
4332
- lower = name.toLowerCase();
4333
-
4334
- // innerHeight and innerWidth
4335
- jQuery.fn["inner" + name] = function(){
4336
- return this[0] ?
4337
- jQuery.css( this[0], lower, false, "padding" ) :
4338
- null;
4339
- };
4340
-
4341
- // outerHeight and outerWidth
4342
- jQuery.fn["outer" + name] = function(margin) {
4343
- return this[0] ?
4344
- jQuery.css( this[0], lower, false, margin ? "margin" : "border" ) :
4345
- null;
4346
- };
4347
-
4348
- var type = name.toLowerCase();
4349
-
4350
- jQuery.fn[ type ] = function( size ) {
4351
- // Get window width or height
4352
- return this[0] == window ?
4353
- // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
4354
- document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] ||
4355
- document.body[ "client" + name ] :
4356
-
4357
- // Get document width or height
4358
- this[0] == document ?
4359
- // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
4360
- Math.max(
4361
- document.documentElement["client" + name],
4362
- document.body["scroll" + name], document.documentElement["scroll" + name],
4363
- document.body["offset" + name], document.documentElement["offset" + name]
4364
- ) :
4365
-
4366
- // Get or set width or height on the element
4367
- size === undefined ?
4368
- // Get width or height on the element
4369
- (this.length ? jQuery.css( this[0], type ) : null) :
4370
-
4371
- // Set the width or height on the element (default to pixels if value is unitless)
4372
- this.css( type, typeof size === "string" ? size : size + "px" );
4373
- };
4374
-
4375
- });
4376
- })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/frontend/default/default/joomlart/jmslideshow/js/jquery-ui/jquery-ui.min.js DELETED
@@ -1,406 +0,0 @@
1
- /*!
2
- * jQuery UI 1.8.12
3
- *
4
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5
- * Dual licensed under the MIT or GPL Version 2 licenses.
6
- * http://jquery.org/license
7
- *
8
- * http://docs.jquery.com/UI
9
- */
10
- (function(b,d){function e(f){return!b(f).parents().andSelf().filter(function(){return b.curCSS(this,"visibility")==="hidden"||b.expr.filters.hidden(this)}).length}b.ui=b.ui||{};if(!b.ui.version){b.extend(b.ui,{version:"1.8.12",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,
11
- NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});b.fn.extend({_focus:b.fn.focus,focus:function(f,g){return typeof f==="number"?this.each(function(){var a=this;setTimeout(function(){b(a).focus();g&&g.call(a)},f)}):this._focus.apply(this,arguments)},scrollParent:function(){var f;f=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,
12
- "position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!f.length?b(document):f},zIndex:function(f){if(f!==d)return this.css("zIndex",f);if(this.length){f=b(this[0]);for(var g;f.length&&f[0]!==document;){g=f.css("position");
13
- if(g==="absolute"||g==="relative"||g==="fixed"){g=parseInt(f.css("zIndex"),10);if(!isNaN(g)&&g!==0)return g}f=f.parent()}}return 0},disableSelection:function(){return this.bind((b.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(f){f.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});b.each(["Width","Height"],function(f,g){function a(j,n,o,l){b.each(c,function(){n-=parseFloat(b.curCSS(j,"padding"+this,true))||0;if(o)n-=parseFloat(b.curCSS(j,
14
- "border"+this+"Width",true))||0;if(l)n-=parseFloat(b.curCSS(j,"margin"+this,true))||0});return n}var c=g==="Width"?["Left","Right"]:["Top","Bottom"],h=g.toLowerCase(),i={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,outerWidth:b.fn.outerWidth,outerHeight:b.fn.outerHeight};b.fn["inner"+g]=function(j){if(j===d)return i["inner"+g].call(this);return this.each(function(){b(this).css(h,a(this,j)+"px")})};b.fn["outer"+g]=function(j,n){if(typeof j!=="number")return i["outer"+g].call(this,j);return this.each(function(){b(this).css(h,
15
- a(this,j,true,n)+"px")})}});b.extend(b.expr[":"],{data:function(f,g,a){return!!b.data(f,a[3])},focusable:function(f){var g=f.nodeName.toLowerCase(),a=b.attr(f,"tabindex");if("area"===g){g=f.parentNode;a=g.name;if(!f.href||!a||g.nodeName.toLowerCase()!=="map")return false;f=b("img[usemap=#"+a+"]")[0];return!!f&&e(f)}return(/input|select|textarea|button|object/.test(g)?!f.disabled:"a"==g?f.href||!isNaN(a):!isNaN(a))&&e(f)},tabbable:function(f){var g=b.attr(f,"tabindex");return(isNaN(g)||g>=0)&&b(f).is(":focusable")}});
16
- b(function(){var f=document.body,g=f.appendChild(g=document.createElement("div"));b.extend(g.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});b.support.minHeight=g.offsetHeight===100;b.support.selectstart="onselectstart"in g;f.removeChild(g).style.display="none"});b.extend(b.ui,{plugin:{add:function(f,g,a){f=b.ui[f].prototype;for(var c in a){f.plugins[c]=f.plugins[c]||[];f.plugins[c].push([g,a[c]])}},call:function(f,g,a){if((g=f.plugins[g])&&f.element[0].parentNode)for(var c=0;c<g.length;c++)f.options[g[c][0]]&&
17
- g[c][1].apply(f.element,a)}},contains:function(f,g){return document.compareDocumentPosition?f.compareDocumentPosition(g)&16:f!==g&&f.contains(g)},hasScroll:function(f,g){if(b(f).css("overflow")==="hidden")return false;g=g&&g==="left"?"scrollLeft":"scrollTop";var a=false;if(f[g]>0)return true;f[g]=1;a=f[g]>0;f[g]=0;return a},isOverAxis:function(f,g,a){return f>g&&f<g+a},isOver:function(f,g,a,c,h,i){return b.ui.isOverAxis(f,a,h)&&b.ui.isOverAxis(g,c,i)}})}})(jQuery);
18
- (function(b,d){if(b.cleanData){var e=b.cleanData;b.cleanData=function(g){for(var a=0,c;(c=g[a])!=null;a++)b(c).triggerHandler("remove");e(g)}}else{var f=b.fn.remove;b.fn.remove=function(g,a){return this.each(function(){if(!a)if(!g||b.filter(g,[this]).length)b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return f.call(b(this),g,a)})}}b.widget=function(g,a,c){var h=g.split(".")[0],i;g=g.split(".")[1];i=h+"-"+g;if(!c){c=a;a=b.Widget}b.expr[":"][i]=function(j){return!!b.data(j,
19
- g)};b[h]=b[h]||{};b[h][g]=function(j,n){arguments.length&&this._createWidget(j,n)};a=new a;a.options=b.extend(true,{},a.options);b[h][g].prototype=b.extend(true,a,{namespace:h,widgetName:g,widgetEventPrefix:b[h][g].prototype.widgetEventPrefix||g,widgetBaseClass:i},c);b.widget.bridge(g,b[h][g])};b.widget.bridge=function(g,a){b.fn[g]=function(c){var h=typeof c==="string",i=Array.prototype.slice.call(arguments,1),j=this;c=!h&&i.length?b.extend.apply(null,[true,c].concat(i)):c;if(h&&c.charAt(0)==="_")return j;
20
- h?this.each(function(){var n=b.data(this,g),o=n&&b.isFunction(n[c])?n[c].apply(n,i):n;if(o!==n&&o!==d){j=o;return false}}):this.each(function(){var n=b.data(this,g);n?n.option(c||{})._init():b.data(this,g,new a(c,this))});return j}};b.Widget=function(g,a){arguments.length&&this._createWidget(g,a)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(g,a){b.data(a,this.widgetName,this);this.element=b(a);this.options=b.extend(true,{},this.options,
21
- this._getCreateOptions(),g);var c=this;this.element.bind("remove."+this.widgetName,function(){c.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_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")},
22
- widget:function(){return this.element},option:function(g,a){var c=g;if(arguments.length===0)return b.extend({},this.options);if(typeof g==="string"){if(a===d)return this.options[g];c={};c[g]=a}this._setOptions(c);return this},_setOptions:function(g){var a=this;b.each(g,function(c,h){a._setOption(c,h)});return this},_setOption:function(g,a){this.options[g]=a;if(g==="disabled")this.widget()[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",a);return this},
23
- enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(g,a,c){var h=this.options[g];a=b.Event(a);a.type=(g===this.widgetEventPrefix?g:this.widgetEventPrefix+g).toLowerCase();c=c||{};if(a.originalEvent){g=b.event.props.length;for(var i;g;){i=b.event.props[--g];a[i]=a.originalEvent[i]}}this.element.trigger(a,c);return!(b.isFunction(h)&&h.call(this.element[0],a,c)===false||a.isDefaultPrevented())}}})(jQuery);
24
- (function(b){b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(e){return d._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(true===b.data(e.target,d.widgetName+".preventClickEvent")){b.removeData(e.target,d.widgetName+".preventClickEvent");e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(d){d.originalEvent=
25
- d.originalEvent||{};if(!d.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(d);this._mouseDownEvent=d;var e=this,f=d.which==1,g=typeof this.options.cancel=="string"?b(d.target).parents().add(d.target).filter(this.options.cancel).length:false;if(!f||g||!this._mouseCapture(d))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=
26
- this._mouseStart(d)!==false;if(!this._mouseStarted){d.preventDefault();return true}}true===b.data(d.target,this.widgetName+".preventClickEvent")&&b.removeData(d.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return e._mouseMove(a)};this._mouseUpDelegate=function(a){return e._mouseUp(a)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);d.preventDefault();return d.originalEvent.mouseHandled=
27
- true}},_mouseMove:function(d){if(b.browser.msie&&!(document.documentMode>=9)&&!d.button)return this._mouseUp(d);if(this._mouseStarted){this._mouseDrag(d);return d.preventDefault()}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,d)!==false)?this._mouseDrag(d):this._mouseUp(d);return!this._mouseStarted},_mouseUp:function(d){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
28
- if(this._mouseStarted){this._mouseStarted=false;d.target==this._mouseDownEvent.target&&b.data(d.target,this.widgetName+".preventClickEvent",true);this._mouseStop(d)}return false},_mouseDistanceMet:function(d){return Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
29
- (function(b){b.widget("ui.draggable",b.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
30
- "original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(d){var e=
31
- this.options;if(this.helper||e.disabled||b(d.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(d);if(!this.handle)return false;return true},_mouseStart:function(d){var e=this.options;this.helper=this._createHelper(d);this._cacheHelperProportions();if(b.ui.ddmanager)b.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
32
- this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt);e.containment&&this._setContainment();if(this._trigger("start",d)===false){this._clear();return false}this._cacheHelperProportions();
33
- b.ui.ddmanager&&!e.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,d);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(d,true);return true},_mouseDrag:function(d,e){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");if(!e){e=this._uiHash();if(this._trigger("drag",d,e)===false){this._mouseUp({});return false}this.position=e.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
34
- this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";b.ui.ddmanager&&b.ui.ddmanager.drag(this,d);return false},_mouseStop:function(d){var e=false;if(b.ui.ddmanager&&!this.options.dropBehaviour)e=b.ui.ddmanager.drop(this,d);if(this.dropped){e=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!e||this.options.revert=="valid"&&e||this.options.revert===true||b.isFunction(this.options.revert)&&
35
- this.options.revert.call(this.element,e)){var f=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",d)!==false&&f._clear()})}else this._trigger("stop",d)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(d){var e=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
36
- d.target)e=true});return e},_createHelper:function(d){var e=this.options;d=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[d])):e.helper=="clone"?this.element.clone():this.element;d.parents("body").length||d.appendTo(e.appendTo=="parent"?this.element[0].parentNode:e.appendTo);d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");return d},_adjustOffsetFromHelper:function(d){if(typeof d=="string")d=d.split(" ");if(b.isArray(d))d={left:+d[0],top:+d[1]||
37
- 0};if("left"in d)this.offset.click.left=d.left+this.margins.left;if("right"in d)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if("top"in d)this.offset.click.top=d.top+this.margins.top;if("bottom"in d)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],
38
- this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var d=this.element.position();return{top:d.top-
39
- (parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),
40
- height:this.helper.outerHeight()}},_setContainment:function(){var d=this.options;if(d.containment=="parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[(d.containment=="document"?0:b(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(d.containment=="document"?0:b(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(d.containment=="document"?0:b(window).scrollLeft())+b(d.containment=="document"?
41
- document:window).width()-this.helperProportions.width-this.margins.left,(d.containment=="document"?0:b(window).scrollTop())+(b(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)&&d.containment.constructor!=Array){var e=b(d.containment)[0];if(e){d=b(d.containment).offset();var f=b(e).css("overflow")!="hidden";this.containment=[d.left+(parseInt(b(e).css("borderLeftWidth"),
42
- 10)||0)+(parseInt(b(e).css("paddingLeft"),10)||0),d.top+(parseInt(b(e).css("borderTopWidth"),10)||0)+(parseInt(b(e).css("paddingTop"),10)||0),d.left+(f?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(b(e).css("borderLeftWidth"),10)||0)-(parseInt(b(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,d.top+(f?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(b(e).css("borderTopWidth"),10)||0)-(parseInt(b(e).css("paddingBottom"),
43
- 10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom]}}else if(d.containment.constructor==Array)this.containment=d.containment},_convertPositionTo:function(d,e){if(!e)e=this.position;d=d=="absolute"?1:-1;var f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName);return{top:e.top+this.offset.relative.top*d+this.offset.parent.top*d-(b.browser.safari&&
44
- b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop())*d),left:e.left+this.offset.relative.left*d+this.offset.parent.left*d-(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())*d)}},_generatePosition:function(d){var e=this.options,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],
45
- this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName),a=d.pageX,c=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0])a=this.containment[0]+this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])c=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])a=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])c=
46
- this.containment[3]+this.offset.click.top}if(e.grid){c=this.originalPageY+Math.round((c-this.originalPageY)/e.grid[1])*e.grid[1];c=this.containment?!(c-this.offset.click.top<this.containment[1]||c-this.offset.click.top>this.containment[3])?c:!(c-this.offset.click.top<this.containment[1])?c-e.grid[1]:c+e.grid[1]:c;a=this.originalPageX+Math.round((a-this.originalPageX)/e.grid[0])*e.grid[0];a=this.containment?!(a-this.offset.click.left<this.containment[0]||a-this.offset.click.left>this.containment[2])?
47
- a:!(a-this.offset.click.left<this.containment[0])?a-e.grid[0]:a+e.grid[0]:a}}return{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
48
- g?0:f.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(d,e,f){f=f||this._uiHash();b.ui.plugin.call(this,d,[e,f]);if(d=="drag")this.positionAbs=this._convertPositionTo("absolute");return b.Widget.prototype._trigger.call(this,d,e,f)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,
49
- offset:this.positionAbs}}});b.extend(b.ui.draggable,{version:"1.8.12"});b.ui.plugin.add("draggable","connectToSortable",{start:function(d,e){var f=b(this).data("draggable"),g=f.options,a=b.extend({},e,{item:f.element});f.sortables=[];b(g.connectToSortable).each(function(){var c=b.data(this,"sortable");if(c&&!c.options.disabled){f.sortables.push({instance:c,shouldRevert:c.options.revert});c.refreshPositions();c._trigger("activate",d,a)}})},stop:function(d,e){var f=b(this).data("draggable"),g=b.extend({},
50
- e,{item:f.element});b.each(f.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;f.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(d);this.instance.options.helper=this.instance.options._helper;f.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",d,g)}})},drag:function(d,e){var f=
51
- b(this).data("draggable"),g=this;b.each(f.sortables,function(){this.instance.positionAbs=f.positionAbs;this.instance.helperProportions=f.helperProportions;this.instance.offset.click=f.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(g).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return e.helper[0]};
52
- d.target=this.instance.currentItem[0];this.instance._mouseCapture(d,true);this.instance._mouseStart(d,true,true);this.instance.offset.click.top=f.offset.click.top;this.instance.offset.click.left=f.offset.click.left;this.instance.offset.parent.left-=f.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=f.offset.parent.top-this.instance.offset.parent.top;f._trigger("toSortable",d);f.dropped=this.instance.element;f.currentItem=f.element;this.instance.fromOutside=f}this.instance.currentItem&&
53
- this.instance._mouseDrag(d)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",d,this.instance._uiHash(this.instance));this.instance._mouseStop(d,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();f._trigger("fromSortable",d);f.dropped=false}})}});b.ui.plugin.add("draggable","cursor",
54
- {start:function(){var d=b("body"),e=b(this).data("draggable").options;if(d.css("cursor"))e._cursor=d.css("cursor");d.css("cursor",e.cursor)},stop:function(){var d=b(this).data("draggable").options;d._cursor&&b("body").css("cursor",d._cursor)}});b.ui.plugin.add("draggable","iframeFix",{start:function(){var d=b(this).data("draggable").options;b(d.iframeFix===true?"iframe":d.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+
55
- "px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(b(this).offset()).appendTo("body")})},stop:function(){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});b.ui.plugin.add("draggable","opacity",{start:function(d,e){d=b(e.helper);e=b(this).data("draggable").options;if(d.css("opacity"))e._opacity=d.css("opacity");d.css("opacity",e.opacity)},stop:function(d,e){d=b(this).data("draggable").options;d._opacity&&b(e.helper).css("opacity",
56
- d._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(){var d=b(this).data("draggable");if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML")d.overflowOffset=d.scrollParent.offset()},drag:function(d){var e=b(this).data("draggable"),f=e.options,g=false;if(e.scrollParent[0]!=document&&e.scrollParent[0].tagName!="HTML"){if(!f.axis||f.axis!="x")if(e.overflowOffset.top+e.scrollParent[0].offsetHeight-d.pageY<f.scrollSensitivity)e.scrollParent[0].scrollTop=g=e.scrollParent[0].scrollTop+
57
- f.scrollSpeed;else if(d.pageY-e.overflowOffset.top<f.scrollSensitivity)e.scrollParent[0].scrollTop=g=e.scrollParent[0].scrollTop-f.scrollSpeed;if(!f.axis||f.axis!="y")if(e.overflowOffset.left+e.scrollParent[0].offsetWidth-d.pageX<f.scrollSensitivity)e.scrollParent[0].scrollLeft=g=e.scrollParent[0].scrollLeft+f.scrollSpeed;else if(d.pageX-e.overflowOffset.left<f.scrollSensitivity)e.scrollParent[0].scrollLeft=g=e.scrollParent[0].scrollLeft-f.scrollSpeed}else{if(!f.axis||f.axis!="x")if(d.pageY-b(document).scrollTop()<
58
- f.scrollSensitivity)g=b(document).scrollTop(b(document).scrollTop()-f.scrollSpeed);else if(b(window).height()-(d.pageY-b(document).scrollTop())<f.scrollSensitivity)g=b(document).scrollTop(b(document).scrollTop()+f.scrollSpeed);if(!f.axis||f.axis!="y")if(d.pageX-b(document).scrollLeft()<f.scrollSensitivity)g=b(document).scrollLeft(b(document).scrollLeft()-f.scrollSpeed);else if(b(window).width()-(d.pageX-b(document).scrollLeft())<f.scrollSensitivity)g=b(document).scrollLeft(b(document).scrollLeft()+
59
- f.scrollSpeed)}g!==false&&b.ui.ddmanager&&!f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(e,d)}});b.ui.plugin.add("draggable","snap",{start:function(){var d=b(this).data("draggable"),e=d.options;d.snapElements=[];b(e.snap.constructor!=String?e.snap.items||":data(draggable)":e.snap).each(function(){var f=b(this),g=f.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:f.outerWidth(),height:f.outerHeight(),top:g.top,left:g.left})})},drag:function(d,e){for(var f=b(this).data("draggable"),
60
- g=f.options,a=g.snapTolerance,c=e.offset.left,h=c+f.helperProportions.width,i=e.offset.top,j=i+f.helperProportions.height,n=f.snapElements.length-1;n>=0;n--){var o=f.snapElements[n].left,l=o+f.snapElements[n].width,k=f.snapElements[n].top,m=k+f.snapElements[n].height;if(o-a<c&&c<l+a&&k-a<i&&i<m+a||o-a<c&&c<l+a&&k-a<j&&j<m+a||o-a<h&&h<l+a&&k-a<i&&i<m+a||o-a<h&&h<l+a&&k-a<j&&j<m+a){if(g.snapMode!="inner"){var p=Math.abs(k-j)<=a,q=Math.abs(m-i)<=a,s=Math.abs(o-h)<=a,r=Math.abs(l-c)<=a;if(p)e.position.top=
61
- f._convertPositionTo("relative",{top:k-f.helperProportions.height,left:0}).top-f.margins.top;if(q)e.position.top=f._convertPositionTo("relative",{top:m,left:0}).top-f.margins.top;if(s)e.position.left=f._convertPositionTo("relative",{top:0,left:o-f.helperProportions.width}).left-f.margins.left;if(r)e.position.left=f._convertPositionTo("relative",{top:0,left:l}).left-f.margins.left}var u=p||q||s||r;if(g.snapMode!="outer"){p=Math.abs(k-i)<=a;q=Math.abs(m-j)<=a;s=Math.abs(o-c)<=a;r=Math.abs(l-h)<=a;if(p)e.position.top=
62
- f._convertPositionTo("relative",{top:k,left:0}).top-f.margins.top;if(q)e.position.top=f._convertPositionTo("relative",{top:m-f.helperProportions.height,left:0}).top-f.margins.top;if(s)e.position.left=f._convertPositionTo("relative",{top:0,left:o}).left-f.margins.left;if(r)e.position.left=f._convertPositionTo("relative",{top:0,left:l-f.helperProportions.width}).left-f.margins.left}if(!f.snapElements[n].snapping&&(p||q||s||r||u))f.options.snap.snap&&f.options.snap.snap.call(f.element,d,b.extend(f._uiHash(),
63
- {snapItem:f.snapElements[n].item}));f.snapElements[n].snapping=p||q||s||r||u}else{f.snapElements[n].snapping&&f.options.snap.release&&f.options.snap.release.call(f.element,d,b.extend(f._uiHash(),{snapItem:f.snapElements[n].item}));f.snapElements[n].snapping=false}}}});b.ui.plugin.add("draggable","stack",{start:function(){var d=b(this).data("draggable").options;d=b.makeArray(b(d.stack)).sort(function(f,g){return(parseInt(b(f).css("zIndex"),10)||0)-(parseInt(b(g).css("zIndex"),10)||0)});if(d.length){var e=
64
- parseInt(d[0].style.zIndex)||0;b(d).each(function(f){this.style.zIndex=e+f});this[0].style.zIndex=e+d.length}}});b.ui.plugin.add("draggable","zIndex",{start:function(d,e){d=b(e.helper);e=b(this).data("draggable").options;if(d.css("zIndex"))e._zIndex=d.css("zIndex");d.css("zIndex",e.zIndex)},stop:function(d,e){d=b(this).data("draggable").options;d._zIndex&&b(e.helper).css("zIndex",d._zIndex)}})})(jQuery);
65
- (function(b){b.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var d=this.options,e=d.accept;this.isover=0;this.isout=1;this.accept=b.isFunction(e)?e:function(f){return f.is(e)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[d.scope]=b.ui.ddmanager.droppables[d.scope]||[];b.ui.ddmanager.droppables[d.scope].push(this);
66
- d.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var d=b.ui.ddmanager.droppables[this.options.scope],e=0;e<d.length;e++)d[e]==this&&d.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(d,e){if(d=="accept")this.accept=b.isFunction(e)?e:function(f){return f.is(e)};b.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var e=b.ui.ddmanager.current;this.options.activeClass&&
67
- this.element.addClass(this.options.activeClass);e&&this._trigger("activate",d,this.ui(e))},_deactivate:function(d){var e=b.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);e&&this._trigger("deactivate",d,this.ui(e))},_over:function(d){var e=b.ui.ddmanager.current;if(!(!e||(e.currentItem||e.element)[0]==this.element[0]))if(this.accept.call(this.element[0],e.currentItem||e.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
68
- this._trigger("over",d,this.ui(e))}},_out:function(d){var e=b.ui.ddmanager.current;if(!(!e||(e.currentItem||e.element)[0]==this.element[0]))if(this.accept.call(this.element[0],e.currentItem||e.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",d,this.ui(e))}},_drop:function(d,e){var f=e||b.ui.ddmanager.current;if(!f||(f.currentItem||f.element)[0]==this.element[0])return false;var g=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var a=
69
- b.data(this,"droppable");if(a.options.greedy&&!a.options.disabled&&a.options.scope==f.options.scope&&a.accept.call(a.element[0],f.currentItem||f.element)&&b.ui.intersect(f,b.extend(a,{offset:a.element.offset()}),a.options.tolerance)){g=true;return false}});if(g)return false;if(this.accept.call(this.element[0],f.currentItem||f.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
70
- d,this.ui(f));return this.element}return false},ui:function(d){return{draggable:d.currentItem||d.element,helper:d.helper,position:d.position,offset:d.positionAbs}}});b.extend(b.ui.droppable,{version:"1.8.12"});b.ui.intersect=function(d,e,f){if(!e.offset)return false;var g=(d.positionAbs||d.position.absolute).left,a=g+d.helperProportions.width,c=(d.positionAbs||d.position.absolute).top,h=c+d.helperProportions.height,i=e.offset.left,j=i+e.proportions.width,n=e.offset.top,o=n+e.proportions.height;
71
- switch(f){case "fit":return i<=g&&a<=j&&n<=c&&h<=o;case "intersect":return i<g+d.helperProportions.width/2&&a-d.helperProportions.width/2<j&&n<c+d.helperProportions.height/2&&h-d.helperProportions.height/2<o;case "pointer":return b.ui.isOver((d.positionAbs||d.position.absolute).top+(d.clickOffset||d.offset.click).top,(d.positionAbs||d.position.absolute).left+(d.clickOffset||d.offset.click).left,n,i,e.proportions.height,e.proportions.width);case "touch":return(c>=n&&c<=o||h>=n&&h<=o||c<n&&h>o)&&(g>=
72
- i&&g<=j||a>=i&&a<=j||g<i&&a>j);default:return false}};b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(d,e){var f=b.ui.ddmanager.droppables[d.options.scope]||[],g=e?e.type:null,a=(d.currentItem||d.element).find(":data(droppable)").andSelf(),c=0;a:for(;c<f.length;c++)if(!(f[c].options.disabled||d&&!f[c].accept.call(f[c].element[0],d.currentItem||d.element))){for(var h=0;h<a.length;h++)if(a[h]==f[c].element[0]){f[c].proportions.height=0;continue a}f[c].visible=f[c].element.css("display")!=
73
- "none";if(f[c].visible){g=="mousedown"&&f[c]._activate.call(f[c],e);f[c].offset=f[c].element.offset();f[c].proportions={width:f[c].element[0].offsetWidth,height:f[c].element[0].offsetHeight}}}},drop:function(d,e){var f=false;b.each(b.ui.ddmanager.droppables[d.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&b.ui.intersect(d,this,this.options.tolerance))f=f||this._drop.call(this,e);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],d.currentItem||
74
- d.element)){this.isout=1;this.isover=0;this._deactivate.call(this,e)}}});return f},drag:function(d,e){d.options.refreshPositions&&b.ui.ddmanager.prepareOffsets(d,e);b.each(b.ui.ddmanager.droppables[d.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var f=b.ui.intersect(d,this,this.options.tolerance);if(f=!f&&this.isover==1?"isout":f&&this.isover==0?"isover":null){var g;if(this.options.greedy){var a=this.element.parents(":data(droppable):eq(0)");if(a.length){g=
75
- b.data(a[0],"droppable");g.greedyChild=f=="isover"?1:0}}if(g&&f=="isover"){g.isover=0;g.isout=1;g._out.call(g,e)}this[f]=1;this[f=="isout"?"isover":"isout"]=0;this[f=="isover"?"_over":"_out"].call(this,e);if(g&&f=="isout"){g.isout=0;g.isover=1;g._over.call(g,e)}}}})}}})(jQuery);
76
- (function(b){b.widget("ui.resizable",b.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var f=this,g=this.options;this.element.addClass("ui-resizable");b.extend(this,{_aspectRatio:!!g.aspectRatio,aspectRatio:g.aspectRatio,originalElement:this.element,
77
- _proportionallyResizeElements:[],_helper:g.helper||g.ghost||g.animate?g.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&b.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(b('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
78
- top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
79
- this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=g.handles||(!b(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
80
- nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var a=this.handles.split(",");this.handles={};for(var c=0;c<a.length;c++){var h=b.trim(a[c]),i=b('<div class="ui-resizable-handle '+("ui-resizable-"+h)+'"></div>');/sw|se|ne|nw/.test(h)&&i.css({zIndex:++g.zIndex});"se"==h&&i.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[h]=".ui-resizable-"+h;this.element.append(i)}}this._renderAxis=function(j){j=j||this.element;for(var n in this.handles){if(this.handles[n].constructor==
81
- String)this.handles[n]=b(this.handles[n],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var o=b(this.handles[n],this.element),l=0;l=/sw|ne|nw|se|n|s/.test(n)?o.outerHeight():o.outerWidth();o=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");j.css(o,l);this._proportionallyResize()}b(this.handles[n])}};this._renderAxis(this.element);this._handles=b(".ui-resizable-handle",this.element).disableSelection();
82
- this._handles.mouseover(function(){if(!f.resizing){if(this.className)var j=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);f.axis=j&&j[1]?j[1]:"se"}});if(g.autoHide){this._handles.hide();b(this.element).addClass("ui-resizable-autohide").hover(function(){b(this).removeClass("ui-resizable-autohide");f._handles.show()},function(){if(!f.resizing){b(this).addClass("ui-resizable-autohide");f._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var f=function(a){b(a).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
83
- if(this.elementIsWrapper){f(this.element);var g=this.element;g.after(this.originalElement.css({position:g.css("position"),width:g.outerWidth(),height:g.outerHeight(),top:g.css("top"),left:g.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);f(this.originalElement);return this},_mouseCapture:function(f){var g=false;for(var a in this.handles)if(b(this.handles[a])[0]==f.target)g=true;return!this.options.disabled&&g},_mouseStart:function(f){var g=this.options,a=this.element.position(),
84
- c=this.element;this.resizing=true;this.documentScroll={top:b(document).scrollTop(),left:b(document).scrollLeft()};if(c.is(".ui-draggable")||/absolute/.test(c.css("position")))c.css({position:"absolute",top:a.top,left:a.left});b.browser.opera&&/relative/.test(c.css("position"))&&c.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();a=d(this.helper.css("left"));var h=d(this.helper.css("top"));if(g.containment){a+=b(g.containment).scrollLeft()||0;h+=b(g.containment).scrollTop()||0}this.offset=
85
- this.helper.offset();this.position={left:a,top:h};this.size=this._helper?{width:c.outerWidth(),height:c.outerHeight()}:{width:c.width(),height:c.height()};this.originalSize=this._helper?{width:c.outerWidth(),height:c.outerHeight()}:{width:c.width(),height:c.height()};this.originalPosition={left:a,top:h};this.sizeDiff={width:c.outerWidth()-c.width(),height:c.outerHeight()-c.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=typeof g.aspectRatio=="number"?g.aspectRatio:
86
- this.originalSize.width/this.originalSize.height||1;g=b(".ui-resizable-"+this.axis).css("cursor");b("body").css("cursor",g=="auto"?this.axis+"-resize":g);c.addClass("ui-resizable-resizing");this._propagate("start",f);return true},_mouseDrag:function(f){var g=this.helper,a=this.originalMousePosition,c=this._change[this.axis];if(!c)return false;a=c.apply(this,[f,f.pageX-a.left||0,f.pageY-a.top||0]);if(this._aspectRatio||f.shiftKey)a=this._updateRatio(a,f);a=this._respectSize(a,f);this._propagate("resize",
87
- f);g.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(a);this._trigger("resize",f,this.ui());return false},_mouseStop:function(f){this.resizing=false;var g=this.options,a=this;if(this._helper){var c=this._proportionallyResizeElements,h=c.length&&/textarea/i.test(c[0].nodeName);c=h&&b.ui.hasScroll(c[0],"left")?0:a.sizeDiff.height;
88
- h=h?0:a.sizeDiff.width;h={width:a.helper.width()-h,height:a.helper.height()-c};c=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var i=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;g.animate||this.element.css(b.extend(h,{top:i,left:c}));a.helper.height(a.size.height);a.helper.width(a.size.width);this._helper&&!g.animate&&this._proportionallyResize()}b("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
89
- this._propagate("stop",f);this._helper&&this.helper.remove();return false},_updateCache:function(f){this.offset=this.helper.offset();if(e(f.left))this.position.left=f.left;if(e(f.top))this.position.top=f.top;if(e(f.height))this.size.height=f.height;if(e(f.width))this.size.width=f.width},_updateRatio:function(f){var g=this.position,a=this.size,c=this.axis;if(f.height)f.width=a.height*this.aspectRatio;else if(f.width)f.height=a.width/this.aspectRatio;if(c=="sw"){f.left=g.left+(a.width-f.width);f.top=
90
- null}if(c=="nw"){f.top=g.top+(a.height-f.height);f.left=g.left+(a.width-f.width)}return f},_respectSize:function(f){var g=this.options,a=this.axis,c=e(f.width)&&g.maxWidth&&g.maxWidth<f.width,h=e(f.height)&&g.maxHeight&&g.maxHeight<f.height,i=e(f.width)&&g.minWidth&&g.minWidth>f.width,j=e(f.height)&&g.minHeight&&g.minHeight>f.height;if(i)f.width=g.minWidth;if(j)f.height=g.minHeight;if(c)f.width=g.maxWidth;if(h)f.height=g.maxHeight;var n=this.originalPosition.left+this.originalSize.width,o=this.position.top+
91
- this.size.height,l=/sw|nw|w/.test(a);a=/nw|ne|n/.test(a);if(i&&l)f.left=n-g.minWidth;if(c&&l)f.left=n-g.maxWidth;if(j&&a)f.top=o-g.minHeight;if(h&&a)f.top=o-g.maxHeight;if((g=!f.width&&!f.height)&&!f.left&&f.top)f.top=null;else if(g&&!f.top&&f.left)f.left=null;return f},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var f=this.helper||this.element,g=0;g<this._proportionallyResizeElements.length;g++){var a=this._proportionallyResizeElements[g];if(!this.borderDif){var c=
92
- [a.css("borderTopWidth"),a.css("borderRightWidth"),a.css("borderBottomWidth"),a.css("borderLeftWidth")],h=[a.css("paddingTop"),a.css("paddingRight"),a.css("paddingBottom"),a.css("paddingLeft")];this.borderDif=b.map(c,function(i,j){i=parseInt(i,10)||0;j=parseInt(h[j],10)||0;return i+j})}b.browser.msie&&(b(f).is(":hidden")||b(f).parents(":hidden").length)||a.css({height:f.height()-this.borderDif[0]-this.borderDif[2]||0,width:f.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var f=
93
- this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||b('<div style="overflow:hidden;"></div>');var g=b.browser.msie&&b.browser.version<7,a=g?1:0;g=g?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+g,height:this.element.outerHeight()+g,position:"absolute",left:this.elementOffset.left-a+"px",top:this.elementOffset.top-a+"px",zIndex:++f.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(f,
94
- g){return{width:this.originalSize.width+g}},w:function(f,g){return{left:this.originalPosition.left+g,width:this.originalSize.width-g}},n:function(f,g,a){return{top:this.originalPosition.top+a,height:this.originalSize.height-a}},s:function(f,g,a){return{height:this.originalSize.height+a}},se:function(f,g,a){return b.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,g,a]))},sw:function(f,g,a){return b.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,g,
95
- a]))},ne:function(f,g,a){return b.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,g,a]))},nw:function(f,g,a){return b.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,g,a]))}},_propagate:function(f,g){b.ui.plugin.call(this,f,[g,this.ui()]);f!="resize"&&this._trigger(f,g,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,
96
- originalPosition:this.originalPosition}}});b.extend(b.ui.resizable,{version:"1.8.12"});b.ui.plugin.add("resizable","alsoResize",{start:function(){var f=b(this).data("resizable").options,g=function(a){b(a).each(function(){var c=b(this);c.data("resizable-alsoresize",{width:parseInt(c.width(),10),height:parseInt(c.height(),10),left:parseInt(c.css("left"),10),top:parseInt(c.css("top"),10),position:c.css("position")})})};if(typeof f.alsoResize=="object"&&!f.alsoResize.parentNode)if(f.alsoResize.length){f.alsoResize=
97
- f.alsoResize[0];g(f.alsoResize)}else b.each(f.alsoResize,function(a){g(a)});else g(f.alsoResize)},resize:function(f,g){var a=b(this).data("resizable");f=a.options;var c=a.originalSize,h=a.originalPosition,i={height:a.size.height-c.height||0,width:a.size.width-c.width||0,top:a.position.top-h.top||0,left:a.position.left-h.left||0},j=function(n,o){b(n).each(function(){var l=b(this),k=b(this).data("resizable-alsoresize"),m={},p=o&&o.length?o:l.parents(g.originalElement[0]).length?["width","height"]:["width",
98
- "height","top","left"];b.each(p,function(q,s){if((q=(k[s]||0)+(i[s]||0))&&q>=0)m[s]=q||null});if(b.browser.opera&&/relative/.test(l.css("position"))){a._revertToRelativePosition=true;l.css({position:"absolute",top:"auto",left:"auto"})}l.css(m)})};typeof f.alsoResize=="object"&&!f.alsoResize.nodeType?b.each(f.alsoResize,function(n,o){j(n,o)}):j(f.alsoResize)},stop:function(){var f=b(this).data("resizable"),g=f.options,a=function(c){b(c).each(function(){var h=b(this);h.css({position:h.data("resizable-alsoresize").position})})};
99
- if(f._revertToRelativePosition){f._revertToRelativePosition=false;typeof g.alsoResize=="object"&&!g.alsoResize.nodeType?b.each(g.alsoResize,function(c){a(c)}):a(g.alsoResize)}b(this).removeData("resizable-alsoresize")}});b.ui.plugin.add("resizable","animate",{stop:function(f){var g=b(this).data("resizable"),a=g.options,c=g._proportionallyResizeElements,h=c.length&&/textarea/i.test(c[0].nodeName),i=h&&b.ui.hasScroll(c[0],"left")?0:g.sizeDiff.height;h={width:g.size.width-(h?0:g.sizeDiff.width),height:g.size.height-
100
- i};i=parseInt(g.element.css("left"),10)+(g.position.left-g.originalPosition.left)||null;var j=parseInt(g.element.css("top"),10)+(g.position.top-g.originalPosition.top)||null;g.element.animate(b.extend(h,j&&i?{top:j,left:i}:{}),{duration:a.animateDuration,easing:a.animateEasing,step:function(){var n={width:parseInt(g.element.css("width"),10),height:parseInt(g.element.css("height"),10),top:parseInt(g.element.css("top"),10),left:parseInt(g.element.css("left"),10)};c&&c.length&&b(c[0]).css({width:n.width,
101
- height:n.height});g._updateCache(n);g._propagate("resize",f)}})}});b.ui.plugin.add("resizable","containment",{start:function(){var f=b(this).data("resizable"),g=f.element,a=f.options.containment;if(g=a instanceof b?a.get(0):/parent/.test(a)?g.parent().get(0):a){f.containerElement=b(g);if(/document/.test(a)||a==document){f.containerOffset={left:0,top:0};f.containerPosition={left:0,top:0};f.parentData={element:b(document),left:0,top:0,width:b(document).width(),height:b(document).height()||document.body.parentNode.scrollHeight}}else{var c=
102
- b(g),h=[];b(["Top","Right","Left","Bottom"]).each(function(n,o){h[n]=d(c.css("padding"+o))});f.containerOffset=c.offset();f.containerPosition=c.position();f.containerSize={height:c.innerHeight()-h[3],width:c.innerWidth()-h[1]};a=f.containerOffset;var i=f.containerSize.height,j=f.containerSize.width;j=b.ui.hasScroll(g,"left")?g.scrollWidth:j;i=b.ui.hasScroll(g)?g.scrollHeight:i;f.parentData={element:g,left:a.left,top:a.top,width:j,height:i}}}},resize:function(f){var g=b(this).data("resizable"),a=g.options,
103
- c=g.containerOffset,h=g.position;f=g._aspectRatio||f.shiftKey;var i={top:0,left:0},j=g.containerElement;if(j[0]!=document&&/static/.test(j.css("position")))i=c;if(h.left<(g._helper?c.left:0)){g.size.width+=g._helper?g.position.left-c.left:g.position.left-i.left;if(f)g.size.height=g.size.width/a.aspectRatio;g.position.left=a.helper?c.left:0}if(h.top<(g._helper?c.top:0)){g.size.height+=g._helper?g.position.top-c.top:g.position.top;if(f)g.size.width=g.size.height*a.aspectRatio;g.position.top=g._helper?
104
- c.top:0}g.offset.left=g.parentData.left+g.position.left;g.offset.top=g.parentData.top+g.position.top;a=Math.abs((g._helper?g.offset.left-i.left:g.offset.left-i.left)+g.sizeDiff.width);c=Math.abs((g._helper?g.offset.top-i.top:g.offset.top-c.top)+g.sizeDiff.height);h=g.containerElement.get(0)==g.element.parent().get(0);i=/relative|absolute/.test(g.containerElement.css("position"));if(h&&i)a-=g.parentData.left;if(a+g.size.width>=g.parentData.width){g.size.width=g.parentData.width-a;if(f)g.size.height=
105
- g.size.width/g.aspectRatio}if(c+g.size.height>=g.parentData.height){g.size.height=g.parentData.height-c;if(f)g.size.width=g.size.height*g.aspectRatio}},stop:function(){var f=b(this).data("resizable"),g=f.options,a=f.containerOffset,c=f.containerPosition,h=f.containerElement,i=b(f.helper),j=i.offset(),n=i.outerWidth()-f.sizeDiff.width;i=i.outerHeight()-f.sizeDiff.height;f._helper&&!g.animate&&/relative/.test(h.css("position"))&&b(this).css({left:j.left-c.left-a.left,width:n,height:i});f._helper&&!g.animate&&
106
- /static/.test(h.css("position"))&&b(this).css({left:j.left-c.left-a.left,width:n,height:i})}});b.ui.plugin.add("resizable","ghost",{start:function(){var f=b(this).data("resizable"),g=f.options,a=f.size;f.ghost=f.originalElement.clone();f.ghost.css({opacity:0.25,display:"block",position:"relative",height:a.height,width:a.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof g.ghost=="string"?g.ghost:"");f.ghost.appendTo(f.helper)},resize:function(){var f=b(this).data("resizable");
107
- f.ghost&&f.ghost.css({position:"relative",height:f.size.height,width:f.size.width})},stop:function(){var f=b(this).data("resizable");f.ghost&&f.helper&&f.helper.get(0).removeChild(f.ghost.get(0))}});b.ui.plugin.add("resizable","grid",{resize:function(){var f=b(this).data("resizable"),g=f.options,a=f.size,c=f.originalSize,h=f.originalPosition,i=f.axis;g.grid=typeof g.grid=="number"?[g.grid,g.grid]:g.grid;var j=Math.round((a.width-c.width)/(g.grid[0]||1))*(g.grid[0]||1);g=Math.round((a.height-c.height)/
108
- (g.grid[1]||1))*(g.grid[1]||1);if(/^(se|s|e)$/.test(i)){f.size.width=c.width+j;f.size.height=c.height+g}else if(/^(ne)$/.test(i)){f.size.width=c.width+j;f.size.height=c.height+g;f.position.top=h.top-g}else{if(/^(sw)$/.test(i)){f.size.width=c.width+j;f.size.height=c.height+g}else{f.size.width=c.width+j;f.size.height=c.height+g;f.position.top=h.top-g}f.position.left=h.left-j}}});var d=function(f){return parseInt(f,10)||0},e=function(f){return!isNaN(parseInt(f,10))}})(jQuery);
109
- (function(b){b.widget("ui.selectable",b.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var d=this;this.element.addClass("ui-selectable");this.dragged=false;var e;this.refresh=function(){e=b(d.options.filter,d.element[0]);e.each(function(){var f=b(this),g=f.offset();b.data(this,"selectable-item",{element:this,$element:f,left:g.left,top:g.top,right:g.left+f.outerWidth(),bottom:g.top+f.outerHeight(),startselected:false,selected:f.hasClass("ui-selected"),
110
- selecting:f.hasClass("ui-selecting"),unselecting:f.hasClass("ui-unselecting")})})};this.refresh();this.selectees=e.addClass("ui-selectee");this._mouseInit();this.helper=b("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(d){var e=this;this.opos=[d.pageX,
111
- d.pageY];if(!this.options.disabled){var f=this.options;this.selectees=b(f.filter,this.element[0]);this._trigger("start",d);b(f.appendTo).append(this.helper);this.helper.css({left:d.clientX,top:d.clientY,width:0,height:0});f.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var g=b.data(this,"selectable-item");g.startselected=true;if(!d.metaKey){g.$element.removeClass("ui-selected");g.selected=false;g.$element.addClass("ui-unselecting");g.unselecting=true;e._trigger("unselecting",
112
- d,{unselecting:g.element})}});b(d.target).parents().andSelf().each(function(){var g=b.data(this,"selectable-item");if(g){var a=!d.metaKey||!g.$element.hasClass("ui-selected");g.$element.removeClass(a?"ui-unselecting":"ui-selected").addClass(a?"ui-selecting":"ui-unselecting");g.unselecting=!a;g.selecting=a;(g.selected=a)?e._trigger("selecting",d,{selecting:g.element}):e._trigger("unselecting",d,{unselecting:g.element});return false}})}},_mouseDrag:function(d){var e=this;this.dragged=true;if(!this.options.disabled){var f=
113
- this.options,g=this.opos[0],a=this.opos[1],c=d.pageX,h=d.pageY;if(g>c){var i=c;c=g;g=i}if(a>h){i=h;h=a;a=i}this.helper.css({left:g,top:a,width:c-g,height:h-a});this.selectees.each(function(){var j=b.data(this,"selectable-item");if(!(!j||j.element==e.element[0])){var n=false;if(f.tolerance=="touch")n=!(j.left>c||j.right<g||j.top>h||j.bottom<a);else if(f.tolerance=="fit")n=j.left>g&&j.right<c&&j.top>a&&j.bottom<h;if(n){if(j.selected){j.$element.removeClass("ui-selected");j.selected=false}if(j.unselecting){j.$element.removeClass("ui-unselecting");
114
- j.unselecting=false}if(!j.selecting){j.$element.addClass("ui-selecting");j.selecting=true;e._trigger("selecting",d,{selecting:j.element})}}else{if(j.selecting)if(d.metaKey&&j.startselected){j.$element.removeClass("ui-selecting");j.selecting=false;j.$element.addClass("ui-selected");j.selected=true}else{j.$element.removeClass("ui-selecting");j.selecting=false;if(j.startselected){j.$element.addClass("ui-unselecting");j.unselecting=true}e._trigger("unselecting",d,{unselecting:j.element})}if(j.selected)if(!d.metaKey&&
115
- !j.startselected){j.$element.removeClass("ui-selected");j.selected=false;j.$element.addClass("ui-unselecting");j.unselecting=true;e._trigger("unselecting",d,{unselecting:j.element})}}}});return false}},_mouseStop:function(d){var e=this;this.dragged=false;b(".ui-unselecting",this.element[0]).each(function(){var f=b.data(this,"selectable-item");f.$element.removeClass("ui-unselecting");f.unselecting=false;f.startselected=false;e._trigger("unselected",d,{unselected:f.element})});b(".ui-selecting",this.element[0]).each(function(){var f=
116
- b.data(this,"selectable-item");f.$element.removeClass("ui-selecting").addClass("ui-selected");f.selecting=false;f.selected=true;f.startselected=true;e._trigger("selected",d,{selected:f.element})});this._trigger("stop",d);this.helper.remove();return false}});b.extend(b.ui.selectable,{version:"1.8.12"})})(jQuery);
117
- (function(b){b.widget("ui.sortable",b.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
118
- this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var d=this.items.length-1;d>=0;d--)this.items[d].item.removeData("sortable-item");return this},_setOption:function(d,e){if(d==="disabled"){this.options[d]=
119
- e;this.widget()[e?"addClass":"removeClass"]("ui-sortable-disabled")}else b.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(d,e){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(d);var f=null,g=this;b(d.target).parents().each(function(){if(b.data(this,"sortable-item")==g){f=b(this);return false}});if(b.data(d.target,"sortable-item")==g)f=b(d.target);if(!f)return false;if(this.options.handle&&!e){var a=false;
120
- b(this.options.handle,f).find("*").andSelf().each(function(){if(this==d.target)a=true});if(!a)return false}this.currentItem=f;this._removeCurrentsFromItems();return true},_mouseStart:function(d,e,f){e=this.options;var g=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(d);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-
121
- this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");b.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};
122
- this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();e.containment&&this._setContainment();if(e.cursor){if(b("body").css("cursor"))this._storedCursor=b("body").css("cursor");b("body").css("cursor",e.cursor)}if(e.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",e.opacity)}if(e.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",e.zIndex)}if(this.scrollParent[0]!=
123
- document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",d,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!f)for(f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("activate",d,g._uiHash(this));if(b.ui.ddmanager)b.ui.ddmanager.current=this;b.ui.ddmanager&&!e.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,d);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(d);
124
- return true},_mouseDrag:function(d){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var e=this.options,f=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-d.pageY<e.scrollSensitivity)this.scrollParent[0].scrollTop=f=this.scrollParent[0].scrollTop+e.scrollSpeed;else if(d.pageY-this.overflowOffset.top<
125
- e.scrollSensitivity)this.scrollParent[0].scrollTop=f=this.scrollParent[0].scrollTop-e.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-d.pageX<e.scrollSensitivity)this.scrollParent[0].scrollLeft=f=this.scrollParent[0].scrollLeft+e.scrollSpeed;else if(d.pageX-this.overflowOffset.left<e.scrollSensitivity)this.scrollParent[0].scrollLeft=f=this.scrollParent[0].scrollLeft-e.scrollSpeed}else{if(d.pageY-b(document).scrollTop()<e.scrollSensitivity)f=b(document).scrollTop(b(document).scrollTop()-
126
- e.scrollSpeed);else if(b(window).height()-(d.pageY-b(document).scrollTop())<e.scrollSensitivity)f=b(document).scrollTop(b(document).scrollTop()+e.scrollSpeed);if(d.pageX-b(document).scrollLeft()<e.scrollSensitivity)f=b(document).scrollLeft(b(document).scrollLeft()-e.scrollSpeed);else if(b(window).width()-(d.pageX-b(document).scrollLeft())<e.scrollSensitivity)f=b(document).scrollLeft(b(document).scrollLeft()+e.scrollSpeed)}f!==false&&b.ui.ddmanager&&!e.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,
127
- d)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(e=this.items.length-1;e>=0;e--){f=this.items[e];var g=f.item[0],a=this._intersectsWithPointer(f);if(a)if(g!=this.currentItem[0]&&this.placeholder[a==1?"next":"prev"]()[0]!=g&&!b.ui.contains(this.placeholder[0],g)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],
128
- g):true)){this.direction=a==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(f))this._rearrange(d,f);else break;this._trigger("change",d,this._uiHash());break}}this._contactContainers(d);b.ui.ddmanager&&b.ui.ddmanager.drag(this,d);this._trigger("sort",d,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(d,e){if(d){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,d);if(this.options.revert){var f=this;e=f.placeholder.offset();
129
- f.reverting=true;b(this.helper).animate({left:e.left-this.offset.parent.left-f.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-f.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){f._clear(d)})}else this._clear(d,e);return false}},cancel:function(){var d=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):
130
- this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--){this.containers[e]._trigger("deactivate",null,d._uiHash(this));if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",null,d._uiHash(this));this.containers[e].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();b.extend(this,{helper:null,
131
- dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):b(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(d){var e=this._getItemsAsjQuery(d&&d.connected),f=[];d=d||{};b(e).each(function(){var g=(b(d.item||this).attr(d.attribute||"id")||"").match(d.expression||/(.+)[-=_](.+)/);if(g)f.push((d.key||g[1]+"[]")+"="+(d.key&&d.expression?g[1]:g[2]))});!f.length&&d.key&&f.push(d.key+"=");return f.join("&")},
132
- toArray:function(d){var e=this._getItemsAsjQuery(d&&d.connected),f=[];d=d||{};e.each(function(){f.push(b(d.item||this).attr(d.attribute||"id")||"")});return f},_intersectsWith:function(d){var e=this.positionAbs.left,f=e+this.helperProportions.width,g=this.positionAbs.top,a=g+this.helperProportions.height,c=d.left,h=c+d.width,i=d.top,j=i+d.height,n=this.offset.click.top,o=this.offset.click.left;n=g+n>i&&g+n<j&&e+o>c&&e+o<h;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||
133
- this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>d[this.floating?"width":"height"]?n:c<e+this.helperProportions.width/2&&f-this.helperProportions.width/2<h&&i<g+this.helperProportions.height/2&&a-this.helperProportions.height/2<j},_intersectsWithPointer:function(d){var e=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height);d=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width);e=e&&d;d=this._getDragVerticalDirection();
134
- var f=this._getDragHorizontalDirection();if(!e)return false;return this.floating?f&&f=="right"||d=="down"?2:1:d&&(d=="down"?2:1)},_intersectsWithSides:function(d){var e=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top+d.height/2,d.height);d=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left+d.width/2,d.width);var f=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return this.floating&&g?g=="right"&&d||g=="left"&&!d:f&&(f=="down"&&e||f=="up"&&!e)},
135
- _getDragVerticalDirection:function(){var d=this.positionAbs.top-this.lastPositionAbs.top;return d!=0&&(d>0?"down":"up")},_getDragHorizontalDirection:function(){var d=this.positionAbs.left-this.lastPositionAbs.left;return d!=0&&(d>0?"right":"left")},refresh:function(d){this._refreshItems(d);this.refreshPositions();return this},_connectWith:function(){var d=this.options;return d.connectWith.constructor==String?[d.connectWith]:d.connectWith},_getItemsAsjQuery:function(d){var e=[],f=[],g=this._connectWith();
136
- if(g&&d)for(d=g.length-1;d>=0;d--)for(var a=b(g[d]),c=a.length-1;c>=0;c--){var h=b.data(a[c],"sortable");if(h&&h!=this&&!h.options.disabled)f.push([b.isFunction(h.options.items)?h.options.items.call(h.element):b(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}f.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),
137
- this]);for(d=f.length-1;d>=0;d--)f[d][0].each(function(){e.push(this)});return b(e)},_removeCurrentsFromItems:function(){for(var d=this.currentItem.find(":data(sortable-item)"),e=0;e<this.items.length;e++)for(var f=0;f<d.length;f++)d[f]==this.items[e].item[0]&&this.items.splice(e,1)},_refreshItems:function(d){this.items=[];this.containers=[this];var e=this.items,f=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],d,{item:this.currentItem}):b(this.options.items,this.element),
138
- this]],g=this._connectWith();if(g)for(var a=g.length-1;a>=0;a--)for(var c=b(g[a]),h=c.length-1;h>=0;h--){var i=b.data(c[h],"sortable");if(i&&i!=this&&!i.options.disabled){f.push([b.isFunction(i.options.items)?i.options.items.call(i.element[0],d,{item:this.currentItem}):b(i.options.items,i.element),i]);this.containers.push(i)}}for(a=f.length-1;a>=0;a--){d=f[a][1];g=f[a][0];h=0;for(c=g.length;h<c;h++){i=b(g[h]);i.data("sortable-item",d);e.push({item:i,instance:d,width:0,height:0,left:0,top:0})}}},refreshPositions:function(d){if(this.offsetParent&&
139
- this.helper)this.offset.parent=this._getParentOffset();for(var e=this.items.length-1;e>=0;e--){var f=this.items[e];if(!(f.instance!=this.currentContainer&&this.currentContainer&&f.item[0]!=this.currentItem[0])){var g=this.options.toleranceElement?b(this.options.toleranceElement,f.item):f.item;if(!d){f.width=g.outerWidth();f.height=g.outerHeight()}g=g.offset();f.left=g.left;f.top=g.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=
140
- this.containers.length-1;e>=0;e--){g=this.containers[e].element.offset();this.containers[e].containerCache.left=g.left;this.containers[e].containerCache.top=g.top;this.containers[e].containerCache.width=this.containers[e].element.outerWidth();this.containers[e].containerCache.height=this.containers[e].element.outerHeight()}return this},_createPlaceholder:function(d){var e=d||this,f=e.options;if(!f.placeholder||f.placeholder.constructor==String){var g=f.placeholder;f.placeholder={element:function(){var a=
141
- b(document.createElement(e.currentItem[0].nodeName)).addClass(g||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!g)a.style.visibility="hidden";return a},update:function(a,c){if(!(g&&!f.forcePlaceholderSize)){c.height()||c.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10));c.width()||c.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||
142
- 0,10))}}}}e.placeholder=b(f.placeholder.element.call(e.element,e.currentItem));e.currentItem.after(e.placeholder);f.placeholder.update(e,e.placeholder)},_contactContainers:function(d){for(var e=null,f=null,g=this.containers.length-1;g>=0;g--)if(!b.ui.contains(this.currentItem[0],this.containers[g].element[0]))if(this._intersectsWith(this.containers[g].containerCache)){if(!(e&&b.ui.contains(this.containers[g].element[0],e.element[0]))){e=this.containers[g];f=g}}else if(this.containers[g].containerCache.over){this.containers[g]._trigger("out",
143
- d,this._uiHash(this));this.containers[g].containerCache.over=0}if(e)if(this.containers.length===1){this.containers[f]._trigger("over",d,this._uiHash(this));this.containers[f].containerCache.over=1}else if(this.currentContainer!=this.containers[f]){e=1E4;g=null;for(var a=this.positionAbs[this.containers[f].floating?"left":"top"],c=this.items.length-1;c>=0;c--)if(b.ui.contains(this.containers[f].element[0],this.items[c].item[0])){var h=this.items[c][this.containers[f].floating?"left":"top"];if(Math.abs(h-
144
- a)<e){e=Math.abs(h-a);g=this.items[c]}}if(g||this.options.dropOnEmpty){this.currentContainer=this.containers[f];g?this._rearrange(d,g,null,true):this._rearrange(d,null,this.containers[f].element,true);this._trigger("change",d,this._uiHash());this.containers[f]._trigger("change",d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[f]._trigger("over",d,this._uiHash(this));this.containers[f].containerCache.over=1}}},_createHelper:function(d){var e=
145
- this.options;d=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[d,this.currentItem])):e.helper=="clone"?this.currentItem.clone():this.currentItem;d.parents("body").length||b(e.appendTo!="parent"?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]);if(d[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(d[0].style.width==
146
- ""||e.forceHelperSize)d.width(this.currentItem.width());if(d[0].style.height==""||e.forceHelperSize)d.height(this.currentItem.height());return d},_adjustOffsetFromHelper:function(d){if(typeof d=="string")d=d.split(" ");if(b.isArray(d))d={left:+d[0],top:+d[1]||0};if("left"in d)this.offset.click.left=d.left+this.margins.left;if("right"in d)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if("top"in d)this.offset.click.top=d.top+this.margins.top;if("bottom"in d)this.offset.click.top=
147
- this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)d=
148
- {top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var d=this.currentItem.position();return{top:d.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),
149
- 10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var d=this.options;if(d.containment=="parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(d.containment=="document"?
150
- document:window).width()-this.helperProportions.width-this.margins.left,(b(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)){var e=b(d.containment)[0];d=b(d.containment).offset();var f=b(e).css("overflow")!="hidden";this.containment=[d.left+(parseInt(b(e).css("borderLeftWidth"),10)||0)+(parseInt(b(e).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(b(e).css("borderTopWidth"),
151
- 10)||0)+(parseInt(b(e).css("paddingTop"),10)||0)-this.margins.top,d.left+(f?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(b(e).css("borderLeftWidth"),10)||0)-(parseInt(b(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(f?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(b(e).css("borderTopWidth"),10)||0)-(parseInt(b(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(d,e){if(!e)e=
152
- this.position;d=d=="absolute"?1:-1;var f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName);return{top:e.top+this.offset.relative.top*d+this.offset.parent.top*d-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop())*d),left:e.left+this.offset.relative.left*d+this.offset.parent.left*d-(b.browser.safari&&
153
- this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())*d)}},_generatePosition:function(d){var e=this.options,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();
154
- var a=d.pageX,c=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0])a=this.containment[0]+this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])c=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])a=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])c=this.containment[3]+this.offset.click.top}if(e.grid){c=this.originalPageY+Math.round((c-
155
- this.originalPageY)/e.grid[1])*e.grid[1];c=this.containment?!(c-this.offset.click.top<this.containment[1]||c-this.offset.click.top>this.containment[3])?c:!(c-this.offset.click.top<this.containment[1])?c-e.grid[1]:c+e.grid[1]:c;a=this.originalPageX+Math.round((a-this.originalPageX)/e.grid[0])*e.grid[0];a=this.containment?!(a-this.offset.click.left<this.containment[0]||a-this.offset.click.left>this.containment[2])?a:!(a-this.offset.click.left<this.containment[0])?a-e.grid[0]:a+e.grid[0]:a}}return{top:c-
156
- this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())}},_rearrange:function(d,e,f,g){f?f[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],
157
- this.direction=="down"?e.item[0]:e.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var a=this,c=this.counter;window.setTimeout(function(){c==a.counter&&a.refreshPositions(!g)},0)},_clear:function(d,e){this.reverting=false;var f=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var g in this._storedCSS)if(this._storedCSS[g]=="auto"||this._storedCSS[g]=="static")this._storedCSS[g]=
158
- "";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!e&&f.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!e)f.push(function(a){this._trigger("update",a,this._uiHash())});if(!b.ui.contains(this.element[0],this.currentItem[0])){e||f.push(function(a){this._trigger("remove",
159
- a,this._uiHash())});for(g=this.containers.length-1;g>=0;g--)if(b.ui.contains(this.containers[g].element[0],this.currentItem[0])&&!e){f.push(function(a){return function(c){a._trigger("receive",c,this._uiHash(this))}}.call(this,this.containers[g]));f.push(function(a){return function(c){a._trigger("update",c,this._uiHash(this))}}.call(this,this.containers[g]))}}for(g=this.containers.length-1;g>=0;g--){e||f.push(function(a){return function(c){a._trigger("deactivate",c,this._uiHash(this))}}.call(this,
160
- this.containers[g]));if(this.containers[g].containerCache.over){f.push(function(a){return function(c){a._trigger("out",c,this._uiHash(this))}}.call(this,this.containers[g]));this.containers[g].containerCache.over=0}}this._storedCursor&&b("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!e){this._trigger("beforeStop",
161
- d,this._uiHash());for(g=0;g<f.length;g++)f[g].call(this,d);this._trigger("stop",d,this._uiHash())}return false}e||this._trigger("beforeStop",d,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!e){for(g=0;g<f.length;g++)f[g].call(this,d);this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){b.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},
162
- _uiHash:function(d){var e=d||this;return{helper:e.helper,placeholder:e.placeholder||b([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:d?d.element:null}}});b.extend(b.ui.sortable,{version:"1.8.12"})})(jQuery);
163
- jQuery.effects||function(b,d){function e(l){var k;if(l&&l.constructor==Array&&l.length==3)return l;if(k=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(l))return[parseInt(k[1],10),parseInt(k[2],10),parseInt(k[3],10)];if(k=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(l))return[parseFloat(k[1])*2.55,parseFloat(k[2])*2.55,parseFloat(k[3])*2.55];if(k=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(l))return[parseInt(k[1],
164
- 16),parseInt(k[2],16),parseInt(k[3],16)];if(k=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(l))return[parseInt(k[1]+k[1],16),parseInt(k[2]+k[2],16),parseInt(k[3]+k[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(l))return j.transparent;return j[b.trim(l).toLowerCase()]}function f(l,k){var m;do{m=b.curCSS(l,k);if(m!=""&&m!="transparent"||b.nodeName(l,"body"))break;k="backgroundColor"}while(l=l.parentNode);return e(m)}function g(){var l=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
165
- k={},m,p;if(l&&l.length&&l[0]&&l[l[0]])for(var q=l.length;q--;){m=l[q];if(typeof l[m]=="string"){p=m.replace(/\-(\w)/g,function(s,r){return r.toUpperCase()});k[p]=l[m]}}else for(m in l)if(typeof l[m]==="string")k[m]=l[m];return k}function a(l){var k,m;for(k in l){m=l[k];if(m==null||b.isFunction(m)||k in o||/scrollbar/.test(k)||!/color/i.test(k)&&isNaN(parseFloat(m)))delete l[k]}return l}function c(l,k){var m={_:0},p;for(p in k)if(l[p]!=k[p])m[p]=k[p];return m}function h(l,k,m,p){if(typeof l=="object"){p=
166
- k;m=null;k=l;l=k.effect}if(b.isFunction(k)){p=k;m=null;k={}}if(typeof k=="number"||b.fx.speeds[k]){p=m;m=k;k={}}if(b.isFunction(m)){p=m;m=null}k=k||{};m=m||k.duration;m=b.fx.off?0:typeof m=="number"?m:m in b.fx.speeds?b.fx.speeds[m]:b.fx.speeds._default;p=p||k.complete;return[l,k,m,p]}function i(l){if(!l||typeof l==="number"||b.fx.speeds[l])return true;if(typeof l==="string"&&!b.effects[l])return true;return false}b.effects={};b.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor",
167
- "borderTopColor","borderColor","color","outlineColor"],function(l,k){b.fx.step[k]=function(m){if(!m.colorInit){m.start=f(m.elem,k);m.end=e(m.end);m.colorInit=true}m.elem.style[k]="rgb("+Math.max(Math.min(parseInt(m.pos*(m.end[0]-m.start[0])+m.start[0],10),255),0)+","+Math.max(Math.min(parseInt(m.pos*(m.end[1]-m.start[1])+m.start[1],10),255),0)+","+Math.max(Math.min(parseInt(m.pos*(m.end[2]-m.start[2])+m.start[2],10),255),0)+")"}});var j={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,
168
- 0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,
169
- 211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},n=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};b.effects.animateClass=function(l,k,m,
170
- p){if(b.isFunction(m)){p=m;m=null}return this.queue("fx",function(){var q=b(this),s=q.attr("style")||" ",r=a(g.call(this)),u,v=q.attr("className");b.each(n,function(w,y){l[y]&&q[y+"Class"](l[y])});u=a(g.call(this));q.attr("className",v);q.animate(c(r,u),k,m,function(){b.each(n,function(w,y){l[y]&&q[y+"Class"](l[y])});if(typeof q.attr("style")=="object"){q.attr("style").cssText="";q.attr("style").cssText=s}else q.attr("style",s);p&&p.apply(this,arguments)});r=b.queue(this);u=r.splice(r.length-1,1)[0];
171
- r.splice(1,0,u);b.dequeue(this)})};b.fn.extend({_addClass:b.fn.addClass,addClass:function(l,k,m,p){return k?b.effects.animateClass.apply(this,[{add:l},k,m,p]):this._addClass(l)},_removeClass:b.fn.removeClass,removeClass:function(l,k,m,p){return k?b.effects.animateClass.apply(this,[{remove:l},k,m,p]):this._removeClass(l)},_toggleClass:b.fn.toggleClass,toggleClass:function(l,k,m,p,q){return typeof k=="boolean"||k===d?m?b.effects.animateClass.apply(this,[k?{add:l}:{remove:l},m,p,q]):this._toggleClass(l,
172
- k):b.effects.animateClass.apply(this,[{toggle:l},k,m,p])},switchClass:function(l,k,m,p,q){return b.effects.animateClass.apply(this,[{add:k,remove:l},m,p,q])}});b.extend(b.effects,{version:"1.8.12",save:function(l,k){for(var m=0;m<k.length;m++)k[m]!==null&&l.data("ec.storage."+k[m],l[0].style[k[m]])},restore:function(l,k){for(var m=0;m<k.length;m++)k[m]!==null&&l.css(k[m],l.data("ec.storage."+k[m]))},setMode:function(l,k){if(k=="toggle")k=l.is(":hidden")?"show":"hide";return k},getBaseline:function(l,
173
- k){var m;switch(l[0]){case "top":m=0;break;case "middle":m=0.5;break;case "bottom":m=1;break;default:m=l[0]/k.height}switch(l[1]){case "left":l=0;break;case "center":l=0.5;break;case "right":l=1;break;default:l=l[1]/k.width}return{x:l,y:m}},createWrapper:function(l){if(l.parent().is(".ui-effects-wrapper"))return l.parent();var k={width:l.outerWidth(true),height:l.outerHeight(true),"float":l.css("float")},m=b("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",
174
- border:"none",margin:0,padding:0});l.wrap(m);m=l.parent();if(l.css("position")=="static"){m.css({position:"relative"});l.css({position:"relative"})}else{b.extend(k,{position:l.css("position"),zIndex:l.css("z-index")});b.each(["top","left","bottom","right"],function(p,q){k[q]=l.css(q);if(isNaN(parseInt(k[q],10)))k[q]="auto"});l.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return m.css(k).show()},removeWrapper:function(l){if(l.parent().is(".ui-effects-wrapper"))return l.parent().replaceWith(l);
175
- return l},setTransition:function(l,k,m,p){p=p||{};b.each(k,function(q,s){unit=l.cssUnit(s);if(unit[0]>0)p[s]=unit[0]*m+unit[1]});return p}});b.fn.extend({effect:function(l){var k=h.apply(this,arguments),m={options:k[1],duration:k[2],callback:k[3]};k=m.options.mode;var p=b.effects[l];if(b.fx.off||!p)return k?this[k](m.duration,m.callback):this.each(function(){m.callback&&m.callback.call(this)});return p.call(this,m)},_show:b.fn.show,show:function(l){if(i(l))return this._show.apply(this,arguments);
176
- else{var k=h.apply(this,arguments);k[1].mode="show";return this.effect.apply(this,k)}},_hide:b.fn.hide,hide:function(l){if(i(l))return this._hide.apply(this,arguments);else{var k=h.apply(this,arguments);k[1].mode="hide";return this.effect.apply(this,k)}},__toggle:b.fn.toggle,toggle:function(l){if(i(l)||typeof l==="boolean"||b.isFunction(l))return this.__toggle.apply(this,arguments);else{var k=h.apply(this,arguments);k[1].mode="toggle";return this.effect.apply(this,k)}},cssUnit:function(l){var k=this.css(l),
177
- m=[];b.each(["em","px","%","pt"],function(p,q){if(k.indexOf(q)>0)m=[parseFloat(k),q]});return m}});b.easing.jswing=b.easing.swing;b.extend(b.easing,{def:"easeOutQuad",swing:function(l,k,m,p,q){return b.easing[b.easing.def](l,k,m,p,q)},easeInQuad:function(l,k,m,p,q){return p*(k/=q)*k+m},easeOutQuad:function(l,k,m,p,q){return-p*(k/=q)*(k-2)+m},easeInOutQuad:function(l,k,m,p,q){if((k/=q/2)<1)return p/2*k*k+m;return-p/2*(--k*(k-2)-1)+m},easeInCubic:function(l,k,m,p,q){return p*(k/=q)*k*k+m},easeOutCubic:function(l,
178
- k,m,p,q){return p*((k=k/q-1)*k*k+1)+m},easeInOutCubic:function(l,k,m,p,q){if((k/=q/2)<1)return p/2*k*k*k+m;return p/2*((k-=2)*k*k+2)+m},easeInQuart:function(l,k,m,p,q){return p*(k/=q)*k*k*k+m},easeOutQuart:function(l,k,m,p,q){return-p*((k=k/q-1)*k*k*k-1)+m},easeInOutQuart:function(l,k,m,p,q){if((k/=q/2)<1)return p/2*k*k*k*k+m;return-p/2*((k-=2)*k*k*k-2)+m},easeInQuint:function(l,k,m,p,q){return p*(k/=q)*k*k*k*k+m},easeOutQuint:function(l,k,m,p,q){return p*((k=k/q-1)*k*k*k*k+1)+m},easeInOutQuint:function(l,
179
- k,m,p,q){if((k/=q/2)<1)return p/2*k*k*k*k*k+m;return p/2*((k-=2)*k*k*k*k+2)+m},easeInSine:function(l,k,m,p,q){return-p*Math.cos(k/q*(Math.PI/2))+p+m},easeOutSine:function(l,k,m,p,q){return p*Math.sin(k/q*(Math.PI/2))+m},easeInOutSine:function(l,k,m,p,q){return-p/2*(Math.cos(Math.PI*k/q)-1)+m},easeInExpo:function(l,k,m,p,q){return k==0?m:p*Math.pow(2,10*(k/q-1))+m},easeOutExpo:function(l,k,m,p,q){return k==q?m+p:p*(-Math.pow(2,-10*k/q)+1)+m},easeInOutExpo:function(l,k,m,p,q){if(k==0)return m;if(k==
180
- q)return m+p;if((k/=q/2)<1)return p/2*Math.pow(2,10*(k-1))+m;return p/2*(-Math.pow(2,-10*--k)+2)+m},easeInCirc:function(l,k,m,p,q){return-p*(Math.sqrt(1-(k/=q)*k)-1)+m},easeOutCirc:function(l,k,m,p,q){return p*Math.sqrt(1-(k=k/q-1)*k)+m},easeInOutCirc:function(l,k,m,p,q){if((k/=q/2)<1)return-p/2*(Math.sqrt(1-k*k)-1)+m;return p/2*(Math.sqrt(1-(k-=2)*k)+1)+m},easeInElastic:function(l,k,m,p,q){l=1.70158;var s=0,r=p;if(k==0)return m;if((k/=q)==1)return m+p;s||(s=q*0.3);if(r<Math.abs(p)){r=p;l=s/4}else l=
181
- s/(2*Math.PI)*Math.asin(p/r);return-(r*Math.pow(2,10*(k-=1))*Math.sin((k*q-l)*2*Math.PI/s))+m},easeOutElastic:function(l,k,m,p,q){l=1.70158;var s=0,r=p;if(k==0)return m;if((k/=q)==1)return m+p;s||(s=q*0.3);if(r<Math.abs(p)){r=p;l=s/4}else l=s/(2*Math.PI)*Math.asin(p/r);return r*Math.pow(2,-10*k)*Math.sin((k*q-l)*2*Math.PI/s)+p+m},easeInOutElastic:function(l,k,m,p,q){l=1.70158;var s=0,r=p;if(k==0)return m;if((k/=q/2)==2)return m+p;s||(s=q*0.3*1.5);if(r<Math.abs(p)){r=p;l=s/4}else l=s/(2*Math.PI)*Math.asin(p/
182
- r);if(k<1)return-0.5*r*Math.pow(2,10*(k-=1))*Math.sin((k*q-l)*2*Math.PI/s)+m;return r*Math.pow(2,-10*(k-=1))*Math.sin((k*q-l)*2*Math.PI/s)*0.5+p+m},easeInBack:function(l,k,m,p,q,s){if(s==d)s=1.70158;return p*(k/=q)*k*((s+1)*k-s)+m},easeOutBack:function(l,k,m,p,q,s){if(s==d)s=1.70158;return p*((k=k/q-1)*k*((s+1)*k+s)+1)+m},easeInOutBack:function(l,k,m,p,q,s){if(s==d)s=1.70158;if((k/=q/2)<1)return p/2*k*k*(((s*=1.525)+1)*k-s)+m;return p/2*((k-=2)*k*(((s*=1.525)+1)*k+s)+2)+m},easeInBounce:function(l,
183
- k,m,p,q){return p-b.easing.easeOutBounce(l,q-k,0,p,q)+m},easeOutBounce:function(l,k,m,p,q){return(k/=q)<1/2.75?p*7.5625*k*k+m:k<2/2.75?p*(7.5625*(k-=1.5/2.75)*k+0.75)+m:k<2.5/2.75?p*(7.5625*(k-=2.25/2.75)*k+0.9375)+m:p*(7.5625*(k-=2.625/2.75)*k+0.984375)+m},easeInOutBounce:function(l,k,m,p,q){if(k<q/2)return b.easing.easeInBounce(l,k*2,0,p,q)*0.5+m;return b.easing.easeOutBounce(l,k*2-q,0,p,q)*0.5+p*0.5+m}})}(jQuery);
184
- (function(b){b.effects.blind=function(d){return this.queue(function(){var e=b(this),f=["position","top","bottom","left","right"],g=b.effects.setMode(e,d.options.mode||"hide"),a=d.options.direction||"vertical";b.effects.save(e,f);e.show();var c=b.effects.createWrapper(e).css({overflow:"hidden"}),h=a=="vertical"?"height":"width";a=a=="vertical"?c.height():c.width();g=="show"&&c.css(h,0);var i={};i[h]=g=="show"?a:0;c.animate(i,d.duration,d.options.easing,function(){g=="hide"&&e.hide();b.effects.restore(e,
185
- f);b.effects.removeWrapper(e);d.callback&&d.callback.apply(e[0],arguments);e.dequeue()})})}})(jQuery);
186
- (function(b){b.effects.bounce=function(d){return this.queue(function(){var e=b(this),f=["position","top","bottom","left","right"],g=b.effects.setMode(e,d.options.mode||"effect"),a=d.options.direction||"up",c=d.options.distance||20,h=d.options.times||5,i=d.duration||250;/show|hide/.test(g)&&f.push("opacity");b.effects.save(e,f);e.show();b.effects.createWrapper(e);var j=a=="up"||a=="down"?"top":"left";a=a=="up"||a=="left"?"pos":"neg";c=d.options.distance||(j=="top"?e.outerHeight({margin:true})/3:e.outerWidth({margin:true})/
187
- 3);if(g=="show")e.css("opacity",0).css(j,a=="pos"?-c:c);if(g=="hide")c/=h*2;g!="hide"&&h--;if(g=="show"){var n={opacity:1};n[j]=(a=="pos"?"+=":"-=")+c;e.animate(n,i/2,d.options.easing);c/=2;h--}for(n=0;n<h;n++){var o={},l={};o[j]=(a=="pos"?"-=":"+=")+c;l[j]=(a=="pos"?"+=":"-=")+c;e.animate(o,i/2,d.options.easing).animate(l,i/2,d.options.easing);c=g=="hide"?c*2:c/2}if(g=="hide"){n={opacity:0};n[j]=(a=="pos"?"-=":"+=")+c;e.animate(n,i/2,d.options.easing,function(){e.hide();b.effects.restore(e,f);b.effects.removeWrapper(e);
188
- d.callback&&d.callback.apply(this,arguments)})}else{o={};l={};o[j]=(a=="pos"?"-=":"+=")+c;l[j]=(a=="pos"?"+=":"-=")+c;e.animate(o,i/2,d.options.easing).animate(l,i/2,d.options.easing,function(){b.effects.restore(e,f);b.effects.removeWrapper(e);d.callback&&d.callback.apply(this,arguments)})}e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);
189
- (function(b){b.effects.clip=function(d){return this.queue(function(){var e=b(this),f=["position","top","bottom","left","right","height","width"],g=b.effects.setMode(e,d.options.mode||"hide"),a=d.options.direction||"vertical";b.effects.save(e,f);e.show();var c=b.effects.createWrapper(e).css({overflow:"hidden"});c=e[0].tagName=="IMG"?c:e;var h={size:a=="vertical"?"height":"width",position:a=="vertical"?"top":"left"};a=a=="vertical"?c.height():c.width();if(g=="show"){c.css(h.size,0);c.css(h.position,
190
- a/2)}var i={};i[h.size]=g=="show"?a:0;i[h.position]=g=="show"?0:a/2;c.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){g=="hide"&&e.hide();b.effects.restore(e,f);b.effects.removeWrapper(e);d.callback&&d.callback.apply(e[0],arguments);e.dequeue()}})})}})(jQuery);
191
- (function(b){b.effects.drop=function(d){return this.queue(function(){var e=b(this),f=["position","top","bottom","left","right","opacity"],g=b.effects.setMode(e,d.options.mode||"hide"),a=d.options.direction||"left";b.effects.save(e,f);e.show();b.effects.createWrapper(e);var c=a=="up"||a=="down"?"top":"left";a=a=="up"||a=="left"?"pos":"neg";var h=d.options.distance||(c=="top"?e.outerHeight({margin:true})/2:e.outerWidth({margin:true})/2);if(g=="show")e.css("opacity",0).css(c,a=="pos"?-h:h);var i={opacity:g==
192
- "show"?1:0};i[c]=(g=="show"?a=="pos"?"+=":"-=":a=="pos"?"-=":"+=")+h;e.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){g=="hide"&&e.hide();b.effects.restore(e,f);b.effects.removeWrapper(e);d.callback&&d.callback.apply(this,arguments);e.dequeue()}})})}})(jQuery);
193
- (function(b){b.effects.explode=function(d){return this.queue(function(){var e=d.options.pieces?Math.round(Math.sqrt(d.options.pieces)):3,f=d.options.pieces?Math.round(Math.sqrt(d.options.pieces)):3;d.options.mode=d.options.mode=="toggle"?b(this).is(":visible")?"hide":"show":d.options.mode;var g=b(this).show().css("visibility","hidden"),a=g.offset();a.top-=parseInt(g.css("marginTop"),10)||0;a.left-=parseInt(g.css("marginLeft"),10)||0;for(var c=g.outerWidth(true),h=g.outerHeight(true),i=0;i<e;i++)for(var j=
194
- 0;j<f;j++)g.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-j*(c/f),top:-i*(h/e)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:c/f,height:h/e,left:a.left+j*(c/f)+(d.options.mode=="show"?(j-Math.floor(f/2))*(c/f):0),top:a.top+i*(h/e)+(d.options.mode=="show"?(i-Math.floor(e/2))*(h/e):0),opacity:d.options.mode=="show"?0:1}).animate({left:a.left+j*(c/f)+(d.options.mode=="show"?0:(j-Math.floor(f/2))*(c/f)),top:a.top+
195
- i*(h/e)+(d.options.mode=="show"?0:(i-Math.floor(e/2))*(h/e)),opacity:d.options.mode=="show"?1:0},d.duration||500);setTimeout(function(){d.options.mode=="show"?g.css({visibility:"visible"}):g.css({visibility:"visible"}).hide();d.callback&&d.callback.apply(g[0]);g.dequeue();b("div.ui-effects-explode").remove()},d.duration||500)})}})(jQuery);
196
- (function(b){b.effects.fade=function(d){return this.queue(function(){var e=b(this),f=b.effects.setMode(e,d.options.mode||"hide");e.animate({opacity:f},{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){d.callback&&d.callback.apply(this,arguments);e.dequeue()}})})}})(jQuery);
197
- (function(b){b.effects.fold=function(d){return this.queue(function(){var e=b(this),f=["position","top","bottom","left","right"],g=b.effects.setMode(e,d.options.mode||"hide"),a=d.options.size||15,c=!!d.options.horizFirst,h=d.duration?d.duration/2:b.fx.speeds._default/2;b.effects.save(e,f);e.show();var i=b.effects.createWrapper(e).css({overflow:"hidden"}),j=g=="show"!=c,n=j?["width","height"]:["height","width"];j=j?[i.width(),i.height()]:[i.height(),i.width()];var o=/([0-9]+)%/.exec(a);if(o)a=parseInt(o[1],
198
- 10)/100*j[g=="hide"?0:1];if(g=="show")i.css(c?{height:0,width:a}:{height:a,width:0});c={};o={};c[n[0]]=g=="show"?j[0]:a;o[n[1]]=g=="show"?j[1]:0;i.animate(c,h,d.options.easing).animate(o,h,d.options.easing,function(){g=="hide"&&e.hide();b.effects.restore(e,f);b.effects.removeWrapper(e);d.callback&&d.callback.apply(e[0],arguments);e.dequeue()})})}})(jQuery);
199
- (function(b){b.effects.highlight=function(d){return this.queue(function(){var e=b(this),f=["backgroundImage","backgroundColor","opacity"],g=b.effects.setMode(e,d.options.mode||"show"),a={backgroundColor:e.css("backgroundColor")};if(g=="hide")a.opacity=0;b.effects.save(e,f);e.show().css({backgroundImage:"none",backgroundColor:d.options.color||"#ffff99"}).animate(a,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){g=="hide"&&e.hide();b.effects.restore(e,f);g=="show"&&!b.support.opacity&&
200
- this.style.removeAttribute("filter");d.callback&&d.callback.apply(this,arguments);e.dequeue()}})})}})(jQuery);
201
- (function(b){b.effects.pulsate=function(d){return this.queue(function(){var e=b(this),f=b.effects.setMode(e,d.options.mode||"show");times=(d.options.times||5)*2-1;duration=d.duration?d.duration/2:b.fx.speeds._default/2;isVisible=e.is(":visible");animateTo=0;if(!isVisible){e.css("opacity",0).show();animateTo=1}if(f=="hide"&&isVisible||f=="show"&&!isVisible)times--;for(f=0;f<times;f++){e.animate({opacity:animateTo},duration,d.options.easing);animateTo=(animateTo+1)%2}e.animate({opacity:animateTo},duration,
202
- d.options.easing,function(){animateTo==0&&e.hide();d.callback&&d.callback.apply(this,arguments)});e.queue("fx",function(){e.dequeue()}).dequeue()})}})(jQuery);
203
- (function(b){b.effects.puff=function(d){return this.queue(function(){var e=b(this),f=b.effects.setMode(e,d.options.mode||"hide"),g=parseInt(d.options.percent,10)||150,a=g/100,c={height:e.height(),width:e.width()};b.extend(d.options,{fade:true,mode:f,percent:f=="hide"?g:100,from:f=="hide"?c:{height:c.height*a,width:c.width*a}});e.effect("scale",d.options,d.duration,d.callback);e.dequeue()})};b.effects.scale=function(d){return this.queue(function(){var e=b(this),f=b.extend(true,{},d.options),g=b.effects.setMode(e,
204
- d.options.mode||"effect"),a=parseInt(d.options.percent,10)||(parseInt(d.options.percent,10)==0?0:g=="hide"?0:100),c=d.options.direction||"both",h=d.options.origin;if(g!="effect"){f.origin=h||["middle","center"];f.restore=true}h={height:e.height(),width:e.width()};e.from=d.options.from||(g=="show"?{height:0,width:0}:h);a={y:c!="horizontal"?a/100:1,x:c!="vertical"?a/100:1};e.to={height:h.height*a.y,width:h.width*a.x};if(d.options.fade){if(g=="show"){e.from.opacity=0;e.to.opacity=1}if(g=="hide"){e.from.opacity=
205
- 1;e.to.opacity=0}}f.from=e.from;f.to=e.to;f.mode=g;e.effect("size",f,d.duration,d.callback);e.dequeue()})};b.effects.size=function(d){return this.queue(function(){var e=b(this),f=["position","top","bottom","left","right","width","height","overflow","opacity"],g=["position","top","bottom","left","right","overflow","opacity"],a=["width","height","overflow"],c=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],i=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],
206
- j=b.effects.setMode(e,d.options.mode||"effect"),n=d.options.restore||false,o=d.options.scale||"both",l=d.options.origin,k={height:e.height(),width:e.width()};e.from=d.options.from||k;e.to=d.options.to||k;if(l){l=b.effects.getBaseline(l,k);e.from.top=(k.height-e.from.height)*l.y;e.from.left=(k.width-e.from.width)*l.x;e.to.top=(k.height-e.to.height)*l.y;e.to.left=(k.width-e.to.width)*l.x}var m={from:{y:e.from.height/k.height,x:e.from.width/k.width},to:{y:e.to.height/k.height,x:e.to.width/k.width}};
207
- if(o=="box"||o=="both"){if(m.from.y!=m.to.y){f=f.concat(h);e.from=b.effects.setTransition(e,h,m.from.y,e.from);e.to=b.effects.setTransition(e,h,m.to.y,e.to)}if(m.from.x!=m.to.x){f=f.concat(i);e.from=b.effects.setTransition(e,i,m.from.x,e.from);e.to=b.effects.setTransition(e,i,m.to.x,e.to)}}if(o=="content"||o=="both")if(m.from.y!=m.to.y){f=f.concat(c);e.from=b.effects.setTransition(e,c,m.from.y,e.from);e.to=b.effects.setTransition(e,c,m.to.y,e.to)}b.effects.save(e,n?f:g);e.show();b.effects.createWrapper(e);
208
- e.css("overflow","hidden").css(e.from);if(o=="content"||o=="both"){h=h.concat(["marginTop","marginBottom"]).concat(c);i=i.concat(["marginLeft","marginRight"]);a=f.concat(h).concat(i);e.find("*[width]").each(function(){child=b(this);n&&b.effects.save(child,a);var p={height:child.height(),width:child.width()};child.from={height:p.height*m.from.y,width:p.width*m.from.x};child.to={height:p.height*m.to.y,width:p.width*m.to.x};if(m.from.y!=m.to.y){child.from=b.effects.setTransition(child,h,m.from.y,child.from);
209
- child.to=b.effects.setTransition(child,h,m.to.y,child.to)}if(m.from.x!=m.to.x){child.from=b.effects.setTransition(child,i,m.from.x,child.from);child.to=b.effects.setTransition(child,i,m.to.x,child.to)}child.css(child.from);child.animate(child.to,d.duration,d.options.easing,function(){n&&b.effects.restore(child,a)})})}e.animate(e.to,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){e.to.opacity===0&&e.css("opacity",e.from.opacity);j=="hide"&&e.hide();b.effects.restore(e,
210
- n?f:g);b.effects.removeWrapper(e);d.callback&&d.callback.apply(this,arguments);e.dequeue()}})})}})(jQuery);
211
- (function(b){b.effects.shake=function(d){return this.queue(function(){var e=b(this),f=["position","top","bottom","left","right"];b.effects.setMode(e,d.options.mode||"effect");var g=d.options.direction||"left",a=d.options.distance||20,c=d.options.times||3,h=d.duration||d.options.duration||140;b.effects.save(e,f);e.show();b.effects.createWrapper(e);var i=g=="up"||g=="down"?"top":"left",j=g=="up"||g=="left"?"pos":"neg";g={};var n={},o={};g[i]=(j=="pos"?"-=":"+=")+a;n[i]=(j=="pos"?"+=":"-=")+a*2;o[i]=
212
- (j=="pos"?"-=":"+=")+a*2;e.animate(g,h,d.options.easing);for(a=1;a<c;a++)e.animate(n,h,d.options.easing).animate(o,h,d.options.easing);e.animate(n,h,d.options.easing).animate(g,h/2,d.options.easing,function(){b.effects.restore(e,f);b.effects.removeWrapper(e);d.callback&&d.callback.apply(this,arguments)});e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);
213
- (function(b){b.effects.slide=function(d){return this.queue(function(){var e=b(this),f=["position","top","bottom","left","right"],g=b.effects.setMode(e,d.options.mode||"show"),a=d.options.direction||"left";b.effects.save(e,f);e.show();b.effects.createWrapper(e).css({overflow:"hidden"});var c=a=="up"||a=="down"?"top":"left";a=a=="up"||a=="left"?"pos":"neg";var h=d.options.distance||(c=="top"?e.outerHeight({margin:true}):e.outerWidth({margin:true}));if(g=="show")e.css(c,a=="pos"?isNaN(h)?"-"+h:-h:h);
214
- var i={};i[c]=(g=="show"?a=="pos"?"+=":"-=":a=="pos"?"-=":"+=")+h;e.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){g=="hide"&&e.hide();b.effects.restore(e,f);b.effects.removeWrapper(e);d.callback&&d.callback.apply(this,arguments);e.dequeue()}})})}})(jQuery);
215
- (function(b){b.effects.transfer=function(d){return this.queue(function(){var e=b(this),f=b(d.options.to),g=f.offset();f={top:g.top,left:g.left,height:f.innerHeight(),width:f.innerWidth()};g=e.offset();var a=b('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(d.options.className).css({top:g.top,left:g.left,height:e.innerHeight(),width:e.innerWidth(),position:"absolute"}).animate(f,d.duration,d.options.easing,function(){a.remove();d.callback&&d.callback.apply(e[0],arguments);
216
- e.dequeue()})})}})(jQuery);
217
- (function(b){b.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var d=this,e=d.options;d.running=0;d.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");d.headers=
218
- d.element.find(e.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){e.disabled||b(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){e.disabled||b(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){e.disabled||b(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){e.disabled||b(this).removeClass("ui-state-focus")});d.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
219
- if(e.navigation){var f=d.element.find("a").filter(e.navigationFilter).eq(0);if(f.length){var g=f.closest(".ui-accordion-header");d.active=g.length?g:f.closest(".ui-accordion-content").prev()}}d.active=d._findActive(d.active||e.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");d.active.next().addClass("ui-accordion-content-active");d._createIcons();d.resize();d.element.attr("role","tablist");d.headers.attr("role","tab").bind("keydown.accordion",
220
- function(a){return d._keydown(a)}).next().attr("role","tabpanel");d.headers.not(d.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();d.active.length?d.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):d.headers.eq(0).attr("tabIndex",0);b.browser.safari||d.headers.find("a").attr("tabIndex",-1);e.event&&d.headers.bind(e.event.split(" ").join(".accordion ")+".accordion",function(a){d._clickHandler.call(d,a,this);a.preventDefault()})},_createIcons:function(){var d=
221
- this.options;if(d.icons){b("<span></span>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var d=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");
222
- this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var e=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(d.autoHeight||d.fillHeight)e.css("height","");return b.Widget.prototype.destroy.call(this)},_setOption:function(d,e){b.Widget.prototype._setOption.apply(this,arguments);d=="active"&&this.activate(e);if(d=="icons"){this._destroyIcons();
223
- e&&this._createIcons()}if(d=="disabled")this.headers.add(this.headers.next())[e?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(d){if(!(this.options.disabled||d.altKey||d.ctrlKey)){var e=b.ui.keyCode,f=this.headers.length,g=this.headers.index(d.target),a=false;switch(d.keyCode){case e.RIGHT:case e.DOWN:a=this.headers[(g+1)%f];break;case e.LEFT:case e.UP:a=this.headers[(g-1+f)%f];break;case e.SPACE:case e.ENTER:this._clickHandler({target:d.target},d.target);
224
- d.preventDefault()}if(a){b(d.target).attr("tabIndex",-1);b(a).attr("tabIndex",0);a.focus();return false}return true}},resize:function(){var d=this.options,e;if(d.fillSpace){if(b.browser.msie){var f=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}e=this.element.parent().height();b.browser.msie&&this.element.parent().css("overflow",f);this.headers.each(function(){e-=b(this).outerHeight(true)});this.headers.next().each(function(){b(this).height(Math.max(0,e-b(this).innerHeight()+
225
- b(this).height()))}).css("overflow","auto")}else if(d.autoHeight){e=0;this.headers.next().each(function(){e=Math.max(e,b(this).height("").height())}).height(e)}return this},activate:function(d){this.options.active=d;d=this._findActive(d)[0];this._clickHandler({target:d},d);return this},_findActive:function(d){return d?typeof d==="number"?this.headers.filter(":eq("+d+")"):this.headers.not(this.headers.not(d)):d===false?b([]):this.headers.filter(":eq(0)")},_clickHandler:function(d,e){var f=this.options;
226
- if(!f.disabled)if(d.target){d=b(d.currentTarget||e);e=d[0]===this.active[0];f.active=f.collapsible&&e?false:this.headers.index(d);if(!(this.running||!f.collapsible&&e)){var g=this.active;i=d.next();c=this.active.next();h={options:f,newHeader:e&&f.collapsible?b([]):d,oldHeader:this.active,newContent:e&&f.collapsible?b([]):i,oldContent:c};var a=this.headers.index(this.active[0])>this.headers.index(d[0]);this.active=e?b([]):d;this._toggle(i,c,h,e,a);g.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(f.icons.headerSelected).addClass(f.icons.header);
227
- if(!e){d.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(f.icons.header).addClass(f.icons.headerSelected);d.next().addClass("ui-accordion-content-active")}}}else if(f.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(f.icons.headerSelected).addClass(f.icons.header);this.active.next().addClass("ui-accordion-content-active");var c=this.active.next(),
228
- h={options:f,newHeader:b([]),oldHeader:f.active,newContent:b([]),oldContent:c},i=this.active=b([]);this._toggle(i,c,h)}},_toggle:function(d,e,f,g,a){var c=this,h=c.options;c.toShow=d;c.toHide=e;c.data=f;var i=function(){if(c)return c._completed.apply(c,arguments)};c._trigger("changestart",null,c.data);c.running=e.size()===0?d.size():e.size();if(h.animated){f={};f=h.collapsible&&g?{toShow:b([]),toHide:e,complete:i,down:a,autoHeight:h.autoHeight||h.fillSpace}:{toShow:d,toHide:e,complete:i,down:a,autoHeight:h.autoHeight||
229
- h.fillSpace};if(!h.proxied)h.proxied=h.animated;if(!h.proxiedDuration)h.proxiedDuration=h.duration;h.animated=b.isFunction(h.proxied)?h.proxied(f):h.proxied;h.duration=b.isFunction(h.proxiedDuration)?h.proxiedDuration(f):h.proxiedDuration;g=b.ui.accordion.animations;var j=h.duration,n=h.animated;if(n&&!g[n]&&!b.easing[n])n="slide";g[n]||(g[n]=function(o){this.slide(o,{easing:n,duration:j||700})});g[n](f)}else{if(h.collapsible&&g)d.toggle();else{e.hide();d.show()}i(true)}e.prev().attr({"aria-expanded":"false",
230
- "aria-selected":"false",tabIndex:-1}).blur();d.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(d){this.running=d?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});b.extend(b.ui.accordion,{version:"1.8.12",
231
- animations:{slide:function(d,e){d=b.extend({easing:"swing",duration:300},d,e);if(d.toHide.size())if(d.toShow.size()){var f=d.toShow.css("overflow"),g=0,a={},c={},h;e=d.toShow;h=e[0].style.width;e.width(parseInt(e.parent().width(),10)-parseInt(e.css("paddingLeft"),10)-parseInt(e.css("paddingRight"),10)-(parseInt(e.css("borderLeftWidth"),10)||0)-(parseInt(e.css("borderRightWidth"),10)||0));b.each(["height","paddingTop","paddingBottom"],function(i,j){c[j]="hide";i=(""+b.css(d.toShow[0],j)).match(/^([\d+-.]+)(.*)$/);
232
- a[j]={value:i[1],unit:i[2]||"px"}});d.toShow.css({height:0,overflow:"hidden"}).show();d.toHide.filter(":hidden").each(d.complete).end().filter(":visible").animate(c,{step:function(i,j){if(j.prop=="height")g=j.end-j.start===0?0:(j.now-j.start)/(j.end-j.start);d.toShow[0].style[j.prop]=g*a[j.prop].value+a[j.prop].unit},duration:d.duration,easing:d.easing,complete:function(){d.autoHeight||d.toShow.css("height","");d.toShow.css({width:h,overflow:f});d.complete()}})}else d.toHide.animate({height:"hide",
233
- paddingTop:"hide",paddingBottom:"hide"},d);else d.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},d)},bounceslide:function(d){this.slide(d,{easing:d.down?"easeOutBounce":"swing",duration:d.down?1E3:200})}}})})(jQuery);
234
- (function(b){var d=0;b.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var e=this,f=this.element[0].ownerDocument,g;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(a){if(!(e.options.disabled||e.element.attr("readonly"))){g=
235
- false;var c=b.ui.keyCode;switch(a.keyCode){case c.PAGE_UP:e._move("previousPage",a);break;case c.PAGE_DOWN:e._move("nextPage",a);break;case c.UP:e._move("previous",a);a.preventDefault();break;case c.DOWN:e._move("next",a);a.preventDefault();break;case c.ENTER:case c.NUMPAD_ENTER:if(e.menu.active){g=true;a.preventDefault()}case c.TAB:if(!e.menu.active)return;e.menu.select(a);break;case c.ESCAPE:e.element.val(e.term);e.close(a);break;default:clearTimeout(e.searching);e.searching=setTimeout(function(){if(e.term!=
236
- e.element.val()){e.selectedItem=null;e.search(null,a)}},e.options.delay);break}}}).bind("keypress.autocomplete",function(a){if(g){g=false;a.preventDefault()}}).bind("focus.autocomplete",function(){if(!e.options.disabled){e.selectedItem=null;e.previous=e.element.val()}}).bind("blur.autocomplete",function(a){if(!e.options.disabled){clearTimeout(e.searching);e.closing=setTimeout(function(){e.close(a);e._change(a)},150)}});this._initSource();this.response=function(){return e._response.apply(e,arguments)};
237
- this.menu=b("<ul></ul>").addClass("ui-autocomplete").appendTo(b(this.options.appendTo||"body",f)[0]).mousedown(function(a){var c=e.menu.element[0];b(a.target).closest(".ui-menu-item").length||setTimeout(function(){b(document).one("mousedown",function(h){h.target!==e.element[0]&&h.target!==c&&!b.ui.contains(c,h.target)&&e.close()})},1);setTimeout(function(){clearTimeout(e.closing)},13)}).menu({focus:function(a,c){c=c.item.data("item.autocomplete");false!==e._trigger("focus",a,{item:c})&&/^key/.test(a.originalEvent.type)&&
238
- e.element.val(c.value)},selected:function(a,c){var h=c.item.data("item.autocomplete"),i=e.previous;if(e.element[0]!==f.activeElement){e.element.focus();e.previous=i;setTimeout(function(){e.previous=i;e.selectedItem=h},1)}false!==e._trigger("select",a,{item:h})&&e.element.val(h.value);e.term=e.element.val();e.close(a);e.selectedItem=h},blur:function(){e.menu.element.is(":visible")&&e.element.val()!==e.term&&e.element.val(e.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");
239
- b.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();b.Widget.prototype.destroy.call(this)},_setOption:function(e,f){b.Widget.prototype._setOption.apply(this,arguments);e==="source"&&this._initSource();if(e==="appendTo")this.menu.element.appendTo(b(f||"body",this.element[0].ownerDocument)[0]);e==="disabled"&&
240
- f&&this.xhr&&this.xhr.abort()},_initSource:function(){var e=this,f,g;if(b.isArray(this.options.source)){f=this.options.source;this.source=function(a,c){c(b.ui.autocomplete.filter(f,a.term))}}else if(typeof this.options.source==="string"){g=this.options.source;this.source=function(a,c){e.xhr&&e.xhr.abort();e.xhr=b.ajax({url:g,data:a,dataType:"json",autocompleteRequest:++d,success:function(h){this.autocompleteRequest===d&&c(h)},error:function(){this.autocompleteRequest===d&&c([])}})}}else this.source=
241
- this.options.source},search:function(e,f){e=e!=null?e:this.element.val();this.term=this.element.val();if(e.length<this.options.minLength)return this.close(f);clearTimeout(this.closing);if(this._trigger("search",f)!==false)return this._search(e)},_search:function(e){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:e},this.response)},_response:function(e){if(!this.options.disabled&&e&&e.length){e=this._normalize(e);this._suggest(e);this._trigger("open")}else this.close();
242
- this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(e){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",e)}},_change:function(e){this.previous!==this.element.val()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){if(e.length&&e[0].label&&e[0].value)return e;return b.map(e,function(f){if(typeof f==="string")return{label:f,value:f};return b.extend({label:f.label||
243
- f.value,value:f.value||f.label},f)})},_suggest:function(e){var f=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(f,e);this.menu.deactivate();this.menu.refresh();f.show();this._resizeMenu();f.position(b.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new b.Event("mouseover"))},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(e,f){var g=this;
244
- b.each(f,function(a,c){g._renderItem(e,c)})},_renderItem:function(e,f){return b("<li></li>").data("item.autocomplete",f).append(b("<a></a>").text(f.label)).appendTo(e)},_move:function(e,f){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(e)||this.menu.last()&&/^next/.test(e)){this.element.val(this.term);this.menu.deactivate()}else this.menu[e](f);else this.search(null,f)},widget:function(){return this.menu.element}});b.extend(b.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
245
- "\\$&")},filter:function(e,f){var g=new RegExp(b.ui.autocomplete.escapeRegex(f),"i");return b.grep(e,function(a){return g.test(a.label||a.value||a)})}})})(jQuery);
246
- (function(b){b.widget("ui.menu",{_create:function(){var d=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(e){if(b(e.target).closest(".ui-menu-item a").length){e.preventDefault();d.select(e)}});this.refresh()},refresh:function(){var d=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
247
- -1).mouseenter(function(e){d.activate(e,b(this).parent())}).mouseleave(function(){d.deactivate()})},activate:function(d,e){this.deactivate();if(this.hasScroll()){var f=e.offset().top-this.element.offset().top,g=this.element.attr("scrollTop"),a=this.element.height();if(f<0)this.element.attr("scrollTop",g+f);else f>=a&&this.element.attr("scrollTop",g+f-a+e.height())}this.active=e.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",d,{item:e})},
248
- deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(d){this.move("next",".ui-menu-item:first",d)},previous:function(d){this.move("prev",".ui-menu-item:last",d)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(d,e,f){if(this.active){d=this.active[d+"All"](".ui-menu-item").eq(0);
249
- d.length?this.activate(f,d):this.activate(f,this.element.children(e))}else this.activate(f,this.element.children(e))},nextPage:function(d){if(this.hasScroll())if(!this.active||this.last())this.activate(d,this.element.children(".ui-menu-item:first"));else{var e=this.active.offset().top,f=this.element.height(),g=this.element.children(".ui-menu-item").filter(function(){var a=b(this).offset().top-e-f+b(this).height();return a<10&&a>-10});g.length||(g=this.element.children(".ui-menu-item:last"));this.activate(d,
250
- g)}else this.activate(d,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(d){if(this.hasScroll())if(!this.active||this.first())this.activate(d,this.element.children(".ui-menu-item:last"));else{var e=this.active.offset().top,f=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var g=b(this).offset().top-e+f-b(this).height();return g<10&&g>-10});result.length||(result=this.element.children(".ui-menu-item:first"));
251
- this.activate(d,result)}else this.activate(d,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(d){this._trigger("selected",d,{item:this.active})}})})(jQuery);
252
- (function(b){var d,e=function(g){b(":ui-button",g.target.form).each(function(){var a=b(this).data("button");setTimeout(function(){a.refresh()},1)})},f=function(g){var a=g.name,c=g.form,h=b([]);if(a)h=c?b(c).find("[name='"+a+"']"):b("[name='"+a+"']",g.ownerDocument).filter(function(){return!this.form});return h};b.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",
253
- e);if(typeof this.options.disabled!=="boolean")this.options.disabled=this.element.attr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var g=this,a=this.options,c=this.type==="checkbox"||this.type==="radio",h="ui-state-hover"+(!c?" ui-state-active":"");if(a.label===null)a.label=this.buttonElement.html();if(this.element.is(":disabled"))a.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",
254
- function(){if(!a.disabled){b(this).addClass("ui-state-hover");this===d&&b(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){a.disabled||b(this).removeClass(h)}).bind("focus.button",function(){b(this).addClass("ui-state-focus")}).bind("blur.button",function(){b(this).removeClass("ui-state-focus")});c&&this.element.bind("change.button",function(){g.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(a.disabled)return false;b(this).toggleClass("ui-state-active");
255
- g.buttonElement.attr("aria-pressed",g.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(a.disabled)return false;b(this).addClass("ui-state-active");g.buttonElement.attr("aria-pressed",true);var i=g.element[0];f(i).not(i).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(a.disabled)return false;b(this).addClass("ui-state-active");
256
- d=this;b(document).one("mouseup",function(){d=null})}).bind("mouseup.button",function(){if(a.disabled)return false;b(this).removeClass("ui-state-active")}).bind("keydown.button",function(i){if(a.disabled)return false;if(i.keyCode==b.ui.keyCode.SPACE||i.keyCode==b.ui.keyCode.ENTER)b(this).addClass("ui-state-active")}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(i){i.keyCode===b.ui.keyCode.SPACE&&b(this).click()})}this._setOption("disabled",
257
- a.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){var g=this.element.parents().filter(":last"),a="label[for="+this.element.attr("id")+"]";this.buttonElement=g.find(a);if(!this.buttonElement.length){g=g.length?g.siblings():this.element.siblings();this.buttonElement=g.filter(a);if(!this.buttonElement.length)this.buttonElement=g.find(a)}this.element.addClass("ui-helper-hidden-accessible");
258
- (g=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",g)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
259
- this.hasTitle||this.buttonElement.removeAttr("title");b.Widget.prototype.destroy.call(this)},_setOption:function(g,a){b.Widget.prototype._setOption.apply(this,arguments);if(g==="disabled")a?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var g=this.element.is(":disabled");g!==this.options.disabled&&this._setOption("disabled",g);if(this.type==="radio")f(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
260
- true):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var g=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
261
- a=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(g.empty()).text(),c=this.options.icons,h=c.primary&&c.secondary,i=[];if(c.primary||c.secondary){if(this.options.text)i.push("ui-button-text-icon"+(h?"s":c.primary?"-primary":"-secondary"));c.primary&&g.prepend("<span class='ui-button-icon-primary ui-icon "+c.primary+"'></span>");c.secondary&&g.append("<span class='ui-button-icon-secondary ui-icon "+c.secondary+"'></span>");if(!this.options.text){i.push(h?"ui-button-icons-only":
262
- "ui-button-icon-only");this.hasTitle||g.attr("title",a)}}else i.push("ui-button-text-only");g.addClass(i.join(" "))}}});b.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(g,a){g==="disabled"&&this.buttons.button("option",g,a);b.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},
263
- destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");b.Widget.prototype.destroy.call(this)}})})(jQuery);
264
- (function(b,d){function e(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
265
- "ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
266
- "Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
267
- minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};b.extend(this._defaults,this.regional[""]);this.dpDiv=b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}function f(a,c){b.extend(a,c);for(var h in c)if(c[h]==
268
- null||c[h]==d)a[h]=c[h];return a}b.extend(b.ui,{datepicker:{version:"1.8.12"}});var g=(new Date).getTime();b.extend(e.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){f(this._defaults,a||{});return this},_attachDatepicker:function(a,c){var h=null;for(var i in this._defaults){var j=a.getAttribute("date:"+i);if(j){h=h||{};try{h[i]=eval(j)}catch(n){h[i]=j}}}i=a.nodeName.toLowerCase();
269
- j=i=="div"||i=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var o=this._newInst(b(a),j);o.settings=b.extend({},c||{},h||{});if(i=="input")this._connectDatepicker(a,o);else j&&this._inlineDatepicker(a,o)},_newInst:function(a,c){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:!c?this.dpDiv:b('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
270
- _connectDatepicker:function(a,c){var h=b(a);c.append=b([]);c.trigger=b([]);if(!h.hasClass(this.markerClassName)){this._attachments(h,c);h.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(i,j,n){c.settings[j]=n}).bind("getData.datepicker",function(i,j){return this._get(c,j)});this._autoSize(c);b.data(a,"datepicker",c)}},_attachments:function(a,c){var h=this._get(c,"appendText"),i=this._get(c,"isRTL");c.append&&
271
- c.append.remove();if(h){c.append=b('<span class="'+this._appendClass+'">'+h+"</span>");a[i?"before":"after"](c.append)}a.unbind("focus",this._showDatepicker);c.trigger&&c.trigger.remove();h=this._get(c,"showOn");if(h=="focus"||h=="both")a.focus(this._showDatepicker);if(h=="button"||h=="both"){h=this._get(c,"buttonText");var j=this._get(c,"buttonImage");c.trigger=b(this._get(c,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:j,alt:h,title:h}):b('<button type="button"></button>').addClass(this._triggerClass).html(j==
272
- ""?h:b("<img/>").attr({src:j,alt:h,title:h})));a[i?"before":"after"](c.trigger);c.trigger.click(function(){b.datepicker._datepickerShowing&&b.datepicker._lastInput==a[0]?b.datepicker._hideDatepicker():b.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var c=new Date(2009,11,20),h=this._get(a,"dateFormat");if(h.match(/[DM]/)){var i=function(j){for(var n=0,o=0,l=0;l<j.length;l++)if(j[l].length>n){n=j[l].length;o=l}return o};c.setMonth(i(this._get(a,
273
- h.match(/MM/)?"monthNames":"monthNamesShort")));c.setDate(i(this._get(a,h.match(/DD/)?"dayNames":"dayNamesShort"))+20-c.getDay())}a.input.attr("size",this._formatDate(a,c).length)}},_inlineDatepicker:function(a,c){var h=b(a);if(!h.hasClass(this.markerClassName)){h.addClass(this.markerClassName).append(c.dpDiv).bind("setData.datepicker",function(i,j,n){c.settings[j]=n}).bind("getData.datepicker",function(i,j){return this._get(c,j)});b.data(a,"datepicker",c);this._setDate(c,this._getDefaultDate(c),
274
- true);this._updateDatepicker(c);this._updateAlternate(c);c.dpDiv.show()}},_dialogDatepicker:function(a,c,h,i,j){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=b('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);b("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};b.data(this._dialogInput[0],"datepicker",a)}f(a.settings,i||{});
275
- c=c&&c.constructor==Date?this._formatDate(a,c):c;this._dialogInput.val(c);this._pos=j?j.length?j:[j.pageX,j.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=h;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);
276
- this._showDatepicker(this._dialogInput[0]);b.blockUI&&b.blockUI(this.dpDiv);b.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var c=b(a),h=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var i=a.nodeName.toLowerCase();b.removeData(a,"datepicker");if(i=="input"){h.append.remove();h.trigger.remove();c.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",
277
- this._doKeyUp)}else if(i=="div"||i=="span")c.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var c=b(a),h=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var i=a.nodeName.toLowerCase();if(i=="input"){a.disabled=false;h.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(i=="div"||i=="span")c.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,
278
- function(j){return j==a?null:j})}},_disableDatepicker:function(a){var c=b(a),h=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var i=a.nodeName.toLowerCase();if(i=="input"){a.disabled=true;h.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(i=="div"||i=="span")c.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(j){return j==a?null:
279
- j});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var c=0;c<this._disabledInputs.length;c++)if(this._disabledInputs[c]==a)return true;return false},_getInst:function(a){try{return b.data(a,"datepicker")}catch(c){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,c,h){var i=this._getInst(a);if(arguments.length==2&&typeof c=="string")return c=="defaults"?b.extend({},b.datepicker._defaults):i?c=="all"?b.extend({},
280
- i.settings):this._get(i,c):null;var j=c||{};if(typeof c=="string"){j={};j[c]=h}if(i){this._curInst==i&&this._hideDatepicker();var n=this._getDateDatepicker(a,true),o=this._getMinMaxDate(i,"min"),l=this._getMinMaxDate(i,"max");f(i.settings,j);if(o!==null&&j.dateFormat!==d&&j.minDate===d)i.settings.minDate=this._formatDate(i,o);if(l!==null&&j.dateFormat!==d&&j.maxDate===d)i.settings.maxDate=this._formatDate(i,l);this._attachments(b(a),i);this._autoSize(i);this._setDateDatepicker(a,n);this._updateDatepicker(i)}},
281
- _changeDatepicker:function(a,c,h){this._optionDatepicker(a,c,h)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,c){if(a=this._getInst(a)){this._setDate(a,c);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,c){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,c);return a?this._getDate(a):null},_doKeyDown:function(a){var c=b.datepicker._getInst(a.target),h=true,i=c.dpDiv.is(".ui-datepicker-rtl");
282
- c._keyEvent=true;if(b.datepicker._datepickerShowing)switch(a.keyCode){case 9:b.datepicker._hideDatepicker();h=false;break;case 13:h=b("td."+b.datepicker._dayOverClass+":not(."+b.datepicker._currentClass+")",c.dpDiv);h[0]?b.datepicker._selectDay(a.target,c.selectedMonth,c.selectedYear,h[0]):b.datepicker._hideDatepicker();return false;case 27:b.datepicker._hideDatepicker();break;case 33:b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(c,"stepBigMonths"):-b.datepicker._get(c,"stepMonths"),
283
- "M");break;case 34:b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(c,"stepBigMonths"):+b.datepicker._get(c,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)b.datepicker._clearDate(a.target);h=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)b.datepicker._gotoToday(a.target);h=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,i?+1:-1,"D");h=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?
284
- -b.datepicker._get(c,"stepBigMonths"):-b.datepicker._get(c,"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,-7,"D");h=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,i?-1:+1,"D");h=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(c,"stepBigMonths"):+b.datepicker._get(c,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,
285
- +7,"D");h=a.ctrlKey||a.metaKey;break;default:h=false}else if(a.keyCode==36&&a.ctrlKey)b.datepicker._showDatepicker(this);else h=false;if(h){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var c=b.datepicker._getInst(a.target);if(b.datepicker._get(c,"constrainInput")){c=b.datepicker._possibleChars(b.datepicker._get(c,"dateFormat"));var h=String.fromCharCode(a.charCode==d?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||h<" "||!c||c.indexOf(h)>-1}},_doKeyUp:function(a){a=b.datepicker._getInst(a.target);
286
- if(a.input.val()!=a.lastVal)try{if(b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,b.datepicker._getFormatConfig(a))){b.datepicker._setDateFromField(a);b.datepicker._updateAlternate(a);b.datepicker._updateDatepicker(a)}}catch(c){b.datepicker.log(c)}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=b("input",a.parentNode)[0];if(!(b.datepicker._isDisabledDatepicker(a)||b.datepicker._lastInput==a)){var c=b.datepicker._getInst(a);
287
- b.datepicker._curInst&&b.datepicker._curInst!=c&&b.datepicker._curInst.dpDiv.stop(true,true);var h=b.datepicker._get(c,"beforeShow");f(c.settings,h?h.apply(a,[a,c]):{});c.lastVal=null;b.datepicker._lastInput=a;b.datepicker._setDateFromField(c);if(b.datepicker._inDialog)a.value="";if(!b.datepicker._pos){b.datepicker._pos=b.datepicker._findPos(a);b.datepicker._pos[1]+=a.offsetHeight}var i=false;b(a).parents().each(function(){i|=b(this).css("position")=="fixed";return!i});if(i&&b.browser.opera){b.datepicker._pos[0]-=
288
- document.documentElement.scrollLeft;b.datepicker._pos[1]-=document.documentElement.scrollTop}h={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=null;c.dpDiv.empty();c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(c);h=b.datepicker._checkOffset(c,h,i);c.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":i?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"});if(!c.inline){h=b.datepicker._get(c,"showAnim");
289
- var j=b.datepicker._get(c,"duration"),n=function(){b.datepicker._datepickerShowing=true;var o=c.dpDiv.find("iframe.ui-datepicker-cover");if(o.length){var l=b.datepicker._getBorders(c.dpDiv);o.css({left:-l[0],top:-l[1],width:c.dpDiv.outerWidth(),height:c.dpDiv.outerHeight()})}};c.dpDiv.zIndex(b(a).zIndex()+1);b.effects&&b.effects[h]?c.dpDiv.show(h,b.datepicker._get(c,"showOptions"),j,n):c.dpDiv[h||"show"](h?j:null,n);if(!h||!j)n();c.input.is(":visible")&&!c.input.is(":disabled")&&c.input.focus();b.datepicker._curInst=
290
- c}}},_updateDatepicker:function(a){var c=this,h=b.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a));var i=a.dpDiv.find("iframe.ui-datepicker-cover");i.length&&i.css({left:-h[0],top:-h[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){b(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).removeClass("ui-datepicker-prev-hover");
291
- this.className.indexOf("ui-datepicker-next")!=-1&&b(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!c._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).addClass("ui-datepicker-next-hover")}}).end().find("."+
292
- this._dayOverClass+" a").trigger("mouseover").end();h=this._getNumberOfMonths(a);i=h[1];i>1?a.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(h[0]!=1||h[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==b.datepicker._curInst&&b.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&
293
- a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var j=a.yearshtml;setTimeout(function(){j===a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);j=a.yearshtml=null},0)}},_getBorders:function(a){var c=function(h){return{thin:1,medium:2,thick:3}[h]||h};return[parseFloat(c(a.css("border-left-width"))),parseFloat(c(a.css("border-top-width")))]},_checkOffset:function(a,c,h){var i=a.dpDiv.outerWidth(),j=a.dpDiv.outerHeight(),n=a.input?a.input.outerWidth():
294
- 0,o=a.input?a.input.outerHeight():0,l=document.documentElement.clientWidth+b(document).scrollLeft(),k=document.documentElement.clientHeight+b(document).scrollTop();c.left-=this._get(a,"isRTL")?i-n:0;c.left-=h&&c.left==a.input.offset().left?b(document).scrollLeft():0;c.top-=h&&c.top==a.input.offset().top+o?b(document).scrollTop():0;c.left-=Math.min(c.left,c.left+i>l&&l>i?Math.abs(c.left+i-l):0);c.top-=Math.min(c.top,c.top+j>k&&k>j?Math.abs(j+o):0);return c},_findPos:function(a){for(var c=this._get(this._getInst(a),
295
- "isRTL");a&&(a.type=="hidden"||a.nodeType!=1||b.expr.filters.hidden(a));)a=a[c?"previousSibling":"nextSibling"];a=b(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var c=this._curInst;if(!(!c||a&&c!=b.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(c,"showAnim");var h=this._get(c,"duration"),i=function(){b.datepicker._tidyDialog(c);this._curInst=null};b.effects&&b.effects[a]?c.dpDiv.hide(a,b.datepicker._get(c,"showOptions"),h,i):c.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?
296
- "fadeOut":"hide"](a?h:null,i);a||i();if(a=this._get(c,"onClose"))a.apply(c.input?c.input[0]:null,[c.input?c.input.val():"",c]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(b.blockUI){b.unblockUI();b("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(b.datepicker._curInst){a=
297
- b(a.target);a[0].id!=b.datepicker._mainDivId&&a.parents("#"+b.datepicker._mainDivId).length==0&&!a.hasClass(b.datepicker.markerClassName)&&!a.hasClass(b.datepicker._triggerClass)&&b.datepicker._datepickerShowing&&!(b.datepicker._inDialog&&b.blockUI)&&b.datepicker._hideDatepicker()}},_adjustDate:function(a,c,h){a=b(a);var i=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(i,c+(h=="M"?this._get(i,"showCurrentAtPos"):0),h);this._updateDatepicker(i)}},_gotoToday:function(a){a=
298
- b(a);var c=this._getInst(a[0]);if(this._get(c,"gotoCurrent")&&c.currentDay){c.selectedDay=c.currentDay;c.drawMonth=c.selectedMonth=c.currentMonth;c.drawYear=c.selectedYear=c.currentYear}else{var h=new Date;c.selectedDay=h.getDate();c.drawMonth=c.selectedMonth=h.getMonth();c.drawYear=c.selectedYear=h.getFullYear()}this._notifyChange(c);this._adjustDate(a)},_selectMonthYear:function(a,c,h){a=b(a);var i=this._getInst(a[0]);i._selectingMonthYear=false;i["selected"+(h=="M"?"Month":"Year")]=i["draw"+(h==
299
- "M"?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10);this._notifyChange(i);this._adjustDate(a)},_clickMonthYear:function(a){var c=this._getInst(b(a)[0]);c.input&&c._selectingMonthYear&&setTimeout(function(){c.input.focus()},0);c._selectingMonthYear=!c._selectingMonthYear},_selectDay:function(a,c,h,i){var j=b(a);if(!(b(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(j[0]))){j=this._getInst(j[0]);j.selectedDay=j.currentDay=b("a",i).html();j.selectedMonth=j.currentMonth=
300
- c;j.selectedYear=j.currentYear=h;this._selectDate(a,this._formatDate(j,j.currentDay,j.currentMonth,j.currentYear))}},_clearDate:function(a){a=b(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,c){a=this._getInst(b(a)[0]);c=c!=null?c:this._formatDate(a);a.input&&a.input.val(c);this._updateAlternate(a);var h=this._get(a,"onSelect");if(h)h.apply(a.input?a.input[0]:null,[c,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else{this._hideDatepicker();
301
- this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var c=this._get(a,"altField");if(c){var h=this._get(a,"altFormat")||this._get(a,"dateFormat"),i=this._getDate(a),j=this.formatDate(h,i,this._getFormatConfig(a));b(c).each(function(){b(this).val(j)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var c=a.getTime();a.setMonth(0);
302
- a.setDate(1);return Math.floor(Math.round((c-a)/864E5)/7)+1},parseDate:function(a,c,h){if(a==null||c==null)throw"Invalid arguments";c=typeof c=="object"?c.toString():c+"";if(c=="")return null;var i=(h?h.shortYearCutoff:null)||this._defaults.shortYearCutoff;i=typeof i!="string"?i:(new Date).getFullYear()%100+parseInt(i,10);for(var j=(h?h.dayNamesShort:null)||this._defaults.dayNamesShort,n=(h?h.dayNames:null)||this._defaults.dayNames,o=(h?h.monthNamesShort:null)||this._defaults.monthNamesShort,l=(h?
303
- h.monthNames:null)||this._defaults.monthNames,k=h=-1,m=-1,p=-1,q=false,s=function(x){(x=y+1<a.length&&a.charAt(y+1)==x)&&y++;return x},r=function(x){var C=s(x);x=new RegExp("^\\d{1,"+(x=="@"?14:x=="!"?20:x=="y"&&C?4:x=="o"?3:2)+"}");x=c.substring(w).match(x);if(!x)throw"Missing number at position "+w;w+=x[0].length;return parseInt(x[0],10)},u=function(x,C,J){x=s(x)?J:C;for(C=0;C<x.length;C++)if(c.substr(w,x[C].length).toLowerCase()==x[C].toLowerCase()){w+=x[C].length;return C+1}throw"Unknown name at position "+
304
- w;},v=function(){if(c.charAt(w)!=a.charAt(y))throw"Unexpected literal at position "+w;w++},w=0,y=0;y<a.length;y++)if(q)if(a.charAt(y)=="'"&&!s("'"))q=false;else v();else switch(a.charAt(y)){case "d":m=r("d");break;case "D":u("D",j,n);break;case "o":p=r("o");break;case "m":k=r("m");break;case "M":k=u("M",o,l);break;case "y":h=r("y");break;case "@":var B=new Date(r("@"));h=B.getFullYear();k=B.getMonth()+1;m=B.getDate();break;case "!":B=new Date((r("!")-this._ticksTo1970)/1E4);h=B.getFullYear();k=B.getMonth()+
305
- 1;m=B.getDate();break;case "'":if(s("'"))v();else q=true;break;default:v()}if(h==-1)h=(new Date).getFullYear();else if(h<100)h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=i?0:-100);if(p>-1){k=1;m=p;do{i=this._getDaysInMonth(h,k-1);if(m<=i)break;k++;m-=i}while(1)}B=this._daylightSavingAdjust(new Date(h,k-1,m));if(B.getFullYear()!=h||B.getMonth()+1!=k||B.getDate()!=m)throw"Invalid date";return B},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",
306
- RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,c,h){if(!c)return"";var i=(h?h.dayNamesShort:null)||this._defaults.dayNamesShort,j=(h?h.dayNames:null)||this._defaults.dayNames,n=(h?h.monthNamesShort:null)||this._defaults.monthNamesShort;h=(h?h.monthNames:null)||this._defaults.monthNames;var o=function(s){(s=q+1<a.length&&
307
- a.charAt(q+1)==s)&&q++;return s},l=function(s,r,u){r=""+r;if(o(s))for(;r.length<u;)r="0"+r;return r},k=function(s,r,u,v){return o(s)?v[r]:u[r]},m="",p=false;if(c)for(var q=0;q<a.length;q++)if(p)if(a.charAt(q)=="'"&&!o("'"))p=false;else m+=a.charAt(q);else switch(a.charAt(q)){case "d":m+=l("d",c.getDate(),2);break;case "D":m+=k("D",c.getDay(),i,j);break;case "o":m+=l("o",(c.getTime()-(new Date(c.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":m+=l("m",c.getMonth()+1,2);break;case "M":m+=k("M",
308
- c.getMonth(),n,h);break;case "y":m+=o("y")?c.getFullYear():(c.getYear()%100<10?"0":"")+c.getYear()%100;break;case "@":m+=c.getTime();break;case "!":m+=c.getTime()*1E4+this._ticksTo1970;break;case "'":if(o("'"))m+="'";else p=true;break;default:m+=a.charAt(q)}return m},_possibleChars:function(a){for(var c="",h=false,i=function(n){(n=j+1<a.length&&a.charAt(j+1)==n)&&j++;return n},j=0;j<a.length;j++)if(h)if(a.charAt(j)=="'"&&!i("'"))h=false;else c+=a.charAt(j);else switch(a.charAt(j)){case "d":case "m":case "y":case "@":c+=
309
- "0123456789";break;case "D":case "M":return null;case "'":if(i("'"))c+="'";else h=true;break;default:c+=a.charAt(j)}return c},_get:function(a,c){return a.settings[c]!==d?a.settings[c]:this._defaults[c]},_setDateFromField:function(a,c){if(a.input.val()!=a.lastVal){var h=this._get(a,"dateFormat"),i=a.lastVal=a.input?a.input.val():null,j,n;j=n=this._getDefaultDate(a);var o=this._getFormatConfig(a);try{j=this.parseDate(h,i,o)||n}catch(l){this.log(l);i=c?"":i}a.selectedDay=j.getDate();a.drawMonth=a.selectedMonth=
310
- j.getMonth();a.drawYear=a.selectedYear=j.getFullYear();a.currentDay=i?j.getDate():0;a.currentMonth=i?j.getMonth():0;a.currentYear=i?j.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,c,h){var i=function(n){var o=new Date;o.setDate(o.getDate()+n);return o},j=function(n){try{return b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),n,b.datepicker._getFormatConfig(a))}catch(o){}var l=
311
- (n.toLowerCase().match(/^c/)?b.datepicker._getDate(a):null)||new Date,k=l.getFullYear(),m=l.getMonth();l=l.getDate();for(var p=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,q=p.exec(n);q;){switch(q[2]||"d"){case "d":case "D":l+=parseInt(q[1],10);break;case "w":case "W":l+=parseInt(q[1],10)*7;break;case "m":case "M":m+=parseInt(q[1],10);l=Math.min(l,b.datepicker._getDaysInMonth(k,m));break;case "y":case "Y":k+=parseInt(q[1],10);l=Math.min(l,b.datepicker._getDaysInMonth(k,m));break}q=p.exec(n)}return new Date(k,
312
- m,l)};if(c=(c=c==null||c===""?h:typeof c=="string"?j(c):typeof c=="number"?isNaN(c)?h:i(c):new Date(c.getTime()))&&c.toString()=="Invalid Date"?h:c){c.setHours(0);c.setMinutes(0);c.setSeconds(0);c.setMilliseconds(0)}return this._daylightSavingAdjust(c)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,c,h){var i=!c,j=a.selectedMonth,n=a.selectedYear;c=this._restrictMinMax(a,this._determineDate(a,c,new Date));a.selectedDay=
313
- a.currentDay=c.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=c.getMonth();a.drawYear=a.selectedYear=a.currentYear=c.getFullYear();if((j!=a.selectedMonth||n!=a.selectedYear)&&!h)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(i?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var c=new Date;c=this._daylightSavingAdjust(new Date(c.getFullYear(),
314
- c.getMonth(),c.getDate()));var h=this._get(a,"isRTL"),i=this._get(a,"showButtonPanel"),j=this._get(a,"hideIfNoPrevNext"),n=this._get(a,"navigationAsDateFormat"),o=this._getNumberOfMonths(a),l=this._get(a,"showCurrentAtPos"),k=this._get(a,"stepMonths"),m=o[0]!=1||o[1]!=1,p=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),q=this._getMinMaxDate(a,"min"),s=this._getMinMaxDate(a,"max");l=a.drawMonth-l;var r=a.drawYear;if(l<0){l+=12;r--}if(s){var u=
315
- this._daylightSavingAdjust(new Date(s.getFullYear(),s.getMonth()-o[0]*o[1]+1,s.getDate()));for(u=q&&u<q?q:u;this._daylightSavingAdjust(new Date(r,l,1))>u;){l--;if(l<0){l=11;r--}}}a.drawMonth=l;a.drawYear=r;u=this._get(a,"prevText");u=!n?u:this.formatDate(u,this._daylightSavingAdjust(new Date(r,l-k,1)),this._getFormatConfig(a));u=this._canAdjustMonth(a,-1,r,l)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._adjustDate('#"+a.id+"', -"+k+", 'M');\" title=\""+u+'"><span class="ui-icon ui-icon-circle-triangle-'+
316
- (h?"e":"w")+'">'+u+"</span></a>":j?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+u+'"><span class="ui-icon ui-icon-circle-triangle-'+(h?"e":"w")+'">'+u+"</span></a>";var v=this._get(a,"nextText");v=!n?v:this.formatDate(v,this._daylightSavingAdjust(new Date(r,l+k,1)),this._getFormatConfig(a));j=this._canAdjustMonth(a,+1,r,l)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._adjustDate('#"+a.id+"', +"+k+", 'M');\" title=\""+v+'"><span class="ui-icon ui-icon-circle-triangle-'+
317
- (h?"w":"e")+'">'+v+"</span></a>":j?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+v+'"><span class="ui-icon ui-icon-circle-triangle-'+(h?"w":"e")+'">'+v+"</span></a>";k=this._get(a,"currentText");v=this._get(a,"gotoCurrent")&&a.currentDay?p:c;k=!n?k:this.formatDate(k,v,this._getFormatConfig(a));n=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+g+'.datepicker._hideDatepicker();">'+this._get(a,
318
- "closeText")+"</button>":"";i=i?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(h?n:"")+(this._isInRange(a,v)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._gotoToday('#"+a.id+"');\">"+k+"</button>":"")+(h?"":n)+"</div>":"";n=parseInt(this._get(a,"firstDay"),10);n=isNaN(n)?0:n;k=this._get(a,"showWeek");v=this._get(a,"dayNames");this._get(a,"dayNamesShort");var w=this._get(a,"dayNamesMin"),y=
319
- this._get(a,"monthNames"),B=this._get(a,"monthNamesShort"),x=this._get(a,"beforeShowDay"),C=this._get(a,"showOtherMonths"),J=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var M=this._getDefaultDate(a),K="",G=0;G<o[0];G++){for(var N="",H=0;H<o[1];H++){var O=this._daylightSavingAdjust(new Date(r,l,a.selectedDay)),A=" ui-corner-all",D="";if(m){D+='<div class="ui-datepicker-group';if(o[1]>1)switch(H){case 0:D+=" ui-datepicker-group-first";A=" ui-corner-"+(h?"right":"left");break;case o[1]-
320
- 1:D+=" ui-datepicker-group-last";A=" ui-corner-"+(h?"left":"right");break;default:D+=" ui-datepicker-group-middle";A="";break}D+='">'}D+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+A+'">'+(/all|left/.test(A)&&G==0?h?j:u:"")+(/all|right/.test(A)&&G==0?h?u:j:"")+this._generateMonthYearHeader(a,l,r,q,s,G>0||H>0,y,B)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var E=k?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(A=0;A<7;A++){var z=
321
- (A+n)%7;E+="<th"+((A+n+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+v[z]+'">'+w[z]+"</span></th>"}D+=E+"</tr></thead><tbody>";E=this._getDaysInMonth(r,l);if(r==a.selectedYear&&l==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,E);A=(this._getFirstDayOfMonth(r,l)-n+7)%7;E=m?6:Math.ceil((A+E)/7);z=this._daylightSavingAdjust(new Date(r,l,1-A));for(var P=0;P<E;P++){D+="<tr>";var Q=!k?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(z)+"</td>";for(A=0;A<7;A++){var I=
322
- x?x.apply(a.input?a.input[0]:null,[z]):[true,""],F=z.getMonth()!=l,L=F&&!J||!I[0]||q&&z<q||s&&z>s;Q+='<td class="'+((A+n+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(z.getTime()==O.getTime()&&l==a.selectedMonth&&a._keyEvent||M.getTime()==z.getTime()&&M.getTime()==O.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!C?"":" "+I[1]+(z.getTime()==p.getTime()?" "+this._currentClass:"")+(z.getTime()==c.getTime()?" ui-datepicker-today":
323
- ""))+'"'+((!F||C)&&I[2]?' title="'+I[2]+'"':"")+(L?"":' onclick="DP_jQuery_'+g+".datepicker._selectDay('#"+a.id+"',"+z.getMonth()+","+z.getFullYear()+', this);return false;"')+">"+(F&&!C?"&#xa0;":L?'<span class="ui-state-default">'+z.getDate()+"</span>":'<a class="ui-state-default'+(z.getTime()==c.getTime()?" ui-state-highlight":"")+(z.getTime()==p.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+'" href="#">'+z.getDate()+"</a>")+"</td>";z.setDate(z.getDate()+1);z=this._daylightSavingAdjust(z)}D+=
324
- Q+"</tr>"}l++;if(l>11){l=0;r++}D+="</tbody></table>"+(m?"</div>"+(o[0]>0&&H==o[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");N+=D}K+=N}K+=i+(b.browser.msie&&parseInt(b.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return K},_generateMonthYearHeader:function(a,c,h,i,j,n,o,l){var k=this._get(a,"changeMonth"),m=this._get(a,"changeYear"),p=this._get(a,"showMonthAfterYear"),q='<div class="ui-datepicker-title">',
325
- s="";if(n||!k)s+='<span class="ui-datepicker-month">'+o[c]+"</span>";else{o=i&&i.getFullYear()==h;var r=j&&j.getFullYear()==h;s+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+g+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+g+".datepicker._clickMonthYear('#"+a.id+"');\">";for(var u=0;u<12;u++)if((!o||u>=i.getMonth())&&(!r||u<=j.getMonth()))s+='<option value="'+u+'"'+(u==c?' selected="selected"':"")+">"+l[u]+"</option>";s+="</select>"}p||(q+=s+(n||!(k&&
326
- m)?"&#xa0;":""));if(!a.yearshtml){a.yearshtml="";if(n||!m)q+='<span class="ui-datepicker-year">'+h+"</span>";else{l=this._get(a,"yearRange").split(":");var v=(new Date).getFullYear();o=function(w){w=w.match(/c[+-].*/)?h+parseInt(w.substring(1),10):w.match(/[+-].*/)?v+parseInt(w,10):parseInt(w,10);return isNaN(w)?v:w};c=o(l[0]);l=Math.max(c,o(l[1]||""));c=i?Math.max(c,i.getFullYear()):c;l=j?Math.min(l,j.getFullYear()):l;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+g+".datepicker._selectMonthYear('#"+
327
- a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+g+".datepicker._clickMonthYear('#"+a.id+"');\">";c<=l;c++)a.yearshtml+='<option value="'+c+'"'+(c==h?' selected="selected"':"")+">"+c+"</option>";a.yearshtml+="</select>";if(b.browser.mozilla)q+='<select class="ui-datepicker-year"><option value="'+h+'" selected="selected">'+h+"</option></select>";else{q+=a.yearshtml;a.yearshtml=null}}}q+=this._get(a,"yearSuffix");if(p)q+=(n||!(k&&m)?"&#xa0;":"")+s;q+="</div>";return q},_adjustInstDate:function(a,c,h){var i=
328
- a.drawYear+(h=="Y"?c:0),j=a.drawMonth+(h=="M"?c:0);c=Math.min(a.selectedDay,this._getDaysInMonth(i,j))+(h=="D"?c:0);i=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(i,j,c)));a.selectedDay=i.getDate();a.drawMonth=a.selectedMonth=i.getMonth();a.drawYear=a.selectedYear=i.getFullYear();if(h=="M"||h=="Y")this._notifyChange(a)},_restrictMinMax:function(a,c){var h=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");c=h&&c<h?h:c;return c=a&&c>a?a:c},_notifyChange:function(a){var c=this._get(a,
329
- "onChangeMonthYear");if(c)c.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,c){return this._determineDate(a,this._get(a,c+"Date"),null)},_getDaysInMonth:function(a,c){return 32-this._daylightSavingAdjust(new Date(a,c,32)).getDate()},_getFirstDayOfMonth:function(a,c){return(new Date(a,c,1)).getDay()},_canAdjustMonth:function(a,c,h,i){var j=this._getNumberOfMonths(a);
330
- h=this._daylightSavingAdjust(new Date(h,i+(c<0?c:j[0]*j[1]),1));c<0&&h.setDate(this._getDaysInMonth(h.getFullYear(),h.getMonth()));return this._isInRange(a,h)},_isInRange:function(a,c){var h=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!h||c.getTime()>=h.getTime())&&(!a||c.getTime()<=a.getTime())},_getFormatConfig:function(a){var c=this._get(a,"shortYearCutoff");c=typeof c!="string"?c:(new Date).getFullYear()%100+parseInt(c,10);return{shortYearCutoff:c,dayNamesShort:this._get(a,
331
- "dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,c,h,i){if(!c){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}c=c?typeof c=="object"?c:this._daylightSavingAdjust(new Date(i,h,c)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),c,this._getFormatConfig(a))}});b.fn.datepicker=
332
- function(a){if(!this.length)return this;if(!b.datepicker.initialized){b(document).mousedown(b.datepicker._checkExternalClick).find("body").append(b.datepicker.dpDiv);b.datepicker.initialized=true}var c=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(c));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,
333
- [this[0]].concat(c));return this.each(function(){typeof a=="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this].concat(c)):b.datepicker._attachDatepicker(this,a)})};b.datepicker=new e;b.datepicker.initialized=false;b.datepicker.uuid=(new Date).getTime();b.datepicker.version="1.8.12";window["DP_jQuery_"+g]=b})(jQuery);
334
- (function(b,d){var e={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},f={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},g=b.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};b.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,
335
- position:{my:"center",at:"center",collision:"fit",using:function(a){var c=b(this).css(a).offset().top;c<0&&b(this).css("top",a.top-c)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,c=a.options,h=c.title||"&#160;",i=b.ui.dialog.getTitleId(a.element),j=(a.uiDialog=b("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
336
- c.dialogClass).css({zIndex:c.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(l){if(c.closeOnEscape&&l.keyCode&&l.keyCode===b.ui.keyCode.ESCAPE){a.close(l);l.preventDefault()}}).attr({role:"dialog","aria-labelledby":i}).mousedown(function(l){a.moveToTop(false,l)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(j);var n=(a.uiDialogTitlebar=b("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(j),
337
- o=b('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){o.addClass("ui-state-hover")},function(){o.removeClass("ui-state-hover")}).focus(function(){o.addClass("ui-state-focus")}).blur(function(){o.removeClass("ui-state-focus")}).click(function(l){a.close(l);return false}).appendTo(n);(a.uiDialogTitlebarCloseText=b("<span></span>")).addClass("ui-icon ui-icon-closethick").text(c.closeText).appendTo(o);b("<span></span>").addClass("ui-dialog-title").attr("id",
338
- i).html(h).prependTo(n);if(b.isFunction(c.beforeclose)&&!b.isFunction(c.beforeClose))c.beforeClose=c.beforeclose;n.find("*").add(n).disableSelection();c.draggable&&b.fn.draggable&&a._makeDraggable();c.resizable&&b.fn.resizable&&a._makeResizable();a._createButtons(c.buttons);a._isOpen=false;b.fn.bgiframe&&j.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
339
- a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var c=this,h,i;if(false!==c._trigger("beforeClose",a)){c.overlay&&c.overlay.destroy();c.uiDialog.unbind("keypress.ui-dialog");c._isOpen=false;if(c.options.hide)c.uiDialog.hide(c.options.hide,function(){c._trigger("close",a)});else{c.uiDialog.hide();c._trigger("close",a)}b.ui.dialog.overlay.resize();if(c.options.modal){h=0;b(".ui-dialog").each(function(){if(this!==
340
- c.uiDialog[0]){i=b(this).css("z-index");isNaN(i)||(h=Math.max(h,i))}});b.ui.dialog.maxZ=h}return c}},isOpen:function(){return this._isOpen},moveToTop:function(a,c){var h=this,i=h.options;if(i.modal&&!a||!i.stack&&!i.modal)return h._trigger("focus",c);if(i.zIndex>b.ui.dialog.maxZ)b.ui.dialog.maxZ=i.zIndex;if(h.overlay){b.ui.dialog.maxZ+=1;h.overlay.$el.css("z-index",b.ui.dialog.overlay.maxZ=b.ui.dialog.maxZ)}a={scrollTop:h.element.attr("scrollTop"),scrollLeft:h.element.attr("scrollLeft")};b.ui.dialog.maxZ+=
341
- 1;h.uiDialog.css("z-index",b.ui.dialog.maxZ);h.element.attr(a);h._trigger("focus",c);return h},open:function(){if(!this._isOpen){var a=this,c=a.options,h=a.uiDialog;a.overlay=c.modal?new b.ui.dialog.overlay(a):null;a._size();a._position(c.position);h.show(c.show);a.moveToTop(true);c.modal&&h.bind("keypress.ui-dialog",function(i){if(i.keyCode===b.ui.keyCode.TAB){var j=b(":tabbable",this),n=j.filter(":first");j=j.filter(":last");if(i.target===j[0]&&!i.shiftKey){n.focus(1);return false}else if(i.target===
342
- n[0]&&i.shiftKey){j.focus(1);return false}}});b(a.element.find(":tabbable").get().concat(h.find(".ui-dialog-buttonpane :tabbable").get().concat(h.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var c=this,h=false,i=b("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),j=b("<div></div>").addClass("ui-dialog-buttonset").appendTo(i);c.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&b.each(a,
343
- function(){return!(h=true)});if(h){b.each(a,function(n,o){o=b.isFunction(o)?{click:o,text:n}:o;var l=b('<button type="button"></button>').click(function(){o.click.apply(c.element[0],arguments)}).appendTo(j);b.each(o,function(k,m){if(k!=="click")k in g?l[k](m):l.attr(k,m)});b.fn.button&&l.button()});i.appendTo(c.uiDialog)}},_makeDraggable:function(){function a(n){return{position:n.position,offset:n.offset}}var c=this,h=c.options,i=b(document),j;c.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
344
- handle:".ui-dialog-titlebar",containment:"document",start:function(n,o){j=h.height==="auto"?"auto":b(this).height();b(this).height(b(this).height()).addClass("ui-dialog-dragging");c._trigger("dragStart",n,a(o))},drag:function(n,o){c._trigger("drag",n,a(o))},stop:function(n,o){h.position=[o.position.left-i.scrollLeft(),o.position.top-i.scrollTop()];b(this).removeClass("ui-dialog-dragging").height(j);c._trigger("dragStop",n,a(o));b.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function c(n){return{originalPosition:n.originalPosition,
345
- originalSize:n.originalSize,position:n.position,size:n.size}}a=a===d?this.options.resizable:a;var h=this,i=h.options,j=h.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";h.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:h.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:h._minHeight(),handles:a,start:function(n,o){b(this).addClass("ui-dialog-resizing");h._trigger("resizeStart",n,c(o))},resize:function(n,o){h._trigger("resize",
346
- n,c(o))},stop:function(n,o){b(this).removeClass("ui-dialog-resizing");i.height=b(this).height();i.width=b(this).width();h._trigger("resizeStop",n,c(o));b.ui.dialog.overlay.resize()}}).css("position",j).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var c=[],h=[0,0],i;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){c=a.split?a.split(" "):
347
- [a[0],a[1]];if(c.length===1)c[1]=c[0];b.each(["left","top"],function(j,n){if(+c[j]===c[j]){h[j]=c[j];c[j]=n}});a={my:c.join(" "),at:c.join(" "),offset:h.join(" ")}}a=b.extend({},b.ui.dialog.prototype.options.position,a)}else a=b.ui.dialog.prototype.options.position;(i=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(b.extend({of:window},a));i||this.uiDialog.hide()},_setOptions:function(a){var c=this,h={},i=false;b.each(a,function(j,n){c._setOption(j,n);
348
- if(j in e)i=true;if(j in f)h[j]=n});i&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",h)},_setOption:function(a,c){var h=this,i=h.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":h._createButtons(c);break;case "closeText":h.uiDialogTitlebarCloseText.text(""+c);break;case "dialogClass":i.removeClass(h.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c);break;case "disabled":c?i.addClass("ui-dialog-disabled"):
349
- i.removeClass("ui-dialog-disabled");break;case "draggable":var j=i.is(":data(draggable)");j&&!c&&i.draggable("destroy");!j&&c&&h._makeDraggable();break;case "position":h._position(c);break;case "resizable":(j=i.is(":data(resizable)"))&&!c&&i.resizable("destroy");j&&typeof c==="string"&&i.resizable("option","handles",c);!j&&c!==false&&h._makeResizable(c);break;case "title":b(".ui-dialog-title",h.uiDialogTitlebar).html(""+(c||"&#160;"));break}b.Widget.prototype._setOption.apply(h,arguments)},_size:function(){var a=
350
- this.options,c,h,i=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;c=this.uiDialog.css({height:"auto",width:a.width}).height();h=Math.max(0,a.minHeight-c);if(a.height==="auto")if(b.support.minHeight)this.element.css({minHeight:h,height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();i||this.uiDialog.hide();this.element.height(Math.max(a,h))}else this.element.height(Math.max(a.height-
351
- c,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});b.extend(b.ui.dialog,{version:"1.8.12",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=b.ui.dialog.overlay.create(a)}});b.extend(b.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),
352
- create:function(a){if(this.instances.length===0){setTimeout(function(){b.ui.dialog.overlay.instances.length&&b(document).bind(b.ui.dialog.overlay.events,function(h){if(b(h.target).zIndex()<b.ui.dialog.overlay.maxZ)return false})},1);b(document).bind("keydown.dialog-overlay",function(h){if(a.options.closeOnEscape&&h.keyCode&&h.keyCode===b.ui.keyCode.ESCAPE){a.close(h);h.preventDefault()}});b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize)}var c=(this.oldInstances.pop()||b("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),
353
- height:this.height()});b.fn.bgiframe&&c.bgiframe();this.instances.push(c);return c},destroy:function(a){var c=b.inArray(a,this.instances);c!=-1&&this.oldInstances.push(this.instances.splice(c,1)[0]);this.instances.length===0&&b([document,window]).unbind(".dialog-overlay");a.remove();var h=0;b.each(this.instances,function(){h=Math.max(h,this.css("z-index"))});this.maxZ=h},height:function(){var a,c;if(b.browser.msie&&b.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);
354
- c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a<c?b(window).height()+"px":a+"px"}else return b(document).height()+