Version Notes
-first preview release
Download this release
Release Info
Developer | NextBits Web Solutions Pvt. Ltd. |
Extension | NextBits_BannerNext |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext.php +12 -0
- app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit.php +45 -0
- app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit/Form.php +19 -0
- app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit/Tab/Category.php +201 -0
- app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit/Tab/Form.php +101 -0
- app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit/Tab/Gallery.php +161 -0
- app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit/Tab/Page.php +26 -0
- app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit/Tabs.php +46 -0
- app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Grid.php +116 -0
- app/code/local/NextBits/BannerNext/Block/Banner.php +52 -0
- app/code/local/NextBits/BannerNext/Block/Widget.php +31 -0
- app/code/local/NextBits/BannerNext/Helper/Data.php +100 -0
- app/code/local/NextBits/BannerNext/Model/Availablebanners.php +17 -0
- app/code/local/NextBits/BannerNext/Model/Bannernext.php +10 -0
- app/code/local/NextBits/BannerNext/Model/Config/Source/Page.php +25 -0
- app/code/local/NextBits/BannerNext/Model/Config/Source/Position.php +21 -0
- app/code/local/NextBits/BannerNext/Model/Mysql4/Bannernext.php +10 -0
- app/code/local/NextBits/BannerNext/Model/Mysql4/Bannernext/Collection.php +40 -0
- app/code/local/NextBits/BannerNext/Model/Observer.php +21 -0
- app/code/local/NextBits/BannerNext/Model/Status.php +15 -0
- app/code/local/NextBits/BannerNext/controllers/Adminhtml/BannernextController.php +356 -0
- app/code/local/NextBits/BannerNext/etc/config.xml +177 -0
- app/code/local/NextBits/BannerNext/etc/system.xml +97 -0
- app/code/local/NextBits/BannerNext/etc/widget.xml +20 -0
- app/code/local/NextBits/BannerNext/sql/bannernext_setup/mysql4-install-0.1.0.php +29 -0
- app/design/adminhtml/default/default/layout/bannernext.xml +25 -0
- app/design/adminhtml/default/default/template/bannernext/banner.phtml +14 -0
- app/design/adminhtml/default/default/template/bannernext/banner.phtml# +14 -0
- app/design/adminhtml/default/default/template/bannernext/edit/tab/category.phtml +124 -0
- app/design/adminhtml/default/default/template/bannernext/edit/tab/gallery-backup-editor.txt +315 -0
- app/design/adminhtml/default/default/template/bannernext/edit/tab/gallery.phtml +212 -0
- app/design/adminhtml/default/default/template/bannernext/edit/tab/image.phtml +125 -0
- app/design/adminhtml/default/default/template/bannernext/uploader.phtml +32 -0
- app/design/frontend/default/default/layout/bannernext.xml +29 -0
- app/design/frontend/default/default/template/bannernext/banner.phtml +88 -0
- app/etc/modules/NextBits_BannerNext.xml +9 -0
- app/locale/en_US/NextBits_BannerNext.csv +46 -0
- js/bannernext/jquery/jquery-1.8.1.min.js +2 -0
- js/bannernext/jquery/jquery.noconflict.js +1 -0
- package.xml +18 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/README.textile +5 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/css/highlight.black.css +137 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/css/highlight.css +137 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/css/skitter.styles.css +73 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/css/skitter.styles.resonsive.css +50 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/css/styles.css +161 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/fullscreen.html +65 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/001.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/002.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/003.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/004.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/005.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/006.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/007.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/008.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/009.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/010.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/011.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/012.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/013.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/014.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/015.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/016.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/017.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/018.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/019.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/020.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/021.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/022.jpg +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/ajax-loader.gif +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/back-box-label-black.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/background.gif +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/donate-button.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/download-button.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/download-helper.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/download-wp.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/favicon.ico +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/focus-button.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/logo-thiago.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/logo.gif +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/logo.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/next.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/pause-button.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/play-button.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/prev.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/sexy-sprite.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/sharing-caring.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/images/this-is-a-free-plugin.png +0 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/index.html +425 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/js/highlight.js +297 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery-1.5.2.min.js +16 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery-1.6.3.min.js +4 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery.animate-colors-min.js +27 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery.easing.1.3.js +205 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery.min.js +154 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery.skitter.js +3245 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery.skitter.min.js +13 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/js/sexy-bookmarks-public.js +114 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/multiple.html +104 -0
- skin/frontend/default/default/bannernext/skitter_slideshow/xml/slides.xml +18 -0
app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class NextBits_BannerNext_Block_Adminhtml_Bannernext extends Mage_Adminhtml_Block_Widget_Grid_Container
|
3 |
+
{
|
4 |
+
public function __construct()
|
5 |
+
{
|
6 |
+
$this->_controller = 'adminhtml_bannernext';
|
7 |
+
$this->_blockGroup = 'bannernext';
|
8 |
+
$this->_headerText = Mage::helper('bannernext')->__('Banner Manager');
|
9 |
+
$this->_addButtonLabel = Mage::helper('bannernext')->__('Add Banner');
|
10 |
+
parent::__construct();
|
11 |
+
}
|
12 |
+
}
|
app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class NextBits_BannerNext_Block_Adminhtml_Bannernext_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
|
4 |
+
{
|
5 |
+
public function __construct()
|
6 |
+
{
|
7 |
+
parent::__construct();
|
8 |
+
|
9 |
+
$this->_objectId = 'id';
|
10 |
+
$this->_blockGroup = 'bannernext';
|
11 |
+
$this->_controller = 'adminhtml_bannernext';
|
12 |
+
|
13 |
+
$this->_updateButton('save', 'label', Mage::helper('bannernext')->__('Save Banner'));
|
14 |
+
$this->_updateButton('delete', 'label', Mage::helper('bannernext')->__('Delete Banner'));
|
15 |
+
|
16 |
+
$this->_addButton('saveandcontinue', array(
|
17 |
+
'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
|
18 |
+
'onclick' => 'saveAndContinueEdit()',
|
19 |
+
'class' => 'save',
|
20 |
+
), -100);
|
21 |
+
|
22 |
+
$this->_formScripts[] = "
|
23 |
+
function toggleEditor() {
|
24 |
+
if (tinyMCE.getInstanceById('bannernext_content') == null) {
|
25 |
+
tinyMCE.execCommand('mceAddControl', false, 'bannernext_content');
|
26 |
+
} else {
|
27 |
+
tinyMCE.execCommand('mceRemoveControl', false, 'bannernext_content');
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
function saveAndContinueEdit(){
|
32 |
+
editForm.submit($('edit_form').action+'back/edit/');
|
33 |
+
}
|
34 |
+
";
|
35 |
+
}
|
36 |
+
|
37 |
+
public function getHeaderText()
|
38 |
+
{
|
39 |
+
if( Mage::registry('bannernext_data') && Mage::registry('bannernext_data')->getId() ) {
|
40 |
+
return Mage::helper('bannernext')->__("Edit Banner '%s'", $this->htmlEscape(Mage::registry('bannernext_data')->getTitle()));
|
41 |
+
} else {
|
42 |
+
return Mage::helper('bannernext')->__('Add Banner');
|
43 |
+
}
|
44 |
+
}
|
45 |
+
}
|
app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit/Form.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class NextBits_BannerNext_Block_Adminhtml_Bannernext_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
|
4 |
+
{
|
5 |
+
protected function _prepareForm()
|
6 |
+
{
|
7 |
+
$form = new Varien_Data_Form(array(
|
8 |
+
'id' => 'edit_form',
|
9 |
+
'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
|
10 |
+
'method' => 'post',
|
11 |
+
'enctype' => 'multipart/form-data'
|
12 |
+
)
|
13 |
+
);
|
14 |
+
|
15 |
+
$form->setUseContainer(true);
|
16 |
+
$this->setForm($form);
|
17 |
+
return parent::_prepareForm();
|
18 |
+
}
|
19 |
+
}
|
app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit/Tab/Category.php
ADDED
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class NextBits_BannerNext_Block_Adminhtml_Bannernext_Edit_Tab_Category extends Mage_Adminhtml_Block_Catalog_Category_Tree
|
4 |
+
{
|
5 |
+
protected $_categoryIds;
|
6 |
+
protected $_selectedNodes = null;
|
7 |
+
|
8 |
+
public function __construct()
|
9 |
+
{
|
10 |
+
parent::__construct();
|
11 |
+
$this->setTemplate('bannernext/edit/tab/category.phtml');
|
12 |
+
}
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Retrieve currently edited product
|
16 |
+
*
|
17 |
+
* @return Mage_Catalog_Model_Product
|
18 |
+
*/
|
19 |
+
public function getBannerNext()
|
20 |
+
{
|
21 |
+
return Mage::registry('bannernext_data');
|
22 |
+
}
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Checks when this block is readonly
|
26 |
+
*
|
27 |
+
* @return boolean
|
28 |
+
*/
|
29 |
+
public function isReadonly()
|
30 |
+
{
|
31 |
+
return $this->getBannerNext()->getCategoriesReadonly();
|
32 |
+
}
|
33 |
+
|
34 |
+
protected function getCategoryIds()
|
35 |
+
{
|
36 |
+
$_categoryList = $this->getBannerNext()->getCategoryId();
|
37 |
+
//$_categoryList =Mage::helper('core')->jsonDecode($_categoryList);
|
38 |
+
$_categoryList =explode(',',$_categoryList);
|
39 |
+
return is_array($_categoryList) ? $_categoryList : array();
|
40 |
+
}
|
41 |
+
|
42 |
+
public function getIdsString()
|
43 |
+
{
|
44 |
+
return implode(',', $this->getCategoryIds());
|
45 |
+
}
|
46 |
+
|
47 |
+
public function getRootNode()
|
48 |
+
{
|
49 |
+
// $root = parent::getRoot();
|
50 |
+
$root = $this->getRoot();
|
51 |
+
if ($root && in_array($root->getId(), $this->getCategoryIds())) {
|
52 |
+
$root->setChecked(true);
|
53 |
+
}
|
54 |
+
return $root;
|
55 |
+
}
|
56 |
+
|
57 |
+
public function getRoot($parentNodeCategory=null, $recursionLevel=3)
|
58 |
+
{
|
59 |
+
if (!is_null($parentNodeCategory) && $parentNodeCategory->getId()) {
|
60 |
+
return $this->getNode($parentNodeCategory, $recursionLevel);
|
61 |
+
}
|
62 |
+
$root = Mage::registry('root');
|
63 |
+
if (is_null($root)) {
|
64 |
+
$storeId = (int) $this->getRequest()->getParam('store');
|
65 |
+
|
66 |
+
if ($storeId) {
|
67 |
+
$store = Mage::app()->getStore($storeId);
|
68 |
+
$rootId = $store->getRootCategoryId();
|
69 |
+
}
|
70 |
+
else {
|
71 |
+
$rootId = Mage_Catalog_Model_Category::TREE_ROOT_ID;
|
72 |
+
}
|
73 |
+
|
74 |
+
$ids = $this->getSelectedCategoriesPathIds($rootId);
|
75 |
+
$tree = Mage::getResourceSingleton('catalog/category_tree')
|
76 |
+
->loadByIds($ids, false, false);
|
77 |
+
|
78 |
+
if ($this->getCategory()) {
|
79 |
+
$tree->loadEnsuredNodes($this->getCategory(), $tree->getNodeById($rootId));
|
80 |
+
}
|
81 |
+
|
82 |
+
$tree->addCollectionData($this->getCategoryCollection());
|
83 |
+
|
84 |
+
$root = $tree->getNodeById($rootId);
|
85 |
+
|
86 |
+
if ($root && $rootId != Mage_Catalog_Model_Category::TREE_ROOT_ID) {
|
87 |
+
$root->setIsVisible(true);
|
88 |
+
if ($this->isReadonly()) {
|
89 |
+
$root->setDisabled(true);
|
90 |
+
}
|
91 |
+
}
|
92 |
+
elseif($root && $root->getId() == Mage_Catalog_Model_Category::TREE_ROOT_ID) {
|
93 |
+
$root->setName(Mage::helper('catalog')->__('Root'));
|
94 |
+
}
|
95 |
+
|
96 |
+
Mage::register('root', $root);
|
97 |
+
}
|
98 |
+
|
99 |
+
return $root;
|
100 |
+
}
|
101 |
+
|
102 |
+
protected function _getNodeJson($node, $level=1)
|
103 |
+
{
|
104 |
+
$item = parent::_getNodeJson($node, $level);
|
105 |
+
|
106 |
+
$isParent = $this->_isParentSelectedCategory($node);
|
107 |
+
|
108 |
+
if ($isParent) {
|
109 |
+
$item['expanded'] = true;
|
110 |
+
}
|
111 |
+
|
112 |
+
// if ($node->getLevel() > 1 && !$isParent && isset($item['children'])) {
|
113 |
+
// $item['children'] = array();
|
114 |
+
// }
|
115 |
+
|
116 |
+
|
117 |
+
if (in_array($node->getId(), $this->getCategoryIds())) {
|
118 |
+
$item['checked'] = true;
|
119 |
+
}
|
120 |
+
|
121 |
+
if ($this->isReadonly()) {
|
122 |
+
$item['disabled'] = true;
|
123 |
+
}
|
124 |
+
return $item;
|
125 |
+
}
|
126 |
+
|
127 |
+
protected function _isParentSelectedCategory($node)
|
128 |
+
{
|
129 |
+
foreach ($this->_getSelectedNodes() as $selected) {
|
130 |
+
if ($selected) {
|
131 |
+
$pathIds = explode('/', $selected->getPathId());
|
132 |
+
if (in_array($node->getId(), $pathIds)) {
|
133 |
+
return true;
|
134 |
+
}
|
135 |
+
}
|
136 |
+
}
|
137 |
+
|
138 |
+
return false;
|
139 |
+
}
|
140 |
+
|
141 |
+
protected function _getSelectedNodes()
|
142 |
+
{
|
143 |
+
if ($this->_selectedNodes === null) {
|
144 |
+
$this->_selectedNodes = array();
|
145 |
+
$root = $this->getRoot();
|
146 |
+
foreach ($this->getCategoryIds() as $categoryId) {
|
147 |
+
if ($root) {
|
148 |
+
$this->_selectedNodes[] = $root->getTree()->getNodeById($categoryId);
|
149 |
+
}
|
150 |
+
}
|
151 |
+
}
|
152 |
+
|
153 |
+
return $this->_selectedNodes;
|
154 |
+
}
|
155 |
+
|
156 |
+
public function getCategoryChildrenJson($categoryId)
|
157 |
+
{
|
158 |
+
$category = Mage::getModel('catalog/category')->load($categoryId);
|
159 |
+
$node = $this->getRoot($category, 1)->getTree()->getNodeById($categoryId);
|
160 |
+
|
161 |
+
if (!$node || !$node->hasChildren()) {
|
162 |
+
return '[]';
|
163 |
+
}
|
164 |
+
|
165 |
+
$children = array();
|
166 |
+
foreach ($node->getChildren() as $child) {
|
167 |
+
$children[] = $this->_getNodeJson($child);
|
168 |
+
}
|
169 |
+
|
170 |
+
return Mage::helper('core')->jsonEncode($children);
|
171 |
+
}
|
172 |
+
|
173 |
+
public function getLoadTreeUrl($expanded=null)
|
174 |
+
{
|
175 |
+
return $this->getUrl('*/*/categoriesJson', array('_current'=>true));
|
176 |
+
}
|
177 |
+
|
178 |
+
/**
|
179 |
+
* Return distinct path ids of selected categories
|
180 |
+
*
|
181 |
+
* @param int $rootId Root category Id for context
|
182 |
+
* @return array
|
183 |
+
*/
|
184 |
+
public function getSelectedCategoriesPathIds($rootId = false)
|
185 |
+
{
|
186 |
+
$ids = array();
|
187 |
+
$collection = Mage::getModel('catalog/category')->getCollection()
|
188 |
+
->addFieldToFilter('entity_id', array('in'=>$this->getCategoryIds()));
|
189 |
+
foreach ($collection as $item) {
|
190 |
+
if ($rootId && !in_array($rootId, $item->getPathIds())) {
|
191 |
+
continue;
|
192 |
+
}
|
193 |
+
foreach ($item->getPathIds() as $id) {
|
194 |
+
if (!in_array($id, $ids)) {
|
195 |
+
$ids[] = $id;
|
196 |
+
}
|
197 |
+
}
|
198 |
+
}
|
199 |
+
return $ids;
|
200 |
+
}
|
201 |
+
}
|
app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit/Tab/Form.php
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class NextBits_BannerNext_Block_Adminhtml_Bannernext_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
|
3 |
+
{
|
4 |
+
protected function _prepareForm()
|
5 |
+
{
|
6 |
+
$model = Mage::registry('bannernext_data');
|
7 |
+
|
8 |
+
if($model->getStores())
|
9 |
+
{
|
10 |
+
//$_model->setPageId(Mage::helper('core')->jsonDecode($_model->getPageId()));
|
11 |
+
$model->setStores(explode(',',$model->getStores()));
|
12 |
+
}
|
13 |
+
$form = new Varien_Data_Form();
|
14 |
+
$this->setForm($form);
|
15 |
+
$fieldset = $form->addFieldset('bannernext_form', array('legend'=>Mage::helper('bannernext')->__('General Information')));
|
16 |
+
|
17 |
+
$fieldset->addField('title', 'text', array(
|
18 |
+
'label' => Mage::helper('bannernext')->__('Title'),
|
19 |
+
'class' => 'required-entry',
|
20 |
+
'required' => true,
|
21 |
+
'name' => 'title',
|
22 |
+
));
|
23 |
+
|
24 |
+
$fieldset->addField('position', 'select', array(
|
25 |
+
'label' => Mage::helper('bannernext')->__('Position'),
|
26 |
+
'name' => 'position',
|
27 |
+
'values' => Mage::getSingleton('bannernext/config_source_position')->toOptionArray(),
|
28 |
+
'value' => $model->getPosition()
|
29 |
+
));
|
30 |
+
|
31 |
+
$fieldset->addField('height', 'text', array(
|
32 |
+
'label' => Mage::helper('bannernext')->__('Height'),
|
33 |
+
'required' => false,
|
34 |
+
'name' => 'height',
|
35 |
+
'class' =>'validate-number',
|
36 |
+
'note' =>'E.g you want to width 100px then need to only 100 into textbox'
|
37 |
+
));
|
38 |
+
|
39 |
+
$fieldset->addField('width', 'text', array(
|
40 |
+
'label' => Mage::helper('bannernext')->__('Width'),
|
41 |
+
'required' => false,
|
42 |
+
'name' => 'width',
|
43 |
+
'class' =>'validate-number',
|
44 |
+
'note' =>'E.g you want to width 100px then need to only 100 into textbox'
|
45 |
+
));
|
46 |
+
|
47 |
+
if (!Mage::app()->isSingleStoreMode()) {
|
48 |
+
$field = $fieldset->addField('stores', 'multiselect', array(
|
49 |
+
'name' => 'stores[]',
|
50 |
+
'label' => Mage::helper('cms')->__('Store View'),
|
51 |
+
'title' => Mage::helper('cms')->__('Store View'),
|
52 |
+
'required' => true,
|
53 |
+
'values' => Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true),
|
54 |
+
'value' => $model->getStores()
|
55 |
+
//'value' => array('0'=>'1','1'=>'2'),
|
56 |
+
));
|
57 |
+
$renderer = $this->getLayout()->createBlock('adminhtml/store_switcher_form_renderer_fieldset_element');
|
58 |
+
$field->setRenderer($renderer);
|
59 |
+
}
|
60 |
+
else {
|
61 |
+
$fieldset->addField('stores', 'hidden', array(
|
62 |
+
'name' => 'stores[]',
|
63 |
+
'value' => Mage::app()->getStore(true)->getId()
|
64 |
+
));
|
65 |
+
$model->setStoreId(Mage::app()->getStore(true)->getId());
|
66 |
+
}
|
67 |
+
|
68 |
+
|
69 |
+
|
70 |
+
$fieldset->addField('status', 'select', array(
|
71 |
+
'label' => Mage::helper('bannernext')->__('Is Active'),
|
72 |
+
'name' => 'status',
|
73 |
+
'values' => array(
|
74 |
+
array(
|
75 |
+
'value' => 1,
|
76 |
+
'label' => Mage::helper('bannernext')->__('Yes'),
|
77 |
+
),
|
78 |
+
array(
|
79 |
+
'value' => 2,
|
80 |
+
'label' => Mage::helper('bannernext')->__('No'),
|
81 |
+
),
|
82 |
+
),
|
83 |
+
));
|
84 |
+
|
85 |
+
$fieldset->addField('advanced_settings', 'textarea', array(
|
86 |
+
'label' => Mage::helper('bannernext')->__('Advanced Settings'),
|
87 |
+
'required' => false,
|
88 |
+
'name' => 'advanced_settings',
|
89 |
+
'note' => "Default : {numbers_align: 'right',animation:'fade',interval: 1000,dots: true,navigation: false}"
|
90 |
+
));
|
91 |
+
|
92 |
+
if (Mage::getSingleton('adminhtml/session')->getBannerNextData())
|
93 |
+
{
|
94 |
+
$form->setValues(Mage::getSingleton('adminhtml/session')->getBannerNextData());
|
95 |
+
Mage::getSingleton('adminhtml/session')->setBannerNextData(null);
|
96 |
+
} elseif ( Mage::registry('bannernext_data') ) {
|
97 |
+
$form->setValues(Mage::registry('bannernext_data')->getData());
|
98 |
+
}
|
99 |
+
return parent::_prepareForm();
|
100 |
+
}
|
101 |
+
}
|
app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit/Tab/Gallery.php
ADDED
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class NextBits_BannerNext_Block_Adminhtml_Bannernext_Edit_Tab_Gallery extends Mage_Adminhtml_Block_Widget {
|
3 |
+
|
4 |
+
public function __construct()
|
5 |
+
{
|
6 |
+
parent::__construct();
|
7 |
+
$this->setTemplate('bannernext/edit/tab/gallery.phtml');
|
8 |
+
}
|
9 |
+
|
10 |
+
protected function _prepareLayout()
|
11 |
+
{
|
12 |
+
$this->setChild('uploader',
|
13 |
+
$this->getLayout()->createBlock('adminhtml/media_uploader')
|
14 |
+
);
|
15 |
+
|
16 |
+
$this->getUploader()->getConfig()
|
17 |
+
->setUrl(Mage::getModel('adminhtml/url')->addSessionParam()->getUrl('*/*/upload'))
|
18 |
+
->setFileField('image')
|
19 |
+
->setFilters(array(
|
20 |
+
'images' => array(
|
21 |
+
'label' => Mage::helper('adminhtml')->__('Images (.gif, .jpg, .png)'),
|
22 |
+
'files' => array('*.gif', '*.jpg','*.jpeg', '*.png')
|
23 |
+
)
|
24 |
+
));
|
25 |
+
|
26 |
+
Mage::dispatchEvent('catalog_product_gallery_prepare_layout', array('block' => $this));
|
27 |
+
|
28 |
+
return parent::_prepareLayout();
|
29 |
+
}
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Retrive uploader block
|
33 |
+
*
|
34 |
+
* @return Mage_Adminhtml_Block_Media_Uploader
|
35 |
+
*/
|
36 |
+
public function getUploader()
|
37 |
+
{
|
38 |
+
return $this->getChild('uploader');
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Retrive uploader block html
|
43 |
+
*
|
44 |
+
* @return string
|
45 |
+
*/
|
46 |
+
public function getUploaderHtml()
|
47 |
+
{
|
48 |
+
return $this->getChildHtml('uploader');
|
49 |
+
}
|
50 |
+
|
51 |
+
public function getJsObjectName()
|
52 |
+
{
|
53 |
+
return $this->getHtmlId() . 'JsObject';
|
54 |
+
}
|
55 |
+
|
56 |
+
public function getAddImagesButton()
|
57 |
+
{
|
58 |
+
return $this->getButtonHtml(
|
59 |
+
Mage::helper('bannernext')->__('Add New Images'),
|
60 |
+
$this->getJsObjectName() . '.showUploader()',
|
61 |
+
'add',
|
62 |
+
$this->getHtmlId() . '_add_images_button'
|
63 |
+
);
|
64 |
+
}
|
65 |
+
|
66 |
+
public function getImagesJson()
|
67 |
+
{
|
68 |
+
$model = Mage::registry('bannernext_data');
|
69 |
+
if(isset($model['content']) && !empty($model['content'])){
|
70 |
+
return $model->getData('content');
|
71 |
+
}
|
72 |
+
return '[]';
|
73 |
+
|
74 |
+
|
75 |
+
/* if(is_array($this->getElement()->getValue())) {
|
76 |
+
$value = $this->getElement()->getValue();
|
77 |
+
if(count($value['images'])>0) {
|
78 |
+
foreach ($value['images'] as &$image) {
|
79 |
+
$image['url'] = Mage::getSingleton('catalog/product_media_config')
|
80 |
+
->getMediaUrl($image['file']);
|
81 |
+
}
|
82 |
+
return Mage::helper('core')->jsonEncode($value['images']);
|
83 |
+
}
|
84 |
+
}
|
85 |
+
return '[]'; */
|
86 |
+
}
|
87 |
+
|
88 |
+
public function getImagesValuesJson()
|
89 |
+
{
|
90 |
+
$values = array();
|
91 |
+
foreach ($this->getMediaAttributes() as $attribute) {
|
92 |
+
/* @var $attribute Mage_Eav_Model_Entity_Attribute */
|
93 |
+
//$values[$attribute->getAttributeCode()] = $attribute->getValue();
|
94 |
+
}
|
95 |
+
return Mage::helper('core')->jsonEncode($values);
|
96 |
+
}
|
97 |
+
|
98 |
+
/**
|
99 |
+
* Enter description here...
|
100 |
+
*
|
101 |
+
* @return array
|
102 |
+
*/
|
103 |
+
public function getImageTypes()
|
104 |
+
{
|
105 |
+
$imageTypes = array();
|
106 |
+
|
107 |
+
foreach ($this->getMediaAttributes() as $attribute) {
|
108 |
+
/* @var $attribute Mage_Eav_Model_Entity_Attribute */
|
109 |
+
$imageTypes[$attribute->getAttributeCode()] = array(
|
110 |
+
'label' => $attribute->getLabel(),
|
111 |
+
'field' => $attribute->getLabel()
|
112 |
+
);
|
113 |
+
}
|
114 |
+
return $imageTypes;
|
115 |
+
}
|
116 |
+
|
117 |
+
/* public function hasUseDefault()
|
118 |
+
{
|
119 |
+
foreach ($this->getMediaAttributes() as $attribute) {
|
120 |
+
if($this->getElement()->canDisplayUseDefault($attribute)) {
|
121 |
+
return true;
|
122 |
+
}
|
123 |
+
}
|
124 |
+
|
125 |
+
return false;
|
126 |
+
} */
|
127 |
+
|
128 |
+
/**
|
129 |
+
* Enter description here...
|
130 |
+
*
|
131 |
+
* @return array
|
132 |
+
*/
|
133 |
+
public function getMediaAttributes()
|
134 |
+
{
|
135 |
+
$attributeCollection = new Varien_Data_Collection();
|
136 |
+
|
137 |
+
$attribute1 = new Varien_Object();
|
138 |
+
$attribute1->setAttributeCode('attribute1');
|
139 |
+
$attribute1->setLabel('attribute1');
|
140 |
+
$attributeCollection->addItem($attribute1);
|
141 |
+
|
142 |
+
$attribute2 = new Varien_Object();
|
143 |
+
$attribute2->setAttributeCode('attribute2');
|
144 |
+
$attribute2->setLabel('attribute2');
|
145 |
+
//$attributeCollection->addItem($attribute2);
|
146 |
+
|
147 |
+
return $attributeCollection;//$this->getElement()->getDataObject()->getMediaAttributes();
|
148 |
+
}
|
149 |
+
|
150 |
+
public function getImageTypesJson()
|
151 |
+
{
|
152 |
+
return Mage::helper('core')->jsonEncode($this->getImageTypes());
|
153 |
+
}
|
154 |
+
|
155 |
+
|
156 |
+
protected function getStoreId()
|
157 |
+
{
|
158 |
+
return Mage::app()->getStore(true)->getId();
|
159 |
+
}
|
160 |
+
|
161 |
+
}
|
app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit/Tab/Page.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class NextBits_BannerNext_Block_Adminhtml_Bannernext_Edit_Tab_Page extends Mage_Adminhtml_Block_Widget_Form
|
3 |
+
{
|
4 |
+
protected function _prepareForm()
|
5 |
+
{
|
6 |
+
$_model = Mage::registry('bannernext_data');
|
7 |
+
if($_model->getPageId())
|
8 |
+
{
|
9 |
+
//$_model->setPageId(Mage::helper('core')->jsonDecode($_model->getPageId()));
|
10 |
+
$_model->setPageId(explode(',',$_model->getPageId()));
|
11 |
+
}
|
12 |
+
$form = new Varien_Data_Form();
|
13 |
+
$this->setForm($form);
|
14 |
+
|
15 |
+
$fieldset = $form->addFieldset('bannernext_form', array('legend'=>Mage::helper('bannernext')->__('Banner Pages')));
|
16 |
+
$fieldset->addField('pages', 'multiselect', array(
|
17 |
+
'label' => Mage::helper('bannernext')->__('Visible In'),
|
18 |
+
//'required' => true,
|
19 |
+
'name' => 'pages[]',
|
20 |
+
'values' => Mage::getSingleton('bannernext/config_source_page')->toOptionArray(),
|
21 |
+
'value' => $_model->getPageId()
|
22 |
+
));
|
23 |
+
|
24 |
+
return parent::_prepareForm();
|
25 |
+
}
|
26 |
+
}
|
app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Edit/Tabs.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class NextBits_BannerNext_Block_Adminhtml_Bannernext_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
3 |
+
{
|
4 |
+
|
5 |
+
public function __construct()
|
6 |
+
{
|
7 |
+
parent::__construct();
|
8 |
+
$this->setId('bannernext_tabs');
|
9 |
+
$this->setName('bannernext_tabs');
|
10 |
+
$this->setDestElementId('edit_form');
|
11 |
+
$this->setTitle(Mage::helper('bannernext')->__('Banner Information'));
|
12 |
+
}
|
13 |
+
|
14 |
+
protected function _beforeToHtml()
|
15 |
+
{
|
16 |
+
$this->addTab('general_section', array(
|
17 |
+
'label' => Mage::helper('bannernext')->__('General Information'),
|
18 |
+
'title' => Mage::helper('bannernext')->__('General Information'),
|
19 |
+
'content' => $this->getLayout()->createBlock('bannernext/adminhtml_bannernext_edit_tab_form')->toHtml(),
|
20 |
+
));
|
21 |
+
|
22 |
+
|
23 |
+
$content = Mage::getSingleton('core/layout')->createBlock('bannernext/adminhtml_bannernext_edit_tab_gallery');
|
24 |
+
$content->setId($this->getHtmlId() . '_content')->setElement($this);
|
25 |
+
|
26 |
+
$this->addTab('gallery_section', array(
|
27 |
+
'label' => Mage::helper('bannernext')->__('Banner Images'),
|
28 |
+
'title' => Mage::helper('bannernext')->__('Banner Images'),
|
29 |
+
'content' => $content->toHtml(),
|
30 |
+
));
|
31 |
+
|
32 |
+
|
33 |
+
$this->addTab('page_section', array(
|
34 |
+
'label' => Mage::helper('bannernext')->__('Display on Pages'),
|
35 |
+
'title' => Mage::helper('bannernext')->__('Display on Pages'),
|
36 |
+
'content' => $this->getLayout()->createBlock('bannernext/adminhtml_bannernext_edit_tab_page')->toHtml(),
|
37 |
+
));
|
38 |
+
$this->addTab('category_section', array(
|
39 |
+
'label' => Mage::helper('bannernext')->__('Display on Categories'),
|
40 |
+
'title' => Mage::helper('bannernext')->__('Display on Categories'),
|
41 |
+
'content' => $this->getLayout()->createBlock('bannernext/adminhtml_bannernext_edit_tab_category')->toHtml(),
|
42 |
+
));
|
43 |
+
|
44 |
+
return parent::_beforeToHtml();
|
45 |
+
}
|
46 |
+
}
|
app/code/local/NextBits/BannerNext/Block/Adminhtml/Bannernext/Grid.php
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class NextBits_BannerNext_Block_Adminhtml_Bannernext_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
4 |
+
{
|
5 |
+
public function __construct()
|
6 |
+
{
|
7 |
+
parent::__construct();
|
8 |
+
$this->setId('bannernextGrid');
|
9 |
+
$this->setDefaultSort('bannernext_id');
|
10 |
+
$this->setDefaultDir('ASC');
|
11 |
+
$this->setSaveParametersInSession(true);
|
12 |
+
}
|
13 |
+
|
14 |
+
protected function _prepareCollection()
|
15 |
+
{
|
16 |
+
$collection = Mage::getModel('bannernext/bannernext')->getCollection();
|
17 |
+
$this->setCollection($collection);
|
18 |
+
return parent::_prepareCollection();
|
19 |
+
}
|
20 |
+
|
21 |
+
protected function _prepareColumns()
|
22 |
+
{
|
23 |
+
$this->addColumn('bannernext_id', array(
|
24 |
+
'header' => Mage::helper('bannernext')->__('ID'),
|
25 |
+
'align' =>'right',
|
26 |
+
'width' => '50px',
|
27 |
+
'index' => 'bannernext_id',
|
28 |
+
));
|
29 |
+
|
30 |
+
$this->addColumn('title', array(
|
31 |
+
'header' => Mage::helper('bannernext')->__('Title'),
|
32 |
+
'align' =>'left',
|
33 |
+
'index' => 'title',
|
34 |
+
));
|
35 |
+
|
36 |
+
/*
|
37 |
+
$this->addColumn('content', array(
|
38 |
+
'header' => Mage::helper('bannernext')->__('Item Content'),
|
39 |
+
'width' => '150px',
|
40 |
+
'index' => 'content',
|
41 |
+
));
|
42 |
+
*/
|
43 |
+
|
44 |
+
$this->addColumn('status', array(
|
45 |
+
'header' => Mage::helper('bannernext')->__('Status'),
|
46 |
+
'align' => 'left',
|
47 |
+
'width' => '80px',
|
48 |
+
'index' => 'status',
|
49 |
+
'type' => 'options',
|
50 |
+
'options' => array(
|
51 |
+
1 => 'Enabled',
|
52 |
+
2 => 'Disabled',
|
53 |
+
),
|
54 |
+
));
|
55 |
+
|
56 |
+
$this->addColumn('action',
|
57 |
+
array(
|
58 |
+
'header' => Mage::helper('bannernext')->__('Action'),
|
59 |
+
'width' => '100',
|
60 |
+
'type' => 'action',
|
61 |
+
'getter' => 'getId',
|
62 |
+
'actions' => array(
|
63 |
+
array(
|
64 |
+
'caption' => Mage::helper('bannernext')->__('Edit'),
|
65 |
+
'url' => array('base'=> '*/*/edit'),
|
66 |
+
'field' => 'id'
|
67 |
+
)
|
68 |
+
),
|
69 |
+
'filter' => false,
|
70 |
+
'sortable' => false,
|
71 |
+
'index' => 'stores',
|
72 |
+
'is_system' => true,
|
73 |
+
));
|
74 |
+
|
75 |
+
//$this->addExportType('*/*/exportCsv', Mage::helper('bannernext')->__('CSV'));
|
76 |
+
//$this->addExportType('*/*/exportXml', Mage::helper('bannernext')->__('XML'));
|
77 |
+
|
78 |
+
return parent::_prepareColumns();
|
79 |
+
}
|
80 |
+
|
81 |
+
protected function _prepareMassaction()
|
82 |
+
{
|
83 |
+
$this->setMassactionIdField('bannernext_id');
|
84 |
+
$this->getMassactionBlock()->setFormFieldName('bannernext');
|
85 |
+
|
86 |
+
$this->getMassactionBlock()->addItem('delete', array(
|
87 |
+
'label' => Mage::helper('bannernext')->__('Delete'),
|
88 |
+
'url' => $this->getUrl('*/*/massDelete'),
|
89 |
+
'confirm' => Mage::helper('bannernext')->__('Are you sure?')
|
90 |
+
));
|
91 |
+
|
92 |
+
$statuses = Mage::getSingleton('bannernext/status')->getOptionArray();
|
93 |
+
|
94 |
+
array_unshift($statuses, array('label'=>'', 'value'=>''));
|
95 |
+
$this->getMassactionBlock()->addItem('status', array(
|
96 |
+
'label'=> Mage::helper('bannernext')->__('Change status'),
|
97 |
+
'url' => $this->getUrl('*/*/massStatus', array('_current'=>true)),
|
98 |
+
'additional' => array(
|
99 |
+
'visibility' => array(
|
100 |
+
'name' => 'status',
|
101 |
+
'type' => 'select',
|
102 |
+
'class' => 'required-entry',
|
103 |
+
'label' => Mage::helper('bannernext')->__('Status'),
|
104 |
+
'values' => $statuses
|
105 |
+
)
|
106 |
+
)
|
107 |
+
));
|
108 |
+
return $this;
|
109 |
+
}
|
110 |
+
|
111 |
+
public function getRowUrl($row)
|
112 |
+
{
|
113 |
+
return $this->getUrl('*/*/edit', array('id' => $row->getId()));
|
114 |
+
}
|
115 |
+
|
116 |
+
}
|
app/code/local/NextBits/BannerNext/Block/Banner.php
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class NextBits_BannerNext_Block_Banner extends Mage_Core_Block_Template
|
3 |
+
{
|
4 |
+
protected $_position = null;
|
5 |
+
protected $_isActive = 1;
|
6 |
+
protected $_collection;
|
7 |
+
|
8 |
+
protected function _getCollection($position = null) {
|
9 |
+
$enabled = Mage::getStoreConfig('bannernext/general/active');
|
10 |
+
if($enabled){
|
11 |
+
if ($this->_collection ){
|
12 |
+
return $this->_collection;
|
13 |
+
}
|
14 |
+
$storeId = Mage::app()->getStore()->getId();
|
15 |
+
$this->_collection = Mage::getModel('bannernext/bannernext')->getCollection()
|
16 |
+
->addEnableFilter($this->_isActive);
|
17 |
+
if (!Mage::app()->isSingleStoreMode()) {
|
18 |
+
$this->_collection->addStoreFilter($storeId);
|
19 |
+
}
|
20 |
+
|
21 |
+
if (Mage::registry('current_category')) {
|
22 |
+
$_categoryId = Mage::registry('current_category')->getId();
|
23 |
+
$this->_collection->addCategoryFilter($_categoryId);
|
24 |
+
} elseif (Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms') {
|
25 |
+
$_pageId = Mage::getBlockSingleton('cms/page')->getPage()->getPageId();
|
26 |
+
$this->_collection->addPageFilter($_pageId);
|
27 |
+
}
|
28 |
+
|
29 |
+
/* if ($position) {
|
30 |
+
$this->_collection->addPositionFilter($position);
|
31 |
+
} elseif ($this->_position) {
|
32 |
+
$this->_collection->addPositionFilter($this->_position);
|
33 |
+
} */
|
34 |
+
|
35 |
+
/* $this->_collection->getSelect()->group(array('main_table.bannernext_id')) */
|
36 |
+
/* echo $this->_collection->getSelect(); */
|
37 |
+
/* echo "<pre>";
|
38 |
+
print_R($this->_collection->getData());
|
39 |
+
echo "</pre>"; */
|
40 |
+
//Mage::registry('banner_collection',$this->_collection);
|
41 |
+
return $this->_collection;
|
42 |
+
}else
|
43 |
+
{
|
44 |
+
return '';
|
45 |
+
}
|
46 |
+
}
|
47 |
+
|
48 |
+
public function _getBannerImageCollection($bannerCollection){
|
49 |
+
return $bannerCollection->addPositionFilter($this->getData('position'))->getData();
|
50 |
+
}
|
51 |
+
|
52 |
+
}
|
app/code/local/NextBits/BannerNext/Block/Widget.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class NextBits_BannerNext_Block_Widget extends Mage_Core_Block_Template implements Mage_Widget_Block_Interface
|
3 |
+
{
|
4 |
+
protected $_collection;
|
5 |
+
protected $_isActive = 1;
|
6 |
+
|
7 |
+
protected function _construct() {
|
8 |
+
parent::_construct();
|
9 |
+
}
|
10 |
+
|
11 |
+
protected function _getCollection() {
|
12 |
+
|
13 |
+
if(!Mage::helper('bannernext')->isBannerNextModuleEnabled()){
|
14 |
+
return new Varien_Data_Collection();
|
15 |
+
}
|
16 |
+
if ($this->_collection) {
|
17 |
+
return $this->_collection;
|
18 |
+
}
|
19 |
+
$storeId = Mage::app()->getStore()->getId();
|
20 |
+
$bannerId = $this->getData('banner_id');
|
21 |
+
$this->_collection = Mage::getModel('bannernext/bannernext')->getCollection();
|
22 |
+
$this->_collection->addEnableFilter($this->_isActive);
|
23 |
+
$this->_collection->addStoreFilter($storeId);
|
24 |
+
$this->_collection->addFieldToFilter('bannernext_id',$bannerId);
|
25 |
+
return $this->_collection;
|
26 |
+
}
|
27 |
+
|
28 |
+
public function _getBannerImageCollection($bannerCollection){
|
29 |
+
return $bannerCollection->getData();
|
30 |
+
}
|
31 |
+
}
|
app/code/local/NextBits/BannerNext/Helper/Data.php
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Nextbits_BannerNext_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
+
{
|
4 |
+
/**
|
5 |
+
* Path for config.
|
6 |
+
*/
|
7 |
+
const XML_CONFIG_PATH = 'bannernext/general/';
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Name library directory.
|
11 |
+
*/
|
12 |
+
const NAME_DIR_JS = 'bannernext/jquery/';
|
13 |
+
|
14 |
+
/**
|
15 |
+
* List files for include.
|
16 |
+
*
|
17 |
+
* @var array
|
18 |
+
*/
|
19 |
+
protected $_files = array(
|
20 |
+
'jquery-1.8.1.min.js',
|
21 |
+
'jquery.noconflict.js',
|
22 |
+
);
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Check enabled.
|
26 |
+
*
|
27 |
+
* @return bool
|
28 |
+
*/
|
29 |
+
public function isJqueryEnabled()
|
30 |
+
{
|
31 |
+
return (bool) $this->_getConfigValue('jquery', $store = '');
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Return path file.
|
36 |
+
*
|
37 |
+
* @param $file
|
38 |
+
*
|
39 |
+
* @return string
|
40 |
+
*/
|
41 |
+
public function getJQueryPath($file)
|
42 |
+
{
|
43 |
+
return self::NAME_DIR_JS . $file;
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Return list files.
|
48 |
+
*
|
49 |
+
* @return array
|
50 |
+
*/
|
51 |
+
public function getFiles()
|
52 |
+
{
|
53 |
+
return $this->_files;
|
54 |
+
}
|
55 |
+
|
56 |
+
public function isBannerNextModuleEnabled()
|
57 |
+
{
|
58 |
+
return (bool) $this->_getConfigValue('active', $store = '');
|
59 |
+
}
|
60 |
+
|
61 |
+
public function isResponsiveBannerEnabled()
|
62 |
+
{
|
63 |
+
return (bool) $this->_getConfigValue('responsive_banner', $store = '');
|
64 |
+
}
|
65 |
+
|
66 |
+
protected function _getConfigValue($key, $store)
|
67 |
+
{
|
68 |
+
return Mage::getStoreConfig(self::XML_CONFIG_PATH . $key, $store = '');
|
69 |
+
}
|
70 |
+
|
71 |
+
public function resizeImg($fileName,$width,$height='')
|
72 |
+
{
|
73 |
+
$baseURL = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
|
74 |
+
$imageURL = $baseURL .'/'.'bannernext'.'/'.$fileName;
|
75 |
+
|
76 |
+
$basePath = Mage::getBaseDir('media');
|
77 |
+
$imagePath = $basePath.DS.'bannernext'.str_replace('/', DS,$fileName);
|
78 |
+
|
79 |
+
$extra =$width . 'x' . $height;
|
80 |
+
$newPath = Mage::getBaseDir('media') . DS .'bannernext'.DS."resized".DS.$extra.str_replace('/', DS,$fileName);
|
81 |
+
//if width empty then return original size image's URL
|
82 |
+
if ($width != '' && $height != '') {
|
83 |
+
//if image has already resized then just return URL
|
84 |
+
if (file_exists($imagePath) && is_file($imagePath) && !file_exists($newPath)) {
|
85 |
+
$imageObj = new Varien_Image($imagePath);
|
86 |
+
$imageObj->constrainOnly(TRUE);
|
87 |
+
$imageObj->keepAspectRatio(FALSE);
|
88 |
+
$imageObj->keepFrame(FALSE);
|
89 |
+
//$width, $height - sizes you need (Note: when keepAspectRatio(TRUE), height would be ignored)
|
90 |
+
$imageObj->resize($width, $height);
|
91 |
+
$imageObj->save($newPath);
|
92 |
+
}
|
93 |
+
$resizedURL = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . "bannernext".'/'."resized".'/'.$extra.'/'.$fileName;
|
94 |
+
} else {
|
95 |
+
$resizedURL = $imageURL;
|
96 |
+
}
|
97 |
+
return $resizedURL;
|
98 |
+
}
|
99 |
+
|
100 |
+
}
|
app/code/local/NextBits/BannerNext/Model/Availablebanners.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class NextBits_BannerNext_Model_Availablebanners extends Varien_Object
|
4 |
+
{
|
5 |
+
const STATUS_ENABLED = 1;
|
6 |
+
public function toOptionArray()
|
7 |
+
{
|
8 |
+
$collection = Mage::getModel('bannernext/bannernext')->getCollection()->addFilter('status', self::STATUS_ENABLED);
|
9 |
+
$option_array = array ();
|
10 |
+
foreach ($collection as $banner)
|
11 |
+
$option_array[] = array(
|
12 |
+
'value' => $banner->getBannernextId(),
|
13 |
+
'label' => $banner->getTitle()
|
14 |
+
);
|
15 |
+
return $option_array;
|
16 |
+
}
|
17 |
+
}
|
app/code/local/NextBits/BannerNext/Model/Bannernext.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class NextBits_BannerNext_Model_Bannernext extends Mage_Core_Model_Abstract
|
4 |
+
{
|
5 |
+
public function _construct()
|
6 |
+
{
|
7 |
+
parent::_construct();
|
8 |
+
$this->_init('bannernext/bannernext');
|
9 |
+
}
|
10 |
+
}
|
app/code/local/NextBits/BannerNext/Model/Config/Source/Page.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class NextBits_BannerNext_Model_Config_Source_Page
|
3 |
+
{
|
4 |
+
/**
|
5 |
+
* Options getter
|
6 |
+
*
|
7 |
+
* @return array
|
8 |
+
*/
|
9 |
+
public function toOptionArray()
|
10 |
+
{
|
11 |
+
$_collection = Mage::getSingleton('cms/page')->getCollection()->addFieldToFilter('is_active', 1);
|
12 |
+
$_result = array();
|
13 |
+
$_result[] =array(
|
14 |
+
'value' =>'',
|
15 |
+
'label' =>'',
|
16 |
+
);
|
17 |
+
foreach ($_collection as $item) {
|
18 |
+
$data = array(
|
19 |
+
'value' => $item->getData('page_id'),
|
20 |
+
'label' => $item->getData('title'));
|
21 |
+
$_result[] = $data;
|
22 |
+
}
|
23 |
+
return $_result;
|
24 |
+
}
|
25 |
+
}
|
app/code/local/NextBits/BannerNext/Model/Config/Source/Position.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class NextBits_BannerNext_Model_Config_Source_Position
|
3 |
+
{
|
4 |
+
const CONTENT_TOP = 'CONTENT_TOP';
|
5 |
+
const CONTENT_BOTTOM = 'CONTENT_BOTTOM';
|
6 |
+
const CONTENT_WIDGET = 'CONTENT_WIDGET';
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Options getter
|
10 |
+
*
|
11 |
+
* @return array
|
12 |
+
*/
|
13 |
+
public function toOptionArray()
|
14 |
+
{
|
15 |
+
return array(
|
16 |
+
array('value' => self::CONTENT_TOP, 'label'=>Mage::helper('adminhtml')->__('Content Top')),
|
17 |
+
array('value' => self::CONTENT_BOTTOM, 'label'=>Mage::helper('adminhtml')->__('Content Bottom')),
|
18 |
+
array('value' => self::CONTENT_WIDGET, 'label'=>Mage::helper('adminhtml')->__('Anywhere by CMS Widget'))
|
19 |
+
);
|
20 |
+
}
|
21 |
+
}
|
app/code/local/NextBits/BannerNext/Model/Mysql4/Bannernext.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class NextBits_BannerNext_Model_Mysql4_Bannernext extends Mage_Core_Model_Mysql4_Abstract
|
4 |
+
{
|
5 |
+
public function _construct()
|
6 |
+
{
|
7 |
+
// Note that the bannernext_id refers to the key field in your database table.
|
8 |
+
$this->_init('bannernext/bannernext', 'bannernext_id');
|
9 |
+
}
|
10 |
+
}
|
app/code/local/NextBits/BannerNext/Model/Mysql4/Bannernext/Collection.php
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class NextBits_BannerNext_Model_Mysql4_Bannernext_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
3 |
+
{
|
4 |
+
public function _construct()
|
5 |
+
{
|
6 |
+
parent::_construct();
|
7 |
+
$this->_init('bannernext/bannernext');
|
8 |
+
}
|
9 |
+
|
10 |
+
public function addEnableFilter($status = 1) {
|
11 |
+
$this->getSelect()->where('main_table.status = ?', $status);
|
12 |
+
return $this;
|
13 |
+
}
|
14 |
+
|
15 |
+
public function addStoreFilter($store) {
|
16 |
+
if (!Mage::app()->isSingleStoreMode()) {
|
17 |
+
|
18 |
+
$this->getSelect()->where('(FIND_IN_SET('.$store.',main_table.stores) or main_table.stores in (0))');
|
19 |
+
// $this->getSelect()->where('main_table.stores in (?)', array(0, $store));
|
20 |
+
return $this;
|
21 |
+
}
|
22 |
+
return $this;
|
23 |
+
}
|
24 |
+
|
25 |
+
public function addPageFilter($page) {
|
26 |
+
//$this->getSelect()->where('main_table.page_id in (?)', $page);
|
27 |
+
$this->getSelect()->where('FIND_IN_SET('.$page.',main_table.page_id)');
|
28 |
+
return $this;
|
29 |
+
}
|
30 |
+
|
31 |
+
public function addPositionFilter($position) {
|
32 |
+
$this->getSelect()->where('main_table.position = ?', $position);
|
33 |
+
return $this;
|
34 |
+
}
|
35 |
+
|
36 |
+
public function addCategoryFilter($category) {
|
37 |
+
$this->getSelect()->where('FIND_IN_SET('.$category.',main_table.category_id)');
|
38 |
+
return $this;
|
39 |
+
}
|
40 |
+
}
|
app/code/local/NextBits/BannerNext/Model/Observer.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class NextBits_BannerNext_Model_Observer extends Varien_Object
|
3 |
+
{
|
4 |
+
|
5 |
+
public function prepareLayoutBefore(Varien_Event_Observer $observer)
|
6 |
+
{
|
7 |
+
|
8 |
+
/* @var $block Mage_Page_Block_Html_Head */
|
9 |
+
if (!Mage::helper('bannernext')->isJqueryEnabled()) {
|
10 |
+
return $this;
|
11 |
+
}
|
12 |
+
$block = $observer->getEvent()->getBlock();
|
13 |
+
|
14 |
+
if ("head" == $block->getNameInLayout()) {
|
15 |
+
foreach (Mage::helper('bannernext')->getFiles() as $file) {
|
16 |
+
$block->addJs(Mage::helper('bannernext')->getJQueryPath($file));
|
17 |
+
}
|
18 |
+
}
|
19 |
+
return $this;
|
20 |
+
}
|
21 |
+
}
|
app/code/local/NextBits/BannerNext/Model/Status.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class NextBits_BannerNext_Model_Status extends Varien_Object
|
4 |
+
{
|
5 |
+
const STATUS_ENABLED = 1;
|
6 |
+
const STATUS_DISABLED = 2;
|
7 |
+
|
8 |
+
static public function getOptionArray()
|
9 |
+
{
|
10 |
+
return array(
|
11 |
+
self::STATUS_ENABLED => Mage::helper('bannernext')->__('Enabled'),
|
12 |
+
self::STATUS_DISABLED => Mage::helper('bannernext')->__('Disabled')
|
13 |
+
);
|
14 |
+
}
|
15 |
+
}
|
app/code/local/NextBits/BannerNext/controllers/Adminhtml/BannernextController.php
ADDED
@@ -0,0 +1,356 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class NextBits_BannerNext_Adminhtml_BannernextController extends Mage_Adminhtml_Controller_action
|
3 |
+
{
|
4 |
+
public function uploadAction()
|
5 |
+
{
|
6 |
+
try {
|
7 |
+
//Mage::log($_FILES);
|
8 |
+
$uploader = new Mage_Core_Model_File_Uploader('image');
|
9 |
+
$uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
|
10 |
+
$uploader->addValidateCallback('catalog_product_image',
|
11 |
+
Mage::helper('catalog/image'), 'validateUploadFile');
|
12 |
+
$uploader->setAllowRenameFiles(true);
|
13 |
+
$uploader->setFilesDispersion(true);
|
14 |
+
$result = $uploader->save($this->getBaseTmpMediaPath());
|
15 |
+
|
16 |
+
Mage::dispatchEvent('catalog_product_gallery_upload_image_after', array(
|
17 |
+
'result' => $result,
|
18 |
+
'action' => $this
|
19 |
+
));
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Workaround for prototype 1.7 methods "isJSON", "evalJSON" on Windows OS
|
23 |
+
*/
|
24 |
+
$result['tmp_name'] = str_replace(DS, "/", $result['tmp_name']);
|
25 |
+
$result['path'] = str_replace(DS, "/", $result['path']);
|
26 |
+
$tempUrl = $this->_prepareFileForUrl($result['file']);
|
27 |
+
if(substr($tempUrl, 0, 1) == '/') {
|
28 |
+
$tempUrl = substr($tempUrl, 1);
|
29 |
+
}
|
30 |
+
$result['url']=$this->getBaseTmpMediaUrl() . '/' . $tempUrl;
|
31 |
+
/* $result['url'] = Mage::getSingleton('catalog/product_media_config')->getTmpMediaUrl($result['file']); */
|
32 |
+
|
33 |
+
$result['file'] = $result['file'];
|
34 |
+
$result['cookie'] = array(
|
35 |
+
'name' => session_name(),
|
36 |
+
'value' => $this->_getSession()->getSessionId(),
|
37 |
+
'lifetime' => $this->_getSession()->getCookieLifetime(),
|
38 |
+
'path' => $this->_getSession()->getCookiePath(),
|
39 |
+
'domain' => $this->_getSession()->getCookieDomain()
|
40 |
+
);
|
41 |
+
|
42 |
+
} catch (Exception $e) {
|
43 |
+
$result = array(
|
44 |
+
'error' => $e->getMessage(),
|
45 |
+
'errorcode' => $e->getCode());
|
46 |
+
}
|
47 |
+
|
48 |
+
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
|
49 |
+
}
|
50 |
+
|
51 |
+
public function getBaseTmpMediaUrl()
|
52 |
+
{
|
53 |
+
return Mage::getBaseUrl('media') . 'bannernext';
|
54 |
+
}
|
55 |
+
|
56 |
+
public function getBaseTmpMediaPath()
|
57 |
+
{
|
58 |
+
return Mage::getBaseDir('media') . DS . 'bannernext';
|
59 |
+
}
|
60 |
+
|
61 |
+
|
62 |
+
protected function _prepareFileForUrl($file)
|
63 |
+
{
|
64 |
+
return str_replace(DS, '/', $file);
|
65 |
+
}
|
66 |
+
|
67 |
+
protected function _initAction()
|
68 |
+
{
|
69 |
+
$this->loadLayout()
|
70 |
+
->_setActiveMenu('bannernext/items')
|
71 |
+
->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Banner Manager'));
|
72 |
+
|
73 |
+
return $this;
|
74 |
+
}
|
75 |
+
|
76 |
+
public function indexAction()
|
77 |
+
{
|
78 |
+
$this->_initAction()
|
79 |
+
->renderLayout();
|
80 |
+
}
|
81 |
+
|
82 |
+
public function editAction()
|
83 |
+
{
|
84 |
+
$id = $this->getRequest()->getParam('id');
|
85 |
+
$model = Mage::getModel('bannernext/bannernext')->load($id);
|
86 |
+
|
87 |
+
if ($model->getId() || $id == 0) {
|
88 |
+
$data = Mage::getSingleton('adminhtml/session')->getFormData(true);
|
89 |
+
if (!empty($data)) {
|
90 |
+
$model->setData($data);
|
91 |
+
}
|
92 |
+
//echo '<pre>';
|
93 |
+
//$model->setData('stores',json_decode($model->getData('stores')));
|
94 |
+
//print_R($model->getData());exit;
|
95 |
+
Mage::register('bannernext_data', $model);
|
96 |
+
|
97 |
+
$this->loadLayout();
|
98 |
+
$this->_setActiveMenu('bannernext/items');
|
99 |
+
|
100 |
+
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Banner Manager'), Mage::helper('adminhtml')->__('Banner Manager'));
|
101 |
+
|
102 |
+
$this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
|
103 |
+
|
104 |
+
$this->_addContent($this->getLayout()->createBlock('bannernext/adminhtml_bannernext_edit'))
|
105 |
+
->_addLeft($this->getLayout()->createBlock('bannernext/adminhtml_bannernext_edit_tabs'));
|
106 |
+
|
107 |
+
$this->renderLayout();
|
108 |
+
} else {
|
109 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bannernext')->__('Banner does not exist'));
|
110 |
+
$this->_redirect('*/*/');
|
111 |
+
}
|
112 |
+
}
|
113 |
+
|
114 |
+
public function newAction()
|
115 |
+
{
|
116 |
+
$this->_title($this->__('New Banner'));
|
117 |
+
|
118 |
+
$_model = Mage::getModel('bannernext/bannernext');
|
119 |
+
Mage::register('bannernext_data', $_model);
|
120 |
+
Mage::register('current_banner', $_model);
|
121 |
+
|
122 |
+
$this->_initAction();
|
123 |
+
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Banner Manager'), Mage::helper('adminhtml')->__('Banner Manager'), $this->getUrl('*'));
|
124 |
+
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Add Banner'), Mage::helper('adminhtml')->__('Add Banner'));
|
125 |
+
|
126 |
+
$this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
|
127 |
+
|
128 |
+
$this->_addContent($this->getLayout()->createBlock('bannernext/adminhtml_bannernext_edit'))
|
129 |
+
->_addLeft($this->getLayout()->createBlock('bannernext/adminhtml_bannernext_edit_tabs'));
|
130 |
+
|
131 |
+
$this->renderLayout();
|
132 |
+
}
|
133 |
+
|
134 |
+
public function saveAction()
|
135 |
+
{
|
136 |
+
|
137 |
+
if ($data = $this->getRequest()->getPost()) {
|
138 |
+
if(isset($_FILES['filename']['name']) && $_FILES['filename']['name'] != '') {
|
139 |
+
try {
|
140 |
+
/* Starting upload */
|
141 |
+
$uploader = new Varien_File_Uploader('filename');
|
142 |
+
|
143 |
+
// Any extention would work
|
144 |
+
$uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
|
145 |
+
$uploader->setAllowRenameFiles(false);
|
146 |
+
|
147 |
+
// Set the file upload mode
|
148 |
+
// false -> get the file directly in the specified folder
|
149 |
+
// true -> get the file in the product like folders
|
150 |
+
// (file.jpg will go in something like /media/f/i/file.jpg)
|
151 |
+
$uploader->setFilesDispersion(false);
|
152 |
+
|
153 |
+
// We set media as the upload dir
|
154 |
+
$path = Mage::getBaseDir('media') . DS ;
|
155 |
+
$uploader->save($path, $_FILES['filename']['name'] );
|
156 |
+
|
157 |
+
} catch (Exception $e) {
|
158 |
+
|
159 |
+
}
|
160 |
+
|
161 |
+
//this way the name is saved in DB
|
162 |
+
$data['filename'] = $_FILES['filename']['name'];
|
163 |
+
}
|
164 |
+
|
165 |
+
|
166 |
+
$model = Mage::getModel('bannernext/bannernext');
|
167 |
+
if(isset($data['bannernext_tabs']['images']) && !empty($data['bannernext_tabs']['images'])){
|
168 |
+
$images = Mage::helper('core')->jsonDecode($data['bannernext_tabs']['images'],true);
|
169 |
+
//$images = json_decode($data['bannernext_tabs']['images'],true);
|
170 |
+
$newArray = array();
|
171 |
+
foreach($images as $key=>$image){
|
172 |
+
if($image['removed']!=1){
|
173 |
+
$newArray[] = $image;
|
174 |
+
}
|
175 |
+
}
|
176 |
+
$content = Mage::helper('core')->jsonEncode($newArray);
|
177 |
+
$data['content'] = $content;
|
178 |
+
unset($data['bannernext_tabs']['images']);
|
179 |
+
}
|
180 |
+
|
181 |
+
if(isset($data['stores']) && !empty($data['stores'])){
|
182 |
+
if(in_array('0',$data['stores'])){
|
183 |
+
$data['stores'] = array(0);
|
184 |
+
}
|
185 |
+
|
186 |
+
/* $stores = Mage::helper('core')->jsonEncode($data['stores']); */
|
187 |
+
$data['stores'] = implode(',',$data['stores']);
|
188 |
+
}
|
189 |
+
if (isset($data['categories'])) {
|
190 |
+
$data['categories'] = explode(',',$data['categories']);
|
191 |
+
if (is_array($data['categories'])) {
|
192 |
+
$categoryIds =array_unique($data['categories']);
|
193 |
+
if(empty($categoryIds)){
|
194 |
+
$data['category_id'] ='';
|
195 |
+
}else{
|
196 |
+
//$data['category_id'] = Mage::helper('core')->jsonEncode($categoryIds);
|
197 |
+
$data['category_id'] = implode(',',$categoryIds);
|
198 |
+
}
|
199 |
+
|
200 |
+
}
|
201 |
+
}
|
202 |
+
if(isset($data['pages']) && !empty($data['pages'])){
|
203 |
+
if(empty($data['pages'][0])){
|
204 |
+
unset($data['pages'][0]);
|
205 |
+
}
|
206 |
+
if(!empty($data['pages'])){
|
207 |
+
//$pageIds = Mage::helper('core')->jsonEncode($data['pages']);
|
208 |
+
$pageIds =implode(',',$data['pages']);
|
209 |
+
$data['page_id'] = $pageIds;
|
210 |
+
}else{
|
211 |
+
$data['page_id']='';
|
212 |
+
}
|
213 |
+
}
|
214 |
+
|
215 |
+
$model->setData($data)->setId($this->getRequest()->getParam('id'));
|
216 |
+
|
217 |
+
try {
|
218 |
+
if ($model->getCreatedTime == NULL || $model->getUpdateTime() == NULL) {
|
219 |
+
$model->setCreatedTime(now())
|
220 |
+
->setUpdateTime(now());
|
221 |
+
} else {
|
222 |
+
$model->setUpdateTime(now());
|
223 |
+
}
|
224 |
+
|
225 |
+
$model->save();
|
226 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('bannernext')->__('Banner was successfully saved'));
|
227 |
+
Mage::getSingleton('adminhtml/session')->setFormData(false);
|
228 |
+
|
229 |
+
if ($this->getRequest()->getParam('back')) {
|
230 |
+
$this->_redirect('*/*/edit', array('id' => $model->getId()));
|
231 |
+
return;
|
232 |
+
}
|
233 |
+
$this->_redirect('*/*/');
|
234 |
+
return;
|
235 |
+
} catch (Exception $e) {
|
236 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
237 |
+
Mage::getSingleton('adminhtml/session')->setFormData($data);
|
238 |
+
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
|
239 |
+
return;
|
240 |
+
}
|
241 |
+
}
|
242 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bannernext')->__('Unable to find Banner to save'));
|
243 |
+
$this->_redirect('*/*/');
|
244 |
+
}
|
245 |
+
|
246 |
+
public function deleteAction()
|
247 |
+
{
|
248 |
+
if( $this->getRequest()->getParam('id') > 0 ) {
|
249 |
+
try {
|
250 |
+
$model = Mage::getModel('bannernext/bannernext');
|
251 |
+
|
252 |
+
$model->setId($this->getRequest()->getParam('id'))
|
253 |
+
->delete();
|
254 |
+
|
255 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Banner was successfully deleted'));
|
256 |
+
$this->_redirect('*/*/');
|
257 |
+
} catch (Exception $e) {
|
258 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
259 |
+
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
|
260 |
+
}
|
261 |
+
}
|
262 |
+
$this->_redirect('*/*/');
|
263 |
+
}
|
264 |
+
|
265 |
+
public function massDeleteAction()
|
266 |
+
{
|
267 |
+
$bannernextIds = $this->getRequest()->getParam('bannernext');
|
268 |
+
if(!is_array($bannernextIds)) {
|
269 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('Please select Banner(s)'));
|
270 |
+
} else {
|
271 |
+
try {
|
272 |
+
foreach ($bannernextIds as $bannernextId) {
|
273 |
+
$bannernext = Mage::getModel('bannernext/bannernext')->load($bannernextId);
|
274 |
+
$bannernext->delete();
|
275 |
+
}
|
276 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(
|
277 |
+
Mage::helper('adminhtml')->__(
|
278 |
+
'Total of %d record(s) were successfully deleted', count($bannernextIds)
|
279 |
+
)
|
280 |
+
);
|
281 |
+
} catch (Exception $e) {
|
282 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
283 |
+
}
|
284 |
+
}
|
285 |
+
$this->_redirect('*/*/index');
|
286 |
+
}
|
287 |
+
|
288 |
+
public function massStatusAction()
|
289 |
+
{
|
290 |
+
$bannernextIds = $this->getRequest()->getParam('bannernext');
|
291 |
+
if(!is_array($bannernextIds)) {
|
292 |
+
Mage::getSingleton('adminhtml/session')->addError($this->__('Please select Banner(s)'));
|
293 |
+
} else {
|
294 |
+
try {
|
295 |
+
foreach ($bannernextIds as $bannernextId) {
|
296 |
+
$bannernext = Mage::getSingleton('bannernext/bannernext')
|
297 |
+
->load($bannernextId)
|
298 |
+
->setStatus($this->getRequest()->getParam('status'))
|
299 |
+
->setIsMassupdate(true)
|
300 |
+
->save();
|
301 |
+
}
|
302 |
+
$this->_getSession()->addSuccess(
|
303 |
+
$this->__('Total of %d record(s) were successfully updated', count($bannernextIds))
|
304 |
+
);
|
305 |
+
} catch (Exception $e) {
|
306 |
+
$this->_getSession()->addError($e->getMessage());
|
307 |
+
}
|
308 |
+
}
|
309 |
+
$this->_redirect('*/*/index');
|
310 |
+
}
|
311 |
+
|
312 |
+
public function exportCsvAction()
|
313 |
+
{
|
314 |
+
$fileName = 'bannernext.csv';
|
315 |
+
$content = $this->getLayout()->createBlock('bannernext/adminhtml_bannernext_grid')
|
316 |
+
->getCsv();
|
317 |
+
|
318 |
+
$this->_sendUploadResponse($fileName, $content);
|
319 |
+
}
|
320 |
+
|
321 |
+
public function exportXmlAction()
|
322 |
+
{
|
323 |
+
$fileName = 'bannernext.xml';
|
324 |
+
$content = $this->getLayout()->createBlock('bannernext/adminhtml_bannernext_grid')
|
325 |
+
->getXml();
|
326 |
+
|
327 |
+
$this->_sendUploadResponse($fileName, $content);
|
328 |
+
}
|
329 |
+
|
330 |
+
protected function _sendUploadResponse($fileName, $content, $contentType='application/octet-stream')
|
331 |
+
{
|
332 |
+
$response = $this->getResponse();
|
333 |
+
$response->setHeader('HTTP/1.1 200 OK','');
|
334 |
+
$response->setHeader('Pragma', 'public', true);
|
335 |
+
$response->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true);
|
336 |
+
$response->setHeader('Content-Disposition', 'attachment; filename='.$fileName);
|
337 |
+
$response->setHeader('Last-Modified', date('r'));
|
338 |
+
$response->setHeader('Accept-Ranges', 'bytes');
|
339 |
+
$response->setHeader('Content-Length', strlen($content));
|
340 |
+
$response->setHeader('Content-type', $contentType);
|
341 |
+
$response->setBody($content);
|
342 |
+
$response->sendResponse();
|
343 |
+
die;
|
344 |
+
}
|
345 |
+
public function categoriesJsonAction()
|
346 |
+
{
|
347 |
+
$bannerId = $this->getRequest()->getParam('id');
|
348 |
+
$_model = Mage::getModel('bannernext/bannernext')->load($bannerId);
|
349 |
+
Mage::register('bannernext_data', $_model);
|
350 |
+
|
351 |
+
$this->getResponse()->setBody(
|
352 |
+
$this->getLayout()->createBlock('bannernext/adminhtml_bannernext_edit_tab_category')
|
353 |
+
->getCategoryChildrenJson($this->getRequest()->getParam('category'))
|
354 |
+
);
|
355 |
+
}
|
356 |
+
}
|
app/code/local/NextBits/BannerNext/etc/config.xml
ADDED
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<NextBits_BannerNext>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</NextBits_BannerNext>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<bannernext>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>NextBits_BannerNext</module>
|
14 |
+
<frontName>bannernext</frontName>
|
15 |
+
</args>
|
16 |
+
</bannernext>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<bannernext>
|
21 |
+
<file>bannernext.xml</file>
|
22 |
+
</bannernext>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
<events>
|
26 |
+
<core_block_abstract_prepare_layout_before>
|
27 |
+
<observers>
|
28 |
+
<nextbits_jquery_prepare_layout_before>
|
29 |
+
<class>bannernext/observer</class>
|
30 |
+
<method>prepareLayoutBefore</method>
|
31 |
+
</nextbits_jquery_prepare_layout_before>
|
32 |
+
</observers>
|
33 |
+
</core_block_abstract_prepare_layout_before>
|
34 |
+
</events>
|
35 |
+
</frontend>
|
36 |
+
<admin>
|
37 |
+
<routers>
|
38 |
+
<bannernext>
|
39 |
+
<use>admin</use>
|
40 |
+
<args>
|
41 |
+
<module>NextBits_BannerNext</module>
|
42 |
+
<frontName>bannernext</frontName>
|
43 |
+
</args>
|
44 |
+
</bannernext>
|
45 |
+
</routers>
|
46 |
+
</admin>
|
47 |
+
<adminhtml>
|
48 |
+
<menu>
|
49 |
+
<bannernext module="bannernext">
|
50 |
+
<title>BannerNext</title>
|
51 |
+
<sort_order>71</sort_order>
|
52 |
+
<children>
|
53 |
+
<items module="bannernext">
|
54 |
+
<title>Manage Banners</title>
|
55 |
+
<sort_order>0</sort_order>
|
56 |
+
<action>bannernext/adminhtml_bannernext</action>
|
57 |
+
</items>
|
58 |
+
<items2 module="bannernext">
|
59 |
+
<title>Add Banner</title>
|
60 |
+
<sort_order>0</sort_order>
|
61 |
+
<action>bannernext/adminhtml_bannernext/new</action>
|
62 |
+
</items2>
|
63 |
+
</children>
|
64 |
+
</bannernext>
|
65 |
+
</menu>
|
66 |
+
<acl>
|
67 |
+
<resources>
|
68 |
+
<all>
|
69 |
+
<title>Allow Everything</title>
|
70 |
+
</all>
|
71 |
+
<admin>
|
72 |
+
<children>
|
73 |
+
<NextBits_BannerNext>
|
74 |
+
<title>BannerNext Module</title>
|
75 |
+
<sort_order>10</sort_order>
|
76 |
+
</NextBits_BannerNext>
|
77 |
+
<system>
|
78 |
+
<children>
|
79 |
+
<config>
|
80 |
+
<children>
|
81 |
+
<bannernext translate="title" module="bannernext">
|
82 |
+
<title>NextBits BannerNext Section</title>
|
83 |
+
</bannernext>
|
84 |
+
</children>
|
85 |
+
</config>
|
86 |
+
</children>
|
87 |
+
</system>
|
88 |
+
</children>
|
89 |
+
</admin>
|
90 |
+
</resources>
|
91 |
+
</acl>
|
92 |
+
<layout>
|
93 |
+
<updates>
|
94 |
+
<bannernext>
|
95 |
+
<file>bannernext.xml</file>
|
96 |
+
</bannernext>
|
97 |
+
</updates>
|
98 |
+
</layout>
|
99 |
+
</adminhtml>
|
100 |
+
<global>
|
101 |
+
<models>
|
102 |
+
<bannernext>
|
103 |
+
<class>NextBits_BannerNext_Model</class>
|
104 |
+
<resourceModel>bannernext_mysql4</resourceModel>
|
105 |
+
</bannernext>
|
106 |
+
<bannernext_mysql4>
|
107 |
+
<class>NextBits_BannerNext_Model_Mysql4</class>
|
108 |
+
<entities>
|
109 |
+
<bannernext>
|
110 |
+
<table>bannernext</table>
|
111 |
+
</bannernext>
|
112 |
+
</entities>
|
113 |
+
</bannernext_mysql4>
|
114 |
+
</models>
|
115 |
+
<resources>
|
116 |
+
<bannernext_setup>
|
117 |
+
<setup>
|
118 |
+
<module>NextBits_BannerNext</module>
|
119 |
+
</setup>
|
120 |
+
<connection>
|
121 |
+
<use>core_setup</use>
|
122 |
+
</connection>
|
123 |
+
</bannernext_setup>
|
124 |
+
<bannernext_write>
|
125 |
+
<connection>
|
126 |
+
<use>core_write</use>
|
127 |
+
</connection>
|
128 |
+
</bannernext_write>
|
129 |
+
<bannernext_read>
|
130 |
+
<connection>
|
131 |
+
<use>core_read</use>
|
132 |
+
</connection>
|
133 |
+
</bannernext_read>
|
134 |
+
</resources>
|
135 |
+
<blocks>
|
136 |
+
<bannernext>
|
137 |
+
<class>NextBits_BannerNext_Block</class>
|
138 |
+
</bannernext>
|
139 |
+
</blocks>
|
140 |
+
<helpers>
|
141 |
+
<bannernext>
|
142 |
+
<class>NextBits_BannerNext_Helper</class>
|
143 |
+
</bannernext>
|
144 |
+
</helpers>
|
145 |
+
</global>
|
146 |
+
<default>
|
147 |
+
<bannernext>
|
148 |
+
<general>
|
149 |
+
<active>1</active>
|
150 |
+
<jquery>1</jquery>
|
151 |
+
<responsive_banner>0</responsive_banner>
|
152 |
+
</general>
|
153 |
+
</bannernext>
|
154 |
+
</default>
|
155 |
+
<adminhtml>
|
156 |
+
<translate>
|
157 |
+
<modules>
|
158 |
+
<NextBits_BannerNext>
|
159 |
+
<files>
|
160 |
+
<default>NextBits_BannerNext.csv</default>
|
161 |
+
</files>
|
162 |
+
</NextBits_BannerNext>
|
163 |
+
</modules>
|
164 |
+
</translate>
|
165 |
+
</adminhtml>
|
166 |
+
<frontend>
|
167 |
+
<translate>
|
168 |
+
<modules>
|
169 |
+
<NextBits_BannerNext>
|
170 |
+
<files>
|
171 |
+
<default>NextBits_BannerNext.csv</default>
|
172 |
+
</files>
|
173 |
+
</NextBits_BannerNext>
|
174 |
+
</modules>
|
175 |
+
</translate>
|
176 |
+
</frontend>
|
177 |
+
</config>
|
app/code/local/NextBits/BannerNext/etc/system.xml
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<!-- <tabs>
|
4 |
+
<NextBits_BannerNext translate="label" module="bannernext">
|
5 |
+
<label>NextBits BannerNext</label>
|
6 |
+
<sort_order>100</sort_order>
|
7 |
+
</NextBits_BannerNext>
|
8 |
+
</tabs> -->
|
9 |
+
<tabs>
|
10 |
+
<NextBits_Extensions translate="label" module="checkoutnext">
|
11 |
+
<label>NextBits - Extensions</label>
|
12 |
+
<sort_order>100</sort_order>
|
13 |
+
</NextBits_Extensions>
|
14 |
+
</tabs>
|
15 |
+
<sections>
|
16 |
+
<bannernext>
|
17 |
+
<label>Banner Next</label>
|
18 |
+
<tab>NextBits_Extensions</tab>
|
19 |
+
<class>nextbits-bannernext</class>
|
20 |
+
<frontend_type>text</frontend_type>
|
21 |
+
<sort_order>150</sort_order>
|
22 |
+
<show_in_default>1</show_in_default>
|
23 |
+
<show_in_website>1</show_in_website>
|
24 |
+
<show_in_store>1</show_in_store>
|
25 |
+
<groups>
|
26 |
+
<general translate="label">
|
27 |
+
<label>General</label>
|
28 |
+
<frontend_type>text</frontend_type>
|
29 |
+
<sort_order>0</sort_order>
|
30 |
+
<show_in_default>1</show_in_default>
|
31 |
+
<show_in_website>1</show_in_website>
|
32 |
+
<show_in_store>1</show_in_store>
|
33 |
+
<fields>
|
34 |
+
<active translate="label">
|
35 |
+
<label>Enable BannerNext</label>
|
36 |
+
<frontend_type>select</frontend_type>
|
37 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
38 |
+
<sort_order>1</sort_order>
|
39 |
+
<show_in_default>1</show_in_default>
|
40 |
+
<show_in_website>1</show_in_website>
|
41 |
+
<show_in_store>1</show_in_store>
|
42 |
+
</active>
|
43 |
+
<jquery>
|
44 |
+
<label>Enable jQuery</label>
|
45 |
+
<frontend_type>select</frontend_type>
|
46 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
47 |
+
<sort_order>2</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 |
+
</jquery>
|
52 |
+
<responsive_banner>
|
53 |
+
<label>Enable Responsive Banner</label>
|
54 |
+
<frontend_type>select</frontend_type>
|
55 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
56 |
+
<sort_order>3</sort_order>
|
57 |
+
<show_in_default>1</show_in_default>
|
58 |
+
<show_in_website>1</show_in_website>
|
59 |
+
<show_in_store>1</show_in_store>
|
60 |
+
</responsive_banner>
|
61 |
+
|
62 |
+
</fields>
|
63 |
+
</general>
|
64 |
+
</groups>
|
65 |
+
</bannernext>
|
66 |
+
<!-- <license module="bannernext">
|
67 |
+
<label>License Manager</label>
|
68 |
+
<tab>NextBits_Extensions</tab>
|
69 |
+
<frontend_type>text</frontend_type>
|
70 |
+
<sort_order>10</sort_order>
|
71 |
+
<show_in_default>1</show_in_default>
|
72 |
+
<show_in_website>1</show_in_website>
|
73 |
+
<show_in_store>1</show_in_store>
|
74 |
+
<groups>
|
75 |
+
<bannernext_license translate="label">
|
76 |
+
<label>Banner Next License</label>
|
77 |
+
<frontend_type>text</frontend_type>
|
78 |
+
<sort_order>0</sort_order>
|
79 |
+
<show_in_default>1</show_in_default>
|
80 |
+
<show_in_website>1</show_in_website>
|
81 |
+
<show_in_store>1</show_in_store>
|
82 |
+
<fields>
|
83 |
+
<domains translate="label">
|
84 |
+
<frontend_type>text</frontend_type>
|
85 |
+
<frontend_model>NextBits_Nbcore_Block_Adminhtml_System_Config_Form_Multiline</frontend_model>
|
86 |
+
<backend_model>NextBits_Nbcore_Model_System_Config_Backend_License</backend_model>
|
87 |
+
<sort_order>1</sort_order>
|
88 |
+
<show_in_default>1</show_in_default>
|
89 |
+
<show_in_website>0</show_in_website>
|
90 |
+
<show_in_store>0</show_in_store>
|
91 |
+
</domains>
|
92 |
+
</fields>
|
93 |
+
</bannernext_license>
|
94 |
+
</groups>
|
95 |
+
</license> -->
|
96 |
+
</sections>
|
97 |
+
</config>
|
app/code/local/NextBits/BannerNext/etc/widget.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<widgets>
|
3 |
+
<bannernext type="bannernext/widget" translate="Adds banner into page/block" module="bannernext">
|
4 |
+
<name>BannerNext - Add Banner</name>
|
5 |
+
<description type="desc">Adds banner into page/block</description>
|
6 |
+
<parameters>
|
7 |
+
<banner_id>
|
8 |
+
<label>Banner Name</label>
|
9 |
+
<visible>1</visible>
|
10 |
+
<required>1</required>
|
11 |
+
<type>select</type>
|
12 |
+
<source_model>bannernext/availablebanners</source_model>
|
13 |
+
</banner_id>
|
14 |
+
<template>
|
15 |
+
<visible>0</visible>
|
16 |
+
<value>bannernext/banner.phtml</value>
|
17 |
+
</template>
|
18 |
+
</parameters>
|
19 |
+
</bannernext>
|
20 |
+
</widgets>
|
app/code/local/NextBits/BannerNext/sql/bannernext_setup/mysql4-install-0.1.0.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$installer = $this;
|
4 |
+
|
5 |
+
$installer->startSetup();
|
6 |
+
|
7 |
+
$installer->run("
|
8 |
+
|
9 |
+
-- DROP TABLE IF EXISTS {$this->getTable('bannernext')};
|
10 |
+
CREATE TABLE {$this->getTable('bannernext')} (
|
11 |
+
`bannernext_id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
|
12 |
+
`title` VARCHAR(255) NOT NULL DEFAULT '',
|
13 |
+
`content` TEXT NOT NULL,
|
14 |
+
`stores` TEXT NULL,
|
15 |
+
`status` SMALLINT(6) NOT NULL DEFAULT '0',
|
16 |
+
`created_time` DATETIME NULL DEFAULT NULL,
|
17 |
+
`update_time` DATETIME NULL DEFAULT NULL,
|
18 |
+
`height` INT(50) NULL DEFAULT '300',
|
19 |
+
`width` INT(50) NULL DEFAULT '685',
|
20 |
+
`page_id` TEXT NULL,
|
21 |
+
`category_id` TEXT NULL,
|
22 |
+
`position` VARCHAR(128) NULL DEFAULT '',
|
23 |
+
`advanced_settings` TEXT NULL DEFAULT '',
|
24 |
+
PRIMARY KEY (`bannernext_id`)
|
25 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
26 |
+
|
27 |
+
");
|
28 |
+
|
29 |
+
$installer->endSetup();
|
app/design/adminhtml/default/default/layout/bannernext.xml
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="setCanLoadExtJs"><flag>1</flag></action>
|
6 |
+
<action method="setCanLoadTinyMce"><flag>1</flag></action>
|
7 |
+
<action method="addJs"><script>prototype/prototype.js</script></action>
|
8 |
+
<action method="addJs"><script>mage/adminhtml/variables.js</script></action>
|
9 |
+
<action method="addJs"><script>mage/adminhtml/wysiwyg/widget.js</script></action>
|
10 |
+
<action method="addJs"><script>lib/flex.js</script></action>
|
11 |
+
<action method="addJs"><script>lib/FABridge.js</script></action>
|
12 |
+
<action method="addJs"><script>mage/adminhtml/flexuploader.js</script></action>
|
13 |
+
<action method="addJs"><script>mage/adminhtml/browser.js</script></action>
|
14 |
+
<action method="addJs"><script>prototype/window.js</script></action>
|
15 |
+
<action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>
|
16 |
+
<action method="addCss"><name>lib/prototype/windows/themes/magento.css</name></action>
|
17 |
+
</reference>
|
18 |
+
</default>
|
19 |
+
<bannernext_adminhtml_bannernext_index>
|
20 |
+
<update handle="editor_index_index"/>
|
21 |
+
<reference name="content">
|
22 |
+
<block type="bannernext/adminhtml_bannernext" name="bannernext" />
|
23 |
+
</reference>
|
24 |
+
</bannernext_adminhtml_bannernext_index>
|
25 |
+
</layout>
|
app/design/adminhtml/default/default/template/bannernext/banner.phtml
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="content-header">
|
2 |
+
<table cellspacing="0">
|
3 |
+
<tr>
|
4 |
+
<td style="width:50%;"><h3 class="icon-head head-blog"><?php echo Mage::helper('ibanner')->__('I-Banner Manager') ?></h3></td>
|
5 |
+
<td class="a-right">
|
6 |
+
<?php echo $this->getAddNewButtonHtml() ?>
|
7 |
+
</td>
|
8 |
+
</tr>
|
9 |
+
</table>
|
10 |
+
</div>
|
11 |
+
<?php echo $this->getStoreSwitcherHtml() ?>
|
12 |
+
<div>
|
13 |
+
<?php echo $this->getGridHtml() ?>
|
14 |
+
</div>
|
app/design/adminhtml/default/default/template/bannernext/banner.phtml#
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="content-header">
|
2 |
+
<table cellspacing="0">
|
3 |
+
<tr>
|
4 |
+
<td style="width:50%;"><h3 class="icon-head head-blog"><?php echo Mage::helper('bannernext')->__('Banner Manager') ?></h3></td>
|
5 |
+
<td class="a-right">
|
6 |
+
<?php echo $this->getAddNewButtonHtml() ?>
|
7 |
+
</td>
|
8 |
+
</tr>
|
9 |
+
</table>
|
10 |
+
</div>
|
11 |
+
<?php echo $this->getStoreSwitcherHtml() ?>
|
12 |
+
<div>
|
13 |
+
<?php echo $this->getGridHtml() ?>
|
14 |
+
</div>
|
app/design/adminhtml/default/default/template/bannernext/edit/tab/category.phtml
ADDED
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<div class="entry-edit">
|
3 |
+
<div class="entry-edit-head">
|
4 |
+
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo Mage::helper('bannernext')->__('Banner Categories') ?></h4>
|
5 |
+
</div>
|
6 |
+
<fieldset id="grop_fields">
|
7 |
+
<input type="hidden" name="categories" id="bannernext_categories" value="<?php echo $this->getIdsString() ?>">
|
8 |
+
<div id="bannernext-categories" class="tree"></div>
|
9 |
+
</fieldset>
|
10 |
+
</div>
|
11 |
+
<input type="hidden" name="category_products" id="in_category_products" value="" />
|
12 |
+
<?php if($this->getRootNode() && $this->getRootNode()->hasChildren()): ?>
|
13 |
+
<script type="text/javascript">
|
14 |
+
Ext.EventManager.onDocumentReady(function() {
|
15 |
+
var categoryLoader = new Ext.tree.TreeLoader({
|
16 |
+
dataUrl: '<?php echo $this->getLoadTreeUrl()?>'
|
17 |
+
});
|
18 |
+
|
19 |
+
categoryLoader.createNode = function(config) {
|
20 |
+
config.uiProvider = Ext.tree.CheckboxNodeUI;
|
21 |
+
var node;
|
22 |
+
if (config.children && !config.children.length) {
|
23 |
+
delete(config.children);
|
24 |
+
node = new Ext.tree.AsyncTreeNode(config);
|
25 |
+
|
26 |
+
} else {
|
27 |
+
node = new Ext.tree.TreeNode(config);
|
28 |
+
}
|
29 |
+
return node;
|
30 |
+
};
|
31 |
+
|
32 |
+
categoryLoader.on("beforeload", function(treeLoader, node) {
|
33 |
+
treeLoader.baseParams.category = node.attributes.id;
|
34 |
+
});
|
35 |
+
|
36 |
+
categoryLoader.on("load", function(treeLoader, node, config) {
|
37 |
+
varienWindowOnload();
|
38 |
+
});
|
39 |
+
|
40 |
+
var tree = new Ext.tree.TreePanel('bannernext-categories', {
|
41 |
+
animate:true,
|
42 |
+
loader: categoryLoader,
|
43 |
+
enableDD:false,
|
44 |
+
containerScroll: true,
|
45 |
+
rootUIProvider: Ext.tree.CheckboxNodeUI,
|
46 |
+
selModel: new Ext.tree.CheckNodeMultiSelectionModel(),
|
47 |
+
rootVisible: '<?php echo $this->getRootNode()->getIsVisible() ?>'
|
48 |
+
});
|
49 |
+
|
50 |
+
tree.on('check', function(node) {
|
51 |
+
if(node.attributes.checked) {
|
52 |
+
categoryAdd(node.id);
|
53 |
+
} else {
|
54 |
+
categoryRemove(node.id);
|
55 |
+
}
|
56 |
+
varienElementMethods.setHasChanges(node.getUI().checkbox);
|
57 |
+
}, tree);
|
58 |
+
|
59 |
+
// set the root node
|
60 |
+
var root = new Ext.tree.TreeNode({
|
61 |
+
text: '<?php echo $this->jsQuoteEscape($this->getRootNode()->getName()) ?>',
|
62 |
+
draggable:false,
|
63 |
+
checked:'<?php echo $this->getRootNode()->getChecked() ?>',
|
64 |
+
id:'<?php echo $this->getRootNode()->getId() ?>',
|
65 |
+
disabled: <?php echo ($this->getRootNode()->getDisabled() ? 'true' : 'false') ?>,
|
66 |
+
uiProvider: Ext.tree.CheckboxNodeUI
|
67 |
+
});
|
68 |
+
|
69 |
+
tree.setRootNode(root);
|
70 |
+
bildCategoryTree(root, <?php echo $this->getTreeJson() ?>);
|
71 |
+
tree.addListener('click', categoryClick.createDelegate(this));
|
72 |
+
|
73 |
+
// render the tree
|
74 |
+
tree.render();
|
75 |
+
root.expand();
|
76 |
+
//tree.expandAll();
|
77 |
+
});
|
78 |
+
|
79 |
+
function bildCategoryTree(parent, config){
|
80 |
+
if (!config) return null;
|
81 |
+
|
82 |
+
if (parent && config && config.length){
|
83 |
+
for (var i = 0; i < config.length; i++){
|
84 |
+
config[i].uiProvider = Ext.tree.CheckboxNodeUI;
|
85 |
+
var node;
|
86 |
+
var _node = Object.clone(config[i]);
|
87 |
+
if (_node.children && !_node.children.length) {
|
88 |
+
delete(_node.children);
|
89 |
+
node = new Ext.tree.AsyncTreeNode(_node);
|
90 |
+
|
91 |
+
} else {
|
92 |
+
node = new Ext.tree.TreeNode(config[i]);
|
93 |
+
}
|
94 |
+
parent.appendChild(node);
|
95 |
+
node.loader = node.getOwnerTree().loader;
|
96 |
+
if(config[i].children){
|
97 |
+
bildCategoryTree(node, config[i].children);
|
98 |
+
}
|
99 |
+
}
|
100 |
+
}
|
101 |
+
}
|
102 |
+
|
103 |
+
function categoryClick(node, e){
|
104 |
+
if (node.disabled) {
|
105 |
+
return;
|
106 |
+
}
|
107 |
+
node.getUI().check(!node.getUI().checked());
|
108 |
+
varienElementMethods.setHasChanges(Event.element(e), e);
|
109 |
+
};
|
110 |
+
function categoryAdd(id) {
|
111 |
+
var ids = $('bannernext_categories').value.split(',');
|
112 |
+
ids.push(id);
|
113 |
+
$('bannernext_categories').value = ids.join(',');
|
114 |
+
}
|
115 |
+
function categoryRemove(id) {
|
116 |
+
var ids = $('bannernext_categories').value.split(',');
|
117 |
+
// bug #7654 fixed
|
118 |
+
while (-1 != ids.indexOf(id)) {
|
119 |
+
ids.splice(ids.indexOf(id), 1);
|
120 |
+
}
|
121 |
+
$('bannernext_categories').value = ids.join(',');
|
122 |
+
}
|
123 |
+
</script>
|
124 |
+
<?php endif; ?>
|
app/design/adminhtml/default/default/template/bannernext/edit/tab/gallery-backup-editor.txt
ADDED
@@ -0,0 +1,315 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script>
|
2 |
+
/* to update section after image upload */
|
3 |
+
Product.Gallery.prototype.updateImage = function(file) {
|
4 |
+
|
5 |
+
var index = this.getIndexByFile(file);
|
6 |
+
//alert(this.getFileElement(file, 'cell-label #image-html').value);
|
7 |
+
//if(this.getFileElement(file, 'cell-label #image-html').value != 'undefined'){
|
8 |
+
this.images[index].html = this.getFileElement(file, 'cell-label #image-html').value;
|
9 |
+
//}
|
10 |
+
//if(this.getFileElement(file, 'cell-label #image-link').value != 'undefined')
|
11 |
+
this.images[index].link = this.getFileElement(file, 'cell-label #image-link').value;
|
12 |
+
//}
|
13 |
+
this.images[index].label = this.getFileElement(file, 'cell-label #image-label').value;
|
14 |
+
|
15 |
+
this.images[index].position = this.getFileElement(file,'cell-position input').value;
|
16 |
+
this.images[index].removed = (this.getFileElement(file,'cell-remove input').checked ? 1 : 0);
|
17 |
+
this.images[index].disabled = (this.getFileElement(file,'cell-disable input').checked ? 1 : 0);
|
18 |
+
this.getElement('save').value = Object.toJSON(this.images);
|
19 |
+
this.updateState(file);
|
20 |
+
this.container.setHasChanges();
|
21 |
+
}
|
22 |
+
/* fill saved data in db to form */
|
23 |
+
Product.Gallery.prototype.updateVisualisation = function(file) {
|
24 |
+
|
25 |
+
var image = this.getImageByFile(file);
|
26 |
+
|
27 |
+
if(image.html != undefined){
|
28 |
+
|
29 |
+
this.getFileElement(file, 'cell-label #image-html').value = image.html;
|
30 |
+
}
|
31 |
+
if(image.link != undefined){
|
32 |
+
this.getFileElement(file, 'cell-label #image-link').value = image.link;
|
33 |
+
}
|
34 |
+
this.getFileElement(file, 'cell-label #image-label').value = image.label;
|
35 |
+
|
36 |
+
this.getFileElement(file, 'cell-position input').value = image.position;
|
37 |
+
this.getFileElement(file, 'cell-remove input').checked = (image.removed == 1);
|
38 |
+
this.getFileElement(file, 'cell-disable input').checked = (image.disabled == 1);
|
39 |
+
$H(this.imageTypes)
|
40 |
+
.each(
|
41 |
+
function(pair) {
|
42 |
+
if (this.imagesValues[pair.key] == file) {
|
43 |
+
this.getFileElement(file,
|
44 |
+
'cell-' + pair.key + ' input').checked = true;
|
45 |
+
}
|
46 |
+
}.bind(this));
|
47 |
+
this.updateState(file);
|
48 |
+
}
|
49 |
+
/* Product.Gallery.prototype.createHtmlRow = function(image) {
|
50 |
+
|
51 |
+
var index = 500;
|
52 |
+
html : [];
|
53 |
+
this.html[index].label = 'lllll';
|
54 |
+
this.html[index].file = '/s/p/sparkle-candle.940x280.hq_74.gif.tmp';
|
55 |
+
this.html[index].url = 'http:\/\/127.0.0.1\/magento1702-2\/media\/tmp\/catalog\/product\/s\/p\/sparkle-candle.940x280.hq_74.gif';
|
56 |
+
this.html[index].position = 11;
|
57 |
+
this.html[index].removed = 0;
|
58 |
+
this.html[index].disabled = 0;
|
59 |
+
var htmlObj = Object.toJSON(this.html);
|
60 |
+
|
61 |
+
var vars = Object.clone(htmlObj);
|
62 |
+
vars.id = this.prepareId(image.file);
|
63 |
+
var html = this.template.evaluate(vars);
|
64 |
+
Element.insert(this.getElement('list'), {
|
65 |
+
bottom :html
|
66 |
+
});
|
67 |
+
|
68 |
+
$(vars.id).select('input[type="radio"]').each(function(radio) {
|
69 |
+
radio.observe('change', this.onChangeRadio);
|
70 |
+
}.bind(this));
|
71 |
+
} */
|
72 |
+
</script>
|
73 |
+
<?php
|
74 |
+
/**
|
75 |
+
* Template for block Mage_Adminhtml_Block_Catalog_Product_Helper_Form_Gallery_Content
|
76 |
+
*/
|
77 |
+
?>
|
78 |
+
<?php
|
79 |
+
$_block = $this;
|
80 |
+
/* @var $_block Mage_Adminhtml_Block_Catalog_Product_Helper_Form_Gallery_Content */
|
81 |
+
?>
|
82 |
+
<div id="<?php echo $_block->getHtmlId() ?>" >
|
83 |
+
<ul class="messages">
|
84 |
+
<li class="notice-msg">
|
85 |
+
<ul>
|
86 |
+
<li>
|
87 |
+
<?php echo Mage::helper('bannernext')->__('Image type and information need to be specified for each store view.'); ?>
|
88 |
+
</li>
|
89 |
+
</ul>
|
90 |
+
</li>
|
91 |
+
</ul>
|
92 |
+
<div class="grid">
|
93 |
+
<table cellspacing="0" class="data border" id="<?php echo $_block->getHtmlId() ?>_grid" width="100%">
|
94 |
+
<col width="1" />
|
95 |
+
<col />
|
96 |
+
<col width="70" />
|
97 |
+
|
98 |
+
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
99 |
+
<col style="display:none;"/>
|
100 |
+
<?php endforeach; ?>
|
101 |
+
|
102 |
+
<col width="70" />
|
103 |
+
<col width="70" />
|
104 |
+
<thead>
|
105 |
+
<tr class="headings">
|
106 |
+
<th><?php echo Mage::helper('bannernext')->__('Image') ?></th>
|
107 |
+
<th><?php echo Mage::helper('bannernext')->__('Label') ?></th>
|
108 |
+
<th><?php echo Mage::helper('bannernext')->__('Sort Order') ?></th>
|
109 |
+
|
110 |
+
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
111 |
+
<th style="display:none;"><?php echo $type['label'] ?></th>
|
112 |
+
<?php endforeach; ?>
|
113 |
+
|
114 |
+
<th><?php echo Mage::helper('bannernext')->__('Exclude') ?></th>
|
115 |
+
<th class="last"><?php echo Mage::helper('bannernext')->__('Remove') ?></th>
|
116 |
+
</tr>
|
117 |
+
</thead>
|
118 |
+
<tbody id="<?php echo $_block->getHtmlId() ?>_list">
|
119 |
+
<tr id="<?php echo $_block->getHtmlId() ?>_template" class="template no-display">
|
120 |
+
<td class="cell-image"><div class="place-holder" onmouseover="<?php echo $_block->getJsObjectName(); ?>.loadImage('__file__')"><span><?php echo Mage::helper('bannernext')->__('Roll Over for preview') ?></span></div><img src="<?php echo $this->getSkinUrl('images/spacer.gif')?>" width="100" style="display:none;" alt="" /></td>
|
121 |
+
<td class="cell-label">
|
122 |
+
<table>
|
123 |
+
<tr>
|
124 |
+
<td>Label
|
125 |
+
<input id="image-label" type="text" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> class="input-text" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" />
|
126 |
+
</td>
|
127 |
+
</tr>
|
128 |
+
<tr>
|
129 |
+
<td>Link
|
130 |
+
<input id="image-link" type="text" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> class="input-text" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" />
|
131 |
+
</td>
|
132 |
+
</tr>
|
133 |
+
<tr>
|
134 |
+
<td>HTML
|
135 |
+
<?php
|
136 |
+
$disabled = false;
|
137 |
+
$editor = Mage::getSingleton('core/layout')
|
138 |
+
->createBlock('adminhtml/widget_button', '', array(
|
139 |
+
'label' => Mage::helper('catalog')->__('WYSIWYG Editor'),
|
140 |
+
'type' => 'button',
|
141 |
+
'disabled' => $disabled,
|
142 |
+
'class' => ($disabled) ? 'disabled' : '',
|
143 |
+
'onclick' => 'catalogWysiwygEditor.open(\''.Mage::helper('adminhtml')->getUrl('adminhtml/catalog_product/wysiwyg').'\', \'__id__\')'
|
144 |
+
))->toHtml();
|
145 |
+
$html = $editor . ' ' . $html;
|
146 |
+
?>
|
147 |
+
<?php echo $html;?>
|
148 |
+
<textarea id="__id__" rows=6 cols=140 <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> class="textarea" ></textarea>
|
149 |
+
</td>
|
150 |
+
</tr>
|
151 |
+
</table>
|
152 |
+
|
153 |
+
|
154 |
+
</td>
|
155 |
+
<td class="cell-position"><input type="text" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> class="input-text validate-number" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
156 |
+
|
157 |
+
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
158 |
+
<td class="cell-<?php echo $typeId ?> a-center" style="display:none;">
|
159 |
+
<input <?php if($_block->getElement()->getAttributeReadonly($typeId)) :?> disabled="disabled" <?php endif;?> type="radio" name="<?php echo $type['field'] ?>" onclick="<?php echo $_block->getJsObjectName(); ?>.setProductImages('__file__')" value="__file__" />
|
160 |
+
</td>
|
161 |
+
<?php endforeach; ?>
|
162 |
+
|
163 |
+
<td class="cell-disable a-center"><input type="checkbox" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> onclick="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
164 |
+
<td class="cell-remove a-center last"><input type="checkbox" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> onclick="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
165 |
+
</tr>
|
166 |
+
<?php if($_block->hasUseDefault()): ?>
|
167 |
+
<tr id="<?php echo $_block->getHtmlId() ?>_default">
|
168 |
+
<td><?php echo Mage::helper('bannernext')->__('Use Default Value') ?></td>
|
169 |
+
<td> </td>
|
170 |
+
<td> </td>
|
171 |
+
<?php foreach ($_block->getMediaAttributes() as $_attribute): ?>
|
172 |
+
<td class="a-center">
|
173 |
+
<?php if($_block->getElement()->canDisplayUseDefault($_attribute)): ?>
|
174 |
+
<input class="default-checkbox" name="use_default[]" type="checkbox" <?php if($_block->getElement()->getAttributeReadonly($_attribute->getAttributeCode())):?> disabled="disabled" <?php endif;?> onclick="<?php echo $_block->getJsObjectName(); ?>.updateUseDefault()"
|
175 |
+
<?php if($_block->getElement()->usedDefault($_attribute)): ?>checked<?php endif; ?> value="<?php echo $_attribute->getAttributeCode() ?>" />
|
176 |
+
<?php endif ?>
|
177 |
+
</td>
|
178 |
+
<?php endforeach; ?>
|
179 |
+
<td> </td>
|
180 |
+
<td class="last"> </td>
|
181 |
+
</tr>
|
182 |
+
<?php endif ?>
|
183 |
+
<tr id="<?php echo $_block->getHtmlId() ?>-image-0" style="display:none;">
|
184 |
+
<td class="cell-image"><?php echo Mage::helper('bannernext')->__('No image') ?></td>
|
185 |
+
<td class="cell-label"><input type="hidden" /> </td>
|
186 |
+
<td class="cell-position"><input type="hidden" /> </td>
|
187 |
+
|
188 |
+
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
189 |
+
<td class="cell-<?php echo $typeId ?> a-center" style="display:none;">
|
190 |
+
<input type="radio" <?php if($_block->getElement()->getAttributeReadonly($typeId)) :?> disabled="disabled" <?php endif;?> name="<?php echo $type['field'] ?>" onclick="<?php echo $_block->getJsObjectName(); ?>.setProductImages('no_selection')" value="no_selection" />
|
191 |
+
</td>
|
192 |
+
<?php endforeach; ?>
|
193 |
+
|
194 |
+
<td class="cell-disable"><input type="hidden" /> </td>
|
195 |
+
<td class="cell-remove last"><input type="hidden" /> </td>
|
196 |
+
</tr>
|
197 |
+
</tbody>
|
198 |
+
<?php if (!$_block->getElement()->getReadonly()):?>
|
199 |
+
<tfoot>
|
200 |
+
<tr>
|
201 |
+
<td colspan="100" class="last" style="padding:8px">
|
202 |
+
<?php echo $_block->getUploaderHtml() ?>
|
203 |
+
</td>
|
204 |
+
</tr>
|
205 |
+
</tfoot>
|
206 |
+
<?php endif;?>
|
207 |
+
</table>
|
208 |
+
</div>
|
209 |
+
</div>
|
210 |
+
|
211 |
+
<input type="hidden" id="<?php echo $_block->getHtmlId() ?>_save" name="<?php echo $_block->getElement()->getName() ?>[images]" value="<?php echo $_block->htmlEscape($_block->getImagesJson()) ?>" />
|
212 |
+
<input type="hidden" id="<?php echo $_block->getHtmlId() ?>_save_image" name="<?php echo $_block->getElement()->getName() ?>[values]" value="<?php echo $_block->htmlEscape($_block->getImagesValuesJson()) ?>" />
|
213 |
+
<script type="text/javascript">
|
214 |
+
//<![CDATA[
|
215 |
+
|
216 |
+
var <?php echo $_block->getJsObjectName(); ?> = new Product.Gallery('<?php echo $_block->getHtmlId() ?>',
|
217 |
+
<?php if ($_block->getElement()->getReadonly()):?>null<?php else:?><?php echo $_block->getUploader()->getJsObjectName() ?><?php endif;?>,
|
218 |
+
<?php echo $_block->getImageTypesJson() ?>);
|
219 |
+
//]]>
|
220 |
+
</script>
|
221 |
+
|
222 |
+
|
223 |
+
<script type="text/javascript">
|
224 |
+
//<![CDATA[
|
225 |
+
|
226 |
+
var catalogWysiwygEditor = {
|
227 |
+
overlayShowEffectOptions : null,
|
228 |
+
overlayHideEffectOptions : null,
|
229 |
+
open : function(editorUrl, elementId) {
|
230 |
+
if (editorUrl && elementId) {
|
231 |
+
new Ajax.Request(editorUrl, {
|
232 |
+
parameters: {
|
233 |
+
element_id: elementId+'_editor',
|
234 |
+
store_id: '<?php echo $this->getStoreId() ?>',
|
235 |
+
},
|
236 |
+
onSuccess: function(transport) {
|
237 |
+
try {
|
238 |
+
this.openDialogWindow(transport.responseText, elementId);
|
239 |
+
} catch(e) {
|
240 |
+
alert(e.message);
|
241 |
+
}
|
242 |
+
}.bind(this)
|
243 |
+
});
|
244 |
+
}
|
245 |
+
},
|
246 |
+
openDialogWindow : function(content, elementId) {
|
247 |
+
this.overlayShowEffectOptions = Windows.overlayShowEffectOptions;
|
248 |
+
this.overlayHideEffectOptions = Windows.overlayHideEffectOptions;
|
249 |
+
Windows.overlayShowEffectOptions = {duration:0};
|
250 |
+
Windows.overlayHideEffectOptions = {duration:0};
|
251 |
+
|
252 |
+
Dialog.confirm(content, {
|
253 |
+
draggable:true,
|
254 |
+
resizable:true,
|
255 |
+
closable:true,
|
256 |
+
className:"magento",
|
257 |
+
windowClassName:"popup-window",
|
258 |
+
title:'WYSIWYG Editor',
|
259 |
+
width:950,
|
260 |
+
height:555,
|
261 |
+
zIndex:1000,
|
262 |
+
recenterAuto:false,
|
263 |
+
hideEffect:Element.hide,
|
264 |
+
showEffect:Element.show,
|
265 |
+
id:"catalog-wysiwyg-editor",
|
266 |
+
buttonClass:"form-button",
|
267 |
+
okLabel:"Submit",
|
268 |
+
ok: this.okDialogWindow.bind(this),
|
269 |
+
cancel: this.closeDialogWindow.bind(this),
|
270 |
+
onClose: this.closeDialogWindow.bind(this),
|
271 |
+
firedElementId: elementId
|
272 |
+
});
|
273 |
+
|
274 |
+
content.evalScripts.bind(content).defer();
|
275 |
+
|
276 |
+
$(elementId+'_editor').value = $(elementId).value;
|
277 |
+
},
|
278 |
+
okDialogWindow : function(dialogWindow) {
|
279 |
+
if (dialogWindow.options.firedElementId) {
|
280 |
+
wysiwygObj = eval('wysiwyg'+dialogWindow.options.firedElementId+'_editor');
|
281 |
+
wysiwygObj.turnOff();
|
282 |
+
if (tinyMCE.get(wysiwygObj.id)) {
|
283 |
+
$(dialogWindow.options.firedElementId).value = tinyMCE.get(wysiwygObj.id).getContent();
|
284 |
+
} else {
|
285 |
+
if ($(dialogWindow.options.firedElementId+'_editor')) {
|
286 |
+
console.log($(dialogWindow.options.firedElementId).value);
|
287 |
+
$(dialogWindow.options.firedElementId).value = $(dialogWindow.options.firedElementId+'_editor').value;
|
288 |
+
}
|
289 |
+
}
|
290 |
+
}
|
291 |
+
this.closeDialogWindow(dialogWindow);
|
292 |
+
},
|
293 |
+
closeDialogWindow : function(dialogWindow) {
|
294 |
+
// remove form validation event after closing editor to prevent errors during save main form
|
295 |
+
if (typeof varienGlobalEvents != undefined && editorFormValidationHandler) {
|
296 |
+
varienGlobalEvents.removeEventHandler('formSubmit', editorFormValidationHandler);
|
297 |
+
}
|
298 |
+
|
299 |
+
//IE fix - blocked form fields after closing
|
300 |
+
$(dialogWindow.options.firedElementId).focus();
|
301 |
+
|
302 |
+
//destroy the instance of editor
|
303 |
+
wysiwygObj = eval('wysiwyg'+dialogWindow.options.firedElementId+'_editor');
|
304 |
+
if (tinyMCE.get(wysiwygObj.id)) {
|
305 |
+
tinyMCE.execCommand('mceRemoveControl', true, wysiwygObj.id);
|
306 |
+
}
|
307 |
+
|
308 |
+
dialogWindow.close();
|
309 |
+
Windows.overlayShowEffectOptions = this.overlayShowEffectOptions;
|
310 |
+
Windows.overlayHideEffectOptions = this.overlayHideEffectOptions;
|
311 |
+
}
|
312 |
+
};
|
313 |
+
|
314 |
+
//]]>
|
315 |
+
</script>
|
app/design/adminhtml/default/default/template/bannernext/edit/tab/gallery.phtml
ADDED
@@ -0,0 +1,212 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script>
|
2 |
+
/* to update section after image upload */
|
3 |
+
Product.Gallery.prototype.updateImage = function(file) {
|
4 |
+
|
5 |
+
var index = this.getIndexByFile(file);
|
6 |
+
//alert(this.getFileElement(file, 'cell-label #image-html').value);
|
7 |
+
//if(this.getFileElement(file, 'cell-label #image-html').value != 'undefined'){
|
8 |
+
this.images[index].html = this.getFileElement(file, 'cell-label #image-html').value;
|
9 |
+
//}
|
10 |
+
//if(this.getFileElement(file, 'cell-label #image-link').value != 'undefined')
|
11 |
+
this.images[index].link = this.getFileElement(file, 'cell-label #image-link').value;
|
12 |
+
//}
|
13 |
+
this.images[index].label = this.getFileElement(file, 'cell-label #image-label').value;
|
14 |
+
|
15 |
+
this.images[index].position = this.getFileElement(file,'cell-position input').value;
|
16 |
+
this.images[index].removed = (this.getFileElement(file,'cell-remove input').checked ? 1 : 0);
|
17 |
+
this.images[index].disabled = (this.getFileElement(file,'cell-disable input').checked ? 1 : 0);
|
18 |
+
this.getElement('save').value = Object.toJSON(this.images);
|
19 |
+
this.updateState(file);
|
20 |
+
this.container.setHasChanges();
|
21 |
+
}
|
22 |
+
/* fill saved data in db to form */
|
23 |
+
Product.Gallery.prototype.updateVisualisation = function(file) {
|
24 |
+
|
25 |
+
var image = this.getImageByFile(file);
|
26 |
+
|
27 |
+
if(image.html != undefined){
|
28 |
+
this.getFileElement(file, 'cell-label #image-html').value = image.html;
|
29 |
+
}
|
30 |
+
if(image.link != undefined){
|
31 |
+
this.getFileElement(file, 'cell-label #image-link').value = image.link;
|
32 |
+
}
|
33 |
+
this.getFileElement(file, 'cell-label #image-label').value = image.label;
|
34 |
+
|
35 |
+
this.getFileElement(file, 'cell-position input').value = image.position;
|
36 |
+
this.getFileElement(file, 'cell-remove input').checked = (image.removed == 1);
|
37 |
+
this.getFileElement(file, 'cell-disable input').checked = (image.disabled == 1);
|
38 |
+
$H(this.imageTypes)
|
39 |
+
.each(
|
40 |
+
function(pair) {
|
41 |
+
if (this.imagesValues[pair.key] == file) {
|
42 |
+
this.getFileElement(file,
|
43 |
+
'cell-' + pair.key + ' input').checked = true;
|
44 |
+
}
|
45 |
+
}.bind(this));
|
46 |
+
this.updateState(file);
|
47 |
+
}
|
48 |
+
/* Product.Gallery.prototype.createHtmlRow = function(image) {
|
49 |
+
|
50 |
+
var index = 500;
|
51 |
+
html : [];
|
52 |
+
this.html[index].label = 'lllll';
|
53 |
+
this.html[index].file = '/s/p/sparkle-candle.940x280.hq_74.gif.tmp';
|
54 |
+
this.html[index].url = 'http:\/\/127.0.0.1\/magento1702-2\/media\/tmp\/catalog\/product\/s\/p\/sparkle-candle.940x280.hq_74.gif';
|
55 |
+
this.html[index].position = 11;
|
56 |
+
this.html[index].removed = 0;
|
57 |
+
this.html[index].disabled = 0;
|
58 |
+
var htmlObj = Object.toJSON(this.html);
|
59 |
+
|
60 |
+
var vars = Object.clone(htmlObj);
|
61 |
+
vars.id = this.prepareId(image.file);
|
62 |
+
var html = this.template.evaluate(vars);
|
63 |
+
Element.insert(this.getElement('list'), {
|
64 |
+
bottom :html
|
65 |
+
});
|
66 |
+
|
67 |
+
$(vars.id).select('input[type="radio"]').each(function(radio) {
|
68 |
+
radio.observe('change', this.onChangeRadio);
|
69 |
+
}.bind(this));
|
70 |
+
} */
|
71 |
+
</script>
|
72 |
+
<?php
|
73 |
+
/**
|
74 |
+
* Template for block Mage_Adminhtml_Block_Catalog_Product_Helper_Form_Gallery_Content
|
75 |
+
*/
|
76 |
+
?>
|
77 |
+
<?php
|
78 |
+
$_block = $this;
|
79 |
+
/* @var $_block Mage_Adminhtml_Block_Catalog_Product_Helper_Form_Gallery_Content */
|
80 |
+
?>
|
81 |
+
<div id="<?php echo $_block->getHtmlId() ?>" >
|
82 |
+
<?php /*<ul class="messages">
|
83 |
+
<li class="notice-msg">
|
84 |
+
<ul>
|
85 |
+
<li>
|
86 |
+
<?php echo Mage::helper('bannernext')->__('Image type and information need to be specified for each store view.'); ?>
|
87 |
+
</li>
|
88 |
+
</ul>
|
89 |
+
</li>
|
90 |
+
</ul>*/?>
|
91 |
+
<div class="grid">
|
92 |
+
<table cellspacing="0" class="data border" id="<?php echo $_block->getHtmlId() ?>_grid" width="100%">
|
93 |
+
<col width="1" />
|
94 |
+
<col />
|
95 |
+
<col width="70" />
|
96 |
+
|
97 |
+
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
98 |
+
<col style="display:none;"/>
|
99 |
+
<?php endforeach; ?>
|
100 |
+
|
101 |
+
<col width="70" />
|
102 |
+
<col width="70" />
|
103 |
+
<thead>
|
104 |
+
<tr class="headings">
|
105 |
+
<th><?php echo Mage::helper('bannernext')->__('Image') ?></th>
|
106 |
+
<th><?php echo Mage::helper('bannernext')->__('Label') ?></th>
|
107 |
+
<th><?php echo Mage::helper('bannernext')->__('Sort Order') ?></th>
|
108 |
+
|
109 |
+
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
110 |
+
<th style="display:none;"><?php echo $type['label'] ?></th>
|
111 |
+
<?php endforeach; ?>
|
112 |
+
|
113 |
+
<th><?php echo Mage::helper('bannernext')->__('Exclude') ?></th>
|
114 |
+
<th class="last"><?php echo Mage::helper('bannernext')->__('Remove') ?></th>
|
115 |
+
</tr>
|
116 |
+
</thead>
|
117 |
+
<tbody id="<?php echo $_block->getHtmlId() ?>_list">
|
118 |
+
<tr id="<?php echo $_block->getHtmlId() ?>_template" class="template no-display">
|
119 |
+
<td class="cell-image"><div class="place-holder" onmouseover="<?php echo $_block->getJsObjectName(); ?>.loadImage('__file__')"><span><?php echo Mage::helper('bannernext')->__('Roll Over for preview') ?></span></div><img src="<?php echo $this->getSkinUrl('images/spacer.gif')?>" width="100" style="display:none;" alt="" /></td>
|
120 |
+
<td class="cell-label">
|
121 |
+
<table>
|
122 |
+
<tr>
|
123 |
+
<td><?php echo $this->__('Label');?>
|
124 |
+
<input id="image-label" type="text" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> class="input-text" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" />
|
125 |
+
</td>
|
126 |
+
</tr>
|
127 |
+
<tr>
|
128 |
+
<td><?php echo $this->__('Link');?>
|
129 |
+
<input id="image-link" type="text" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> class="input-text" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" />
|
130 |
+
</td>
|
131 |
+
</tr>
|
132 |
+
<tr>
|
133 |
+
<td><?php echo $this->__('HTML');?>
|
134 |
+
<textarea id="image-html" rows=6 cols=140 <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> class="textarea" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" ></textarea>
|
135 |
+
</td>
|
136 |
+
</tr>
|
137 |
+
</table>
|
138 |
+
|
139 |
+
|
140 |
+
</td>
|
141 |
+
<td class="cell-position"><input type="text" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> class="input-text validate-number" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
142 |
+
|
143 |
+
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
144 |
+
<td class="cell-<?php echo $typeId ?> a-center" style="display:none;">
|
145 |
+
<input <?php if($_block->getElement()->getAttributeReadonly($typeId)) :?> disabled="disabled" <?php endif;?> type="radio" name="<?php echo $type['field'] ?>" onclick="<?php echo $_block->getJsObjectName(); ?>.setProductImages('__file__')" value="__file__" />
|
146 |
+
</td>
|
147 |
+
<?php endforeach; ?>
|
148 |
+
|
149 |
+
<td class="cell-disable a-center"><input type="checkbox" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> onclick="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
150 |
+
<td class="cell-remove a-center last"><input type="checkbox" <?php if($_block->getElement()->getReadonly()):?> disabled="disabled"<?php endif;?> onclick="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
151 |
+
</tr>
|
152 |
+
<?php if($_block->hasUseDefault()): ?>
|
153 |
+
<tr id="<?php echo $_block->getHtmlId() ?>_default">
|
154 |
+
<td><?php echo Mage::helper('bannernext')->__('Use Default Value') ?></td>
|
155 |
+
<td> </td>
|
156 |
+
<td> </td>
|
157 |
+
<?php foreach ($_block->getMediaAttributes() as $_attribute): ?>
|
158 |
+
<td class="a-center">
|
159 |
+
<?php if($_block->getElement()->canDisplayUseDefault($_attribute)): ?>
|
160 |
+
<input class="default-checkbox" name="use_default[]" type="checkbox" <?php if($_block->getElement()->getAttributeReadonly($_attribute->getAttributeCode())):?> disabled="disabled" <?php endif;?> onclick="<?php echo $_block->getJsObjectName(); ?>.updateUseDefault()"
|
161 |
+
<?php if($_block->getElement()->usedDefault($_attribute)): ?>checked<?php endif; ?> value="<?php echo $_attribute->getAttributeCode() ?>" />
|
162 |
+
<?php endif ?>
|
163 |
+
</td>
|
164 |
+
<?php endforeach; ?>
|
165 |
+
<td> </td>
|
166 |
+
<td class="last"> </td>
|
167 |
+
</tr>
|
168 |
+
<?php endif ?>
|
169 |
+
<tr id="<?php echo $_block->getHtmlId() ?>-image-0" style="display:none;">
|
170 |
+
<td class="cell-image"><?php echo Mage::helper('bannernext')->__('No image') ?></td>
|
171 |
+
<td class="cell-label"><input type="hidden" /> </td>
|
172 |
+
<td class="cell-position"><input type="hidden" /> </td>
|
173 |
+
|
174 |
+
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
175 |
+
<td class="cell-<?php echo $typeId ?> a-center" style="display:none;">
|
176 |
+
<input type="radio" <?php if($_block->getElement()->getAttributeReadonly($typeId)) :?> disabled="disabled" <?php endif;?> name="<?php echo $type['field'] ?>" onclick="<?php echo $_block->getJsObjectName(); ?>.setProductImages('no_selection')" value="no_selection" />
|
177 |
+
</td>
|
178 |
+
<?php endforeach; ?>
|
179 |
+
|
180 |
+
<td class="cell-disable"><input type="hidden" /> </td>
|
181 |
+
<td class="cell-remove last"><input type="hidden" /> </td>
|
182 |
+
</tr>
|
183 |
+
</tbody>
|
184 |
+
<?php if (!$_block->getElement()->getReadonly()):?>
|
185 |
+
<tfoot>
|
186 |
+
<tr>
|
187 |
+
<td colspan="100" class="last" style="padding:8px">
|
188 |
+
<?php echo $_block->getUploaderHtml() ?>
|
189 |
+
</td>
|
190 |
+
</tr>
|
191 |
+
<tr>
|
192 |
+
<td colspan="100" class="last" style="padding:8px">
|
193 |
+
<b><?php echo $this->__('Note:-');?></b>
|
194 |
+
<?php echo $this->__('Image Link Url : Please enter url with http and www');?>
|
195 |
+
</td>
|
196 |
+
</tr>
|
197 |
+
</tfoot>
|
198 |
+
<?php endif;?>
|
199 |
+
</table>
|
200 |
+
</div>
|
201 |
+
</div>
|
202 |
+
|
203 |
+
<input type="hidden" id="<?php echo $_block->getHtmlId() ?>_save" name="<?php echo $_block->getElement()->getName() ?>[images]" value="<?php echo $_block->htmlEscape($_block->getImagesJson()) ?>" />
|
204 |
+
<input type="hidden" id="<?php echo $_block->getHtmlId() ?>_save_image" name="<?php echo $_block->getElement()->getName() ?>[values]" value="<?php echo $_block->htmlEscape($_block->getImagesValuesJson()) ?>" />
|
205 |
+
<script type="text/javascript">
|
206 |
+
//<![CDATA[
|
207 |
+
|
208 |
+
var <?php echo $_block->getJsObjectName(); ?> = new Product.Gallery('<?php echo $_block->getHtmlId() ?>',
|
209 |
+
<?php if ($_block->getElement()->getReadonly()):?>null<?php else:?><?php echo $_block->getUploader()->getJsObjectName() ?><?php endif;?>,
|
210 |
+
<?php echo $_block->getImageTypesJson() ?>);
|
211 |
+
//]]>
|
212 |
+
</script>
|
app/design/adminhtml/default/default/template/bannernext/edit/tab/image.phtml
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package default_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Template for block Mage_Adminhtml_Block_Catalog_Product_Helper_Form_Gallery_Content
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<?php
|
33 |
+
$_block = $this;
|
34 |
+
/* @var $_block Mage_Adminhtml_Block_Catalog_Product_Helper_Form_Gallery_Content */
|
35 |
+
?>
|
36 |
+
<div id="<?php echo $_block->getHtmlId() ?>" >
|
37 |
+
<ul class="messages">
|
38 |
+
<li class="notice-msg">
|
39 |
+
<ul>
|
40 |
+
<li>
|
41 |
+
<?php echo Mage::helper('catalog')->__('Image type and information need to be specified for each store view.'); ?>
|
42 |
+
</li>
|
43 |
+
</ul>
|
44 |
+
</li>
|
45 |
+
</ul>
|
46 |
+
<div class="grid">
|
47 |
+
<table cellspacing="0" class="data border" id="<?php echo $_block->getHtmlId() ?>_grid" width="100%">
|
48 |
+
<col width="1" />
|
49 |
+
<col />
|
50 |
+
<col width="70" />
|
51 |
+
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
52 |
+
<col />
|
53 |
+
<?php endforeach; ?>
|
54 |
+
<col width="70" />
|
55 |
+
<col width="70" />
|
56 |
+
<thead>
|
57 |
+
<tr class="headings">
|
58 |
+
<th><?php echo Mage::helper('catalog')->__('Image') ?></th>
|
59 |
+
<th><?php echo Mage::helper('catalog')->__('Label') ?></th>
|
60 |
+
<th><?php echo Mage::helper('catalog')->__('Sort Order') ?></th>
|
61 |
+
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
62 |
+
<th><?php echo $type['label'] ?></th>
|
63 |
+
<?php endforeach; ?>
|
64 |
+
<th><?php echo Mage::helper('catalog')->__('Exclude') ?></th>
|
65 |
+
<th class="last"><?php echo Mage::helper('catalog')->__('Remove') ?></th>
|
66 |
+
</tr>
|
67 |
+
</thead>
|
68 |
+
<tbody id="<?php echo $_block->getHtmlId() ?>_list">
|
69 |
+
<tr id="<?php echo $_block->getHtmlId() ?>_template" class="template no-display">
|
70 |
+
<td class="cell-image"><div class="place-holder" onmouseover="<?php echo $_block->getJsObjectName(); ?>.loadImage('__file__')"><span><?php echo Mage::helper('catalog')->__('Roll Over for preview') ?></span></div><img src="<?php echo $this->getSkinUrl('images/spacer.gif')?>" width="100" style="display:none;" alt="" /></td>
|
71 |
+
<td class="cell-label"><input type="text" <?php if(1==2):?> disabled="disabled"<?php endif;?> class="input-text" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
72 |
+
<td class="cell-position"><input type="text" <?php if(1==2):?> disabled="disabled"<?php endif;?> class="input-text validate-number" onkeyup="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" onchange="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
73 |
+
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
74 |
+
<td class="cell-<?php echo $typeId ?> a-center"><input <?php if(1==2) :?> disabled="disabled" <?php endif;?> type="radio" name="<?php echo $type['field'] ?>" onclick="<?php echo $_block->getJsObjectName(); ?>.setProductImages('__file__')" value="__file__" /></td>
|
75 |
+
<?php endforeach; ?>
|
76 |
+
<td class="cell-disable a-center"><input type="checkbox" <?php if(1==2):?> disabled="disabled"<?php endif;?> onclick="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
77 |
+
<td class="cell-remove a-center last"><input type="checkbox" <?php if(1==2):?> disabled="disabled"<?php endif;?> onclick="<?php echo $_block->getJsObjectName(); ?>.updateImage('__file__')" /></td>
|
78 |
+
</tr>
|
79 |
+
|
80 |
+
<?php if($_block->hasUseDefault()): ?>
|
81 |
+
<tr id="<?php echo $_block->getHtmlId() ?>_default">
|
82 |
+
<td><?php echo Mage::helper('catalog')->__('Use Default Value') ?></td>
|
83 |
+
<td> </td>
|
84 |
+
<td> </td>
|
85 |
+
<?php foreach ($_block->getMediaAttributes() as $_attribute): ?>
|
86 |
+
<td class="a-center">
|
87 |
+
<?php if($_block->getElement()->canDisplayUseDefault($_attribute)): ?>
|
88 |
+
<input class="default-checkbox" name="use_default[]" type="checkbox" <?php if(1==2):?> disabled="disabled" <?php endif;?> onclick="<?php echo $_block->getJsObjectName(); ?>.updateUseDefault()"
|
89 |
+
<?php if($_block->getElement()->usedDefault($_attribute)): ?>checked<?php endif; ?> value="<?php echo $_attribute->getAttributeCode() ?>" />
|
90 |
+
<?php endif ?>
|
91 |
+
</td>
|
92 |
+
<?php endforeach; ?>
|
93 |
+
<td> </td>
|
94 |
+
<td class="last"> </td>
|
95 |
+
</tr>
|
96 |
+
<?php endif ?> <tr id="<?php echo $_block->getHtmlId() ?>-image-0">
|
97 |
+
<td class="cell-image"><?php echo Mage::helper('catalog')->__('No image') ?></td>
|
98 |
+
<td class="cell-label"><input type="hidden" /> </td>
|
99 |
+
<td class="cell-position"><input type="hidden" /> </td>
|
100 |
+
<?php foreach ($_block->getImageTypes() as $typeId=>$type): ?>
|
101 |
+
<td class="cell-<?php echo $typeId ?> a-center"><input type="radio" <?php if(1==2) :?> disabled="disabled" <?php endif;?> name="<?php echo $type['field'] ?>" onclick="<?php echo $_block->getJsObjectName(); ?>.setProductImages('no_selection')" value="no_selection" /></td>
|
102 |
+
<?php endforeach; ?>
|
103 |
+
<td class="cell-disable"><input type="hidden" /> </td>
|
104 |
+
<td class="cell-remove last"><input type="hidden" /> </td>
|
105 |
+
</tr>
|
106 |
+
</tbody>
|
107 |
+
<?php //if (!1==2):?>
|
108 |
+
<tfoot>
|
109 |
+
<tr>
|
110 |
+
<td colspan="100" class="last" style="padding:8px">
|
111 |
+
<?php echo $_block->getUploaderHtml() ?>
|
112 |
+
</td>
|
113 |
+
</tr>
|
114 |
+
</tfoot>
|
115 |
+
<?php //endif;?>
|
116 |
+
</table>
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
+
<input type="hidden" id="<?php echo $_block->getHtmlId() ?>_save" name="<?php echo $_block->getElement()->getName() ?>[images]" value="<?php echo $_block->htmlEscape($_block->getImagesJson()) ?>" />
|
120 |
+
<input type="hidden" id="<?php echo $_block->getHtmlId() ?>_save_image" name="<?php echo $_block->getElement()->getName() ?>[values]" value="<?php echo $_block->htmlEscape($_block->getImagesValuesJson()) ?>" />
|
121 |
+
<script type="text/javascript">
|
122 |
+
//<![CDATA[
|
123 |
+
var <?php echo $_block->getJsObjectName(); ?> = new Product.Gallery('<?php echo $_block->getHtmlId() ?>', <?php if (1==2):?>null<?php else:?><?php echo $_block->getUploader()->getJsObjectName() ?><?php endif;?>, <?php echo $_block->getImageTypesJson() ?>);
|
124 |
+
//]]>
|
125 |
+
</script>
|
app/design/adminhtml/default/default/template/bannernext/uploader.phtml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php echo $this->helper('adminhtml/media_js')->includeScript('my_ibanner/adminhtml/jsuploader.js') ?>
|
2 |
+
<?php echo $this->helper('adminhtml/media_js')->includeScript('my_ibanner/adminhtml/uploader.js') ?>
|
3 |
+
|
4 |
+
<div id="<?php echo $this->getHtmlId() ?>" class="uploader">
|
5 |
+
<div class="buttons" style="position:relative;float:right;">
|
6 |
+
<div class="no-display" id="<?php echo $this->getHtmlId() ?>-uploadBlockTemplate"><div id="uploadBlock-{{id}}">
|
7 |
+
<form action="{{url}}" enctype="multipart/form-data" encoding="multipart/form-data" method="post" target="uploadBlockIframe-{{id}}">
|
8 |
+
<input type="file" name="image"/>
|
9 |
+
<input type="hidden" name="Filename"/>
|
10 |
+
<input type="hidden" name="form_key" value="{{formKey}}"/>
|
11 |
+
<input type="hidden" name="Upload" value="Submit Query"/>
|
12 |
+
</form>
|
13 |
+
<iframe name="uploadBlockIframe-{{id}}" style="display:none;"></iframe>
|
14 |
+
</div></div>
|
15 |
+
<div id="uploadBlocks" style="float:left;margin-right: 0.5em;"></div>
|
16 |
+
<?php echo $this->getUploadButtonHtml() ?>
|
17 |
+
</div>
|
18 |
+
<div class="clear"></div>
|
19 |
+
<div class="no-display" id="<?php echo $this->getHtmlId() ?>-template">
|
20 |
+
<div id="{{id}}" class="file-row">
|
21 |
+
<span class="file-info">{{name}}</span>
|
22 |
+
<span class="delete-button"><?php echo $this->getDeleteButtonHtml() ?></span>
|
23 |
+
<span class="progress-text"></span>
|
24 |
+
<div class="clear"></div>
|
25 |
+
</div>
|
26 |
+
</div>
|
27 |
+
</div>
|
28 |
+
<script type="text/javascript">
|
29 |
+
//<![CDATA[
|
30 |
+
<?php echo $this->getJsObjectName() ?> = new JsUploader('<?php echo $this->getHtmlId() ?>', <?php echo $this->getConfigJson() ?>);
|
31 |
+
//]]>
|
32 |
+
</script>
|
app/design/frontend/default/default/layout/bannernext.xml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<block type="bannernext/banner" name="bannernext_content_top" template="bannernext/banner.phtml" before="-" >
|
5 |
+
<action method="setPosition"><name>CONTENT_TOP</name></action>
|
6 |
+
</block>
|
7 |
+
<block type="bannernext/banner" name="bannernext_content_bottom" template="bannernext/banner.phtml" after="-" >
|
8 |
+
<action method="setPosition"><name>CONTENT_BOTTOM</name></action>
|
9 |
+
</block>
|
10 |
+
</default>
|
11 |
+
<cms_page>
|
12 |
+
<reference name="content">
|
13 |
+
<action method="insert" ifconfig="bannernext/general/active"><block>bannernext_content_top</block></action>
|
14 |
+
<action method="append" ifconfig="bannernext/general/active"><block>bannernext_content_bottom</block></action>
|
15 |
+
</reference>
|
16 |
+
</cms_page>
|
17 |
+
<catalog_category_default>
|
18 |
+
<reference name="content">
|
19 |
+
<action method="insert" ifconfig="bannernext/general/active"><block>bannernext_content_top</block></action>
|
20 |
+
<action method="append" ifconfig="bannernext/general/active"><block>bannernext_content_bottom</block><after>-</after></action>
|
21 |
+
</reference>
|
22 |
+
</catalog_category_default>
|
23 |
+
<catalog_category_layered>
|
24 |
+
<reference name="content">
|
25 |
+
<action method="insert" ifconfig="bannernext/general/active"><block>bannernext_content_top</block></action>
|
26 |
+
<action method="append" ifconfig="bannernext/general/active"><block>bannernext_content_bottom</block></action>
|
27 |
+
</reference>
|
28 |
+
</catalog_category_layered>
|
29 |
+
</layout>
|
app/design/frontend/default/default/template/bannernext/banner.phtml
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!--
|
2 |
+
http://www.skitter-slider.net/documentation
|
3 |
+
http://magento.stackexchange.com/questions/3418/conditionally-show-hide-blocks-in-layout-xml
|
4 |
+
http://www.magentocommerce.com/boards/viewthread/78982/
|
5 |
+
-->
|
6 |
+
<?php $bannerCollection = $this->_getCollection(); ?>
|
7 |
+
<?php if (!Mage::registry('js_loded') && ($bannerCollection->count())>0 ): ?>
|
8 |
+
<?php Mage::register('js_loded',1); ?>
|
9 |
+
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('bannernext/skitter_slideshow/css/skitter.styles.css');?>" media="all" />
|
10 |
+
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('bannernext/skitter_slideshow/css/highlight.black.css');?>" media="all" />
|
11 |
+
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('bannernext/skitter_slideshow/css/sexy-bookmarks-style.css');?>" media="all" />
|
12 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('bannernext/skitter_slideshow/js/jquery.easing.1.3.js') ?>"></script>
|
13 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('bannernext/skitter_slideshow/js/jquery.animate-colors-min.js') ?>"></script>
|
14 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('bannernext/skitter_slideshow/js/jquery.skitter.min.js') ?>"></script>
|
15 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('bannernext/skitter_slideshow/js/highlight.js') ?>"></script>
|
16 |
+
<?php if($this->helper('bannernext')->isResponsiveBannerEnabled()):?>
|
17 |
+
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('bannernext/skitter_slideshow/css/skitter.styles.resonsive.css');?>" media="all" />
|
18 |
+
<?php endif;?>
|
19 |
+
<script>
|
20 |
+
jQuery(document).ready(function() {
|
21 |
+
var options = {};
|
22 |
+
if (document.location.search) {
|
23 |
+
var array = document.location.search.split('=');
|
24 |
+
var param = array[0].replace('?', '');
|
25 |
+
var value = array[1];
|
26 |
+
if (param == 'animation') {
|
27 |
+
options.animation = value;
|
28 |
+
}
|
29 |
+
else if (param == 'type_navigation') {
|
30 |
+
if (value == 'dots_preview') {
|
31 |
+
jQuery('.border_box').css({'marginBottom': '40px'});
|
32 |
+
options['dots'] = true;
|
33 |
+
options['preview'] = true;
|
34 |
+
}
|
35 |
+
else {
|
36 |
+
options[value] = true;
|
37 |
+
if (value == 'dots') jQuery('.border_box').css({'marginBottom': '40px'});
|
38 |
+
}
|
39 |
+
}
|
40 |
+
}
|
41 |
+
});
|
42 |
+
</script>
|
43 |
+
<?php endif;?>
|
44 |
+
<?php if(($bannerCollection->count())>0) : ?>
|
45 |
+
<?php $imageCollection = $this->_getBannerImageCollection($bannerCollection); ?>
|
46 |
+
<?php foreach ($imageCollection as $item) : ?>
|
47 |
+
<?php
|
48 |
+
$height = $item['height'];
|
49 |
+
$width = $item['width'];
|
50 |
+
$content = $item['content'];
|
51 |
+
$advanced_settings = trim($item['advanced_settings']);
|
52 |
+
$images = json_decode($content,true);
|
53 |
+
?>
|
54 |
+
<?php if(isset($images) && !empty($images) && count($images)>0) : ?>
|
55 |
+
<script>
|
56 |
+
jQuery(document).ready(function() {
|
57 |
+
jQuery('#image-slider-<?php echo $item['position'].'-'.$item['bannernext_id'];?>').css({width:<?php echo $width;?>, height: <?php echo $height;?>});
|
58 |
+
jQuery('#image-slider-<?php echo $item['position'].'-'.$item['bannernext_id'];?>').skitter(
|
59 |
+
<?php if(empty($advanced_settings)):?>
|
60 |
+
{numbers_align: 'right',animation:'fade',interval: 1000,dots: true, navigation: false}
|
61 |
+
<?php else: ?>
|
62 |
+
<?php echo $advanced_settings;?>
|
63 |
+
<?php endif; ?>
|
64 |
+
);
|
65 |
+
});
|
66 |
+
</script>
|
67 |
+
<div class="border_box">
|
68 |
+
<div class="box_skitter box_skitter_large" id="image-slider-<?php echo $item['position'].'-'.$item['bannernext_id'];?>">
|
69 |
+
<ul>
|
70 |
+
<?php foreach($images as $image): ?>
|
71 |
+
<li>
|
72 |
+
<a <?php if(!empty($image['link'])): ?> href="<?php echo $image['link'];?>"<?php else:?> href="#" <?php endif;?> >
|
73 |
+
<img src="<?php echo $this->helper('bannernext')->resizeImg($image['file'],$width,$height);?>" <?php if(!empty($image['label'])): ?> alt="<?php echo $image['label'];?>"<?php endif?>/>
|
74 |
+
</a>
|
75 |
+
<?php if(!empty($image['html'])): ?>
|
76 |
+
<div class="label_text">
|
77 |
+
<p><?php echo $image['html']?></p>
|
78 |
+
</div>
|
79 |
+
<?php endif;?>
|
80 |
+
</li>
|
81 |
+
<?php endforeach;?>
|
82 |
+
</ul>
|
83 |
+
</div>
|
84 |
+
</div>
|
85 |
+
<div style="clear:both;"></div>
|
86 |
+
<?php endif;?>
|
87 |
+
<?php endforeach;?>
|
88 |
+
<?php endif; ?>
|
app/etc/modules/NextBits_BannerNext.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<NextBits_BannerNext>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>local</codePool>
|
7 |
+
</NextBits_BannerNext>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/locale/en_US/NextBits_BannerNext.csv
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"NextBits BannerNext","NextBits BannerNext"
|
2 |
+
"BannerNext","BannerNext"
|
3 |
+
"Manage Banners","Manage Banners"
|
4 |
+
"Add Banner","Add Banner"
|
5 |
+
"Banner Manager","Banner Manager"
|
6 |
+
"ID","ID"
|
7 |
+
"Title","Title"
|
8 |
+
"Status","Status"
|
9 |
+
"Action","Action"
|
10 |
+
"Edit","Edit"
|
11 |
+
"Delete","Delete"
|
12 |
+
"Are you sure?","Are you sure?"
|
13 |
+
"Enabled","Enabled"
|
14 |
+
"Disabled","Disabled"
|
15 |
+
"Change status","Change status"
|
16 |
+
"Save Banner","Save Banner"
|
17 |
+
"Delete Banner","Delete Banner"
|
18 |
+
"Banner Information","Banner Information"
|
19 |
+
"General Information","General Information"
|
20 |
+
"Title","Title"
|
21 |
+
"Position","Position"
|
22 |
+
"Height","Height"
|
23 |
+
"Width","Width"
|
24 |
+
"Is Active","Is Active"
|
25 |
+
"Yes","Yes"
|
26 |
+
"No","No"
|
27 |
+
"Advanced Settings","Advanced Settings"
|
28 |
+
"Banner Images","Banner Images"
|
29 |
+
"Image","Image"
|
30 |
+
"Label","Label"
|
31 |
+
"Sort Order","Sort Order"
|
32 |
+
"Exclude","Exclude"
|
33 |
+
"Remove","Remove"
|
34 |
+
"Roll Over for preview","Roll Over for preview"
|
35 |
+
"No image","No image"
|
36 |
+
"Display on Pages","Display on Pages"
|
37 |
+
"Banner Pages","Banner Pages"
|
38 |
+
"Visible In","Visible In"
|
39 |
+
"Display on Categories","Display on Categories"
|
40 |
+
"Banner Categories","Banner Categories"
|
41 |
+
"Edit Banner '%s'","Edit Banner '%s'"
|
42 |
+
"Widget","Widget"
|
43 |
+
"Link","Link"
|
44 |
+
"HTML","HTML"
|
45 |
+
"Note","Note"
|
46 |
+
"Image Link Url : Please enter url with http and www","Image Link Url : Please enter url with http and www"
|
js/bannernext/jquery/jquery-1.8.1.min.js
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
/*! jQuery v@1.8.1 jquery.com | jquery.org/license */
|
2 |
+
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._data(a),g=p._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d<e;d++)p.event.add(b,c,h[c][d])}g.data&&(g.data=p.extend({},g.data))}function bE(a,b){var c;if(b.nodeType!==1)return;b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?(b.parentNode&&(b.outerHTML=a.outerHTML),p.support.html5Clone&&a.innerHTML&&!p.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):c==="input"&&bv.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text),b.removeAttribute(p.expando)}function bF(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bG(a){bv.test(a.type)&&(a.defaultChecked=a.checked)}function bY(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=bW.length;while(e--){b=bW[e]+c;if(b in a)return b}return d}function bZ(a,b){return a=b||a,p.css(a,"display")==="none"||!p.contains(a.ownerDocument,a)}function b$(a,b){var c,d,e=[],f=0,g=a.length;for(;f<g;f++){c=a[f];if(!c.style)continue;e[f]=p._data(c,"olddisplay"),b?(!e[f]&&c.style.display==="none"&&(c.style.display=""),c.style.display===""&&bZ(c)&&(e[f]=p._data(c,"olddisplay",cc(c.nodeName)))):(d=bH(c,"display"),!e[f]&&d!=="none"&&p._data(c,"olddisplay",d))}for(f=0;f<g;f++){c=a[f];if(!c.style)continue;if(!b||c.style.display==="none"||c.style.display==="")c.style.display=b?e[f]||"":"none"}return a}function b_(a,b,c){var d=bP.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function ca(a,b,c,d){var e=c===(d?"border":"content")?4:b==="width"?1:0,f=0;for(;e<4;e+=2)c==="margin"&&(f+=p.css(a,c+bV[e],!0)),d?(c==="content"&&(f-=parseFloat(bH(a,"padding"+bV[e]))||0),c!=="margin"&&(f-=parseFloat(bH(a,"border"+bV[e]+"Width"))||0)):(f+=parseFloat(bH(a,"padding"+bV[e]))||0,c!=="padding"&&(f+=parseFloat(bH(a,"border"+bV[e]+"Width"))||0));return f}function cb(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=!0,f=p.support.boxSizing&&p.css(a,"boxSizing")==="border-box";if(d<=0||d==null){d=bH(a,b);if(d<0||d==null)d=a.style[b];if(bQ.test(d))return d;e=f&&(p.support.boxSizingReliable||d===a.style[b]),d=parseFloat(d)||0}return d+ca(a,b,c||(f?"border":"content"),e)+"px"}function cc(a){if(bS[a])return bS[a];var b=p("<"+a+">").appendTo(e.body),c=b.css("display");b.remove();if(c==="none"||c===""){bI=e.body.appendChild(bI||p.extend(e.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!bJ||!bI.createElement)bJ=(bI.contentWindow||bI.contentDocument).document,bJ.write("<!doctype html><html><body>"),bJ.close();b=bJ.body.appendChild(bJ.createElement(a)),c=bH(b,"display"),e.body.removeChild(bI)}return bS[a]=c,c}function ci(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||ce.test(a)?d(a,e):ci(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&p.type(b)==="object")for(e in b)ci(a+"["+e+"]",b[e],c,d);else d(a,b)}function cz(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(s),h=0,i=g.length;if(p.isFunction(c))for(;h<i;h++)d=g[h],f=/^\+/.test(d),f&&(d=d.substr(1)||"*"),e=a[d]=a[d]||[],e[f?"unshift":"push"](c)}}function cA(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h,i=a[f],j=0,k=i?i.length:0,l=a===cv;for(;j<k&&(l||!h);j++)h=i[j](c,d,e),typeof h=="string"&&(!l||g[h]?h=b:(c.dataTypes.unshift(h),h=cA(a,c,d,e,h,g)));return(l||!h)&&!g["*"]&&(h=cA(a,c,d,e,"*",g)),h}function cB(a,c){var d,e,f=p.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((f[d]?a:e||(e={}))[d]=c[d]);e&&p.extend(!0,a,e)}function cC(a,c,d){var e,f,g,h,i=a.contents,j=a.dataTypes,k=a.responseFields;for(f in k)f in d&&(c[k[f]]=d[f]);while(j[0]==="*")j.shift(),e===b&&(e=a.mimeType||c.getResponseHeader("content-type"));if(e)for(f in i)if(i[f]&&i[f].test(e)){j.unshift(f);break}if(j[0]in d)g=j[0];else{for(f in d){if(!j[0]||a.converters[f+" "+j[0]]){g=f;break}h||(h=f)}g=g||h}if(g)return g!==j[0]&&j.unshift(g),d[g]}function cD(a,b){var c,d,e,f,g=a.dataTypes.slice(),h=g[0],i={},j=0;a.dataFilter&&(b=a.dataFilter(b,a.dataType));if(g[1])for(c in a.converters)i[c.toLowerCase()]=a.converters[c];for(;e=g[++j];)if(e!=="*"){if(h!=="*"&&h!==e){c=i[h+" "+e]||i["* "+e];if(!c)for(d in i){f=d.split(" ");if(f[1]===e){c=i[h+" "+f[0]]||i["* "+f[0]];if(c){c===!0?c=i[d]:i[d]!==!0&&(e=f[0],g.splice(j--,0,e));break}}}if(c!==!0)if(c&&a["throws"])b=c(b);else try{b=c(b)}catch(k){return{state:"parsererror",error:c?k:"No conversion from "+h+" to "+e}}}h=e}return{state:"success",data:b}}function cL(){try{return new a.XMLHttpRequest}catch(b){}}function cM(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function cU(){return setTimeout(function(){cN=b},0),cN=p.now()}function cV(a,b){p.each(b,function(b,c){var d=(cT[b]||[]).concat(cT["*"]),e=0,f=d.length;for(;e<f;e++)if(d[e].call(a,b,c))return})}function cW(a,b,c){var d,e=0,f=0,g=cS.length,h=p.Deferred().always(function(){delete i.elem}),i=function(){var b=cN||cU(),c=Math.max(0,j.startTime+j.duration-b),d=1-(c/j.duration||0),e=0,f=j.tweens.length;for(;e<f;e++)j.tweens[e].run(d);return h.notifyWith(a,[j,d,c]),d<1&&f?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:p.extend({},b),opts:p.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:cN||cU(),duration:c.duration,tweens:[],createTween:function(b,c,d){var e=p.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(e),e},stop:function(b){var c=0,d=b?j.tweens.length:0;for(;c<d;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;cX(k,j.opts.specialEasing);for(;e<g;e++){d=cS[e].call(j,a,k,j.opts);if(d)return d}return cV(j,k),p.isFunction(j.opts.start)&&j.opts.start.call(a,j),p.fx.timer(p.extend(i,{anim:j,queue:j.opts.queue,elem:a})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function cX(a,b){var c,d,e,f,g;for(c in a){d=p.camelCase(c),e=b[d],f=a[c],p.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=p.cssHooks[d];if(g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}}function cY(a,b,c){var d,e,f,g,h,i,j,k,l=this,m=a.style,n={},o=[],q=a.nodeType&&bZ(a);c.queue||(j=p._queueHooks(a,"fx"),j.unqueued==null&&(j.unqueued=0,k=j.empty.fire,j.empty.fire=function(){j.unqueued||k()}),j.unqueued++,l.always(function(){l.always(function(){j.unqueued--,p.queue(a,"fx").length||j.empty.fire()})})),a.nodeType===1&&("height"in b||"width"in b)&&(c.overflow=[m.overflow,m.overflowX,m.overflowY],p.css(a,"display")==="inline"&&p.css(a,"float")==="none"&&(!p.support.inlineBlockNeedsLayout||cc(a.nodeName)==="inline"?m.display="inline-block":m.zoom=1)),c.overflow&&(m.overflow="hidden",p.support.shrinkWrapBlocks||l.done(function(){m.overflow=c.overflow[0],m.overflowX=c.overflow[1],m.overflowY=c.overflow[2]}));for(d in b){f=b[d];if(cP.exec(f)){delete b[d];if(f===(q?"hide":"show"))continue;o.push(d)}}g=o.length;if(g){h=p._data(a,"fxshow")||p._data(a,"fxshow",{}),q?p(a).show():l.done(function(){p(a).hide()}),l.done(function(){var b;p.removeData(a,"fxshow",!0);for(b in n)p.style(a,b,n[b])});for(d=0;d<g;d++)e=o[d],i=l.createTween(e,q?h[e]:0),n[e]=h[e]||p.style(a,e),e in h||(h[e]=i.start,q&&(i.end=i.start,i.start=e==="width"||e==="height"?1:0))}}function cZ(a,b,c,d,e){return new cZ.prototype.init(a,b,c,d,e)}function c$(a,b){var c,d={height:a},e=0;b=b?1:0;for(;e<4;e+=2-b)c=bV[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function da(a){return p.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}var c,d,e=a.document,f=a.location,g=a.navigator,h=a.jQuery,i=a.$,j=Array.prototype.push,k=Array.prototype.slice,l=Array.prototype.indexOf,m=Object.prototype.toString,n=Object.prototype.hasOwnProperty,o=String.prototype.trim,p=function(a,b){return new p.fn.init(a,b,c)},q=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,r=/\S/,s=/\s+/,t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,u=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,y=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,z=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,A=/^-ms-/,B=/-([\da-z])/gi,C=function(a,b){return(b+"").toUpperCase()},D=function(){e.addEventListener?(e.removeEventListener("DOMContentLoaded",D,!1),p.ready()):e.readyState==="complete"&&(e.detachEvent("onreadystatechange",D),p.ready())},E={};p.fn=p.prototype={constructor:p,init:function(a,c,d){var f,g,h,i;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?f=[null,a,null]:f=u.exec(a);if(f&&(f[1]||!c)){if(f[1])return c=c instanceof p?c[0]:c,i=c&&c.nodeType?c.ownerDocument||c:e,a=p.parseHTML(f[1],i,!0),v.test(f[1])&&p.isPlainObject(c)&&this.attr.call(a,c,!0),p.merge(this,a);g=e.getElementById(f[2]);if(g&&g.parentNode){if(g.id!==f[2])return d.find(a);this.length=1,this[0]=g}return this.context=e,this.selector=a,this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}return p.isFunction(a)?d.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),p.makeArray(a,this))},selector:"",jquery:"1.8.1",length:0,size:function(){return this.length},toArray:function(){return k.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=p.merge(this.constructor(),a);return d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return p.each(this,a,b)},ready:function(a){return p.ready.promise().done(a),this},eq:function(a){return a=+a,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(k.apply(this,arguments),"slice",k.call(arguments).join(","))},map:function(a){return this.pushStack(p.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},p.fn.init.prototype=p.fn,p.extend=p.fn.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;typeof h=="boolean"&&(k=h,h=arguments[1]||{},i=2),typeof h!="object"&&!p.isFunction(h)&&(h={}),j===i&&(h=this,--i);for(;i<j;i++)if((a=arguments[i])!=null)for(c in a){d=h[c],e=a[c];if(h===e)continue;k&&e&&(p.isPlainObject(e)||(f=p.isArray(e)))?(f?(f=!1,g=d&&p.isArray(d)?d:[]):g=d&&p.isPlainObject(d)?d:{},h[c]=p.extend(k,g,e)):e!==b&&(h[c]=e)}return h},p.extend({noConflict:function(b){return a.$===p&&(a.$=i),b&&a.jQuery===p&&(a.jQuery=h),p},isReady:!1,readyWait:1,holdReady:function(a){a?p.readyWait++:p.ready(!0)},ready:function(a){if(a===!0?--p.readyWait:p.isReady)return;if(!e.body)return setTimeout(p.ready,1);p.isReady=!0;if(a!==!0&&--p.readyWait>0)return;d.resolveWith(e,[p]),p.fn.trigger&&p(e).trigger("ready").off("ready")},isFunction:function(a){return p.type(a)==="function"},isArray:Array.isArray||function(a){return p.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):E[m.call(a)]||"object"},isPlainObject:function(a){if(!a||p.type(a)!=="object"||a.nodeType||p.isWindow(a))return!1;try{if(a.constructor&&!n.call(a,"constructor")&&!n.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||n.call(a,d)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},error:function(a){throw new Error(a)},parseHTML:function(a,b,c){var d;return!a||typeof a!="string"?null:(typeof b=="boolean"&&(c=b,b=0),b=b||e,(d=v.exec(a))?[b.createElement(d[1])]:(d=p.buildFragment([a],b,c?null:[]),p.merge([],(d.cacheable?p.clone(d.fragment):d.fragment).childNodes)))},parseJSON:function(b){if(!b||typeof b!="string")return null;b=p.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(w.test(b.replace(y,"@").replace(z,"]").replace(x,"")))return(new Function("return "+b))();p.error("Invalid JSON: "+b)},parseXML:function(c){var d,e;if(!c||typeof c!="string")return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&r.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(A,"ms-").replace(B,C)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||p.isFunction(a);if(d){if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;f<g;)if(c.apply(a[f++],d)===!1)break}else if(h){for(e in a)if(c.call(a[e],e,a[e])===!1)break}else for(;f<g;)if(c.call(a[f],f,a[f++])===!1)break;return a},trim:o&&!o.call(" ")?function(a){return a==null?"":o.call(a)}:function(a){return a==null?"":a.toString().replace(t,"")},makeArray:function(a,b){var c,d=b||[];return a!=null&&(c=p.type(a),a.length==null||c==="string"||c==="function"||c==="regexp"||p.isWindow(a)?j.call(d,a):p.merge(d,a)),d},inArray:function(a,b,c){var d;if(b){if(l)return l.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=c.length,e=a.length,f=0;if(typeof d=="number")for(;f<d;f++)a[e++]=c[f];else while(c[f]!==b)a[e++]=c[f++];return a.length=e,a},grep:function(a,b,c){var d,e=[],f=0,g=a.length;c=!!c;for(;f<g;f++)d=!!b(a[f],f),c!==d&&e.push(a[f]);return e},map:function(a,c,d){var e,f,g=[],h=0,i=a.length,j=a instanceof p||i!==b&&typeof i=="number"&&(i>0&&a[0]&&a[i-1]||i===0||p.isArray(a));if(j)for(;h<i;h++)e=c(a[h],h,d),e!=null&&(g[g.length]=e);else for(f in a)e=c(a[f],f,d),e!=null&&(g[g.length]=e);return g.concat.apply([],g)},guid:1,proxy:function(a,c){var d,e,f;return typeof c=="string"&&(d=a[c],c=a,a=d),p.isFunction(a)?(e=k.call(arguments,2),f=function(){return a.apply(c,e.concat(k.call(arguments)))},f.guid=a.guid=a.guid||f.guid||p.guid++,f):b},access:function(a,c,d,e,f,g,h){var i,j=d==null,k=0,l=a.length;if(d&&typeof d=="object"){for(k in d)p.access(a,c,k,d[k],1,g,e);f=1}else if(e!==b){i=h===b&&p.isFunction(e),j&&(i?(i=c,c=function(a,b,c){return i.call(p(a),c)}):(c.call(a,e),c=null));if(c)for(;k<l;k++)c(a[k],d,i?e.call(a[k],k,c(a[k],d)):e,h);f=1}return f?a:j?c.call(a):l?c(a[0],d):g},now:function(){return(new Date).getTime()}}),p.ready.promise=function(b){if(!d){d=p.Deferred();if(e.readyState==="complete")setTimeout(p.ready,1);else if(e.addEventListener)e.addEventListener("DOMContentLoaded",D,!1),a.addEventListener("load",p.ready,!1);else{e.attachEvent("onreadystatechange",D),a.attachEvent("onload",p.ready);var c=!1;try{c=a.frameElement==null&&e.documentElement}catch(f){}c&&c.doScroll&&function g(){if(!p.isReady){try{c.doScroll("left")}catch(a){return setTimeout(g,50)}p.ready()}}()}}return d.promise(b)},p.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){E["[object "+b+"]"]=b.toLowerCase()}),c=p(e);var F={};p.Callbacks=function(a){a=typeof a=="string"?F[a]||G(a):p.extend({},a);var c,d,e,f,g,h,i=[],j=!a.once&&[],k=function(b){c=a.memory&&b,d=!0,h=f||0,f=0,g=i.length,e=!0;for(;i&&h<g;h++)if(i[h].apply(b[0],b[1])===!1&&a.stopOnFalse){c=!1;break}e=!1,i&&(j?j.length&&k(j.shift()):c?i=[]:l.disable())},l={add:function(){if(i){var b=i.length;(function d(b){p.each(b,function(b,c){var e=p.type(c);e==="function"&&(!a.unique||!l.has(c))?i.push(c):c&&c.length&&e!=="string"&&d(c)})})(arguments),e?g=i.length:c&&(f=b,k(c))}return this},remove:function(){return i&&p.each(arguments,function(a,b){var c;while((c=p.inArray(b,i,c))>-1)i.splice(c,1),e&&(c<=g&&g--,c<=h&&h--)}),this},has:function(a){return p.inArray(a,i)>-1},empty:function(){return i=[],this},disable:function(){return i=j=c=b,this},disabled:function(){return!i},lock:function(){return j=b,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return b=b||[],b=[a,b.slice?b.slice():b],i&&(!d||j)&&(e?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},p.extend({Deferred:function(a){var b=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return p.Deferred(function(c){p.each(b,function(b,d){var f=d[0],g=a[b];e[d[1]](p.isFunction(g)?function(){var a=g.apply(this,arguments);a&&p.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f+"With"](this===e?c:this,[a])}:c[f])}),a=null}).promise()},promise:function(a){return typeof a=="object"?p.extend(a,d):d}},e={};return d.pipe=d.then,p.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock),e[f[0]]=g.fire,e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=k.call(arguments),d=c.length,e=d!==1||a&&p.isFunction(a.promise)?d:0,f=e===1?a:p.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?k.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1){h=new Array(d),i=new Array(d),j=new Array(d);for(;b<d;b++)c[b]&&p.isFunction(c[b].promise)?c[b].promise().done(g(b,j,c)).fail(f.reject).progress(g(b,i,h)):--e}return e||f.resolveWith(j,c),f.promise()}}),p.support=function(){var b,c,d,f,g,h,i,j,k,l,m,n=e.createElement("div");n.setAttribute("className","t"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",c=n.getElementsByTagName("*"),d=n.getElementsByTagName("a")[0],d.style.cssText="top:1px;float:left;opacity:.5";if(!c||!c.length||!d)return{};f=e.createElement("select"),g=f.appendChild(e.createElement("option")),h=n.getElementsByTagName("input")[0],b={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.5/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:n.className!=="t",enctype:!!e.createElement("form").enctype,html5Clone:e.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:e.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},h.checked=!0,b.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,b.optDisabled=!g.disabled;try{delete n.test}catch(o){b.deleteExpando=!1}!n.addEventListener&&n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick",m=function(){b.noCloneEvent=!1}),n.cloneNode(!0).fireEvent("onclick"),n.detachEvent("onclick",m)),h=e.createElement("input"),h.value="t",h.setAttribute("type","radio"),b.radioValue=h.value==="t",h.setAttribute("checked","checked"),h.setAttribute("name","t"),n.appendChild(h),i=e.createDocumentFragment(),i.appendChild(n.lastChild),b.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=h.checked,i.removeChild(h),i.appendChild(n);if(n.attachEvent)for(k in{submit:!0,change:!0,focusin:!0})j="on"+k,l=j in n,l||(n.setAttribute(j,"return;"),l=typeof n[j]=="function"),b[k+"Bubbles"]=l;return p(function(){var c,d,f,g,h="padding:0;margin:0;border:0;display:block;overflow:hidden;",i=e.getElementsByTagName("body")[0];if(!i)return;c=e.createElement("div"),c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",i.insertBefore(c,i.firstChild),d=e.createElement("div"),c.appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",f=d.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",l=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",b.reliableHiddenOffsets=l&&f[0].offsetHeight===0,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.boxSizing=d.offsetWidth===4,b.doesNotIncludeMarginInBodyOffset=i.offsetTop!==1,a.getComputedStyle&&(b.pixelPosition=(a.getComputedStyle(d,null)||{}).top!=="1%",b.boxSizingReliable=(a.getComputedStyle(d,null)||{width:"4px"}).width==="4px",g=e.createElement("div"),g.style.cssText=d.style.cssText=h,g.style.marginRight=g.style.width="0",d.style.width="1px",d.appendChild(g),b.reliableMarginRight=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight)),typeof d.style.zoom!="undefined"&&(d.innerHTML="",d.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=d.offsetWidth===3,d.style.display="block",d.style.overflow="visible",d.innerHTML="<div></div>",d.firstChild.style.width="5px",b.shrinkWrapBlocks=d.offsetWidth!==3,c.style.zoom=1),i.removeChild(c),c=d=f=g=null}),i.removeChild(n),c=d=f=g=h=i=n=null,b}();var H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,I=/([A-Z])/g;p.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(p.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?p.cache[a[p.expando]]:a[p.expando],!!a&&!K(a)},data:function(a,c,d,e){if(!p.acceptData(a))return;var f,g,h=p.expando,i=typeof c=="string",j=a.nodeType,k=j?p.cache:a,l=j?a[h]:a[h]&&h;if((!l||!k[l]||!e&&!k[l].data)&&i&&d===b)return;l||(j?a[h]=l=p.deletedIds.pop()||++p.uuid:l=h),k[l]||(k[l]={},j||(k[l].toJSON=p.noop));if(typeof c=="object"||typeof c=="function")e?k[l]=p.extend(k[l],c):k[l].data=p.extend(k[l].data,c);return f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[p.camelCase(c)]=d),i?(g=f[c],g==null&&(g=f[p.camelCase(c)])):g=f,g},removeData:function(a,b,c){if(!p.acceptData(a))return;var d,e,f,g=a.nodeType,h=g?p.cache:a,i=g?a[p.expando]:p.expando;if(!h[i])return;if(b){d=c?h[i]:h[i].data;if(d){p.isArray(b)||(b in d?b=[b]:(b=p.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,f=b.length;e<f;e++)delete d[b[e]];if(!(c?K:p.isEmptyObject)(d))return}}if(!c){delete h[i].data;if(!K(h[i]))return}g?p.cleanData([a],!0):p.support.deleteExpando||h!=h.window?delete h[i]:h[i]=null},_data:function(a,b,c){return p.data(a,b,c,!0)},acceptData:function(a){var b=a.nodeName&&p.noData[a.nodeName.toLowerCase()];return!b||b!==!0&&a.getAttribute("classid")===b}}),p.fn.extend({data:function(a,c){var d,e,f,g,h,i=this[0],j=0,k=null;if(a===b){if(this.length){k=p.data(i);if(i.nodeType===1&&!p._data(i,"parsedAttrs")){f=i.attributes;for(h=f.length;j<h;j++)g=f[j].name,g.indexOf("data-")===0&&(g=p.camelCase(g.substring(5)),J(i,g,k[g]));p._data(i,"parsedAttrs",!0)}}return k}return typeof a=="object"?this.each(function(){p.data(this,a)}):(d=a.split(".",2),d[1]=d[1]?"."+d[1]:"",e=d[1]+"!",p.access(this,function(c){if(c===b)return k=this.triggerHandler("getData"+e,[d[0]]),k===b&&i&&(k=p.data(i,a),k=J(i,a,k)),k===b&&d[1]?this.data(d[0]):k;d[1]=c,this.each(function(){var b=p(this);b.triggerHandler("setData"+e,d),p.data(this,a,c),b.triggerHandler("changeData"+e,d)})},null,c,arguments.length>1,null,!1))},removeData:function(a){return this.each(function(){p.removeData(this,a)})}}),p.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=p._data(a,b),c&&(!d||p.isArray(c)?d=p._data(a,b,p.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=p.queue(a,b),d=c.length,e=c.shift(),f=p._queueHooks(a,b),g=function(){p.dequeue(a,b)};e==="inprogress"&&(e=c.shift(),d--),e&&(b==="fx"&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return p._data(a,c)||p._data(a,c,{empty:p.Callbacks("once memory").add(function(){p.removeData(a,b+"queue",!0),p.removeData(a,c,!0)})})}}),p.fn.extend({queue:function(a,c){var d=2;return typeof a!="string"&&(c=a,a="fx",d--),arguments.length<d?p.queue(this[0],a):c===b?this:this.each(function(){var b=p.queue(this,a,c);p._queueHooks(this,a),a==="fx"&&b[0]!=="inprogress"&&p.dequeue(this,a)})},dequeue:function(a){return this.each(function(){p.dequeue(this,a)})},delay:function(a,b){return a=p.fx?p.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){var d,e=1,f=p.Deferred(),g=this,h=this.length,i=function(){--e||f.resolveWith(g,[g])};typeof a!="string"&&(c=a,a=b),a=a||"fx";while(h--)d=p._data(g[h],a+"queueHooks"),d&&d.empty&&(e++,d.empty.add(i));return i(),f.promise(c)}});var L,M,N,O=/[\t\r\n]/g,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=p.support.getSetAttribute;p.fn.extend({attr:function(a,b){return p.access(this,p.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){p.removeAttr(this,a)})},prop:function(a,b){return p.access(this,p.prop,a,b,arguments.length>1)},removeProp:function(a){return a=p.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,f,g,h;if(p.isFunction(a))return this.each(function(b){p(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(s);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{f=" "+e.className+" ";for(g=0,h=b.length;g<h;g++)~f.indexOf(" "+b[g]+" ")||(f+=b[g]+" ");e.className=p.trim(f)}}}return this},removeClass:function(a){var c,d,e,f,g,h,i;if(p.isFunction(a))return this.each(function(b){p(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(s);for(h=0,i=this.length;h<i;h++){e=this[h];if(e.nodeType===1&&e.className){d=(" "+e.className+" ").replace(O," ");for(f=0,g=c.length;f<g;f++)while(d.indexOf(" "+c[f]+" ")>-1)d=d.replace(" "+c[f]+" "," ");e.className=a?p.trim(d):""}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return p.isFunction(a)?this.each(function(c){p(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var e,f=0,g=p(this),h=b,i=a.split(s);while(e=i[f++])h=d?h:!g.hasClass(e),g[h?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&p._data(this,"__className__",this.className),this.className=this.className||a===!1?"":p._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(O," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,f=this[0];if(!arguments.length){if(f)return c=p.valHooks[f.type]||p.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,typeof d=="string"?d.replace(P,""):d==null?"":d);return}return e=p.isFunction(a),this.each(function(d){var f,g=p(this);if(this.nodeType!==1)return;e?f=a.call(this,d,g.val()):f=a,f==null?f="":typeof f=="number"?f+="":p.isArray(f)&&(f=p.map(f,function(a){return a==null?"":a+""})),c=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,f,"value")===b)this.value=f})}}),p.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,f=a.selectedIndex,g=[],h=a.options,i=a.type==="select-one";if(f<0)return null;c=i?f:0,d=i?f+1:h.length;for(;c<d;c++){e=h[c];if(e.selected&&(p.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!p.nodeName(e.parentNode,"optgroup"))){b=p(e).val();if(i)return b;g.push(b)}}return i&&!g.length&&h.length?p(h[f]).val():g},set:function(a,b){var c=p.makeArray(b);return p(a).find("option").each(function(){this.selected=p.inArray(p(this).val(),c)>=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{},attr:function(a,c,d,e){var f,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2)return;if(e&&p.isFunction(p.fn[c]))return p(a)[c](d);if(typeof a.getAttribute=="undefined")return p.prop(a,c,d);h=i!==1||!p.isXMLDoc(a),h&&(c=c.toLowerCase(),g=p.attrHooks[c]||(T.test(c)?M:L));if(d!==b){if(d===null){p.removeAttr(a,c);return}return g&&"set"in g&&h&&(f=g.set(a,d,c))!==b?f:(a.setAttribute(c,""+d),d)}return g&&"get"in g&&h&&(f=g.get(a,c))!==null?f:(f=a.getAttribute(c),f===null?b:f)},removeAttr:function(a,b){var c,d,e,f,g=0;if(b&&a.nodeType===1){d=b.split(s);for(;g<d.length;g++)e=d[g],e&&(c=p.propFix[e]||e,f=T.test(e),f||p.attr(a,e,""),a.removeAttribute(U?e:c),f&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(Q.test(a.nodeName)&&a.parentNode)p.error("type property can't be changed");else if(!p.support.radioValue&&b==="radio"&&p.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}},value:{get:function(a,b){return L&&p.nodeName(a,"button")?L.get(a,b):b in a?a.value:null},set:function(a,b,c){if(L&&p.nodeName(a,"button"))return L.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,f,g,h=a.nodeType;if(!a||h===3||h===8||h===2)return;return g=h!==1||!p.isXMLDoc(a),g&&(c=p.propFix[c]||c,f=p.propHooks[c]),d!==b?f&&"set"in f&&(e=f.set(a,d,c))!==b?e:a[c]=d:f&&"get"in f&&(e=f.get(a,c))!==null?e:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):R.test(a.nodeName)||S.test(a.nodeName)&&a.href?0:b}}}}),M={get:function(a,c){var d,e=p.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;return b===!1?p.removeAttr(a,c):(d=p.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase())),c}},U||(N={name:!0,id:!0,coords:!0},L=p.valHooks.button={get:function(a,c){var d;return d=a.getAttributeNode(c),d&&(N[c]?d.value!=="":d.specified)?d.value:b},set:function(a,b,c){var d=a.getAttributeNode(c);return d||(d=e.createAttribute(c),a.setAttributeNode(d)),d.value=b+""}},p.each(["width","height"],function(a,b){p.attrHooks[b]=p.extend(p.attrHooks[b],{set:function(a,c){if(c==="")return a.setAttribute(b,"auto"),c}})}),p.attrHooks.contenteditable={get:L.get,set:function(a,b,c){b===""&&(b="false"),L.set(a,b,c)}}),p.support.hrefNormalized||p.each(["href","src","width","height"],function(a,c){p.attrHooks[c]=p.extend(p.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),p.support.style||(p.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),p.support.optSelected||(p.propHooks.selected=p.extend(p.propHooks.selected,{get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}})),p.support.enctype||(p.propFix.enctype="encoding"),p.support.checkOn||p.each(["radio","checkbox"],function(){p.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),p.each(["radio","checkbox"],function(){p.valHooks[this]=p.extend(p.valHooks[this],{set:function(a,b){if(p.isArray(b))return a.checked=p.inArray(p(a).val(),b)>=0}})});var V=/^(?:textarea|input|select)$/i,W=/^([^\.]*|)(?:\.(.+)|)$/,X=/(?:^|\s)hover(\.\S+|)\b/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=function(a){return p.event.special.hover?a:a.replace(X,"mouseenter$1 mouseleave$1")};p.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m,n,o,q,r;if(a.nodeType===3||a.nodeType===8||!c||!d||!(g=p._data(a)))return;d.handler&&(o=d,d=o.handler,f=o.selector),d.guid||(d.guid=p.guid++),i=g.events,i||(g.events=i={}),h=g.handle,h||(g.handle=h=function(a){return typeof p!="undefined"&&(!a||p.event.triggered!==a.type)?p.event.dispatch.apply(h.elem,arguments):b},h.elem=a),c=p.trim(_(c)).split(" ");for(j=0;j<c.length;j++){k=W.exec(c[j])||[],l=k[1],m=(k[2]||"").split(".").sort(),r=p.event.special[l]||{},l=(f?r.delegateType:r.bindType)||l,r=p.event.special[l]||{},n=p.extend({type:l,origType:k[1],data:e,handler:d,guid:d.guid,selector:f,namespace:m.join(".")},o),q=i[l];if(!q){q=i[l]=[],q.delegateCount=0;if(!r.setup||r.setup.call(a,e,m,h)===!1)a.addEventListener?a.addEventListener(l,h,!1):a.attachEvent&&a.attachEvent("on"+l,h)}r.add&&(r.add.call(a,n),n.handler.guid||(n.handler.guid=d.guid)),f?q.splice(q.delegateCount++,0,n):q.push(n),p.event.global[l]=!0}a=null},global:{},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,q,r=p.hasData(a)&&p._data(a);if(!r||!(m=r.events))return;b=p.trim(_(b||"")).split(" ");for(f=0;f<b.length;f++){g=W.exec(b[f])||[],h=i=g[1],j=g[2];if(!h){for(h in m)p.event.remove(a,h+b[f],c,d,!0);continue}n=p.event.special[h]||{},h=(d?n.delegateType:n.bindType)||h,o=m[h]||[],k=o.length,j=j?new RegExp("(^|\\.)"+j.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(l=0;l<o.length;l++)q=o[l],(e||i===q.origType)&&(!c||c.guid===q.guid)&&(!j||j.test(q.namespace))&&(!d||d===q.selector||d==="**"&&q.selector)&&(o.splice(l--,1),q.selector&&o.delegateCount--,n.remove&&n.remove.call(a,q));o.length===0&&k!==o.length&&((!n.teardown||n.teardown.call(a,j,r.handle)===!1)&&p.removeEvent(a,h,r.handle),delete m[h])}p.isEmptyObject(m)&&(delete r.handle,p.removeData(a,"events",!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,f,g){if(!f||f.nodeType!==3&&f.nodeType!==8){var h,i,j,k,l,m,n,o,q,r,s=c.type||c,t=[];if($.test(s+p.event.triggered))return;s.indexOf("!")>=0&&(s=s.slice(0,-1),i=!0),s.indexOf(".")>=0&&(t=s.split("."),s=t.shift(),t.sort());if((!f||p.event.customEvent[s])&&!p.event.global[s])return;c=typeof c=="object"?c[p.expando]?c:new p.Event(s,c):new p.Event(s),c.type=s,c.isTrigger=!0,c.exclusive=i,c.namespace=t.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,m=s.indexOf(":")<0?"on"+s:"";if(!f){h=p.cache;for(j in h)h[j].events&&h[j].events[s]&&p.event.trigger(c,d,h[j].handle.elem,!0);return}c.result=b,c.target||(c.target=f),d=d!=null?p.makeArray(d):[],d.unshift(c),n=p.event.special[s]||{};if(n.trigger&&n.trigger.apply(f,d)===!1)return;q=[[f,n.bindType||s]];if(!g&&!n.noBubble&&!p.isWindow(f)){r=n.delegateType||s,k=$.test(r+s)?f:f.parentNode;for(l=f;k;k=k.parentNode)q.push([k,r]),l=k;l===(f.ownerDocument||e)&&q.push([l.defaultView||l.parentWindow||a,r])}for(j=0;j<q.length&&!c.isPropagationStopped();j++)k=q[j][0],c.type=q[j][1],o=(p._data(k,"events")||{})[c.type]&&p._data(k,"handle"),o&&o.apply(k,d),o=m&&k[m],o&&p.acceptData(k)&&o.apply(k,d)===!1&&c.preventDefault();return c.type=s,!g&&!c.isDefaultPrevented()&&(!n._default||n._default.apply(f.ownerDocument,d)===!1)&&(s!=="click"||!p.nodeName(f,"a"))&&p.acceptData(f)&&m&&f[s]&&(s!=="focus"&&s!=="blur"||c.target.offsetWidth!==0)&&!p.isWindow(f)&&(l=f[m],l&&(f[m]=null),p.event.triggered=s,f[s](),p.event.triggered=b,l&&(f[m]=l)),c.result}return},dispatch:function(c){c=p.event.fix(c||a.event);var d,e,f,g,h,i,j,k,l,m,n=(p._data(this,"events")||{})[c.type]||[],o=n.delegateCount,q=[].slice.call(arguments),r=!c.exclusive&&!c.namespace,s=p.event.special[c.type]||{},t=[];q[0]=c,c.delegateTarget=this;if(s.preDispatch&&s.preDispatch.call(this,c)===!1)return;if(o&&(!c.button||c.type!=="click"))for(f=c.target;f!=this;f=f.parentNode||this)if(f.disabled!==!0||c.type!=="click"){h={},j=[];for(d=0;d<o;d++)k=n[d],l=k.selector,h[l]===b&&(h[l]=p(l,this).index(f)>=0),h[l]&&j.push(k);j.length&&t.push({elem:f,matches:j})}n.length>o&&t.push({elem:this,matches:n.slice(o)});for(d=0;d<t.length&&!c.isPropagationStopped();d++){i=t[d],c.currentTarget=i.elem;for(e=0;e<i.matches.length&&!c.isImmediatePropagationStopped();e++){k=i.matches[e];if(r||!c.namespace&&!k.namespace||c.namespace_re&&c.namespace_re.test(k.namespace))c.data=k.data,c.handleObj=k,g=((p.event.special[k.origType]||{}).handle||k.handler).apply(i.elem,q),g!==b&&(c.result=g,g===!1&&(c.preventDefault(),c.stopPropagation()))}}return s.postDispatch&&s.postDispatch.call(this,c),c.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,c){var d,f,g,h=c.button,i=c.fromElement;return a.pageX==null&&c.clientX!=null&&(d=a.target.ownerDocument||e,f=d.documentElement,g=d.body,a.pageX=c.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=c.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?c.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0),a}},fix:function(a){if(a[p.expando])return a;var b,c,d=a,f=p.event.fixHooks[a.type]||{},g=f.props?this.props.concat(f.props):this.props;a=p.Event(d);for(b=g.length;b;)c=g[--b],a[c]=d[c];return a.target||(a.target=d.srcElement||e),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,f.filter?f.filter(a,d):a},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){p.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=p.extend(new p.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?p.event.trigger(e,null,b):p.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},p.event.handle=p.event.dispatch,p.removeEvent=e.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]=="undefined"&&(a[d]=null),a.detachEvent(d,c))},p.Event=function(a,b){if(this instanceof p.Event)a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?bb:ba):this.type=a,b&&p.extend(this,b),this.timeStamp=a&&a.timeStamp||p.now(),this[p.expando]=!0;else return new p.Event(a,b)},p.Event.prototype={preventDefault:function(){this.isDefaultPrevented=bb;var a=this.originalEvent;if(!a)return;a.preventDefault?a.preventDefault():a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=bb;var a=this.originalEvent;if(!a)return;a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bb,this.stopPropagation()},isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba},p.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){p.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj,g=f.selector;if(!e||e!==d&&!p.contains(d,e))a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b;return c}}}),p.support.submitBubbles||(p.event.special.submit={setup:function(){if(p.nodeName(this,"form"))return!1;p.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=p.nodeName(c,"input")||p.nodeName(c,"button")?c.form:b;d&&!p._data(d,"_submit_attached")&&(p.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),p._data(d,"_submit_attached",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&p.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(p.nodeName(this,"form"))return!1;p.event.remove(this,"._submit")}}),p.support.changeBubbles||(p.event.special.change={setup:function(){if(V.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")p.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),p.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),p.event.simulate("change",this,a,!0)});return!1}p.event.add(this,"beforeactivate._change",function(a){var b=a.target;V.test(b.nodeName)&&!p._data(b,"_change_attached")&&(p.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&p.event.simulate("change",this.parentNode,a,!0)}),p._data(b,"_change_attached",!0))})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){return p.event.remove(this,"._change"),!V.test(this.nodeName)}}),p.support.focusinBubbles||p.each({focus:"focusin",blur:"focusout"},function(a,b){var c=0,d=function(a){p.event.simulate(b,a.target,p.event.fix(a),!0)};p.event.special[b]={setup:function(){c++===0&&e.addEventListener(a,d,!0)},teardown:function(){--c===0&&e.removeEventListener(a,d,!0)}}}),p.fn.extend({on:function(a,c,d,e,f){var g,h;if(typeof a=="object"){typeof c!="string"&&(d=d||c,c=b);for(h in a)this.on(h,c,d,a[h],f);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=ba;else if(!e)return this;return f===1&&(g=e,e=function(a){return p().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=p.guid++)),this.each(function(){p.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){var e,f;if(a&&a.preventDefault&&a.handleObj)return e=a.handleObj,p(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler),this;if(typeof a=="object"){for(f in a)this.off(f,c,a[f]);return this}if(c===!1||typeof c=="function")d=c,c=b;return d===!1&&(d=ba),this.each(function(){p.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){return p(this.context).on(a,this.selector,b,c),this},die:function(a,b){return p(this.context).off(a,this.selector||"**",b),this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a||"**",c)},trigger:function(a,b){return this.each(function(){p.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return p.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||p.guid++,d=0,e=function(c){var e=(p._data(this,"lastToggle"+a.guid)||0)%d;return p._data(this,"lastToggle"+a.guid,e+1),c.preventDefault(),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)}}),p.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){p.fn[b]=function(a,c){return c==null&&(c=a,a=null),arguments.length>0?this.on(b,null,a,c):this.trigger(b)},Y.test(b)&&(p.event.fixHooks[b]=p.event.keyHooks),Z.test(b)&&(p.event.fixHooks[b]=p.event.mouseHooks)}),function(a,b){function $(a,b,c,d){c=c||[],b=b||q;var e,f,g,j,k=b.nodeType;if(k!==1&&k!==9)return[];if(!a||typeof a!="string")return c;g=h(b);if(!g&&!d)if(e=L.exec(a))if(j=e[1]){if(k===9){f=b.getElementById(j);if(!f||!f.parentNode)return c;if(f.id===j)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(j))&&i(b,f)&&f.id===j)return c.push(f),c}else{if(e[2])return u.apply(c,t.call(b.getElementsByTagName(a),0)),c;if((j=e[3])&&X&&b.getElementsByClassName)return u.apply(c,t.call(b.getElementsByClassName(j),0)),c}return bk(a,b,c,d,g)}function _(a){return function(b){var c=b.nodeName.toLowerCase();return c==="input"&&b.type===a}}function ba(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}}function bb(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}function bc(a,b,c,d){var e,g,h,i,j,k,l,m,n,p,r=!c&&b!==q,s=(r?"<s>":"")+a.replace(H,"$1<s>"),u=y[o][s];if(u)return d?0:t.call(u,0);j=a,k=[],m=0,n=f.preFilter,p=f.filter;while(j){if(!e||(g=I.exec(j)))g&&(j=j.slice(g[0].length),h.selector=l),k.push(h=[]),l="",r&&(j=" "+j);e=!1;if(g=J.exec(j))l+=g[0],j=j.slice(g[0].length),e=h.push({part:g.pop().replace(H," "),string:g[0],captures:g});for(i in p)(g=S[i].exec(j))&&(!n[i]||(g=n[i](g,b,c)))&&(l+=g[0],j=j.slice(g[0].length),e=h.push({part:i,string:g.shift(),captures:g}));if(!e)break}return l&&(h.selector=l),d?j.length:j?$.error(a):t.call(y(s,k),0)}function bd(a,b,e,f){var g=b.dir,h=s++;return a||(a=function(a){return a===e}),b.first?function(b){while(b=b[g])if(b.nodeType===1)return a(b)&&b}:f?function(b){while(b=b[g])if(b.nodeType===1&&a(b))return b}:function(b){var e,f=h+"."+c,i=f+"."+d;while(b=b[g])if(b.nodeType===1){if((e=b[o])===i)return b.sizset;if(typeof e=="string"&&e.indexOf(f)===0){if(b.sizset)return b}else{b[o]=i;if(a(b))return b.sizset=!0,b;b.sizset=!1}}}}function be(a,b){return a?function(c){var d=b(c);return d&&a(d===!0?c:d)}:b}function bf(a,b,c){var d,e,g=0;for(;d=a[g];g++)f.relative[d.part]?e=bd(e,f.relative[d.part],b,c):e=be(e,f.filter[d.part].apply(null,d.captures.concat(b,c)));return e}function bg(a){return function(b){var c,d=0;for(;c=a[d];d++)if(c(b))return!0;return!1}}function bh(a,b,c,d){var e=0,f=b.length;for(;e<f;e++)$(a,b[e],c,d)}function bi(a,b,c,d,e,g){var h,i=f.setFilters[b.toLowerCase()];return i||$.error(b),(a||!(h=e))&&bh(a||"*",d,h=[],e),h.length>0?i(h,c,g):[]}function bj(a,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q,r,s=0,t=a.length,v=S.POS,w=new RegExp("^"+v.source+"(?!"+A+")","i"),x=function(){var a=1,c=arguments.length-2;for(;a<c;a++)arguments[a]===b&&(n[a]=b)};for(;s<t;s++){f=a[s],g="",m=e;for(h=0,i=f.length;h<i;h++){j=f[h],k=j.string;if(j.part==="PSEUDO"){v.exec(""),l=0;while(n=v.exec(k)){o=!0,p=v.lastIndex=n.index+n[0].length;if(p>l){g+=k.slice(l,n.index),l=p,q=[c],J.test(g)&&(m&&(q=m),m=e);if(r=O.test(g))g=g.slice(0,-5).replace(J,"$&*"),l++;n.length>1&&n[0].replace(w,x),m=bi(g,n[1],n[2],q,m,r)}g=""}}o||(g+=k),o=!1}g?J.test(g)?bh(g,m||[c],d,e):$(g,c,d,e?e.concat(m):m):u.apply(d,m)}return t===1?d:$.uniqueSort(d)}function bk(a,b,e,g,h){a=a.replace(H,"$1");var i,k,l,m,n,o,p,q,r,s,v=bc(a,b,h),w=b.nodeType;if(S.POS.test(a))return bj(v,b,e,g);if(g)i=t.call(g,0);else if(v.length===1){if((o=t.call(v[0],0)).length>2&&(p=o[0]).part==="ID"&&w===9&&!h&&f.relative[o[1].part]){b=f.find.ID(p.captures[0].replace(R,""),b,h)[0];if(!b)return e;a=a.slice(o.shift().string.length)}r=(v=N.exec(o[0].string))&&!v.index&&b.parentNode||b,q="";for(n=o.length-1;n>=0;n--){p=o[n],s=p.part,q=p.string+q;if(f.relative[s])break;if(f.order.test(s)){i=f.find[s](p.captures[0].replace(R,""),r,h);if(i==null)continue;a=a.slice(0,a.length-q.length)+q.replace(S[s],""),a||u.apply(e,t.call(i,0));break}}}if(a){k=j(a,b,h),c=k.dirruns++,i==null&&(i=f.find.TAG("*",N.test(a)&&b.parentNode||b));for(n=0;m=i[n];n++)d=k.runs++,k(m)&&e.push(m)}return e}var c,d,e,f,g,h,i,j,k,l,m=!0,n="undefined",o=("sizcache"+Math.random()).replace(".",""),q=a.document,r=q.documentElement,s=0,t=[].slice,u=[].push,v=function(a,b){return a[o]=b||!0,a},w=function(){var a={},b=[];return v(function(c,d){return b.push(c)>f.cacheLength&&delete a[b.shift()],a[c]=d},a)},x=w(),y=w(),z=w(),A="[\\x20\\t\\r\\n\\f]",B="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",C=B.replace("w","w#"),D="([*^$|!~]?=)",E="\\["+A+"*("+B+")"+A+"*(?:"+D+A+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+C+")|)|)"+A+"*\\]",F=":("+B+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+E+")|[^:]|\\\\.)*|.*))\\)|)",G=":(nth|eq|gt|lt|first|last|even|odd)(?:\\(((?:-\\d)?\\d*)\\)|)(?=[^-]|$)",H=new RegExp("^"+A+"+|((?:^|[^\\\\])(?:\\\\.)*)"+A+"+$","g"),I=new RegExp("^"+A+"*,"+A+"*"),J=new RegExp("^"+A+"*([\\x20\\t\\r\\n\\f>+~])"+A+"*"),K=new RegExp(F),L=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,M=/^:not/,N=/[\x20\t\r\n\f]*[+~]/,O=/:not\($/,P=/h\d/i,Q=/input|select|textarea|button/i,R=/\\(?!\\)/g,S={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),NAME:new RegExp("^\\[name=['\"]?("+B+")['\"]?\\]"),TAG:new RegExp("^("+B.replace("w","w*")+")"),ATTR:new RegExp("^"+E),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|nth|last|first)-child(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),POS:new RegExp(G,"ig"),needsContext:new RegExp("^"+A+"*[>+~]|"+G,"i")},T=function(a){var b=q.createElement("div");try{return a(b)}catch(c){return!1}finally{b=null}},U=T(function(a){return a.appendChild(q.createComment("")),!a.getElementsByTagName("*").length}),V=T(function(a){return a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!==n&&a.firstChild.getAttribute("href")==="#"}),W=T(function(a){a.innerHTML="<select></select>";var b=typeof a.lastChild.getAttribute("multiple");return b!=="boolean"&&b!=="string"}),X=T(function(a){return a.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!a.getElementsByClassName||!a.getElementsByClassName("e").length?!1:(a.lastChild.className="e",a.getElementsByClassName("e").length===2)}),Y=T(function(a){a.id=o+0,a.innerHTML="<a name='"+o+"'></a><div name='"+o+"'></div>",r.insertBefore(a,r.firstChild);var b=q.getElementsByName&&q.getElementsByName(o).length===2+q.getElementsByName(o+0).length;return e=!q.getElementById(o),r.removeChild(a),b});try{t.call(r.childNodes,0)[0].nodeType}catch(Z){t=function(a){var b,c=[];for(;b=this[a];a++)c.push(b);return c}}$.matches=function(a,b){return $(a,null,null,b)},$.matchesSelector=function(a,b){return $(b,null,null,[a]).length>0},g=$.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(e===1||e===9||e===11){if(typeof a.textContent=="string")return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=g(a)}else if(e===3||e===4)return a.nodeValue}else for(;b=a[d];d++)c+=g(b);return c},h=$.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?b.nodeName!=="HTML":!1},i=$.contains=r.contains?function(a,b){var c=a.nodeType===9?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&d.nodeType===1&&c.contains&&c.contains(d))}:r.compareDocumentPosition?function(a,b){return b&&!!(a.compareDocumentPosition(b)&16)}:function(a,b){while(b=b.parentNode)if(b===a)return!0;return!1},$.attr=function(a,b){var c,d=h(a);return d||(b=b.toLowerCase()),f.attrHandle[b]?f.attrHandle[b](a):W||d?a.getAttribute(b):(c=a.getAttributeNode(b),c?typeof a[b]=="boolean"?a[b]?b:null:c.specified?c.value:null:null)},f=$.selectors={cacheLength:50,createPseudo:v,match:S,order:new RegExp("ID|TAG"+(Y?"|NAME":"")+(X?"|CLASS":"")),attrHandle:V?{}:{href:function(a){return a.getAttribute("href",2)},type:function(a){return a.getAttribute("type")}},find:{ID:e?function(a,b,c){if(typeof b.getElementById!==n&&!c){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}}:function(a,c,d){if(typeof c.getElementById!==n&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!==n&&e.getAttributeNode("id").value===a?[e]:b:[]}},TAG:U?function(a,b){if(typeof b.getElementsByTagName!==n)return b.getElementsByTagName(a)}:function(a,b){var c=b.getElementsByTagName(a);if(a==="*"){var d,e=[],f=0;for(;d=c[f];f++)d.nodeType===1&&e.push(d);return e}return c},NAME:function(a,b){if(typeof b.getElementsByName!==n)return b.getElementsByName(name)},CLASS:function(a,b,c){if(typeof b.getElementsByClassName!==n&&!c)return b.getElementsByClassName(a)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(R,""),a[3]=(a[4]||a[5]||"").replace(R,""),a[2]==="~="&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),a[1]==="nth"?(a[2]||$.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*(a[2]==="even"||a[2]==="odd")),a[4]=+(a[6]+a[7]||a[2]==="odd")):a[2]&&$.error(a[0]),a},PSEUDO:function(a,b,c){var d,e;if(S.CHILD.test(a[0]))return null;if(a[3])a[2]=a[3];else if(d=a[4])K.test(d)&&(e=bc(d,b,c,!0))&&(e=d.indexOf(")",d.length-e)-d.length)&&(d=d.slice(0,e),a[0]=a[0].slice(0,e)),a[2]=d;return a.slice(0,3)}},filter:{ID:e?function(a){return a=a.replace(R,""),function(b){return b.getAttribute("id")===a}}:function(a){return a=a.replace(R,""),function(b){var c=typeof b.getAttributeNode!==n&&b.getAttributeNode("id");return c&&c.value===a}},TAG:function(a){return a==="*"?function(){return!0}:(a=a.replace(R,"").toLowerCase(),function(b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var b=x[o][a];return b||(b=x(a,new RegExp("(^|"+A+")"+a+"("+A+"|$)"))),function(a){return b.test(a.className||typeof a.getAttribute!==n&&a.getAttribute("class")||"")}},ATTR:function(a,b,c){return b?function(d){var e=$.attr(d,a),f=e+"";if(e==null)return b==="!=";switch(b){case"=":return f===c;case"!=":return f!==c;case"^=":return c&&f.indexOf(c)===0;case"*=":return c&&f.indexOf(c)>-1;case"$=":return c&&f.substr(f.length-c.length)===c;case"~=":return(" "+f+" ").indexOf(c)>-1;case"|=":return f===c||f.substr(0,c.length+1)===c+"-"}}:function(b){return $.attr(b,a)!=null}},CHILD:function(a,b,c,d){if(a==="nth"){var e=s++;return function(a){var b,f,g=0,h=a;if(c===1&&d===0)return!0;b=a.parentNode;if(b&&(b[o]!==e||!a.sizset)){for(h=b.firstChild;h;h=h.nextSibling)if(h.nodeType===1){h.sizset=++g;if(h===a)break}b[o]=e}return f=a.sizset-d,c===0?f===0:f%c===0&&f/c>=0}}return function(b){var c=b;switch(a){case"only":case"first":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(a==="first")return!0;c=b;case"last":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0}}},PSEUDO:function(a,b,c,d){var e,g=f.pseudos[a]||f.pseudos[a.toLowerCase()];return g||$.error("unsupported pseudo: "+a),g[o]?g(b,c,d):g.length>1?(e=[a,a,"",b],function(a){return g(a,0,e)}):g}},pseudos:{not:v(function(a,b,c){var d=j(a.replace(H,"$1"),b,c);return function(a){return!d(a)}}),enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!f.pseudos.empty(a)},empty:function(a){var b;a=a.firstChild;while(a){if(a.nodeName>"@"||(b=a.nodeType)===3||b===4)return!1;a=a.nextSibling}return!0},contains:v(function(a){return function(b){return(b.textContent||b.innerText||g(b)).indexOf(a)>-1}}),has:v(function(a){return function(b){return $(a,b).length>0}}),header:function(a){return P.test(a.nodeName)},text:function(a){var b,c;return a.nodeName.toLowerCase()==="input"&&(b=a.type)==="text"&&((c=a.getAttribute("type"))==null||c.toLowerCase()===b)},radio:_("radio"),checkbox:_("checkbox"),file:_("file"),password:_("password"),image:_("image"),submit:ba("submit"),reset:ba("reset"),button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},input:function(a){return Q.test(a.nodeName)},focus:function(a){var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())&&(!!a.type||!!a.href)},active:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b,c){return c?a.slice(1):[a[0]]},last:function(a,b,c){var d=a.pop();return c?a:[d]},even:function(a,b,c){var d=[],e=c?1:0,f=a.length;for(;e<f;e=e+2)d.push(a[e]);return d},odd:function(a,b,c){var d=[],e=c?0:1,f=a.length;for(;e<f;e=e+2)d.push(a[e]);return d},lt:function(a,b,c){return c?a.slice(+b):a.slice(0,+b)},gt:function(a,b,c){return c?a.slice(0,+b+1):a.slice(+b+1)},eq:function(a,b,c){var d=a.splice(+b,1);return c?a:d}}},k=r.compareDocumentPosition?function(a,b){return a===b?(l=!0,0):(!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition:a.compareDocumentPosition(b)&4)?-1:1}:function(a,b){if(a===b)return l=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,h=b.parentNode,i=g;if(g===h)return bb(a,b);if(!g)return-1;if(!h)return 1;while(i)e.unshift(i),i=i.parentNode;i=h;while(i)f.unshift(i),i=i.parentNode;c=e.length,d=f.length;for(var j=0;j<c&&j<d;j++)if(e[j]!==f[j])return bb(e[j],f[j]);return j===c?bb(a,f[j],-1):bb(e[j],b,1)},[0,0].sort(k),m=!l,$.uniqueSort=function(a){var b,c=1;l=m,a.sort(k);if(l)for(;b=a[c];c++)b===a[c-1]&&a.splice(c--,1);return a},$.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},j=$.compile=function(a,b,c){var d,e,f,g=z[o][a];if(g&&g.context===b)return g;d=bc(a,b,c);for(e=0,f=d.length;e<f;e++)d[e]=bf(d[e],b,c);return g=z(a,bg(d)),g.context=b,g.runs=g.dirruns=0,g},q.querySelectorAll&&function(){var a,b=bk,c=/'|\\/g,d=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,e=[],f=[":active"],g=r.matchesSelector||r.mozMatchesSelector||r.webkitMatchesSelector||r.oMatchesSelector||r.msMatchesSelector;T(function(a){a.innerHTML="<select><option selected=''></option></select>",a.querySelectorAll("[selected]").length||e.push("\\["+A+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),a.querySelectorAll(":checked").length||e.push(":checked")}),T(function(a){a.innerHTML="<p test=''></p>",a.querySelectorAll("[test^='']").length&&e.push("[*^$]="+A+"*(?:\"\"|'')"),a.innerHTML="<input type='hidden'/>",a.querySelectorAll(":enabled").length||e.push(":enabled",":disabled")}),e=e.length&&new RegExp(e.join("|")),bk=function(a,d,f,g,h){if(!g&&!h&&(!e||!e.test(a)))if(d.nodeType===9)try{return u.apply(f,t.call(d.querySelectorAll(a),0)),f}catch(i){}else if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){var j,k,l,m=d.getAttribute("id"),n=m||o,p=N.test(a)&&d.parentNode||d;m?n=n.replace(c,"\\$&"):d.setAttribute("id",n),j=bc(a,d,h),n="[id='"+n+"']";for(k=0,l=j.length;k<l;k++)j[k]=n+j[k].selector;try{return u.apply(f,t.call(p.querySelectorAll(j.join(",")),0)),f}catch(i){}finally{m||d.removeAttribute("id")}}return b(a,d,f,g,h)},g&&(T(function(b){a=g.call(b,"div");try{g.call(b,"[test!='']:sizzle"),f.push(S.PSEUDO.source,S.POS.source,"!=")}catch(c){}}),f=new RegExp(f.join("|")),$.matchesSelector=function(b,c){c=c.replace(d,"='$1']");if(!h(b)&&!f.test(c)&&(!e||!e.test(c)))try{var i=g.call(b,c);if(i||a||b.document&&b.document.nodeType!==11)return i}catch(j){}return $(c,null,null,[b]).length>0})}(),f.setFilters.nth=f.setFilters.eq,f.filters=f.pseudos,$.attr=p.attr,p.find=$,p.expr=$.selectors,p.expr[":"]=p.expr.pseudos,p.unique=$.uniqueSort,p.text=$.getText,p.isXMLDoc=$.isXML,p.contains=$.contains}(a);var bc=/Until$/,bd=/^(?:parents|prev(?:Until|All))/,be=/^.[^:#\[\.,]*$/,bf=p.expr.match.needsContext,bg={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({find:function(a){var b,c,d,e,f,g,h=this;if(typeof a!="string")return p(a).filter(function(){for(b=0,c=h.length;b<c;b++)if(p.contains(h[b],this))return!0});g=this.pushStack("","find",a);for(b=0,c=this.length;b<c;b++){d=g.length,p.find(a,this[b],g);if(b>0)for(e=d;e<g.length;e++)for(f=0;f<d;f++)if(g[f]===g[e]){g.splice(e--,1);break}}return g},has:function(a){var b,c=p(a,this),d=c.length;return this.filter(function(){for(b=0;b<d;b++)if(p.contains(this,c[b]))return!0})},not:function(a){return this.pushStack(bj(this,a,!1),"not",a)},filter:function(a){return this.pushStack(bj(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?bf.test(a)?p(a,this.context).index(this[0])>=0:p.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c,d=0,e=this.length,f=[],g=bf.test(a)||typeof a!="string"?p(a,b||this.context):0;for(;d<e;d++){c=this[d];while(c&&c.ownerDocument&&c!==b&&c.nodeType!==11){if(g?g.index(c)>-1:p.find.matchesSelector(c,a)){f.push(c);break}c=c.parentNode}}return f=f.length>1?p.unique(f):f,this.pushStack(f,"closest",a)},index:function(a){return a?typeof a=="string"?p.inArray(this[0],p(a)):p.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?p(a,b):p.makeArray(a&&a.nodeType?[a]:a),d=p.merge(this.get(),c);return this.pushStack(bh(c[0])||bh(d[0])?d:p.unique(d))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}),p.fn.andSelf=p.fn.addBack,p.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return p.dir(a,"parentNode")},parentsUntil:function(a,b,c){return p.dir(a,"parentNode",c)},next:function(a){return bi(a,"nextSibling")},prev:function(a){return bi(a,"previousSibling")},nextAll:function(a){return p.dir(a,"nextSibling")},prevAll:function(a){return p.dir(a,"previousSibling")},nextUntil:function(a,b,c){return p.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return p.dir(a,"previousSibling",c)},siblings:function(a){return p.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return p.sibling(a.firstChild)},contents:function(a){return p.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:p.merge([],a.childNodes)}},function(a,b){p.fn[a]=function(c,d){var e=p.map(this,b,c);return bc.test(a)||(d=c),d&&typeof d=="string"&&(e=p.filter(d,e)),e=this.length>1&&!bg[a]?p.unique(e):e,this.length>1&&bd.test(a)&&(e=e.reverse()),this.pushStack(e,a,k.call(arguments).join(","))}}),p.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?p.find.matchesSelector(b[0],a)?[b[0]]:[]:p.find.matches(a,b)},dir:function(a,c,d){var e=[],f=a[c];while(f&&f.nodeType!==9&&(d===b||f.nodeType!==1||!p(f).is(d)))f.nodeType===1&&e.push(f),f=f[c];return e},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var bl="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",bm=/ jQuery\d+="(?:null|\d+)"/g,bn=/^\s+/,bo=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bp=/<([\w:]+)/,bq=/<tbody/i,br=/<|&#?\w+;/,bs=/<(?:script|style|link)/i,bt=/<(?:script|object|embed|option|style)/i,bu=new RegExp("<(?:"+bl+")[\\s/>]","i"),bv=/^(?:checkbox|radio)$/,bw=/checked\s*(?:[^=]|=\s*.checked.)/i,bx=/\/(java|ecma)script/i,by=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,bz={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,"",""]},bA=bk(e),bB=bA.appendChild(e.createElement("div"));bz.optgroup=bz.option,bz.tbody=bz.tfoot=bz.colgroup=bz.caption=bz.thead,bz.th=bz.td,p.support.htmlSerialize||(bz._default=[1,"X<div>","</div>"]),p.fn.extend({text:function(a){return p.access(this,function(a){return a===b?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(p.isFunction(a))return this.each(function(b){p(this).wrapAll(a.call(this,b))});if(this[0]){var b=p(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){return p.isFunction(a)?this.each(function(b){p(this).wrapInner(a.call(this,b))}):this.each(function(){var b=p(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=p.isFunction(a);return this.each(function(c){p(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(a,this.firstChild)})},before:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(a,this),"before",this.selector)}},after:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(this,a),"after",this.selector)}},remove:function(a,b){var c,d=0;for(;(c=this[d])!=null;d++)if(!a||p.filter(a,[c]).length)!b&&c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),p.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++){a.nodeType===1&&p.cleanData(a.getElementsByTagName("*"));while(a.firstChild)a.removeChild(a.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return p.clone(this,a,b)})},html:function(a){return p.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(bm,""):b;if(typeof a=="string"&&!bs.test(a)&&(p.support.htmlSerialize||!bu.test(a))&&(p.support.leadingWhitespace||!bn.test(a))&&!bz[(bp.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(bo,"<$1></$2>");try{for(;d<e;d++)c=this[d]||{},c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(f){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){return bh(this[0])?this.length?this.pushStack(p(p.isFunction(a)?a():a),"replaceWith",a):this:p.isFunction(a)?this.each(function(b){var c=p(this),d=c.html();c.replaceWith(a.call(this,b,d))}):(typeof a!="string"&&(a=p(a).detach()),this.each(function(){var b=this.nextSibling,c=this.parentNode;p(this).remove(),b?p(b).before(a):p(c).append(a)}))},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){a=[].concat.apply([],a);var e,f,g,h,i=0,j=a[0],k=[],l=this.length;if(!p.support.checkClone&&l>1&&typeof j=="string"&&bw.test(j))return this.each(function(){p(this).domManip(a,c,d)});if(p.isFunction(j))return this.each(function(e){var f=p(this);a[0]=j.call(this,e,c?f.html():b),f.domManip(a,c,d)});if(this[0]){e=p.buildFragment(a,this,k),g=e.fragment,f=g.firstChild,g.childNodes.length===1&&(g=f);if(f){c=c&&p.nodeName(f,"tr");for(h=e.cacheable||l-1;i<l;i++)d.call(c&&p.nodeName(this[i],"table")?bC(this[i],"tbody"):this[i],i===h?g:p.clone(g,!0,!0))}g=f=null,k.length&&p.each(k,function(a,b){b.src?p.ajax?p.ajax({url:b.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):p.error("no ajax"):p.globalEval((b.text||b.textContent||b.innerHTML||"").replace(by,"")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),p.buildFragment=function(a,c,d){var f,g,h,i=a[0];return c=c||e,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,a.length===1&&typeof i=="string"&&i.length<512&&c===e&&i.charAt(0)==="<"&&!bt.test(i)&&(p.support.checkClone||!bw.test(i))&&(p.support.html5Clone||!bu.test(i))&&(g=!0,f=p.fragments[i],h=f!==b),f||(f=c.createDocumentFragment(),p.clean(a,c,f,d),g&&(p.fragments[i]=h&&f)),{fragment:f,cacheable:g}},p.fragments={},p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){p.fn[a]=function(c){var d,e=0,f=[],g=p(c),h=g.length,i=this.length===1&&this[0].parentNode;if((i==null||i&&i.nodeType===11&&i.childNodes.length===1)&&h===1)return g[b](this[0]),this;for(;e<h;e++)d=(e>0?this.clone(!0):this).get(),p(g[e])[b](d),f=f.concat(d);return this.pushStack(f,a,g.selector)}}),p.extend({clone:function(a,b,c){var d,e,f,g;p.support.html5Clone||p.isXMLDoc(a)||!bu.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(bB.innerHTML=a.outerHTML,bB.removeChild(g=bB.firstChild));if((!p.support.noCloneEvent||!p.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!p.isXMLDoc(a)){bE(a,g),d=bF(a),e=bF(g);for(f=0;d[f];++f)e[f]&&bE(d[f],e[f])}if(b){bD(a,g);if(c){d=bF(a),e=bF(g);for(f=0;d[f];++f)bD(d[f],e[f])}}return d=e=null,g},clean:function(a,b,c,d){var f,g,h,i,j,k,l,m,n,o,q,r,s=b===e&&bA,t=[];if(!b||typeof b.createDocumentFragment=="undefined")b=e;for(f=0;(h=a[f])!=null;f++){typeof h=="number"&&(h+="");if(!h)continue;if(typeof h=="string")if(!br.test(h))h=b.createTextNode(h);else{s=s||bk(b),l=b.createElement("div"),s.appendChild(l),h=h.replace(bo,"<$1></$2>"),i=(bp.exec(h)||["",""])[1].toLowerCase(),j=bz[i]||bz._default,k=j[0],l.innerHTML=j[1]+h+j[2];while(k--)l=l.lastChild;if(!p.support.tbody){m=bq.test(h),n=i==="table"&&!m?l.firstChild&&l.firstChild.childNodes:j[1]==="<table>"&&!m?l.childNodes:[];for(g=n.length-1;g>=0;--g)p.nodeName(n[g],"tbody")&&!n[g].childNodes.length&&n[g].parentNode.removeChild(n[g])}!p.support.leadingWhitespace&&bn.test(h)&&l.insertBefore(b.createTextNode(bn.exec(h)[0]),l.firstChild),h=l.childNodes,l.parentNode.removeChild(l)}h.nodeType?t.push(h):p.merge(t,h)}l&&(h=l=s=null);if(!p.support.appendChecked)for(f=0;(h=t[f])!=null;f++)p.nodeName(h,"input")?bG(h):typeof h.getElementsByTagName!="undefined"&&p.grep(h.getElementsByTagName("input"),bG);if(c){q=function(a){if(!a.type||bx.test(a.type))return d?d.push(a.parentNode?a.parentNode.removeChild(a):a):c.appendChild(a)};for(f=0;(h=t[f])!=null;f++)if(!p.nodeName(h,"script")||!q(h))c.appendChild(h),typeof h.getElementsByTagName!="undefined"&&(r=p.grep(p.merge([],h.getElementsByTagName("script")),q),t.splice.apply(t,[f+1,0].concat(r)),f+=r.length)}return t},cleanData:function(a,b){var c,d,e,f,g=0,h=p.expando,i=p.cache,j=p.support.deleteExpando,k=p.event.special;for(;(e=a[g])!=null;g++)if(b||p.acceptData(e)){d=e[h],c=d&&i[d];if(c){if(c.events)for(f in c.events)k[f]?p.event.remove(e,f):p.removeEvent(e,f,c.handle);i[d]&&(delete i[d],j?delete e[h]:e.removeAttribute?e.removeAttribute(h):e[h]=null,p.deletedIds.push(d))}}}}),function(){var a,b;p.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a=p.uaMatch(g.userAgent),b={},a.browser&&(b[a.browser]=!0,b.version=a.version),b.chrome?b.webkit=!0:b.webkit&&(b.safari=!0),p.browser=b,p.sub=function(){function a(b,c){return new a.fn.init(b,c)}p.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function c(c,d){return d&&d instanceof p&&!(d instanceof a)&&(d=a(d)),p.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(e);return a}}();var bH,bI,bJ,bK=/alpha\([^)]*\)/i,bL=/opacity=([^)]*)/,bM=/^(top|right|bottom|left)$/,bN=/^(none|table(?!-c[ea]).+)/,bO=/^margin/,bP=new RegExp("^("+q+")(.*)$","i"),bQ=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),bR=new RegExp("^([-+])=("+q+")","i"),bS={},bT={position:"absolute",visibility:"hidden",display:"block"},bU={letterSpacing:0,fontWeight:400},bV=["Top","Right","Bottom","Left"],bW=["Webkit","O","Moz","ms"],bX=p.fn.toggle;p.fn.extend({css:function(a,c){return p.access(this,function(a,c,d){return d!==b?p.style(a,c,d):p.css(a,c)},a,c,arguments.length>1)},show:function(){return b$(this,!0)},hide:function(){return b$(this)},toggle:function(a,b){var c=typeof a=="boolean";return p.isFunction(a)&&p.isFunction(b)?bX.apply(this,arguments):this.each(function(){(c?a:bZ(this))?p(this).show():p(this).hide()})}}),p.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bH(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":p.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var f,g,h,i=p.camelCase(c),j=a.style;c=p.cssProps[i]||(p.cssProps[i]=bY(j,i)),h=p.cssHooks[c]||p.cssHooks[i];if(d===b)return h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c];g=typeof d,g==="string"&&(f=bR.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(p.css(a,c)),g="number");if(d==null||g==="number"&&isNaN(d))return;g==="number"&&!p.cssNumber[i]&&(d+="px");if(!h||!("set"in h)||(d=h.set(a,d,e))!==b)try{j[c]=d}catch(k){}},css:function(a,c,d,e){var f,g,h,i=p.camelCase(c);return c=p.cssProps[i]||(p.cssProps[i]=bY(a.style,i)),h=p.cssHooks[c]||p.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,e)),f===b&&(f=bH(a,c)),f==="normal"&&c in bU&&(f=bU[c]),d||e!==b?(g=parseFloat(f),d||p.isNumeric(g)?g||0:f):f},swap:function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d}}),a.getComputedStyle?bH=function(b,c){var d,e,f,g,h=a.getComputedStyle(b,null),i=b.style;return h&&(d=h[c],d===""&&!p.contains(b.ownerDocument,b)&&(d=p.style(b,c)),bQ.test(d)&&bO.test(c)&&(e=i.width,f=i.minWidth,g=i.maxWidth,i.minWidth=i.maxWidth=i.width=d,d=h.width,i.width=e,i.minWidth=f,i.maxWidth=g)),d}:e.documentElement.currentStyle&&(bH=function(a,b){var c,d,e=a.currentStyle&&a.currentStyle[b],f=a.style;return e==null&&f&&f[b]&&(e=f[b]),bQ.test(e)&&!bM.test(b)&&(c=f.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":e,e=f.pixelLeft+"px",f.left=c,d&&(a.runtimeStyle.left=d)),e===""?"auto":e}),p.each(["height","width"],function(a,b){p.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth===0&&bN.test(bH(a,"display"))?p.swap(a,bT,function(){return cb(a,b,d)}):cb(a,b,d)},set:function(a,c,d){return b_(a,c,d?ca(a,b,d,p.support.boxSizing&&p.css(a,"boxSizing")==="border-box"):0)}}}),p.support.opacity||(p.cssHooks.opacity={get:function(a,b){return bL.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=p.isNumeric(b)?"alpha(opacity="+b*100+")":"",f=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&p.trim(f.replace(bK,""))===""&&c.removeAttribute){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bK.test(f)?f.replace(bK,e):f+" "+e}}),p(function(){p.support.reliableMarginRight||(p.cssHooks.marginRight={get:function(a,b){return p.swap(a,{display:"inline-block"},function(){if(b)return bH(a,"marginRight")})}}),!p.support.pixelPosition&&p.fn.position&&p.each(["top","left"],function(a,b){p.cssHooks[b]={get:function(a,c){if(c){var d=bH(a,b);return bQ.test(d)?p(a).position()[b]+"px":d}}}})}),p.expr&&p.expr.filters&&(p.expr.filters.hidden=function(a){return a.offsetWidth===0&&a.offsetHeight===0||!p.support.reliableHiddenOffsets&&(a.style&&a.style.display||bH(a,"display"))==="none"},p.expr.filters.visible=function(a){return!p.expr.filters.hidden(a)}),p.each({margin:"",padding:"",border:"Width"},function(a,b){p.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bV[d]+b]=e[d]||e[d-2]||e[0];return f}},bO.test(a)||(p.cssHooks[a+b].set=b_)});var cd=/%20/g,ce=/\[\]$/,cf=/\r?\n/g,cg=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ch=/^(?:select|textarea)/i;p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ch.test(this.nodeName)||cg.test(this.type))}).map(function(a,b){var c=p(this).val();return c==null?null:p.isArray(c)?p.map(c,function(a,c){return{name:b.name,value:a.replace(cf,"\r\n")}}):{name:b.name,value:c.replace(cf,"\r\n")}}).get()}}),p.param=function(a,c){var d,e=[],f=function(a,b){b=p.isFunction(b)?b():b==null?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=p.ajaxSettings&&p.ajaxSettings.traditional);if(p.isArray(a)||a.jquery&&!p.isPlainObject(a))p.each(a,function(){f(this.name,this.value)});else for(d in a)ci(d,a[d],c,f);return e.join("&").replace(cd,"+")};var cj,ck,cl=/#.*$/,cm=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,cn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,co=/^(?:GET|HEAD)$/,cp=/^\/\//,cq=/\?/,cr=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,cs=/([?&])_=[^&]*/,ct=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,cu=p.fn.load,cv={},cw={},cx=["*/"]+["*"];try{cj=f.href}catch(cy){cj=e.createElement("a"),cj.href="",cj=cj.href}ck=ct.exec(cj.toLowerCase())||[],p.fn.load=function(a,c,d){if(typeof a!="string"&&cu)return cu.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i,a.length),a=a.slice(0,i)),p.isFunction(c)?(d=c,c=b):c&&typeof c=="object"&&(f="POST"),p.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b){d&&h.each(d,g||[a.responseText,b,a])}}).done(function(a){g=arguments,h.html(e?p("<div>").append(a.replace(cr,"")).find(e):a)}),this},p.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){p.fn[b]=function(a){return this.on(b,a)}}),p.each(["get","post"],function(a,c){p[c]=function(a,d,e,f){return p.isFunction(d)&&(f=f||e,e=d,d=b),p.ajax({type:c,url:a,data:d,success:e,dataType:f})}}),p.extend({getScript:function(a,c){return p.get(a,b,c,"script")},getJSON:function(a,b,c){return p.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?cB(a,p.ajaxSettings):(b=a,a=p.ajaxSettings),cB(a,b),a},ajaxSettings:{url:cj,isLocal:cn.test(ck[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":cx},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:cz(cv),ajaxTransport:cz(cw),ajax:function(a,c){function y(a,c,f,i){var k,s,t,u,w,y=c;if(v===2)return;v=2,h&&clearTimeout(h),g=b,e=i||"",x.readyState=a>0?4:0,f&&(u=cC(l,x,f));if(a>=200&&a<300||a===304)l.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(p.lastModified[d]=w),w=x.getResponseHeader("Etag"),w&&(p.etag[d]=w)),a===304?(y="notmodified",k=!0):(k=cD(l,u),y=k.state,s=k.data,t=k.error,k=!t);else{t=y;if(!y||a)y="error",a<0&&(a=0)}x.status=a,x.statusText=""+(c||y),k?o.resolveWith(m,[s,y,x]):o.rejectWith(m,[x,y,t]),x.statusCode(r),r=b,j&&n.trigger("ajax"+(k?"Success":"Error"),[x,l,k?s:t]),q.fireWith(m,[x,y]),j&&(n.trigger("ajaxComplete",[x,l]),--p.active||p.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d,e,f,g,h,i,j,k,l=p.ajaxSetup({},c),m=l.context||l,n=m!==l&&(m.nodeType||m instanceof p)?p(m):p.event,o=p.Deferred(),q=p.Callbacks("once memory"),r=l.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,setRequestHeader:function(a,b){if(!v){var c=a.toLowerCase();a=u[c]=u[c]||a,t[a]=b}return this},getAllResponseHeaders:function(){return v===2?e:null},getResponseHeader:function(a){var c;if(v===2){if(!f){f={};while(c=cm.exec(e))f[c[1].toLowerCase()]=c[2]}c=f[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return v||(l.mimeType=a),this},abort:function(a){return a=a||w,g&&g.abort(a),y(0,a),this}};o.promise(x),x.success=x.done,x.error=x.fail,x.complete=q.add,x.statusCode=function(a){if(a){var b;if(v<2)for(b in a)r[b]=[r[b],a[b]];else b=a[x.status],x.always(b)}return this},l.url=((a||l.url)+"").replace(cl,"").replace(cp,ck[1]+"//"),l.dataTypes=p.trim(l.dataType||"*").toLowerCase().split(s),l.crossDomain==null&&(i=ct.exec(l.url.toLowerCase()),l.crossDomain=!(!i||i[1]==ck[1]&&i[2]==ck[2]&&(i[3]||(i[1]==="http:"?80:443))==(ck[3]||(ck[1]==="http:"?80:443)))),l.data&&l.processData&&typeof l.data!="string"&&(l.data=p.param(l.data,l.traditional)),cA(cv,l,c,x);if(v===2)return x;j=l.global,l.type=l.type.toUpperCase(),l.hasContent=!co.test(l.type),j&&p.active++===0&&p.event.trigger("ajaxStart");if(!l.hasContent){l.data&&(l.url+=(cq.test(l.url)?"&":"?")+l.data,delete l.data),d=l.url;if(l.cache===!1){var z=p.now(),A=l.url.replace(cs,"$1_="+z);l.url=A+(A===l.url?(cq.test(l.url)?"&":"?")+"_="+z:"")}}(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",l.contentType),l.ifModified&&(d=d||l.url,p.lastModified[d]&&x.setRequestHeader("If-Modified-Since",p.lastModified[d]),p.etag[d]&&x.setRequestHeader("If-None-Match",p.etag[d])),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+cx+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)x.setRequestHeader(k,l.headers[k]);if(!l.beforeSend||l.beforeSend.call(m,x,l)!==!1&&v!==2){w="abort";for(k in{success:1,error:1,complete:1})x[k](l[k]);g=cA(cw,l,c,x);if(!g)y(-1,"No Transport");else{x.readyState=1,j&&n.trigger("ajaxSend",[x,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){x.abort("timeout")},l.timeout));try{v=1,g.send(t,y)}catch(B){if(v<2)y(-1,B);else throw B}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var cE=[],cF=/\?/,cG=/(=)\?(?=&|$)|\?\?/,cH=p.now();p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=cE.pop()||p.expando+"_"+cH++;return this[a]=!0,a}}),p.ajaxPrefilter("json jsonp",function(c,d,e){var f,g,h,i=c.data,j=c.url,k=c.jsonp!==!1,l=k&&cG.test(j),m=k&&!l&&typeof i=="string"&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&cG.test(i);if(c.dataTypes[0]==="jsonp"||l||m)return f=c.jsonpCallback=p.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],l?c.url=j.replace(cG,"$1"+f):m?c.data=i.replace(cG,"$1"+f):k&&(c.url+=(cF.test(j)?"&":"?")+c.jsonp+"="+f),c.converters["script json"]=function(){return h||p.error(f+" was not called"),h[0]},c.dataTypes[0]="json",a[f]=function(){h=arguments},e.always(function(){a[f]=g,c[f]&&(c.jsonpCallback=d.jsonpCallback,cE.push(f)),h&&p.isFunction(g)&&g(h[0]),h=g=b}),"script"}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return p.globalEval(a),a}}}),p.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),p.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=e.head||e.getElementsByTagName("head")[0]||e.documentElement;return{send:function(f,g){c=e.createElement("script"),c.async="async",a.scriptCharset&&(c.charset=a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange=function(a,e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||g(200,"success")},d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var cI,cJ=a.ActiveXObject?function(){for(var a in cI)cI[a](0,1)}:!1,cK=0;p.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&cL()||cM()}:cL,function(a){p.extend(p.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(p.ajaxSettings.xhr()),p.support.ajax&&p.ajaxTransport(function(c){if(!c.crossDomain||p.support.cors){var d;return{send:function(e,f){var g,h,i=c.xhr();c.username?i.open(c.type,c.url,c.async,c.username,c.password):i.open(c.type,c.url,c.async);if(c.xhrFields)for(h in c.xhrFields)i[h]=c.xhrFields[h];c.mimeType&&i.overrideMimeType&&i.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(h in e)i.setRequestHeader(h,e[h])}catch(j){}i.send(c.hasContent&&c.data||null),d=function(a,e){var h,j,k,l,m;try{if(d&&(e||i.readyState===4)){d=b,g&&(i.onreadystatechange=p.noop,cJ&&delete cI[g]);if(e)i.readyState!==4&&i.abort();else{h=i.status,k=i.getAllResponseHeaders(),l={},m=i.responseXML,m&&m.documentElement&&(l.xml=m);try{l.text=i.responseText}catch(a){}try{j=i.statusText}catch(n){j=""}!h&&c.isLocal&&!c.crossDomain?h=l.text?200:404:h===1223&&(h=204)}}}catch(o){e||f(-1,o)}l&&f(h,j,l,k)},c.async?i.readyState===4?setTimeout(d,0):(g=++cK,cJ&&(cI||(cI={},p(a).unload(cJ)),cI[g]=d),i.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var cN,cO,cP=/^(?:toggle|show|hide)$/,cQ=new RegExp("^(?:([-+])=|)("+q+")([a-z%]*)$","i"),cR=/queueHooks$/,cS=[cY],cT={"*":[function(a,b){var c,d,e,f=this.createTween(a,b),g=cQ.exec(b),h=f.cur(),i=+h||0,j=1;if(g){c=+g[2],d=g[3]||(p.cssNumber[a]?"":"px");if(d!=="px"&&i){i=p.css(f.elem,a,!0)||c||1;do e=j=j||".5",i=i/j,p.style(f.elem,a,i+d),j=f.cur()/h;while(j!==1&&j!==e)}f.unit=d,f.start=i,f.end=g[1]?i+(g[1]+1)*c:c}return f}]};p.Animation=p.extend(cW,{tweener:function(a,b){p.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");var c,d=0,e=a.length;for(;d<e;d++)c=a[d],cT[c]=cT[c]||[],cT[c].unshift(b)},prefilter:function(a,b){b?cS.unshift(a):cS.push(a)}}),p.Tween=cZ,cZ.prototype={constructor:cZ,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(p.cssNumber[c]?"":"px")},cur:function(){var a=cZ.propHooks[this.prop];return a&&a.get?a.get(this):cZ.propHooks._default.get(this)},run:function(a){var b,c=cZ.propHooks[this.prop];return this.options.duration?this.pos=b=p.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):cZ.propHooks._default.set(this),this}},cZ.prototype.init.prototype=cZ.prototype,cZ.propHooks={_default:{get:function(a){var b;return a.elem[a.prop]==null||!!a.elem.style&&a.elem.style[a.prop]!=null?(b=p.css(a.elem,a.prop,!1,""),!b||b==="auto"?0:b):a.elem[a.prop]},set:function(a){p.fx.step[a.prop]?p.fx.step[a.prop](a):a.elem.style&&(a.elem.style[p.cssProps[a.prop]]!=null||p.cssHooks[a.prop])?p.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},cZ.propHooks.scrollTop=cZ.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},p.each(["toggle","show","hide"],function(a,b){var c=p.fn[b];p.fn[b]=function(d,e,f){return d==null||typeof d=="boolean"||!a&&p.isFunction(d)&&p.isFunction(e)?c.apply(this,arguments):this.animate(c$(b,!0),d,e,f)}}),p.fn.extend({fadeTo:function(a,b,c,d){return this.filter(bZ).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=p.isEmptyObject(a),f=p.speed(b,c,d),g=function(){var b=cW(this,p.extend({},a),f);e&&b.stop(!0)};return e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,c,d){var e=function(a){var b=a.stop;delete a.stop,b(d)};return typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,c=a!=null&&a+"queueHooks",f=p.timers,g=p._data(this);if(c)g[c]&&g[c].stop&&e(g[c]);else for(c in g)g[c]&&g[c].stop&&cR.test(c)&&e(g[c]);for(c=f.length;c--;)f[c].elem===this&&(a==null||f[c].queue===a)&&(f[c].anim.stop(d),b=!1,f.splice(c,1));(b||!d)&&p.dequeue(this,a)})}}),p.each({slideDown:c$("show"),slideUp:c$("hide"),slideToggle:c$("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){p.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),p.speed=function(a,b,c){var d=a&&typeof a=="object"?p.extend({},a):{complete:c||!c&&b||p.isFunction(a)&&a,duration:a,easing:c&&b||b&&!p.isFunction(b)&&b};d.duration=p.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in p.fx.speeds?p.fx.speeds[d.duration]:p.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";return d.old=d.complete,d.complete=function(){p.isFunction(d.old)&&d.old.call(this),d.queue&&p.dequeue(this,d.queue)},d},p.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},p.timers=[],p.fx=cZ.prototype.init,p.fx.tick=function(){var a,b=p.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||p.fx.stop()},p.fx.timer=function(a){a()&&p.timers.push(a)&&!cO&&(cO=setInterval(p.fx.tick,p.fx.interval))},p.fx.interval=13,p.fx.stop=function(){clearInterval(cO),cO=null},p.fx.speeds={slow:600,fast:200,_default:400},p.fx.step={},p.expr&&p.expr.filters&&(p.expr.filters.animated=function(a){return p.grep(p.timers,function(b){return a===b.elem}).length});var c_=/^(?:body|html)$/i;p.fn.offset=function(a){if(arguments.length)return a===b?this:this.each(function(b){p.offset.setOffset(this,a,b)});var c,d,e,f,g,h,i,j,k,l,m=this[0],n=m&&m.ownerDocument;if(!n)return;return(e=n.body)===m?p.offset.bodyOffset(m):(d=n.documentElement,p.contains(d,m)?(c=m.getBoundingClientRect(),f=da(n),g=d.clientTop||e.clientTop||0,h=d.clientLeft||e.clientLeft||0,i=f.pageYOffset||d.scrollTop,j=f.pageXOffset||d.scrollLeft,k=c.top+i-g,l=c.left+j-h,{top:k,left:l}):{top:0,left:0})},p.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;return p.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(p.css(a,"marginTop"))||0,c+=parseFloat(p.css(a,"marginLeft"))||0),{top:b,left:c}},setOffset:function(a,b,c){var d=p.css(a,"position");d==="static"&&(a.style.position="relative");var e=p(a),f=e.offset(),g=p.css(a,"top"),h=p.css(a,"left"),i=(d==="absolute"||d==="fixed")&&p.inArray("auto",[g,h])>-1,j={},k={},l,m;i?(k=e.position(),l=k.top,m=k.left):(l=parseFloat(g)||0,m=parseFloat(h)||0),p.isFunction(b)&&(b=b.call(a,c,f)),b.top!=null&&(j.top=b.top-f.top+l),b.left!=null&&(j.left=b.left-f.left+m),"using"in b?b.using.call(a,j):e.css(j)}},p.fn.extend({position:function(){if(!this[0])return;var a=this[0],b=this.offsetParent(),c=this.offset(),d=c_.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(p.css(a,"marginTop"))||0,c.left-=parseFloat(p.css(a,"marginLeft"))||0,d.top+=parseFloat(p.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(p.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||e.body;while(a&&!c_.test(a.nodeName)&&p.css(a,"position")==="static")a=a.offsetParent;return a||e.body})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);p.fn[a]=function(e){return p.access(this,function(a,e,f){var g=da(a);if(f===b)return g?c in g?g[c]:g.document.documentElement[e]:a[e];g?g.scrollTo(d?p(g).scrollLeft():f,d?f:p(g).scrollTop()):a[e]=f},a,e,arguments.length,null)}}),p.each({Height:"height",Width:"width"},function(a,c){p.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,e){p.fn[e]=function(e,f){var g=arguments.length&&(d||typeof e!="boolean"),h=d||(e===!0||f===!0?"margin":"border");return p.access(this,function(c,d,e){var f;return p.isWindow(c)?c.document.documentElement["client"+a]:c.nodeType===9?(f=c.documentElement,Math.max(c.body["scroll"+a],f["scroll"+a],c.body["offset"+a],f["offset"+a],f["client"+a])):e===b?p.css(c,d,e,h):p.style(c,d,e,h)},c,g?e:b,g,null)}})}),a.jQuery=a.$=p,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return p})})(window);
|
js/bannernext/jquery/jquery.noconflict.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
jQuery.noConflict();
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>NextBits_BannerNext</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>NextBits BannerNext Magento extension for image slider</summary>
|
10 |
+
<description>NextBits BannerNext Magento extension for image slider</description>
|
11 |
+
<notes>-first preview release</notes>
|
12 |
+
<authors><author><name>NextBits Web Solutions Pvt. Ltd.</name><user>nextbits</user><email>nextbitswebsolutions@gmail.com</email></author></authors>
|
13 |
+
<date>2013-06-28</date>
|
14 |
+
<time>13:51:37</time>
|
15 |
+
<contents><target name="magelocal"><dir name="NextBits"><dir name="BannerNext"><dir name="Block"><dir name="Adminhtml"><dir name="Bannernext"><dir name="Edit"><file name="Form.php" hash="9763bc5539158fe58850903def6a98c1"/><dir name="Tab"><file name="Category.php" hash="a59198b47f2e2be1bd0e07438ab515df"/><file name="Form.php" hash="ead5fe37c6d0a9159e06636482a6f509"/><file name="Gallery.php" hash="a74000a133b9f4cf81e0a8c6b4e6e344"/><file name="Page.php" hash="419317f71e24be03b0ed7679c1b54b44"/></dir><file name="Tabs.php" hash="f5153f8733262a9451ac7c8a7d918d95"/></dir><file name="Edit.php" hash="031a49e1568256fa85a679bdb73fb913"/><file name="Grid.php" hash="e932163a96996acae0fbda1a18952120"/></dir><file name="Bannernext.php" hash="ab5d95494ed6d690fecaf096478757eb"/></dir><file name="Banner.php" hash="07ccbadf1439b7b73a1ed515f88cbc53"/><file name="Widget.php" hash="55b73439b2cdd243c24201ad2eb23ab0"/></dir><dir name="Helper"><file name="Data.php" hash="569cc0c5d44fbcf7b1e3bbb40374dfff"/></dir><dir name="Model"><file name="Availablebanners.php" hash="53038f28b8c515ddf2a24af11f3b5b81"/><file name="Bannernext.php" hash="9e343e39648e68e4a8a4fd2a4f511267"/><dir name="Config"><dir name="Source"><file name="Page.php" hash="607fa1de1fc1a7149b6e960d1469b403"/><file name="Position.php" hash="16f3d9b6ef4a25283ebeb1ee221350e2"/></dir></dir><dir name="Mysql4"><dir name="Bannernext"><file name="Collection.php" hash="eac6374b499da5fd9fbd9dfa9d2e3942"/></dir><file name="Bannernext.php" hash="d705c144162806567657123fa78ddf28"/></dir><file name="Observer.php" hash="5ea4f494b766b291bd3ac8f7ce19884c"/><file name="Status.php" hash="13df58ea078181d6997ea36212ede89a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannernextController.php" hash="89035022203ba00d8a653cd76b00a7a7"/></dir></dir><dir name="etc"><file name="config.xml" hash="904aebe20cf57e3f66408e93ce6907c0"/><file name="system.xml" hash="a99c2189b9198509795bb0b74eda1f3c"/><file name="widget.xml" hash="ada7fddb76e7b0d9b5ea5cd231baec28"/></dir><dir name="sql"><dir name="bannernext_setup"><file name="mysql4-install-0.1.0.php" hash="cb466300a00defcbd3425043d052cd92"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="bannernext.xml" hash="8a1494f85f7d1f41eb3b1c2407212b3e"/></dir><dir name="template"><dir name="bannernext"><file name="banner.phtml" hash="f78536f489706dcd536a50ba6808bb2b"/><file name="banner.phtml#" hash="7c4bc6443a2929ba2eca37f164c0aa80"/><dir name="edit"><dir name="tab"><file name="category.phtml" hash="fd539d50d42bfcb80a21a1257aef2121"/><file name="gallery-backup-editor.txt" hash="71e42a74a55998897f6e012d16c4a670"/><file name="gallery.phtml" hash="9c2701ec2327a797685e758aaaad7a12"/><file name="image.phtml" hash="6832ef1caacae2b1a8addf424c75d80f"/></dir></dir><file name="uploader.phtml" hash="092da0e260a48788d43720387bd4c5f6"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="bannernext.xml" hash="9d69326ccd164591934938bfe248a6a5"/></dir><dir name="template"><dir name="bannernext"><file name="banner.phtml" hash="f88e5f37f2b61fbd13181790d1a44bf2"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NextBits_BannerNext.xml" hash="b809bfd4b663a71632a77191ce0500eb"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="bannernext"><dir name="skitter_slideshow"><file name="README.textile" hash="a51e201d972258ece6e3b0af5312d37b"/><dir name="css"><file name="highlight.black.css" hash="788c79331b0b1cd63920861fac19510b"/><file name="highlight.css" hash="9740467c0a8249bce6a00371eebc5c96"/><file name="skitter.styles.css" hash="36f6761fc282a0062990b15da8e4a2e2"/><file name="skitter.styles.resonsive.css" hash="1d015f82ea443425948982b5a1068456"/><file name="styles.css" hash="c158638cf0502f1152e5b71bc8e84587"/></dir><file name="fullscreen.html" hash="fdf9af36f2202726f7f7b39d0bd35734"/><dir name="images"><file name="001.jpg" hash="3e64b4c106be672e9f241b359e983d44"/><file name="002.jpg" hash="10d61986f3899cec2ad3ab97b63d9450"/><file name="003.jpg" hash="9e3c7f630c5980643bee8fd6a042e9a4"/><file name="004.jpg" hash="b6b419ef8af3ef526ee23b470d64ff6f"/><file name="005.jpg" hash="9863dc112058144d734ac4ca2e94946d"/><file name="006.jpg" hash="cd45f1b7e76da44f7a180446a60a0bf2"/><file name="007.jpg" hash="f4a48edf5be360dfcb001c195b51d704"/><file name="008.jpg" hash="15167e62fc5afd21a056c7de2ff7f848"/><file name="009.jpg" hash="b755541ad2d8ddbacb35eead71f36c01"/><file name="010.jpg" hash="998070d5e57cf54cc0c87f422d61429c"/><file name="011.jpg" hash="9456a5126be69b4aba2ba5de96520ab5"/><file name="012.jpg" hash="7f7d79561373c3a6e5ec4ee179f8819b"/><file name="013.jpg" hash="6fc10af8acdf5e20cbf9280be39b590f"/><file name="014.jpg" hash="15c19a2b8cafda20043de41b415ffccf"/><file name="015.jpg" hash="da0bddac47fb9029aedec7636f9a912e"/><file name="016.jpg" hash="ca832732f474a04e072a9001c53fa255"/><file name="017.jpg" hash="a5135081bcce0d1e2ff18286c6e2b005"/><file name="018.jpg" hash="b12bb98fb4a7e71f83476bf831276419"/><file name="019.jpg" hash="e2cc1c8c4a2283506a512361020f15f9"/><file name="020.jpg" hash="295c329400e540f8506afc5e37d10541"/><file name="021.jpg" hash="3e974f34b0cdc92eac0505722151a48c"/><file name="022.jpg" hash="d53e2fdc6641fb81d454b8324e25ce34"/><file name="ajax-loader.gif" hash="37e24e0370847870c1c43ea9ce19b1f4"/><file name="back-box-label-black.png" hash="b01b0552b61224f13e80b1ec834e33c9"/><file name="background.gif" hash="4e3d49edf41760318255a96712e2e943"/><file name="donate-button.png" hash="3d252077bc6f39a0e1f5275e6acfb2d3"/><file name="download-button.png" hash="f8b30d3e74938879c64ffe3d02bb2d66"/><file name="download-helper.png" hash="c2c765a6acce07fbe0a91c9be3de8563"/><file name="download-wp.png" hash="59bf2b75bc2b09a6189a903a0f338ac8"/><file name="favicon.ico" hash="6e728336995de8db5152f9d1be89e92b"/><file name="focus-button.png" hash="c7c65a7e866cfd9eda4df3431c0e58d7"/><file name="logo-thiago.png" hash="bd0456bd2fe2690fd94ed448464d682f"/><file name="logo.gif" hash="f9ac56547729113421770f1a3ce077b0"/><file name="logo.png" hash="b1340357b1d721bf39e12ee3b3a9ac63"/><file name="next.png" hash="60a367588cbd341acab2216629d41f39"/><file name="pause-button.png" hash="4ade832a2c3cad15e3e3e18db7b8cbd5"/><file name="play-button.png" hash="9fc21ab2e0572a5219e9caa1dc67f2e1"/><file name="prev.png" hash="f1c757b12560aeb70a1aa4898c8c3aad"/><file name="sexy-sprite.png" hash="b7ba313f58a820d0933d01e7990a6e29"/><file name="sharing-caring.png" hash="1ab271f5a84fa23f7c4224f1f9f6ab95"/><file name="this-is-a-free-plugin.png" hash="078aa0ef3470e83541589b2807f02529"/></dir><file name="index.html" hash="6dfc81b1ff9ac9d18733273566fd7f92"/><dir name="js"><file name="highlight.js" hash="fa006a4cff74da2811e5e4750d697f46"/><file name="jquery-1.5.2.min.js" hash="c580234a054e07276cbedbe2993a2378"/><file name="jquery-1.6.3.min.js" hash="29312d8b0d2e5a331161b2f3d89a39e2"/><file name="jquery.animate-colors-min.js" hash="b61bdf5245e4d30450e78687faee5fca"/><file name="jquery.easing.1.3.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/><file name="jquery.min.js" hash="65b352e1ba79f0e2a3b1e014bc2571af"/><file name="jquery.skitter.js" hash="628711ead56282025dfe36d47eb4972f"/><file name="jquery.skitter.min.js" hash="4726d85b97e99fabe29aa5c3c4a8cf47"/><file name="sexy-bookmarks-public.js" hash="4fa77e94f3dbe28b96bd85d6e1bc35d3"/></dir><file name="multiple.html" hash="8642ff99c857618b31d7c32ab17b15cc"/><dir name="xml"><file name="slides.xml" hash="e2117375141db9ed9b5a42cdce2182ec"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="bannernext"><dir name="jquery"><file name="jquery-1.8.1.min.js" hash="a9a0cc296e96bbeaa0f82498e2da0917"/><file name="jquery.noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="NextBits_BannerNext.csv" hash="f645242cea8a69ca09df5d62b4e9ec0d"/></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.7</max></package></required></dependencies>
|
18 |
+
</package>
|
skin/frontend/default/default/bannernext/skitter_slideshow/README.textile
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
h1. Skitter - Slideshow for anytime!
|
2 |
+
|
3 |
+
With 30 different animations, two types of navigation and many options to customize!
|
4 |
+
|
5 |
+
License: Dual licensed under the MIT or GPL Version 2 licenses
|
skin/frontend/default/default/bannernext/skitter_slideshow/css/highlight.black.css
ADDED
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
div.highlight {
|
2 |
+
background:#fff;
|
3 |
+
border:1px solid #000;
|
4 |
+
font-family:consolas,deja vu,"Courier New",Courier,monospace;
|
5 |
+
overflow: hidden;
|
6 |
+
}
|
7 |
+
div.highlight pre{
|
8 |
+
width: 100%;
|
9 |
+
overflow: auto;
|
10 |
+
padding:0;
|
11 |
+
margin:0;
|
12 |
+
font-size:12px;
|
13 |
+
clear: both;
|
14 |
+
}
|
15 |
+
|
16 |
+
/* tabs */
|
17 |
+
div.highlight ul.tabs {
|
18 |
+
overflow: hidden;
|
19 |
+
padding: 5px 0 5px 0;
|
20 |
+
margin: 0;
|
21 |
+
list-style: none;
|
22 |
+
border-bottom: 0px solid #E0E0E0;
|
23 |
+
width: 100%;
|
24 |
+
background:#111;
|
25 |
+
font-size:12px;
|
26 |
+
}
|
27 |
+
div.highlight ul.tabs li {
|
28 |
+
padding: 0;
|
29 |
+
margin: 0 5px;
|
30 |
+
float: left;
|
31 |
+
background: none;
|
32 |
+
border-bottom: 1px dashed #CCC;
|
33 |
+
line-height:1.0em;
|
34 |
+
color: #CCC;
|
35 |
+
cursor: pointer;
|
36 |
+
}
|
37 |
+
div.highlight ul.tabs li.active {
|
38 |
+
border-bottom: none;
|
39 |
+
cursor: default;
|
40 |
+
color: #cc9966;
|
41 |
+
}
|
42 |
+
|
43 |
+
/* pre */
|
44 |
+
div.highlight pre.code ol {
|
45 |
+
margin: 0;
|
46 |
+
padding:0 0 0 45px;
|
47 |
+
background:#555;
|
48 |
+
color:#fff;
|
49 |
+
}
|
50 |
+
div.highlight pre.code ul {
|
51 |
+
margin: 0;
|
52 |
+
padding:0;
|
53 |
+
}
|
54 |
+
div.highlight pre.code ol li,
|
55 |
+
div.highlight pre.code ul li {
|
56 |
+
padding:0 0 0 5px;
|
57 |
+
border-left:1px solid #999;
|
58 |
+
background:#333;
|
59 |
+
}
|
60 |
+
div.highlight pre.code ul li {
|
61 |
+
border-left:none;
|
62 |
+
}
|
63 |
+
div.highlight pre.code ol li.even,
|
64 |
+
div.highlight pre.code ul li.even {
|
65 |
+
background-color:#222;
|
66 |
+
}
|
67 |
+
div.highlight pre.source {
|
68 |
+
display: none;
|
69 |
+
padding:0 0 0 5px;
|
70 |
+
color:#333;
|
71 |
+
background:#ccc;
|
72 |
+
}
|
73 |
+
|
74 |
+
/* highligting */
|
75 |
+
pre.code .str {
|
76 |
+
color: #00cc33;
|
77 |
+
}
|
78 |
+
pre.code .kwd,
|
79 |
+
pre.code .kwd span {
|
80 |
+
color: #ccc;
|
81 |
+
}
|
82 |
+
pre.code .com,
|
83 |
+
pre.code .com span {
|
84 |
+
color:#ff0000;
|
85 |
+
font-style: italic;
|
86 |
+
font-weight: normal;
|
87 |
+
}
|
88 |
+
pre.code .typ {
|
89 |
+
color: #ff0000;
|
90 |
+
}
|
91 |
+
pre.code .lit {
|
92 |
+
color: #ffff00;
|
93 |
+
}
|
94 |
+
pre.code .pun {
|
95 |
+
color: #ff3300; }
|
96 |
+
pre.code .pln {
|
97 |
+
color: #ccc;
|
98 |
+
}
|
99 |
+
pre.code .tag {
|
100 |
+
color: #0099ff;
|
101 |
+
font-weight: bold;
|
102 |
+
}
|
103 |
+
pre.code .atn {
|
104 |
+
color: #ff9000;
|
105 |
+
}
|
106 |
+
pre.code .atv {
|
107 |
+
color: #00cc22;
|
108 |
+
}
|
109 |
+
pre.code .dec {
|
110 |
+
color: #ff9000;
|
111 |
+
}
|
112 |
+
pre.code .fnc,
|
113 |
+
pre.code .fnc span {
|
114 |
+
color: #ff9000;
|
115 |
+
}
|
116 |
+
|
117 |
+
/* css */
|
118 |
+
.css pre.code .kwd,
|
119 |
+
.css pre.code .kwd span {
|
120 |
+
color: #ff9900;
|
121 |
+
font-weight: bold;
|
122 |
+
}
|
123 |
+
/* php */
|
124 |
+
.php pre.code .str,
|
125 |
+
.php pre.code .str span {
|
126 |
+
color: #fff;
|
127 |
+
}
|
128 |
+
.php pre.code .var,
|
129 |
+
.php pre.code .var span {
|
130 |
+
color: #fff;
|
131 |
+
}
|
132 |
+
.php pre.code .com,
|
133 |
+
.php pre.code .com span {
|
134 |
+
color:#ff8000;
|
135 |
+
font-style: italic;
|
136 |
+
font-weight: normal;
|
137 |
+
}
|
skin/frontend/default/default/bannernext/skitter_slideshow/css/highlight.css
ADDED
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
div.highlight {
|
2 |
+
background:#fff;
|
3 |
+
border:1px solid #000;
|
4 |
+
font-family:consolas,deja vu,"Courier New",Courier,monospace;
|
5 |
+
overflow: hidden;
|
6 |
+
}
|
7 |
+
div.highlight pre{
|
8 |
+
width: 100%;
|
9 |
+
overflow: auto;
|
10 |
+
padding:0;
|
11 |
+
margin:0;
|
12 |
+
font-size:12px;
|
13 |
+
clear: both;
|
14 |
+
}
|
15 |
+
|
16 |
+
/* tabs */
|
17 |
+
div.highlight ul.tabs {
|
18 |
+
overflow: hidden;
|
19 |
+
padding: 5px 0 5px 0;
|
20 |
+
margin: 0;
|
21 |
+
list-style: none;
|
22 |
+
border-bottom: 0px solid #E0E0E0;
|
23 |
+
width: 100%;
|
24 |
+
background:#333;
|
25 |
+
font-size:12px;
|
26 |
+
}
|
27 |
+
div.highlight ul.tabs li {
|
28 |
+
padding: 0;
|
29 |
+
margin: 0 5px;
|
30 |
+
float: left;
|
31 |
+
background: none;
|
32 |
+
border-bottom: 1px dashed #CCC;
|
33 |
+
line-height:1.0em;
|
34 |
+
color: #CCC;
|
35 |
+
cursor: pointer;
|
36 |
+
}
|
37 |
+
div.highlight ul.tabs li.active {
|
38 |
+
border-bottom: none;
|
39 |
+
cursor: default;
|
40 |
+
color: #cc9966;
|
41 |
+
}
|
42 |
+
|
43 |
+
/* pre */
|
44 |
+
div.highlight pre.code ol {
|
45 |
+
margin: 0;
|
46 |
+
padding:0 0 0 45px;
|
47 |
+
background:#999;
|
48 |
+
color:#444;
|
49 |
+
}
|
50 |
+
div.highlight pre.code ul {
|
51 |
+
margin: 0;
|
52 |
+
padding:0;
|
53 |
+
}
|
54 |
+
div.highlight pre.code ol li,
|
55 |
+
div.highlight pre.code ul li {
|
56 |
+
padding:0 0 0 5px;
|
57 |
+
border-left:3px solid #ccc;
|
58 |
+
background:#e1e1e1;
|
59 |
+
}
|
60 |
+
div.highlight pre.code ul li {
|
61 |
+
border-left:none;
|
62 |
+
}
|
63 |
+
div.highlight pre.code ol li.even,
|
64 |
+
div.highlight pre.code ul li.even {
|
65 |
+
background-color:#FFFFFF;
|
66 |
+
}
|
67 |
+
div.highlight pre.source {
|
68 |
+
display: none;
|
69 |
+
padding:0 0 0 5px;
|
70 |
+
color:#333;
|
71 |
+
background:#e1e1e1;
|
72 |
+
}
|
73 |
+
|
74 |
+
/* highligting */
|
75 |
+
pre.code .str {
|
76 |
+
color: #080;
|
77 |
+
}
|
78 |
+
pre.code .kwd,
|
79 |
+
pre.code .kwd span {
|
80 |
+
color: #070;
|
81 |
+
}
|
82 |
+
pre.code .com,
|
83 |
+
pre.code .com span {
|
84 |
+
color:#080;
|
85 |
+
font-style: italic;
|
86 |
+
font-weight: normal;
|
87 |
+
}
|
88 |
+
pre.code .typ {
|
89 |
+
color: #606;
|
90 |
+
}
|
91 |
+
pre.code .lit {
|
92 |
+
color: #066;
|
93 |
+
}
|
94 |
+
pre.code .pun {
|
95 |
+
color: #660; }
|
96 |
+
pre.code .pln {
|
97 |
+
color: #000;
|
98 |
+
}
|
99 |
+
pre.code .tag {
|
100 |
+
color: #008;
|
101 |
+
font-weight: bold;
|
102 |
+
}
|
103 |
+
pre.code .atn {
|
104 |
+
color: #606;
|
105 |
+
}
|
106 |
+
pre.code .atv {
|
107 |
+
color: #080;
|
108 |
+
}
|
109 |
+
pre.code .dec {
|
110 |
+
color: #606;
|
111 |
+
}
|
112 |
+
pre.code .fnc,
|
113 |
+
pre.code .fnc span {
|
114 |
+
color: #00b;
|
115 |
+
}
|
116 |
+
|
117 |
+
/* css */
|
118 |
+
.css pre.code .kwd,
|
119 |
+
.css pre.code .kwd span {
|
120 |
+
color: #008;
|
121 |
+
font-weight: bold;
|
122 |
+
}
|
123 |
+
/* php */
|
124 |
+
.php pre.code .str,
|
125 |
+
.php pre.code .str span {
|
126 |
+
color: #d00;
|
127 |
+
}
|
128 |
+
.php pre.code .var,
|
129 |
+
.php pre.code .var span {
|
130 |
+
color: #00b;
|
131 |
+
}
|
132 |
+
.php pre.code .com,
|
133 |
+
.php pre.code .com span {
|
134 |
+
color:#ff8000;
|
135 |
+
font-style: italic;
|
136 |
+
font-weight: normal;
|
137 |
+
}
|
skin/frontend/default/default/bannernext/skitter_slideshow/css/skitter.styles.css
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* =Skitter styles
|
2 |
+
----------------------------------------------- */
|
3 |
+
.border_box { clear:both;}
|
4 |
+
.box_skitter {position:relative;width:800px;height:300px;/* background:#000; */ margin-bottom:20px;}
|
5 |
+
.box_skitter img { max-width:none; } /* Tip for stildv */
|
6 |
+
.box_skitter ul {display:none;}
|
7 |
+
.box_skitter .container_skitter {overflow:hidden;position:relative;}
|
8 |
+
.box_skitter .image {overflow:hidden;}
|
9 |
+
.box_skitter .image img {display:none;}
|
10 |
+
|
11 |
+
/* =Box clone
|
12 |
+
-------------------------------------------------------------- */
|
13 |
+
.box_skitter .box_clone {position:absolute;top:0;left:0;width:100px;overflow:hidden;display:none;z-index:20;}
|
14 |
+
.box_skitter .box_clone img {position:absolute;top:0;left:0;z-index:20;}
|
15 |
+
|
16 |
+
/* =Navigation
|
17 |
+
-------------------------------------------------------------- */
|
18 |
+
.box_skitter .prev_button {position:absolute;top:50%;left:35px;z-index:100;width:42px;height:42px;overflow:hidden;text-indent:-9999em;margin-top:-25px;background:url(../images/prev.png) no-repeat left top;}
|
19 |
+
.box_skitter .next_button {position:absolute;top:50%;right:35px;z-index:100;width:42px;height:42px;overflow:hidden;text-indent:-9999em;margin-top:-25px;background:url(../images/next.png) no-repeat left top;}
|
20 |
+
|
21 |
+
/* =Numbers
|
22 |
+
-------------------------------------------------------------- */
|
23 |
+
.box_skitter .info_slide {position:absolute;top:15px;left:15px;z-index:100;background:#000;color:#fff;font:bold 11px arial;padding:5px 0 5px 5px;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;opacity:0.75;}
|
24 |
+
.box_skitter .info_slide .image_number {background:#333;float:left;padding:2px 10px;margin:0 5px 0 0;cursor:pointer;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;}
|
25 |
+
.box_skitter .info_slide .image_number_select {background:#cc0000;float:left;padding:2px 10px;margin:0 5px 0 0;}
|
26 |
+
|
27 |
+
/* =Thumbs
|
28 |
+
Change width and height to customization dimension thumb
|
29 |
+
-------------------------------------------------------------- */
|
30 |
+
.box_skitter .container_thumbs { position:relative;overflow:hidden;height:50px; }
|
31 |
+
.box_skitter .info_slide_thumb { height:50px;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;overflow:hidden;top:auto;top:0;left:0;padding:0 !important;opacity:1.0; }
|
32 |
+
.box_skitter .info_slide_thumb .image_number { overflow:hidden;width:100px;height:50px;position:relative;margin:0 !important; padding:0 !important; -moz-border-radius:0 !important;-webkit-border-radius:0 !important;border-radius:0 !important;}
|
33 |
+
.box_skitter .info_slide_thumb .image_number img { position:absolute;top:-30px;left:-30px;height:100px;}
|
34 |
+
.box_skitter .box_scroll_thumbs { padding:0; }
|
35 |
+
.box_skitter .box_scroll_thumbs .scroll_thumbs { position:absolute;bottom:60px;left:50px;background:#ccc;background:-moz-linear-gradient(-90deg, #555, #fff);background:-webkit-gradient(linear, left top, left bottom, from(#555), to(#fff));width:200px;height:10px;overflow:hidden;text-indent:-9999em;z-index:101; cursor:pointer;border:0px solid #333; }
|
36 |
+
|
37 |
+
/* =Dots
|
38 |
+
-------------------------------------------------------------- */
|
39 |
+
.box_skitter .info_slide_dots {position:absolute;bottom:10px;z-index:151;padding:5px 0 5px 5px;-moz-border-radius:50px;-webkit-border-radius:50px;border-radius:50px;}
|
40 |
+
.box_skitter .info_slide_dots .image_number {background:#333;float:left;margin:0 5px 0 0;cursor:pointer;-moz-border-radius:50px;-webkit-border-radius:50px;border-radius:50px;width:18px;height:18px;text-indent:-9999em;overflow:hidden;}
|
41 |
+
.box_skitter .info_slide_dots .image_number_select {background:#cc0000;float:left;margin:0 5px 0 0;}
|
42 |
+
|
43 |
+
/* =Loading
|
44 |
+
-------------------------------------------------------------- */
|
45 |
+
.loading {position:absolute; top:50%; right:50%; z-index:10000; margin:-16px -16px;color:#fff;text-indent:-9999em;overflow:hidden;background:url(../images/ajax-loader.gif) no-repeat left top;width:32px;height:32px;}
|
46 |
+
|
47 |
+
/* =Label
|
48 |
+
-------------------------------------------------------------- */
|
49 |
+
.box_skitter .label_skitter { z-index:150;position:absolute;bottom:0px;left:0px;display:none; }
|
50 |
+
.box_skitter .label_skitter { z-index:150;position:absolute;bottom:0px;left:0px;color:#fff;display:none;opacity:0.8;background:#000; }
|
51 |
+
.box_skitter .label_skitter p { padding:10px;margin:0;font:normal 22px arial,tahoma;letter-spacing:-1px; }
|
52 |
+
.box_skitter .info_slide * { font-family:Consolas,arial,tahoma !important; }
|
53 |
+
.box_skitter .progressbar { background:#000; position:absolute; top:5px;left:15px;height:5px; width: 200px; z-index:99; border-radius:20px; }
|
54 |
+
|
55 |
+
/* =Preview slide
|
56 |
+
-------------------------------------------------------------- */
|
57 |
+
.box_skitter .preview_slide { display:none; position:absolute; z-index:152; bottom:30px; left:-40px; width:100px; height:100px; background:#fff; border:1px solid #222; -moz-box-shadow:rgba(0,0,0,0.7) 2px 2px 5px; -webkit-box-shadow:rgba(0,0,0,0.7) 2px 2px 5px; box-shadow:rgba(0,0,0,0.7) 2px 2px 5px; overflow:hidden; }
|
58 |
+
.box_skitter .preview_slide ul { height:100px; overflow:hidden; margin:0; list-style:none; display:block; position:absolute; top:0; left:0; }
|
59 |
+
.box_skitter .preview_slide ul li { width:100px; height:100px; overflow:hidden; float:left; margin:0; padding:0; position:relative; display:block; }
|
60 |
+
.box_skitter .preview_slide ul li img { position:absolute; top:0; left:0; height:150px; width:auto; }
|
61 |
+
|
62 |
+
/* =Focus
|
63 |
+
-------------------------------------------------------------- */
|
64 |
+
#overlay_skitter { position:absolute; top:0; left:0; width:100%; z-index:9998; opacity:1; background:#000; }
|
65 |
+
|
66 |
+
.box_skitter .focus_button {position:absolute;top:50%;z-index:100;width:42px;height:42px;overflow:hidden;text-indent:-9999em;margin-top:-25px;background:url(../images/focus-button.png) no-repeat left top;opacity:0;}
|
67 |
+
.box_skitter .play_pause_button {position:absolute;top:50%;z-index:151;width:42px;height:42px;overflow:hidden;text-indent:-9999em;margin-top:-25px;background:url(../images/pause-button.png) no-repeat left top;opacity:0;}
|
68 |
+
.box_skitter .play_pause_button.play_button {background:url(../images/play-button.png) no-repeat left top;}
|
69 |
+
|
70 |
+
/* =Example for dimenions
|
71 |
+
-------------------------------------------------------------- */
|
72 |
+
.box_skitter_large {width:800px;height:300px;}
|
73 |
+
.box_skitter_small {width:200px;height:100px;}
|
skin/frontend/default/default/bannernext/skitter_slideshow/css/skitter.styles.resonsive.css
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* =Responsive css start
|
2 |
+
-------------------------------------------------------------- */
|
3 |
+
|
4 |
+
.box_skitter .container_skitter { width:100% !important; height:auto !important;}
|
5 |
+
.box_skitter .container_skitter img { width:100%;}
|
6 |
+
.box_skitter .label_skitter { width:100% !important;}
|
7 |
+
.box_skitter .box_clone { width:100%; height:auto !important;}
|
8 |
+
.box_skitter_large { max-width:100%;}
|
9 |
+
|
10 |
+
|
11 |
+
/***** Standard 960px *****/
|
12 |
+
@media only screen and (min-width:1200px) {
|
13 |
+
/* .box_skitter { width:100% !important;}
|
14 |
+
.box_skitter .container_skitter { width:100% !important;}
|
15 |
+
.box_skitter .container_skitter img { width:100%;} */
|
16 |
+
}
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
/***** iPad Smaller than 959px *****/
|
21 |
+
@media only screen and (min-width: 768px) and (max-width: 959px) {
|
22 |
+
.box_skitter { width:100% !important;}
|
23 |
+
.box_skitter .container_skitter { width:100% !important; height:auto !important;}
|
24 |
+
.box_skitter .container_skitter img { width:100%;}
|
25 |
+
.box_skitter .label_skitter p { font-size:18px;}
|
26 |
+
}
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
/***** iPhone (landscape) *****/
|
31 |
+
@media only screen and (min-width: 480px) and (max-width: 767px) {
|
32 |
+
.box_skitter { width:100% !important;}
|
33 |
+
.box_skitter .container_skitter { width:100% !important; height:auto !important;}
|
34 |
+
.box_skitter .container_skitter img { width:100%;}
|
35 |
+
.box_skitter .label_skitter p { font-size:12px;}
|
36 |
+
}
|
37 |
+
|
38 |
+
|
39 |
+
|
40 |
+
|
41 |
+
/***** iPhone (portrait) *****/
|
42 |
+
@media only screen and (max-width: 767px) {
|
43 |
+
.box_skitter { width:100% !important; max-height:130px !important;}
|
44 |
+
.box_skitter .container_skitter { width:100% !important; height:auto !important;}
|
45 |
+
.box_skitter .container_skitter img { width:100%;}
|
46 |
+
.box_skitter .box_clone { width:100%; height:auto !important;}
|
47 |
+
.box_skitter .label_skitter p { font-size:14px;}
|
48 |
+
}
|
49 |
+
|
50 |
+
/* =Responsive css end
|
skin/frontend/default/default/bannernext/skitter_slideshow/css/styles.css
ADDED
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
* { margin:0; padding:0; list-style:none; }
|
2 |
+
|
3 |
+
body { background:url(../images/bg-page.png) repeat left top; font-family:'Mako',arial,tahoma; }
|
4 |
+
|
5 |
+
a, a img { border:none; outline:none; color:#004499; }
|
6 |
+
|
7 |
+
.content-width { width:980px; margin:0 auto; }
|
8 |
+
.clear { clear:both; }
|
9 |
+
|
10 |
+
#page { background:url(../images/bg-header-repeat.png) repeat-x left top; margin-bottom:50px; }
|
11 |
+
|
12 |
+
#header { height:110px; background:url(../images/bg-header.png) no-repeat center top; margin:0 auto; margin-bottom:20px; }
|
13 |
+
#header h1 a { width:220px; height:90px; float:left; margin:0px 0 0 0; overflow:hidden; text-indent:-9999em; background:url(../images/logo.png) no-repeat center top; }
|
14 |
+
|
15 |
+
#header nav { float:right; margin:30px 0 0 0; }
|
16 |
+
#header nav a { color:#fff; padding:10px 25px; -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px; float:left; margin:0 15px 0 0; text-decoration:none; text-shadow:#000 1px 1px 0;
|
17 |
+
-moz-transition:all ease-out 0.3s;
|
18 |
+
-webkit-transition:all ease-out 0.3s;
|
19 |
+
transition:all ease-out 0.3s;
|
20 |
+
position:relative;
|
21 |
+
z-index:5;
|
22 |
+
}
|
23 |
+
|
24 |
+
#header nav a:hover, #header nav a.active { background:#000; /*box-shadow:rgba(255,255,255,0.3) 0 0 10px;*/ }
|
25 |
+
|
26 |
+
#bt-lang { width:40px; height:40px; position:absolute; overflow:hidden; text-indent:-9999em; background:url(../images/bt-lang.png) no-repeat center top; right:0; top:0; -moz-transition:opacity 0.2s; }
|
27 |
+
#bt-lang:hover { opacity:0.7; }
|
28 |
+
|
29 |
+
#box-languages { position:absolute; top:40px; right:0; background:#000; width:40px; z-index:250; -moz-border-radius:0 0 0 3px;-webkit-border-radius:0 0 0 3px;border-radius:0 0 0 3px; display:none; }
|
30 |
+
#box-languages ul { float:left; margin-top:3px; width:40px; padding:0; }
|
31 |
+
#box-languages ul li { float:left; margin-bottom:0px; width:40px; text-align:center; padding:0; }
|
32 |
+
#box-languages ul li a { float:left; margin-left:4px; }
|
33 |
+
#box-languages ul li a img { float:left; }
|
34 |
+
|
35 |
+
#content {}
|
36 |
+
|
37 |
+
/* =Pages
|
38 |
+
-------------------------------------------------------------- */
|
39 |
+
.page { display:none; }
|
40 |
+
.page.active { display:block; }
|
41 |
+
|
42 |
+
.page h1 { font-size:36px; margin-bottom:20px; letter-spacing:-2px; }
|
43 |
+
.page h2 { margin-bottom:20px; color:#777; }
|
44 |
+
.page h3 { margin-bottom:20px; color:#999; }
|
45 |
+
|
46 |
+
/* =Configurations
|
47 |
+
-------------------------------------------------------------- */
|
48 |
+
|
49 |
+
#box-bts-config { position:relative; }
|
50 |
+
|
51 |
+
.bt-config { background:url(../images/bt-config.png) no-repeat center top; width:120px; height:120px; text-align:center; position:relative; z-index:5; text-indent:-9999em; overflow:hidden; display:block; margin:0 auto; }
|
52 |
+
|
53 |
+
#box-config { background:url(../images/bg-config.jpg) repeat left top; margin-top:-60px; padding-bottom:10px; color:#fff; float:left; width:100%; display:none; }
|
54 |
+
|
55 |
+
#nav-config { float:left; margin:60px 0 20px 190px; }
|
56 |
+
#nav-config a { float:left; padding:10px 20px; border-bottom:5px solid #333; color:#fff; text-decoration:none; text-shadow:none;
|
57 |
+
-moz-transition:all 0.2s;
|
58 |
+
}
|
59 |
+
#nav-config a:hover { text-shadow:#000 0 0 5px; border-color:#555; }
|
60 |
+
#nav-config a.active { border-color:#228822; }
|
61 |
+
|
62 |
+
.back-nav { background:#000; position:absolute; z-index:4; }
|
63 |
+
|
64 |
+
#box-all-config { float:left; width:100%; position:relative; margin-bottom:10px; }
|
65 |
+
#box-all-config .item-config { display:none; position:absolute; top:0; left:0; }
|
66 |
+
#box-all-config .item-config.active { display:block !important; }
|
67 |
+
#box-animations {}
|
68 |
+
|
69 |
+
#bt-apply { position:absolute; top:32px; right:0px; text-indent:-9999em; overflow:hidden; width:64px; height:64px; background:url(../images/bt-apply.png) no-repeat left top; display:none; }
|
70 |
+
#bt-apply:hover { background:url(../images/bt-apply-over.png) no-repeat left top; }
|
71 |
+
|
72 |
+
#box-your-code {}
|
73 |
+
#box-your-code pre { background:#111; padding:30px; -moz-border-radius:3px;-webkit-border-radius:33px;border-radius:3px; font:14px consolas,'courier new'; padding-left:80px; }
|
74 |
+
|
75 |
+
#bt-up { position:fixed; top: 50%; right:50px; width:100px; height:100px; opacity:0.2; background:url(../images/bt-up.png) no-repeat left top; text-indent:-9999em; overflow:hidden; cursor:pointer; }
|
76 |
+
|
77 |
+
/* =Buttons
|
78 |
+
-------------------------------------------------------------- */
|
79 |
+
.list-buttons {}
|
80 |
+
.list-buttons li { position:relative; float:left; }
|
81 |
+
.list-buttons li a { float:left; padding:10px 20px; background:#111; color:#fff; text-decoration:none; font-size:14px; -moz-border-radius:3
|
82 |
+
px;-webkit-border-radius:3px;border-radius:3px; margin:0 10px 10px 0; }
|
83 |
+
.list-buttons li a:hover { background:#000; }
|
84 |
+
.list-buttons li a.new { background:#991100; }
|
85 |
+
.list-buttons li a.new:hover { background:#aa1100; }
|
86 |
+
|
87 |
+
.list-buttons li a.active { background:#228822; }
|
88 |
+
.list-buttons li a.active:hover { background:#009922; }
|
89 |
+
|
90 |
+
.list-select { display:none; position:absolute; top:0; left:0; -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px; padding:3px 0; background:#111; z-index:10; border:1px solid #000; box-shadow:#333 0 0 5px; width:120px; }
|
91 |
+
.list-select li { width:120px; }
|
92 |
+
.list-select li a { padding:5px 10px; width:100px; margin:0; -moz-border-radius:0px;-webkit-border-radius:0px;border-radius:0px; }
|
93 |
+
|
94 |
+
/* =Footer
|
95 |
+
-------------------------------------------------------------- */
|
96 |
+
#footer { position:fixed; bottom:0; left:0; width:100%;height:50px; z-index:200; }
|
97 |
+
#credits { float:left; margin:2px 0 0 5px; text-indent:-9999em; overflow:hidden; width:42px; height:42px; background:url(../images/logo-thiago.png) no-repeat left top; position:relative; z-index:10; }
|
98 |
+
#footer section { float:right; margin:15px 15px 0 0; position:relative; z-index:10; }
|
99 |
+
#back-footer { position:absolute; z-index:9; background:url(../images/bg-page.png) repeat left top;opacity:0.8; width:100%; height:50px; }
|
100 |
+
|
101 |
+
/* =Skitter
|
102 |
+
-------------------------------------------------------------- */
|
103 |
+
.border-skitter { margin:0px auto; border:1px solid #000; width:800px; height:300px; background:#333; margin-bottom:40px; -moz-box-shadow:rgba(0,0,0,0.5) 0 0 10px; }
|
104 |
+
|
105 |
+
/* =Documentation
|
106 |
+
-------------------------------------------------------------- */
|
107 |
+
#page-documentation {}
|
108 |
+
#page-documentation dl { margin-bottom:30px; float:left; width:100%; }
|
109 |
+
#page-documentation dl dt { font-size:26px; color:#cc3333; font-weight:bold; }
|
110 |
+
#page-documentation dl dd p.definition-description { font-size:16px; margin-bottom:10px; }
|
111 |
+
#page-documentation dl dd p { font-size:14px; margin-bottom:2px; float:left; width:100%; }
|
112 |
+
#page-documentation dl dd p strong { float:left; width:60px; background:#333; color:#fff; padding:2px 5px; margin-right:10px; -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px; font-weight:normal; font-size:12px; text-align:right; }
|
113 |
+
|
114 |
+
#page-documentation dl dd p span { margin-left:85px; display:block; }
|
115 |
+
|
116 |
+
#page-documentation dl dd p.dd-default { }
|
117 |
+
#page-documentation dl dd p.dd-accept { }
|
118 |
+
#page-documentation dl dd p.dd-code { font-family:consolas,'courier new'; font-size:12px; }
|
119 |
+
|
120 |
+
/* =Updatelog
|
121 |
+
-------------------------------------------------------------- */
|
122 |
+
#box-updatelog { }
|
123 |
+
#box-updatelog dl { float:left; width:100%; margin-top:-30px; }
|
124 |
+
#box-updatelog dl dt { font-size:26px; color:#cc3333; font-weight:bold; margin-top:30px; }
|
125 |
+
#box-updatelog dl dd { font-size:14px; margin-bottom:2px; }
|
126 |
+
|
127 |
+
/* =Download
|
128 |
+
-------------------------------------------------------------- */
|
129 |
+
#box-download { margin:0 auto; width:580px; margin-top:50px; }
|
130 |
+
#box-download a { -moz-transition:color 0.2s; }
|
131 |
+
#box-download a:hover { color:#999; text-decoration:underline; }
|
132 |
+
|
133 |
+
.bt-download-big { width:200px; text-align:center; float:left; margin:0 50px; }
|
134 |
+
.bt-download-big a { font-size:18px; font-weight:bold; color:#000; text-decoration:none; position:relative; }
|
135 |
+
|
136 |
+
.bt-download-small { width:140px; text-align:center; float:left; margin-top:30px; }
|
137 |
+
.bt-download-small a { font-size:14px; color:#000; text-decoration:none; position:relative; }
|
138 |
+
|
139 |
+
#bt-download-wp { width:140px; height:140px; background:url(../images/bt-download-wp.png) no-repeat left top; text-indent:-9999em; overflow:hidden; cursor:pointer; float:left; }
|
140 |
+
|
141 |
+
#bt-download-helper { width:140px; height:140px; background:url(../images/bt-download-helper.png) no-repeat left top; text-indent:-9999em; overflow:hidden; cursor:pointer; float:left; }
|
142 |
+
|
143 |
+
#bt-download-stable { width:200px; height:200px; background:url(../images/bt-download-stable.png) no-repeat left top; text-indent:-9999em; overflow:hidden; cursor:pointer; float:left; }
|
144 |
+
|
145 |
+
#box-banner-help { float:left; width:100%; }
|
146 |
+
#banner-help { width:728px; margin:0 auto; /*margin-top:100px;*/ margin-top:50px; }
|
147 |
+
#banner-help p { font-size:14px; color:#000; margin-bottom:5px; }
|
148 |
+
#banner-help div { /*background:#000;*/ width:728px; height:90px; }
|
149 |
+
|
150 |
+
/* =Comments
|
151 |
+
-------------------------------------------------------------- */
|
152 |
+
#box-comments { }
|
153 |
+
|
154 |
+
/* =Multiple
|
155 |
+
-------------------------------------------------------------- */
|
156 |
+
#page-multiple {}
|
157 |
+
#page-multiple .border_box { margin-bottom:50px; }
|
158 |
+
|
159 |
+
/* =Donate
|
160 |
+
-------------------------------------------------------------- */
|
161 |
+
#box-donate { float: left; width: 100%; text-align: center; margin: 40px 0 0 0; }
|
skin/frontend/default/default/bannernext/skitter_slideshow/fullscreen.html
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2 |
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br">
|
3 |
+
<head>
|
4 |
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
5 |
+
<title>Skitter - Slideshow for anytime!</title>
|
6 |
+
|
7 |
+
<meta name="description" content="Slideshow flexible with many options for customizations. Distributed under the GPL license" />
|
8 |
+
<meta name="keywords" content="slides, slide, slideshow, gallery, images, effects, easing, transitions, jquery, plugin, gpl license, free, customizations, flexible" />
|
9 |
+
<meta name="author" content="Thiago S.F. - http://thiagosf.net" />
|
10 |
+
|
11 |
+
<link href='http://fonts.googleapis.com/css?family=Gloria+Hallelujah' rel='stylesheet' type='text/css'>
|
12 |
+
<link href='http://fonts.googleapis.com/css?family=Rosario' rel='stylesheet' type='text/css'>
|
13 |
+
|
14 |
+
<link rel="shortcut icon" href="images/favicon.ico">
|
15 |
+
<link href="css/styles.css" type="text/css" media="all" rel="stylesheet" />
|
16 |
+
<link href="css/skitter.styles.css" type="text/css" media="all" rel="stylesheet" />
|
17 |
+
|
18 |
+
<script src="js/jquery-1.6.3.min.js"></script>
|
19 |
+
<script src="js/jquery.easing.1.3.js"></script>
|
20 |
+
<script src="js/jquery.animate-colors-min.js"></script>
|
21 |
+
<script src="js/jquery.skitter.min.js"></script>
|
22 |
+
|
23 |
+
<script>
|
24 |
+
$(document).ready(function(){
|
25 |
+
|
26 |
+
// Skitter Tester
|
27 |
+
$('.box_skitter_large').skitter({fullscreen:true});
|
28 |
+
|
29 |
+
});
|
30 |
+
</script>
|
31 |
+
</head>
|
32 |
+
<body style="margin:0;padding:0">
|
33 |
+
<div id="content" style="margin:0;padding:0">
|
34 |
+
<div class="border_box" style="margin:0;padding:0">
|
35 |
+
<div class="box_skitter box_skitter_large" style="margin:0;padding:0">
|
36 |
+
<ul>
|
37 |
+
<li><a href="#cube"><img src="images/001.jpg" class="cube" /></a><div class="label_text"><p>cube</p></div></li>
|
38 |
+
<li><a href="#cubeRandom"><img src="images/002.jpg" class="cubeRandom" /></a><div class="label_text"><p>cubeRandom</p></div></li>
|
39 |
+
<li><a href="#block"><img src="images/003.jpg" class="block" /></a><div class="label_text"><p>block</p></div></li>
|
40 |
+
<li><a href="#cubeStop"><img src="images/004.jpg" class="cubeStop" /></a><div class="label_text"><p>cubeStop</p></div></li>
|
41 |
+
<li><a href="#cubeHide"><img src="images/005.jpg" class="cubeHide" /></a><div class="label_text"><p>cubeHide</p></div></li>
|
42 |
+
<li><a href="#cubeSize"><img src="images/006.jpg" class="cubeSize" /></a><div class="label_text"><p>cubeSize</p></div></li>
|
43 |
+
<li><a href="#horizontal"><img src="images/007.jpg" class="horizontal" /></a><div class="label_text"><p>horizontal</p></div></li>
|
44 |
+
<li><a href="#showBars"><img src="images/008.jpg" class="showBars" /></a><div class="label_text"><p>showBars</p></div></li>
|
45 |
+
<li><a href="#showBarsRandom"><img src="images/009.jpg" class="showBarsRandom" /></a><div class="label_text"><p>showBarsRandom</p></div></li>
|
46 |
+
<li><a href="#tube"><img src="images/010.jpg" class="tube" /></a><div class="label_text"><p>tube</p></div></li>
|
47 |
+
<li><a href="#fade"><img src="images/011.jpg" class="fade" /></a><div class="label_text"><p>fade</p></div></li>
|
48 |
+
<li><a href="#fadeFour"><img src="images/012.jpg" class="fadeFour" /></a><div class="label_text"><p>fadeFour</p></div></li>
|
49 |
+
<li><a href="#paralell"><img src="images/013.jpg" class="paralell" /></a><div class="label_text"><p>paralell</p></div></li>
|
50 |
+
<li><a href="#blind"><img src="images/014.jpg" class="blind" /></a><div class="label_text"><p>blind</p></div></li>
|
51 |
+
<li><a href="#blindHeight"><img src="images/015.jpg" class="blindHeight" /></a><div class="label_text"><p>blindHeight</p></div></li>
|
52 |
+
<li><a href="#blindWidth"><img src="images/016.jpg" class="blindWidth" /></a><div class="label_text"><p>blindWidth</p></div></li>
|
53 |
+
<li><a href="#directionTop"><img src="images/017.jpg" class="directionTop" /></a><div class="label_text"><p>directionTop</p></div></li>
|
54 |
+
<li><a href="#directionBottom"><img src="images/018.jpg" class="directionBottom" /></a><div class="label_text"><p>directionBottom</p></div></li>
|
55 |
+
<li><a href="#directionRight"><img src="images/019.jpg" class="directionRight" /></a><div class="label_text"><p>directionRight</p></div></li>
|
56 |
+
<li><a href="#directionLeft"><img src="images/020.jpg" class="directionLeft" /></a><div class="label_text"><p>directionLeft</p></div></li>
|
57 |
+
<li><a href="#cubeStopRandom"><img src="images/021.jpg" class="cubeStopRandom" /></a><div class="label_text"><p>cubeStopRandom</p></div></li>
|
58 |
+
<li><a href="#cubeSpread"><img src="images/022.jpg" class="cubeSpread" /></a><div class="label_text"><p>cubeSpread</p></div></li>
|
59 |
+
</ul>
|
60 |
+
|
61 |
+
</div>
|
62 |
+
</div>
|
63 |
+
</div>
|
64 |
+
</body>
|
65 |
+
</html>
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/001.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/002.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/003.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/004.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/005.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/006.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/007.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/008.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/009.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/010.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/011.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/012.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/013.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/014.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/015.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/016.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/017.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/018.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/019.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/020.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/021.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/022.jpg
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/ajax-loader.gif
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/back-box-label-black.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/background.gif
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/donate-button.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/download-button.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/download-helper.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/download-wp.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/favicon.ico
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/focus-button.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/logo-thiago.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/logo.gif
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/logo.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/next.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/pause-button.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/play-button.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/prev.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/sexy-sprite.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/sharing-caring.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/images/this-is-a-free-plugin.png
ADDED
Binary file
|
skin/frontend/default/default/bannernext/skitter_slideshow/index.html
ADDED
@@ -0,0 +1,425 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2 |
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br">
|
3 |
+
<head>
|
4 |
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
5 |
+
<title>Skitter - Slideshow for anytime!</title>
|
6 |
+
|
7 |
+
<meta name="description" content="Slideshow flexible with many options for customizations. This jQuery Slideshow is free!" />
|
8 |
+
<meta name="keywords" content="jquery slideshow, slides, slide, slideshow, gallery, images, effects, easing, transitions, jquery, plugin, gpl license, free, customizations, flexible" />
|
9 |
+
<meta name="author" content="Thiago S.F. - http://thiagosf.net" />
|
10 |
+
|
11 |
+
<link href='http://fonts.googleapis.com/css?family=Gloria+Hallelujah' rel='stylesheet' type='text/css'>
|
12 |
+
<link href='http://fonts.googleapis.com/css?family=Rosario' rel='stylesheet' type='text/css'>
|
13 |
+
|
14 |
+
<link rel="shortcut icon" href="images/favicon.ico">
|
15 |
+
<link href="css/styles.css" type="text/css" media="all" rel="stylesheet" />
|
16 |
+
<link href="css/skitter.styles.css" type="text/css" media="all" rel="stylesheet" />
|
17 |
+
<link href="css/highlight.black.css" type="text/css" media="all" rel="stylesheet" />
|
18 |
+
<link href="css/sexy-bookmarks-style.css" type="text/css" media="all" rel="stylesheet" />
|
19 |
+
|
20 |
+
<script src="js/jquery-1.6.3.min.js"></script>
|
21 |
+
<script src="js/jquery.easing.1.3.js"></script>
|
22 |
+
<script src="js/jquery.animate-colors-min.js"></script>
|
23 |
+
|
24 |
+
<script src="js/jquery.skitter.min.js"></script>
|
25 |
+
<script src="js/highlight.js"></script>
|
26 |
+
<script src="js/sexy-bookmarks-public.js"></script>
|
27 |
+
|
28 |
+
<script>
|
29 |
+
$(document).ready(function() {
|
30 |
+
|
31 |
+
var options = {};
|
32 |
+
|
33 |
+
if (document.location.search) {
|
34 |
+
var array = document.location.search.split('=');
|
35 |
+
var param = array[0].replace('?', '');
|
36 |
+
var value = array[1];
|
37 |
+
|
38 |
+
if (param == 'animation') {
|
39 |
+
options.animation = value;
|
40 |
+
}
|
41 |
+
else if (param == 'type_navigation') {
|
42 |
+
if (value == 'dots_preview') {
|
43 |
+
$('.border_box').css({'marginBottom': '40px'});
|
44 |
+
options['dots'] = true;
|
45 |
+
options['preview'] = true;
|
46 |
+
}
|
47 |
+
else {
|
48 |
+
options[value] = true;
|
49 |
+
if (value == 'dots') $('.border_box').css({'marginBottom': '40px'});
|
50 |
+
}
|
51 |
+
}
|
52 |
+
}
|
53 |
+
|
54 |
+
$('.box_skitter_large').skitter(options);
|
55 |
+
|
56 |
+
// Highlight
|
57 |
+
$('pre.code').highlight({source:1, zebra:1, indent:'space', list:'ol'});
|
58 |
+
|
59 |
+
});
|
60 |
+
</script>
|
61 |
+
</head>
|
62 |
+
<body>
|
63 |
+
<div id="page">
|
64 |
+
<div id="content">
|
65 |
+
<div class="border_box">
|
66 |
+
<div class="box_skitter box_skitter_large">
|
67 |
+
<ul>
|
68 |
+
<li><a href="#cube"><img src="images/001.jpg" class="cube" /></a><div class="label_text"><p>cube</p></div></li>
|
69 |
+
<li><a href="#cubeRandom"><img src="images/002.jpg" class="cubeRandom" /></a><div class="label_text"><p>cubeRandom</p></div></li>
|
70 |
+
<li><a href="#block"><img src="images/003.jpg" class="block" /></a><div class="label_text"><p>block</p></div></li>
|
71 |
+
<li><a href="#cubeStop"><img src="images/004.jpg" class="cubeStop" /></a><div class="label_text"><p>cubeStop</p></div></li>
|
72 |
+
<li><a href="#cubeHide"><img src="images/005.jpg" class="cubeHide" /></a><div class="label_text"><p>cubeHide</p></div></li>
|
73 |
+
<li><a href="#cubeSize"><img src="images/006.jpg" class="cubeSize" /></a><div class="label_text"><p>cubeSize</p></div></li>
|
74 |
+
<li><a href="#horizontal"><img src="images/007.jpg" class="horizontal" /></a><div class="label_text"><p>horizontal</p></div></li>
|
75 |
+
<li><a href="#showBars"><img src="images/008.jpg" class="showBars" /></a><div class="label_text"><p>showBars</p></div></li>
|
76 |
+
<li><a href="#showBarsRandom"><img src="images/009.jpg" class="showBarsRandom" /></a><div class="label_text"><p>showBarsRandom</p></div></li>
|
77 |
+
<li><a href="#tube"><img src="images/010.jpg" class="tube" /></a><div class="label_text"><p>tube</p></div></li>
|
78 |
+
<li><a href="#fade"><img src="images/011.jpg" class="fade" /></a><div class="label_text"><p>fade</p></div></li>
|
79 |
+
<li><a href="#fadeFour"><img src="images/012.jpg" class="fadeFour" /></a><div class="label_text"><p>fadeFour</p></div></li>
|
80 |
+
<li><a href="#paralell"><img src="images/013.jpg" class="paralell" /></a><div class="label_text"><p>paralell</p></div></li>
|
81 |
+
<li><a href="#blind"><img src="images/014.jpg" class="blind" /></a><div class="label_text"><p>blind</p></div></li>
|
82 |
+
<li><a href="#blindHeight"><img src="images/015.jpg" class="blindHeight" /></a><div class="label_text"><p>blindHeight</p></div></li>
|
83 |
+
<li><a href="#blindWidth"><img src="images/016.jpg" class="blindWidth" /></a><div class="label_text"><p>blindWidth</p></div></li>
|
84 |
+
<li><a href="#directionTop"><img src="images/017.jpg" class="directionTop" /></a><div class="label_text"><p>directionTop</p></div></li>
|
85 |
+
<li><a href="#directionBottom"><img src="images/018.jpg" class="directionBottom" /></a><div class="label_text"><p>directionBottom</p></div></li>
|
86 |
+
<li><a href="#directionRight"><img src="images/019.jpg" class="directionRight" /></a><div class="label_text"><p>directionRight</p></div></li>
|
87 |
+
<li><a href="#directionLeft"><img src="images/020.jpg" class="directionLeft" /></a><div class="label_text"><p>directionLeft</p></div></li>
|
88 |
+
<li><a href="#cubeStopRandom"><img src="images/021.jpg" class="cubeStopRandom" /></a><div class="label_text"><p>cubeStopRandom</p></div></li>
|
89 |
+
<li><a href="#cubeSpread"><img src="images/022.jpg" class="cubeSpread" /></a><div class="label_text"><p>cubeSpread</p></div></li>
|
90 |
+
</ul>
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
|
94 |
+
<div id="examples-animations">
|
95 |
+
<div>
|
96 |
+
<a href="?" class="selected">all</a>
|
97 |
+
<a href="?animation=cube" class="">cube</a>
|
98 |
+
<a href="?animation=cubeRandom" class="">cubeRandom</a>
|
99 |
+
<a href="?animation=block" class="">block</a>
|
100 |
+
<a href="?animation=cubeStop" class="">cubeStop</a>
|
101 |
+
<a href="?animation=cubeHide" class="">cubeHide</a>
|
102 |
+
<a href="?animation=cubeSize" class="">cubeSize</a>
|
103 |
+
<a href="?animation=horizontal" class="">horizontal</a>
|
104 |
+
<a href="?animation=showBars" class="">showBars</a>
|
105 |
+
<a href="?animation=showBarsRandom" class="">showBarsRandom</a>
|
106 |
+
<a href="?animation=tube" class="">tube</a>
|
107 |
+
<a href="?animation=fade" class="">fade</a>
|
108 |
+
<a href="?animation=fadeFour" class="">fadeFour</a>
|
109 |
+
<a href="?animation=paralell" class="">paralell</a>
|
110 |
+
<a href="?animation=blind" class="">blind</a>
|
111 |
+
<a href="?animation=blindHeight" class="">blindHeight</a>
|
112 |
+
<a href="?animation=blindWidth" class="">blindWidth</a>
|
113 |
+
<a href="?animation=directionTop" class="">directionTop</a>
|
114 |
+
<a href="?animation=directionBottom" class="">directionBottom</a>
|
115 |
+
<a href="?animation=directionRight" class="">directionRight</a>
|
116 |
+
<a href="?animation=directionLeft" class="">directionLeft</a>
|
117 |
+
<a href="?animation=cubeStopRandom" class="">cubeStopRandom</a>
|
118 |
+
<a href="?animation=cubeSpread" class="">cubeSpread</a>
|
119 |
+
<a href="?animation=cubeJelly" class="">cubeJelly</a>
|
120 |
+
<a href="?animation=glassCube" class="">glassCube</a>
|
121 |
+
<a href="?animation=glassBlock" class="">glassBlock</a>
|
122 |
+
<a href="?animation=circles" class="">circles</a>
|
123 |
+
<a href="?animation=circlesInside" class="">circlesInside</a>
|
124 |
+
<a href="?animation=circlesRotate" class="">circlesRotate</a>
|
125 |
+
<a href="?animation=cubeShow" class="">cubeShow<span class="new_animation">new!</span></a>
|
126 |
+
<a href="?animation=upBars" class="">upBars<span class="new_animation">new!</span></a>
|
127 |
+
<a href="?animation=downBars" class="">downBars<span class="new_animation">new!</span></a>
|
128 |
+
<a href="?animation=random" class="">random</a>
|
129 |
+
<a href="?animation=randomSmart" class="">randomSmart</a>
|
130 |
+
</div>
|
131 |
+
</div>
|
132 |
+
|
133 |
+
<div style="clear:both"></div>
|
134 |
+
|
135 |
+
<div id="styles_navigation">
|
136 |
+
<h2>Type of loading</h2>
|
137 |
+
<ul>
|
138 |
+
<li><a href="?type_loading=html" class="selected">HTML</a></li>
|
139 |
+
<li><a href="?type_loading=xml" class="">XML</a></li>
|
140 |
+
</ul>
|
141 |
+
</div>
|
142 |
+
|
143 |
+
<div id="styles_navigation">
|
144 |
+
<h2>Type of navigation</h2>
|
145 |
+
<ul>
|
146 |
+
<li><a href="?type_navigation=numbers" class="selected">Numbers</a></li>
|
147 |
+
<li><a href="?type_navigation=thumbs" class="">Thumbs</a></li>
|
148 |
+
<li><a href="?type_navigation=dots" class="">Dots</a></li>
|
149 |
+
<li><a href="?type_navigation=dots_preview" class="">Dots with preview</a><span class="new">new!</span></li>
|
150 |
+
</ul>
|
151 |
+
</div>
|
152 |
+
|
153 |
+
<div id="styles_navigation">
|
154 |
+
|
155 |
+
<h2>Other options</h2>
|
156 |
+
<ul>
|
157 |
+
<li><a href="?other_options=normal" class="">Normal</a></li>
|
158 |
+
<li><a href="?other_options=hideTools" class="">HideTools</a></li>
|
159 |
+
<li><a href="fullscreen.html" class="">Fullscreen</a></li>
|
160 |
+
<li><a href="?other_options=show_randomly" class="">Randomly Sliders</a></li>
|
161 |
+
</ul>
|
162 |
+
</div>
|
163 |
+
|
164 |
+
<div id="styles_navigation">
|
165 |
+
<h2>Other view</h2>
|
166 |
+
<ul>
|
167 |
+
<li><a href="?other_options=mini" class="">Mini-slides</a></li>
|
168 |
+
<li><a href="multiple.html" class="">Multiple instances</a></li>
|
169 |
+
</ul>
|
170 |
+
</div>
|
171 |
+
|
172 |
+
|
173 |
+
|
174 |
+
|
175 |
+
|
176 |
+
<h2>Includes</h2>
|
177 |
+
<pre class="code" lang="html">
|
178 |
+
// Styles
|
179 |
+
<link href="css/skitter.styles.css" type="text/css" media="all" rel="stylesheet" />
|
180 |
+
|
181 |
+
// Scripts
|
182 |
+
<script src="js/jquery-1.5.2.min.js"></script>
|
183 |
+
<script src="js/jquery.skitter.min.js"></script>
|
184 |
+
<script src="js/jquery.easing.1.3.js"></script>
|
185 |
+
<script src="js/jquery.animate-colors-min.js"></script>
|
186 |
+
|
187 |
+
</pre>
|
188 |
+
|
189 |
+
<h2>Javascript</h2>
|
190 |
+
<pre class="code" lang="js">
|
191 |
+
$(function(){
|
192 |
+
$('.box_skitter_large').skitter();
|
193 |
+
});
|
194 |
+
</pre>
|
195 |
+
|
196 |
+
<h2>HTML</h2>
|
197 |
+
<pre class="code" lang="html">
|
198 |
+
<div class="box_skitter box_skitter_large">
|
199 |
+
|
200 |
+
<ul>
|
201 |
+
<li>
|
202 |
+
<a href="http://thiagosf.net"><img src="images/01.jpg" class="block" /></a>
|
203 |
+
|
204 |
+
<div class="label_text">
|
205 |
+
<p>Label</p>
|
206 |
+
</div>
|
207 |
+
</li>
|
208 |
+
<li>
|
209 |
+
|
210 |
+
<a href="http://cakephp.org"><img src="images/02.jpg" class="cube" /></a>
|
211 |
+
<div class="label_text">
|
212 |
+
<p>Label</p>
|
213 |
+
|
214 |
+
</div>
|
215 |
+
</li>
|
216 |
+
<li>
|
217 |
+
<a href="http://jquery.com"><img src="images/03.jpg" class="default" /></a>
|
218 |
+
|
219 |
+
<div class="label_text">
|
220 |
+
<p>Label</p>
|
221 |
+
</div>
|
222 |
+
</li>
|
223 |
+
</ul>
|
224 |
+
|
225 |
+
</div>
|
226 |
+
</pre>
|
227 |
+
|
228 |
+
<h2>XML</h2>
|
229 |
+
<pre class="code" lang="html">
|
230 |
+
<?xml version="1.0" encoding="utf-8"?>
|
231 |
+
<skitter>
|
232 |
+
|
233 |
+
<slide>
|
234 |
+
<link>#directionTop</link>
|
235 |
+
<image type="directionTop">images/001.jpg</image>
|
236 |
+
<label><![CDATA[<p>directionTop</p>]]></label>
|
237 |
+
|
238 |
+
</slide>
|
239 |
+
<slide>
|
240 |
+
<link>#cubeSize</link>
|
241 |
+
<image type="cubeSize">images/002.jpg</image>
|
242 |
+
|
243 |
+
<label><![CDATA[<p>cubeSize</p>]]></label>
|
244 |
+
</slide>
|
245 |
+
<slide>
|
246 |
+
<link>#paralell</link>
|
247 |
+
|
248 |
+
<image type="paralell">images/003.jpg</image>
|
249 |
+
<label><![CDATA[<p>paralell</p>]]></label>
|
250 |
+
</slide>
|
251 |
+
|
252 |
+
</skitter>
|
253 |
+
</pre>
|
254 |
+
|
255 |
+
<div id="options">
|
256 |
+
<h2>Extend</h2>
|
257 |
+
<h3>Options</h3>
|
258 |
+
|
259 |
+
<table>
|
260 |
+
<thead>
|
261 |
+
<tr>
|
262 |
+
<th>option</th>
|
263 |
+
<th>description</th>
|
264 |
+
<th>default</th>
|
265 |
+
<th>example</th>
|
266 |
+
</tr>
|
267 |
+
</thead>
|
268 |
+
<tbody>
|
269 |
+
<tr>
|
270 |
+
<td>velocity</td>
|
271 |
+
<td>Velocity of animation</td>
|
272 |
+
<td>1</td>
|
273 |
+
<td><span class="code">$('.box_skitter_large').skitter({velocity: 2});</span></td>
|
274 |
+
</tr>
|
275 |
+
<tr>
|
276 |
+
<td>interval</td>
|
277 |
+
<td>Interval between transitions</td>
|
278 |
+
<td>2500</td>
|
279 |
+
<td><span class="code">$('.box_skitter_large').skitter({interval: 3000});</span></td>
|
280 |
+
</tr>
|
281 |
+
<tr>
|
282 |
+
<td>animation</td>
|
283 |
+
<td>Default animation</td>
|
284 |
+
<td>null or defined in <a> class</td>
|
285 |
+
<td><span class="code">$('.box_skitter_large').skitter({animation: 'fade'});</span></td>
|
286 |
+
</tr>
|
287 |
+
<tr>
|
288 |
+
<td>numbers</td>
|
289 |
+
<td>Numbers display</td>
|
290 |
+
<td>true</td>
|
291 |
+
<td><span class="code">$('.box_skitter_large').skitter({numbers: false});</span></td>
|
292 |
+
</tr>
|
293 |
+
<tr>
|
294 |
+
<td>navigation</td>
|
295 |
+
<td>Navigation display</td>
|
296 |
+
<td>true</td>
|
297 |
+
<td><span class="code">$('.box_skitter_large').skitter({navigation: false});</span></td>
|
298 |
+
</tr>
|
299 |
+
<tr>
|
300 |
+
<td>label</td>
|
301 |
+
<td>Label display</td>
|
302 |
+
<td>true</td>
|
303 |
+
<td><span class="code">$('.box_skitter_large').skitter({label: false});</span></td>
|
304 |
+
</tr>
|
305 |
+
<tr>
|
306 |
+
<td>easing_default</td>
|
307 |
+
<td>Easing default</td>
|
308 |
+
<td>null</td>
|
309 |
+
<td><span class="code">$('.box_skitter_large').skitter({easing_default: 'easeOutBack'});</span></td>
|
310 |
+
</tr>
|
311 |
+
<tr>
|
312 |
+
<td>animateNumberOut</td>
|
313 |
+
<td>Animation/style number/dot</td>
|
314 |
+
<td>{backgroundColor:'#333', color:'#fff'}</td>
|
315 |
+
<td><span class="code">$('.box_skitter_large').skitter({animateNumberOut: {backgroundColor:'#000', color:'#ccc'}});</span></td>
|
316 |
+
</tr>
|
317 |
+
<tr>
|
318 |
+
<td>animateNumberOver</td>
|
319 |
+
<td>Animation/style hover number/dot</td>
|
320 |
+
<td>{backgroundColor:'#000', color:'#fff'}</td>
|
321 |
+
<td><span class="code">$('.box_skitter_large').skitter({animateNumberOver: {backgroundColor:'#000', color:'#ccc'}});</span></td>
|
322 |
+
</tr>
|
323 |
+
<tr>
|
324 |
+
<td>animateNumberActive</td>
|
325 |
+
<td>Animation/style active number/dot</td>
|
326 |
+
<td>{backgroundColor:'#cc3333', color:'#fff'}</td>
|
327 |
+
<td><span class="code">$('.box_skitter_large').skitter({animateNumberActive: {backgroundColor:'#000', color:'#ccc'}});</span></td>
|
328 |
+
</tr>
|
329 |
+
<tr>
|
330 |
+
<td>thumbs</td>
|
331 |
+
<td>Navigation with thumbs</td>
|
332 |
+
<td>false</td>
|
333 |
+
<td><span class="code">$('.box_skitter_large').skitter({thumbs: true});</span></td>
|
334 |
+
</tr>
|
335 |
+
<tr>
|
336 |
+
<td>hideTools</td>
|
337 |
+
<td>Hide numbers and navigation</td>
|
338 |
+
<td>false</td>
|
339 |
+
<td><span class="code">$('.box_skitter_large').skitter({hideTools: true});</span></td>
|
340 |
+
</tr>
|
341 |
+
<tr>
|
342 |
+
<td>fullscreen</td>
|
343 |
+
<td>Fullscreen mode</td>
|
344 |
+
<td>false</td>
|
345 |
+
<td><span class="code">$('.box_skitter_large').skitter({fullscreen: true});</span></td>
|
346 |
+
</tr>
|
347 |
+
<tr>
|
348 |
+
<td>xml</td>
|
349 |
+
<td>Loading data from XML file</td>
|
350 |
+
<td>false</td>
|
351 |
+
<td><span class="code">$('.box_skitter_large').skitter({xml: "xml/slides.xml"});</span></td>
|
352 |
+
</tr>
|
353 |
+
<tr>
|
354 |
+
<td>dots</td>
|
355 |
+
<td>Navigation with dots</td>
|
356 |
+
<td>false</td>
|
357 |
+
<td><span class="code">$('.box_skitter_large').skitter({dots: true});</span></td>
|
358 |
+
</tr>
|
359 |
+
<tr>
|
360 |
+
<td>width_label</td>
|
361 |
+
<td>Width label</td>
|
362 |
+
<td>null</td>
|
363 |
+
<td><span class="code">$('.box_skitter_large').skitter({width_label: '300px'});</span></td>
|
364 |
+
</tr>
|
365 |
+
<tr>
|
366 |
+
<td>show_randomly</td>
|
367 |
+
<td>Randomly sliders</td>
|
368 |
+
<td>false</td>
|
369 |
+
<td><span class="code">$('.box_skitter_large').skitter({show_randomly: true});</span></td>
|
370 |
+
</tr>
|
371 |
+
<tr>
|
372 |
+
<td>onLoad</td>
|
373 |
+
<td>Callback</td>
|
374 |
+
<td>null</td>
|
375 |
+
<td><span class="code">$('.box_skitter_large').skitter({onLoad: function() { console.log('start!') } });</span></td>
|
376 |
+
</tr>
|
377 |
+
<tr>
|
378 |
+
<td>numbers_align</td>
|
379 |
+
<td>Alignment of numbers/dots/thumbs</td>
|
380 |
+
<td>left</td>
|
381 |
+
<td><span class="code">$('.box_skitter_large').skitter({numbers_align: 'center'});</span></td>
|
382 |
+
</tr>
|
383 |
+
<tr>
|
384 |
+
<td>preview</td>
|
385 |
+
<td>Preview with dots</td>
|
386 |
+
<td>false</td>
|
387 |
+
<td><span class="code">$('.box_skitter_large').skitter({dots: true, preview: true});</span></td>
|
388 |
+
</tr>
|
389 |
+
<tr>
|
390 |
+
<td>focus</td>
|
391 |
+
<td>Focus slideshow</td>
|
392 |
+
<td>false</td>
|
393 |
+
<td><span class="code">$('.box_skitter_large').skitter({focus: true});</span></td>
|
394 |
+
</tr>
|
395 |
+
<tr>
|
396 |
+
<td>focus_position</td>
|
397 |
+
<td>Position of button focus slideshow</td>
|
398 |
+
<td>center</td>
|
399 |
+
<td><span class="code">$('.box_skitter_large').skitter({focus_position: 'leftTop'});</span></td>
|
400 |
+
</tr>
|
401 |
+
<tr>
|
402 |
+
<td>controls</td>
|
403 |
+
<td>Option play/pause manually</td>
|
404 |
+
<td>false</td>
|
405 |
+
<td><span class="code">$('.box_skitter_large').skitter({controls: true});</span></td>
|
406 |
+
</tr>
|
407 |
+
<tr>
|
408 |
+
<td>controls_position</td>
|
409 |
+
<td>Position of button controls</td>
|
410 |
+
<td>center</td>
|
411 |
+
<td><span class="code">$('.box_skitter_large').skitter({controls_position: 'rightBottom'});</span></td>
|
412 |
+
</tr>
|
413 |
+
</tbody>
|
414 |
+
</table>
|
415 |
+
</div>
|
416 |
+
</div>
|
417 |
+
|
418 |
+
<div id="footer">
|
419 |
+
<p>Thiago S.F.</p>
|
420 |
+
<p><a href="http://thiagosf.net">thiagosf.net</a></p>
|
421 |
+
</div>
|
422 |
+
|
423 |
+
</div>
|
424 |
+
</body>
|
425 |
+
</html>
|
skin/frontend/default/default/bannernext/skitter_slideshow/js/highlight.js
ADDED
@@ -0,0 +1,297 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* jQuery Highlight Plugin
|
3 |
+
* Examples and documentation at: http://demo.webcodingstudio.com/highlight/
|
4 |
+
* Copyright (c) 2010 E. Matsakov
|
5 |
+
* Version: 1.0 (26-FEB-2010)
|
6 |
+
* Dual licensed under the MIT and GPL licenses:
|
7 |
+
* http://www.opensource.org/licenses/mit-license.php
|
8 |
+
* http://www.gnu.org/licenses/gpl.html
|
9 |
+
* Requires: jQuery v1.2.6 or later
|
10 |
+
*/
|
11 |
+
(function($){
|
12 |
+
$.fn.highlight = function(element_params){
|
13 |
+
|
14 |
+
var defaults = {
|
15 |
+
// show source code tab
|
16 |
+
source: true,
|
17 |
+
// show zebra
|
18 |
+
zebra: true,
|
19 |
+
//indents: "tabs" or "space"
|
20 |
+
indent: 'tabs',
|
21 |
+
//ordered or unordered list
|
22 |
+
list: 'ol'
|
23 |
+
}
|
24 |
+
|
25 |
+
var params = $.extend({}, defaults, element_params);
|
26 |
+
|
27 |
+
return this.each(function(){
|
28 |
+
var code_container = $(this);
|
29 |
+
var code_class = $(code_container).attr('class');
|
30 |
+
var code_lang = $(code_container).attr('lang');
|
31 |
+
var code_lang_class = '';
|
32 |
+
if(code_lang!='') {
|
33 |
+
code_lang_class = ' '+code_lang;
|
34 |
+
}
|
35 |
+
$(code_container).wrap('<div class="highlight'+code_lang_class+'"></div>');
|
36 |
+
var highlight_container = $(code_container).parent();
|
37 |
+
|
38 |
+
var source = code_container.html();
|
39 |
+
source = source.replace(/</gm, '<');
|
40 |
+
|
41 |
+
//replace tabs with spaces
|
42 |
+
if(params.indent=='space') {
|
43 |
+
source = source.replace(/\t/g,' ');
|
44 |
+
}
|
45 |
+
|
46 |
+
var code = source;
|
47 |
+
|
48 |
+
//hightlight
|
49 |
+
switch(code_lang) {
|
50 |
+
case 'html':
|
51 |
+
code = $.highlightCode.hightlight_html(code);
|
52 |
+
break;
|
53 |
+
case 'css':
|
54 |
+
code = $.highlightCode.hightlight_css(code);
|
55 |
+
break;
|
56 |
+
case 'php':
|
57 |
+
code = $.highlightCode.hightlight_php(code);
|
58 |
+
break;
|
59 |
+
default:
|
60 |
+
code = $.highlightCode.hightlight(code);
|
61 |
+
break;
|
62 |
+
}
|
63 |
+
|
64 |
+
code = code.replace(/(?:\r\n?|\n)$/, '');
|
65 |
+
code = '<'+params.list+'><li>'+code.split(/\r\n|\n/).join('\n</li><li>')+'\n</li></'+params.list+'>';
|
66 |
+
|
67 |
+
//add source and tabs
|
68 |
+
if(params.source==true) {
|
69 |
+
source = '<pre class="source">'+source+'</pre>';
|
70 |
+
var tabs = '<ul class="tabs"><li class="code active">code</li><li class="source">source</li></ul>';
|
71 |
+
$(code_container).after(source);
|
72 |
+
$(code_container).before(tabs);
|
73 |
+
}
|
74 |
+
|
75 |
+
|
76 |
+
//init tabs
|
77 |
+
if(params.source==true) {
|
78 |
+
var tabs = $(highlight_container).find('ul.tabs li');
|
79 |
+
$.each(tabs , function(i,tab){
|
80 |
+
$(tab).click(function() {
|
81 |
+
$(tabs).removeClass('active');
|
82 |
+
var tab_class = $(tab).attr('class');
|
83 |
+
$(highlight_container).find('pre[class!="'+tab_class+'"]').css('display', 'none');
|
84 |
+
$(highlight_container).find('pre[class^="'+tab_class+'"]').css('display', 'block');
|
85 |
+
$(tab).addClass('active');
|
86 |
+
});
|
87 |
+
});
|
88 |
+
|
89 |
+
}
|
90 |
+
|
91 |
+
//replace instead of html, because of IE bug
|
92 |
+
$(code_container).replaceWith('<pre class="'+code_class+'">'+code+'</pre>');
|
93 |
+
|
94 |
+
//zebra
|
95 |
+
if(params.zebra==true) {
|
96 |
+
$(highlight_container).find('pre[class="'+code_class+'"] '+params.list+' li:even').addClass('even');
|
97 |
+
}
|
98 |
+
});
|
99 |
+
};
|
100 |
+
|
101 |
+
$.highlightCode = {
|
102 |
+
|
103 |
+
//DEFAULT
|
104 |
+
hightlight: function(code) {
|
105 |
+
|
106 |
+
var comments = []; // store comments
|
107 |
+
|
108 |
+
code = code
|
109 |
+
//replace keywords
|
110 |
+
.replace(/(var|function|typeof|new|return|if|for|in|while|break|do|continue|case|switch)([^a-z0-9\$_])/gi,'<span class="kwd">$1</span>$2')
|
111 |
+
//replace keywords
|
112 |
+
.replace(/(\{|\}|\]|\[|\|)/gi,'<span class="kwd">$1</span>')
|
113 |
+
//replace strings
|
114 |
+
.replace(/('.*?')/g,'<span class="str">$1</span>')
|
115 |
+
//replace multiline comments
|
116 |
+
.replace(/\/\*([\s\S]*?)\*\//g, function(m, t)
|
117 |
+
{ return '\0C'+push(comments, multiline_comments(m))+'\0'; })
|
118 |
+
.replace(/\0C(\d+)\0/g, function(m, i)
|
119 |
+
{ return comments[i]; })
|
120 |
+
//replace one line comments
|
121 |
+
.replace(/\/\/(.*$)/gm,'<span class="com">//$1</span>')
|
122 |
+
//replace functons
|
123 |
+
.replace(/([a-z\_\$][a-z0-9_]*)\(/gi,'<span class="fnc">$1</span>(');
|
124 |
+
return code;
|
125 |
+
},
|
126 |
+
|
127 |
+
//PHP
|
128 |
+
hightlight_php: function(code) {
|
129 |
+
|
130 |
+
var comments = []; // store comments
|
131 |
+
|
132 |
+
var funcs = 'abs acos acosh addcslashes addslashes ' +
|
133 |
+
'array_change_key_case array_chunk array_combine array_count_values array_diff '+
|
134 |
+
'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
|
135 |
+
'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
|
136 |
+
'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
|
137 |
+
'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
|
138 |
+
'array_push array_rand array_reduce array_reverse array_search array_shift '+
|
139 |
+
'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
|
140 |
+
'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
|
141 |
+
'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
|
142 |
+
'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
|
143 |
+
'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
|
144 |
+
'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
|
145 |
+
'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
|
146 |
+
'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
|
147 |
+
'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
|
148 |
+
'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
|
149 |
+
'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
|
150 |
+
'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
|
151 |
+
'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
|
152 |
+
'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
|
153 |
+
'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
|
154 |
+
'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
|
155 |
+
'gettimeofday gettype glob gmdate gmmktime in_array ini_alter ini_get ini_get_all ini_restore ini_set '+
|
156 |
+
'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
|
157 |
+
'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
|
158 |
+
'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
|
159 |
+
'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
|
160 |
+
'parse_ini_file parse_str parse_url passthru pathinfo readlink realpath rewind rewinddir rmdir '+
|
161 |
+
'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
|
162 |
+
'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
|
163 |
+
'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
|
164 |
+
'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
|
165 |
+
'strtoupper strtr strval substr substr_compare';
|
166 |
+
|
167 |
+
var keywords = 'and or xor array as break case ' +
|
168 |
+
'cfunction const continue declare default die do else ' +
|
169 |
+
'elseif enddeclare endfor endforeach endif endswitch endwhile ' +
|
170 |
+
'extends for foreach function include include_once global if ' +
|
171 |
+
'new old_function return static switch use require require_once ' +
|
172 |
+
'while abstract interface public implements extends private protected throw';
|
173 |
+
|
174 |
+
funcs = new RegExp(get_keywords(funcs), 'gi');
|
175 |
+
keywords = new RegExp(get_keywords(keywords), 'gi');
|
176 |
+
|
177 |
+
code = code
|
178 |
+
//replace strings
|
179 |
+
.replace(/(".*?")/g,'<span class="str">$1</span>')
|
180 |
+
.replace(/('.*?')/g,'<span class="str">$1</span>')
|
181 |
+
//replace multiline comments
|
182 |
+
.replace(/\/\*([\s\S]*?)\*\//g, function(m, t)
|
183 |
+
{ return '\0C'+push(comments, multiline_comments(m))+'\0'; })
|
184 |
+
.replace(/\0C(\d+)\0/g, function(m, i)
|
185 |
+
{ return comments[i]; })
|
186 |
+
//replace one line comments
|
187 |
+
.replace(/\/\/(.*$)/gm,'<span class="com">//$1</span>')
|
188 |
+
//replace variables
|
189 |
+
.replace(/\$(\w+)/g,'<span class="var">$$$1</span>')
|
190 |
+
//replace functions
|
191 |
+
.replace(funcs,'<span class="fnc">$1</span>$2')
|
192 |
+
//replace keywords
|
193 |
+
.replace(keywords,'<span class="kwd">$1</span>$2');
|
194 |
+
return code;
|
195 |
+
},
|
196 |
+
|
197 |
+
//CSS
|
198 |
+
hightlight_css: function(code) {
|
199 |
+
|
200 |
+
var comments = []; // store comments
|
201 |
+
|
202 |
+
var keywords = 'background-color background-image background-position ' +
|
203 |
+
'background-repeat background border-collapse border-color border-spacing border-style border-top ' +
|
204 |
+
'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
|
205 |
+
'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
|
206 |
+
'border-bottom-width border-left-width border-width border color cursor direction display ' +
|
207 |
+
'float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
|
208 |
+
'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
|
209 |
+
'margin-right margin-bottom margin-left margin max-height max-width min-height min-width ' +
|
210 |
+
'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding position' +
|
211 |
+
'quotes right size src table-layout text-align top text-decoration text-indent text-shadow text-transform ' +
|
212 |
+
'vertical-align visibility white-space width word-spacing x-height z-index position -moz-border-radius -webkit-border-radius border-radius opacity';
|
213 |
+
|
214 |
+
var values = 'absolute all attr auto baseline behind below black blink block blue bold bolder '+
|
215 |
+
'both bottom capitalize caption center center-left center-right circle close-quote collapse compact '+
|
216 |
+
'continuous cursive dashed decimal default digits disc dotted double embed expanded fixed format '+
|
217 |
+
'gray green groove help hidden hide high higher icon inline-table inline inset inside invert italic '+
|
218 |
+
'justify large larger left-side left leftwards level line-through list-item '+
|
219 |
+
'lowercase lower low ltr marker medium middle move none no-repeat normal nowrap oblique olive once outset '+
|
220 |
+
'outside overline pointer print purple red relative repeat repeat-x repeat-y rgb right rtl screen scroll show silver slower slow '+
|
221 |
+
'small small-caps small-caption smaller soft solid square s-resize static sub super '+
|
222 |
+
'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group '+
|
223 |
+
'text-bottom text-top thick thin top transparent underline upper-alpha uppercase upper-latin '+
|
224 |
+
'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-low x-small x-soft yellow';
|
225 |
+
|
226 |
+
var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier New mono sans serif';
|
227 |
+
|
228 |
+
keywords = new RegExp(get_keywords(keywords), 'gi');
|
229 |
+
values = new RegExp(get_keywords(values), 'gi');
|
230 |
+
fonts = new RegExp(get_keywords(fonts), 'gi');
|
231 |
+
|
232 |
+
code = code
|
233 |
+
//replace comments
|
234 |
+
.replace(/\/\*([\s\S]*?)\*\//g, function(m, t)
|
235 |
+
{ return '\0C'+push(comments, multiline_comments(m))+'\0'; })
|
236 |
+
.replace(/\0C(\d+)\0/g, function(m, i)
|
237 |
+
{ return comments[i]; })
|
238 |
+
//replace keywords
|
239 |
+
.replace(keywords,'<span class="kwd">$1</span>$2')
|
240 |
+
//replace values
|
241 |
+
.replace(values,'<span class="pln">$1</span>$2')
|
242 |
+
//replace fonts
|
243 |
+
.replace(fonts,'<span class="str">$1</span>$2')
|
244 |
+
//replace hex colors
|
245 |
+
.replace(/(\#[a-fA-F0-9]{3,6})/gi,'<span class="lit">$1</span>')
|
246 |
+
//replace sizes
|
247 |
+
.replace(/(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/gi,'<span class="lit">$1$3</span>');
|
248 |
+
return code;
|
249 |
+
},
|
250 |
+
|
251 |
+
//HTML
|
252 |
+
hightlight_html: function(code) {
|
253 |
+
|
254 |
+
code = code
|
255 |
+
//replace attributes
|
256 |
+
.replace(/\s+([a-zA-Z\-]{0,15})\=\"([-a-z0-9_ \/\.\#\:\=\;]{0,49})\"/gi,' <span class="atn">$1</span>=<span class="atv">"$2"</span>')
|
257 |
+
//replace open tags
|
258 |
+
.replace(/(<)(\w{0,15})(\s+|>|>)/gi,'$1<span class="tag">$2</span>$3')
|
259 |
+
//replace close tags
|
260 |
+
.replace(/(<)\/(\w{0,15})(>|>)/gi,'$1/<span class="tag">$2</span>$3')
|
261 |
+
//replace doctype
|
262 |
+
.replace(/(<!)([-a-z0-9_ \/\.\#\:\"]{0,150})(>|>)/gi,'<span class="dec">$1$2$3</span>')
|
263 |
+
//replace comments
|
264 |
+
.replace(/(<|<)!--([\s\S]*?)--(>|>)/gm,'<span class="com">$1!--$2--$3</span>');
|
265 |
+
|
266 |
+
return code;
|
267 |
+
}
|
268 |
+
};
|
269 |
+
|
270 |
+
/*
|
271 |
+
* helpers
|
272 |
+
*/
|
273 |
+
|
274 |
+
//prepare regexp template for keywords
|
275 |
+
function get_keywords(str)
|
276 |
+
{
|
277 |
+
return '(' + str.replace(/ /g, '|') + ')([^a-z0-9\$_])';
|
278 |
+
}
|
279 |
+
|
280 |
+
//process multiline comments
|
281 |
+
function multiline_comments(text)
|
282 |
+
{
|
283 |
+
text = text.split('\n');
|
284 |
+
for(var i=0; i<text.length; i++) {
|
285 |
+
text[i] = '<span class="com">'+text[i]+'</span>';
|
286 |
+
}
|
287 |
+
return text.join('\n');
|
288 |
+
}
|
289 |
+
|
290 |
+
//add element, return index
|
291 |
+
function push(array, element)
|
292 |
+
{
|
293 |
+
array.push(element);
|
294 |
+
return array.length-1;
|
295 |
+
}
|
296 |
+
|
297 |
+
})(jQuery);
|
skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery-1.5.2.min.js
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jQuery JavaScript Library v1.5.2
|
3 |
+
* http://jquery.com/
|
4 |
+
*
|
5 |
+
* Copyright 2011, John Resig
|
6 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
7 |
+
* http://jquery.org/license
|
8 |
+
*
|
9 |
+
* Includes Sizzle.js
|
10 |
+
* http://sizzlejs.com/
|
11 |
+
* Copyright 2011, The Dojo Foundation
|
12 |
+
* Released under the MIT, BSD, and GPL Licenses.
|
13 |
+
*
|
14 |
+
* Date: Thu Mar 31 15:28:23 2011 -0400
|
15 |
+
*/
|
16 |
+
(function(a,b){function ci(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cf(a){if(!b_[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";b_[a]=c}return b_[a]}function ce(a,b){var c={};d.each(cd.concat.apply([],cd.slice(0,b)),function(){c[this]=a});return c}function b$(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bZ(){try{return new a.XMLHttpRequest}catch(b){}}function bY(){d(a).unload(function(){for(var a in bW)bW[a](0,1)})}function bS(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h==="string"&&(f[h.toLowerCase()]=a.converters[h]);l=k,k=e[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=f[m]||f["* "+k];if(!n){p=b;for(o in f){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=f[j[1]+" "+k];if(p){o=f[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&d.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bR(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 bQ(a,b,c,e){if(d.isArray(b)&&b.length)d.each(b,function(b,f){c||bs.test(a)?e(a,f):bQ(a+"["+(typeof f==="object"||d.isArray(f)?b:"")+"]",f,c,e)});else if(c||b==null||typeof b!=="object")e(a,b);else if(d.isArray(b)||d.isEmptyObject(b))e(a,"");else for(var f in b)bQ(a+"["+f+"]",b[f],c,e)}function bP(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===bJ,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=bP(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bP(a,c,d,e,"*",g));return l}function bO(a){return function(b,c){typeof b!=="string"&&(c=b,b="*");if(d.isFunction(c)){var e=b.toLowerCase().split(bD),f=0,g=e.length,h,i,j;for(;f<g;f++)h=e[f],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bq(a,b,c){var e=b==="width"?bk:bl,f=b==="width"?a.offsetWidth:a.offsetHeight;if(c==="border")return f;d.each(e,function(){c||(f-=parseFloat(d.css(a,"padding"+this))||0),c==="margin"?f+=parseFloat(d.css(a,"margin"+this))||0:f-=parseFloat(d.css(a,"border"+this+"Width"))||0});return f}function bc(a,b){b.src?d.ajax({url:b.src,async:!1,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||""),b.parentNode&&b.parentNode.removeChild(b)}function bb(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function ba(a,b){if(b.nodeType===1){var c=b.nodeName.toLowerCase();b.clearAttributes(),b.mergeAttributes(a);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(d.expando)}}function _(a,b){if(b.nodeType===1&&d.hasData(a)){var c=d.expando,e=d.data(a),f=d.data(b,e);if(e=e[c]){var g=e.events;f=f[c]=d.extend({},e);if(g){delete f.handle,f.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)d.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function $(a,b){return d.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Q(a,b,c){if(d.isFunction(b))return d.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return d.grep(a,function(a,d){return a===b===c});if(typeof b==="string"){var e=d.grep(a,function(a){return a.nodeType===1});if(L.test(b))return d.filter(b,e,!c);b=d.filter(b,e)}return d.grep(a,function(a,e){return d.inArray(a,b)>=0===c})}function P(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function H(a,b){return(a&&a!=="*"?a+".":"")+b.replace(t,"`").replace(u,"&")}function G(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,p=[],q=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;i<t.length;i++)g=t[i],g.origType.replace(r,"")===a.type?q.push(g.selector):t.splice(i--,1);f=d(a.target).closest(q,a.currentTarget);for(j=0,k=f.length;j<k;j++){m=f[j];for(i=0;i<t.length;i++){g=t[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,e=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,e=d(a.relatedTarget).closest(g.selector)[0];(!e||e!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){f=p[j];if(c&&f.level>c)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function E(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function y(){return!0}function x(){return!1}function i(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function h(a,c,e){if(e===b&&a.nodeType===1){e=a.getAttribute("data-"+c);if(typeof e==="string"){try{e=e==="true"?!0:e==="false"?!1:e==="null"?null:d.isNaN(e)?g.test(e)?d.parseJSON(e):e:parseFloat(e)}catch(f){}d.data(a,c,e)}else e=b}return e}var c=a.document,d=function(){function G(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(G,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x,y,z=Object.prototype.toString,A=Object.prototype.hasOwnProperty,B=Array.prototype.push,C=Array.prototype.slice,D=String.prototype.trim,E=Array.prototype.indexOf,F={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.2",length:0,size:function(){return this.length},toArray:function(){return C.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 e=this.constructor();d.isArray(a)?B.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),x.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(C.apply(this,arguments),"slice",C.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:B,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,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"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){e=i[c],f=a[c];if(i===f)continue;l&&f&&(d.isPlainObject(f)||(g=d.isArray(f)))?(g?(g=!1,h=e&&d.isArray(e)?e:[]):h=e&&d.isPlainObject(e)?e:{},i[c]=d.extend(l,h,f)):f!==b&&(i[c]=f)}return i},d.extend({noConflict:function(b){a.$=f,b&&(a.jQuery=e);return d},isReady:!1,readyWait:1,ready:function(a){a===!0&&d.readyWait--;if(!d.readyWait||a!==!0&&!d.isReady){if(!c.body)return setTimeout(d.ready,1);d.isReady=!0;if(a!==!0&&--d.readyWait>0)return;x.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=d._Deferred();if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",y,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",y),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&G()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):F[z.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!A.call(a,"constructor")&&!A.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||A.call(a,c)},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=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g<h;)if(c.apply(a[g++],e)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(var j=a[0];g<h&&c.call(j,g,j)!==!1;j=a[++g]){}return a},trim:D?function(a){return a==null?"":D.call(a)}:function(a){return a==null?"":(a+"").replace(j,"").replace(k,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var e=d.type(a);a.length==null||e==="string"||e==="function"||e==="regexp"||d.isWindow(a)?B.call(c,a):d.merge(c,a)}return c},inArray:function(a,b){if(b.indexOf)return b.indexOf(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,b,c){var d=[],e;for(var f=0,g=a.length;f<g;f++)e=b(a[f],f,c),e!=null&&(d[d.length]=e);return d.concat.apply([],d)},guid:1,proxy:function(a,c,e){arguments.length===2&&(typeof c==="string"?(e=a,a=e[c],c=b):c&&!d.isFunction(c)&&(e=c,c=b)),!c&&a&&(c=function(){return a.apply(e||this,arguments)}),a&&(c.guid=a.guid=a.guid||c.guid||d.guid++);return c},access:function(a,c,e,f,g,h){var i=a.length;if(typeof c==="object"){for(var j in c)d.access(a,j,c[j],f,g,e);return a}if(e!==b){f=!h&&f&&d.isFunction(e);for(var k=0;k<i;k++)g(a[k],c,f?e.call(a[k],k,g(a[k],c)):e,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.subclass=this.subclass,a.fn.init=function b(b,c){c&&c instanceof d&&!(c instanceof a)&&(c=a(c));return d.fn.init.call(this,b,c,e)},a.fn.init.prototype=a.fn;var e=a(c);return a},browser:{}}),d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){F["[object "+b+"]"]=b.toLowerCase()}),w=d.uaMatch(v),w.browser&&(d.browser[w.browser]=!0,d.browser.version=w.version),d.browser.webkit&&(d.browser.safari=!0),E&&(d.inArray=function(a,b){return E.call(b,a)}),i.test(" ")&&(j=/^[\s\xA0]+/,k=/[\s\xA0]+$/),g=d(c),c.addEventListener?y=function(){c.removeEventListener("DOMContentLoaded",y,!1),d.ready()}:c.attachEvent&&(y=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",y),d.ready())});return d}(),e="then done fail isResolved isRejected promise".split(" "),f=[].slice;d.extend({_Deferred:function(){var a=[],b,c,e,f={done:function(){if(!e){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=d.type(i),j==="array"?f.done.apply(f,i):j==="function"&&a.push(i);k&&f.resolveWith(k[0],k[1])}return this},resolveWith:function(d,f){if(!e&&!b&&!c){f=f||[],c=1;try{while(a[0])a.shift().apply(d,f)}finally{b=[d,f],c=0}}return this},resolve:function(){f.resolveWith(this,arguments);return this},isResolved:function(){return c||b},cancel:function(){e=1,a=[];return this}};return f},Deferred:function(a){var b=d._Deferred(),c=d._Deferred(),f;d.extend(b,{then:function(a,c){b.done(a).fail(c);return this},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,promise:function(a){if(a==null){if(f)return f;f=a={}}var c=e.length;while(c--)a[e[c]]=b[e[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?f.call(arguments,0):c,--g||h.resolveWith(h,f.call(b,0))}}var b=arguments,c=0,e=b.length,g=e,h=e<=1&&a&&d.isFunction(a.promise)?a:d.Deferred();if(e>1){for(;c<e;c++)b[c]&&d.isFunction(b[c].promise)?b[c].promise().then(i(c),h.reject):--g;g||h.resolveWith(h,b)}else h!==a&&h.resolveWith(h,e?[a]:[]);return h.promise()}}),function(){d.support={};var b=c.createElement("div");b.style.display="none",b.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0,reliableMarginRight:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e)}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(a.style.width="1px",a.style.marginRight="0",d.support.reliableMarginRight=(parseInt(c.defaultView.getComputedStyle(a,null).marginRight,10)||0)===0),b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function");return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}}();var g=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.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?d.cache[a[d.expando]]:a[d.expando];return!!a&&!i(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,g=b.nodeType,h=g?d.cache:b,j=g?b[d.expando]:d.expando;if(!h[j])return;if(c){var k=e?h[j][f]:h[j];if(k){delete k[c];if(!i(k))return}}if(e){delete h[j][f];if(!i(h[j]))return}var l=h[j][f];d.support.deleteExpando||h!=a?delete h[j]:h[j]=null,l?(h[j]={},g||(h[j].toJSON=d.noop),h[j][f]=l):g&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var f=this[0].attributes,g;for(var i=0,j=f.length;i<j;i++)g=f[i].name,g.indexOf("data-")===0&&(g=g.substr(5),h(this[0],g,e[g]))}}return e}if(typeof a==="object")return this.each(function(){d.data(this,a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(c===b){e=this.triggerHandler("getData"+k[1]+"!",[k[0]]),e===b&&this.length&&(e=d.data(this[0],a),e=h(this[0],a,e));return e===b&&k[1]?this.data(k[0]):e}return this.each(function(){var b=d(this),e=[k[0],c];b.triggerHandler("setData"+k[1]+"!",e),d.data(this,a,c),b.triggerHandler("changeData"+k[1]+"!",e)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}}),d.extend({queue:function(a,b,c){if(a){b=(b||"fx")+"queue";var e=d._data(a,b);if(!c)return e||[];!e||d.isArray(c)?e=d._data(a,b,d.makeArray(c)):e.push(c);return e}},dequeue:function(a,b){b=b||"fx";var c=d.queue(a,b),e=c.shift();e==="inprogress"&&(e=c.shift()),e&&(b==="fx"&&c.unshift("inprogress"),e.call(a,function(){d.dequeue(a,b)})),c.length||d.removeData(a,b+"queue",!0)}}),d.fn.extend({queue:function(a,c){typeof a!=="string"&&(c=a,a="fx");if(c===b)return d.queue(this[0],a);return this.each(function(b){var e=d.queue(this,a,c);a==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){d.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var j=/[\n\t\r]/g,k=/\s+/,l=/\r/g,m=/^(?:href|src|style)$/,n=/^(?:button|input)$/i,o=/^(?:button|input|object|select|textarea)$/i,p=/^a(?:rea)?$/i,q=/^(?:radio|checkbox)$/i;d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},d.fn.extend({attr:function(a,b){return d.access(this,a,b,!0,d.attr)},removeAttr:function(a,b){return this.each(function(){d.attr(this,a,""),this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.addClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"){var b=(a||"").split(k);for(var c=0,e=this.length;c<e;c++){var f=this[c];if(f.nodeType===1)if(f.className){var g=" "+f.className+" ",h=f.className;for(var i=0,j=b.length;i<j;i++)g.indexOf(" "+b[i]+" ")<0&&(h+=" "+b[i]);f.className=d.trim(h)}else f.className=a}}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.removeClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"||a===b){var c=(a||"").split(k);for(var e=0,f=this.length;e<f;e++){var g=this[e];if(g.nodeType===1&&g.className)if(a){var h=(" "+g.className+" ").replace(j," ");for(var i=0,l=c.length;i<l;i++)h=h.replace(" "+c[i]+" "," ");g.className=d.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,e=typeof b==="boolean";if(d.isFunction(a))return this.each(function(c){var e=d(this);e.toggleClass(a.call(this,c,e.attr("class"),b),b)});return this.each(function(){if(c==="string"){var f,g=0,h=d(this),i=b,j=a.split(k);while(f=j[g++])i=e?i:!h.hasClass(f),h[i?"addClass":"removeClass"](f)}else if(c==="undefined"||c==="boolean")this.className&&d._data(this,"__className__",this.className),this.className=this.className||a===!1?"":d._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if((" "+this[c].className+" ").replace(j," ").indexOf(b)>-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var j=i?f:0,k=i?f+1:h.length;j<k;j++){var m=h[j];if(m.selected&&(d.support.optDisabled?!m.disabled:m.getAttribute("disabled")===null)&&(!m.parentNode.disabled||!d.nodeName(m.parentNode,"optgroup"))){a=d(m).val();if(i)return a;g.push(a)}}if(i&&!g.length&&h.length)return d(h[f]).val();return g}if(q.test(c.type)&&!d.support.checkOn)return c.getAttribute("value")===null?"on":c.value;return(c.value||"").replace(l,"")}return b}var n=d.isFunction(a);return this.each(function(b){var c=d(this),e=a;if(this.nodeType===1){n&&(e=a.call(this,b,c.val())),e==null?e="":typeof e==="number"?e+="":d.isArray(e)&&(e=d.map(e,function(a){return a==null?"":a+""}));if(d.isArray(e)&&q.test(this.type))this.checked=d.inArray(c.val(),e)>=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=m.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&n.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var k=a.getAttributeNode("tabIndex");return k&&k.specified?k.value:o.test(a.nodeName)||p.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var l=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return l===null?b:l}h&&(a[c]=e);return a[c]}});var r=/\.(.*)$/,s=/^(?:textarea|input|select)$/i,t=/\./g,u=/ /g,v=/[^\w\s.|`]/g,w=function(a){return a.replace(v,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=x;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=function(a){return typeof d!=="undefined"&&d.event.triggered!==a.type?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=x);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.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("(^|\\.)"+d.map(m.slice(0).sort(),w).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))d.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=d.event.special[h]||{};for(j=f||0;j<p.length;j++){q=p[j];if(e.guid===q.guid){if(l||n.test(q.namespace))f==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(f!=null)break}}if(p.length===0||f!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&d.removeEvent(a,h,s.handle),g=null,delete t[h]}if(d.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,d.isEmptyObject(s)&&d.removeData(a,b,!0)}}},trigger:function(a,c,e){var f=a.type||a,g=arguments[3];if(!g){a=typeof a==="object"?a[d.expando]?a:d.extend(d.Event(f),a):d.Event(f),f.indexOf("!")>=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(r,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=a.type,l[m]())}catch(p){}k&&(l["on"+m]=k),d.event.triggered=b}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l<m;l++){var n=f[l];if(e||h.test(n.namespace)){c.handler=n.handler,c.data=n.data,c.handleObj=n;var o=n.handler.apply(this,k);o!==b&&(c.result=o,o===!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[d.expando])return a;var e=a;a=d.Event(e);for(var f=this.props.length,g;f;)g=this.props[--f],a[g]=e[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=c.documentElement,i=c.body;a.pageX=a.clientX+(h&&h.scrollLeft||i&&i.scrollLeft||0)-(h&&h.clientLeft||i&&i.clientLeft||0),a.pageY=a.clientY+(h&&h.scrollTop||i&&i.scrollTop||0)-(h&&h.clientTop||i&&i.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:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,H(a.origType,a.selector),d.extend({},a,{handler:G,guid:a.handler.guid}))},remove:function(a){d.event.remove(this,H(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){d.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},d.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)},d.Event=function(a){if(!this.preventDefault)return new d.Event(a);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?y:x):this.type=a,this.timeStamp=d.now(),this[d.expando]=!0},d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=y;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=y;var a=this.originalEvent;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=y,this.stopPropagation()},isDefaultPrevented:x,isPropagationStopped:x,isImmediatePropagationStopped:x};var z=function(a){var b=a.relatedTarget;try{if(b&&b!==c&&!b.parentNode)return;while(b&&b!==this)b=b.parentNode;b!==this&&(a.type=a.data,d.event.handle.apply(this,arguments))}catch(e){}},A=function(a){a.type=a.data,d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={setup:function(c){d.event.add(this,b,c&&c.selector?A:z,a)},teardown:function(a){d.event.remove(this,b,a&&a.selector?A:z)}}}),d.support.submitBubbles||(d.event.special.submit={setup:function(a,b){if(this.nodeName&&this.nodeName.toLowerCase()!=="form")d.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&d(b).closest("form").length&&E("submit",this,arguments)}),d.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&d(b).closest("form").length&&a.keyCode===13&&E("submit",this,arguments)});else return!1},teardown:function(a){d.event.remove(this,".specialSubmit")}});if(!d.support.changeBubbles){var B,C=function(a){var b=a.type,c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},D=function D(a){var c=a.target,e,f;if(s.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=C(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:D,beforedeactivate:D,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&D.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&D.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",C(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in B)d.event.add(this,c+".specialChange",B[c]);return s.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return s.test(this.nodeName)}},B=d.event.special.change.filters,B.focus=B.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function f(a){var c=d.event.fix(a);c.type=b,c.originalEvent={},d.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var e=0;d.event.special[b]={setup:function(){e++===0&&c.addEventListener(a,f,!0)},teardown:function(){--e===0&&c.removeEventListener(a,f,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i<j;i++)d.event.add(this[i],a,h,e);return this}}),d.fn.extend({unbind:function(a,b){if(typeof a!=="object"||a.preventDefault)for(var e=0,f=this.length;e<f;e++)d.event.remove(this[e],a,b);else for(var c in a)this.unbind(c,a[c]);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(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var c=d.Event(a);c.preventDefault(),c.stopPropagation(),d.event.trigger(c,b,this[0]);return c.result}},toggle:function(a){var b=arguments,c=1;while(c<b.length)d.proxy(a,b[c++]);return this.click(d.proxy(a,function(e){var f=(d._data(this,"lastToggle"+a.guid)||0)%c;d._data(this,"lastToggle"+a.guid,f+1),e.preventDefault();return b[f].apply(this,arguments)||!1}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var F={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,c){d.fn[c]=function(a,e,f,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:d(this.context);if(typeof a==="object"&&!a.preventDefault){for(var o in a)n[c](o,e,a[o],m);return this}d.isFunction(e)&&(f=e,e=b),a=(a||"").split(" ");while((h=a[i++])!=null){j=r.exec(h),k="",j&&(k=j[0],h=h.replace(r,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,h==="focus"||h==="blur"?(a.push(F[h]+k),h=h+k):h=(F[h]||h)+k;if(c==="live")for(var p=0,q=n.length;p<q;p++)d.event.add(n[p],"live."+H(h,m),{data:e,selector:m,handler:f,origType:h,origHandler:f,preType:l});else n.unbind("live."+H(h,m),f)}return this}}),d.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){d.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.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,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,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(f.call(n)==="[object Array]")if(u)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]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};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){if(f===!0)continue}else g=o=!0}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 d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(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]=e++;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"text"===c&&(b===c||b===null)},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},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(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var 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){var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(a===b){g=!0;return 0}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)};d.find=k,d.expr=k.selectors,d.expr[":"]=d.expr.filters,d.unique=k.uniqueSort,d.text=k.getText,d.isXMLDoc=k.isXML,d.contains=k.contains}();var I=/Until$/,J=/^(?:parents|prevUntil|prevAll)/,K=/,/,L=/^.[^:#\[\.,]*$/,M=Array.prototype.slice,N=d.expr.match.POS,O={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({find:function(a){var b=this.pushStack("","find",a),c=0;for(var e=0,f=this.length;e<f;e++){c=b.length,d.find(a,this[e],b);if(e>0)for(var g=c;g<b.length;g++)for(var h=0;h<c;h++)if(b[h]===b[g]){b.splice(g--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(d.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(Q(this,a,!1),"not",a)},filter:function(a){return this.pushStack(Q(this,a,!0),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e<f;e++)i=a[e],j[i]||(j[i]=d.expr.match.POS.test(i)?d(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=N.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e<f;e++){g=this[e];while(g){if(l?l.index(g)>-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(P(c[0])||P(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=M.call(arguments);I.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!O[a]?d.unique(f):f,(this.length>1||K.test(e))&&J.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.push(g),g=g[c];return f},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 R=/ jQuery\d+="(?:\d+|null)"/g,S=/^\s+/,T=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,U=/<([\w:]+)/,V=/<tbody/i,W=/<|&#?\w+;/,X=/<(?:script|object|embed|option|style)/i,Y=/checked\s*(?:[^=]|=\s*.checked.)/i,Z={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,"",""]};Z.optgroup=Z.option,Z.tbody=Z.tfoot=Z.colgroup=Z.caption=Z.thead,Z.th=Z.td,d.support.htmlSerialize||(Z._default=[1,"div<div>","</div>"]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(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 d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(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(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(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=d(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,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.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 d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(R,""):null;if(typeof a!=="string"||X.test(a)||!d.support.leadingWhitespace&&S.test(a)||Z[(U.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(T,"<$1></$2>");try{for(var c=0,e=this.length;c<e;c++)this[c].nodeType===1&&(d.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(f){this.empty().append(a)}}return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(b){var c=d(this),e=c.html();c.replaceWith(a.call(this,b,e))});typeof a!=="string"&&(a=d(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;d(this).remove(),b?d(b).before(a):d(c).append(a)})}return this.length?this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,e){var f,g,h,i,j=a[0],k=[];if(!d.support.checkClone&&arguments.length===3&&typeof j==="string"&&Y.test(j))return this.each(function(){d(this).domManip(a,c,e,!0)});if(d.isFunction(j))return this.each(function(f){var g=d(this);a[0]=j.call(this,f,c?g.html():b),g.domManip(a,c,e)});if(this[0]){i=j&&j.parentNode,d.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?f={fragment:i}:f=d.buildFragment(a,this,k),h=f.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&d.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)e.call(c?$(this[l],g):this[l],f.cacheable||m>1&&l<n?d.clone(h,!0,!0):h)}k.length&&d.each(k,bc)}return this}}),d.buildFragment=function(a,b,e){var f,g,h,i=b&&b[0]?b[0].ownerDocument||b[0]:c;a.length===1&&typeof a[0]==="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!X.test(a[0])&&(d.support.checkClone||!Y.test(a[0]))&&(g=!0,h=d.fragments[a[0]],h&&(h!==1&&(f=h))),f||(f=i.createDocumentFragment(),d.clean(a,i,f,e)),g&&(d.fragments[a[0]]=h?f:1);return{fragment:f,cacheable:g}},d.fragments={},d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(c){var e=[],f=d(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&f.length===1){f[b](this[0]);return this}for(var h=0,i=f.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){ba(a,e),f=bb(a),g=bb(e);for(h=0;f[h];++h)ba(f[h],g[h])}if(b){_(a,e);if(c){f=bb(a),g=bb(e);for(h=0;f[h];++h)_(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||W.test(i)){if(typeof i==="string"){i=i.replace(T,"<$1></$2>");var j=(U.exec(i)||["",""])[1].toLowerCase(),k=Z[j]||Z._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=V.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]==="<table>"&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&S.test(i)&&m.insertBefore(b.createTextNode(S.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bd=/alpha\([^)]*\)/i,be=/opacity=([^)]*)/,bf=/-([a-z])/ig,bg=/([A-Z]|^ms)/g,bh=/^-?\d+(?:px)?$/i,bi=/^-?\d/,bj={position:"absolute",visibility:"hidden",display:"block"},bk=["Left","Right"],bl=["Top","Bottom"],bm,bn,bo,bp=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bm(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bm)return bm(a,c,g)},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]},camelCase:function(a){return a.replace(bf,bp)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bq(a,b,e):d.swap(a,bj,function(){f=bq(a,b,e)});if(f<=0){f=bm(a,b,b),f==="0px"&&bo&&(f=bo(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bh.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return be.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bd.test(f)?f.replace(bd,e):c.filter+" "+e}}),d(function(){d.support.reliableMarginRight||(d.cssHooks.marginRight={get:function(a,b){var c;d.swap(a,{display:"inline-block"},function(){b?c=bm(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bn=function(a,c,e){var f,g,h;e=e.replace(bg,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.documentElement.currentStyle&&(bo=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bh.test(d)&&bi.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}),bm=bn||bo,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var br=/%20/g,bs=/\[\]$/,bt=/\r?\n/g,bu=/#.*$/,bv=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bw=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bx=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,by=/^(?:GET|HEAD)$/,bz=/^\/\//,bA=/\?/,bB=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bC=/^(?:select|textarea)/i,bD=/\s+/,bE=/([?&])_=[^&]*/,bF=/(^|\-)([a-z])/g,bG=function(a,b,c){return b+c.toUpperCase()},bH=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bI=d.fn.load,bJ={},bK={},bL,bM;try{bL=c.location.href}catch(bN){bL=c.createElement("a"),bL.href="",bL=bL.href}bM=bH.exec(bL.toLowerCase())||[],d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bI)return bI.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.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?d("<div>").append(c.replace(bB,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bC.test(this.nodeName)||bw.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(bt,"\r\n")}}):{name:b.name,value:c.replace(bt,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bL,isLocal:bx.test(bM[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","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bO(bJ),ajaxTransport:bO(bK),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bR(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bS(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigger("ajaxComplete",[u,e]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bF,bG)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bv.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bu,"").replace(bz,bM[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bD),e.crossDomain==null&&(q=bH.exec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bM[1]||q[2]!=bM[2]||(q[3]||(q[1]==="http:"?80:443))!=(bM[3]||(bM[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bP(bJ,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!by.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(bA.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bE,"$1_="+w);e.url=x+(x===e.url?(bA.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);if(e.beforeSend&&(e.beforeSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bP(bK,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bQ(g,a[g],c,f);return e.join("&").replace(br,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bT=d.now(),bU=/(\=)\?(&|$)|\?\?/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bT++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.jsonp!=null||b.jsonp!==!1&&(bU.test(b.url)||f&&bU.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bU,l),b.url===j&&(f&&(k=k.replace(bU,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.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(!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 bV=d.now(),bW,bX;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bZ()||b$()}:bZ,bX=d.ajaxSettings.xhr(),d.support.ajax=!!bX,d.support.cors=bX&&"withCredentials"in bX,bX=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),!a.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bW[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bW||(bW={},bY()),h=bV++,g.onreadystatechange=bW[h]=c):c()},abort:function(){c&&c(0,1)}}}});var b_={},ca=/^(?:toggle|show|hide)$/,cb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cc,cd=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(ce("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)e=this[g],f=e.style.display,!d._data(e,"olddisplay")&&f==="none"&&(f=e.style.display=""),f===""&&d.css(e,"display")==="none"&&d._data(e,"olddisplay",cf(e.nodeName));for(g=0;g<h;g++){e=this[g],f=e.style.display;if(f===""||f==="none")e.style.display=d._data(e,"olddisplay")||""}return this},hide:function(a,b,c){if(a||a===0)return this.animate(ce("hide",3),a,b,c);for(var e=0,f=this.length;e<f;e++){var g=d.css(this[e],"display");g!=="none"&&!d._data(this[e],"olddisplay")&&d._data(this[e],"olddisplay",g)}for(e=0;e<f;e++)this[e].style.display="none";return this},_toggle:d.fn.toggle,toggle:function(a,b,c){var e=typeof a==="boolean";d.isFunction(a)&&d.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var b=e?a:d(this).is(":hidden");d(this)[b?"show":"hide"]()}):this.animate(ce("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,e){var f=d.speed(b,c,e);if(d.isEmptyObject(a))return this.each(f.complete);return this[f.queue===!1?"each":"queue"](function(){var b=d.extend({},f),c,e=this.nodeType===1,g=e&&d(this).is(":hidden"),h=this;for(c in a){var i=d.camelCase(c);c!==i&&(a[i]=a[c],delete a[c],c=i);if(a[c]==="hide"&&g||a[c]==="show"&&!g)return b.complete.call(this);if(e&&(c==="height"||c==="width")){b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(d.css(this,"display")==="inline"&&d.css(this,"float")==="none")if(d.support.inlineBlockNeedsLayout){var j=cf(this.nodeName);j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)}else this.style.display="inline-block"}d.isArray(a[c])&&((b.specialEasing=b.specialEasing||{})[c]=a[c][1],a[c]=a[c][0])}b.overflow!=null&&(this.style.overflow="hidden"),b.curAnim=d.extend({},a),d.each(a,function(c,e){var f=new d.fx(h,b,c);if(ca.test(e))f[e==="toggle"?g?"show":"hide":e](a);else{var i=cb.exec(e),j=f.cur();if(i){var k=parseFloat(i[2]),l=i[3]||(d.cssNumber[c]?"":"px");l!=="px"&&(d.style(h,c,(k||1)+l),j=(k||1)/f.cur()*j,d.style(h,c,j+l)),i[1]&&(k=(i[1]==="-="?-1:1)*k+j),f.custom(j,k,l)}else f.custom(j,e,"")}});return!0})},stop:function(a,b){var c=d.timers;a&&this.queue([]),this.each(function(){for(var a=c.length-1;a>=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:ce("show",1),slideUp:ce("hide",1),slideToggle:ce("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.call(this)};return e},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={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.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=d.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 e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!cc&&(cc=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||d.fx.stop()},interval:13,stop:function(){clearInterval(cc),cc=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.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}}}),d.expr&&d.expr.filters&&(d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length});var cg=/^t(?:able|d|h)$/i,ch=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?d.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;if(!c||!d.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=f.body,i=ci(f),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||d.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||d.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:d.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var c,e=b.offsetParent,f=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(d.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===e&&(l+=b.offsetTop,m+=b.offsetLeft,d.offset.doesNotAddBorder&&(!d.offset.doesAddBorderForTableAndCells||!cg.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),f=e,e=b.offsetParent),d.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;d.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},d.offset={initialize:function(){var a=c.body,b=c.createElement("div"),e,f,g,h,i=parseFloat(d.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>";d.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),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative");var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=(e==="absolute"||e==="fixed")&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.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):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=ch.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!ch.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(c){var f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=ci(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=ci(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window);
|
skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery-1.6.3.min.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
/*! jQuery v1.6.3 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-$2").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.3",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])([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
|
3 |
+
,delete 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")?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")?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(a,i,e,d)),g&&(f.fragments[a[0]]=h?e:1);
|
4 |
+
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);
|
skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery.animate-colors-min.js
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
Color animation plugin for jQuery 1.8+
|
3 |
+
http://www.bitstorm.org/jquery/color-animation/
|
4 |
+
Copyright 2011, 2012 Edwin Martin <edwin@bitstorm.org>
|
5 |
+
Released under the MIT and GPL licenses.
|
6 |
+
*/
|
7 |
+
(function(d){
|
8 |
+
|
9 |
+
var jquery_version = jQuery().jquery;
|
10 |
+
jquery_version = parseFloat(jquery_version.substr(0,3));
|
11 |
+
|
12 |
+
if (jquery_version >= 1.8)
|
13 |
+
{
|
14 |
+
function i(){var a=d("script:first"),b=a.css("color"),c=false;if(/^rgba/.test(b))c=true;else try{c=b!=a.css("color","rgba(0, 0, 0, 0.5)").css("color");a.css("color",b)}catch(e){}return c}function g(a,b,c){var e="rgb"+(d.support.rgba?"a":"")+"("+parseInt(a[0]+c*(b[0]-a[0]),10)+","+parseInt(a[1]+c*(b[1]-a[1]),10)+","+parseInt(a[2]+c*(b[2]-a[2]),10);if(d.support.rgba)e+=","+(a&&b?parseFloat(a[3]+c*(b[3]-a[3])):1);e+=")";return e}function f(a){var b,c;if(b=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/.exec(a))c=
|
15 |
+
[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16),1];else if(b=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/.exec(a))c=[parseInt(b[1],16)*17,parseInt(b[2],16)*17,parseInt(b[3],16)*17,1];else if(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a))c=[parseInt(b[1]),parseInt(b[2]),parseInt(b[3]),1];else if(b=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9\.]*)\s*\)/.exec(a))c=[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10),parseFloat(b[4])];return c}
|
16 |
+
d.extend(true,d,{support:{rgba:i()}});var h=["color","backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","outlineColor"];d.each(h,function(a,b){d.Tween.propHooks[b]={get:function(c){return d(c.elem).css(b)},set:function(c){if(!c.b){c.e=f(d(c.elem).css(b));c.d=f(c.end);c.a=0;c.b=true}c.elem.style[b]=g(c.e,c.d,c.a*c.init.interval/c.options.duration);c.a++}}});d.Tween.propHooks.borderColor={set:function(a){if(!a.b)a.d=f(a.end);var b=h.slice(2,6);d.each(b,function(c,
|
17 |
+
e){if(a.b)a.elem.style[e]=g(a.c[e],a.d,a.a*a.init.interval/a.options.duration);else{a.c=a.c||[];a.c[e]=f(d(a.elem).css(e));a.a=0}});a.b=true;a.a++}};
|
18 |
+
}
|
19 |
+
else
|
20 |
+
{
|
21 |
+
function i(){var b=d("script:first"),a=b.css("color"),c=false;if(/^rgba/.test(a))c=true;else try{c=a!=b.css("color","rgba(0, 0, 0, 0.5)").css("color");b.css("color",a)}catch(e){}return c}function g(b,a,c){var e="rgb"+(d.support.rgba?"a":"")+"("+parseInt(b[0]+c*(a[0]-b[0]),10)+","+parseInt(b[1]+c*(a[1]-b[1]),10)+","+parseInt(b[2]+c*(a[2]-b[2]),10);if(d.support.rgba)e+=","+(b&&a?parseFloat(b[3]+c*(a[3]-b[3])):1);e+=")";return e}function f(b){var a,c;if(a=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/.exec(b))c=
|
22 |
+
[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16),1];else if(a=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/.exec(b))c=[parseInt(a[1],16)*17,parseInt(a[2],16)*17,parseInt(a[3],16)*17,1];else if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))c=[parseInt(a[1]),parseInt(a[2]),parseInt(a[3]),1];else if(a=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9\.]*)\s*\)/.exec(b))c=[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10),parseFloat(a[4])];return c}
|
23 |
+
d.extend(true,d,{support:{rgba:i()}});var h=["color","backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","outlineColor"];d.each(h,function(b,a){d.fx.step[a]=function(c){if(!c.init){c.a=f(d(c.elem).css(a));c.end=f(c.end);c.init=true}c.elem.style[a]=g(c.a,c.end,c.pos)}});d.fx.step.borderColor=function(b){if(!b.init)b.end=f(b.end);var a=h.slice(2,6);d.each(a,function(c,e){b.init||(b[e]={a:f(d(b.elem).css(e))});b.elem.style[e]=g(b[e].a,b.end,b.pos)});b.init=true};
|
24 |
+
}
|
25 |
+
|
26 |
+
})(jQuery);
|
27 |
+
|
skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery.easing.1.3.js
ADDED
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
3 |
+
*
|
4 |
+
* Uses the built in easing capabilities added In jQuery 1.1
|
5 |
+
* to offer multiple easing options
|
6 |
+
*
|
7 |
+
* TERMS OF USE - jQuery Easing
|
8 |
+
*
|
9 |
+
* Open source under the BSD License.
|
10 |
+
*
|
11 |
+
* Copyright © 2008 George McGinley Smith
|
12 |
+
* All rights reserved.
|
13 |
+
*
|
14 |
+
* Redistribution and use in source and binary forms, with or without modification,
|
15 |
+
* are permitted provided that the following conditions are met:
|
16 |
+
*
|
17 |
+
* Redistributions of source code must retain the above copyright notice, this list of
|
18 |
+
* conditions and the following disclaimer.
|
19 |
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
20 |
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
21 |
+
* provided with the distribution.
|
22 |
+
*
|
23 |
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
24 |
+
* or promote products derived from this software without specific prior written permission.
|
25 |
+
*
|
26 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
27 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
28 |
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
29 |
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
30 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
31 |
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
32 |
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
33 |
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
34 |
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
35 |
+
*
|
36 |
+
*/
|
37 |
+
|
38 |
+
// t: current time, b: begInnIng value, c: change In value, d: duration
|
39 |
+
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
40 |
+
|
41 |
+
jQuery.extend( jQuery.easing,
|
42 |
+
{
|
43 |
+
def: 'easeOutQuad',
|
44 |
+
swing: function (x, t, b, c, d) {
|
45 |
+
//alert(jQuery.easing.default);
|
46 |
+
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
47 |
+
},
|
48 |
+
easeInQuad: function (x, t, b, c, d) {
|
49 |
+
return c*(t/=d)*t + b;
|
50 |
+
},
|
51 |
+
easeOutQuad: function (x, t, b, c, d) {
|
52 |
+
return -c *(t/=d)*(t-2) + b;
|
53 |
+
},
|
54 |
+
easeInOutQuad: function (x, t, b, c, d) {
|
55 |
+
if ((t/=d/2) < 1) return c/2*t*t + b;
|
56 |
+
return -c/2 * ((--t)*(t-2) - 1) + b;
|
57 |
+
},
|
58 |
+
easeInCubic: function (x, t, b, c, d) {
|
59 |
+
return c*(t/=d)*t*t + b;
|
60 |
+
},
|
61 |
+
easeOutCubic: function (x, t, b, c, d) {
|
62 |
+
return c*((t=t/d-1)*t*t + 1) + b;
|
63 |
+
},
|
64 |
+
easeInOutCubic: function (x, t, b, c, d) {
|
65 |
+
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
66 |
+
return c/2*((t-=2)*t*t + 2) + b;
|
67 |
+
},
|
68 |
+
easeInQuart: function (x, t, b, c, d) {
|
69 |
+
return c*(t/=d)*t*t*t + b;
|
70 |
+
},
|
71 |
+
easeOutQuart: function (x, t, b, c, d) {
|
72 |
+
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
73 |
+
},
|
74 |
+
easeInOutQuart: function (x, t, b, c, d) {
|
75 |
+
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
76 |
+
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
77 |
+
},
|
78 |
+
easeInQuint: function (x, t, b, c, d) {
|
79 |
+
return c*(t/=d)*t*t*t*t + b;
|
80 |
+
},
|
81 |
+
easeOutQuint: function (x, t, b, c, d) {
|
82 |
+
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
83 |
+
},
|
84 |
+
easeInOutQuint: function (x, t, b, c, d) {
|
85 |
+
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
86 |
+
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
87 |
+
},
|
88 |
+
easeInSine: function (x, t, b, c, d) {
|
89 |
+
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
90 |
+
},
|
91 |
+
easeOutSine: function (x, t, b, c, d) {
|
92 |
+
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
93 |
+
},
|
94 |
+
easeInOutSine: function (x, t, b, c, d) {
|
95 |
+
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
96 |
+
},
|
97 |
+
easeInExpo: function (x, t, b, c, d) {
|
98 |
+
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
99 |
+
},
|
100 |
+
easeOutExpo: function (x, t, b, c, d) {
|
101 |
+
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
102 |
+
},
|
103 |
+
easeInOutExpo: function (x, t, b, c, d) {
|
104 |
+
if (t==0) return b;
|
105 |
+
if (t==d) return b+c;
|
106 |
+
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
107 |
+
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
108 |
+
},
|
109 |
+
easeInCirc: function (x, t, b, c, d) {
|
110 |
+
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
111 |
+
},
|
112 |
+
easeOutCirc: function (x, t, b, c, d) {
|
113 |
+
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
114 |
+
},
|
115 |
+
easeInOutCirc: function (x, t, b, c, d) {
|
116 |
+
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
117 |
+
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
118 |
+
},
|
119 |
+
easeInElastic: function (x, t, b, c, d) {
|
120 |
+
var s=1.70158;var p=0;var a=c;
|
121 |
+
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
122 |
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
123 |
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
124 |
+
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
125 |
+
},
|
126 |
+
easeOutElastic: function (x, t, b, c, d) {
|
127 |
+
var s=1.70158;var p=0;var a=c;
|
128 |
+
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
129 |
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
130 |
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
131 |
+
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
132 |
+
},
|
133 |
+
easeInOutElastic: function (x, t, b, c, d) {
|
134 |
+
var s=1.70158;var p=0;var a=c;
|
135 |
+
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
136 |
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
137 |
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
138 |
+
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
139 |
+
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
140 |
+
},
|
141 |
+
easeInBack: function (x, t, b, c, d, s) {
|
142 |
+
if (s == undefined) s = 1.70158;
|
143 |
+
return c*(t/=d)*t*((s+1)*t - s) + b;
|
144 |
+
},
|
145 |
+
easeOutBack: function (x, t, b, c, d, s) {
|
146 |
+
if (s == undefined) s = 1.70158;
|
147 |
+
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
148 |
+
},
|
149 |
+
easeInOutBack: function (x, t, b, c, d, s) {
|
150 |
+
if (s == undefined) s = 1.70158;
|
151 |
+
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
152 |
+
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
153 |
+
},
|
154 |
+
easeInBounce: function (x, t, b, c, d) {
|
155 |
+
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
156 |
+
},
|
157 |
+
easeOutBounce: function (x, t, b, c, d) {
|
158 |
+
if ((t/=d) < (1/2.75)) {
|
159 |
+
return c*(7.5625*t*t) + b;
|
160 |
+
} else if (t < (2/2.75)) {
|
161 |
+
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
162 |
+
} else if (t < (2.5/2.75)) {
|
163 |
+
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
164 |
+
} else {
|
165 |
+
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
166 |
+
}
|
167 |
+
},
|
168 |
+
easeInOutBounce: function (x, t, b, c, d) {
|
169 |
+
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
170 |
+
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
171 |
+
}
|
172 |
+
});
|
173 |
+
|
174 |
+
/*
|
175 |
+
*
|
176 |
+
* TERMS OF USE - EASING EQUATIONS
|
177 |
+
*
|
178 |
+
* Open source under the BSD License.
|
179 |
+
*
|
180 |
+
* Copyright © 2001 Robert Penner
|
181 |
+
* All rights reserved.
|
182 |
+
*
|
183 |
+
* Redistribution and use in source and binary forms, with or without modification,
|
184 |
+
* are permitted provided that the following conditions are met:
|
185 |
+
*
|
186 |
+
* Redistributions of source code must retain the above copyright notice, this list of
|
187 |
+
* conditions and the following disclaimer.
|
188 |
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
189 |
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
190 |
+
* provided with the distribution.
|
191 |
+
*
|
192 |
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
193 |
+
* or promote products derived from this software without specific prior written permission.
|
194 |
+
*
|
195 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
196 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
197 |
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
198 |
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
199 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
200 |
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
201 |
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
202 |
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
203 |
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
204 |
+
*
|
205 |
+
*/
|
skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery.min.js
ADDED
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jQuery JavaScript Library v1.4.2
|
3 |
+
* http://jquery.com/
|
4 |
+
*
|
5 |
+
* Copyright 2010, John Resig
|
6 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
7 |
+
* http://jquery.org/license
|
8 |
+
*
|
9 |
+
* Includes Sizzle.js
|
10 |
+
* http://sizzlejs.com/
|
11 |
+
* Copyright 2010, The Dojo Foundation
|
12 |
+
* Released under the MIT, BSD, and GPL Licenses.
|
13 |
+
*
|
14 |
+
* Date: Sat Feb 13 22:33:48 2010 -0500
|
15 |
+
*/
|
16 |
+
(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
|
17 |
+
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
|
18 |
+
j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
|
19 |
+
"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=
|
20 |
+
true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,
|
21 |
+
Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&
|
22 |
+
(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,
|
23 |
+
a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
|
24 |
+
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(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(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
|
25 |
+
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
|
26 |
+
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
|
27 |
+
L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,
|
28 |
+
"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+
|
29 |
+
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
|
30 |
+
d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
|
31 |
+
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
|
32 |
+
!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=
|
33 |
+
true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
|
34 |
+
var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,
|
35 |
+
parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=
|
36 |
+
false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=
|
37 |
+
s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,
|
38 |
+
applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];
|
39 |
+
else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,
|
40 |
+
a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===
|
41 |
+
w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,
|
42 |
+
cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ",
|
43 |
+
i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" ",
|
44 |
+
" ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=
|
45 |
+
this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=
|
46 |
+
e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=
|
47 |
+
c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");
|
48 |
+
a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,
|
49 |
+
function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");
|
50 |
+
k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),
|
51 |
+
C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!=
|
52 |
+
null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=
|
53 |
+
e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&&
|
54 |
+
f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;
|
55 |
+
if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.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 originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
|
56 |
+
fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
|
57 |
+
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
|
58 |
+
"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
|
59 |
+
a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
|
60 |
+
isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit=
|
61 |
+
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
|
62 |
+
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
|
63 |
+
e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
|
64 |
+
"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,
|
65 |
+
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
|
66 |
+
!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
|
67 |
+
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
|
68 |
+
u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.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(" "),
|
69 |
+
function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];
|
70 |
+
if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(k.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
|
71 |
+
e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift();
|
72 |
+
t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D||
|
73 |
+
g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
|
74 |
+
for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
|
75 |
+
1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
|
76 |
+
CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},
|
77 |
+
relative:{"+":function(g,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h}l&&k.filter(h,g,true)},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]=
|
78 |
+
l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[];
|
79 |
+
h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},
|
80 |
+
CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,
|
81 |
+
g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},
|
82 |
+
text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},
|
83 |
+
setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
|
84 |
+
h[3];l=0;for(m=h.length;l<m;l++)if(h[l]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l==="first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":l=h[2];var q=h[3];if(l===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=
|
85 |
+
m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/l>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m===
|
86 |
+
"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,
|
87 |
+
h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l<m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||
|
88 |
+
!h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m=
|
89 |
+
h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&
|
90 |
+
q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML="<a href='#'></a>";
|
91 |
+
if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
|
92 |
+
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:
|
93 |
+
function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
|
94 |
+
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
|
95 |
+
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
|
96 |
+
{},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
|
97 |
+
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",
|
98 |
+
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
|
99 |
+
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
|
100 |
+
1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
|
101 |
+
a:b+"></"+d+">"},F={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,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
|
102 |
+
c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
|
103 |
+
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
|
104 |
+
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(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,false,function(b){this.parentNode.insertBefore(b,
|
105 |
+
this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
|
106 |
+
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
|
107 |
+
""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
|
108 |
+
this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
|
109 |
+
u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
|
110 |
+
1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);
|
111 |
+
return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",
|
112 |
+
""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]==="<table>"&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e=
|
113 |
+
c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]?
|
114 |
+
c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja=
|
115 |
+
function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=
|
116 |
+
Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,
|
117 |
+
"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=
|
118 |
+
a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=
|
119 |
+
a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!==
|
120 |
+
"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this},
|
121 |
+
serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
|
122 |
+
function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,
|
123 |
+
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&&
|
124 |
+
e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)?
|
125 |
+
"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===
|
126 |
+
false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B=
|
127 |
+
false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",
|
128 |
+
c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||
|
129 |
+
d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x);
|
130 |
+
g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===
|
131 |
+
1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b===
|
132 |
+
"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;
|
133 |
+
if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");
|
134 |
+
this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],
|
135 |
+
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
|
136 |
+
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[i]==="show"&&!o)return j.complete.call(this);if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing=
|
137 |
+
j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u==="toggle"?o?"show":"hide":u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]==="-="?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);
|
138 |
+
this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration===
|
139 |
+
"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||
|
140 |
+
c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;
|
141 |
+
this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
|
142 |
+
this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,
|
143 |
+
e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||
|
144 |
+
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(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;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
|
145 |
+
function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=
|
146 |
+
this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle;
|
147 |
+
k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&&
|
148 |
+
f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<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>";
|
149 |
+
a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);
|
150 |
+
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,
|
151 |
+
d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-
|
152 |
+
f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":
|
153 |
+
"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in
|
154 |
+
e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);
|
skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery.skitter.js
ADDED
@@ -0,0 +1,3245 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jQuery Skitter Slideshow
|
3 |
+
* @name jquery.skitter.js
|
4 |
+
* @description Slideshow
|
5 |
+
* @author Thiago Silva Ferreira - http://thiagosf.net
|
6 |
+
* @version 4.0
|
7 |
+
* @date August 04, 2010
|
8 |
+
* @update April 19, 2012
|
9 |
+
* @copyright (c) 2010 Thiago Silva Ferreira - http://thiagosf.net
|
10 |
+
* @license Dual licensed under the MIT or GPL Version 2 licenses
|
11 |
+
* @example http://thiagosf.net/projects/jquery/skitter/
|
12 |
+
*/
|
13 |
+
|
14 |
+
(function($) {
|
15 |
+
|
16 |
+
var number_skitter = 0,
|
17 |
+
skitters = [];
|
18 |
+
|
19 |
+
$.fn.skitter = function(options) {
|
20 |
+
return this.each(function() {
|
21 |
+
$(this).data('skitter_number', number_skitter);
|
22 |
+
skitters.push(new $sk(this, options, number_skitter));
|
23 |
+
++number_skitter;
|
24 |
+
});
|
25 |
+
};
|
26 |
+
|
27 |
+
var defaults = {
|
28 |
+
velocity: 1,
|
29 |
+
interval: 2500,
|
30 |
+
animation: '',
|
31 |
+
numbers: true,
|
32 |
+
navigation: true,
|
33 |
+
label: true,
|
34 |
+
easing_default: '',
|
35 |
+
box_skitter: null,
|
36 |
+
time_interval: null,
|
37 |
+
images_links: null,
|
38 |
+
image_atual: null,
|
39 |
+
link_atual: null,
|
40 |
+
label_atual: null,
|
41 |
+
target_atual: '_self',
|
42 |
+
width_skitter: null,
|
43 |
+
height_skitter: null,
|
44 |
+
image_i: 1,
|
45 |
+
is_animating: false,
|
46 |
+
is_hover_box_skitter: false,
|
47 |
+
random_ia: null,
|
48 |
+
show_randomly: false,
|
49 |
+
thumbs: false,
|
50 |
+
animateNumberOut: {backgroundColor:'#333', color:'#fff'},
|
51 |
+
animateNumberOver: {backgroundColor:'#fff', color:'#000'},
|
52 |
+
animateNumberActive: {backgroundColor:'#cc3333', color:'#fff'},
|
53 |
+
hideTools: false,
|
54 |
+
fullscreen: false,
|
55 |
+
xml: false,
|
56 |
+
dots: false,
|
57 |
+
width_label: null,
|
58 |
+
opacity_elements: 0.75, // Final opacity of elements in hideTools
|
59 |
+
interval_in_elements: 300, // Interval animation hover elements hideTools
|
60 |
+
interval_out_elements: 500, // Interval animation out elements hideTools
|
61 |
+
onLoad: null,
|
62 |
+
imageSwitched: null,
|
63 |
+
max_number_height: 20,
|
64 |
+
numbers_align: 'left',
|
65 |
+
preview: false,
|
66 |
+
focus: false,
|
67 |
+
foucs_active: false,
|
68 |
+
focus_position: 'center',
|
69 |
+
controls: false,
|
70 |
+
controls_position: 'center',
|
71 |
+
progressbar: false,
|
72 |
+
progressbar_css: {},
|
73 |
+
is_paused: false,
|
74 |
+
is_blur: false,
|
75 |
+
is_paused_time: false,
|
76 |
+
timeStart: 0,
|
77 |
+
elapsedTime: 0,
|
78 |
+
stop_over: true,
|
79 |
+
enable_navigation_keys: false,
|
80 |
+
with_animations: [],
|
81 |
+
mouseOverButton: function() { $(this).stop().animate({opacity:0.5}, 200); },
|
82 |
+
mouseOutButton: function() { $(this).stop().animate({opacity:1}, 200); },
|
83 |
+
auto_play: true,
|
84 |
+
structure: '<a href="#" class="prev_button">prev</a>'
|
85 |
+
+ '<a href="#" class="next_button">next</a>'
|
86 |
+
+ '<span class="info_slide"></span>'
|
87 |
+
+ '<div class="container_skitter">'
|
88 |
+
+ '<div class="image">'
|
89 |
+
+ '<a href=""><img class="image_main" /></a>'
|
90 |
+
+ '<div class="label_skitter"></div>'
|
91 |
+
+ '</div>'
|
92 |
+
+ '</div>'
|
93 |
+
|
94 |
+
};
|
95 |
+
|
96 |
+
$.skitter = function(obj, options, number) {
|
97 |
+
this.box_skitter = $(obj);
|
98 |
+
this.timer = null;
|
99 |
+
this.settings = $.extend({}, defaults, options || {});
|
100 |
+
this.number_skitter = number;
|
101 |
+
this.setup();
|
102 |
+
};
|
103 |
+
|
104 |
+
// Shortcut
|
105 |
+
var $sk = $.skitter;
|
106 |
+
|
107 |
+
$sk.fn = $sk.prototype = {};
|
108 |
+
|
109 |
+
$sk.fn.extend = $.extend;
|
110 |
+
|
111 |
+
$sk.fn.extend({
|
112 |
+
|
113 |
+
/**
|
114 |
+
* Init
|
115 |
+
*/
|
116 |
+
setup: function()
|
117 |
+
{
|
118 |
+
var self = this;
|
119 |
+
|
120 |
+
// Fullscreen
|
121 |
+
if (this.settings.fullscreen) {
|
122 |
+
var width = $(window).width();
|
123 |
+
var height = $(window).height();
|
124 |
+
this.box_skitter.width(width).height(height);
|
125 |
+
this.box_skitter.css({'position':'absolute', 'top':0, 'left':0, 'z-index':1000});
|
126 |
+
this.settings.stop_over = false;
|
127 |
+
$('body').css({'overflown':'hidden'});
|
128 |
+
}
|
129 |
+
|
130 |
+
this.settings.width_skitter = parseFloat(this.box_skitter.css('width'));
|
131 |
+
this.settings.height_skitter = parseFloat(this.box_skitter.css('height'));
|
132 |
+
|
133 |
+
if (!this.settings.width_skitter || !this.settings.height_skitter) {
|
134 |
+
console.warn('Width or height size is null! - Skitter Slideshow');
|
135 |
+
return false;
|
136 |
+
}
|
137 |
+
|
138 |
+
// Structure html
|
139 |
+
this.box_skitter.append(this.settings.structure);
|
140 |
+
|
141 |
+
// Settings
|
142 |
+
this.settings.easing_default = this.getEasing(this.settings.easing);
|
143 |
+
|
144 |
+
if (this.settings.velocity >= 2) this.settings.velocity = 1.3;
|
145 |
+
if (this.settings.velocity <= 0) this.settings.velocity = 1;
|
146 |
+
|
147 |
+
this.box_skitter.find('.info_slide').hide();
|
148 |
+
this.box_skitter.find('.label_skitter').hide();
|
149 |
+
this.box_skitter.find('.prev_button').hide();
|
150 |
+
this.box_skitter.find('.next_button').hide();
|
151 |
+
|
152 |
+
this.box_skitter.find('.container_skitter').width(this.settings.width_skitter);
|
153 |
+
this.box_skitter.find('.container_skitter').height(this.settings.height_skitter);
|
154 |
+
|
155 |
+
var width_label = this.settings.width_label ? this.settings.width_label : this.settings.width_skitter;
|
156 |
+
this.box_skitter.find('.label_skitter').width(width_label);
|
157 |
+
|
158 |
+
var initial_select_class = ' image_number_select', u = 0;
|
159 |
+
this.settings.images_links = new Array();
|
160 |
+
|
161 |
+
// Add image, link, animation type and label
|
162 |
+
var addImageLink = function (link, src, animation_type, label, target) {
|
163 |
+
self.settings.images_links.push([src, link, animation_type, label, target]);
|
164 |
+
if (self.settings.thumbs) {
|
165 |
+
var dimension_thumb = '';
|
166 |
+
if (self.settings.width_skitter > self.settings.height_skitter) {
|
167 |
+
dimension_thumb = 'height="100"';
|
168 |
+
}
|
169 |
+
else {
|
170 |
+
dimension_thumb = 'width="100"';
|
171 |
+
}
|
172 |
+
self.box_skitter.find('.info_slide').append(
|
173 |
+
'<span class="image_number'+initial_select_class+'" rel="'+(u - 1)+'" id="image_n_'+u+'_'+self.number_skitter+'">'
|
174 |
+
+'<img src="'+src+'" '+dimension_thumb+' />'
|
175 |
+
+'</span> '
|
176 |
+
);
|
177 |
+
}
|
178 |
+
else {
|
179 |
+
self.box_skitter.find('.info_slide').append(
|
180 |
+
'<span class="image_number'+initial_select_class+'" rel="'+(u - 1)+'" id="image_n_'+u+'_'+self.number_skitter+'">'+u+'</span> '
|
181 |
+
);
|
182 |
+
}
|
183 |
+
initial_select_class = '';
|
184 |
+
};
|
185 |
+
|
186 |
+
// Load from XML
|
187 |
+
if (this.settings.xml) {
|
188 |
+
$.ajax({
|
189 |
+
type: 'GET',
|
190 |
+
url: this.settings.xml,
|
191 |
+
async: false,
|
192 |
+
dataType: 'xml',
|
193 |
+
success: function(xml) {
|
194 |
+
var ul = $('<ul></ul>');
|
195 |
+
$(xml).find('skitter slide').each(function(){
|
196 |
+
++u;
|
197 |
+
var link = ($(this).find('link').text()) ? $(this).find('link').text() : '#';
|
198 |
+
var src = $(this).find('image').text();
|
199 |
+
var animation_type = $(this).find('image').attr('type');
|
200 |
+
var label = $(this).find('label').text();
|
201 |
+
var target = ($(this).find('target').text()) ? $(this).find('target').text() : '_self';
|
202 |
+
addImageLink(link, src, animation_type, label, target);
|
203 |
+
});
|
204 |
+
}
|
205 |
+
});
|
206 |
+
}
|
207 |
+
// Load from json
|
208 |
+
else if (this.settings.json) {
|
209 |
+
|
210 |
+
}
|
211 |
+
// Load from HTML
|
212 |
+
else {
|
213 |
+
this.box_skitter.find('ul li').each(function(){
|
214 |
+
++u;
|
215 |
+
var link = ($(this).find('a').length) ? $(this).find('a').attr('href') : '#';
|
216 |
+
var src = $(this).find('img').attr('src');
|
217 |
+
var animation_type = $(this).find('img').attr('class');
|
218 |
+
var label = $(this).find('.label_text').html();
|
219 |
+
var target = ($(this).find('a').length && $(this).find('a').attr('target')) ? $(this).find('a').attr('target') : '_self';
|
220 |
+
addImageLink(link, src, animation_type, label, target);
|
221 |
+
});
|
222 |
+
}
|
223 |
+
|
224 |
+
// Thumbs
|
225 |
+
if (self.settings.thumbs && !self.settings.fullscreen)
|
226 |
+
{
|
227 |
+
// New animation
|
228 |
+
self.settings.animateNumberOut = {opacity:0.3};
|
229 |
+
self.settings.animateNumberOver = {opacity:0.5};
|
230 |
+
self.settings.animateNumberActive = {opacity:1};
|
231 |
+
|
232 |
+
self.box_skitter.find('.info_slide').addClass('info_slide_thumb');
|
233 |
+
var width_info_slide = (u + 1) * self.box_skitter.find('.info_slide_thumb .image_number').width();
|
234 |
+
self.box_skitter.find('.info_slide_thumb').width(width_info_slide);
|
235 |
+
self.box_skitter.css({height:self.box_skitter.height() + self.box_skitter.find('.info_slide').height()});
|
236 |
+
|
237 |
+
self.box_skitter.append('<div class="container_thumbs"></div>');
|
238 |
+
var copy_info_slide = self.box_skitter.find('.info_slide').clone();
|
239 |
+
self.box_skitter.find('.info_slide').remove();
|
240 |
+
self.box_skitter.find('.container_thumbs')
|
241 |
+
.width(self.settings.width_skitter)
|
242 |
+
.append(copy_info_slide);
|
243 |
+
|
244 |
+
// Scrolling with mouse movement
|
245 |
+
var width_image = 0,
|
246 |
+
width_skitter = this.settings.width_skitter,
|
247 |
+
height_skitter = this.settings.height_skitter,
|
248 |
+
w_info_slide_thumb = 0,
|
249 |
+
info_slide_thumb = self.box_skitter.find('.info_slide_thumb'),
|
250 |
+
x_value = 0,
|
251 |
+
y_value = self.box_skitter.offset().top;
|
252 |
+
|
253 |
+
info_slide_thumb.find('.image_number').each(function(){
|
254 |
+
width_image += $(this).outerWidth();
|
255 |
+
});
|
256 |
+
|
257 |
+
info_slide_thumb.width(width_image+'px');
|
258 |
+
w_info_slide_thumb = info_slide_thumb.width();
|
259 |
+
width_value = this.settings.width_skitter;
|
260 |
+
|
261 |
+
width_value = width_skitter - 100;
|
262 |
+
|
263 |
+
if (width_info_slide > self.settings.width_skitter) {
|
264 |
+
self.box_skitter.mousemove(function(e){
|
265 |
+
x_value = self.box_skitter.offset().left + 90;
|
266 |
+
|
267 |
+
var x = e.pageX, y = e.pageY, new_x = 0;
|
268 |
+
|
269 |
+
x = x - x_value;
|
270 |
+
y = y - y_value;
|
271 |
+
novo_width = w_info_slide_thumb - width_value;
|
272 |
+
new_x = -((novo_width * x) / width_value);
|
273 |
+
|
274 |
+
if (new_x > 0) new_x = 0;
|
275 |
+
if (new_x < -(w_info_slide_thumb - width_skitter)) new_x = -(w_info_slide_thumb - width_skitter);
|
276 |
+
|
277 |
+
if (y > height_skitter) {
|
278 |
+
info_slide_thumb.css({left: new_x});
|
279 |
+
}
|
280 |
+
});
|
281 |
+
}
|
282 |
+
|
283 |
+
self.box_skitter.find('.scroll_thumbs').css({'left':10});
|
284 |
+
|
285 |
+
if (width_info_slide < self.settings.width_skitter) {
|
286 |
+
self.box_skitter.find('.info_slide').width('auto');
|
287 |
+
self.box_skitter.find('.box_scroll_thumbs').hide();
|
288 |
+
|
289 |
+
var class_info = '.info_slide';
|
290 |
+
switch (self.settings.numbers_align) {
|
291 |
+
case 'center' :
|
292 |
+
var _vleft = (self.settings.width_skitter - self.box_skitter.find(class_info).width()) / 2;
|
293 |
+
self.box_skitter.find(class_info).css({'left':_vleft});
|
294 |
+
break;
|
295 |
+
|
296 |
+
case 'right' :
|
297 |
+
self.box_skitter.find(class_info).css({'left':'auto', 'right':'-5px'});
|
298 |
+
break;
|
299 |
+
|
300 |
+
case 'left' :
|
301 |
+
self.box_skitter.find(class_info).css({'left':'0px'});
|
302 |
+
break;
|
303 |
+
}
|
304 |
+
}
|
305 |
+
|
306 |
+
}
|
307 |
+
else
|
308 |
+
{
|
309 |
+
var class_info = '.info_slide';
|
310 |
+
|
311 |
+
if (self.settings.dots) {
|
312 |
+
self.box_skitter.find('.info_slide').addClass('info_slide_dots').removeClass('info_slide');
|
313 |
+
class_info = '.info_slide_dots';
|
314 |
+
}
|
315 |
+
|
316 |
+
switch (self.settings.numbers_align) {
|
317 |
+
case 'center' :
|
318 |
+
var _vleft = (self.settings.width_skitter - self.box_skitter.find(class_info).width()) / 2;
|
319 |
+
self.box_skitter.find(class_info).css({'left':_vleft});
|
320 |
+
break;
|
321 |
+
|
322 |
+
case 'right' :
|
323 |
+
self.box_skitter.find(class_info).css({'left':'auto', 'right':'15px'});
|
324 |
+
break;
|
325 |
+
|
326 |
+
case 'left' :
|
327 |
+
self.box_skitter.find(class_info).css({'left':'15px'});
|
328 |
+
break;
|
329 |
+
}
|
330 |
+
|
331 |
+
if (!self.settings.dots) {
|
332 |
+
if (self.box_skitter.find('.info_slide').height() > 20) {
|
333 |
+
self.box_skitter.find('.info_slide').hide();
|
334 |
+
}
|
335 |
+
}
|
336 |
+
}
|
337 |
+
|
338 |
+
this.box_skitter.find('ul').hide();
|
339 |
+
|
340 |
+
if (this.settings.show_randomly)
|
341 |
+
this.settings.images_links.sort(function(a,b) {return Math.random() - 0.5;});
|
342 |
+
|
343 |
+
this.settings.image_atual = this.settings.images_links[0][0];
|
344 |
+
this.settings.link_atual = this.settings.images_links[0][1];
|
345 |
+
this.settings.label_atual = this.settings.images_links[0][3];
|
346 |
+
this.settings.target_atual = this.settings.images_links[0][4];
|
347 |
+
|
348 |
+
if (this.settings.images_links.length > 1)
|
349 |
+
{
|
350 |
+
this.box_skitter.find('.prev_button').click(function() {
|
351 |
+
if (self.settings.is_animating == false) {
|
352 |
+
|
353 |
+
self.settings.image_i -= 2;
|
354 |
+
|
355 |
+
if (self.settings.image_i == -2) {
|
356 |
+
self.settings.image_i = self.settings.images_links.length - 2;
|
357 |
+
}
|
358 |
+
else if (self.settings.image_i == -1) {
|
359 |
+
self.settings.image_i = self.settings.images_links.length - 1;
|
360 |
+
}
|
361 |
+
|
362 |
+
self.jumpToImage(self.settings.image_i);
|
363 |
+
}
|
364 |
+
return false;
|
365 |
+
});
|
366 |
+
|
367 |
+
this.box_skitter.find('.next_button').click(function() {
|
368 |
+
self.jumpToImage(self.settings.image_i);
|
369 |
+
return false;
|
370 |
+
});
|
371 |
+
|
372 |
+
self.box_skitter.find('.next_button, .prev_button').bind('mouseover', self.settings.mouseOverButton);
|
373 |
+
self.box_skitter.find('.next_button, .prev_button').bind('mouseleave', self.settings.mouseOutButton);
|
374 |
+
|
375 |
+
this.box_skitter.find('.image_number').hover(function() {
|
376 |
+
if ($(this).attr('class') != 'image_number image_number_select') {
|
377 |
+
$(this).stop().animate(self.settings.animateNumberOver, 300);
|
378 |
+
}
|
379 |
+
}, function(){
|
380 |
+
if ($(this).attr('class') != 'image_number image_number_select') {
|
381 |
+
$(this).stop().animate(self.settings.animateNumberOut, 500);
|
382 |
+
}
|
383 |
+
});
|
384 |
+
|
385 |
+
this.box_skitter.find('.image_number').click(function(){
|
386 |
+
if ($(this).attr('class') != 'image_number image_number_select') {
|
387 |
+
var imageNumber = parseInt($(this).attr('rel'));
|
388 |
+
self.jumpToImage(imageNumber);
|
389 |
+
}
|
390 |
+
return false;
|
391 |
+
});
|
392 |
+
|
393 |
+
this.box_skitter.find('.image_number').css(self.settings.animateNumberOut);
|
394 |
+
this.box_skitter.find('.image_number:eq(0)').css(self.settings.animateNumberActive);
|
395 |
+
|
396 |
+
// Preview with dots
|
397 |
+
if (self.settings.preview && self.settings.dots)
|
398 |
+
{
|
399 |
+
var preview = $('<div class="preview_slide"><ul></ul></div>');
|
400 |
+
|
401 |
+
for (var i = 0; i < this.settings.images_links.length; i++) {
|
402 |
+
var li = $('<li></li>');
|
403 |
+
var img = $('<img />');
|
404 |
+
img.attr('src', this.settings.images_links[i][0]);
|
405 |
+
li.append(img);
|
406 |
+
preview.find('ul').append(li);
|
407 |
+
}
|
408 |
+
|
409 |
+
var width_preview_ul = parseInt(this.settings.images_links.length * 100);
|
410 |
+
preview.find('ul').width(width_preview_ul);
|
411 |
+
$(class_info).append(preview);
|
412 |
+
|
413 |
+
self.box_skitter.find(class_info).find('.image_number').mouseenter(function() {
|
414 |
+
var _left_info = parseFloat(self.box_skitter.find(class_info).offset().left);
|
415 |
+
var _left_image = parseFloat($(this).offset().left);
|
416 |
+
var _left_preview = (_left_image - _left_info) - 43;
|
417 |
+
|
418 |
+
var rel = parseInt($(this).attr('rel'));
|
419 |
+
var image_current_preview = self.box_skitter.find('.preview_slide_current img').attr('src');
|
420 |
+
var _left_ul = -(rel * 100);
|
421 |
+
|
422 |
+
self.box_skitter.find('.preview_slide').find('ul').animate({left: _left_ul}, {duration:200, queue: false, easing: 'easeOutSine'});
|
423 |
+
self.box_skitter.find('.preview_slide').fadeTo(1,1).animate({left: _left_preview}, {duration:200, queue: false});
|
424 |
+
});
|
425 |
+
|
426 |
+
self.box_skitter.find(class_info).mouseleave(function() {
|
427 |
+
$('.preview_slide').animate({opacity: 'hide'}, {duration: 200, queue: false});
|
428 |
+
});
|
429 |
+
}
|
430 |
+
}
|
431 |
+
|
432 |
+
// Focus
|
433 |
+
if (self.settings.focus) {
|
434 |
+
self.focusSkitter();
|
435 |
+
}
|
436 |
+
|
437 |
+
// Constrols
|
438 |
+
if (self.settings.controls) {
|
439 |
+
self.setControls();
|
440 |
+
}
|
441 |
+
|
442 |
+
// Progressbar
|
443 |
+
if (self.settings.progressbar && self.settings.auto_play) {
|
444 |
+
self.addProgressBar();
|
445 |
+
}
|
446 |
+
|
447 |
+
// hideTools
|
448 |
+
if (self.settings.hideTools) {
|
449 |
+
self.hideTools();
|
450 |
+
}
|
451 |
+
|
452 |
+
// Navigation keys
|
453 |
+
if (self.settings.enable_navigation_keys) {
|
454 |
+
self.enableNavigationKeys();
|
455 |
+
}
|
456 |
+
|
457 |
+
this.loadImages();
|
458 |
+
},
|
459 |
+
|
460 |
+
/**
|
461 |
+
* Load images
|
462 |
+
*/
|
463 |
+
loadImages: function ()
|
464 |
+
{
|
465 |
+
var self = this;
|
466 |
+
|
467 |
+
var loading = $('<div class="loading">Loading</div>');
|
468 |
+
this.box_skitter.append(loading);
|
469 |
+
var total = this.settings.images_links.length;
|
470 |
+
|
471 |
+
var u = 0;
|
472 |
+
$.each(this.settings.images_links, function(i)
|
473 |
+
{
|
474 |
+
var self_il = this;
|
475 |
+
var loading = $('<span class="image_loading"></span>');
|
476 |
+
loading.css({position:'absolute', top:'-9999em'});
|
477 |
+
self.box_skitter.append(loading);
|
478 |
+
var img = new Image();
|
479 |
+
|
480 |
+
$(img).load(function () {
|
481 |
+
++u;
|
482 |
+
if (u == total) {
|
483 |
+
self.box_skitter.find('.loading').remove();
|
484 |
+
self.box_skitter.find('.image_loading').remove();
|
485 |
+
self.start();
|
486 |
+
}
|
487 |
+
}).error(function () {
|
488 |
+
self.box_skitter.find('.loading, .image_loading, .image_number, .next_button, .prev_button').remove();
|
489 |
+
self.box_skitter.html('<p style="color:white;background:black;">Error loading images. One or more images were not found.</p>');
|
490 |
+
}).attr('src', self_il[0]);
|
491 |
+
});
|
492 |
+
},
|
493 |
+
|
494 |
+
/**
|
495 |
+
* Start skitter
|
496 |
+
*/
|
497 |
+
start: function()
|
498 |
+
{
|
499 |
+
var self = this;
|
500 |
+
var init_pause = false;
|
501 |
+
|
502 |
+
if (this.settings.numbers || this.settings.thumbs) this.box_skitter.find('.info_slide').fadeIn(500);
|
503 |
+
if (this.settings.dots) this.box_skitter.find('.info_slide_dots').fadeIn(500);
|
504 |
+
if (this.settings.label) this.box_skitter.find('.label_skitter').show();
|
505 |
+
if (this.settings.navigation) {
|
506 |
+
this.box_skitter.find('.prev_button').fadeIn(500);
|
507 |
+
this.box_skitter.find('.next_button').fadeIn(500);
|
508 |
+
}
|
509 |
+
|
510 |
+
if (self.settings.auto_play) {
|
511 |
+
self.startTime();
|
512 |
+
}
|
513 |
+
|
514 |
+
self.windowFocusOut();
|
515 |
+
self.setLinkAtual();
|
516 |
+
|
517 |
+
self.box_skitter.find('.image a img').attr({'src': self.settings.image_atual});
|
518 |
+
img_link = self.box_skitter.find('.image a');
|
519 |
+
img_link = self.resizeImage(img_link);
|
520 |
+
img_link.find('img').fadeIn(1500);
|
521 |
+
|
522 |
+
self.setValueBoxText();
|
523 |
+
self.showBoxText();
|
524 |
+
|
525 |
+
if (self.settings.auto_play) {
|
526 |
+
self.stopOnMouseOver();
|
527 |
+
}
|
528 |
+
|
529 |
+
var mouseOverInit = function() {
|
530 |
+
if (self.settings.stop_over) {
|
531 |
+
init_pause = true;
|
532 |
+
self.settings.is_hover_box_skitter = true;
|
533 |
+
self.clearTimer(true);
|
534 |
+
self.pauseProgressBar();
|
535 |
+
}
|
536 |
+
};
|
537 |
+
|
538 |
+
self.box_skitter.mouseover(mouseOverInit);
|
539 |
+
self.box_skitter.find('.next_button').mouseover(mouseOverInit);
|
540 |
+
|
541 |
+
if (self.settings.images_links.length > 1 && !init_pause) {
|
542 |
+
if (self.settings.auto_play) {
|
543 |
+
self.timer = setTimeout(function() { self.nextImage(); }, self.settings.interval);
|
544 |
+
}
|
545 |
+
}
|
546 |
+
else {
|
547 |
+
self.box_skitter.find('.loading, .image_loading, .image_number, .next_button, .prev_button').remove();
|
548 |
+
}
|
549 |
+
|
550 |
+
if ($.isFunction(self.settings.onLoad)) self.settings.onLoad(self);
|
551 |
+
},
|
552 |
+
|
553 |
+
/**
|
554 |
+
* Jump to image
|
555 |
+
*/
|
556 |
+
jumpToImage: function(imageNumber)
|
557 |
+
{
|
558 |
+
if (this.settings.is_animating == false) {
|
559 |
+
this.settings.elapsedTime = 0;
|
560 |
+
this.box_skitter.find('.box_clone').stop();
|
561 |
+
this.clearTimer(true);
|
562 |
+
this.settings.image_i = Math.floor(imageNumber);
|
563 |
+
|
564 |
+
this.box_skitter.find('.image a').attr({'href': this.settings.link_atual});
|
565 |
+
this.box_skitter.find('.image_main').attr({'src': this.settings.image_atual});
|
566 |
+
this.box_skitter.find('.box_clone').remove();
|
567 |
+
|
568 |
+
this.nextImage();
|
569 |
+
}
|
570 |
+
},
|
571 |
+
|
572 |
+
/**
|
573 |
+
* Next image
|
574 |
+
*/
|
575 |
+
nextImage: function()
|
576 |
+
{
|
577 |
+
var self = this;
|
578 |
+
|
579 |
+
animations_functions = [
|
580 |
+
'cube',
|
581 |
+
'cubeRandom',
|
582 |
+
'block',
|
583 |
+
'cubeStop',
|
584 |
+
'cubeStopRandom',
|
585 |
+
'cubeHide',
|
586 |
+
'cubeSize',
|
587 |
+
'horizontal',
|
588 |
+
'showBars',
|
589 |
+
'showBarsRandom',
|
590 |
+
'tube',
|
591 |
+
'fade',
|
592 |
+
'fadeFour',
|
593 |
+
'paralell',
|
594 |
+
'blind',
|
595 |
+
'blindHeight',
|
596 |
+
'blindWidth',
|
597 |
+
'directionTop',
|
598 |
+
'directionBottom',
|
599 |
+
'directionRight',
|
600 |
+
'directionLeft',
|
601 |
+
'cubeSpread',
|
602 |
+
'glassCube',
|
603 |
+
'glassBlock',
|
604 |
+
'circles',
|
605 |
+
'circlesInside',
|
606 |
+
'circlesRotate',
|
607 |
+
'cubeShow',
|
608 |
+
'upBars',
|
609 |
+
'downBars',
|
610 |
+
'hideBars',
|
611 |
+
'swapBars',
|
612 |
+
'swapBarsBack',
|
613 |
+
'swapBlocks',
|
614 |
+
'cut'
|
615 |
+
];
|
616 |
+
|
617 |
+
if (self.settings.progressbar) self.hideProgressBar();
|
618 |
+
|
619 |
+
animation_type = (this.settings.animation == '' && this.settings.images_links[this.settings.image_i][2]) ?
|
620 |
+
this.settings.images_links[this.settings.image_i][2] : (this.settings.animation == '' ? 'default' : this.settings.animation);
|
621 |
+
|
622 |
+
// RandomUnique
|
623 |
+
if (animation_type == 'randomSmart')
|
624 |
+
{
|
625 |
+
if (!this.settings.random_ia) {
|
626 |
+
animations_functions.sort(function() {
|
627 |
+
return 0.5 - Math.random();
|
628 |
+
});
|
629 |
+
this.settings.random_ia = animations_functions;
|
630 |
+
}
|
631 |
+
animation_type = this.settings.random_ia[this.settings.image_i];
|
632 |
+
}
|
633 |
+
// Random
|
634 |
+
else if (animation_type == 'random')
|
635 |
+
{
|
636 |
+
var random_id = parseInt(Math.random() * animations_functions.length);
|
637 |
+
animation_type = animations_functions[random_id];
|
638 |
+
}
|
639 |
+
// Specific animations
|
640 |
+
else if (self.settings.with_animations.length > 0)
|
641 |
+
{
|
642 |
+
var total_with_animations = self.settings.with_animations.length;
|
643 |
+
if (this.settings._i_animation == undefined) {
|
644 |
+
this.settings._i_animation = 0;
|
645 |
+
}
|
646 |
+
animation_type = self.settings.with_animations[this.settings._i_animation];
|
647 |
+
++this.settings._i_animation;
|
648 |
+
if (this.settings._i_animation >= total_with_animations) this.settings._i_animation = 0;
|
649 |
+
}
|
650 |
+
|
651 |
+
switch (animation_type)
|
652 |
+
{
|
653 |
+
case 'cube' :
|
654 |
+
this.animationCube();
|
655 |
+
break;
|
656 |
+
case 'cubeRandom' :
|
657 |
+
this.animationCube({random:true});
|
658 |
+
break;
|
659 |
+
case 'block' :
|
660 |
+
this.animationBlock();
|
661 |
+
break;
|
662 |
+
case 'cubeStop' :
|
663 |
+
this.animationCubeStop();
|
664 |
+
break;
|
665 |
+
case 'cubeStopRandom' :
|
666 |
+
this.animationCubeStop({random:true});
|
667 |
+
break;
|
668 |
+
case 'cubeHide' :
|
669 |
+
this.animationCubeHide();
|
670 |
+
break;
|
671 |
+
case 'cubeSize' :
|
672 |
+
this.animationCubeSize();
|
673 |
+
break;
|
674 |
+
case 'horizontal' :
|
675 |
+
this.animationHorizontal();
|
676 |
+
break;
|
677 |
+
case 'showBars' :
|
678 |
+
this.animationShowBars();
|
679 |
+
break;
|
680 |
+
case 'showBarsRandom' :
|
681 |
+
this.animationShowBars({random:true});
|
682 |
+
break;
|
683 |
+
case 'tube' :
|
684 |
+
this.animationTube();
|
685 |
+
break;
|
686 |
+
case 'fade' :
|
687 |
+
this.animationFade();
|
688 |
+
break;
|
689 |
+
case 'fadeFour' :
|
690 |
+
this.animationFadeFour();
|
691 |
+
break;
|
692 |
+
case 'paralell' :
|
693 |
+
this.animationParalell();
|
694 |
+
break;
|
695 |
+
case 'blind' :
|
696 |
+
this.animationBlind();
|
697 |
+
break;
|
698 |
+
case 'blindHeight' :
|
699 |
+
this.animationBlindDimension({height:true});
|
700 |
+
break;
|
701 |
+
case 'blindWidth' :
|
702 |
+
this.animationBlindDimension({height:false, time_animate:400, delay:50});
|
703 |
+
break;
|
704 |
+
case 'directionTop' :
|
705 |
+
this.animationDirection({direction:'top'});
|
706 |
+
break;
|
707 |
+
case 'directionBottom' :
|
708 |
+
this.animationDirection({direction:'bottom'});
|
709 |
+
break;
|
710 |
+
case 'directionRight' :
|
711 |
+
this.animationDirection({direction:'right', total:5});
|
712 |
+
break;
|
713 |
+
case 'directionLeft' :
|
714 |
+
this.animationDirection({direction:'left', total:5});
|
715 |
+
break;
|
716 |
+
case 'cubeSpread' :
|
717 |
+
this.animationCubeSpread();
|
718 |
+
break;
|
719 |
+
case 'cubeJelly' :
|
720 |
+
this.animationCubeJelly();
|
721 |
+
break;
|
722 |
+
case 'glassCube' :
|
723 |
+
this.animationGlassCube();
|
724 |
+
break;
|
725 |
+
case 'glassBlock' :
|
726 |
+
this.animationGlassBlock();
|
727 |
+
break;
|
728 |
+
case 'circles' :
|
729 |
+
this.animationCircles();
|
730 |
+
break;
|
731 |
+
case 'circlesInside' :
|
732 |
+
this.animationCirclesInside();
|
733 |
+
break;
|
734 |
+
case 'circlesRotate' :
|
735 |
+
this.animationCirclesRotate();
|
736 |
+
break;
|
737 |
+
case 'cubeShow' :
|
738 |
+
this.animationCubeShow();
|
739 |
+
break;
|
740 |
+
case 'upBars' :
|
741 |
+
this.animationDirectionBars({direction: 'top'});
|
742 |
+
break;
|
743 |
+
case 'downBars' :
|
744 |
+
this.animationDirectionBars({direction: 'bottom'});
|
745 |
+
break;
|
746 |
+
case 'hideBars' :
|
747 |
+
this.animationHideBars();
|
748 |
+
break;
|
749 |
+
case 'swapBars' :
|
750 |
+
this.animationSwapBars();
|
751 |
+
break;
|
752 |
+
case 'swapBarsBack' :
|
753 |
+
this.animationSwapBars({easing: 'easeOutBack'});
|
754 |
+
break;
|
755 |
+
case 'swapBlocks' :
|
756 |
+
this.animationSwapBlocks();
|
757 |
+
break;
|
758 |
+
case 'cut' :
|
759 |
+
this.animationCut();
|
760 |
+
break;
|
761 |
+
default :
|
762 |
+
this.animationTube();
|
763 |
+
break;
|
764 |
+
}
|
765 |
+
},
|
766 |
+
|
767 |
+
animationCube: function (options)
|
768 |
+
{
|
769 |
+
var self = this;
|
770 |
+
|
771 |
+
var options = $.extend({}, {random: false}, options || {});
|
772 |
+
|
773 |
+
this.settings.is_animating = true;
|
774 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutExpo' : this.settings.easing_default;
|
775 |
+
var time_animate = 700 / this.settings.velocity;
|
776 |
+
|
777 |
+
this.setActualLevel();
|
778 |
+
|
779 |
+
var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
|
780 |
+
var division_h = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3));
|
781 |
+
var total = division_w * division_h;
|
782 |
+
|
783 |
+
var width_box = Math.ceil(this.settings.width_skitter / division_w);
|
784 |
+
var height_box = Math.ceil(this.settings.height_skitter / division_h);
|
785 |
+
|
786 |
+
var init_top = this.settings.height_skitter + 200;
|
787 |
+
var init_left = this.settings.height_skitter + 200;
|
788 |
+
|
789 |
+
var col_t = 0;
|
790 |
+
var col = 0;
|
791 |
+
|
792 |
+
for (i = 0; i < total; i++) {
|
793 |
+
|
794 |
+
init_top = (i % 2 == 0) ? init_top : -init_top;
|
795 |
+
init_left = (i % 2 == 0) ? init_left : -init_left;
|
796 |
+
|
797 |
+
var _vtop = init_top + (height_box * col_t) + (col_t * 150);
|
798 |
+
var _vleft = -self.settings.width_skitter;
|
799 |
+
//var _vleft = (init_left + (width_box * col)) + (col * 50);
|
800 |
+
|
801 |
+
var _vtop_image = -(height_box * col_t);
|
802 |
+
|
803 |
+
var _vleft_image = -(width_box * col);
|
804 |
+
var _btop = (height_box * col_t);
|
805 |
+
var _bleft = (width_box * col);
|
806 |
+
|
807 |
+
var box_clone = this.getBoxClone();
|
808 |
+
box_clone.hide();
|
809 |
+
|
810 |
+
var delay_time = 50 * (i);
|
811 |
+
|
812 |
+
if (options.random) {
|
813 |
+
delay_time = 40 * (col);
|
814 |
+
box_clone.css({left:_vleft+'px', top:_vtop+'px', width:width_box, height:height_box});
|
815 |
+
}
|
816 |
+
else {
|
817 |
+
time_animate = 500;
|
818 |
+
//box_clone.css({left:(this.settings.width_skitter / 2), top:this.settings.height_skitter + 50, width:width_box, height:height_box});
|
819 |
+
box_clone.css({left:(this.settings.width_skitter) + (width_box * i), top:this.settings.height_skitter + (height_box * i), width:width_box, height:height_box});
|
820 |
+
}
|
821 |
+
|
822 |
+
//box_clone.find('img').css({left:_vleft_image, top:_vtop_image});
|
823 |
+
//box_clone.find('img').css({left:_vleft_image+100, top:_vtop_image});
|
824 |
+
|
825 |
+
this.addBoxClone(box_clone);
|
826 |
+
|
827 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
828 |
+
box_clone.show().delay(delay_time).animate({top:_btop+'px', left:_bleft+'px'}, time_animate, easing, callback);
|
829 |
+
|
830 |
+
if (options.random) {
|
831 |
+
box_clone.find('img').css({left:_vleft_image+100, top:_vtop_image+50});
|
832 |
+
box_clone.find('img').delay(delay_time+(time_animate/2)).animate({left:_vleft_image, top:_vtop_image}, 1000, 'easeOutBack');
|
833 |
+
}
|
834 |
+
else {
|
835 |
+
box_clone.find('img').css({left:_vleft_image, top:_vtop_image});
|
836 |
+
box_clone.find('img').delay(delay_time+(time_animate/2)).fadeTo(100, 0.5).fadeTo(300, 1);
|
837 |
+
}
|
838 |
+
|
839 |
+
col_t++;
|
840 |
+
if (col_t == division_h) {
|
841 |
+
col_t = 0;
|
842 |
+
col++;
|
843 |
+
}
|
844 |
+
}
|
845 |
+
},
|
846 |
+
|
847 |
+
animationBlock: function(options)
|
848 |
+
{
|
849 |
+
var self = this;
|
850 |
+
|
851 |
+
this.settings.is_animating = true;
|
852 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutQuad' : this.settings.easing_default;
|
853 |
+
var time_animate = 500 / this.settings.velocity;
|
854 |
+
|
855 |
+
this.setActualLevel();
|
856 |
+
|
857 |
+
var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 15));
|
858 |
+
var width_box = Math.ceil(this.settings.width_skitter / total);
|
859 |
+
var height_box = (this.settings.height_skitter);
|
860 |
+
|
861 |
+
for (i = 0; i < total; i++) {
|
862 |
+
|
863 |
+
var _bleft = (width_box * (i));
|
864 |
+
var _btop = 0;
|
865 |
+
|
866 |
+
var box_clone = this.getBoxClone();
|
867 |
+
box_clone.css({left: this.settings.width_skitter + 100, top:0, width:width_box, height:height_box});
|
868 |
+
box_clone.find('img').css({left:-(width_box * i)});
|
869 |
+
|
870 |
+
this.addBoxClone(box_clone);
|
871 |
+
|
872 |
+
var delay_time = 80 * (i);
|
873 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
874 |
+
//box_clone.delay(delay_time).animate({top:_btop, left:_bleft, opacity:'show'}, time_animate, easing, callback);
|
875 |
+
|
876 |
+
box_clone.show().delay(delay_time).animate({top:_btop, left:_bleft}, time_animate, easing);
|
877 |
+
box_clone.find('img').hide().delay(delay_time+100).animate({opacity:'show'}, time_animate+300, easing, callback);
|
878 |
+
}
|
879 |
+
|
880 |
+
},
|
881 |
+
|
882 |
+
animationCubeStop: function(options)
|
883 |
+
{
|
884 |
+
var self = this;
|
885 |
+
|
886 |
+
var options = $.extend({}, {random: false}, options || {});
|
887 |
+
|
888 |
+
this.settings.is_animating = true;
|
889 |
+
var easing = (this.settings.easing_default == '') ? 'easeInQuad' : this.settings.easing_default;
|
890 |
+
var time_animate = 300 / this.settings.velocity;
|
891 |
+
|
892 |
+
var image_old = this.box_skitter.find('.image_main').attr('src');
|
893 |
+
|
894 |
+
this.setActualLevel();
|
895 |
+
|
896 |
+
this.setLinkAtual();
|
897 |
+
this.box_skitter.find('.image_main').attr({'src':this.settings.image_atual});
|
898 |
+
|
899 |
+
var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
|
900 |
+
var division_h = Math.ceil(this.settings.height_skitter / (this.settings.width_skitter / 8));
|
901 |
+
var total = division_w * division_h;
|
902 |
+
|
903 |
+
var width_box = Math.ceil(this.settings.width_skitter / division_w);
|
904 |
+
var height_box = Math.ceil(this.settings.height_skitter / division_h);
|
905 |
+
|
906 |
+
var init_top = 0;
|
907 |
+
var init_left = 0;
|
908 |
+
|
909 |
+
var col_t = 0;
|
910 |
+
var col = 0;
|
911 |
+
var _ftop = this.settings.width_skitter / 16;
|
912 |
+
|
913 |
+
for (i = 0; i < total; i++) {
|
914 |
+
init_top = (i % 2 == 0) ? init_top : -init_top;
|
915 |
+
init_left = (i % 2 == 0) ? init_left : -init_left;
|
916 |
+
|
917 |
+
var _vtop = init_top + (height_box * col_t);
|
918 |
+
var _vleft = (init_left + (width_box * col));
|
919 |
+
var _vtop_image = -(height_box * col_t);
|
920 |
+
|
921 |
+
var _vleft_image = -(width_box * col);
|
922 |
+
var _btop = _vtop - _ftop;
|
923 |
+
var _bleft = _vleft - _ftop;
|
924 |
+
|
925 |
+
var box_clone = this.getBoxCloneImgOld(image_old);
|
926 |
+
box_clone.css({left:_vleft+'px', top:_vtop+'px', width:width_box, height:height_box});
|
927 |
+
box_clone.find('img').css({left:_vleft_image, top:_vtop_image});
|
928 |
+
|
929 |
+
this.addBoxClone(box_clone);
|
930 |
+
box_clone.show();
|
931 |
+
|
932 |
+
var delay_time = 50 * i;
|
933 |
+
|
934 |
+
if (options.random) {
|
935 |
+
time_animate = (400 * (self.getRandom(2) + 1)) / this.settings.velocity;
|
936 |
+
_btop = _vtop;
|
937 |
+
_bleft = _vleft;
|
938 |
+
delay_time = Math.ceil( 30 * self.getRandom(30) );
|
939 |
+
}
|
940 |
+
|
941 |
+
if (options.random && i == (total - 1)) {
|
942 |
+
time_animate = 400 * 3;
|
943 |
+
delay_time = 30 * 30;
|
944 |
+
}
|
945 |
+
|
946 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
947 |
+
box_clone.delay(delay_time).animate({opacity:'hide', top:_btop+'px', left:_bleft+'px'}, time_animate, easing, callback);
|
948 |
+
|
949 |
+
col_t++;
|
950 |
+
if (col_t == division_h) {
|
951 |
+
col_t = 0;
|
952 |
+
col++;
|
953 |
+
}
|
954 |
+
}
|
955 |
+
},
|
956 |
+
|
957 |
+
animationCubeHide: function(options)
|
958 |
+
{
|
959 |
+
var self = this;
|
960 |
+
|
961 |
+
this.settings.is_animating = true;
|
962 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutQuad' : this.settings.easing_default;
|
963 |
+
var time_animate = 500 / this.settings.velocity;
|
964 |
+
|
965 |
+
var image_old = this.box_skitter.find('.image_main').attr('src');
|
966 |
+
|
967 |
+
this.setActualLevel();
|
968 |
+
|
969 |
+
this.setLinkAtual();
|
970 |
+
this.box_skitter.find('.image_main').attr({'src':this.settings.image_atual});
|
971 |
+
|
972 |
+
var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
|
973 |
+
var division_h = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3));
|
974 |
+
var total = division_w * division_h;
|
975 |
+
|
976 |
+
var width_box = Math.ceil(this.settings.width_skitter / division_w);
|
977 |
+
var height_box = Math.ceil(this.settings.height_skitter / division_h);
|
978 |
+
|
979 |
+
var init_top = 0;
|
980 |
+
var init_left = 0;
|
981 |
+
|
982 |
+
var col_t = 0;
|
983 |
+
var col = 0;
|
984 |
+
|
985 |
+
for (i = 0; i < total; i++) {
|
986 |
+
|
987 |
+
init_top = (i % 2 == 0) ? init_top : -init_top;
|
988 |
+
init_left = (i % 2 == 0) ? init_left : -init_left;
|
989 |
+
|
990 |
+
var _vtop = init_top + (height_box * col_t);
|
991 |
+
var _vleft = (init_left + (width_box * col));
|
992 |
+
var _vtop_image = -(height_box * col_t);
|
993 |
+
|
994 |
+
var _vleft_image = -(width_box * col);
|
995 |
+
var _btop = _vtop - 50;
|
996 |
+
var _bleft = _vleft - 50;
|
997 |
+
|
998 |
+
var box_clone = this.getBoxCloneImgOld(image_old);
|
999 |
+
box_clone.css({left:_vleft+'px', top:_vtop+'px', width:width_box, height:height_box});
|
1000 |
+
box_clone.find('img').css({left:_vleft_image, top:_vtop_image});
|
1001 |
+
|
1002 |
+
this.addBoxClone(box_clone);
|
1003 |
+
box_clone.show();
|
1004 |
+
|
1005 |
+
var delay_time = 50 * i;
|
1006 |
+
delay_time = (i == (total - 1)) ? (total * 50) : delay_time;
|
1007 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1008 |
+
|
1009 |
+
box_clone.delay(delay_time).animate({opacity:'hide'}, time_animate, easing, callback);
|
1010 |
+
|
1011 |
+
col_t++;
|
1012 |
+
if (col_t == division_h) {
|
1013 |
+
col_t = 0;
|
1014 |
+
col++;
|
1015 |
+
}
|
1016 |
+
}
|
1017 |
+
|
1018 |
+
},
|
1019 |
+
|
1020 |
+
animationCubeJelly: function(options)
|
1021 |
+
{
|
1022 |
+
var self = this;
|
1023 |
+
|
1024 |
+
this.settings.is_animating = true;
|
1025 |
+
var easing = (this.settings.easing_default == '') ? 'easeInBack' : this.settings.easing_default;
|
1026 |
+
var time_animate = 300 / this.settings.velocity;
|
1027 |
+
|
1028 |
+
var image_old = this.box_skitter.find('.image_main').attr('src');
|
1029 |
+
|
1030 |
+
this.setActualLevel();
|
1031 |
+
|
1032 |
+
this.setLinkAtual();
|
1033 |
+
this.box_skitter.find('.image_main').attr({'src':this.settings.image_atual});
|
1034 |
+
|
1035 |
+
var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
|
1036 |
+
var division_h = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3));
|
1037 |
+
var total = division_w * division_h;
|
1038 |
+
|
1039 |
+
var width_box = Math.ceil(this.settings.width_skitter / division_w);
|
1040 |
+
var height_box = Math.ceil(this.settings.height_skitter / division_h);
|
1041 |
+
|
1042 |
+
var init_top = 0;
|
1043 |
+
var init_left = 0;
|
1044 |
+
|
1045 |
+
var col_t = 0;
|
1046 |
+
var col = 0;
|
1047 |
+
var u = -1;
|
1048 |
+
|
1049 |
+
for (i = 0; i < total; i++) {
|
1050 |
+
|
1051 |
+
if (col % 2 != 0) {
|
1052 |
+
if (col_t == 0) {
|
1053 |
+
u = u + division_h + 1;
|
1054 |
+
}
|
1055 |
+
u--;
|
1056 |
+
}
|
1057 |
+
else {
|
1058 |
+
if (col > 0 && col_t == 0) {
|
1059 |
+
u = u + 2;
|
1060 |
+
}
|
1061 |
+
u++;
|
1062 |
+
}
|
1063 |
+
|
1064 |
+
init_top = (i % 2 == 0) ? init_top : -init_top;
|
1065 |
+
init_left = (i % 2 == 0) ? init_left : -init_left;
|
1066 |
+
|
1067 |
+
var _vtop = init_top + (height_box * col_t);
|
1068 |
+
var _vleft = (init_left + (width_box * col));
|
1069 |
+
var _vtop_image = -(height_box * col_t);
|
1070 |
+
|
1071 |
+
var _vleft_image = -(width_box * col);
|
1072 |
+
var _btop = _vtop - 50;
|
1073 |
+
var _bleft = _vleft - 50;
|
1074 |
+
|
1075 |
+
var box_clone = this.getBoxCloneImgOld(image_old);
|
1076 |
+
box_clone.css({left:_vleft+'px', top:_vtop+'px', width:width_box, height:height_box});
|
1077 |
+
box_clone.find('img').css({left:_vleft_image, top:_vtop_image});
|
1078 |
+
|
1079 |
+
this.addBoxClone(box_clone);
|
1080 |
+
box_clone.show();
|
1081 |
+
|
1082 |
+
var delay_time = (50 * i);
|
1083 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1084 |
+
|
1085 |
+
box_clone.delay(delay_time).animate({width:'+=100px', height:'+=100px', top:'-=20px', left: '-=20px', opacity:'hide'}, time_animate, easing, callback);
|
1086 |
+
col_t++;
|
1087 |
+
|
1088 |
+
if (col_t == division_h) {
|
1089 |
+
col_t = 0;
|
1090 |
+
col++;
|
1091 |
+
}
|
1092 |
+
|
1093 |
+
}
|
1094 |
+
},
|
1095 |
+
|
1096 |
+
animationCubeSize: function(options)
|
1097 |
+
{
|
1098 |
+
var self = this;
|
1099 |
+
|
1100 |
+
this.settings.is_animating = true;
|
1101 |
+
var easing = (this.settings.easing_default == '') ? 'easeInOutQuad' : this.settings.easing_default;
|
1102 |
+
var time_animate = 600 / this.settings.velocity;
|
1103 |
+
|
1104 |
+
var image_old = this.box_skitter.find('.image_main').attr('src');
|
1105 |
+
|
1106 |
+
this.setActualLevel();
|
1107 |
+
|
1108 |
+
this.setLinkAtual();
|
1109 |
+
this.box_skitter.find('.image_main').attr({'src':this.settings.image_atual});
|
1110 |
+
|
1111 |
+
var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
|
1112 |
+
var division_h = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3));
|
1113 |
+
var total = division_w * division_h;
|
1114 |
+
|
1115 |
+
var width_box = Math.ceil(this.settings.width_skitter / division_w);
|
1116 |
+
var height_box = Math.ceil(this.settings.height_skitter / division_h);
|
1117 |
+
|
1118 |
+
var init_top = 0;
|
1119 |
+
var init_left = 0;
|
1120 |
+
|
1121 |
+
var col_t = 0;
|
1122 |
+
var col = 0;
|
1123 |
+
var _ftop = Math.ceil(this.settings.width_skitter / 6);
|
1124 |
+
|
1125 |
+
for (i = 0; i < total; i++) {
|
1126 |
+
|
1127 |
+
init_top = (i % 2 == 0) ? init_top : -init_top;
|
1128 |
+
init_left = (i % 2 == 0) ? init_left : -init_left;
|
1129 |
+
|
1130 |
+
var _vtop = init_top + (height_box * col_t);
|
1131 |
+
var _vleft = (init_left + (width_box * col));
|
1132 |
+
var _vtop_image = -(height_box * col_t);
|
1133 |
+
|
1134 |
+
var _vleft_image = -(width_box * col);
|
1135 |
+
var _btop = _vtop - _ftop;
|
1136 |
+
var _bleft = _vleft - _ftop;
|
1137 |
+
|
1138 |
+
var box_clone = this.getBoxCloneImgOld(image_old);
|
1139 |
+
box_clone.css({left:_vleft, top:_vtop, width:width_box, height:height_box});
|
1140 |
+
box_clone.find('img').css({left:_vleft_image, top:_vtop_image});
|
1141 |
+
|
1142 |
+
this.addBoxClone(box_clone);
|
1143 |
+
box_clone.show();
|
1144 |
+
|
1145 |
+
var delay_time = 50 * i;
|
1146 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1147 |
+
box_clone.delay(delay_time).animate({
|
1148 |
+
opacity:'hide',width:'hide',height:'hide',top:_vtop+(width_box*1.5),left:_vleft+(height_box*1.5)
|
1149 |
+
}, time_animate, easing, callback);
|
1150 |
+
|
1151 |
+
col_t++;
|
1152 |
+
if (col_t == division_h) {
|
1153 |
+
col_t = 0;
|
1154 |
+
col++;
|
1155 |
+
}
|
1156 |
+
}
|
1157 |
+
|
1158 |
+
},
|
1159 |
+
|
1160 |
+
animationHorizontal: function(options)
|
1161 |
+
{
|
1162 |
+
var self = this;
|
1163 |
+
|
1164 |
+
this.settings.is_animating = true;
|
1165 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutExpo' : this.settings.easing_default;
|
1166 |
+
var time_animate = 700 / this.settings.velocity;
|
1167 |
+
|
1168 |
+
this.setActualLevel();
|
1169 |
+
|
1170 |
+
var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 7));
|
1171 |
+
var width_box = (this.settings.width_skitter);
|
1172 |
+
var height_box = Math.ceil(this.settings.height_skitter / total);
|
1173 |
+
|
1174 |
+
for (i = 0; i < total; i++) {
|
1175 |
+
var _bleft = (i % 2 == 0 ? '' : '') + width_box;
|
1176 |
+
var _btop = (i * height_box);
|
1177 |
+
|
1178 |
+
var box_clone = this.getBoxClone();
|
1179 |
+
|
1180 |
+
box_clone.css({left:_bleft+'px', top:_btop+'px', width:width_box, height:height_box});
|
1181 |
+
box_clone.find('img').css({left:0, top:-_btop});
|
1182 |
+
|
1183 |
+
this.addBoxClone(box_clone);
|
1184 |
+
|
1185 |
+
var delay_time = 90 * i;
|
1186 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1187 |
+
box_clone.delay(delay_time).animate({opacity:'show', top:_btop, left:0}, time_animate, easing, callback);
|
1188 |
+
}
|
1189 |
+
},
|
1190 |
+
|
1191 |
+
animationShowBars: function(options)
|
1192 |
+
{
|
1193 |
+
var self = this;
|
1194 |
+
|
1195 |
+
var options = $.extend({}, {random: false}, options || {});
|
1196 |
+
|
1197 |
+
this.settings.is_animating = true;
|
1198 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutQuad' : this.settings.easing_default;
|
1199 |
+
var time_animate = 400 / this.settings.velocity;
|
1200 |
+
|
1201 |
+
this.setActualLevel();
|
1202 |
+
|
1203 |
+
var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
|
1204 |
+
var width_box = Math.ceil(this.settings.width_skitter / total);
|
1205 |
+
var height_box = (this.settings.height_skitter);
|
1206 |
+
|
1207 |
+
for (i = 0; i < total; i++) {
|
1208 |
+
|
1209 |
+
var _bleft = (width_box * (i));
|
1210 |
+
var _btop = 0;
|
1211 |
+
|
1212 |
+
var box_clone = this.getBoxClone();
|
1213 |
+
|
1214 |
+
box_clone.css({left:_bleft, top:_btop - 50, width:width_box, height:height_box});
|
1215 |
+
box_clone.find('img').css({left:-(width_box * i), top:0});
|
1216 |
+
|
1217 |
+
this.addBoxClone(box_clone);
|
1218 |
+
|
1219 |
+
if (options.random) {
|
1220 |
+
var random = this.getRandom(total);
|
1221 |
+
var delay_time = 50 * random;
|
1222 |
+
delay_time = (i == (total - 1)) ? (50 * total) : delay_time;
|
1223 |
+
}
|
1224 |
+
else {
|
1225 |
+
var delay_time = 70 * (i);
|
1226 |
+
time_animate = time_animate - (i * 2);
|
1227 |
+
}
|
1228 |
+
|
1229 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1230 |
+
box_clone.delay(delay_time).animate({
|
1231 |
+
opacity:'show', top:_btop+'px', left:_bleft+'px'
|
1232 |
+
}, time_animate, easing, callback);
|
1233 |
+
}
|
1234 |
+
|
1235 |
+
},
|
1236 |
+
|
1237 |
+
animationTube: function(options)
|
1238 |
+
{
|
1239 |
+
var self = this;
|
1240 |
+
|
1241 |
+
this.settings.is_animating = true;
|
1242 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutElastic' : this.settings.easing_default;
|
1243 |
+
var time_animate = 600 / this.settings.velocity;
|
1244 |
+
|
1245 |
+
this.setActualLevel();
|
1246 |
+
|
1247 |
+
var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
|
1248 |
+
var width_box = Math.ceil(this.settings.width_skitter / total);
|
1249 |
+
var height_box = this.settings.height_skitter;
|
1250 |
+
|
1251 |
+
for (i = 0;i<total;i++) {
|
1252 |
+
var _btop = 0;
|
1253 |
+
var _vtop = height_box;
|
1254 |
+
var vleft = width_box * i;
|
1255 |
+
|
1256 |
+
var box_clone = this.getBoxClone();
|
1257 |
+
|
1258 |
+
box_clone.css({left:vleft,top: _vtop, height:height_box, width: width_box});
|
1259 |
+
box_clone.find('img').css({left:-(vleft)});
|
1260 |
+
|
1261 |
+
this.addBoxClone(box_clone);
|
1262 |
+
|
1263 |
+
var random = this.getRandom(total);
|
1264 |
+
var delay_time = 30 * random;
|
1265 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1266 |
+
box_clone.show().delay(delay_time).animate({top:_btop}, time_animate, easing, callback);
|
1267 |
+
}
|
1268 |
+
},
|
1269 |
+
|
1270 |
+
animationFade: function(options)
|
1271 |
+
{
|
1272 |
+
var self = this;
|
1273 |
+
|
1274 |
+
this.settings.is_animating = true;
|
1275 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutQuad' : this.settings.easing_default;
|
1276 |
+
var time_animate = 800 / this.settings.velocity;
|
1277 |
+
|
1278 |
+
this.setActualLevel();
|
1279 |
+
|
1280 |
+
var width_box = this.settings.width_skitter;
|
1281 |
+
var height_box = this.settings.height_skitter;
|
1282 |
+
var total = 2;
|
1283 |
+
|
1284 |
+
for (i = 0;i<total;i++) {
|
1285 |
+
var _vtop = 0;
|
1286 |
+
var _vleft = 0;
|
1287 |
+
|
1288 |
+
var box_clone = this.getBoxClone();
|
1289 |
+
box_clone.css({left:_vleft, top:_vtop, width:width_box, height:height_box});
|
1290 |
+
this.addBoxClone(box_clone);
|
1291 |
+
|
1292 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1293 |
+
box_clone.animate({opacity:'show', left:0, top:0}, time_animate, easing, callback);
|
1294 |
+
}
|
1295 |
+
},
|
1296 |
+
|
1297 |
+
animationFadeFour: function(options)
|
1298 |
+
{
|
1299 |
+
var self = this;
|
1300 |
+
|
1301 |
+
this.settings.is_animating = true;
|
1302 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutQuad' : this.settings.easing_default;
|
1303 |
+
var time_animate = 500 / this.settings.velocity;
|
1304 |
+
|
1305 |
+
this.setActualLevel();
|
1306 |
+
|
1307 |
+
var width_box = this.settings.width_skitter;
|
1308 |
+
var height_box = this.settings.height_skitter;
|
1309 |
+
var total = 4;
|
1310 |
+
|
1311 |
+
for (i = 0;i<total;i++) {
|
1312 |
+
|
1313 |
+
if (i == 0) {
|
1314 |
+
var _vtop = '-100px';
|
1315 |
+
var _vleft = '-100px';
|
1316 |
+
} else if (i == 1) {
|
1317 |
+
var _vtop = '-100px';
|
1318 |
+
var _vleft = '100px';
|
1319 |
+
} else if (i == 2) {
|
1320 |
+
var _vtop = '100px';
|
1321 |
+
var _vleft = '-100px';
|
1322 |
+
} else if (i == 3) {
|
1323 |
+
var _vtop = '100px';
|
1324 |
+
var _vleft = '100px';
|
1325 |
+
}
|
1326 |
+
|
1327 |
+
var box_clone = this.getBoxClone();
|
1328 |
+
box_clone.css({left:_vleft, top:_vtop, width:width_box, height:height_box});
|
1329 |
+
this.addBoxClone(box_clone);
|
1330 |
+
|
1331 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1332 |
+
box_clone.animate({opacity:'show', left:0, top:0}, time_animate, easing, callback);
|
1333 |
+
}
|
1334 |
+
},
|
1335 |
+
|
1336 |
+
animationParalell: function(options)
|
1337 |
+
{
|
1338 |
+
var self = this;
|
1339 |
+
|
1340 |
+
this.settings.is_animating = true;
|
1341 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutQuad' : this.settings.easing_default;
|
1342 |
+
var time_animate = 400 / this.settings.velocity;
|
1343 |
+
|
1344 |
+
this.setActualLevel();
|
1345 |
+
|
1346 |
+
var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 16));
|
1347 |
+
var width_box = Math.ceil(this.settings.width_skitter / total);
|
1348 |
+
var height_box = this.settings.height_skitter;
|
1349 |
+
|
1350 |
+
for (i = 0; i < total; i++) {
|
1351 |
+
|
1352 |
+
var _bleft = (width_box * (i));
|
1353 |
+
var _btop = 0;
|
1354 |
+
|
1355 |
+
var box_clone = this.getBoxClone();
|
1356 |
+
|
1357 |
+
box_clone.css({left:_bleft, top:_btop - this.settings.height_skitter, width:width_box, height:height_box});
|
1358 |
+
box_clone.find('img').css({left:-(width_box * i), top:0});
|
1359 |
+
|
1360 |
+
this.addBoxClone(box_clone);
|
1361 |
+
|
1362 |
+
var delay_time;
|
1363 |
+
if (i <= ((total / 2) - 1)) {
|
1364 |
+
delay_time = 1400 - (i * 200);
|
1365 |
+
}
|
1366 |
+
else if (i > ((total / 2) - 1)) {
|
1367 |
+
delay_time = ((i - (total / 2)) * 200);
|
1368 |
+
}
|
1369 |
+
delay_time = delay_time / 2.5;
|
1370 |
+
|
1371 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1372 |
+
box_clone.delay(delay_time).animate({
|
1373 |
+
top:_btop+'px', left:_bleft+'px', opacity: 'show'
|
1374 |
+
}, time_animate, easing, callback);
|
1375 |
+
}
|
1376 |
+
|
1377 |
+
},
|
1378 |
+
|
1379 |
+
animationBlind: function(options)
|
1380 |
+
{
|
1381 |
+
var self = this;
|
1382 |
+
|
1383 |
+
var options = $.extend({}, {height: false}, options || {});
|
1384 |
+
|
1385 |
+
this.settings.is_animating = true;
|
1386 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutQuad' : this.settings.easing_default;
|
1387 |
+
var time_animate = 400 / this.settings.velocity;
|
1388 |
+
|
1389 |
+
this.setActualLevel();
|
1390 |
+
|
1391 |
+
var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 16));
|
1392 |
+
var width_box = Math.ceil(this.settings.width_skitter / total);
|
1393 |
+
var height_box = this.settings.height_skitter;
|
1394 |
+
|
1395 |
+
for (i = 0; i < total; i++) {
|
1396 |
+
|
1397 |
+
var _bleft = (width_box * (i));
|
1398 |
+
var _btop = 0;
|
1399 |
+
|
1400 |
+
var box_clone = this.getBoxClone();
|
1401 |
+
|
1402 |
+
box_clone.css({left:_bleft, top:_btop, width:width_box, height:height_box});
|
1403 |
+
box_clone.find('img').css({left:-(width_box * i), top:0});
|
1404 |
+
|
1405 |
+
this.addBoxClone(box_clone);
|
1406 |
+
|
1407 |
+
var delay_time;
|
1408 |
+
|
1409 |
+
if (!options.height) {
|
1410 |
+
if (i <= ((total / 2) - 1)) {
|
1411 |
+
delay_time = 1400 - (i * 200);
|
1412 |
+
}
|
1413 |
+
else if (i > ((total / 2) - 1)) {
|
1414 |
+
delay_time = ((i - (total / 2)) * 200);
|
1415 |
+
}
|
1416 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1417 |
+
}
|
1418 |
+
else {
|
1419 |
+
if (i <= ((total / 2) - 1)) {
|
1420 |
+
delay_time = 200 + (i * 200);
|
1421 |
+
}
|
1422 |
+
else if (i > ((total / 2) - 1)) {
|
1423 |
+
delay_time = (((total / 2) - i) * 200) + (total * 100);
|
1424 |
+
}
|
1425 |
+
var callback = (i == (total / 2)) ? function() { self.finishAnimation(); } : '';
|
1426 |
+
}
|
1427 |
+
|
1428 |
+
delay_time = delay_time / 2.5;
|
1429 |
+
|
1430 |
+
if (!options.height) {
|
1431 |
+
box_clone.delay(delay_time).animate({
|
1432 |
+
opacity:'show',top:_btop+'px', left:_bleft+'px', width:'show'
|
1433 |
+
}, time_animate, easing, callback);
|
1434 |
+
}
|
1435 |
+
else {
|
1436 |
+
time_animate = time_animate + (i * 2);
|
1437 |
+
var easing = 'easeOutQuad';
|
1438 |
+
box_clone.delay(delay_time).animate({
|
1439 |
+
opacity:'show',top:_btop+'px', left:_bleft+'px', height:'show'
|
1440 |
+
}, time_animate, easing, callback);
|
1441 |
+
}
|
1442 |
+
}
|
1443 |
+
|
1444 |
+
},
|
1445 |
+
|
1446 |
+
animationBlindDimension: function(options)
|
1447 |
+
{
|
1448 |
+
var self = this;
|
1449 |
+
|
1450 |
+
var options = $.extend({}, {height: true, time_animate: 500, delay: 100}, options || {});
|
1451 |
+
|
1452 |
+
this.settings.is_animating = true;
|
1453 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutQuad' : this.settings.easing_default;
|
1454 |
+
var time_animate = options.time_animate / this.settings.velocity;
|
1455 |
+
|
1456 |
+
this.setActualLevel();
|
1457 |
+
|
1458 |
+
var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 16));
|
1459 |
+
var width_box = Math.ceil(this.settings.width_skitter / total);
|
1460 |
+
var height_box = this.settings.height_skitter;
|
1461 |
+
|
1462 |
+
for (i = 0; i < total; i++) {
|
1463 |
+
|
1464 |
+
var _bleft = (width_box * (i));
|
1465 |
+
var _btop = 0;
|
1466 |
+
|
1467 |
+
var box_clone = this.getBoxClone();
|
1468 |
+
|
1469 |
+
box_clone.css({left:_bleft, top:_btop, width:width_box, height:height_box});
|
1470 |
+
box_clone.find('img').css({left:-(width_box * i), top:0});
|
1471 |
+
|
1472 |
+
this.addBoxClone(box_clone);
|
1473 |
+
|
1474 |
+
var delay_time = options.delay * i;
|
1475 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1476 |
+
|
1477 |
+
if (!options.height) {
|
1478 |
+
box_clone.delay(delay_time).animate({
|
1479 |
+
opacity:'show',top:_btop+'px', left:_bleft+'px', width:'show'
|
1480 |
+
}, time_animate, easing, callback);
|
1481 |
+
}
|
1482 |
+
else {
|
1483 |
+
var easing = 'easeOutQuad';
|
1484 |
+
box_clone.delay(delay_time).animate({
|
1485 |
+
opacity:'show',top:_btop+'px', left:_bleft+'px', height:'show'
|
1486 |
+
}, time_animate, easing, callback);
|
1487 |
+
}
|
1488 |
+
}
|
1489 |
+
|
1490 |
+
},
|
1491 |
+
|
1492 |
+
animationDirection: function(options)
|
1493 |
+
{
|
1494 |
+
var self = this;
|
1495 |
+
|
1496 |
+
var options = $.extend({}, {direction: 'top', delay_type: 'sequence', total: 7}, options || {});
|
1497 |
+
|
1498 |
+
this.settings.is_animating = true;
|
1499 |
+
var easing = (this.settings.easing_default == '') ? 'easeInOutExpo' : this.settings.easing_default;
|
1500 |
+
var time_animate = 1200 / this.settings.velocity;
|
1501 |
+
|
1502 |
+
var image_old = this.box_skitter.find('.image_main').attr('src');
|
1503 |
+
|
1504 |
+
this.setActualLevel();
|
1505 |
+
|
1506 |
+
this.setLinkAtual();
|
1507 |
+
this.box_skitter.find('.image_main').attr({'src':this.settings.image_atual});
|
1508 |
+
this.box_skitter.find('.image_main').hide();
|
1509 |
+
|
1510 |
+
var total = options.total;
|
1511 |
+
|
1512 |
+
for (i = 0; i < total; i++) {
|
1513 |
+
|
1514 |
+
switch (options.direction)
|
1515 |
+
{
|
1516 |
+
default : case 'top' :
|
1517 |
+
|
1518 |
+
var width_box = Math.ceil(this.settings.width_skitter / total);
|
1519 |
+
var height_box = this.settings.height_skitter;
|
1520 |
+
|
1521 |
+
var _itopc = 0;
|
1522 |
+
var _ileftc = (width_box * i);
|
1523 |
+
var _ftopc = -height_box;
|
1524 |
+
var _fleftc = _ileftc;
|
1525 |
+
|
1526 |
+
var _itopn = height_box;
|
1527 |
+
var _ileftn = _ileftc;
|
1528 |
+
var _ftopn = 0;
|
1529 |
+
var _fleftn = _ileftc;
|
1530 |
+
|
1531 |
+
var _vtop_image = 0;
|
1532 |
+
var _vleft_image = -_ileftc;
|
1533 |
+
|
1534 |
+
break;
|
1535 |
+
|
1536 |
+
case 'bottom' :
|
1537 |
+
|
1538 |
+
var width_box = Math.ceil(this.settings.width_skitter / total);
|
1539 |
+
var height_box = this.settings.height_skitter;
|
1540 |
+
|
1541 |
+
var _itopc = 0;
|
1542 |
+
var _ileftc = (width_box * i);
|
1543 |
+
var _ftopc = height_box;
|
1544 |
+
var _fleftc = _ileftc;
|
1545 |
+
|
1546 |
+
var _itopn = -height_box;
|
1547 |
+
var _ileftn = _ileftc;
|
1548 |
+
var _ftopn = 0;
|
1549 |
+
var _fleftn = _ileftc;
|
1550 |
+
|
1551 |
+
var _vtop_image = 0;
|
1552 |
+
var _vleft_image = -_ileftc;
|
1553 |
+
|
1554 |
+
break;
|
1555 |
+
|
1556 |
+
case 'right' :
|
1557 |
+
|
1558 |
+
var width_box = this.settings.width_skitter;
|
1559 |
+
var height_box = Math.ceil(this.settings.height_skitter / total);
|
1560 |
+
|
1561 |
+
var _itopc = (height_box * i);
|
1562 |
+
var _ileftc = 0;
|
1563 |
+
var _ftopc = _itopc;
|
1564 |
+
var _fleftc = width_box;
|
1565 |
+
|
1566 |
+
var _itopn = _itopc;
|
1567 |
+
var _ileftn = -_fleftc;
|
1568 |
+
var _ftopn = _itopc;
|
1569 |
+
var _fleftn = 0;
|
1570 |
+
|
1571 |
+
var _vtop_image = -_itopc;
|
1572 |
+
var _vleft_image = 0;
|
1573 |
+
|
1574 |
+
break;
|
1575 |
+
|
1576 |
+
case 'left' :
|
1577 |
+
|
1578 |
+
var width_box = this.settings.width_skitter;
|
1579 |
+
var height_box = Math.ceil(this.settings.height_skitter / total);
|
1580 |
+
|
1581 |
+
var _itopc = (height_box * i);
|
1582 |
+
var _ileftc = 0;
|
1583 |
+
var _ftopc = _itopc;
|
1584 |
+
var _fleftc = -width_box;
|
1585 |
+
|
1586 |
+
var _itopn = _itopc;
|
1587 |
+
var _ileftn = -_fleftc;
|
1588 |
+
var _ftopn = _itopc;
|
1589 |
+
var _fleftn = 0;
|
1590 |
+
|
1591 |
+
var _vtop_image = -_itopc;
|
1592 |
+
var _vleft_image = 0;
|
1593 |
+
|
1594 |
+
break;
|
1595 |
+
|
1596 |
+
}
|
1597 |
+
|
1598 |
+
switch (options.delay_type)
|
1599 |
+
{
|
1600 |
+
case 'zebra' : default : var delay_time = (i % 2 == 0) ? 0 : 150; break;
|
1601 |
+
case 'random' : var delay_time = 30 * (Math.random() * 30); break;
|
1602 |
+
case 'sequence' : var delay_time = i * 100; break;
|
1603 |
+
}
|
1604 |
+
|
1605 |
+
var box_clone = this.getBoxCloneImgOld(image_old);
|
1606 |
+
box_clone.find('img').css({left:_vleft_image, top:_vtop_image});
|
1607 |
+
|
1608 |
+
box_clone.css({top:_itopc, left:_ileftc, width:width_box, height:height_box});
|
1609 |
+
|
1610 |
+
this.addBoxClone(box_clone);
|
1611 |
+
box_clone.show();
|
1612 |
+
box_clone.delay(delay_time).animate({ top:_ftopc, left:_fleftc }, time_animate, easing);
|
1613 |
+
|
1614 |
+
// Next image
|
1615 |
+
var box_clone_next = this.getBoxClone();
|
1616 |
+
box_clone_next.find('img').css({left:_vleft_image, top:_vtop_image});
|
1617 |
+
|
1618 |
+
box_clone_next.css({top:_itopn, left:_ileftn, width:width_box, height:height_box});
|
1619 |
+
|
1620 |
+
this.addBoxClone(box_clone_next);
|
1621 |
+
box_clone_next.show();
|
1622 |
+
|
1623 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1624 |
+
box_clone_next.delay(delay_time).animate({ top:_ftopn, left:_fleftn }, time_animate, easing, callback);
|
1625 |
+
|
1626 |
+
}
|
1627 |
+
},
|
1628 |
+
|
1629 |
+
animationCubeSpread: function(options)
|
1630 |
+
{
|
1631 |
+
var self = this;
|
1632 |
+
|
1633 |
+
this.settings.is_animating = true;
|
1634 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutQuad' : this.settings.easing_default;
|
1635 |
+
var time_animate = 700 / this.settings.velocity;
|
1636 |
+
|
1637 |
+
this.setActualLevel();
|
1638 |
+
|
1639 |
+
var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
|
1640 |
+
var division_h = Math.ceil(this.settings.height_skitter / (this.settings.width_skitter / 8));
|
1641 |
+
var total = division_w * division_h;
|
1642 |
+
|
1643 |
+
var width_box = Math.ceil(this.settings.width_skitter / division_w);
|
1644 |
+
var height_box = Math.ceil(this.settings.height_skitter / division_h);
|
1645 |
+
|
1646 |
+
var init_top = 0;
|
1647 |
+
var init_left = 0;
|
1648 |
+
|
1649 |
+
var col_t = 0;
|
1650 |
+
var col = 0;
|
1651 |
+
var order = new Array;
|
1652 |
+
var spread = new Array;
|
1653 |
+
|
1654 |
+
// Make order
|
1655 |
+
for (i = 0; i < total; i++) {
|
1656 |
+
init_top = (i % 2 == 0) ? init_top : -init_top;
|
1657 |
+
init_left = (i % 2 == 0) ? init_left : -init_left;
|
1658 |
+
|
1659 |
+
var _vtop = init_top + (height_box * col_t);
|
1660 |
+
var _vleft = (init_left + (width_box * col));
|
1661 |
+
|
1662 |
+
order[i] = [_vtop, _vleft];
|
1663 |
+
|
1664 |
+
col_t++;
|
1665 |
+
if (col_t == division_h) {
|
1666 |
+
col_t = 0;
|
1667 |
+
col++;
|
1668 |
+
}
|
1669 |
+
}
|
1670 |
+
|
1671 |
+
// Reset col and col_t
|
1672 |
+
col_t = 0;
|
1673 |
+
col = 0;
|
1674 |
+
|
1675 |
+
// Make array for spread
|
1676 |
+
for (i = 0; i < total; i++) {
|
1677 |
+
spread[i] = i;
|
1678 |
+
};
|
1679 |
+
|
1680 |
+
// Shuffle array
|
1681 |
+
var spread = self.shuffleArray(spread);
|
1682 |
+
|
1683 |
+
for (i = 0; i < total; i++) {
|
1684 |
+
init_top = (i % 2 == 0) ? init_top : -init_top;
|
1685 |
+
init_left = (i % 2 == 0) ? init_left : -init_left;
|
1686 |
+
|
1687 |
+
var _vtop = init_top + (height_box * col_t);
|
1688 |
+
var _vleft = (init_left + (width_box * col));
|
1689 |
+
var _vtop_image = -(height_box * col_t);
|
1690 |
+
|
1691 |
+
var _vleft_image = -(width_box * col);
|
1692 |
+
var _btop = _vtop;
|
1693 |
+
var _bleft = _vleft;
|
1694 |
+
|
1695 |
+
_vtop = order[spread[i]][0];
|
1696 |
+
_vleft = order[spread[i]][1];
|
1697 |
+
|
1698 |
+
var box_clone = this.getBoxClone();
|
1699 |
+
|
1700 |
+
box_clone.css({left:_vleft+'px', top:_vtop+'px', width:width_box, height:height_box});
|
1701 |
+
box_clone.find('img').css({left:_vleft_image, top:_vtop_image});
|
1702 |
+
|
1703 |
+
this.addBoxClone(box_clone);
|
1704 |
+
|
1705 |
+
var delay_time = 30 * (Math.random() * 30);
|
1706 |
+
if (i == (total-1)) delay_time = 30 * 30;
|
1707 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1708 |
+
box_clone.delay(delay_time).animate({opacity:'show',top:_btop+'px', left:_bleft+'px'}, time_animate, easing, callback);
|
1709 |
+
|
1710 |
+
col_t++;
|
1711 |
+
if (col_t == division_h) {
|
1712 |
+
col_t = 0;
|
1713 |
+
col++;
|
1714 |
+
}
|
1715 |
+
}
|
1716 |
+
},
|
1717 |
+
|
1718 |
+
animationGlassCube: function(options)
|
1719 |
+
{
|
1720 |
+
var self = this;
|
1721 |
+
|
1722 |
+
this.settings.is_animating = true;
|
1723 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutExpo' : this.settings.easing_default;
|
1724 |
+
var time_animate = 500 / this.settings.velocity;
|
1725 |
+
|
1726 |
+
this.setActualLevel();
|
1727 |
+
|
1728 |
+
var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10)) * 2;
|
1729 |
+
var width_box = Math.ceil(this.settings.width_skitter / total) * 2;
|
1730 |
+
var height_box = (this.settings.height_skitter) / 2;
|
1731 |
+
var col = 0;
|
1732 |
+
|
1733 |
+
for (i = 0; i < total; i++) {
|
1734 |
+
mod = (i % 2) == 0 ? true : false;
|
1735 |
+
|
1736 |
+
var _ileft = (width_box * (col));
|
1737 |
+
var _itop = (mod) ? -self.settings.height_skitter : self.settings.height_skitter;
|
1738 |
+
|
1739 |
+
var _fleft = (width_box * (col));
|
1740 |
+
var _ftop = (mod) ? 0 : (height_box);
|
1741 |
+
|
1742 |
+
var _bleft = -(width_box * col);
|
1743 |
+
var _btop = (mod) ? 0 : -(height_box);
|
1744 |
+
|
1745 |
+
var delay_time = 120 * col;
|
1746 |
+
|
1747 |
+
var box_clone = this.getBoxClone();
|
1748 |
+
box_clone.css({left: _ileft, top:_itop, width:width_box, height:height_box});
|
1749 |
+
|
1750 |
+
box_clone
|
1751 |
+
.find('img')
|
1752 |
+
.css({left: _bleft + (width_box / 1.5), top: _btop})
|
1753 |
+
.delay(delay_time)
|
1754 |
+
.animate({left: _bleft, top: _btop}, (time_animate * 1.9), 'easeOutQuad');
|
1755 |
+
|
1756 |
+
this.addBoxClone(box_clone);
|
1757 |
+
|
1758 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1759 |
+
box_clone.show().delay(delay_time).animate({top:_ftop, left:_fleft}, time_animate, easing, callback);
|
1760 |
+
|
1761 |
+
if ((i % 2) != 0) col++;
|
1762 |
+
}
|
1763 |
+
},
|
1764 |
+
|
1765 |
+
animationGlassBlock: function(options)
|
1766 |
+
{
|
1767 |
+
var self = this;
|
1768 |
+
|
1769 |
+
this.settings.is_animating = true;
|
1770 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutExpo' : this.settings.easing_default;
|
1771 |
+
var time_animate = 700 / this.settings.velocity;
|
1772 |
+
|
1773 |
+
this.setActualLevel();
|
1774 |
+
|
1775 |
+
var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
|
1776 |
+
var width_box = Math.ceil(this.settings.width_skitter / total);
|
1777 |
+
var height_box = (this.settings.height_skitter);
|
1778 |
+
|
1779 |
+
for (i = 0; i < total; i++) {
|
1780 |
+
var _ileft = (width_box * (i));
|
1781 |
+
var _itop = 0;
|
1782 |
+
|
1783 |
+
var _fleft = (width_box * (i));
|
1784 |
+
var _ftop = 0;
|
1785 |
+
|
1786 |
+
var _bleft = -(width_box * (i));
|
1787 |
+
var _btop = 0;
|
1788 |
+
|
1789 |
+
var delay_time = 100 * i;
|
1790 |
+
|
1791 |
+
var box_clone = this.getBoxClone();
|
1792 |
+
box_clone.css({left: _ileft, top:_itop, width:width_box, height:height_box});
|
1793 |
+
|
1794 |
+
box_clone
|
1795 |
+
.find('img')
|
1796 |
+
.css({left: _bleft + (width_box / 1.5), top: _btop})
|
1797 |
+
.delay(delay_time)
|
1798 |
+
.animate({left: _bleft, top: _btop}, (time_animate * 1.1), 'easeInOutQuad');
|
1799 |
+
|
1800 |
+
this.addBoxClone(box_clone);
|
1801 |
+
|
1802 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1803 |
+
box_clone.delay(delay_time).animate({top:_ftop, left:_fleft, opacity: 'show'}, time_animate, easing, callback);
|
1804 |
+
|
1805 |
+
}
|
1806 |
+
},
|
1807 |
+
|
1808 |
+
animationCircles: function(options)
|
1809 |
+
{
|
1810 |
+
var self = this;
|
1811 |
+
|
1812 |
+
this.settings.is_animating = true;
|
1813 |
+
var easing = (this.settings.easing_default == '') ? 'easeInQuad' : this.settings.easing_default;
|
1814 |
+
var time_animate = 500 / this.settings.velocity;
|
1815 |
+
|
1816 |
+
this.setActualLevel();
|
1817 |
+
|
1818 |
+
var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
|
1819 |
+
var size_box = 100;
|
1820 |
+
|
1821 |
+
var radius = Math.sqrt(Math.pow((this.settings.width_skitter), 2) + Math.pow((this.settings.height_skitter), 2));
|
1822 |
+
var radius = Math.ceil(radius);
|
1823 |
+
|
1824 |
+
for (i = 0; i < total; i++) {
|
1825 |
+
var _ileft = (self.settings.width_skitter / 2) - (size_box / 2);
|
1826 |
+
var _itop = (self.settings.height_skitter / 2) - (size_box / 2);
|
1827 |
+
|
1828 |
+
var _fleft = _ileft;
|
1829 |
+
var _ftop = _itop;
|
1830 |
+
var box_clone = null;
|
1831 |
+
|
1832 |
+
// if ($.browser.mozilla) {
|
1833 |
+
// box_clone = this.getBoxClone();
|
1834 |
+
// box_clone.css({left: _ileft, top:_itop, width:size_box, height:size_box}).css3({
|
1835 |
+
// 'border-radius': radius+'px'
|
1836 |
+
// });
|
1837 |
+
// box_clone.find('img').css({left: -_ileft, top: -_itop});
|
1838 |
+
// }
|
1839 |
+
// else {
|
1840 |
+
box_clone = this.getBoxCloneBackground({
|
1841 |
+
image: self.settings.image_atual,
|
1842 |
+
left: _ileft,
|
1843 |
+
top: _itop,
|
1844 |
+
width: size_box,
|
1845 |
+
height: size_box,
|
1846 |
+
position: {
|
1847 |
+
top: -_itop,
|
1848 |
+
left: -_ileft
|
1849 |
+
}
|
1850 |
+
}).css3({
|
1851 |
+
'border-radius': radius+'px'
|
1852 |
+
});
|
1853 |
+
// }
|
1854 |
+
|
1855 |
+
|
1856 |
+
// var box_clone = this.getBoxClone();
|
1857 |
+
// box_clone.css({left: _ileft, top:_itop, width:size_box, height:size_box}).css3({
|
1858 |
+
// 'border-radius': radius+'px'
|
1859 |
+
// });
|
1860 |
+
// box_clone.find('img').css({left: -_ileft, top: -_itop});
|
1861 |
+
|
1862 |
+
size_box += 100;
|
1863 |
+
|
1864 |
+
this.addBoxClone(box_clone);
|
1865 |
+
|
1866 |
+
var delay_time = 70 * i;
|
1867 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1868 |
+
box_clone.delay(delay_time).animate({top: _ftop, left: _fleft, opacity: 'show'}, time_animate, easing, callback);
|
1869 |
+
|
1870 |
+
}
|
1871 |
+
},
|
1872 |
+
|
1873 |
+
animationCirclesInside: function(options)
|
1874 |
+
{
|
1875 |
+
var self = this;
|
1876 |
+
|
1877 |
+
this.settings.is_animating = true;
|
1878 |
+
var easing = (this.settings.easing_default == '') ? 'easeInQuad' : this.settings.easing_default;
|
1879 |
+
var time_animate = 500 / this.settings.velocity;
|
1880 |
+
|
1881 |
+
var image_old = this.box_skitter.find('.image_main').attr('src');
|
1882 |
+
|
1883 |
+
this.setActualLevel();
|
1884 |
+
|
1885 |
+
this.setLinkAtual();
|
1886 |
+
this.box_skitter.find('.image_main').attr({'src':this.settings.image_atual});
|
1887 |
+
|
1888 |
+
var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
|
1889 |
+
|
1890 |
+
var radius = Math.sqrt(Math.pow((this.settings.width_skitter), 2) + Math.pow((this.settings.height_skitter), 2));
|
1891 |
+
var radius = Math.ceil(radius);
|
1892 |
+
var size_box = radius;
|
1893 |
+
|
1894 |
+
for (i = 0; i < total; i++) {
|
1895 |
+
var _ileft = (self.settings.width_skitter / 2) - (size_box / 2);
|
1896 |
+
var _itop = (self.settings.height_skitter / 2) - (size_box / 2);
|
1897 |
+
|
1898 |
+
var _fleft = _ileft;
|
1899 |
+
var _ftop = _itop;
|
1900 |
+
var box_clone = null;
|
1901 |
+
|
1902 |
+
// if ($.browser.mozilla) {
|
1903 |
+
// box_clone = this.getBoxCloneImgOld(image_old);
|
1904 |
+
// box_clone.css({left: _ileft, top:_itop, width:size_box, height:size_box}).css3({
|
1905 |
+
// 'border-radius': radius+'px'
|
1906 |
+
// });
|
1907 |
+
// box_clone.find('img').css({left: -_ileft, top: -_itop});
|
1908 |
+
// }
|
1909 |
+
// else {
|
1910 |
+
box_clone = this.getBoxCloneBackground({
|
1911 |
+
image: image_old,
|
1912 |
+
left: _ileft,
|
1913 |
+
top: _itop,
|
1914 |
+
width: size_box,
|
1915 |
+
height: size_box,
|
1916 |
+
position: {
|
1917 |
+
top: -_itop,
|
1918 |
+
left: -_ileft
|
1919 |
+
}
|
1920 |
+
}).css3({
|
1921 |
+
'border-radius': radius+'px'
|
1922 |
+
});
|
1923 |
+
// }
|
1924 |
+
|
1925 |
+
// var box_clone = this.getBoxCloneImgOld(image_old);
|
1926 |
+
// box_clone.css({left: _ileft, top:_itop, width:size_box, height:size_box}).css3({
|
1927 |
+
// 'border-radius': radius+'px'
|
1928 |
+
// });
|
1929 |
+
// box_clone.find('img').css({left: -_ileft, top: -_itop});
|
1930 |
+
|
1931 |
+
size_box -= 100;
|
1932 |
+
|
1933 |
+
this.addBoxClone(box_clone);
|
1934 |
+
box_clone.show();
|
1935 |
+
|
1936 |
+
var delay_time = 70 * i;
|
1937 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
1938 |
+
box_clone.delay(delay_time).animate({top: _ftop, left: _fleft, opacity: 'hide'}, time_animate, easing, callback);
|
1939 |
+
|
1940 |
+
}
|
1941 |
+
},
|
1942 |
+
|
1943 |
+
animationCirclesRotate: function(options)
|
1944 |
+
{
|
1945 |
+
var self = this;
|
1946 |
+
|
1947 |
+
this.settings.is_animating = true;
|
1948 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutQuad' : this.settings.easing_default;
|
1949 |
+
var time_animate = 500 / this.settings.velocity;
|
1950 |
+
|
1951 |
+
var image_old = this.box_skitter.find('.image_main').attr('src');
|
1952 |
+
|
1953 |
+
this.setActualLevel();
|
1954 |
+
|
1955 |
+
this.setLinkAtual();
|
1956 |
+
this.box_skitter.find('.image_main').attr({'src':this.settings.image_atual});
|
1957 |
+
|
1958 |
+
var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
|
1959 |
+
|
1960 |
+
var radius = Math.sqrt(Math.pow((this.settings.width_skitter), 2) + Math.pow((this.settings.height_skitter), 2));
|
1961 |
+
var radius = Math.ceil(radius);
|
1962 |
+
var size_box = radius;
|
1963 |
+
|
1964 |
+
for (i = 0; i < total; i++) {
|
1965 |
+
var _ileft = (self.settings.width_skitter / 2) - (size_box / 2);
|
1966 |
+
var _itop = (self.settings.height_skitter / 2) - (size_box / 2);
|
1967 |
+
|
1968 |
+
var _fleft = _ileft;
|
1969 |
+
var _ftop = _itop;
|
1970 |
+
var box_clone = null;
|
1971 |
+
|
1972 |
+
if ($.browser.mozilla) {
|
1973 |
+
box_clone = this.getBoxCloneImgOld(image_old);
|
1974 |
+
box_clone.css({left: _ileft, top:_itop, width:size_box, height:size_box}).css3({
|
1975 |
+
'border-radius': radius+'px'
|
1976 |
+
});
|
1977 |
+
box_clone.find('img').css({left: -_ileft, top: -_itop});
|
1978 |
+
}
|
1979 |
+
else {
|
1980 |
+
box_clone = this.getBoxCloneBackground({
|
1981 |
+
image: image_old,
|
1982 |
+
left: _ileft,
|
1983 |
+
top: _itop,
|
1984 |
+
width: size_box,
|
1985 |
+
height: size_box,
|
1986 |
+
position: {
|
1987 |
+
top: -_itop,
|
1988 |
+
left: -_ileft
|
1989 |
+
}
|
1990 |
+
}).css3({
|
1991 |
+
'border-radius': radius+'px'
|
1992 |
+
});
|
1993 |
+
}
|
1994 |
+
|
1995 |
+
size_box -= 100;
|
1996 |
+
|
1997 |
+
this.addBoxClone(box_clone);
|
1998 |
+
box_clone.show();
|
1999 |
+
|
2000 |
+
var delay_time = 100 * i;
|
2001 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
2002 |
+
var _rotate = (i % 2 == 0) ? '20deg' : '-20deg';
|
2003 |
+
box_clone.delay(delay_time).animate({top: _ftop, left: _fleft, opacity: 'hide', rotate: _rotate}, time_animate, easing, callback);
|
2004 |
+
}
|
2005 |
+
},
|
2006 |
+
|
2007 |
+
animationCubeShow: function(options)
|
2008 |
+
{
|
2009 |
+
var self = this;
|
2010 |
+
|
2011 |
+
this.settings.is_animating = true;
|
2012 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutQuad' : this.settings.easing_default;
|
2013 |
+
var time_animate = 400 / this.settings.velocity;
|
2014 |
+
|
2015 |
+
this.setActualLevel();
|
2016 |
+
|
2017 |
+
var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
|
2018 |
+
var division_h = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 4));
|
2019 |
+
var total = division_w * division_h;
|
2020 |
+
|
2021 |
+
var width_box = Math.ceil(this.settings.width_skitter / division_w);
|
2022 |
+
var height_box = Math.ceil(this.settings.height_skitter / division_h);
|
2023 |
+
|
2024 |
+
var last = false;
|
2025 |
+
|
2026 |
+
var _btop = 0;
|
2027 |
+
var _bleft = 0;
|
2028 |
+
var line = 0;
|
2029 |
+
var col = 0;
|
2030 |
+
|
2031 |
+
for (i = 0; i < total; i++) {
|
2032 |
+
|
2033 |
+
_btop = height_box * line;
|
2034 |
+
_bleft = width_box * col;
|
2035 |
+
|
2036 |
+
var delay_time = 30 * (i);
|
2037 |
+
|
2038 |
+
var box_clone = this.getBoxClone();
|
2039 |
+
box_clone.css({left:_bleft, top:_btop, width:width_box, height:height_box}).hide();
|
2040 |
+
box_clone.find('img').css({left:-_bleft, top:-_btop});
|
2041 |
+
this.addBoxClone(box_clone);
|
2042 |
+
|
2043 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
2044 |
+
box_clone.delay(delay_time).animate({width:'show', height:'show'}, time_animate, easing, callback);
|
2045 |
+
|
2046 |
+
line++;
|
2047 |
+
if (line == division_h) {
|
2048 |
+
line = 0;
|
2049 |
+
col++;
|
2050 |
+
}
|
2051 |
+
}
|
2052 |
+
},
|
2053 |
+
|
2054 |
+
animationDirectionBars: function(options)
|
2055 |
+
{
|
2056 |
+
var self = this;
|
2057 |
+
|
2058 |
+
var options = $.extend({}, {direction: 'top'}, options || {});
|
2059 |
+
|
2060 |
+
this.settings.is_animating = true;
|
2061 |
+
var easing = (this.settings.easing_default == '') ? 'easeInOutQuad' : this.settings.easing_default;
|
2062 |
+
var time_animate = 400 / this.settings.velocity;
|
2063 |
+
|
2064 |
+
var image_old = this.box_skitter.find('.image_main').attr('src');
|
2065 |
+
|
2066 |
+
this.setActualLevel();
|
2067 |
+
|
2068 |
+
this.setLinkAtual();
|
2069 |
+
this.box_skitter.find('.image_main').attr({'src':this.settings.image_atual});
|
2070 |
+
|
2071 |
+
var total = 12;
|
2072 |
+
var width_box = Math.ceil(this.settings.width_skitter / total);
|
2073 |
+
var height_box = this.settings.height_skitter;
|
2074 |
+
var _ftop = (options.direction == 'top') ? -height_box : height_box;
|
2075 |
+
|
2076 |
+
for (i = 0; i < total; i++) {
|
2077 |
+
var _vtop = 0;
|
2078 |
+
var _vleft = (width_box * i);
|
2079 |
+
var _vtop_image = 0;
|
2080 |
+
var _vleft_image = -(width_box * i);
|
2081 |
+
|
2082 |
+
var box_clone = this.getBoxCloneImgOld(image_old);
|
2083 |
+
box_clone.css({left:_vleft+'px', top:_vtop+'px', width:width_box, height:height_box});
|
2084 |
+
box_clone.find('img').css({left:_vleft_image, top:_vtop_image});
|
2085 |
+
|
2086 |
+
this.addBoxClone(box_clone);
|
2087 |
+
box_clone.show();
|
2088 |
+
|
2089 |
+
var delay_time = 70 * i;
|
2090 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
2091 |
+
|
2092 |
+
box_clone.delay(delay_time).animate({top:_ftop}, time_animate, easing, callback);
|
2093 |
+
}
|
2094 |
+
|
2095 |
+
},
|
2096 |
+
|
2097 |
+
animationHideBars: function(options)
|
2098 |
+
{
|
2099 |
+
var self = this;
|
2100 |
+
|
2101 |
+
var options = $.extend({}, {random: false}, options || {});
|
2102 |
+
|
2103 |
+
this.settings.is_animating = true;
|
2104 |
+
var easing = (this.settings.easing_default == '') ? 'easeOutCirc' : this.settings.easing_default;
|
2105 |
+
var time_animate = 700 / this.settings.velocity;
|
2106 |
+
|
2107 |
+
var image_old = this.box_skitter.find('.image_main').attr('src');
|
2108 |
+
|
2109 |
+
this.setActualLevel();
|
2110 |
+
|
2111 |
+
this.setLinkAtual();
|
2112 |
+
this.box_skitter.find('.image_main').attr({'src':this.settings.image_atual});
|
2113 |
+
|
2114 |
+
var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
|
2115 |
+
var total = division_w;
|
2116 |
+
|
2117 |
+
var width_box = Math.ceil(this.settings.width_skitter / division_w);
|
2118 |
+
var height_box = this.settings.height_skitter;
|
2119 |
+
|
2120 |
+
for (i = 0; i < total; i++) {
|
2121 |
+
var _vtop = 0;
|
2122 |
+
var _vleft = width_box * i;
|
2123 |
+
|
2124 |
+
var _vtop_image = 0;
|
2125 |
+
var _vleft_image = -(width_box * i);
|
2126 |
+
|
2127 |
+
var _fleft = '+='+width_box;
|
2128 |
+
|
2129 |
+
var box_clone = this.getBoxCloneImgOld(image_old);
|
2130 |
+
box_clone.css({left:0, top:0, width:width_box, height:height_box});
|
2131 |
+
box_clone.find('img').css({left:_vleft_image, top:_vtop_image});
|
2132 |
+
|
2133 |
+
var box_clone_main = this.getBoxCloneImgOld(image_old);
|
2134 |
+
box_clone_main.css({left:_vleft+'px', top:_vtop+'px', width:width_box, height:height_box});
|
2135 |
+
box_clone_main.html(box_clone);
|
2136 |
+
|
2137 |
+
this.addBoxClone(box_clone_main);
|
2138 |
+
box_clone.show();
|
2139 |
+
box_clone_main.show();
|
2140 |
+
|
2141 |
+
var delay_time = 50 * i;
|
2142 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
2143 |
+
|
2144 |
+
box_clone.delay(delay_time).animate({left:_fleft}, time_animate, easing, callback);
|
2145 |
+
}
|
2146 |
+
},
|
2147 |
+
|
2148 |
+
animationSwapBars: function(options)
|
2149 |
+
{
|
2150 |
+
var self = this;
|
2151 |
+
|
2152 |
+
var options = $.extend({}, {direction: 'top', delay_type: 'sequence', total: 7, easing: 'easeOutCirc'}, options || {});
|
2153 |
+
|
2154 |
+
this.settings.is_animating = true;
|
2155 |
+
var easing = (this.settings.easing_default == '') ? options.easing : this.settings.easing_default;
|
2156 |
+
var time_animate = 500 / this.settings.velocity;
|
2157 |
+
|
2158 |
+
var image_old = this.box_skitter.find('.image_main').attr('src');
|
2159 |
+
|
2160 |
+
this.setActualLevel();
|
2161 |
+
|
2162 |
+
this.setLinkAtual();
|
2163 |
+
this.box_skitter.find('.image_main').attr({'src':this.settings.image_atual});
|
2164 |
+
this.box_skitter.find('.image_main').hide();
|
2165 |
+
|
2166 |
+
var total = options.total;
|
2167 |
+
|
2168 |
+
for (i = 0; i < total; i++) {
|
2169 |
+
|
2170 |
+
var width_box = Math.ceil(this.settings.width_skitter / total);
|
2171 |
+
var height_box = this.settings.height_skitter;
|
2172 |
+
|
2173 |
+
var _itopc = 0;
|
2174 |
+
var _ileftc = (width_box * i);
|
2175 |
+
var _ftopc = -height_box;
|
2176 |
+
var _fleftc = _ileftc + width_box ;
|
2177 |
+
|
2178 |
+
var _itopn = height_box;
|
2179 |
+
var _ileftn = _ileftc;
|
2180 |
+
var _ftopn = 0;
|
2181 |
+
var _fleftn = _ileftc;
|
2182 |
+
|
2183 |
+
var _vtop_image = 0;
|
2184 |
+
var _vleft_image = -_ileftc;
|
2185 |
+
|
2186 |
+
switch (options.delay_type)
|
2187 |
+
{
|
2188 |
+
case 'zebra' : default : var delay_time = (i % 2 == 0) ? 0 : 150; break;
|
2189 |
+
case 'random' : var delay_time = 30 * (Math.random() * 30); break;
|
2190 |
+
case 'sequence' : var delay_time = i * 100; break;
|
2191 |
+
}
|
2192 |
+
|
2193 |
+
// Old image
|
2194 |
+
var box_clone = this.getBoxCloneImgOld(image_old);
|
2195 |
+
box_clone.find('img').css({left:_vleft_image, top:0});
|
2196 |
+
box_clone.css({top:0, left:0, width:width_box, height:height_box});
|
2197 |
+
|
2198 |
+
// Next image
|
2199 |
+
var box_clone_next = this.getBoxClone();
|
2200 |
+
box_clone_next.find('img').css({left:_vleft_image, top:0});
|
2201 |
+
box_clone_next.css({top:0, left:-width_box, width:width_box, height:height_box});
|
2202 |
+
|
2203 |
+
// Container box images
|
2204 |
+
var box_clone_container = this.getBoxClone();
|
2205 |
+
box_clone_container.html('').append(box_clone).append(box_clone_next);
|
2206 |
+
box_clone_container.css({top:0, left:_ileftc, width:width_box, height:height_box});
|
2207 |
+
|
2208 |
+
// Add containuer
|
2209 |
+
this.addBoxClone(box_clone_container);
|
2210 |
+
|
2211 |
+
// Show boxes
|
2212 |
+
box_clone_container.show();
|
2213 |
+
box_clone.show();
|
2214 |
+
box_clone_next.show();
|
2215 |
+
|
2216 |
+
// Callback
|
2217 |
+
var callback = (i == (total - 1)) ? function() { self.finishAnimation(); } : '';
|
2218 |
+
|
2219 |
+
// Animations
|
2220 |
+
box_clone.delay(delay_time).animate({ left: width_box }, time_animate, easing);
|
2221 |
+
box_clone_next.delay(delay_time).animate({ left:0 }, time_animate, easing, callback);
|
2222 |
+
}
|
2223 |
+
},
|
2224 |
+
|
2225 |
+
animationSwapBlocks: function(options)
|
2226 |
+
{
|
2227 |
+
var self = this;
|
2228 |
+
|
2229 |
+
var options = $.extend({}, {easing_old: 'easeInOutQuad', easing_new: 'easeOutQuad'}, options || {});
|
2230 |
+
|
2231 |
+
this.settings.is_animating = true;
|
2232 |
+
var easing_old = (this.settings.easing_default == '') ? options.easing_old : this.settings.easing_default;
|
2233 |
+
var easing_new = (this.settings.easing_default == '') ? options.easing_new : this.settings.easing_default;
|
2234 |
+
var time_animate = 800 / this.settings.velocity;
|
2235 |
+
|
2236 |
+
var image_old = this.box_skitter.find('.image_main').attr('src');
|
2237 |
+
|
2238 |
+
this.setActualLevel();
|
2239 |
+
|
2240 |
+
this.setLinkAtual();
|
2241 |
+
this.box_skitter.find('.image_main').attr({'src':this.settings.image_atual});
|
2242 |
+
this.box_skitter.find('.image_main').hide();
|
2243 |
+
|
2244 |
+
var total = 2;
|
2245 |
+
var width_box = this.settings.width_skitter;
|
2246 |
+
var height_box = Math.ceil(this.settings.height_skitter / total);
|
2247 |
+
|
2248 |
+
// Old image
|
2249 |
+
var box_clone1 = this.getBoxCloneImgOld(image_old), box_clone2 = this.getBoxCloneImgOld(image_old);
|
2250 |
+
box_clone1.find('img').css({left:0, top:0});
|
2251 |
+
box_clone1.css({top:0, left:0, width:width_box, height:height_box});
|
2252 |
+
|
2253 |
+
box_clone2.find('img').css({left:0, top:-height_box});
|
2254 |
+
box_clone2.css({top:height_box, left:0, width:width_box, height:height_box});
|
2255 |
+
|
2256 |
+
// Next image
|
2257 |
+
var box_clone_next1 = this.getBoxClone(), box_clone_next2 = this.getBoxClone();
|
2258 |
+
box_clone_next1.find('img').css({left:0, top:height_box});
|
2259 |
+
box_clone_next1.css({top:0, left:0, width:width_box, height:height_box});
|
2260 |
+
|
2261 |
+
box_clone_next2.find('img').css({left:0, top: -(height_box * total) });
|
2262 |
+
box_clone_next2.css({top:height_box, left:0, width:width_box, height:height_box});
|
2263 |
+
|
2264 |
+
// Add boxes
|
2265 |
+
this.addBoxClone(box_clone_next1);
|
2266 |
+
this.addBoxClone(box_clone_next2);
|
2267 |
+
this.addBoxClone(box_clone1);
|
2268 |
+
this.addBoxClone(box_clone2);
|
2269 |
+
|
2270 |
+
// Show boxes
|
2271 |
+
box_clone1.show();
|
2272 |
+
box_clone2.show();
|
2273 |
+
box_clone_next1.show();
|
2274 |
+
box_clone_next2.show();
|
2275 |
+
|
2276 |
+
// Callback
|
2277 |
+
var callback = function() { self.finishAnimation(); };
|
2278 |
+
|
2279 |
+
// Animations
|
2280 |
+
box_clone1.find('img').animate({ top: height_box }, time_animate, easing_old, function() {
|
2281 |
+
box_clone1.remove();
|
2282 |
+
});
|
2283 |
+
box_clone2.find('img').animate({ top: -(height_box * total) }, time_animate, easing_old, function() {
|
2284 |
+
box_clone2.remove();
|
2285 |
+
});
|
2286 |
+
box_clone_next1.find('img').animate({ top: 0 }, time_animate, easing_new);
|
2287 |
+
box_clone_next2.find('img').animate({ top: -height_box }, time_animate, easing_new, callback);
|
2288 |
+
},
|
2289 |
+
|
2290 |
+
animationCut: function(options)
|
2291 |
+
{
|
2292 |
+
var self = this;
|
2293 |
+
|
2294 |
+
var options = $.extend({}, {easing_old: 'easeInOutExpo', easing_new: 'easeInOutExpo'}, options || {});
|
2295 |
+
|
2296 |
+
this.settings.is_animating = true;
|
2297 |
+
var easing_old = (this.settings.easing_default == '') ? options.easing_old : this.settings.easing_default;
|
2298 |
+
var easing_new = (this.settings.easing_default == '') ? options.easing_new : this.settings.easing_default;
|
2299 |
+
var time_animate = 900 / this.settings.velocity;
|
2300 |
+
|
2301 |
+
var image_old = this.box_skitter.find('.image_main').attr('src');
|
2302 |
+
|
2303 |
+
this.setActualLevel();
|
2304 |
+
|
2305 |
+
this.setLinkAtual();
|
2306 |
+
this.box_skitter.find('.image_main').attr({'src':this.settings.image_atual});
|
2307 |
+
this.box_skitter.find('.image_main').hide();
|
2308 |
+
|
2309 |
+
var total = 2;
|
2310 |
+
var width_box = this.settings.width_skitter;
|
2311 |
+
var height_box = Math.ceil(this.settings.height_skitter / total);
|
2312 |
+
|
2313 |
+
// Old image
|
2314 |
+
var box_clone1 = this.getBoxCloneImgOld(image_old), box_clone2 = this.getBoxCloneImgOld(image_old);
|
2315 |
+
box_clone1.find('img').css({left:0, top:0});
|
2316 |
+
box_clone1.css({top:0, left:0, width:width_box, height:height_box});
|
2317 |
+
|
2318 |
+
box_clone2.find('img').css({left:0, top:-height_box});
|
2319 |
+
box_clone2.css({top:height_box, left:0, width:width_box, height:height_box});
|
2320 |
+
|
2321 |
+
// Next image
|
2322 |
+
var box_clone_next1 = this.getBoxClone(), box_clone_next2 = this.getBoxClone();
|
2323 |
+
//box_clone_next1.find('img').css({left:0, top:height_box});
|
2324 |
+
box_clone_next1.find('img').css({left:0, top:0});
|
2325 |
+
box_clone_next1.css({top:0, left:width_box, width:width_box, height:height_box});
|
2326 |
+
|
2327 |
+
//box_clone_next2.find('img').css({left:0, top: -(height_box * total) });
|
2328 |
+
box_clone_next2.find('img').css({left:0, top: -height_box });
|
2329 |
+
box_clone_next2.css({top:height_box, left:-width_box, width:width_box, height:height_box});
|
2330 |
+
|
2331 |
+
// Add boxes
|
2332 |
+
this.addBoxClone(box_clone_next1);
|
2333 |
+
this.addBoxClone(box_clone_next2);
|
2334 |
+
this.addBoxClone(box_clone1);
|
2335 |
+
this.addBoxClone(box_clone2);
|
2336 |
+
|
2337 |
+
// Show boxes
|
2338 |
+
box_clone1.show();
|
2339 |
+
box_clone2.show();
|
2340 |
+
box_clone_next1.show();
|
2341 |
+
box_clone_next2.show();
|
2342 |
+
|
2343 |
+
// Callback
|
2344 |
+
var callback = function() { self.finishAnimation(); };
|
2345 |
+
|
2346 |
+
// Animations
|
2347 |
+
box_clone1.animate({ left: -width_box }, time_animate, easing_old, function() {
|
2348 |
+
box_clone1.remove();
|
2349 |
+
});
|
2350 |
+
box_clone2.animate({ left: width_box }, time_animate, easing_old, function() {
|
2351 |
+
box_clone2.remove();
|
2352 |
+
});
|
2353 |
+
box_clone_next1.animate({ left: 0 }, time_animate, easing_new);
|
2354 |
+
box_clone_next2.animate({ left: 0 }, time_animate, easing_new, callback);
|
2355 |
+
},
|
2356 |
+
|
2357 |
+
// End animations ----------------------
|
2358 |
+
|
2359 |
+
// Finish animation
|
2360 |
+
finishAnimation: function (options)
|
2361 |
+
{
|
2362 |
+
var self = this;
|
2363 |
+
this.box_skitter.find('.image_main').show();
|
2364 |
+
this.showBoxText();
|
2365 |
+
this.settings.is_animating = false;
|
2366 |
+
this.box_skitter.find('.image_main').attr({'src': this.settings.image_atual});
|
2367 |
+
this.box_skitter.find('.image a').attr({'href': this.settings.link_atual});
|
2368 |
+
|
2369 |
+
if (!this.settings.is_hover_box_skitter && !this.settings.is_paused && !this.settings.is_blur) {
|
2370 |
+
this.timer = setTimeout(function() { self.completeMove(); }, this.settings.interval);
|
2371 |
+
}
|
2372 |
+
|
2373 |
+
self.startTime();
|
2374 |
+
},
|
2375 |
+
|
2376 |
+
// Complete move
|
2377 |
+
completeMove: function ()
|
2378 |
+
{
|
2379 |
+
this.clearTimer(true);
|
2380 |
+
this.box_skitter.find('.box_clone').remove();
|
2381 |
+
if (!this.settings.is_paused && !this.settings.is_blur) this.nextImage();
|
2382 |
+
},
|
2383 |
+
|
2384 |
+
// Actual config for animation
|
2385 |
+
setActualLevel: function() {
|
2386 |
+
if ($.isFunction(this.settings.imageSwitched)) this.settings.imageSwitched(this.settings.image_i, this);
|
2387 |
+
this.setImageLink();
|
2388 |
+
this.addClassNumber();
|
2389 |
+
this.hideBoxText();
|
2390 |
+
this.increasingImage();
|
2391 |
+
},
|
2392 |
+
|
2393 |
+
// Set image and link
|
2394 |
+
setImageLink: function()
|
2395 |
+
{
|
2396 |
+
var name_image = this.settings.images_links[this.settings.image_i][0];
|
2397 |
+
var link_image = this.settings.images_links[this.settings.image_i][1];
|
2398 |
+
var label_image = this.settings.images_links[this.settings.image_i][3];
|
2399 |
+
var target_link = this.settings.images_links[this.settings.image_i][4];
|
2400 |
+
|
2401 |
+
this.settings.image_atual = name_image;
|
2402 |
+
this.settings.link_atual = link_image;
|
2403 |
+
this.settings.label_atual = label_image;
|
2404 |
+
this.settings.target_atual = target_link;
|
2405 |
+
},
|
2406 |
+
|
2407 |
+
// Add class for number
|
2408 |
+
addClassNumber: function ()
|
2409 |
+
{
|
2410 |
+
var self = this;
|
2411 |
+
this.box_skitter.find('.image_number_select').animate(self.settings.animateNumberOut, 500).removeClass('image_number_select');
|
2412 |
+
$('#image_n_'+(this.settings.image_i+1)+'_'+self.number_skitter).animate(self.settings.animateNumberActive, 700).addClass('image_number_select');
|
2413 |
+
},
|
2414 |
+
|
2415 |
+
// Increment image_i
|
2416 |
+
increasingImage: function()
|
2417 |
+
{
|
2418 |
+
this.settings.image_i++;
|
2419 |
+
if (this.settings.image_i == this.settings.images_links.length) {
|
2420 |
+
this.settings.image_i = 0;
|
2421 |
+
}
|
2422 |
+
},
|
2423 |
+
|
2424 |
+
// Get box clone
|
2425 |
+
getBoxClone: function()
|
2426 |
+
{
|
2427 |
+
if (this.settings.link_atual != '#') {
|
2428 |
+
var img_clone = $('<a href="'+this.settings.link_atual+'"><img src="'+this.settings.image_atual+'" /></a>');
|
2429 |
+
}
|
2430 |
+
else {
|
2431 |
+
var img_clone = $('<img src="'+this.settings.image_atual+'" />');
|
2432 |
+
}
|
2433 |
+
|
2434 |
+
img_clone = this.resizeImage(img_clone);
|
2435 |
+
var box_clone = $('<div class="box_clone"></div>');
|
2436 |
+
box_clone.append(img_clone);
|
2437 |
+
return box_clone;
|
2438 |
+
},
|
2439 |
+
|
2440 |
+
// Get box clone
|
2441 |
+
getBoxCloneImgOld: function(image_old)
|
2442 |
+
{
|
2443 |
+
if (this.settings.link_atual != '#') {
|
2444 |
+
var img_clone = $('<a href="'+this.settings.link_atual+'"><img src="'+image_old+'" /></a>');
|
2445 |
+
}
|
2446 |
+
else {
|
2447 |
+
var img_clone = $('<img src="'+image_old+'" />');
|
2448 |
+
}
|
2449 |
+
|
2450 |
+
img_clone = this.resizeImage(img_clone);
|
2451 |
+
var box_clone = $('<div class="box_clone"></div>');
|
2452 |
+
box_clone.append(img_clone);
|
2453 |
+
return box_clone;
|
2454 |
+
},
|
2455 |
+
|
2456 |
+
// Redimensiona imagem
|
2457 |
+
resizeImage: function(img_clone)
|
2458 |
+
{
|
2459 |
+
if (this.settings.fullscreen) {
|
2460 |
+
img_clone.find('img').height(this.settings.height_skitter);
|
2461 |
+
}
|
2462 |
+
return img_clone;
|
2463 |
+
},
|
2464 |
+
|
2465 |
+
// Add box clone in box_skitter
|
2466 |
+
addBoxClone: function(box_clone)
|
2467 |
+
{
|
2468 |
+
this.box_skitter.find('.container_skitter').append(box_clone);
|
2469 |
+
},
|
2470 |
+
|
2471 |
+
// Get accepts easing
|
2472 |
+
getEasing: function(easing)
|
2473 |
+
{
|
2474 |
+
var easing_accepts = [
|
2475 |
+
'easeInQuad', 'easeOutQuad', 'easeInOutQuad',
|
2476 |
+
'easeInCubic', 'easeOutCubic', 'easeInOutCubic',
|
2477 |
+
'easeInQuart', 'easeOutQuart', 'easeInOutQuart',
|
2478 |
+
'easeInQuint', 'easeOutQuint', 'easeInOutQuint',
|
2479 |
+
'easeInSine', 'easeOutSine', 'easeInOutSine',
|
2480 |
+
'easeInExpo', 'easeOutExpo', 'easeInOutExpo',
|
2481 |
+
'easeInCirc', 'easeOutCirc', 'easeInOutCirc',
|
2482 |
+
'easeInElastic', 'easeOutElastic', 'easeInOutElastic',
|
2483 |
+
'easeInBack', 'easeOutBack', 'easeInOutBack',
|
2484 |
+
'easeInBounce', 'easeOutBounce', 'easeInOutBounce',
|
2485 |
+
];
|
2486 |
+
|
2487 |
+
if (jQuery.inArray(easing, easing_accepts) > 0) {
|
2488 |
+
return easing;
|
2489 |
+
}
|
2490 |
+
else {
|
2491 |
+
return '';
|
2492 |
+
}
|
2493 |
+
},
|
2494 |
+
|
2495 |
+
// Get random number
|
2496 |
+
getRandom: function (i)
|
2497 |
+
{
|
2498 |
+
return Math.floor(Math.random() * i);
|
2499 |
+
},
|
2500 |
+
|
2501 |
+
// Set value for text
|
2502 |
+
setValueBoxText: function ()
|
2503 |
+
{
|
2504 |
+
this.box_skitter.find('.label_skitter').html(this.settings.label_atual);
|
2505 |
+
},
|
2506 |
+
|
2507 |
+
// Show box text
|
2508 |
+
showBoxText: function ()
|
2509 |
+
{
|
2510 |
+
var self = this;
|
2511 |
+
if (this.settings.label_atual != undefined && this.settings.label_atual != '' && self.settings.label) {
|
2512 |
+
self.box_skitter.find('.label_skitter').slideDown(400);
|
2513 |
+
}
|
2514 |
+
},
|
2515 |
+
|
2516 |
+
// Hide box text
|
2517 |
+
hideBoxText: function ()
|
2518 |
+
{
|
2519 |
+
var self = this;
|
2520 |
+
this.box_skitter.find('.label_skitter').slideUp(200, function() {
|
2521 |
+
self.setValueBoxText();
|
2522 |
+
});
|
2523 |
+
},
|
2524 |
+
|
2525 |
+
// Stop time to get over box_skitter
|
2526 |
+
stopOnMouseOver: function ()
|
2527 |
+
{
|
2528 |
+
var self = this;
|
2529 |
+
var opacity_elements = self.settings.opacity_elements;
|
2530 |
+
var interval_in_elements = self.settings.interval_in_elements;
|
2531 |
+
var interval_out_elements = self.settings.interval_out_elements;
|
2532 |
+
|
2533 |
+
|
2534 |
+
self.box_skitter.hover(function() {
|
2535 |
+
|
2536 |
+
if (self.settings.stop_over) self.settings.is_hover_box_skitter = true;
|
2537 |
+
|
2538 |
+
if (!self.settings.is_paused_time) {
|
2539 |
+
self.pauseTime();
|
2540 |
+
}
|
2541 |
+
|
2542 |
+
if (self.settings.hideTools) {
|
2543 |
+
if (self.settings.numbers) {
|
2544 |
+
self.box_skitter
|
2545 |
+
.find('.info_slide')
|
2546 |
+
.show()
|
2547 |
+
.css({opacity:0})
|
2548 |
+
.animate({opacity: opacity_elements}, interval_in_elements);
|
2549 |
+
}
|
2550 |
+
|
2551 |
+
if (self.settings.navigation) {
|
2552 |
+
self.box_skitter
|
2553 |
+
.find('.prev_button')
|
2554 |
+
.show()
|
2555 |
+
.css({opacity:0})
|
2556 |
+
.animate({opacity: opacity_elements}, interval_in_elements);
|
2557 |
+
|
2558 |
+
self.box_skitter
|
2559 |
+
.find('.next_button')
|
2560 |
+
.show().css({opacity:0})
|
2561 |
+
.animate({opacity: opacity_elements}, interval_in_elements);
|
2562 |
+
}
|
2563 |
+
|
2564 |
+
if (self.settings.focus && !self.settings.foucs_active) {
|
2565 |
+
self.box_skitter
|
2566 |
+
.find('.focus_button')
|
2567 |
+
.stop()
|
2568 |
+
.show().css({opacity:0})
|
2569 |
+
.animate({opacity:opacity_elements}, 200);
|
2570 |
+
}
|
2571 |
+
|
2572 |
+
if (self.settings.controls) {
|
2573 |
+
self.box_skitter
|
2574 |
+
.find('.play_pause_button')
|
2575 |
+
.stop()
|
2576 |
+
.show().css({opacity:0})
|
2577 |
+
.animate({opacity:opacity_elements}, 200);
|
2578 |
+
}
|
2579 |
+
}
|
2580 |
+
|
2581 |
+
self.clearTimer(true);
|
2582 |
+
|
2583 |
+
if (self.settings.focus && !self.settings.foucs_active && !self.settings.hideTools) {
|
2584 |
+
self.box_skitter
|
2585 |
+
.find('.focus_button')
|
2586 |
+
.stop()
|
2587 |
+
.animate({opacity:1}, 200);
|
2588 |
+
}
|
2589 |
+
|
2590 |
+
if (self.settings.controls && !self.settings.hideTools) {
|
2591 |
+
self.box_skitter
|
2592 |
+
.find('.play_pause_button')
|
2593 |
+
.stop()
|
2594 |
+
.animate({opacity:1}, 200);
|
2595 |
+
}
|
2596 |
+
|
2597 |
+
}, function() {
|
2598 |
+
if (self.settings.stop_over) self.settings.is_hover_box_skitter = false;
|
2599 |
+
|
2600 |
+
if (self.settings.elapsedTime == 0 && !self.settings.is_animating && !self.settings.is_paused) {
|
2601 |
+
self.startTime();
|
2602 |
+
}
|
2603 |
+
else if (!self.settings.is_paused) {
|
2604 |
+
self.resumeTime();
|
2605 |
+
}
|
2606 |
+
|
2607 |
+
if (self.settings.hideTools) {
|
2608 |
+
if (self.settings.numbers) {
|
2609 |
+
self.box_skitter
|
2610 |
+
.find('.info_slide')
|
2611 |
+
.queue("fx", [])
|
2612 |
+
.show()
|
2613 |
+
.css({opacity: opacity_elements})
|
2614 |
+
.animate({opacity:0}, interval_out_elements);
|
2615 |
+
}
|
2616 |
+
|
2617 |
+
if (self.settings.navigation) {
|
2618 |
+
self.box_skitter
|
2619 |
+
.find('.prev_button')
|
2620 |
+
.queue("fx", [])
|
2621 |
+
.show()
|
2622 |
+
.css({opacity: opacity_elements})
|
2623 |
+
.animate({opacity:0}, interval_out_elements);
|
2624 |
+
|
2625 |
+
self.box_skitter
|
2626 |
+
.find('.next_button')
|
2627 |
+
.queue("fx", [])
|
2628 |
+
.show()
|
2629 |
+
.css({opacity: opacity_elements})
|
2630 |
+
.animate({opacity:0}, interval_out_elements);
|
2631 |
+
}
|
2632 |
+
|
2633 |
+
|
2634 |
+
if (self.settings.focus && !self.settings.foucs_active) {
|
2635 |
+
self.box_skitter
|
2636 |
+
.find('.focus_button')
|
2637 |
+
.stop()
|
2638 |
+
.css({opacity: opacity_elements})
|
2639 |
+
.animate({opacity:0}, 200);
|
2640 |
+
}
|
2641 |
+
|
2642 |
+
if (self.settings.controls) {
|
2643 |
+
self.box_skitter
|
2644 |
+
.find('.play_pause_button')
|
2645 |
+
.stop()
|
2646 |
+
.css({opacity: opacity_elements})
|
2647 |
+
.animate({opacity:0}, 200);
|
2648 |
+
}
|
2649 |
+
}
|
2650 |
+
|
2651 |
+
self.clearTimer(true);
|
2652 |
+
|
2653 |
+
if (!self.settings.is_animating && self.settings.images_links.length > 1) {
|
2654 |
+
self.timer = setTimeout(function() { self.completeMove(); }, self.settings.interval - self.settings.elapsedTime);
|
2655 |
+
self.box_skitter.find('.image_main').attr({'src': self.settings.image_atual});
|
2656 |
+
self.box_skitter.find('.image a').attr({'href': self.settings.link_atual});
|
2657 |
+
}
|
2658 |
+
|
2659 |
+
if (self.settings.focus && !self.settings.foucs_active && !self.settings.hideTools) {
|
2660 |
+
self.box_skitter
|
2661 |
+
.find('.focus_button')
|
2662 |
+
.stop()
|
2663 |
+
.animate({opacity:0.3}, 200);
|
2664 |
+
}
|
2665 |
+
|
2666 |
+
if (self.settings.controls && !self.settings.hideTools) {
|
2667 |
+
self.box_skitter
|
2668 |
+
.find('.play_pause_button')
|
2669 |
+
.stop()
|
2670 |
+
.animate({opacity:0.3}, 200);
|
2671 |
+
}
|
2672 |
+
|
2673 |
+
});
|
2674 |
+
},
|
2675 |
+
|
2676 |
+
// Stop timer
|
2677 |
+
clearTimer: function (force) {
|
2678 |
+
var self = this;
|
2679 |
+
clearInterval(self.timer);
|
2680 |
+
},
|
2681 |
+
|
2682 |
+
// Set link atual
|
2683 |
+
setLinkAtual: function() {
|
2684 |
+
if (this.settings.link_atual != '#') {
|
2685 |
+
this.box_skitter.find('.image a').attr({'href': this.settings.link_atual, 'target': this.settings.target_atual});
|
2686 |
+
}
|
2687 |
+
else {
|
2688 |
+
this.box_skitter.find('.image a').removeAttr('href');
|
2689 |
+
}
|
2690 |
+
},
|
2691 |
+
|
2692 |
+
// Hide tools
|
2693 |
+
hideTools: function() {
|
2694 |
+
this.box_skitter.find('.info_slide').hide();
|
2695 |
+
this.box_skitter.find('.prev_button').hide();
|
2696 |
+
this.box_skitter.find('.next_button').hide();
|
2697 |
+
this.box_skitter.find('.label_skitter').hide();
|
2698 |
+
this.box_skitter.find('.focus_button').hide();
|
2699 |
+
this.box_skitter.find('.play_pause_button').hide();
|
2700 |
+
},
|
2701 |
+
|
2702 |
+
// Focus Skitter
|
2703 |
+
focusSkitter: function() {
|
2704 |
+
var self = this;
|
2705 |
+
|
2706 |
+
var focus_button = $('<a href="#" class="focus_button">focus</a>');
|
2707 |
+
self.box_skitter.append(focus_button);
|
2708 |
+
|
2709 |
+
var _left = (self.settings.width_skitter - focus_button.width()) / 2;
|
2710 |
+
var _space = 0;
|
2711 |
+
|
2712 |
+
if (self.settings.controls) _left -= 25;
|
2713 |
+
if (self.settings.controls_position == self.settings.focus_position) _space = focus_button.width() + 5;
|
2714 |
+
|
2715 |
+
var cssPosition = {left: _left};
|
2716 |
+
|
2717 |
+
switch (self.settings.focus_position)
|
2718 |
+
{
|
2719 |
+
case 'leftTop' : cssPosition = {left: 5 + _space, top: 30}; break;
|
2720 |
+
case 'rightTop' : cssPosition = {right: 5 + _space, top: 30}; break;
|
2721 |
+
case 'leftBottom' : cssPosition = {left: 5 + _space, bottom: 5, top: 'auto'}; break;
|
2722 |
+
case 'rightBottom' : cssPosition = {right: 5 + _space, bottom: 5, top: 'auto'}; break;
|
2723 |
+
}
|
2724 |
+
|
2725 |
+
focus_button
|
2726 |
+
.css(cssPosition)
|
2727 |
+
.animate({opacity:0.3}, self.settings.interval_in_elements);
|
2728 |
+
|
2729 |
+
$(document).keypress(function(e) {
|
2730 |
+
var code = (e.keyCode ? e.keyCode : e.which);
|
2731 |
+
if (code == 27) $('#overlay_skitter').trigger('click');
|
2732 |
+
});
|
2733 |
+
|
2734 |
+
self.box_skitter.find('.focus_button').click(function() {
|
2735 |
+
self.settings.foucs_active = true;
|
2736 |
+
|
2737 |
+
$(this).stop().animate({opacity:0}, self.settings.interval_out_elements);
|
2738 |
+
|
2739 |
+
var div = $('<div id="overlay_skitter"></div>')
|
2740 |
+
.height( $(document).height() )
|
2741 |
+
.hide()
|
2742 |
+
.fadeTo(self.settings.interval_in_elements, 0.98);
|
2743 |
+
|
2744 |
+
var _top = $('.box_skitter').offset().top;
|
2745 |
+
var _left = $('.box_skitter').offset().left;
|
2746 |
+
var _topFinal = (($(window).height() - $('.box_skitter').height()) / 2) + $(document).scrollTop();
|
2747 |
+
var _leftFinal = ($(window).width() - $('.box_skitter').width()) / 2;
|
2748 |
+
|
2749 |
+
self.box_skitter.before('<div id="mark_position"></div>');
|
2750 |
+
$('body').prepend(div);
|
2751 |
+
$('body').prepend(self.box_skitter);
|
2752 |
+
self.box_skitter
|
2753 |
+
.css({'top':_top, 'left':_left, 'position':'absolute', 'z-index':9999})
|
2754 |
+
.animate({'top':_topFinal, 'left':_leftFinal}, 2000, 'easeOutExpo');
|
2755 |
+
|
2756 |
+
$('#mark_position')
|
2757 |
+
.width($('.box_skitter').width())
|
2758 |
+
.height($('.box_skitter').height())
|
2759 |
+
.css({'background':'none'})
|
2760 |
+
.fadeTo(300,0.3);
|
2761 |
+
|
2762 |
+
$('#overlay_skitter').click(function() {
|
2763 |
+
if ($(this).hasClass('finish_overlay_skitter')) return false;
|
2764 |
+
|
2765 |
+
self.settings.foucs_active = false;
|
2766 |
+
$(this).addClass('finish_overlay_skitter');
|
2767 |
+
|
2768 |
+
$('#mark_position').before($('.box_skitter'));
|
2769 |
+
|
2770 |
+
if (!self.settings.hideTools) self.box_skitter.find('.focus_button').animate({opacity:0.3}, 200);
|
2771 |
+
|
2772 |
+
self.box_skitter
|
2773 |
+
.stop()
|
2774 |
+
.animate({'top':_top, 'left':_left}, 300, 'easeOutExpo', function() {
|
2775 |
+
$(this).css({'position':'relative', 'top':0, 'left': 0});
|
2776 |
+
$('#mark_position').remove();
|
2777 |
+
});
|
2778 |
+
|
2779 |
+
$('#overlay_skitter').fadeTo(self.settings.interval_out_elements, 0, function() {
|
2780 |
+
$(this).remove();
|
2781 |
+
});
|
2782 |
+
|
2783 |
+
return false;
|
2784 |
+
});
|
2785 |
+
|
2786 |
+
return false;
|
2787 |
+
});
|
2788 |
+
},
|
2789 |
+
|
2790 |
+
|
2791 |
+
/**
|
2792 |
+
* Controls: play and stop
|
2793 |
+
*/
|
2794 |
+
setControls: function() {
|
2795 |
+
var self = this;
|
2796 |
+
|
2797 |
+
var play_pause_button = $('<a href="#" class="play_pause_button">pause</a>');
|
2798 |
+
self.box_skitter.append(play_pause_button);
|
2799 |
+
|
2800 |
+
var _left = (self.settings.width_skitter - play_pause_button.width()) / 2;
|
2801 |
+
|
2802 |
+
if (self.settings.focus) _left += 25;
|
2803 |
+
|
2804 |
+
var cssPosition = {left: _left};
|
2805 |
+
|
2806 |
+
switch (self.settings.controls_position)
|
2807 |
+
{
|
2808 |
+
case 'leftTop' : cssPosition = {left: 5, top: 30}; break;
|
2809 |
+
case 'rightTop' : cssPosition = {right: 5, top: 30}; break;
|
2810 |
+
case 'leftBottom' : cssPosition = {left: 5, bottom: 5, top: 'auto'}; break;
|
2811 |
+
case 'rightBottom' : cssPosition = {right: 5, bottom: 5, top: 'auto'}; break;
|
2812 |
+
}
|
2813 |
+
|
2814 |
+
play_pause_button
|
2815 |
+
.css(cssPosition)
|
2816 |
+
.animate({opacity:0.3}, self.settings.interval_in_elements);
|
2817 |
+
|
2818 |
+
play_pause_button.click(function() {
|
2819 |
+
if (!self.settings.is_paused) {
|
2820 |
+
$(this).html('play');
|
2821 |
+
$(this).fadeTo(100, 0.5).fadeTo(100, 1);
|
2822 |
+
|
2823 |
+
$(this).addClass('play_button');
|
2824 |
+
self.pauseTime();
|
2825 |
+
self.settings.is_paused = true;
|
2826 |
+
self.clearTimer(true);
|
2827 |
+
}
|
2828 |
+
else {
|
2829 |
+
if (!self.settings.is_animating && !self.box_skitter.find('.progressbar').is(':visible')) {
|
2830 |
+
self.settings.elapsedTime = 0;
|
2831 |
+
}
|
2832 |
+
else {
|
2833 |
+
self.resumeTime();
|
2834 |
+
}
|
2835 |
+
|
2836 |
+
if (!self.settings.progressbar) self.resumeTime();
|
2837 |
+
|
2838 |
+
self.settings.is_paused = false;
|
2839 |
+
|
2840 |
+
$(this).html('pause');
|
2841 |
+
$(this).fadeTo(100, 0.5).fadeTo(100, 1);
|
2842 |
+
$(this).removeClass('play_button');
|
2843 |
+
|
2844 |
+
if (!self.settings.stop_over) {
|
2845 |
+
self.clearTimer(true);
|
2846 |
+
if (!self.settings.is_animating && self.settings.images_links.length > 1) {
|
2847 |
+
self.timer = setTimeout(function() { self.completeMove(); }, self.settings.interval - self.settings.elapsedTime);
|
2848 |
+
self.box_skitter.find('.image_main').attr({'src': self.settings.image_atual});
|
2849 |
+
self.box_skitter.find('.image a').attr({'href': self.settings.link_atual});
|
2850 |
+
}
|
2851 |
+
}
|
2852 |
+
}
|
2853 |
+
|
2854 |
+
return false;
|
2855 |
+
});
|
2856 |
+
},
|
2857 |
+
|
2858 |
+
/**
|
2859 |
+
* Object size
|
2860 |
+
*/
|
2861 |
+
objectSize: function(obj) {
|
2862 |
+
var size = 0, key;
|
2863 |
+
for (key in obj) { if (obj.hasOwnProperty(key)) size++; }
|
2864 |
+
return size;
|
2865 |
+
},
|
2866 |
+
|
2867 |
+
/**
|
2868 |
+
* Add progress bar
|
2869 |
+
*/
|
2870 |
+
addProgressBar: function() {
|
2871 |
+
var self = this;
|
2872 |
+
|
2873 |
+
var progressbar = $('<div class="progressbar"></div>');
|
2874 |
+
self.box_skitter.append(progressbar);
|
2875 |
+
|
2876 |
+
if (self.objectSize(self.settings.progressbar_css) == 0) {
|
2877 |
+
if (parseInt(progressbar.css('width')) > 0) {
|
2878 |
+
self.settings.progressbar_css.width = parseInt(progressbar.css('width'));
|
2879 |
+
}
|
2880 |
+
else {
|
2881 |
+
self.settings.progressbar_css = {width: self.settings.width_skitter, height:5};
|
2882 |
+
}
|
2883 |
+
}
|
2884 |
+
if (self.objectSize(self.settings.progressbar_css) > 0 && self.settings.progressbar_css.width == undefined) {
|
2885 |
+
self.settings.progressbar_css.width = self.settings.width_skitter;
|
2886 |
+
}
|
2887 |
+
|
2888 |
+
progressbar.css(self.settings.progressbar_css).hide();
|
2889 |
+
},
|
2890 |
+
|
2891 |
+
/**
|
2892 |
+
* Start progress bar
|
2893 |
+
*/
|
2894 |
+
startProgressBar: function() {
|
2895 |
+
var self = this;
|
2896 |
+
if (self.settings.is_hover_box_skitter || self.settings.is_paused || self.settings.is_blur || !self.settings.progressbar) return false;
|
2897 |
+
self.box_skitter.find('.progressbar')
|
2898 |
+
.hide()
|
2899 |
+
.dequeue()
|
2900 |
+
.width(self.settings.progressbar_css.width)
|
2901 |
+
.animate({width:'show'}, self.settings.interval, 'linear');
|
2902 |
+
},
|
2903 |
+
|
2904 |
+
/**
|
2905 |
+
* Pause progress bar
|
2906 |
+
*/
|
2907 |
+
pauseProgressBar: function() {
|
2908 |
+
var self = this;
|
2909 |
+
if (!self.settings.is_animating) {
|
2910 |
+
self.box_skitter.find('.progressbar').stop();
|
2911 |
+
}
|
2912 |
+
},
|
2913 |
+
|
2914 |
+
/**
|
2915 |
+
* Resume progress bar
|
2916 |
+
*/
|
2917 |
+
resumeProgressBar: function() {
|
2918 |
+
var self = this;
|
2919 |
+
|
2920 |
+
if (self.settings.is_hover_box_skitter || self.settings.is_paused || !self.settings.progressbar) return false;
|
2921 |
+
|
2922 |
+
self.box_skitter.find('.progressbar').dequeue().animate({width: self.settings.progressbar_css.width}, (self.settings.interval - self.settings.elapsedTime), 'linear');
|
2923 |
+
},
|
2924 |
+
|
2925 |
+
/**
|
2926 |
+
* Hide progress bar
|
2927 |
+
*/
|
2928 |
+
hideProgressBar: function() {
|
2929 |
+
var self = this;
|
2930 |
+
|
2931 |
+
if (!self.settings.progressbar) return false;
|
2932 |
+
|
2933 |
+
self.box_skitter.find('.progressbar').stop().fadeOut(300, function() {
|
2934 |
+
$(this).width(self.settings.progressbar_css.width);
|
2935 |
+
});
|
2936 |
+
},
|
2937 |
+
|
2938 |
+
/**
|
2939 |
+
* Start time
|
2940 |
+
*/
|
2941 |
+
startTime: function() {
|
2942 |
+
var self = this;
|
2943 |
+
|
2944 |
+
self.settings.is_paused_time = false;
|
2945 |
+
|
2946 |
+
var date = new Date();
|
2947 |
+
self.settings.elapsedTime = 0;
|
2948 |
+
self.settings.timeStart = date.getTime();
|
2949 |
+
|
2950 |
+
// Start progress bar
|
2951 |
+
self.startProgressBar();
|
2952 |
+
},
|
2953 |
+
|
2954 |
+
/**
|
2955 |
+
* Pause time
|
2956 |
+
*/
|
2957 |
+
pauseTime: function() {
|
2958 |
+
var self = this;
|
2959 |
+
|
2960 |
+
if (self.settings.is_paused_time) return false;
|
2961 |
+
self.settings.is_paused_time = true;
|
2962 |
+
|
2963 |
+
var date = new Date();
|
2964 |
+
self.settings.elapsedTime += date.getTime() - self.settings.timeStart;
|
2965 |
+
|
2966 |
+
// Pause progress bar
|
2967 |
+
self.pauseProgressBar();
|
2968 |
+
},
|
2969 |
+
|
2970 |
+
/**
|
2971 |
+
* Resume time
|
2972 |
+
*/
|
2973 |
+
resumeTime: function() {
|
2974 |
+
var self = this;
|
2975 |
+
|
2976 |
+
self.settings.is_paused_time = false;
|
2977 |
+
|
2978 |
+
var date = new Date();
|
2979 |
+
self.settings.timeStart = date.getTime();
|
2980 |
+
|
2981 |
+
// Resume progress bar
|
2982 |
+
self.resumeProgressBar();
|
2983 |
+
},
|
2984 |
+
|
2985 |
+
/**
|
2986 |
+
* Enable navigation keys
|
2987 |
+
*/
|
2988 |
+
enableNavigationKeys: function() {
|
2989 |
+
var self = this;
|
2990 |
+
$(window).keydown(function(e) {
|
2991 |
+
// Next
|
2992 |
+
if (e.keyCode == 39 || e.keyCode == 40) {
|
2993 |
+
self.box_skitter.find('.next_button').trigger('click');
|
2994 |
+
}
|
2995 |
+
// Prev
|
2996 |
+
else if (e.keyCode == 37 || e.keyCode == 38) {
|
2997 |
+
self.box_skitter.find('.prev_button').trigger('click');
|
2998 |
+
}
|
2999 |
+
});
|
3000 |
+
},
|
3001 |
+
|
3002 |
+
/**
|
3003 |
+
* Get box clone with background image
|
3004 |
+
*/
|
3005 |
+
getBoxCloneBackground: function(options)
|
3006 |
+
{
|
3007 |
+
var box_clone = $('<div class="box_clone"></div>');
|
3008 |
+
|
3009 |
+
box_clone.css({
|
3010 |
+
'left': options.left,
|
3011 |
+
'top': options.top,
|
3012 |
+
'width': options.width,
|
3013 |
+
'height': options.height,
|
3014 |
+
'background-image': 'url('+options.image+')',
|
3015 |
+
'background-position': options.position.left+'px '+options.position.top+'px'
|
3016 |
+
});
|
3017 |
+
|
3018 |
+
return box_clone;
|
3019 |
+
},
|
3020 |
+
|
3021 |
+
/**
|
3022 |
+
* Shuffle array
|
3023 |
+
* @author Daniel Castro Machado <daniel@cdt.unb.br>
|
3024 |
+
*/
|
3025 |
+
shuffleArray: function (arrayOrigem) {
|
3026 |
+
var self = this;
|
3027 |
+
var arrayDestino = new Array();
|
3028 |
+
var indice;
|
3029 |
+
while (arrayOrigem.length > 0) {
|
3030 |
+
indice = self.randomUnique(0, arrayOrigem.length - 1);
|
3031 |
+
arrayDestino[arrayDestino.length] = arrayOrigem[indice];
|
3032 |
+
arrayOrigem.splice(indice, 1);
|
3033 |
+
}
|
3034 |
+
return arrayDestino;
|
3035 |
+
},
|
3036 |
+
|
3037 |
+
/**
|
3038 |
+
* Gera números aleatórios inteiros entre um intervalo
|
3039 |
+
* @author Daniel Castro Machado <daniel@cdt.unb.br>
|
3040 |
+
*/
|
3041 |
+
randomUnique: function (valorIni, valorFim) {
|
3042 |
+
var numRandom;
|
3043 |
+
do numRandom = Math.random(); while (numRandom == 1); // Evita gerar o número valorFim + 1
|
3044 |
+
return (numRandom * (valorFim - valorIni + 1) + valorIni) | 0;
|
3045 |
+
},
|
3046 |
+
|
3047 |
+
/**
|
3048 |
+
* Stop on window focus out
|
3049 |
+
* @author Dan Partac (http://thiagosf.net/projects/jquery/skitter/#comment-355473307)
|
3050 |
+
*/
|
3051 |
+
windowFocusOut: function () {
|
3052 |
+
var self = this;
|
3053 |
+
$(window).bind('blur', function(){
|
3054 |
+
self.settings.is_blur = true;
|
3055 |
+
self.pauseTime();
|
3056 |
+
self.clearTimer(true);
|
3057 |
+
});
|
3058 |
+
$(window).bind('focus', function(){
|
3059 |
+
if ( self.settings.images_links.length > 1 ) {
|
3060 |
+
self.settings.is_blur = false;
|
3061 |
+
|
3062 |
+
if (self.settings.elapsedTime == 0) {
|
3063 |
+
self.startTime();
|
3064 |
+
}
|
3065 |
+
else {
|
3066 |
+
self.resumeTime();
|
3067 |
+
}
|
3068 |
+
|
3069 |
+
if (self.settings.elapsedTime <= self.settings.interval) {
|
3070 |
+
self.clearTimer(true); // Fix bug IE: double next
|
3071 |
+
self.timer = setTimeout(function() { self.completeMove(); }, self.settings.interval - self.settings.elapsedTime);
|
3072 |
+
self.box_skitter.find('.image_main').attr({'src': self.settings.image_atual});
|
3073 |
+
self.box_skitter.find('.image a').attr({'href': self.settings.link_atual});
|
3074 |
+
}
|
3075 |
+
}
|
3076 |
+
});
|
3077 |
+
}
|
3078 |
+
|
3079 |
+
});
|
3080 |
+
|
3081 |
+
/**
|
3082 |
+
* Helper function for cross-browser CSS3 support, prepends all possible prefixes to all properties passed in
|
3083 |
+
* @param {Object} props Ker/value pairs of CSS3 properties
|
3084 |
+
*/
|
3085 |
+
$.fn.css3 = function(props) {
|
3086 |
+
var css = {};
|
3087 |
+
var prefixes = ['moz', 'ms', 'o', 'webkit'];
|
3088 |
+
for(var prop in props) {
|
3089 |
+
// Add the vendor specific versions
|
3090 |
+
for(var i=0; i<prefixes.length; i++)
|
3091 |
+
css['-'+prefixes[i]+'-'+prop] = props[prop];
|
3092 |
+
// Add the actual version
|
3093 |
+
css[prop] = props[prop];
|
3094 |
+
}
|
3095 |
+
this.css(css);
|
3096 |
+
return this;
|
3097 |
+
};
|
3098 |
+
|
3099 |
+
// Monkey patch jQuery 1.3.1+ to add support for setting or animating CSS
|
3100 |
+
// scale and rotation independently.
|
3101 |
+
// 2009-2010 Zachary Johnson www.zachstronaut.com
|
3102 |
+
// Updated 2010.11.06
|
3103 |
+
var rotateUnits = 'deg';
|
3104 |
+
|
3105 |
+
$.fn.rotate = function (val) {
|
3106 |
+
var style = $(this).css('transform') || 'none';
|
3107 |
+
if (typeof val == 'undefined') {
|
3108 |
+
if (style) {
|
3109 |
+
var m = style.match(/rotate\(([^)]+)\)/);
|
3110 |
+
if (m && m[1]) {
|
3111 |
+
return m[1];
|
3112 |
+
}
|
3113 |
+
}
|
3114 |
+
return 0;
|
3115 |
+
}
|
3116 |
+
var m = val.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/);
|
3117 |
+
if (m) {
|
3118 |
+
if (m[3]) rotateUnits = m[3];
|
3119 |
+
$(this).css('transform',
|
3120 |
+
style.replace(/none|rotate\([^)]*\)/, '') + 'rotate(' + m[1] + rotateUnits + ')'
|
3121 |
+
);
|
3122 |
+
}
|
3123 |
+
|
3124 |
+
return this;
|
3125 |
+
};
|
3126 |
+
|
3127 |
+
// Note that scale is unitless.
|
3128 |
+
$.fn.scale = function (val, duration, options) {
|
3129 |
+
var style = $(this).css('transform');
|
3130 |
+
if (typeof val == 'undefined') {
|
3131 |
+
if (style) {
|
3132 |
+
var m = style.match(/scale\(([^)]+)\)/);
|
3133 |
+
if (m && m[1]) {
|
3134 |
+
return m[1];
|
3135 |
+
}
|
3136 |
+
}
|
3137 |
+
return 1;
|
3138 |
+
}
|
3139 |
+
$(this).css('transform',
|
3140 |
+
style.replace(/none|scale\([^)]*\)/, '') + 'scale(' + val + ')'
|
3141 |
+
);
|
3142 |
+
return this;
|
3143 |
+
};
|
3144 |
+
|
3145 |
+
// fx.cur() must be monkey patched because otherwise it would always
|
3146 |
+
// return 0 for current rotate and scale values
|
3147 |
+
var curProxied = $.fx.prototype.cur;
|
3148 |
+
$.fx.prototype.cur = function () {
|
3149 |
+
if (this.prop == 'rotate') {
|
3150 |
+
return parseFloat($(this.elem).rotate());
|
3151 |
+
}
|
3152 |
+
else if (this.prop == 'scale') {
|
3153 |
+
return parseFloat($(this.elem).scale());
|
3154 |
+
}
|
3155 |
+
return curProxied.apply(this, arguments);
|
3156 |
+
};
|
3157 |
+
|
3158 |
+
$.fx.step.rotate = function (fx) {
|
3159 |
+
$(fx.elem).rotate(fx.now + rotateUnits);
|
3160 |
+
};
|
3161 |
+
|
3162 |
+
$.fx.step.scale = function (fx) {
|
3163 |
+
$(fx.elem).scale(fx.now);
|
3164 |
+
};
|
3165 |
+
|
3166 |
+
var animateProxied = $.fn.animate;
|
3167 |
+
$.fn.animate = function (prop) {
|
3168 |
+
if (typeof prop['rotate'] != 'undefined') {
|
3169 |
+
var m = prop['rotate'].toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/);
|
3170 |
+
if (m && m[5]) {
|
3171 |
+
rotateUnits = m[5];
|
3172 |
+
}
|
3173 |
+
prop['rotate'] = m[1];
|
3174 |
+
}
|
3175 |
+
|
3176 |
+
return animateProxied.apply(this, arguments);
|
3177 |
+
};
|
3178 |
+
|
3179 |
+
// Monkey patch jQuery 1.3.1+ css() method to support CSS 'transform'
|
3180 |
+
// property uniformly across Safari/Chrome/Webkit, Firefox 3.5+, IE 9+, and Opera 11+.
|
3181 |
+
// 2009-2011 Zachary Johnson www.zachstronaut.com
|
3182 |
+
// Updated 2011.05.04 (May the fourth be with you!)
|
3183 |
+
function getTransformProperty(element) {
|
3184 |
+
var properties = ['transform', 'WebkitTransform', 'msTransform', 'MozTransform', 'OTransform'];
|
3185 |
+
var p;
|
3186 |
+
while (p = properties.shift()) {
|
3187 |
+
if (typeof element.style[p] != 'undefined') {
|
3188 |
+
return p;
|
3189 |
+
}
|
3190 |
+
}
|
3191 |
+
return 'transform';
|
3192 |
+
};
|
3193 |
+
|
3194 |
+
var _propsObj = null;
|
3195 |
+
|
3196 |
+
var proxied = $.fn.css;
|
3197 |
+
$.fn.css = function (arg, val) {
|
3198 |
+
if (_propsObj === null) {
|
3199 |
+
if (typeof $.cssProps != 'undefined') {
|
3200 |
+
_propsObj = $.cssProps;
|
3201 |
+
}
|
3202 |
+
else if (typeof $.props != 'undefined') {
|
3203 |
+
_propsObj = $.props;
|
3204 |
+
}
|
3205 |
+
else {
|
3206 |
+
_propsObj = {};
|
3207 |
+
}
|
3208 |
+
}
|
3209 |
+
if
|
3210 |
+
(
|
3211 |
+
typeof _propsObj['transform'] == 'undefined'
|
3212 |
+
&&
|
3213 |
+
(
|
3214 |
+
arg == 'transform'
|
3215 |
+
||
|
3216 |
+
(
|
3217 |
+
typeof arg == 'object'
|
3218 |
+
&& typeof arg['transform'] != 'undefined'
|
3219 |
+
)
|
3220 |
+
)
|
3221 |
+
) {
|
3222 |
+
_propsObj['transform'] = getTransformProperty(this.get(0));
|
3223 |
+
}
|
3224 |
+
if (_propsObj['transform'] != 'transform') {
|
3225 |
+
// Call in form of css('transform' ...)
|
3226 |
+
if (arg == 'transform') {
|
3227 |
+
arg = _propsObj['transform'];
|
3228 |
+
if (typeof val == 'undefined' && jQuery.style) {
|
3229 |
+
return jQuery.style(this.get(0), arg);
|
3230 |
+
}
|
3231 |
+
}
|
3232 |
+
// Call in form of css({'transform': ...})
|
3233 |
+
else if
|
3234 |
+
(
|
3235 |
+
typeof arg == 'object'
|
3236 |
+
&& typeof arg['transform'] != 'undefined'
|
3237 |
+
) {
|
3238 |
+
arg[_propsObj['transform']] = arg['transform'];
|
3239 |
+
delete arg['transform'];
|
3240 |
+
}
|
3241 |
+
}
|
3242 |
+
return proxied.apply(this, arguments);
|
3243 |
+
};
|
3244 |
+
|
3245 |
+
})(jQuery);
|
skin/frontend/default/default/bannernext/skitter_slideshow/js/jquery.skitter.min.js
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jQuery Skitter Slideshow
|
3 |
+
* @name jquery.skitter.js
|
4 |
+
* @description Slideshow
|
5 |
+
* @author Thiago Silva Ferreira - http://thiagosf.net
|
6 |
+
* @version 4.0
|
7 |
+
* @date August 04, 2010
|
8 |
+
* @update April 19, 2012
|
9 |
+
* @copyright (c) 2010 Thiago Silva Ferreira - http://thiagosf.net
|
10 |
+
* @license Dual licensed under the MIT or GPL Version 2 licenses
|
11 |
+
* @example http://thiagosf.net/projects/jquery/skitter/
|
12 |
+
*/
|
13 |
+
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(q($){f 2N=0,5D=[];$.2l.41=q(C){11 c.3C(q(){$(c).88(\'89\',2N);5D.5E(2E $3b(c,C,2N));++2N})};f 5F={1f:1,2F:8a,42:\'\',44:S,45:S,2s:S,M:\'\',k:1B,8b:1B,1n:1B,1s:1B,1T:1B,3c:1B,46:\'4P\',B:1B,N:1B,1y:1,19:U,2W:U,47:1B,5G:U,48:U,3D:{4Q:\'#8c\',49:\'#4R\'},4S:{4Q:\'#4R\',49:\'#8d\'},4a:{4Q:\'#8e\',49:\'#4R\'},2m:U,4b:U,3d:U,3E:U,3F:1B,1Z:0.75,2G:2H,2O:1L,4T:1B,4U:1B,8f:20,4V:\'r\',3e:U,2I:U,2X:U,4W:\'4c\',2Y:U,4X:\'4c\',1F:U,2n:{},2t:U,3f:U,3g:U,4d:0,2a:0,3h:S,5H:U,4e:[],5I:q(){$(c).1M().H({T:0.5},1t)},5J:q(){$(c).1M().H({T:1},1t)},3G:S,5K:\'<a 1P="#" 1v="2b">8g</a>\'+\'<a 1P="#" 1v="21">8h</a>\'+\'<2P 1v="1C"></2P>\'+\'<1q 1v="4f">\'+\'<1q 1v="1N">\'+\'<a 1P=""><P 1v="1a" /></a>\'+\'<1q 1v="2Q"></1q>\'+\'</1q>\'+\'</1q>\'};$.41=q(3H,C,5L){c.k=$(3H);c.2Z=1B;c.g=$.1Q({},5F,C||{});c.2N=5L;c.5M()};f $3b=$.41;$3b.2l=$3b.4Y={};$3b.2l.1Q=$.1Q;$3b.2l.1Q({5M:q(){f h=c;l(c.g.4b){f D=$(31).D();f I=$(31).I();c.k.D(D).I(I);c.k.w({\'2u\':\'4Z\',\'s\':0,\'r\':0,\'z-5N\':5O});c.g.3h=U;$(\'51\').w({\'8i\':\'8j\'})}c.g.B=3i(c.k.w(\'D\'));c.g.N=3i(c.k.w(\'I\'));l(!c.g.B||!c.g.N){8k.8l(\'8m 5P I 4g 5Q 1B! - 8n 8o\');11 U}c.k.1G(c.g.5K);c.g.M=c.5R(c.g.J);l(c.g.1f>=2)c.g.1f=1.3;l(c.g.1f<=0)c.g.1f=1;c.k.j(\'.1C\').1h();c.k.j(\'.2Q\').1h();c.k.j(\'.2b\').1h();c.k.j(\'.21\').1h();c.k.j(\'.4f\').D(c.g.B);c.k.j(\'.4f\').I(c.g.N);f 3F=c.g.3F?c.g.3F:c.g.B;c.k.j(\'.2Q\').D(3F);f 4h=\' 32\',u=0;c.g.1n=2E 4i();f 52=q(2R,W,22,2s,2o){h.g.1n.5E([W,2R,22,2s,2o]);l(h.g.48){f 4j=\'\';l(h.g.B>h.g.N){4j=\'I="1w"\'}17{4j=\'D="1w"\'}h.k.j(\'.1C\').1G(\'<2P 1v="1U\'+4h+\'" 3j="\'+(u-1)+\'" 4k="53\'+u+\'54\'+h.2N+\'">\'+\'<P W="\'+W+\'" \'+4j+\' />\'+\'</2P> \')}17{h.k.j(\'.1C\').1G(\'<2P 1v="1U\'+4h+\'" 3j="\'+(u-1)+\'" 4k="53\'+u+\'54\'+h.2N+\'">\'+u+\'</2P> \')}4h=\'\'};l(c.g.3d){$.8p({5S:\'8q\',5T:c.g.3d,8r:U,8s:\'3d\',8t:q(3d){f 2v=$(\'<2v></2v>\');$(3d).j(\'41 8u\').3C(q(){++u;f 2R=($(c).j(\'2R\').3k())?$(c).j(\'2R\').3k():\'#\';f W=$(c).j(\'1N\').3k();f 22=$(c).j(\'1N\').V(\'5S\');f 2s=$(c).j(\'2s\').3k();f 2o=($(c).j(\'2o\').3k())?$(c).j(\'2o\').3k():\'4P\';52(2R,W,22,2s,2o)})}})}17 l(c.g.8v){}17{c.k.j(\'2v 3l\').3C(q(){++u;f 2R=($(c).j(\'a\').1z)?$(c).j(\'a\').V(\'1P\'):\'#\';f W=$(c).j(\'P\').V(\'W\');f 22=$(c).j(\'P\').V(\'1v\');f 2s=$(c).j(\'.8w\').33();f 2o=($(c).j(\'a\').1z&&$(c).j(\'a\').V(\'2o\'))?$(c).j(\'a\').V(\'2o\'):\'4P\';52(2R,W,22,2s,2o)})}l(h.g.48&&!h.g.4b){h.g.3D={T:0.3};h.g.4S={T:0.5};h.g.4a={T:1};h.k.j(\'.1C\').3I(\'2J\');f 4l=(u+1)*h.k.j(\'.2J .1U\').D();h.k.j(\'.2J\').D(4l);h.k.w({I:h.k.I()+h.k.j(\'.1C\').I()});h.k.1G(\'<1q 1v="5U"></1q>\');f 5V=h.k.j(\'.1C\').8x();h.k.j(\'.1C\').23();h.k.j(\'.5U\').D(h.g.B).1G(5V);f 55=0,B=c.g.B,N=c.g.N,3J=0,2J=h.k.j(\'.2J\'),56=0,5W=h.k.3m().s;2J.j(\'.1U\').3C(q(){55+=$(c).8y()});2J.D(55+\'Z\');3J=2J.D();4m=c.g.B;4m=B-1w;l(4l>h.g.B){h.k.8z(q(e){56=h.k.3m().r+90;f x=e.8A,y=e.8B,34=0;x=x-56;y=y-5W;5X=3J-4m;34=-((5X*x)/4m);l(34>0)34=0;l(34<-(3J-B))34=-(3J-B);l(y>N){2J.w({r:34})}})}h.k.j(\'.8C\').w({\'r\':10});l(4l<h.g.B){h.k.j(\'.1C\').D(\'35\');h.k.j(\'.8D\').1h();f 1R=\'.1C\';2S(h.g.4V){O\'4c\':f 18=(h.g.B-h.k.j(1R).D())/2;h.k.j(1R).w({\'r\':18});L;O\'2w\':h.k.j(1R).w({\'r\':\'35\',\'2w\':\'-8E\'});L;O\'r\':h.k.j(1R).w({\'r\':\'8F\'});L}}}17{f 1R=\'.1C\';l(h.g.3E){h.k.j(\'.1C\').3I(\'57\').58(\'1C\');1R=\'.57\'}2S(h.g.4V){O\'4c\':f 18=(h.g.B-h.k.j(1R).D())/2;h.k.j(1R).w({\'r\':18});L;O\'2w\':h.k.j(1R).w({\'r\':\'35\',\'2w\':\'5Y\'});L;O\'r\':h.k.j(1R).w({\'r\':\'5Y\'});L}l(!h.g.3E){l(h.k.j(\'.1C\').I()>20){h.k.j(\'.1C\').1h()}}}c.k.j(\'2v\').1h();l(c.g.5G)c.g.1n.5Z(q(a,b){11 E.1o()-0.5});c.g.1s=c.g.1n[0][0];c.g.1T=c.g.1n[0][1];c.g.3c=c.g.1n[0][3];c.g.46=c.g.1n[0][4];l(c.g.1n.1z>1){c.k.j(\'.2b\').2K(q(){l(h.g.19==U){h.g.1y-=2;l(h.g.1y==-2){h.g.1y=h.g.1n.1z-2}17 l(h.g.1y==-1){h.g.1y=h.g.1n.1z-1}h.4n(h.g.1y)}11 U});c.k.j(\'.21\').2K(q(){h.4n(h.g.1y);11 U});h.k.j(\'.21, .2b\').4o(\'59\',h.g.5I);h.k.j(\'.21, .2b\').4o(\'60\',h.g.5J);c.k.j(\'.1U\').61(q(){l($(c).V(\'1v\')!=\'1U 32\'){$(c).1M().H(h.g.4S,2H)}},q(){l($(c).V(\'1v\')!=\'1U 32\'){$(c).1M().H(h.g.3D,1L)}});c.k.j(\'.1U\').2K(q(){l($(c).V(\'1v\')!=\'1U 32\'){f 4p=3n($(c).V(\'3j\'));h.4n(4p)}11 U});c.k.j(\'.1U\').w(h.g.3D);c.k.j(\'.1U:8G(0)\').w(h.g.4a);l(h.g.3e&&h.g.3E){f 3e=$(\'<1q 1v="4q"><2v></2v></1q>\');1i(f i=0;i<c.g.1n.1z;i++){f 3l=$(\'<3l></3l>\');f P=$(\'<P />\');P.V(\'W\',c.g.1n[i][0]);3l.1G(P);3e.j(\'2v\').1G(3l)}f 62=3n(c.g.1n.1z*1w);3e.j(\'2v\').D(62);$(1R).1G(3e);h.k.j(1R).j(\'.1U\').8H(q(){f 63=3i(h.k.j(1R).3m().r);f 64=3i($(c).3m().r);f 65=(64-63)-43;f 3j=3n($(c).V(\'3j\'));f 8I=h.k.j(\'.8J P\').V(\'W\');f 66=-(3j*1w);h.k.j(\'.4q\').j(\'2v\').H({r:66},{4r:1t,3o:U,J:\'67\'});h.k.j(\'.4q\').2x(1,1).H({r:65},{4r:1t,3o:U})});h.k.j(1R).60(q(){$(\'.4q\').H({T:\'1h\'},{4r:1t,3o:U})})}}l(h.g.2I){h.68()}l(h.g.2Y){h.69()}l(h.g.1F&&h.g.3G){h.6a()}l(h.g.2m){h.2m()}l(h.g.5H){h.6b()}c.6c()},6c:q(){f h=c;f 2y=$(\'<1q 1v="2y">8K</1q>\');c.k.1G(2y);f t=c.g.1n.1z;f u=0;$.3C(c.g.1n,q(i){f 6d=c;f 2y=$(\'<2P 1v="4s"></2P>\');2y.w({2u:\'4Z\',s:\'-8L\'});h.k.1G(2y);f P=2E 8M();$(P).8N(q(){++u;l(u==t){h.k.j(\'.2y\').23();h.k.j(\'.4s\').23();h.6e()}}).8O(q(){h.k.j(\'.2y, .4s, .1U, .21, .2b\').23();h.k.33(\'<p 2c="49:8P;4t:8Q;">8R 2y 6f. 8S 5P 8T 6f 8U 8V 8W.</p>\')}).V(\'W\',6d[0])})},6e:q(){f h=c;f 5a=U;l(c.g.44||c.g.48)c.k.j(\'.1C\').3K(1L);l(c.g.3E)c.k.j(\'.57\').3K(1L);l(c.g.2s)c.k.j(\'.2Q\').R();l(c.g.45){c.k.j(\'.2b\').3K(1L);c.k.j(\'.21\').3K(1L)}l(h.g.3G){h.3L()}h.6g();h.1V();h.k.j(\'.1N a P\').V({\'W\':h.g.1s});4u=h.k.j(\'.1N a\');4u=h.4v(4u);4u.j(\'P\').3K(8X);h.5b();h.5c();l(h.g.3G){h.6h()}f 5d=q(){l(h.g.3h){5a=S;h.g.2W=S;h.2z(S);h.5e()}};h.k.59(5d);h.k.j(\'.21\').59(5d);l(h.g.1n.1z>1&&!5a){l(h.g.3G){h.2Z=3M(q(){h.4w()},h.g.2F)}}17{h.k.j(\'.2y, .4s, .1U, .21, .2b\').23()}l($.6i(h.g.4T))h.g.4T(h)},4n:q(4p){l(c.g.19==U){c.g.2a=0;c.k.j(\'.n\').1M();c.2z(S);c.g.1y=E.6j(4p);c.k.j(\'.1N a\').V({\'1P\':c.g.1T});c.k.j(\'.1a\').V({\'W\':c.g.1s});c.k.j(\'.n\').23();c.4w()}},4w:q(){f h=c;3N=[\'6k\',\'6l\',\'6m\',\'6n\',\'6o\',\'6p\',\'6q\',\'6r\',\'6s\',\'6t\',\'6u\',\'6v\',\'6w\',\'6x\',\'6y\',\'6z\',\'6A\',\'6B\',\'6C\',\'6D\',\'6E\',\'6F\',\'6G\',\'6H\',\'6I\',\'6J\',\'6K\',\'6L\',\'6M\',\'6N\',\'6O\',\'6P\',\'6Q\',\'6R\',\'6S\'];l(h.g.1F)h.6T();22=(c.g.42==\'\'&&c.g.1n[c.g.1y][2])?c.g.1n[c.g.1y][2]:(c.g.42==\'\'?\'3O\':c.g.42);l(22==\'8Y\'){l(!c.g.47){3N.5Z(q(){11 0.5-E.1o()});c.g.47=3N}22=c.g.47[c.g.1y]}17 l(22==\'1o\'){f 6U=3n(E.1o()*3N.1z);22=3N[6U]}17 l(h.g.4e.1z>0){f 6V=h.g.4e.1z;l(c.g.3p==24){c.g.3p=0}22=h.g.4e[c.g.3p];++c.g.3p;l(c.g.3p>=6V)c.g.3p=0}2S(22){O\'6k\':c.5f();L;O\'6l\':c.5f({1o:S});L;O\'6m\':c.6W();L;O\'6n\':c.5g();L;O\'6o\':c.5g({1o:S});L;O\'6p\':c.6X();L;O\'6q\':c.6Y();L;O\'6r\':c.6Z();L;O\'6s\':c.5h();L;O\'6t\':c.5h({1o:S});L;O\'6u\':c.5i();L;O\'6v\':c.71();L;O\'6w\':c.72();L;O\'6x\':c.73();L;O\'6y\':c.74();L;O\'6z\':c.5j({I:S});L;O\'6A\':c.5j({I:U,F:2L,1b:50});L;O\'6B\':c.3P({2p:\'s\'});L;O\'6C\':c.3P({2p:\'36\'});L;O\'6D\':c.3P({2p:\'2w\',t:5});L;O\'6E\':c.3P({2p:\'r\',t:5});L;O\'6F\':c.76();L;O\'8Z\':c.77();L;O\'6G\':c.78();L;O\'6H\':c.79();L;O\'6I\':c.7a();L;O\'6J\':c.7b();L;O\'6K\':c.7c();L;O\'6L\':c.7d();L;O\'6M\':c.5k({2p:\'s\'});L;O\'6N\':c.5k({2p:\'36\'});L;O\'6O\':c.7e();L;O\'6P\':c.5l();L;O\'6Q\':c.5l({J:\'5m\'});L;O\'6R\':c.7f();L;O\'6S\':c.7g();L;3O:c.5i();L}},5f:q(C){f h=c;f C=$.1Q({},{1o:U},C||{});c.g.19=S;f J=(c.g.M==\'\')?\'3a\':c.g.M;f F=3q/c.g.1f;c.1m();f 1u=E.K(c.g.B/(c.g.B/8));f 1k=E.K(c.g.N/(c.g.N/3));f t=1u*1k;f v=E.K(c.g.B/1u);f A=E.K(c.g.N/1k);f 1e=c.g.N+1t;f 1g=c.g.N+1t;f X=0;f 13=0;1i(i=0;i<t;i++){1e=(i%2==0)?1e:-1e;1g=(i%2==0)?1g:-1g;f 1c=1e+(A*X)+(X*5n);f 18=-h.g.B;f 1r=-(A*X);f 1p=-(v*13);f Y=(A*X);f 14=(v*13);f n=c.1x();n.1h();f G=50*(i);l(C.1o){G=40*(13);n.w({r:18+\'Z\',s:1c+\'Z\',D:v,I:A})}17{F=1L;n.w({r:(c.g.B)+(v*i),s:c.g.N+(A*i),D:v,I:A})}c.1d(n);f Q=(i==(t-1))?q(){h.1l()}:\'\';n.R().1b(G).H({s:Y+\'Z\',r:14+\'Z\'},F,J,Q);l(C.1o){n.j(\'P\').w({r:1p+1w,s:1r+50});n.j(\'P\').1b(G+(F/2)).H({r:1p,s:1r},5O,\'5m\')}17{n.j(\'P\').w({r:1p,s:1r});n.j(\'P\').1b(G+(F/2)).2x(1w,0.5).2x(2H,1)}X++;l(X==1k){X=0;13++}}},6W:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'1O\':c.g.M;f F=1L/c.g.1f;c.1m();f t=E.K(c.g.B/(c.g.B/15));f v=E.K(c.g.B/t);f A=(c.g.N);1i(i=0;i<t;i++){f 14=(v*(i));f Y=0;f n=c.1x();n.w({r:c.g.B+1w,s:0,D:v,I:A});n.j(\'P\').w({r:-(v*i)});c.1d(n);f G=80*(i);f Q=(i==(t-1))?q(){h.1l()}:\'\';n.R().1b(G).H({s:Y,r:14},F,J);n.j(\'P\').1h().1b(G+1w).H({T:\'R\'},F+2H,J,Q)}},5g:q(C){f h=c;f C=$.1Q({},{1o:U},C||{});c.g.19=S;f J=(c.g.M==\'\')?\'4x\':c.g.M;f F=2H/c.g.1f;f 1j=c.k.j(\'.1a\').V(\'W\');c.1m();c.1V();c.k.j(\'.1a\').V({\'W\':c.g.1s});f 1u=E.K(c.g.B/(c.g.B/8));f 1k=E.K(c.g.N/(c.g.B/8));f t=1u*1k;f v=E.K(c.g.B/1u);f A=E.K(c.g.N/1k);f 1e=0;f 1g=0;f X=0;f 13=0;f 1H=c.g.B/16;1i(i=0;i<t;i++){1e=(i%2==0)?1e:-1e;1g=(i%2==0)?1g:-1g;f 1c=1e+(A*X);f 18=(1g+(v*13));f 1r=-(A*X);f 1p=-(v*13);f Y=1c-1H;f 14=18-1H;f n=c.1S(1j);n.w({r:18+\'Z\',s:1c+\'Z\',D:v,I:A});n.j(\'P\').w({r:1p,s:1r});c.1d(n);n.R();f G=50*i;l(C.1o){F=(2L*(h.3Q(2)+1))/c.g.1f;Y=1c;14=18;G=E.K(30*h.3Q(30))}l(C.1o&&i==(t-1)){F=2L*3;G=30*30}f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({T:\'1h\',s:Y+\'Z\',r:14+\'Z\'},F,J,Q);X++;l(X==1k){X=0;13++}}},6X:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'1O\':c.g.M;f F=1L/c.g.1f;f 1j=c.k.j(\'.1a\').V(\'W\');c.1m();c.1V();c.k.j(\'.1a\').V({\'W\':c.g.1s});f 1u=E.K(c.g.B/(c.g.B/8));f 1k=E.K(c.g.N/(c.g.N/3));f t=1u*1k;f v=E.K(c.g.B/1u);f A=E.K(c.g.N/1k);f 1e=0;f 1g=0;f X=0;f 13=0;1i(i=0;i<t;i++){1e=(i%2==0)?1e:-1e;1g=(i%2==0)?1g:-1g;f 1c=1e+(A*X);f 18=(1g+(v*13));f 1r=-(A*X);f 1p=-(v*13);f Y=1c-50;f 14=18-50;f n=c.1S(1j);n.w({r:18+\'Z\',s:1c+\'Z\',D:v,I:A});n.j(\'P\').w({r:1p,s:1r});c.1d(n);n.R();f G=50*i;G=(i==(t-1))?(t*50):G;f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({T:\'1h\'},F,J,Q);X++;l(X==1k){X=0;13++}}},77:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'7h\':c.g.M;f F=2H/c.g.1f;f 1j=c.k.j(\'.1a\').V(\'W\');c.1m();c.1V();c.k.j(\'.1a\').V({\'W\':c.g.1s});f 1u=E.K(c.g.B/(c.g.B/8));f 1k=E.K(c.g.N/(c.g.N/3));f t=1u*1k;f v=E.K(c.g.B/1u);f A=E.K(c.g.N/1k);f 1e=0;f 1g=0;f X=0;f 13=0;f u=-1;1i(i=0;i<t;i++){l(13%2!=0){l(X==0){u=u+1k+1}u--}17{l(13>0&&X==0){u=u+2}u++}1e=(i%2==0)?1e:-1e;1g=(i%2==0)?1g:-1g;f 1c=1e+(A*X);f 18=(1g+(v*13));f 1r=-(A*X);f 1p=-(v*13);f Y=1c-50;f 14=18-50;f n=c.1S(1j);n.w({r:18+\'Z\',s:1c+\'Z\',D:v,I:A});n.j(\'P\').w({r:1p,s:1r});c.1d(n);n.R();f G=(50*i);f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({D:\'+=2A\',I:\'+=2A\',s:\'-=7i\',r:\'-=7i\',T:\'1h\'},F,J,Q);X++;l(X==1k){X=0;13++}}},6Y:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'3R\':c.g.M;f F=7j/c.g.1f;f 1j=c.k.j(\'.1a\').V(\'W\');c.1m();c.1V();c.k.j(\'.1a\').V({\'W\':c.g.1s});f 1u=E.K(c.g.B/(c.g.B/8));f 1k=E.K(c.g.N/(c.g.N/3));f t=1u*1k;f v=E.K(c.g.B/1u);f A=E.K(c.g.N/1k);f 1e=0;f 1g=0;f X=0;f 13=0;f 1H=E.K(c.g.B/6);1i(i=0;i<t;i++){1e=(i%2==0)?1e:-1e;1g=(i%2==0)?1g:-1g;f 1c=1e+(A*X);f 18=(1g+(v*13));f 1r=-(A*X);f 1p=-(v*13);f Y=1c-1H;f 14=18-1H;f n=c.1S(1j);n.w({r:18,s:1c,D:v,I:A});n.j(\'P\').w({r:1p,s:1r});c.1d(n);n.R();f G=50*i;f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({T:\'1h\',D:\'1h\',I:\'1h\',s:1c+(v*1.5),r:18+(A*1.5)},F,J,Q);X++;l(X==1k){X=0;13++}}},6Z:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'3a\':c.g.M;f F=3q/c.g.1f;c.1m();f t=E.K(c.g.B/(c.g.B/7));f v=(c.g.B);f A=E.K(c.g.N/t);1i(i=0;i<t;i++){f 14=(i%2==0?\'\':\'\')+v;f Y=(i*A);f n=c.1x();n.w({r:14+\'Z\',s:Y+\'Z\',D:v,I:A});n.j(\'P\').w({r:0,s:-Y});c.1d(n);f G=90*i;f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({T:\'R\',s:Y,r:0},F,J,Q)}},5h:q(C){f h=c;f C=$.1Q({},{1o:U},C||{});c.g.19=S;f J=(c.g.M==\'\')?\'1O\':c.g.M;f F=2L/c.g.1f;c.1m();f t=E.K(c.g.B/(c.g.B/10));f v=E.K(c.g.B/t);f A=(c.g.N);1i(i=0;i<t;i++){f 14=(v*(i));f Y=0;f n=c.1x();n.w({r:14,s:Y-50,D:v,I:A});n.j(\'P\').w({r:-(v*i),s:0});c.1d(n);l(C.1o){f 1o=c.3Q(t);f G=50*1o;G=(i==(t-1))?(50*t):G}17{f G=70*(i);F=F-(i*2)}f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({T:\'R\',s:Y+\'Z\',r:14+\'Z\'},F,J,Q)}},5i:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'7k\':c.g.M;f F=7j/c.g.1f;c.1m();f t=E.K(c.g.B/(c.g.B/10));f v=E.K(c.g.B/t);f A=c.g.N;1i(i=0;i<t;i++){f Y=0;f 1c=A;f 5o=v*i;f n=c.1x();n.w({r:5o,s:1c,I:A,D:v});n.j(\'P\').w({r:-(5o)});c.1d(n);f 1o=c.3Q(t);f G=30*1o;f Q=(i==(t-1))?q(){h.1l()}:\'\';n.R().1b(G).H({s:Y},F,J,Q)}},71:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'1O\':c.g.M;f F=7l/c.g.1f;c.1m();f v=c.g.B;f A=c.g.N;f t=2;1i(i=0;i<t;i++){f 1c=0;f 18=0;f n=c.1x();n.w({r:18,s:1c,D:v,I:A});c.1d(n);f Q=(i==(t-1))?q(){h.1l()}:\'\';n.H({T:\'R\',r:0,s:0},F,J,Q)}},72:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'1O\':c.g.M;f F=1L/c.g.1f;c.1m();f v=c.g.B;f A=c.g.N;f t=4;1i(i=0;i<t;i++){l(i==0){f 1c=\'-2A\';f 18=\'-2A\'}17 l(i==1){f 1c=\'-2A\';f 18=\'2A\'}17 l(i==2){f 1c=\'2A\';f 18=\'-2A\'}17 l(i==3){f 1c=\'2A\';f 18=\'2A\'}f n=c.1x();n.w({r:18,s:1c,D:v,I:A});c.1d(n);f Q=(i==(t-1))?q(){h.1l()}:\'\';n.H({T:\'R\',r:0,s:0},F,J,Q)}},73:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'1O\':c.g.M;f F=2L/c.g.1f;c.1m();f t=E.K(c.g.B/(c.g.B/16));f v=E.K(c.g.B/t);f A=c.g.N;1i(i=0;i<t;i++){f 14=(v*(i));f Y=0;f n=c.1x();n.w({r:14,s:Y-c.g.N,D:v,I:A});n.j(\'P\').w({r:-(v*i),s:0});c.1d(n);f G;l(i<=((t/2)-1)){G=7m-(i*1t)}17 l(i>((t/2)-1)){G=((i-(t/2))*1t)}G=G/2.5;f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({s:Y+\'Z\',r:14+\'Z\',T:\'R\'},F,J,Q)}},74:q(C){f h=c;f C=$.1Q({},{I:U},C||{});c.g.19=S;f J=(c.g.M==\'\')?\'1O\':c.g.M;f F=2L/c.g.1f;c.1m();f t=E.K(c.g.B/(c.g.B/16));f v=E.K(c.g.B/t);f A=c.g.N;1i(i=0;i<t;i++){f 14=(v*(i));f Y=0;f n=c.1x();n.w({r:14,s:Y,D:v,I:A});n.j(\'P\').w({r:-(v*i),s:0});c.1d(n);f G;l(!C.I){l(i<=((t/2)-1)){G=7m-(i*1t)}17 l(i>((t/2)-1)){G=((i-(t/2))*1t)}f Q=(i==(t-1))?q(){h.1l()}:\'\'}17{l(i<=((t/2)-1)){G=1t+(i*1t)}17 l(i>((t/2)-1)){G=(((t/2)-i)*1t)+(t*1w)}f Q=(i==(t/2))?q(){h.1l()}:\'\'}G=G/2.5;l(!C.I){n.1b(G).H({T:\'R\',s:Y+\'Z\',r:14+\'Z\',D:\'R\'},F,J,Q)}17{F=F+(i*2);f J=\'1O\';n.1b(G).H({T:\'R\',s:Y+\'Z\',r:14+\'Z\',I:\'R\'},F,J,Q)}}},5j:q(C){f h=c;f C=$.1Q({},{I:S,F:1L,1b:1w},C||{});c.g.19=S;f J=(c.g.M==\'\')?\'1O\':c.g.M;f F=C.F/c.g.1f;c.1m();f t=E.K(c.g.B/(c.g.B/16));f v=E.K(c.g.B/t);f A=c.g.N;1i(i=0;i<t;i++){f 14=(v*(i));f Y=0;f n=c.1x();n.w({r:14,s:Y,D:v,I:A});n.j(\'P\').w({r:-(v*i),s:0});c.1d(n);f G=C.1b*i;f Q=(i==(t-1))?q(){h.1l()}:\'\';l(!C.I){n.1b(G).H({T:\'R\',s:Y+\'Z\',r:14+\'Z\',D:\'R\'},F,J,Q)}17{f J=\'1O\';n.1b(G).H({T:\'R\',s:Y+\'Z\',r:14+\'Z\',I:\'R\'},F,J,Q)}}},3P:q(C){f h=c;f C=$.1Q({},{2p:\'s\',4y:\'4z\',t:7},C||{});c.g.19=S;f J=(c.g.M==\'\')?\'4A\':c.g.M;f F=91/c.g.1f;f 1j=c.k.j(\'.1a\').V(\'W\');c.1m();c.1V();c.k.j(\'.1a\').V({\'W\':c.g.1s});c.k.j(\'.1a\').1h();f t=C.t;1i(i=0;i<t;i++){2S(C.2p){3O:O\'s\':f v=E.K(c.g.B/t);f A=c.g.N;f 1W=0;f 1D=(v*i);f 3r=-A;f 2T=1D;f 3s=A;f 3t=1D;f 3u=0;f 3v=1D;f 1r=0;f 1p=-1D;L;O\'36\':f v=E.K(c.g.B/t);f A=c.g.N;f 1W=0;f 1D=(v*i);f 3r=A;f 2T=1D;f 3s=-A;f 3t=1D;f 3u=0;f 3v=1D;f 1r=0;f 1p=-1D;L;O\'2w\':f v=c.g.B;f A=E.K(c.g.N/t);f 1W=(A*i);f 1D=0;f 3r=1W;f 2T=v;f 3s=1W;f 3t=-2T;f 3u=1W;f 3v=0;f 1r=-1W;f 1p=0;L;O\'r\':f v=c.g.B;f A=E.K(c.g.N/t);f 1W=(A*i);f 1D=0;f 3r=1W;f 2T=-v;f 3s=1W;f 3t=-2T;f 3u=1W;f 3v=0;f 1r=-1W;f 1p=0;L}2S(C.4y){O\'7n\':3O:f G=(i%2==0)?0:5n;L;O\'1o\':f G=30*(E.1o()*30);L;O\'4z\':f G=i*1w;L}f n=c.1S(1j);n.j(\'P\').w({r:1p,s:1r});n.w({s:1W,r:1D,D:v,I:A});c.1d(n);n.R();n.1b(G).H({s:3r,r:2T},F,J);f 2d=c.1x();2d.j(\'P\').w({r:1p,s:1r});2d.w({s:3s,r:3t,D:v,I:A});c.1d(2d);2d.R();f Q=(i==(t-1))?q(){h.1l()}:\'\';2d.1b(G).H({s:3u,r:3v},F,J,Q)}},76:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'1O\':c.g.M;f F=3q/c.g.1f;c.1m();f 1u=E.K(c.g.B/(c.g.B/8));f 1k=E.K(c.g.N/(c.g.B/8));f t=1u*1k;f v=E.K(c.g.B/1u);f A=E.K(c.g.N/1k);f 1e=0;f 1g=0;f X=0;f 13=0;f 4B=2E 4i;f 3w=2E 4i;1i(i=0;i<t;i++){1e=(i%2==0)?1e:-1e;1g=(i%2==0)?1g:-1g;f 1c=1e+(A*X);f 18=(1g+(v*13));4B[i]=[1c,18];X++;l(X==1k){X=0;13++}}X=0;13=0;1i(i=0;i<t;i++){3w[i]=i};f 3w=h.7o(3w);1i(i=0;i<t;i++){1e=(i%2==0)?1e:-1e;1g=(i%2==0)?1g:-1g;f 1c=1e+(A*X);f 18=(1g+(v*13));f 1r=-(A*X);f 1p=-(v*13);f Y=1c;f 14=18;1c=4B[3w[i]][0];18=4B[3w[i]][1];f n=c.1x();n.w({r:18+\'Z\',s:1c+\'Z\',D:v,I:A});n.j(\'P\').w({r:1p,s:1r});c.1d(n);f G=30*(E.1o()*30);l(i==(t-1))G=30*30;f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({T:\'R\',s:Y+\'Z\',r:14+\'Z\'},F,J,Q);X++;l(X==1k){X=0;13++}}},78:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'3a\':c.g.M;f F=1L/c.g.1f;c.1m();f t=E.K(c.g.B/(c.g.B/10))*2;f v=E.K(c.g.B/t)*2;f A=(c.g.N)/2;f 13=0;1i(i=0;i<t;i++){4C=(i%2)==0?S:U;f 1I=(v*(13));f 1J=(4C)?-h.g.N:h.g.N;f 2e=(v*(13));f 1H=(4C)?0:(A);f 14=-(v*13);f Y=(4C)?0:-(A);f G=92*13;f n=c.1x();n.w({r:1I,s:1J,D:v,I:A});n.j(\'P\').w({r:14+(v/1.5),s:Y}).1b(G).H({r:14,s:Y},(F*1.9),\'1O\');c.1d(n);f Q=(i==(t-1))?q(){h.1l()}:\'\';n.R().1b(G).H({s:1H,r:2e},F,J,Q);l((i%2)!=0)13++}},79:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'3a\':c.g.M;f F=3q/c.g.1f;c.1m();f t=E.K(c.g.B/(c.g.B/10));f v=E.K(c.g.B/t);f A=(c.g.N);1i(i=0;i<t;i++){f 1I=(v*(i));f 1J=0;f 2e=(v*(i));f 1H=0;f 14=-(v*(i));f Y=0;f G=1w*i;f n=c.1x();n.w({r:1I,s:1J,D:v,I:A});n.j(\'P\').w({r:14+(v/1.5),s:Y}).1b(G).H({r:14,s:Y},(F*1.1),\'3R\');c.1d(n);f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({s:1H,r:2e,T:\'R\'},F,J,Q)}},7a:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'4x\':c.g.M;f F=1L/c.g.1f;c.1m();f t=E.K(c.g.B/(c.g.B/10));f 1A=1w;f 1E=E.5p(E.3x((c.g.B),2)+E.3x((c.g.N),2));f 1E=E.K(1E);1i(i=0;i<t;i++){f 1I=(h.g.B/2)-(1A/2);f 1J=(h.g.N/2)-(1A/2);f 2e=1I;f 1H=1J;f n=1B;n=c.4D({1N:h.g.1s,r:1I,s:1J,D:1A,I:1A,2u:{s:-1J,r:-1I}}).3S({\'4E-1E\':1E+\'Z\'});1A+=1w;c.1d(n);f G=70*i;f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({s:1H,r:2e,T:\'R\'},F,J,Q)}},7b:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'4x\':c.g.M;f F=1L/c.g.1f;f 1j=c.k.j(\'.1a\').V(\'W\');c.1m();c.1V();c.k.j(\'.1a\').V({\'W\':c.g.1s});f t=E.K(c.g.B/(c.g.B/10));f 1E=E.5p(E.3x((c.g.B),2)+E.3x((c.g.N),2));f 1E=E.K(1E);f 1A=1E;1i(i=0;i<t;i++){f 1I=(h.g.B/2)-(1A/2);f 1J=(h.g.N/2)-(1A/2);f 2e=1I;f 1H=1J;f n=1B;n=c.4D({1N:1j,r:1I,s:1J,D:1A,I:1A,2u:{s:-1J,r:-1I}}).3S({\'4E-1E\':1E+\'Z\'});1A-=1w;c.1d(n);n.R();f G=70*i;f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({s:1H,r:2e,T:\'1h\'},F,J,Q)}},7c:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'1O\':c.g.M;f F=1L/c.g.1f;f 1j=c.k.j(\'.1a\').V(\'W\');c.1m();c.1V();c.k.j(\'.1a\').V({\'W\':c.g.1s});f t=E.K(c.g.B/(c.g.B/10));f 1E=E.5p(E.3x((c.g.B),2)+E.3x((c.g.N),2));f 1E=E.K(1E);f 1A=1E;1i(i=0;i<t;i++){f 1I=(h.g.B/2)-(1A/2);f 1J=(h.g.N/2)-(1A/2);f 2e=1I;f 1H=1J;f n=1B;l($.93.94){n=c.1S(1j);n.w({r:1I,s:1J,D:1A,I:1A}).3S({\'4E-1E\':1E+\'Z\'});n.j(\'P\').w({r:-1I,s:-1J})}17{n=c.4D({1N:1j,r:1I,s:1J,D:1A,I:1A,2u:{s:-1J,r:-1I}}).3S({\'4E-1E\':1E+\'Z\'})}1A-=1w;c.1d(n);n.R();f G=1w*i;f Q=(i==(t-1))?q(){h.1l()}:\'\';f 7p=(i%2==0)?\'7q\':\'-7q\';n.1b(G).H({s:1H,r:2e,T:\'1h\',2f:7p},F,J,Q)}},7d:q(C){f h=c;c.g.19=S;f J=(c.g.M==\'\')?\'1O\':c.g.M;f F=2L/c.g.1f;c.1m();f 1u=E.K(c.g.B/(c.g.B/8));f 1k=E.K(c.g.N/(c.g.N/4));f t=1u*1k;f v=E.K(c.g.B/1u);f A=E.K(c.g.N/1k);f 95=U;f Y=0;f 14=0;f 3T=0;f 13=0;1i(i=0;i<t;i++){Y=A*3T;14=v*13;f G=30*(i);f n=c.1x();n.w({r:14,s:Y,D:v,I:A}).1h();n.j(\'P\').w({r:-14,s:-Y});c.1d(n);f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({D:\'R\',I:\'R\'},F,J,Q);3T++;l(3T==1k){3T=0;13++}}},5k:q(C){f h=c;f C=$.1Q({},{2p:\'s\'},C||{});c.g.19=S;f J=(c.g.M==\'\')?\'3R\':c.g.M;f F=2L/c.g.1f;f 1j=c.k.j(\'.1a\').V(\'W\');c.1m();c.1V();c.k.j(\'.1a\').V({\'W\':c.g.1s});f t=12;f v=E.K(c.g.B/t);f A=c.g.N;f 1H=(C.2p==\'s\')?-A:A;1i(i=0;i<t;i++){f 1c=0;f 18=(v*i);f 1r=0;f 1p=-(v*i);f n=c.1S(1j);n.w({r:18+\'Z\',s:1c+\'Z\',D:v,I:A});n.j(\'P\').w({r:1p,s:1r});c.1d(n);n.R();f G=70*i;f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({s:1H},F,J,Q)}},7e:q(C){f h=c;f C=$.1Q({},{1o:U},C||{});c.g.19=S;f J=(c.g.M==\'\')?\'5q\':c.g.M;f F=3q/c.g.1f;f 1j=c.k.j(\'.1a\').V(\'W\');c.1m();c.1V();c.k.j(\'.1a\').V({\'W\':c.g.1s});f 1u=E.K(c.g.B/(c.g.B/10));f t=1u;f v=E.K(c.g.B/1u);f A=c.g.N;1i(i=0;i<t;i++){f 1c=0;f 18=v*i;f 1r=0;f 1p=-(v*i);f 2e=\'+=\'+v;f n=c.1S(1j);n.w({r:0,s:0,D:v,I:A});n.j(\'P\').w({r:1p,s:1r});f 3U=c.1S(1j);3U.w({r:18+\'Z\',s:1c+\'Z\',D:v,I:A});3U.33(n);c.1d(3U);n.R();3U.R();f G=50*i;f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({r:2e},F,J,Q)}},5l:q(C){f h=c;f C=$.1Q({},{2p:\'s\',4y:\'4z\',t:7,J:\'5q\'},C||{});c.g.19=S;f J=(c.g.M==\'\')?C.J:c.g.M;f F=1L/c.g.1f;f 1j=c.k.j(\'.1a\').V(\'W\');c.1m();c.1V();c.k.j(\'.1a\').V({\'W\':c.g.1s});c.k.j(\'.1a\').1h();f t=C.t;1i(i=0;i<t;i++){f v=E.K(c.g.B/t);f A=c.g.N;f 1W=0;f 1D=(v*i);f 3r=-A;f 2T=1D+v;f 3s=A;f 3t=1D;f 3u=0;f 3v=1D;f 1r=0;f 1p=-1D;2S(C.4y){O\'7n\':3O:f G=(i%2==0)?0:5n;L;O\'1o\':f G=30*(E.1o()*30);L;O\'4z\':f G=i*1w;L}f n=c.1S(1j);n.j(\'P\').w({r:1p,s:0});n.w({s:0,r:0,D:v,I:A});f 2d=c.1x();2d.j(\'P\').w({r:1p,s:0});2d.w({s:0,r:-v,D:v,I:A});f 3V=c.1x();3V.33(\'\').1G(n).1G(2d);3V.w({s:0,r:1D,D:v,I:A});c.1d(3V);3V.R();n.R();2d.R();f Q=(i==(t-1))?q(){h.1l()}:\'\';n.1b(G).H({r:v},F,J);2d.1b(G).H({r:0},F,J,Q)}},7f:q(C){f h=c;f C=$.1Q({},{2B:\'3R\',2C:\'1O\'},C||{});c.g.19=S;f 2B=(c.g.M==\'\')?C.2B:c.g.M;f 2C=(c.g.M==\'\')?C.2C:c.g.M;f F=7l/c.g.1f;f 1j=c.k.j(\'.1a\').V(\'W\');c.1m();c.1V();c.k.j(\'.1a\').V({\'W\':c.g.1s});c.k.j(\'.1a\').1h();f t=2;f v=c.g.B;f A=E.K(c.g.N/t);f 1X=c.1S(1j),1Y=c.1S(1j);1X.j(\'P\').w({r:0,s:0});1X.w({s:0,r:0,D:v,I:A});1Y.j(\'P\').w({r:0,s:-A});1Y.w({s:A,r:0,D:v,I:A});f 2g=c.1x(),2h=c.1x();2g.j(\'P\').w({r:0,s:A});2g.w({s:0,r:0,D:v,I:A});2h.j(\'P\').w({r:0,s:-(A*t)});2h.w({s:A,r:0,D:v,I:A});c.1d(2g);c.1d(2h);c.1d(1X);c.1d(1Y);1X.R();1Y.R();2g.R();2h.R();f Q=q(){h.1l()};1X.j(\'P\').H({s:A},F,2B,q(){1X.23()});1Y.j(\'P\').H({s:-(A*t)},F,2B,q(){1Y.23()});2g.j(\'P\').H({s:0},F,2C);2h.j(\'P\').H({s:-A},F,2C,Q)},7g:q(C){f h=c;f C=$.1Q({},{2B:\'4A\',2C:\'4A\'},C||{});c.g.19=S;f 2B=(c.g.M==\'\')?C.2B:c.g.M;f 2C=(c.g.M==\'\')?C.2C:c.g.M;f F=96/c.g.1f;f 1j=c.k.j(\'.1a\').V(\'W\');c.1m();c.1V();c.k.j(\'.1a\').V({\'W\':c.g.1s});c.k.j(\'.1a\').1h();f t=2;f v=c.g.B;f A=E.K(c.g.N/t);f 1X=c.1S(1j),1Y=c.1S(1j);1X.j(\'P\').w({r:0,s:0});1X.w({s:0,r:0,D:v,I:A});1Y.j(\'P\').w({r:0,s:-A});1Y.w({s:A,r:0,D:v,I:A});f 2g=c.1x(),2h=c.1x();2g.j(\'P\').w({r:0,s:0});2g.w({s:0,r:v,D:v,I:A});2h.j(\'P\').w({r:0,s:-A});2h.w({s:A,r:-v,D:v,I:A});c.1d(2g);c.1d(2h);c.1d(1X);c.1d(1Y);1X.R();1Y.R();2g.R();2h.R();f Q=q(){h.1l()};1X.H({r:-v},F,2B,q(){1X.23()});1Y.H({r:v},F,2B,q(){1Y.23()});2g.H({r:0},F,2C);2h.H({r:0},F,2C,Q)},1l:q(C){f h=c;c.k.j(\'.1a\').R();c.5c();c.g.19=U;c.k.j(\'.1a\').V({\'W\':c.g.1s});c.k.j(\'.1N a\').V({\'1P\':c.g.1T});l(!c.g.2W&&!c.g.2t&&!c.g.3f){c.2Z=3M(q(){h.3W()},c.g.2F)}h.3L()},3W:q(){c.2z(S);c.k.j(\'.n\').23();l(!c.g.2t&&!c.g.3f)c.4w()},1m:q(){l($.6i(c.g.4U))c.g.4U(c.g.1y,c);c.7r();c.7s();c.7t();c.7u()},7r:q(){f 7v=c.g.1n[c.g.1y][0];f 7w=c.g.1n[c.g.1y][1];f 7x=c.g.1n[c.g.1y][3];f 7y=c.g.1n[c.g.1y][4];c.g.1s=7v;c.g.1T=7w;c.g.3c=7x;c.g.46=7y},7s:q(){f h=c;c.k.j(\'.32\').H(h.g.3D,1L).58(\'32\');$(\'#53\'+(c.g.1y+1)+\'54\'+h.2N).H(h.g.4a,3q).3I(\'32\')},7u:q(){c.g.1y++;l(c.g.1y==c.g.1n.1z){c.g.1y=0}},1x:q(){l(c.g.1T!=\'#\'){f 26=$(\'<a 1P="\'+c.g.1T+\'"><P W="\'+c.g.1s+\'" /></a>\')}17{f 26=$(\'<P W="\'+c.g.1s+\'" />\')}26=c.4v(26);f n=$(\'<1q 1v="n"></1q>\');n.1G(26);11 n},1S:q(1j){l(c.g.1T!=\'#\'){f 26=$(\'<a 1P="\'+c.g.1T+\'"><P W="\'+1j+\'" /></a>\')}17{f 26=$(\'<P W="\'+1j+\'" />\')}26=c.4v(26);f n=$(\'<1q 1v="n"></1q>\');n.1G(26);11 n},4v:q(26){l(c.g.4b){26.j(\'P\').I(c.g.N)}11 26},1d:q(n){c.k.j(\'.4f\').1G(n)},5R:q(J){f 7z=[\'4x\',\'1O\',\'3R\',\'97\',\'99\',\'9a\',\'9b\',\'9c\',\'9d\',\'9e\',\'9f\',\'9g\',\'9h\',\'67\',\'9i\',\'9j\',\'3a\',\'4A\',\'9k\',\'5q\',\'9l\',\'9m\',\'7k\',\'9n\',\'7h\',\'5m\',\'9o\',\'9p\',\'9q\',\'9r\',];l(4F.9s(J,7z)>0){11 J}17{11\'\'}},3Q:q(i){11 E.6j(E.1o()*i)},5b:q(){c.k.j(\'.2Q\').33(c.g.3c)},5c:q(){f h=c;l(c.g.3c!=24&&c.g.3c!=\'\'&&h.g.2s){h.k.j(\'.2Q\').9t(2L)}},7t:q(){f h=c;c.k.j(\'.2Q\').9u(1t,q(){h.5b()})},6h:q(){f h=c;f 1Z=h.g.1Z;f 2G=h.g.2G;f 2O=h.g.2O;h.k.61(q(){l(h.g.3h)h.g.2W=S;l(!h.g.3g){h.4G()}l(h.g.2m){l(h.g.44){h.k.j(\'.1C\').R().w({T:0}).H({T:1Z},2G)}l(h.g.45){h.k.j(\'.2b\').R().w({T:0}).H({T:1Z},2G);h.k.j(\'.21\').R().w({T:0}).H({T:1Z},2G)}l(h.g.2I&&!h.g.2X){h.k.j(\'.28\').1M().R().w({T:0}).H({T:1Z},1t)}l(h.g.2Y){h.k.j(\'.2q\').1M().R().w({T:0}).H({T:1Z},1t)}}h.2z(S);l(h.g.2I&&!h.g.2X&&!h.g.2m){h.k.j(\'.28\').1M().H({T:1},1t)}l(h.g.2Y&&!h.g.2m){h.k.j(\'.2q\').1M().H({T:1},1t)}},q(){l(h.g.3h)h.g.2W=U;l(h.g.2a==0&&!h.g.19&&!h.g.2t){h.3L()}17 l(!h.g.2t){h.3X()}l(h.g.2m){l(h.g.44){h.k.j(\'.1C\').3o("29",[]).R().w({T:1Z}).H({T:0},2O)}l(h.g.45){h.k.j(\'.2b\').3o("29",[]).R().w({T:1Z}).H({T:0},2O);h.k.j(\'.21\').3o("29",[]).R().w({T:1Z}).H({T:0},2O)}l(h.g.2I&&!h.g.2X){h.k.j(\'.28\').1M().w({T:1Z}).H({T:0},1t)}l(h.g.2Y){h.k.j(\'.2q\').1M().w({T:1Z}).H({T:0},1t)}}h.2z(S);l(!h.g.19&&h.g.1n.1z>1){h.2Z=3M(q(){h.3W()},h.g.2F-h.g.2a);h.k.j(\'.1a\').V({\'W\':h.g.1s});h.k.j(\'.1N a\').V({\'1P\':h.g.1T})}l(h.g.2I&&!h.g.2X&&!h.g.2m){h.k.j(\'.28\').1M().H({T:0.3},1t)}l(h.g.2Y&&!h.g.2m){h.k.j(\'.2q\').1M().H({T:0.3},1t)}})},2z:q(9v){f h=c;9w(h.2Z)},1V:q(){l(c.g.1T!=\'#\'){c.k.j(\'.1N a\').V({\'1P\':c.g.1T,\'2o\':c.g.46})}17{c.k.j(\'.1N a\').9x(\'1P\')}},2m:q(){c.k.j(\'.1C\').1h();c.k.j(\'.2b\').1h();c.k.j(\'.21\').1h();c.k.j(\'.2Q\').1h();c.k.j(\'.28\').1h();c.k.j(\'.2q\').1h()},68:q(){f h=c;f 28=$(\'<a 1P="#" 1v="28">2I</a>\');h.k.1G(28);f 2M=(h.g.B-28.D())/2;f 3y=0;l(h.g.2Y)2M-=25;l(h.g.4X==h.g.4W)3y=28.D()+5;f 2i={r:2M};2S(h.g.4W){O\'7A\':2i={r:5+3y,s:30};L;O\'7B\':2i={2w:5+3y,s:30};L;O\'7C\':2i={r:5+3y,36:5,s:\'35\'};L;O\'7D\':2i={2w:5+3y,36:5,s:\'35\'};L}28.w(2i).H({T:0.3},h.g.2G);$(5r).9y(q(e){f 7E=(e.3z?e.3z:e.9z);l(7E==27)$(\'#4H\').5s(\'2K\')});h.k.j(\'.28\').2K(q(){h.g.2X=S;$(c).1M().H({T:0},h.g.2O);f 1q=$(\'<1q 4k="4H"></1q>\').I($(5r).I()).1h().2x(h.g.2G,0.98);f 5t=$(\'.k\').3m().s;f 2M=$(\'.k\').3m().r;f 7F=(($(31).I()-$(\'.k\').I())/2)+$(5r).9A();f 7G=($(31).D()-$(\'.k\').D())/2;h.k.7H(\'<1q 4k="4I"></1q>\');$(\'51\').7I(1q);$(\'51\').7I(h.k);h.k.w({\'s\':5t,\'r\':2M,\'2u\':\'4Z\',\'z-5N\':9B}).H({\'s\':7F,\'r\':7G},9C,\'3a\');$(\'#4I\').D($(\'.k\').D()).I($(\'.k\').I()).w({\'4t\':\'4J\'}).2x(2H,0.3);$(\'#4H\').2K(q(){l($(c).9D(\'7J\'))11 U;h.g.2X=U;$(c).3I(\'7J\');$(\'#4I\').7H($(\'.k\'));l(!h.g.2m)h.k.j(\'.28\').H({T:0.3},1t);h.k.1M().H({\'s\':5t,\'r\':2M},2H,\'3a\',q(){$(c).w({\'2u\':\'9E\',\'s\':0,\'r\':0});$(\'#4I\').23()});$(\'#4H\').2x(h.g.2O,0,q(){$(c).23()});11 U});11 U})},69:q(){f h=c;f 2q=$(\'<a 1P="#" 1v="2q">7K</a>\');h.k.1G(2q);f 2M=(h.g.B-2q.D())/2;l(h.g.2I)2M+=25;f 2i={r:2M};2S(h.g.4X){O\'7A\':2i={r:5,s:30};L;O\'7B\':2i={2w:5,s:30};L;O\'7C\':2i={r:5,36:5,s:\'35\'};L;O\'7D\':2i={2w:5,36:5,s:\'35\'};L}2q.w(2i).H({T:0.3},h.g.2G);2q.2K(q(){l(!h.g.2t){$(c).33(\'9F\');$(c).2x(1w,0.5).2x(1w,1);$(c).3I(\'7L\');h.4G();h.g.2t=S;h.2z(S)}17{l(!h.g.19&&!h.k.j(\'.1F\').5Q(\':9G\')){h.g.2a=0}17{h.3X()}l(!h.g.1F)h.3X();h.g.2t=U;$(c).33(\'7K\');$(c).2x(1w,0.5).2x(1w,1);$(c).58(\'7L\');l(!h.g.3h){h.2z(S);l(!h.g.19&&h.g.1n.1z>1){h.2Z=3M(q(){h.3W()},h.g.2F-h.g.2a);h.k.j(\'.1a\').V({\'W\':h.g.1s});h.k.j(\'.1N a\').V({\'1P\':h.g.1T})}}}11 U})},5u:q(3H){f 4g=0,5v;1i(5v 7M 3H){l(3H.9H(5v))4g++}11 4g},6a:q(){f h=c;f 1F=$(\'<1q 1v="1F"></1q>\');h.k.1G(1F);l(h.5u(h.g.2n)==0){l(3n(1F.w(\'D\'))>0){h.g.2n.D=3n(1F.w(\'D\'))}17{h.g.2n={D:h.g.B,I:5}}}l(h.5u(h.g.2n)>0&&h.g.2n.D==24){h.g.2n.D=h.g.B}1F.w(h.g.2n).1h()},7N:q(){f h=c;l(h.g.2W||h.g.2t||h.g.3f||!h.g.1F)11 U;h.k.j(\'.1F\').1h().7O().D(h.g.2n.D).H({D:\'R\'},h.g.2F,\'7P\')},5e:q(){f h=c;l(!h.g.19){h.k.j(\'.1F\').1M()}},7Q:q(){f h=c;l(h.g.2W||h.g.2t||!h.g.1F)11 U;h.k.j(\'.1F\').7O().H({D:h.g.2n.D},(h.g.2F-h.g.2a),\'7P\')},6T:q(){f h=c;l(!h.g.1F)11 U;h.k.j(\'.1F\').1M().9I(2H,q(){$(c).D(h.g.2n.D)})},3L:q(){f h=c;h.g.3g=U;f 3A=2E 5w();h.g.2a=0;h.g.4d=3A.5x();h.7N()},4G:q(){f h=c;l(h.g.3g)11 U;h.g.3g=S;f 3A=2E 5w();h.g.2a+=3A.5x()-h.g.4d;h.5e()},3X:q(){f h=c;h.g.3g=U;f 3A=2E 5w();h.g.4d=3A.5x();h.7Q()},6b:q(){f h=c;$(31).9J(q(e){l(e.3z==39||e.3z==40){h.k.j(\'.21\').5s(\'2K\')}17 l(e.3z==37||e.3z==38){h.k.j(\'.2b\').5s(\'2K\')}})},4D:q(C){f n=$(\'<1q 1v="n"></1q>\');n.w({\'r\':C.r,\'s\':C.s,\'D\':C.D,\'I\':C.I,\'4t-1N\':\'5T(\'+C.1N+\')\',\'4t-2u\':C.2u.r+\'Z \'+C.2u.s+\'Z\'});11 n},7o:q(3Y){f h=c;f 4K=2E 4i();f 4L;5y(3Y.1z>0){4L=h.7R(0,3Y.1z-1);4K[4K.1z]=3Y[4L];3Y.9K(4L,1)}11 4K},7R:q(5z,7S){f 4M;9L 4M=E.1o();5y(4M==1);11(4M*(7S-5z+1)+5z)|0},6g:q(){f h=c;$(31).4o(\'9M\',q(){h.g.3f=S;h.4G();h.2z(S)});$(31).4o(\'2I\',q(){l(h.g.1n.1z>1){h.g.3f=U;l(h.g.2a==0){h.3L()}17{h.3X()}l(h.g.2a<=h.g.2F){h.2z(S);h.2Z=3M(q(){h.3W()},h.g.2F-h.g.2a);h.k.j(\'.1a\').V({\'W\':h.g.1s});h.k.j(\'.1N a\').V({\'1P\':h.g.1T})}}})}});$.2l.3S=q(3B){f w={};f 5A=[\'9N\',\'9O\',\'o\',\'9P\'];1i(f 2r 7M 3B){1i(f i=0;i<5A.1z;i++)w[\'-\'+5A[i]+\'-\'+2r]=3B[2r];w[2r]=3B[2r]}c.w(w);11 c};f 3Z=\'9Q\';$.2l.2f=q(2U){f 2c=$(c).w(\'1K\')||\'4J\';l(2j 2U==\'24\'){l(2c){f m=2c.4N(/2f\\(([^)]+)\\)/);l(m&&m[1]){11 m[1]}}11 0}f m=2U.7T().4N(/^(-?\\d+(\\.\\d+)?)(.+)?$/);l(m){l(m[3])3Z=m[3];$(c).w(\'1K\',2c.7U(/4J|2f\\([^)]*\\)/,\'\')+\'2f(\'+m[1]+3Z+\')\')}11 c};$.2l.2V=q(2U,4r,C){f 2c=$(c).w(\'1K\');l(2j 2U==\'24\'){l(2c){f m=2c.4N(/2V\\(([^)]+)\\)/);l(m&&m[1]){11 m[1]}}11 1}$(c).w(\'1K\',2c.7U(/4J|2V\\([^)]*\\)/,\'\')+\'2V(\'+2U+\')\');11 c};f 7V=$.29.4Y.7W;$.29.4Y.7W=q(){l(c.2r==\'2f\'){11 3i($(c.4O).2f())}17 l(c.2r==\'2V\'){11 3i($(c.4O).2V())}11 7V.5B(c,5C)};$.29.7X.2f=q(29){$(29.4O).2f(29.7Y+3Z)};$.29.7X.2V=q(29){$(29.4O).2V(29.7Y)};f 7Z=$.2l.H;$.2l.H=q(2r){l(2j 2r[\'2f\']!=\'24\'){f m=2r[\'2f\'].7T().4N(/^(([+-]=)?(-?\\d+(\\.\\d+)?))(.+)?$/);l(m&&m[5]){3Z=m[5]}2r[\'2f\']=m[1]}11 7Z.5B(c,5C)};q 81(82){f 83=[\'1K\',\'9R\',\'9S\',\'9T\',\'9U\'];f p;5y(p=83.9V()){l(2j 82.2c[p]!=\'24\'){11 p}}11\'1K\'};f 2D=1B;f 84=$.2l.w;$.2l.w=q(2k,2U){l(2D===1B){l(2j $.85!=\'24\'){2D=$.85}17 l(2j $.3B!=\'24\'){2D=$.3B}17{2D={}}}l(2j 2D[\'1K\']==\'24\'&&(2k==\'1K\'||(2j 2k==\'86\'&&2j 2k[\'1K\']!=\'24\'))){2D[\'1K\']=81(c.87(0))}l(2D[\'1K\']!=\'1K\'){l(2k==\'1K\'){2k=2D[\'1K\'];l(2j 2U==\'24\'&&4F.2c){11 4F.2c(c.87(0),2k)}}17 l(2j 2k==\'86\'&&2j 2k[\'1K\']!=\'24\'){2k[2D[\'1K\']]=2k[\'1K\'];9W 2k[\'1K\']}}11 84.5B(c,5C)}})(4F);',62,617,'||||||||||||this|||var|settings|self||find|box_skitter|if||box_clone|||function|left|top|total||width_box|css||||height_box|width_skitter|options|width|Math|time_animate|delay_time|animate|height|easing|ceil|break|easing_default|height_skitter|case|img|callback|show|true|opacity|false|attr|src|col_t|_btop|px||return||col|_bleft|||else|_vleft|is_animating|image_main|delay|_vtop|addBoxClone|init_top|velocity|init_left|hide|for|image_old|division_h|finishAnimation|setActualLevel|images_links|random|_vleft_image|div|_vtop_image|image_atual|200|division_w|class|100|getBoxClone|image_i|length|size_box|null|info_slide|_ileftc|radius|progressbar|append|_ftop|_ileft|_itop|transform|500|stop|image|easeOutQuad|href|extend|class_info|getBoxCloneImgOld|link_atual|image_number|setLinkAtual|_itopc|box_clone1|box_clone2|opacity_elements||next_button|animation_type|remove|undefined||img_clone||focus_button|fx|elapsedTime|prev_button|style|box_clone_next|_fleft|rotate|box_clone_next1|box_clone_next2|cssPosition|typeof|arg|fn|hideTools|progressbar_css|target|direction|play_pause_button|prop|label|is_paused|position|ul|right|fadeTo|loading|clearTimer|100px|easing_old|easing_new|_propsObj|new|interval|interval_in_elements|300|focus|info_slide_thumb|click|400|_left|number_skitter|interval_out_elements|span|label_skitter|link|switch|_fleftc|val|scale|is_hover_box_skitter|foucs_active|controls|timer||window|image_number_select|html|new_x|auto|bottom||||easeOutExpo|sk|label_atual|xml|preview|is_blur|is_paused_time|stop_over|parseFloat|rel|text|li|offset|parseInt|queue|_i_animation|700|_ftopc|_itopn|_ileftn|_ftopn|_fleftn|spread|pow|_space|keyCode|date|props|each|animateNumberOut|dots|width_label|auto_play|obj|addClass|w_info_slide_thumb|fadeIn|startTime|setTimeout|animations_functions|default|animationDirection|getRandom|easeInOutQuad|css3|line|box_clone_main|box_clone_container|completeMove|resumeTime|arrayOrigem|rotateUnits||skitter|animation||numbers|navigation|target_atual|random_ia|thumbs|color|animateNumberActive|fullscreen|center|timeStart|with_animations|container_skitter|size|initial_select_class|Array|dimension_thumb|id|width_info_slide|width_value|jumpToImage|bind|imageNumber|preview_slide|duration|image_loading|background|img_link|resizeImage|nextImage|easeInQuad|delay_type|sequence|easeInOutExpo|order|mod|getBoxCloneBackground|border|jQuery|pauseTime|overlay_skitter|mark_position|none|arrayDestino|indice|numRandom|match|elem|_self|backgroundColor|fff|animateNumberOver|onLoad|imageSwitched|numbers_align|focus_position|controls_position|prototype|absolute||body|addImageLink|image_n_|_|width_image|x_value|info_slide_dots|removeClass|mouseover|init_pause|setValueBoxText|showBoxText|mouseOverInit|pauseProgressBar|animationCube|animationCubeStop|animationShowBars|animationTube|animationBlindDimension|animationDirectionBars|animationSwapBars|easeOutBack|150|vleft|sqrt|easeOutCirc|document|trigger|_top|objectSize|key|Date|getTime|while|valorIni|prefixes|apply|arguments|skitters|push|defaults|show_randomly|enable_navigation_keys|mouseOverButton|mouseOutButton|structure|number|setup|index|1000|or|is|getEasing|type|url|container_thumbs|copy_info_slide|y_value|novo_width|15px|sort|mouseleave|hover|width_preview_ul|_left_info|_left_image|_left_preview|_left_ul|easeOutSine|focusSkitter|setControls|addProgressBar|enableNavigationKeys|loadImages|self_il|start|images|windowFocusOut|stopOnMouseOver|isFunction|floor|cube|cubeRandom|block|cubeStop|cubeStopRandom|cubeHide|cubeSize|horizontal|showBars|showBarsRandom|tube|fade|fadeFour|paralell|blind|blindHeight|blindWidth|directionTop|directionBottom|directionRight|directionLeft|cubeSpread|glassCube|glassBlock|circles|circlesInside|circlesRotate|cubeShow|upBars|downBars|hideBars|swapBars|swapBarsBack|swapBlocks|cut|hideProgressBar|random_id|total_with_animations|animationBlock|animationCubeHide|animationCubeSize|animationHorizontal||animationFade|animationFadeFour|animationParalell|animationBlind||animationCubeSpread|animationCubeJelly|animationGlassCube|animationGlassBlock|animationCircles|animationCirclesInside|animationCirclesRotate|animationCubeShow|animationHideBars|animationSwapBlocks|animationCut|easeInBack|20px|600|easeOutElastic|800|1400|zebra|shuffleArray|_rotate|20deg|setImageLink|addClassNumber|hideBoxText|increasingImage|name_image|link_image|label_image|target_link|easing_accepts|leftTop|rightTop|leftBottom|rightBottom|code|_topFinal|_leftFinal|before|prepend|finish_overlay_skitter|pause|play_button|in|startProgressBar|dequeue|linear|resumeProgressBar|randomUnique|valorFim|toString|replace|curProxied|cur|step|now|animateProxied||getTransformProperty|element|properties|proxied|cssProps|object|get|data|skitter_number|2500|time_interval|333|000|cc3333|max_number_height|prev|next|overflown|hidden|console|warn|Width|Skitter|Slideshow|ajax|GET|async|dataType|success|slide|json|label_text|clone|outerWidth|mousemove|pageX|pageY|scroll_thumbs|box_scroll_thumbs|5px|0px|eq|mouseenter|image_current_preview|preview_slide_current|Loading|9999em|Image|load|error|white|black|Error|One|more|were|not|found|1500|randomSmart|cubeJelly||1200|120|browser|mozilla|last|900|easeInCubic||easeOutCubic|easeInOutCubic|easeInQuart|easeOutQuart|easeInOutQuart|easeInQuint|easeOutQuint|easeInOutQuint|easeInSine|easeInOutSine|easeInExpo|easeInCirc|easeInOutCirc|easeInElastic|easeInOutElastic|easeInOutBack|easeInBounce|easeOutBounce|easeInOutBounce|inArray|slideDown|slideUp|force|clearInterval|removeAttr|keypress|which|scrollTop|9999|2000|hasClass|relative|play|visible|hasOwnProperty|fadeOut|keydown|splice|do|blur|moz|ms|webkit|deg|WebkitTransform|msTransform|MozTransform|OTransform|shift|delete'.split('|'),0,{}))
|
skin/frontend/default/default/bannernext/skitter_slideshow/js/sexy-bookmarks-public.js
ADDED
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
click handler for SexyBookmarks
|
3 |
+
Credit: Phong Thai Cao - http://www.JavaScriptBank.com
|
4 |
+
Please keep this creadit when you use this code
|
5 |
+
*/
|
6 |
+
jQuery(document).ready(function() {
|
7 |
+
|
8 |
+
// xhtml 1.0 strict way of using target _blank
|
9 |
+
jQuery('.sexy-bookmarks a.external').attr("target", "_blank");
|
10 |
+
|
11 |
+
// this block sets the auto vertical expand when there are more than
|
12 |
+
// one row of bookmarks.
|
13 |
+
var sexyBaseHeight=jQuery('.sexy-bookmarks').height();
|
14 |
+
var sexyFullHeight=jQuery('.sexy-bookmarks ul.socials').height();
|
15 |
+
if (sexyFullHeight>sexyBaseHeight) {
|
16 |
+
jQuery('.sexy-bookmarks-expand').hover(
|
17 |
+
function() {
|
18 |
+
jQuery(this).animate({
|
19 |
+
height: sexyFullHeight+'px'
|
20 |
+
}, {duration: 400, queue: false});
|
21 |
+
},
|
22 |
+
function() {
|
23 |
+
jQuery(this).animate({
|
24 |
+
height: sexyBaseHeight+'px'
|
25 |
+
}, {duration: 400, queue: false});
|
26 |
+
}
|
27 |
+
);
|
28 |
+
}
|
29 |
+
// autocentering
|
30 |
+
if (jQuery('.sexy-bookmarks-center') || jQuery('.sexy-bookmarks-spaced')) {
|
31 |
+
var sexyFullWidth=jQuery('.sexy-bookmarks').width();
|
32 |
+
var sexyBookmarkWidth=jQuery('.sexy-bookmarks:first ul.socials li').width();
|
33 |
+
var sexyBookmarkCount=jQuery('.sexy-bookmarks:first ul.socials li').length;
|
34 |
+
var numPerRow=Math.floor(sexyFullWidth/sexyBookmarkWidth);
|
35 |
+
var sexyRowWidth=Math.min(numPerRow, sexyBookmarkCount)*sexyBookmarkWidth;
|
36 |
+
|
37 |
+
if (jQuery('.sexy-bookmarks-spaced').length>0) {
|
38 |
+
var sexyLeftMargin=Math.floor((sexyFullWidth-sexyRowWidth)/(Math.min(numPerRow, sexyBookmarkCount)+1));
|
39 |
+
jQuery('.sexy-bookmarks ul.socials li').css('margin-left', sexyLeftMargin+'px');
|
40 |
+
} else if (jQuery('.sexy-bookmarks-center'.length>0)) {
|
41 |
+
var sexyLeftMargin=(sexyFullWidth-sexyRowWidth)/2;
|
42 |
+
jQuery('.sexy-bookmarks-center').css('margin-left', sexyLeftMargin+'px');
|
43 |
+
}
|
44 |
+
|
45 |
+
}
|
46 |
+
|
47 |
+
/*
|
48 |
+
click handler for SexyBookmarks
|
49 |
+
Credit: Cao Phong - http://www.JavaScriptBank.com
|
50 |
+
Please keep this creadit when you use this code
|
51 |
+
*/
|
52 |
+
jQuery('.sexy-bookmarks a.external').click(function() {
|
53 |
+
var url = encodeURIComponent(window.location.href), desc = '';
|
54 |
+
if( jQuery('p.sexy-bookmarks-content').length ) {
|
55 |
+
desc = encodeURIComponent(jQuery('p.sexy-bookmarks-content').text());
|
56 |
+
}
|
57 |
+
switch(this.parentNode.className) {
|
58 |
+
case 'sexy-twittley':
|
59 |
+
this.href += '?title=' + document.title + '&url=' + url + '&desc=' + desc + '&pcat=Internet&tags=';
|
60 |
+
break;
|
61 |
+
case 'sexy-digg':
|
62 |
+
this.href += '?phase=2&title=' + document.title + '&url=' + url + '&desc=' + desc;
|
63 |
+
break;
|
64 |
+
case 'sexy-twitter':
|
65 |
+
this.href += '?status=RT+@thiago9:+' + document.title + '+-+' + url;
|
66 |
+
break;
|
67 |
+
case 'sexy-scriptstyle':
|
68 |
+
this.href += '?title=' + document.title + '&url=' + url;
|
69 |
+
break;
|
70 |
+
case 'sexy-reddit':
|
71 |
+
this.href += '?title=' + document.title + '&url=' + url;
|
72 |
+
break;
|
73 |
+
case 'sexy-delicious':
|
74 |
+
this.href += '?title=' + document.title + '&url=' + url;
|
75 |
+
break;
|
76 |
+
case 'sexy-stumbleupon':
|
77 |
+
this.href += '?title=' + document.title + '&url=' + url;
|
78 |
+
break;
|
79 |
+
case 'sexy-mixx':
|
80 |
+
this.href += '?title=' + document.title + '&page_url=' + url + '&desc=' + desc;
|
81 |
+
break;
|
82 |
+
case 'sexy-technorati':
|
83 |
+
this.href += '?add=' + url;
|
84 |
+
break;
|
85 |
+
case 'sexy-blinklist':
|
86 |
+
this.href += '?Action=Blink/addblink.php&Title=' + document.title + '&Url=' + url;
|
87 |
+
break;
|
88 |
+
case 'sexy-diigo':
|
89 |
+
this.href += '?title=' + document.title + '&url=' + url + '&desc=' + desc;
|
90 |
+
break;
|
91 |
+
case 'sexy-yahoobuzz':
|
92 |
+
this.href += '?submitHeadline=' + document.title + '&submitUrl=' + url + '&submitSummary=' + desc + '&submitCategory=science&submitAssetType=text';
|
93 |
+
break;
|
94 |
+
case 'sexy-myspace':
|
95 |
+
this.href += '?t=' + document.title + '&u=' + url;
|
96 |
+
break;
|
97 |
+
case 'sexy-facebook':
|
98 |
+
this.href += '?t=' + document.title + '&u=' + url;
|
99 |
+
break;
|
100 |
+
case 'sexy-designfloat':
|
101 |
+
this.href += '?title=' + document.title + '&url=' + url;
|
102 |
+
break;
|
103 |
+
case 'sexy-devmarks':
|
104 |
+
this.href += '?posttitle=' + document.title + '&posturl=' + url + '&posttext=' + desc;
|
105 |
+
break;
|
106 |
+
case 'sexy-newsvine':
|
107 |
+
this.href += '?h=' + document.title + '&u=' + url;
|
108 |
+
break;
|
109 |
+
case 'sexy-google':
|
110 |
+
this.href += '?op=add&title=' + document.title + '&bkmk=' + url;
|
111 |
+
break;
|
112 |
+
}
|
113 |
+
})
|
114 |
+
});
|
skin/frontend/default/default/bannernext/skitter_slideshow/multiple.html
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2 |
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br">
|
3 |
+
<head>
|
4 |
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
5 |
+
<title>Skitter - Slideshow for anytime!</title>
|
6 |
+
|
7 |
+
<meta name="description" content="Slideshow flexible with many options for customizations. This jQuery Slideshow is free!" />
|
8 |
+
<meta name="keywords" content="jquery slideshow, slides, slide, slideshow, gallery, images, effects, easing, transitions, jquery, plugin, gpl license, free, customizations, flexible" />
|
9 |
+
<meta name="author" content="Thiago S.F. - http://thiagosf.net" />
|
10 |
+
|
11 |
+
<link href='http://fonts.googleapis.com/css?family=Gloria+Hallelujah' rel='stylesheet' type='text/css'>
|
12 |
+
<link href='http://fonts.googleapis.com/css?family=Rosario' rel='stylesheet' type='text/css'>
|
13 |
+
|
14 |
+
<link rel="shortcut icon" href="images/favicon.ico">
|
15 |
+
<link href="css/styles.css" type="text/css" media="all" rel="stylesheet" />
|
16 |
+
<link href="css/skitter.styles.css" type="text/css" media="all" rel="stylesheet" />
|
17 |
+
<link href="css/highlight.black.css" type="text/css" media="all" rel="stylesheet" />
|
18 |
+
<link href="css/sexy-bookmarks-style.css" type="text/css" media="all" rel="stylesheet" />
|
19 |
+
|
20 |
+
<script src="js/jquery-1.6.3.min.js"></script>
|
21 |
+
<script src="js/jquery.easing.1.3.js"></script>
|
22 |
+
<script src="js/jquery.animate-colors-min.js"></script>
|
23 |
+
|
24 |
+
<script src="js/jquery.skitter.min.js"></script>
|
25 |
+
<script src="js/highlight.js"></script>
|
26 |
+
<script src="js/sexy-bookmarks-public.js"></script>
|
27 |
+
|
28 |
+
<script>
|
29 |
+
$(document).ready(function(){
|
30 |
+
|
31 |
+
$('.box_skitter_large').skitter({label: false, numbers: false});
|
32 |
+
$('.box_skitter_small').skitter({label: false, numbers: false, interval: 1000});
|
33 |
+
$('.box_skitter_medium').css({width: 500, height: 200}).skitter({show_randomly: true, navigation: false, dots: true, interval: 4000});
|
34 |
+
$('.box_skitter_normal').css({width: 400, height: 300}).skitter({animation: 'blind', interval: 2000, hideTools: true});
|
35 |
+
|
36 |
+
// Highlight
|
37 |
+
$('pre.code').highlight({source:1, zebra:1, indent:'space', list:'ol'});
|
38 |
+
|
39 |
+
});
|
40 |
+
</script>
|
41 |
+
</head>
|
42 |
+
<body>
|
43 |
+
<div id="page">
|
44 |
+
<div id="header">
|
45 |
+
|
46 |
+
<h1><a href="index.php">Skitter</a></h1>
|
47 |
+
<p>Slideshow for anytime!</p>
|
48 |
+
</div>
|
49 |
+
|
50 |
+
<div id="content">
|
51 |
+
<div class="border_box">
|
52 |
+
<div class="box_skitter box_skitter_large">
|
53 |
+
<ul>
|
54 |
+
<li><a href="#cubeRandom"><img src="images/002.jpg" class="cubeRandom" /></a><div class="label_text"><p>cubeRandom</p></div></li>
|
55 |
+
<li><a href="#block"><img src="images/003.jpg" class="block" /></a><div class="label_text"><p>block</p></div></li>
|
56 |
+
<li><a href="#cubeStop"><img src="images/004.jpg" class="cubeStop" /></a><div class="label_text"><p>cubeStop</p></div></li>
|
57 |
+
<li><a href="#cubeHide"><img src="images/005.jpg" class="cubeHide" /></a><div class="label_text"><p>cubeHide</p></div></li>
|
58 |
+
</ul>
|
59 |
+
</div>
|
60 |
+
</div>
|
61 |
+
<div style="clear:both;"></div>
|
62 |
+
<div class="border_box">
|
63 |
+
<div class="box_skitter box_skitter_small">
|
64 |
+
<ul>
|
65 |
+
<li><a href="#horizontal"><img src="images/007.jpg" class="horizontal" /></a><div class="label_text"><p>horizontal</p></div></li>
|
66 |
+
<li><a href="#showBars"><img src="images/008.jpg" class="showBars" /></a><div class="label_text"><p>showBars</p></div></li>
|
67 |
+
</ul>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
<div style="clear:both;"></div>
|
72 |
+
<div class="border_box" style="margin-bottom:45px;">
|
73 |
+
<div class="box_skitter box_skitter_medium">
|
74 |
+
<ul>
|
75 |
+
<li><a href="#fadeFour"><img src="images/012.jpg" class="fadeFour" /></a><div class="label_text"><p>fadeFour</p></div></li>
|
76 |
+
<li><a href="#paralell"><img src="images/013.jpg" class="paralell" /></a><div class="label_text"><p>paralell</p></div></li>
|
77 |
+
<li><a href="#blind"><img src="images/014.jpg" class="blind" /></a><div class="label_text"><p>blind</p></div></li>
|
78 |
+
</ul>
|
79 |
+
</div>
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
<div style="clear:both;"></div>
|
83 |
+
<div class="border_box">
|
84 |
+
<div class="box_skitter box_skitter_normal">
|
85 |
+
<ul>
|
86 |
+
<li><a href="#directionTop"><img src="images/017.jpg" class="directionTop" /></a><div class="label_text"><p>directionTop</p></div></li>
|
87 |
+
<li><a href="#directionBottom"><img src="images/018.jpg" class="directionBottom" /></a><div class="label_text"><p>directionBottom</p></div></li>
|
88 |
+
<li><a href="#directionRight"><img src="images/019.jpg" class="directionRight" /></a><div class="label_text"><p>directionRight</p></div></li>
|
89 |
+
<li><a href="#directionLeft"><img src="images/020.jpg" class="directionLeft" /></a><div class="label_text"><p>directionLeft</p></div></li>
|
90 |
+
<li><a href="#cubeStopRandom"><img src="images/021.jpg" class="cubeStopRandom" /></a><div class="label_text"><p>cubeStopRandom</p></div></li>
|
91 |
+
<li><a href="#cubeSpread"><img src="images/022.jpg" class="cubeSpread" /></a><div class="label_text"><p>cubeSpread</p></div></li>
|
92 |
+
</ul>
|
93 |
+
</div>
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
|
97 |
+
<div id="footer">
|
98 |
+
<p>Thiago S.F.</p>
|
99 |
+
<p><a href="http://thiagosf.net">thiagosf.net</a></p>
|
100 |
+
</div>
|
101 |
+
|
102 |
+
</div>
|
103 |
+
</body>
|
104 |
+
</html>
|
skin/frontend/default/default/bannernext/skitter_slideshow/xml/slides.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<skitter>
|
3 |
+
<slide>
|
4 |
+
<link>#directionTop</link>
|
5 |
+
<image type="directionTop">images/001.jpg</image>
|
6 |
+
<label><![CDATA[<p>directionTop</p>]]></label>
|
7 |
+
</slide>
|
8 |
+
<slide>
|
9 |
+
<link>#cubeSize</link>
|
10 |
+
<image type="cubeSize">images/002.jpg</image>
|
11 |
+
<label><![CDATA[<p>cubeSize</p>]]></label>
|
12 |
+
</slide>
|
13 |
+
<slide>
|
14 |
+
<link>#paralell</link>
|
15 |
+
<image type="paralell">images/003.jpg</image>
|
16 |
+
<label><![CDATA[<p>paralell</p>]]></label>
|
17 |
+
</slide>
|
18 |
+
</skitter>
|