Responsive_Owl_Slider - Version 1.0.0

Version Notes

Fully responsive banner slider built on OWL Carousel 2. 40+ Effects. Categorized banner management from Back-end

Download this release

Release Info

Developer Vsourz Digital
Extension Responsive_Owl_Slider
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

Files changed (55) hide show
  1. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Bannerslider/Renderer/Category.php +14 -0
  2. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Bannerslider/Renderer/Catimage.php +13 -0
  3. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Bannerslider/Renderer/Image.php +12 -0
  4. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Bannerslider/Renderer/Status.php +12 -0
  5. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Category/Edit.php +44 -0
  6. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Category/Edit/Form.php +20 -0
  7. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Category/Edit/Tabs.php +17 -0
  8. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Category/Edit/Tabs/Form.php +179 -0
  9. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Category/Grid.php +51 -0
  10. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Image/Edit.php +44 -0
  11. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Image/Edit/Form.php +20 -0
  12. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Image/Edit/Tabs.php +17 -0
  13. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Image/Edit/Tabs/Form.php +89 -0
  14. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Image/Grid.php +72 -0
  15. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Slide.php +11 -0
  16. app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Slider.php +11 -0
  17. app/code/community/Vsourz/Bannerslider/Block/Bannerslider.php +13 -0
  18. app/code/community/Vsourz/Bannerslider/Helper/Data.php +3 -0
  19. app/code/community/Vsourz/Bannerslider/Model/Align.php +13 -0
  20. app/code/community/Vsourz/Bannerslider/Model/Animationin.php +51 -0
  21. app/code/community/Vsourz/Bannerslider/Model/Animationout.php +51 -0
  22. app/code/community/Vsourz/Bannerslider/Model/Bannerslider.php +17 -0
  23. app/code/community/Vsourz/Bannerslider/Model/Categoryval.php +13 -0
  24. app/code/community/Vsourz/Bannerslider/Model/Imagecategory.php +7 -0
  25. app/code/community/Vsourz/Bannerslider/Model/Imagedetail.php +7 -0
  26. app/code/community/Vsourz/Bannerslider/Model/Resource/Imagecategory.php +6 -0
  27. app/code/community/Vsourz/Bannerslider/Model/Resource/Imagecategory/Collection.php +6 -0
  28. app/code/community/Vsourz/Bannerslider/Model/Resource/Imagedetail.php +6 -0
  29. app/code/community/Vsourz/Bannerslider/Model/Resource/Imagedetail/Collection.php +6 -0
  30. app/code/community/Vsourz/Bannerslider/controllers/Adminhtml/CategoryController.php +160 -0
  31. app/code/community/Vsourz/Bannerslider/controllers/Adminhtml/ImageController.php +155 -0
  32. app/code/community/Vsourz/Bannerslider/data/bannerslider_setup/data-install-0.1.0.php +10 -0
  33. app/code/community/Vsourz/Bannerslider/etc/adminhtml.xml +46 -0
  34. app/code/community/Vsourz/Bannerslider/etc/config.xml +95 -0
  35. app/code/community/Vsourz/Bannerslider/etc/system.xml +42 -0
  36. app/code/community/Vsourz/Bannerslider/sql/bannerslider_setup/mysql4-install-0.1.0.php +98 -0
  37. app/design/adminhtml/default/default/layout/bannerslider.xml +57 -0
  38. app/design/frontend/base/default/layout/bannerslider.xml +13 -0
  39. app/design/frontend/base/default/template/bannerslider/bannerslider.phtml +105 -0
  40. app/etc/modules/Vsourz_Bannerslider.xml +29 -0
  41. js/vsourz/bannerslider/arrow.gif +0 -0
  42. js/vsourz/bannerslider/cross.gif +0 -0
  43. js/vsourz/bannerslider/hs.png +0 -0
  44. js/vsourz/bannerslider/hv.png +0 -0
  45. js/vsourz/bannerslider/jscolor.js +1010 -0
  46. media/bannerslider/favicon.ico +0 -0
  47. package.xml +70 -0
  48. skin/frontend/base/default/css/bannerslider/animate.css +3272 -0
  49. skin/frontend/base/default/css/bannerslider/animate.min.css +1 -0
  50. skin/frontend/base/default/css/bannerslider/bannerslider.css +169 -0
  51. skin/frontend/base/default/css/bannerslider/owl.carousel.css +216 -0
  52. skin/frontend/base/default/js/bannerslider/jquery-1.10.2.min.js +3375 -0
  53. skin/frontend/base/default/js/bannerslider/no-conflict.js +0 -0
  54. skin/frontend/base/default/js/bannerslider/owl.banner.min.js +2 -0
  55. skin/frontend/base/default/js/bannerslider/owl.slider.js +3069 -0
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Bannerslider/Renderer/Category.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Bannerslider_Renderer_Category extends
3
+ Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
4
+ public function render(Varien_Object $row){
5
+ $value = $row->getData($this->getColumn()->getIndex());
6
+ $model = Mage::getModel('bannerslider/imagecategory');
7
+ $data = $model->load($value)->getData();
8
+ if(!$data){
9
+ return "Undefined";
10
+ }else{
11
+ return $data['slider_title'];
12
+ }
13
+ }
14
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Bannerslider/Renderer/Catimage.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Bannerslider_Renderer_Catimage extends
3
+ Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
4
+ {
5
+ public function render(Varien_Object $row){
6
+ $value = $row->getData($this->getColumn()->getIndex());
7
+ if($value == NULL){
8
+ return "No category image defined";
9
+ }else{
10
+ return '<img width="200" height="100" src="'.Mage::getBaseUrl('media').DS.$value . '" />';
11
+ }
12
+ }
13
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Bannerslider/Renderer/Image.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Bannerslider_Renderer_Image extends
3
+ Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
4
+ public function render(Varien_Object $row){
5
+ $value = $row->getData($this->getColumn()->getIndex());
6
+ if($value == NULL){
7
+ return "Image not inserted";
8
+ }else{
9
+ return '<img width="200" height="100" src="'.Mage::getBaseUrl('media').DS.$value . '" />';
10
+ }
11
+ }
12
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Bannerslider/Renderer/Status.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Bannerslider_Renderer_Status extends
3
+ Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
4
+ public function render(Varien_Object $row){
5
+ $value = $row->getData($this->getColumn()->getIndex());
6
+ if($value == 1){
7
+ return "Enabled";
8
+ }else{
9
+ return "Disabled";
10
+ }
11
+ }
12
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Category/Edit.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Category_Edit extends Mage_Adminhtml_Block_Widget_Form_Container {
3
+ public function __construct(){
4
+ parent::__construct();
5
+ $this->_objectId = 'catid';
6
+ $this->_blockGroup = 'bannerslider';
7
+ $this->_controller = 'adminhtml_category';
8
+ $this->_mode = 'edit';
9
+ $this->_updateButton('save', 'label', Mage::helper('bannerslider')->__('Save Category Slider'));
10
+ $this->_updateButton('delete', 'label', Mage::helper('bannerslider')->__('Delete'));
11
+ $this->_addButton('saveandcontinue', array(
12
+ 'label' => Mage::helper('bannerslider')->__('Save And Continue Edit'),
13
+ 'onclick' => 'saveAndContinueEdit()',
14
+ 'class' => 'save',
15
+ ), -100);
16
+
17
+ $this->_formScripts[] ="
18
+ function toggleEditor(){
19
+ if (tinyMCE.getInstanceById('form_content') == null) {
20
+ tinyMCE.execCommand('mceAddControl', false, 'edit_form');
21
+ } else {
22
+ tinyMCE.execCommand('mceRemoveControl', false, 'edit_form');
23
+ }
24
+ }
25
+ function saveAndContinueEdit(){
26
+ editForm.submit($('edit_form').action+'back/edit/');
27
+ }";
28
+ }
29
+ protected function _prepareLayout(){
30
+ parent::_prepareLayout();
31
+ if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {
32
+ $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);
33
+ $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
34
+ }
35
+ }
36
+ public function getHeaderText() {
37
+ if (Mage::registry('category_data') && Mage::registry('category_data')->getId()) {
38
+ return Mage::helper('bannerslider')->__('Edit Category Slider "%s"', $this->htmlEscape(Mage::registry('category_data')->getSliderTitle()));
39
+ } else {
40
+ return Mage::helper('bannerslider')->__('New Slider');
41
+ }
42
+ }
43
+
44
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Category/Edit/Form.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Category_Edit_Form extends Mage_Adminhtml_Block_Widget_Form{
3
+ protected function _prepareForm(){
4
+ if (Mage::registry('category_data')){
5
+ $data = Mage::registry('category_data')->getData();
6
+ }else{
7
+ $data = array();
8
+ }
9
+ $form = new Varien_Data_Form(array(
10
+ 'id' => 'edit_form',
11
+ 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
12
+ 'method' => 'post',
13
+ 'enctype' => 'multipart/form-data'
14
+ ));
15
+ $form->setUseContainer(true);
16
+ $this->setForm($form);
17
+ $form->setValues($data);
18
+ return parent::_prepareForm();
19
+ }
20
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Category/Edit/Tabs.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Category_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs {
3
+ public function __construct() {
4
+ parent::__construct();
5
+ $this->setId('category_tabs');
6
+ $this->setDestElementId('edit_form'); // this should be same as the form id in Form.php
7
+ $this->setTitle(Mage::helper('bannerslider')->__('Category Slider'));
8
+ }
9
+ protected function _beforeToHtml() {
10
+ $this->addTab('form_section', array(
11
+ 'label' => Mage::helper('bannerslider')->__('Category Slider Detail'),
12
+ 'title' => Mage::helper('bannerslider')->__('Category Slider Detail'),
13
+ 'content' => $this->getLayout()->createBlock('bannerslider/adminhtml_category_edit_tabs_form')->toHtml(),
14
+ ));
15
+ return parent::_beforeToHtml();
16
+ }
17
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Category/Edit/Tabs/Form.php ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Category_Edit_Tabs_Form extends Mage_Adminhtml_Block_Widget_Form{
3
+
4
+
5
+ protected function _prepareForm() {
6
+ if (Mage::registry('category_data')) {
7
+ $data = Mage::registry('category_data')->getData();
8
+ } else {
9
+ $data = array();
10
+ }
11
+ $form = new Varien_Data_Form();
12
+ $this->setForm($form);
13
+ $fieldset = $form->addFieldset('bannerslider_category', array('legend' => Mage::helper('bannerslider')->__('Caption Information')));
14
+
15
+ $wysiwygConfig = Mage::getSingleton('cms/wysiwyg_config')->getConfig();
16
+ $wysiwygConfig->addData(array('add_variables' => false,
17
+ 'add_widgets' => false,
18
+ 'add_images' => false,
19
+ 'directives_url' => Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg/directive'),
20
+ 'directives_url_quoted' => preg_quote(Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg/directive')),
21
+ 'widget_window_url' => Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/widget/index'),
22
+ 'files_browser_window_url' => Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg_images/index'),
23
+ 'files_browser_window_width' => (int) Mage::getConfig()->getNode('adminhtml/cms/browser/window_width'),
24
+ 'files_browser_window_height' => (int) Mage::getConfig()->getNode('adminhtml/cms/browser/window_height')
25
+ ));
26
+
27
+ $fieldset->addField('slider_title', 'text', array(
28
+ 'label' => Mage::helper('bannerslider')->__('Slider Title'),
29
+ 'class' => 'required-entry',
30
+ 'required' => true,
31
+ 'name' => 'slider_title',
32
+ ));
33
+
34
+ $fieldset->addField('status', 'select', array(
35
+ 'label' => Mage::helper('bannerslider')->__('Status'),
36
+ 'class' => 'required-entry',
37
+ 'required' => true,
38
+ 'name' => 'status',
39
+ 'value' => '0',
40
+ 'values' => array('0' => 'Disable','1' => 'Enable'),
41
+ 'disabled' => false,
42
+ 'readonly' => false,
43
+ ));
44
+
45
+ $fieldset->addField('display_all_slide_title', 'select', array(
46
+ 'label' => Mage::helper('bannerslider')->__('Display All Slide Title'),
47
+ 'class' => 'required-entry',
48
+ 'required' => true,
49
+ 'name' => 'display_all_slide_title',
50
+ 'value' => '0',
51
+ 'values' => array('0' => 'Yes','1' => 'No'),
52
+ 'disabled' => false,
53
+ 'readonly' => false,
54
+ 'note' => 'Select yes/no to display slide title in particular slider',
55
+ ));
56
+
57
+ $fieldset->addField('display_all_slide_description', 'select', array(
58
+ 'label' => Mage::helper('bannerslider')->__('Display All Slide Description'),
59
+ 'class' => 'required-entry',
60
+ 'required' => true,
61
+ 'name' => 'display_all_slide_description',
62
+ 'value' => '0',
63
+ 'values' => array('0' => 'Yes','1' => 'No'),
64
+ 'disabled' => false,
65
+ 'readonly' => false,
66
+ 'note' => 'Select yes/no to display slide description in particular slider',
67
+ ));
68
+
69
+ $fieldset->addField('animation_in', 'select', array(
70
+ 'label' => Mage::helper('bannerslider')->__('Animation In'),
71
+ 'class' => 'required-entry',
72
+ 'required' => true,
73
+ 'name' => 'animation_in',
74
+ 'values' => Mage::getModel('bannerslider/animationin')->getAnimationInVal(),
75
+ 'disabled' => false,
76
+ 'readonly' => false,
77
+ ));
78
+
79
+ $fieldset->addField('animation_out', 'select', array(
80
+ 'label' => Mage::helper('bannerslider')->__('Animation Out'),
81
+ 'class' => 'required-entry',
82
+ 'required' => true,
83
+ 'name' => 'animation_out',
84
+ 'values' => Mage::getModel('bannerslider/animationout')->getAnimationOutVal(),
85
+ 'disabled' => false,
86
+ 'readonly' => false,
87
+ ));
88
+
89
+ $fieldset->addField('navigation', 'select', array(
90
+ 'label' => Mage::helper('bannerslider')->__('Navigation'),
91
+ 'class' => 'required-entry',
92
+ 'required' => true,
93
+ 'name' => 'navigation',
94
+ 'value' => '0',
95
+ 'values' => array('0' => 'Yes','1' => 'No'),
96
+ 'disabled' => false,
97
+ 'readonly' => false,
98
+ 'note' => 'Enable slide navigation',
99
+ ));
100
+
101
+ $fieldset->addField('navigation_bg_color', 'text', array(
102
+ 'label' => Mage::helper('bannerslider')->__('Navigation Bg Color'),
103
+ 'class' => 'color',
104
+ 'name' => 'navigation_bg_color',
105
+ 'note' => 'Select Color',
106
+ ));
107
+
108
+ $fieldset->addField('navigation_bg_hover_color', 'text', array(
109
+ 'label' => Mage::helper('bannerslider')->__('Navigation Bg Hover Color'),
110
+ 'class' => 'color',
111
+ 'name' => 'navigation_bg_hover_color',
112
+ 'note' => 'Select Color',
113
+ ));
114
+ $fieldset->addField('navigation_arrow_color', 'text', array(
115
+ 'label' => Mage::helper('bannerslider')->__('Navigation Arrow Color'),
116
+ 'class' => 'color',
117
+ 'name' => 'navigation_arrow_color',
118
+ 'note' => 'Select Color',
119
+ ));
120
+ $fieldset->addField('navigation_arrow_hover_color', 'text', array(
121
+ 'label' => Mage::helper('bannerslider')->__('Navigation Arrow Hover Color'),
122
+ 'class' => 'color',
123
+ 'name' => 'navigation_arrow_hover_color',
124
+ 'note' => 'Select Color',
125
+ ));
126
+ $fieldset->addField('pagination', 'select', array(
127
+ 'label' => Mage::helper('bannerslider')->__('Pagination'),
128
+ 'class' => 'required-entry',
129
+ 'required' => true,
130
+ 'name' => 'pagination',
131
+ 'value' => '0',
132
+ 'values' => array('0' => 'Yes','1' => 'No'),
133
+ 'disabled' => false,
134
+ 'readonly' => false,
135
+ 'note' => 'Enable slide pagination',
136
+ ));
137
+
138
+ $fieldset->addField('pagination_bg_color', 'text', array(
139
+ 'label' => Mage::helper('bannerslider')->__('Pagination Bg Color'),
140
+ 'class' => 'color',
141
+ 'name' => 'pagination_bg_color',
142
+ 'note' => 'Select Color',
143
+ ));
144
+
145
+ $fieldset->addField('pagination_bg_hover_color', 'text', array(
146
+ 'label' => Mage::helper('bannerslider')->__('Pagination Bg Hover Color'),
147
+ 'class' => 'color',
148
+ 'name' => 'pagination_bg_hover_color',
149
+ 'note' => 'Select Color',
150
+ ));
151
+
152
+ $fieldset->addField('auto_play', 'text', array(
153
+ 'label' => Mage::helper('bannerslider')->__('Auto Play'),
154
+ 'name' => 'auto_play',
155
+ 'note' => 'Enter time in milliseconds, Enter 0 for false',
156
+ ));
157
+
158
+ $this->setChild('form_after', $this->getLayout()
159
+ ->createBlock('adminhtml/widget_form_element_dependence')
160
+ ->addFieldMap('navigation', 'navigation')
161
+ ->addFieldMap('pagination', 'pagination')
162
+ ->addFieldMap('navigation_bg_color', 'navigation_bg_color')
163
+ ->addFieldMap('navigation_bg_hover_color', 'navigation_bg_hover_color')
164
+ ->addFieldDependence('navigation_bg_color', 'navigation', 0)
165
+ ->addFieldDependence('navigation_bg_hover_color', 'navigation', 0)
166
+ ->addFieldMap('navigation_arrow_color', 'navigation_arrow_color')
167
+ ->addFieldMap('navigation_arrow_hover_color', 'navigation_arrow_hover_color')
168
+ ->addFieldDependence('navigation_arrow_color', 'navigation', 0)
169
+ ->addFieldDependence('navigation_arrow_hover_color', 'navigation', 0)
170
+ ->addFieldMap('pagination_bg_color', 'pagination_bg_color')
171
+ ->addFieldMap('pagination_bg_hover_color', 'pagination_bg_hover_color')
172
+ ->addFieldDependence('pagination_bg_color', 'pagination', 0)
173
+ ->addFieldDependence('pagination_bg_hover_color', 'pagination', 0)
174
+ );
175
+
176
+ $form->setValues($data);
177
+ return parent::_prepareForm();
178
+ }
179
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Category/Grid.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Category_Grid extends Mage_Adminhtml_Block_Widget_Grid{
3
+ public function __construct(){
4
+ parent::__construct();
5
+ $this->setDefaultFilter(array('chooser_is_active' => '1'));
6
+ $this->setId('category_grid');
7
+ $this->setDefaultSort('slider_id');
8
+ $this->setDefaultDir('ASC');
9
+ $this->setSaveParametersInSession(true);
10
+ }
11
+ protected function _prepareCollection(){
12
+ $collection = Mage::getModel('bannerslider/imagecategory')->getCollection();
13
+ $this->setCollection($collection);
14
+ return parent::_prepareCollection();
15
+ }
16
+ protected function _prepareColumns(){
17
+ $this->addColumn('slider_id', array(
18
+ 'header' => Mage::helper('bannerslider')->__('ID'),
19
+ 'align' => 'left',
20
+ 'width' => '1px',
21
+ 'index' => 'slider_id',
22
+ ));
23
+ $this->addColumn('slider_title', array(
24
+ 'header' => Mage::helper('bannerslider')->__('Slider Title'),
25
+ 'align' => 'left',
26
+ 'index' => 'slider_title',
27
+ ));
28
+ $this->addColumn('status', array(
29
+ 'header' => Mage::helper('bannerslider')->__('Status'),
30
+ 'align' => 'left',
31
+ 'width' => '1px',
32
+ 'index' => 'status',
33
+ 'renderer' => 'bannerslider/adminhtml_bannerslider_renderer_status',
34
+ ));
35
+ return parent::_prepareColumns();
36
+ }
37
+ protected function _prepareMassaction(){
38
+ $this->setMassactionIdField('slider_id');
39
+ $this->getMassactionBlock()->setFormFieldName('id');
40
+ $this->getMassactionBlock()->addItem('delete', array(
41
+ 'label'=> Mage::helper('bannerslider')->__('Delete'),
42
+ 'url' => $this->getUrl('*/*/massDelete', array('' => '')),
43
+ 'confirm' => Mage::helper('bannerslider')->__('Are you sure?')
44
+ ));
45
+ return $this;
46
+ }
47
+ public function getRowUrl($row) {
48
+ return $this->getUrl('*/*/edit', array('id' => $row->getId()));
49
+ }
50
+
51
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Image/Edit.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Image_Edit extends Mage_Adminhtml_Block_Widget_Form_Container {
3
+ public function __construct(){
4
+ parent::__construct();
5
+ $this->_objectId = 'imageid';
6
+ $this->_blockGroup = 'bannerslider';
7
+ $this->_controller = 'adminhtml_image';
8
+ $this->_mode = 'edit';
9
+ $this->_updateButton('save', 'label', Mage::helper('bannerslider')->__('Save Slide'));
10
+ $this->_updateButton('delete', 'label', Mage::helper('bannerslider')->__('Delete'));
11
+ $this->_addButton('saveandcontinue', array(
12
+ 'label' => Mage::helper('bannerslider')->__('Save And Continue Edit'),
13
+ 'onclick' => 'saveAndContinueEdit()',
14
+ 'class' => 'save',
15
+ ), -100);
16
+
17
+ $this->_formScripts[] ="
18
+ function toggleEditor(){
19
+ if (tinyMCE.getInstanceById('form_content') == null) {
20
+ tinyMCE.execCommand('mceAddControl', false, 'edit_form');
21
+ } else {
22
+ tinyMCE.execCommand('mceRemoveControl', false, 'edit_form');
23
+ }
24
+ }
25
+ function saveAndContinueEdit(){
26
+ editForm.submit($('edit_form').action+'back/edit/');
27
+ }";
28
+ }
29
+ protected function _prepareLayout(){
30
+ parent::_prepareLayout();
31
+ if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {
32
+ $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);
33
+ $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
34
+ }
35
+ }
36
+ public function getHeaderText() {
37
+ if (Mage::registry('image_data') && Mage::registry('image_data')->getId()) {
38
+ return Mage::helper('bannerslider')->__('Edit Slide "%s"', $this->htmlEscape(Mage::registry('image_data')->getSlideTitle()));
39
+ } else {
40
+ return Mage::helper('bannerslider')->__('New Image');
41
+ }
42
+ }
43
+
44
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Image/Edit/Form.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Image_Edit_Form extends Mage_Adminhtml_Block_Widget_Form{
3
+ protected function _prepareForm(){
4
+ if (Mage::registry('image_data')){
5
+ $data = Mage::registry('image_data')->getData();
6
+ }else{
7
+ $data = array();
8
+ }
9
+ $form = new Varien_Data_Form(array(
10
+ 'id' => 'edit_form',
11
+ 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
12
+ 'method' => 'post',
13
+ 'enctype' => 'multipart/form-data'
14
+ ));
15
+ $form->setUseContainer(true);
16
+ $this->setForm($form);
17
+ $form->setValues($data);
18
+ return parent::_prepareForm();
19
+ }
20
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Image/Edit/Tabs.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Image_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs {
3
+ public function __construct(){
4
+ parent::__construct();
5
+ $this->setId('image_tabs');
6
+ $this->setDestElementId('edit_form'); // this should be same as the form id in Form.php
7
+ $this->setTitle(Mage::helper('bannerslider')->__('Slide Detail'));
8
+ }
9
+ protected function _beforeToHtml(){
10
+ $this->addTab('form_section', array(
11
+ 'label' => Mage::helper('bannerslider')->__('Slide Detail'),
12
+ 'title' => Mage::helper('bannerslider')->__('Slide Detail'),
13
+ 'content' => $this->getLayout()->createBlock('bannerslider/adminhtml_image_edit_tabs_form')->toHtml(),
14
+ ));
15
+ return parent::_beforeToHtml();
16
+ }
17
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Image/Edit/Tabs/Form.php ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Image_Edit_Tabs_Form extends Mage_Adminhtml_Block_Widget_Form{
3
+ protected function _prepareForm() {
4
+ if (Mage::registry('image_data')) {
5
+ $data = Mage::registry('image_data')->getData();
6
+ } else {
7
+ $data = array();
8
+ }
9
+ $form = new Varien_Data_Form();
10
+ $this->setForm($form);
11
+ $fieldset = $form->addFieldset('bannerslider_image', array('legend' => Mage::helper('bannerslider')->__('Caption Information')));
12
+
13
+ $wysiwygConfig = Mage::getSingleton('cms/wysiwyg_config')->getConfig();
14
+ $wysiwygConfig->addData(array('add_variables' => false,
15
+ 'add_widgets' => false,
16
+ 'add_images' => false,
17
+ 'directives_url' => Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg/directive'),
18
+ 'directives_url_quoted' => preg_quote(Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg/directive')),
19
+ 'widget_window_url' => Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/widget/index'),
20
+ 'files_browser_window_url' => Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg_images/index'),
21
+ 'files_browser_window_width' => (int) Mage::getConfig()->getNode('adminhtml/cms/browser/window_width'),
22
+ 'files_browser_window_height' => (int) Mage::getConfig()->getNode('adminhtml/cms/browser/window_height')
23
+ ));
24
+
25
+ $fieldset->addField('slide_title', 'text', array(
26
+ 'label' => Mage::helper('bannerslider')->__('Slide Title'),
27
+ 'class' => 'required-entry',
28
+ 'required' => true,
29
+ 'name' => 'slide_title',
30
+ ));
31
+
32
+ $fieldset->addField('slide_img', 'image', array(
33
+ 'label' => Mage::helper('bannerslider')->__('Slide Image'),
34
+ 'class' => 'required-entry required-file',
35
+ 'required' => true,
36
+ 'name' => 'slide_img',
37
+ 'note' => '(*.jpg, *.jpeg, *.png, *.gif)',
38
+ ));
39
+
40
+ $fieldset->addField('slider_id', 'select', array(
41
+ 'label' => Mage::helper('bannerslider')->__('Slider Category'),
42
+ 'class' => 'required-entry',
43
+ 'required' => true,
44
+ 'name' => 'slider_id',
45
+ 'disabled' => false,
46
+ 'readonly' => false,
47
+ 'values' => Mage::getModel('bannerslider/categoryval')->getCategoryVal(),
48
+ ));
49
+
50
+ $fieldset->addField('slide_description', 'editor', array(
51
+ 'name' => 'slide_description',
52
+ 'label' => Mage::helper('bannerslider')->__('Slide Description'),
53
+ 'title' => Mage::helper('bannerslider')->__('Slide Description'),
54
+ 'style' => 'width:400px; height:250px;',
55
+ 'config' => $wysiwygConfig,
56
+ 'required' => false,
57
+ 'wysiwyg' => true
58
+ ));
59
+
60
+ $fieldset->addField('text_color', 'text', array(
61
+ 'label' => Mage::helper('bannerslider')->__('Text Color'),
62
+ 'class' => 'color',
63
+ 'name' => 'text_color',
64
+ 'note' => 'Select Color',
65
+ ));
66
+
67
+ $fieldset->addField('text_align', 'select', array(
68
+ 'label' => Mage::helper('bannerslider')->__('Text Align'),
69
+ 'name' => 'text_align',
70
+ 'values' => Mage::getModel('bannerslider/align')->getAlignVal(),
71
+ 'disabled' => false,
72
+ 'readonly' => false,
73
+ ));
74
+
75
+ $fieldset->addField('status', 'select', array(
76
+ 'label' => Mage::helper('bannerslider')->__('Status'),
77
+ 'class' => 'required-entry',
78
+ 'required' => true,
79
+ 'name' => 'status',
80
+ 'value' => '0',
81
+ 'values' => array('0' => 'Disable','1' => 'Enable'),
82
+ 'disabled' => false,
83
+ 'readonly' => false,
84
+ ));
85
+
86
+ $form->setValues($data);
87
+ return parent::_prepareForm();
88
+ }
89
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Image/Grid.php ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Image_Grid extends Mage_Adminhtml_Block_Widget_Grid{
3
+ public function __construct(){
4
+ parent::__construct();
5
+ $this->setId('image_grid');
6
+ $this->setDefaultSort('bannerdetail_id');
7
+ $this->setDefaultDir('ASC');
8
+ $this->setSaveParametersInSession(true);
9
+ }
10
+ protected function _prepareCollection(){
11
+ $collection = Mage::getModel('bannerslider/imagedetail')->getCollection();
12
+ $this->setCollection($collection);
13
+ return parent::_prepareCollection();
14
+ }
15
+ protected function _prepareColumns(){
16
+ $this->addColumn('bannerdetail_id', array(
17
+ 'header' => Mage::helper('bannerslider')->__('ID'),
18
+ 'align' => 'left',
19
+ 'width' => '10px',
20
+ 'index' => 'bannerdetail_id',
21
+ ));
22
+ $this->addColumn('slide_title', array(
23
+ 'header' => Mage::helper('bannerslider')->__('Slide Title'),
24
+ 'align' => 'left',
25
+ 'width' => '100px',
26
+ 'index' => 'slide_title',
27
+ ));
28
+ $this->addColumn('slide_img', array(
29
+ 'header' => Mage::helper('bannerslider')->__('Image'),
30
+ 'align' => 'left',
31
+ 'width' => '200px',
32
+ 'index' => 'slide_img',
33
+ 'renderer' => 'bannerslider/adminhtml_bannerslider_renderer_image',
34
+ ));
35
+ $this->addColumn('slide_description', array(
36
+ 'header' => Mage::helper('bannerslider')->__('Slide Description'),
37
+ 'align' => 'left',
38
+ 'width' => '200px',
39
+ 'index' => 'slide_description',
40
+ ));
41
+ $this->addColumn('slider_id', array(
42
+ 'header' => Mage::helper('bannerslider')->__('Slider Category'),
43
+ 'align' => 'left',
44
+ 'width' => '50px',
45
+ 'index' => 'slider_id',
46
+ 'renderer' => 'bannerslider/adminhtml_bannerslider_renderer_category'
47
+ ));
48
+ $this->addColumn('status', array(
49
+ 'header' => Mage::helper('bannerslider')->__('Status'),
50
+ 'align' => 'left',
51
+ 'width' => '50px',
52
+ 'index' => 'status',
53
+ 'renderer' => 'bannerslider/adminhtml_bannerslider_renderer_status',
54
+ ));
55
+
56
+ return parent::_prepareColumns();
57
+ }
58
+ protected function _prepareMassaction(){
59
+ $this->setMassactionIdField('bannerdetail_id');
60
+ $this->getMassactionBlock()->setFormFieldName('id');
61
+ $this->getMassactionBlock()->addItem('delete', array(
62
+ 'label'=> Mage::helper('bannerslider')->__('Delete'),
63
+ 'url' => $this->getUrl('*/*/massDelete', array('' => '')),
64
+ 'confirm' => Mage::helper('bannerslider')->__('Are you sure?')
65
+ ));
66
+ return $this;
67
+ }
68
+ public function getRowUrl($row) {
69
+ return $this->getUrl('*/*/edit', array('id' => $row->getId()));
70
+ }
71
+
72
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Slide.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Slide extends Mage_Adminhtml_Block_Widget_Grid_Container{
3
+ public function __construct(){
4
+ $this->_controller = 'adminhtml_image';
5
+ $this->_blockGroup = 'bannerslider';
6
+ /* please not this is the block group the grid is called in this fashion: ($this->_blockGroup._.$this->_controller._.grid) */
7
+ $this->_headerText = Mage::helper('bannerslider')->__('Slide Manager');
8
+ $this->_addButtonLabel = Mage::helper('bannerslider')->__('Add Slide');
9
+ parent::__construct();
10
+ }
11
+ }
app/code/community/Vsourz/Bannerslider/Block/Adminhtml/Slider.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Adminhtml_Slider extends Mage_Adminhtml_Block_Widget_Grid_Container{
3
+ public function __construct(){
4
+ $this->_controller = 'adminhtml_category';
5
+ $this->_blockGroup = 'bannerslider';
6
+ /* please not this is the block group the grid is called in this fashion: ($this->_blockGroup._.$this->_controller._.grid) */
7
+ $this->_headerText = Mage::helper('bannerslider')->__('Category Slider Manager');
8
+ $this->_addButtonLabel = Mage::helper('bannerslider')->__('Add Category Slider');
9
+ parent::__construct();
10
+ }
11
+ }
app/code/community/Vsourz/Bannerslider/Block/Bannerslider.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Block_Bannerslider extends Mage_Catalog_Block_Product_Abstract{
3
+ public function getImages()
4
+ {
5
+ $catId = $this->getCategoryId();
6
+ return $imageCollection = Mage::getModel('bannerslider/bannerslider')->getImageCollection($catId);
7
+ }
8
+ public function getCategoryData()
9
+ {
10
+ $catId = $this->getCategoryId();
11
+ return $catCollection = Mage::getModel('bannerslider/bannerslider')->getCategoryCollection($catId);
12
+ }
13
+ }
app/code/community/Vsourz/Bannerslider/Helper/Data.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Helper_Data extends Mage_Core_Helper_Abstract{
3
+ }
app/code/community/Vsourz/Bannerslider/Model/Align.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Model_Align extends Mage_Core_Model_Abstract
3
+ {
4
+ public function getAlignVal()
5
+ {
6
+ return array(
7
+ array('value' => 'left', 'label' => 'left'),
8
+ array('value' => 'right', 'label' => 'right'),
9
+ array('value' => 'center', 'label' => 'center')
10
+ );
11
+ }
12
+ }
13
+ ?>
app/code/community/Vsourz/Bannerslider/Model/Animationin.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Model_Animationin extends Mage_Core_Model_Abstract
3
+ {
4
+ public function getAnimationInVal()
5
+ {
6
+ return array(
7
+ array('value' => 'bounce', 'label' => 'bounce'),
8
+ array('value' => 'flash', 'label' => 'flash'),
9
+ array('value' => 'pulse', 'label' => 'pulse'),
10
+ array('value' => 'rubberBand', 'label' => 'rubberBand'),
11
+ array('value' => 'shake', 'label' => 'shake'),
12
+ array('value' => 'swing', 'label' => 'swing'),
13
+ array('value' => 'tada', 'label' => 'tada'),
14
+ array('value' => 'wobble', 'label' => 'wobble'),
15
+ array('value' => 'jello', 'label' => 'jello'),
16
+ array('value' => 'bounceIn', 'label' => 'bounceIn'),
17
+ array('value' => 'bounceInDown', 'label' => 'bounceInDown'),
18
+ array('value' => 'bounceInLeft', 'label' => 'bounceInLeft'),
19
+ array('value' => 'bounceInRight', 'label' => 'bounceInRight'),
20
+ array('value' => 'bounceInUp', 'label' => 'bounceInUp'),
21
+ array('value' => 'fadeIn', 'label' => 'fadeIn'),
22
+ array('value' => 'fadeInDown', 'label' => 'fadeInDown'),
23
+ array('value' => 'fadeInDownBig', 'label' => 'fadeInDownBig'),
24
+ array('value' => 'fadeInLeft', 'label' => 'fadeInLeft'),
25
+ array('value' => 'fadeInLeftBig', 'label' => 'fadeInLeftBig'),
26
+ array('value' => 'fadeInRight', 'label' => 'fadeInRight'),
27
+ array('value' => 'fadeInRightBig', 'label' => 'fadeInRightBig'),
28
+ array('value' => 'fadeInUp', 'label' => 'fadeInUp'),
29
+ array('value' => 'fadeInUpBig', 'label' => 'fadeInUpBig'),
30
+ array('value' => 'flipInX', 'label' => 'flipInX'),
31
+ array('value' => 'flipInY', 'label' => 'flipInY'),
32
+ array('value' => 'lightSpeedIn', 'label' => 'lightSpeedIn'),
33
+ array('value' => 'rotateIn', 'label' => 'rotateIn'),
34
+ array('value' => 'rotateInDownLeft', 'label' => 'rotateInDownLeft'),
35
+ array('value' => 'rotateInDownRight', 'label' => 'rotateInDownRight'),
36
+ array('value' => 'rotateInUpLeft', 'label' => 'rotateInUpLeft'),
37
+ array('value' => 'rotateInUpRight', 'label' => 'rotateInUpRight'),
38
+ array('value' => 'hinge', 'label' => 'hinge'),
39
+ array('value' => 'rollIn', 'label' => 'rollIn'),
40
+ array('value' => 'zoomIn', 'label' => 'zoomIn'),
41
+ array('value' => 'zoomInDown', 'label' => 'zoomInDown'),
42
+ array('value' => 'zoomInLeft', 'label' => 'zoomInLeft'),
43
+ array('value' => 'zoomInRight', 'label' => 'zoomInRight'),
44
+ array('value' => 'zoomInUp', 'label' => 'zoomInUp'),
45
+ array('value' => 'slideInDown', 'label' => 'slideInDown'),
46
+ array('value' => 'slideInLeft', 'label' => 'slideInLeft'),
47
+ array('value' => 'slideInRight', 'label' => 'slideInRight'),
48
+ array('value' => 'slideInUp', 'label' => 'slideInUp'),
49
+ );
50
+ }
51
+ }
app/code/community/Vsourz/Bannerslider/Model/Animationout.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Model_Animationout extends Mage_Core_Model_Abstract
3
+ {
4
+ public function getAnimationOutVal()
5
+ {
6
+ return array(
7
+ array('value' => 'bounce', 'label' => 'bounce'),
8
+ array('value' => 'flash', 'label' => 'flash'),
9
+ array('value' => 'pulse', 'label' => 'pulse'),
10
+ array('value' => 'rubberBand', 'label' => 'rubberBand'),
11
+ array('value' => 'shake', 'label' => 'shake'),
12
+ array('value' => 'swing', 'label' => 'swing'),
13
+ array('value' => 'tada', 'label' => 'tada'),
14
+ array('value' => 'wobble', 'label' => 'wobble'),
15
+ array('value' => 'jello', 'label' => 'jello'),
16
+ array('value' => 'bounceOut', 'label' => 'bounceOut'),
17
+ array('value' => 'bounceOutDown', 'label' => 'bounceOutDown'),
18
+ array('value' => 'bounceOutLeft', 'label' => 'bounceOutLeft'),
19
+ array('value' => 'bounceOutRight', 'label' => 'bounceOutRight'),
20
+ array('value' => 'bounceOutUp', 'label' => 'bounceOutUp'),
21
+ array('value' => 'fadeOut', 'label' => 'fadeOut'),
22
+ array('value' => 'fadeOutDown', 'label' => 'fadeOutDown'),
23
+ array('value' => 'fadeOutDownBig', 'label' => 'fadeOutDownBig'),
24
+ array('value' => 'fadeOutLeft', 'label' => 'fadeOutLeft'),
25
+ array('value' => 'fadeOutLeftBig', 'label' => 'fadeOutLeftBig'),
26
+ array('value' => 'fadeOutRight', 'label' => 'fadeOutRight'),
27
+ array('value' => 'fadeOutRightBig', 'label' => 'fadeOutRightBig'),
28
+ array('value' => 'fadeOutUp', 'label' => 'fadeOutUp'),
29
+ array('value' => 'fadeOutUpBig', 'label' => 'fadeOutUpBig'),
30
+ array('value' => 'flipOutX', 'label' => 'flipOutX'),
31
+ array('value' => 'flipOutY', 'label' => 'flipOutY'),
32
+ array('value' => 'lightSpeedOut', 'label' => 'lightSpeedOut'),
33
+ array('value' => 'rotateOut', 'label' => 'rotateOut'),
34
+ array('value' => 'rotateOutDownLeft', 'label' => 'rotateOutDownLeft'),
35
+ array('value' => 'rotateOutDownRight', 'label' => 'rotateOutDownRight'),
36
+ array('value' => 'rotateOutUpLeft', 'label' => 'rotateOutUpLeft'),
37
+ array('value' => 'rotateOutUpRight', 'label' => 'rotateOutUpRight'),
38
+ array('value' => 'hinge', 'label' => 'hinge'),
39
+ array('value' => 'rollOut', 'label' => 'rollOut'),
40
+ array('value' => 'zoomOut', 'label' => 'zoomOut'),
41
+ array('value' => 'zoomOutDown', 'label' => 'zoomOutDown'),
42
+ array('value' => 'zoomOutLeft', 'label' => 'zoomOutLeft'),
43
+ array('value' => 'zoomOutRight', 'label' => 'zoomOutRight'),
44
+ array('value' => 'zoomOutUp', 'label' => 'zoomOutUp'),
45
+ array('value' => 'slideOutDown', 'label' => 'slideOutDown'),
46
+ array('value' => 'slideOutLeft', 'label' => 'slideOutLeft'),
47
+ array('value' => 'slideOutRight', 'label' => 'slideOutRight'),
48
+ array('value' => 'slideOutUp', 'label' => 'slideOutUp')
49
+ );
50
+ }
51
+ }
app/code/community/Vsourz/Bannerslider/Model/Bannerslider.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Model_Bannerslider extends Mage_Core_Model_Abstract{
3
+ public function getImageCollection($catId){
4
+ $categoryId = $catId;
5
+ $imageCollection = Mage::getModel('bannerslider/imagedetail')->getCollection()
6
+ ->addFieldToFilter('status','1')
7
+ ->addFieldToFilter('slider_id',$categoryId);
8
+ return $imageCollection;
9
+ }
10
+ public function getCategoryCollection($catId){
11
+ $categoryId = $catId;
12
+ $categoryCollection = Mage::getModel('bannerslider/imagecategory')->getCollection()
13
+ ->addFieldToFilter('status','1')
14
+ ->addFieldToFilter('slider_id',$catId);
15
+ return $categoryCollection;
16
+ }
17
+ }
app/code/community/Vsourz/Bannerslider/Model/Categoryval.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Model_Categoryval extends Mage_Core_Model_Abstract{
3
+ public function getCategoryVal(){
4
+ $catVal = Mage::getModel('bannerslider/imagecategory')->getCollection();
5
+ $data = $catVal->getData();
6
+ $dropVal = array();
7
+ $dropVal[''] = "Please Select";
8
+ foreach($data as $value){
9
+ $dropVal[$value['slider_id']] = $value['slider_title'];
10
+ };
11
+ return $dropVal;
12
+ }
13
+ }
app/code/community/Vsourz/Bannerslider/Model/Imagecategory.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Model_Imagecategory extends Mage_Core_Model_Abstract{
3
+ public function _construct(){
4
+ parent::_construct();
5
+ $this->_init('bannerslider/imagecategory');
6
+ }
7
+ }
app/code/community/Vsourz/Bannerslider/Model/Imagedetail.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Model_Imagedetail extends Mage_Core_Model_Abstract{
3
+ public function _construct(){
4
+ parent::_construct();
5
+ $this->_init('bannerslider/imagedetail');
6
+ }
7
+ }
app/code/community/Vsourz/Bannerslider/Model/Resource/Imagecategory.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Model_Resource_Imagecategory extends Mage_Core_Model_Mysql4_Abstract{
3
+ public function _construct(){
4
+ $this->_init('bannerslider/imagecategory','slider_id');
5
+ }
6
+ }
app/code/community/Vsourz/Bannerslider/Model/Resource/Imagecategory/Collection.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Model_Resource_Imagecategory_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract{
3
+ public function _construct(){
4
+ $this->_init('bannerslider/imagecategory');
5
+ }
6
+ }
app/code/community/Vsourz/Bannerslider/Model/Resource/Imagedetail.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Model_Resource_Imagedetail extends Mage_Core_Model_Mysql4_Abstract{
3
+ public function _construct(){
4
+ $this->_init('bannerslider/imagedetail','bannerdetail_id');
5
+ }
6
+ }
app/code/community/Vsourz/Bannerslider/Model/Resource/Imagedetail/Collection.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Model_Resource_Imagedetail_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract{
3
+ public function _construct(){
4
+ $this->_init('bannerslider/imagedetail');
5
+ }
6
+ }
app/code/community/Vsourz/Bannerslider/controllers/Adminhtml/CategoryController.php ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Adminhtml_CategoryController extends Mage_Adminhtml_Controller_action {
3
+ protected function _initAction(){
4
+ $this->loadLayout()->_setActiveMenu('bannerslider/imagecategory')->_addBreadcrumb(
5
+ Mage::helper('adminhtml')->__('Manage Category Slider'),
6
+ Mage::helper('adminhtml')->__('Category Slider Manager')
7
+ );
8
+ return $this;
9
+ }
10
+ public function indexAction(){
11
+ $this->_initAction()->renderLayout();
12
+ }
13
+ public function newAction(){
14
+ $this->loadLayout();
15
+ $this->_addContent($this->getLayout()->createBlock('bannerslider/adminhtml_category_edit'))->_addLeft($this->getLayout()->createBlock('bannerslider/adminhtml_category_edit_tabs'));
16
+ $this->renderLayout();
17
+ }
18
+ public function saveAction(){
19
+ if ($data = $this->getRequest()->getPost()){
20
+ $model = Mage::getModel('bannerslider/imagecategory');
21
+ $id = $this->getRequest()->getParam('id'); //Id is the value of the field which is to be saved after editing
22
+ foreach ($data as $key => $value){
23
+ if (is_array($value)){
24
+ $data[$key] = implode(',',$this->getRequest()->getParam($key));
25
+ }
26
+ }
27
+ if($id){
28
+ $model->load($id);
29
+ }
30
+ //Code to Save Gallery Image
31
+ /*
32
+ if(isset($_FILES['category_img']['name']) and (file_exists($_FILES['category_img']['tmp_name']))){
33
+ try{
34
+ $uploader = new Varien_File_Uploader('category_img');
35
+ $uploader->setAllowedExtensions(array('jpg','jpeg','gif','png')); // or pdf or anything
36
+ $uploader->setAllowRenameFiles(false);
37
+ // setAllowRenameFiles(true) -> move your file in a folder the magento way
38
+ $uploader->setFilesDispersion(false);
39
+ $path = Mage::getBaseDir('media') . DS .'bannerslider';
40
+ $imgName = explode('.',$_FILES['category_img']['name']);
41
+ $imgName[0] = $imgName[0].'-'.'category_img'.'-'.date('Y-m-d H-i-s');
42
+ $imgName = implode('.',$imgName);
43
+ $imgName = preg_replace('/\s+/', '-', $imgName);
44
+ $uploader->save($path, $imgName);
45
+ $data['category_img'] = 'bannerslider'.DS.$imgName;
46
+ }catch(Exception $e){
47
+
48
+ }
49
+ }
50
+ else{
51
+ if(isset($data['category_img']['delete']) && $data['category_img']['delete'] == 1){
52
+ // delete image file
53
+ $image = explode(',',$data['category_img']);
54
+ unlink(Mage::getBaseDir('media').DS.$image[1]);
55
+ // set db blank entry
56
+ $data['category_img'] = '';
57
+ }else{
58
+ unset($data['category_img']);
59
+ }
60
+ }*/
61
+ $model->setData($data);
62
+
63
+ Mage::getSingleton('adminhtml/session')->setFormData($data);
64
+ try{
65
+ if ($id){
66
+ $model->setId($id);
67
+ }
68
+
69
+ $model->save();
70
+ if (!$model->getId()){
71
+ Mage::throwException(Mage::helper('bannerslider')->__('Error saving slide details'));
72
+ }
73
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('bannerslider')->__('Details was successfully saved.'));
74
+ Mage::getSingleton('adminhtml/session')->setFormData(false);
75
+
76
+ // The following line decides if it is a "save" or "save and continue"
77
+ if ($this->getRequest()->getParam('back')) {
78
+ $this->_redirect('*/*/edit', array('id' => $model->getId()));
79
+ }else{
80
+ $this->_redirect('*/*/');
81
+ }
82
+ }catch(Exception $e){
83
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
84
+ if ($model && $model->getId()){
85
+ $this->_redirect('*/*/edit', array('id' => $model->getId()));
86
+ }else {
87
+ $this->_redirect('*/*/');
88
+ }
89
+ }
90
+ return;
91
+ }
92
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bannerslider')->__('No data found to save'));
93
+ $this->_redirect('*/*/');
94
+ }
95
+ public function editAction(){
96
+ $id = $this->getRequest()->getParam('id', null);
97
+ $model = Mage::getModel('bannerslider/imagecategory');
98
+ if($id){
99
+ $model->load((int)$id);
100
+ if($model->getId()){
101
+ $data = Mage::getSingleton('adminhtml/session')->getFormData(true);
102
+ if($data){
103
+ $model->setData($data)->setId($id);
104
+ }
105
+ }else{
106
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bannerslider')->__('Category does not exist'));
107
+ $this->_redirect('*/*/');
108
+ }
109
+ }
110
+ Mage::register('category_data', $model);
111
+ $this->_title($this->__('bannerslider'))->_title($this->__('Edit Category'));
112
+ $this->loadLayout();
113
+ $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
114
+ $this->_addContent($this->getLayout()->createBlock('bannerslider/adminhtml_category_edit'))
115
+ ->_addLeft($this->getLayout()->createBlock('bannerslider/adminhtml_category_edit_tabs'));
116
+ $this->renderLayout();
117
+ }
118
+ public function deleteAction(){
119
+ if($this->getRequest()->getParam('id') > 0){
120
+ try{
121
+ $model = Mage::getModel('bannerslider/imagecategory');
122
+ $id = $this->getRequest()->getParam('id');
123
+ $objModel = $model->load($id);
124
+ $path = Mage::getBaseDir('media');
125
+ unlink($path.DS.$objModel->categoryImg);
126
+ $objModel->setId($id)->delete();
127
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Item was successfully deleted'));
128
+ $this->_redirect('*/*/');
129
+ }catch(exception $e){
130
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
131
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
132
+ }
133
+ }
134
+ $this->_redirect('*/*/');
135
+ }
136
+
137
+ public function massDeleteAction(){
138
+ // Here the id is got from the function _prepareMassAction in Grid.php. ($this->getMassactionBlock()->setFormFieldName('id');)
139
+ $ids = $this->getRequest()->getParam('id');
140
+ if(!is_array($ids)) {
141
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bannerslider')->__('Please select slide(s).'));
142
+ }else{
143
+ try{
144
+ $imageModel = Mage::getModel('bannerslider/imagecategory');
145
+ foreach($ids as $id){
146
+ $objModel = $imageModel->load($id);
147
+ $path = Mage::getBaseDir('media');
148
+ unlink($path.DS.$objModel->categoryImg);
149
+ $objModel->delete();
150
+ }
151
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('bannerslider')->__('Total of %d record(s) were deleted.', count($ids)));
152
+ }catch(Exception $e){
153
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
154
+ }
155
+ }
156
+ $this->_redirect('*/*/index');
157
+ }
158
+ }
159
+
160
+ ?>
app/code/community/Vsourz/Bannerslider/controllers/Adminhtml/ImageController.php ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vsourz_Bannerslider_Adminhtml_ImageController extends Mage_Adminhtml_Controller_action {
3
+ protected function _initAction(){
4
+ $this->loadLayout()->_setActiveMenu('bannerslider/imagedetail')->_addBreadcrumb(
5
+ Mage::helper('adminhtml')->__('Manage Slides'),
6
+ Mage::helper('adminhtml')->__('Slide Manager')
7
+ );
8
+ return $this;
9
+ }
10
+ public function indexAction(){
11
+ $this->_initAction()->renderLayout();
12
+ }
13
+ public function newAction(){
14
+ $this->loadLayout();
15
+ $this->_addContent($this->getLayout()->createBlock('bannerslider/adminhtml_image_edit'))->_addLeft($this->getLayout()->createBlock('bannerslider/adminhtml_image_edit_tabs'));
16
+ $this->renderLayout();
17
+ }
18
+ public function saveAction(){
19
+ if ($data = $this->getRequest()->getPost()){
20
+ $model = Mage::getModel('bannerslider/imagedetail');
21
+ $id = $this->getRequest()->getParam('id');
22
+ foreach ($data as $key => $value){
23
+ if (is_array($value)){
24
+ $data[$key] = implode(',',$this->getRequest()->getParam($value));
25
+ }
26
+ }
27
+ if($id){
28
+ $model->load($id);
29
+ }
30
+ //Code to Save Gallery Image
31
+ if(isset($_FILES['slide_img']['name']) and (file_exists($_FILES['slide_img']['tmp_name']))){
32
+ try{
33
+ $uploader = new Varien_File_Uploader('slide_img');
34
+ $uploader->setAllowedExtensions(array('jpg','jpeg','gif','png')); // or pdf or anything
35
+ $uploader->setAllowRenameFiles(false);
36
+ // setAllowRenameFiles(true) -> move your file in a folder the magento way
37
+ $uploader->setFilesDispersion(false);
38
+ $path = Mage::getBaseDir('media') . DS .'bannerslider';
39
+ $imgName = explode('.',$_FILES['slide_img']['name']);
40
+ $imgName[0] = $imgName[0].'-'.'gallery-img'.'-'.date('Y-m-d H-i-s');
41
+ $imgName = implode('.',$imgName);
42
+ $imgName = preg_replace('/\s+/', '-', $imgName);
43
+ $uploader->save($path, $imgName);
44
+ $data['slide_img'] = 'bannerslider'.DS.$imgName;
45
+ }catch(Exception $e){
46
+
47
+ }
48
+ }
49
+ else{
50
+ if(isset($data['slide_img']['delete']) && $data['slide_img']['delete'] == 1){
51
+ // delete image file
52
+ $image = explode(',',$data['slide_img']);
53
+ unlink(Mage::getBaseDir('media').DS.$image[1]);
54
+ // set db blank entry
55
+ $data['slide_img'] = '';
56
+ }else{
57
+ unset($data['slide_img']);
58
+ }
59
+ }
60
+ $model->setData($data);
61
+ Mage::getSingleton('adminhtml/session')->setFormData($data);
62
+ try{
63
+ if ($id){
64
+ $model->setId($id);
65
+ }
66
+ $model->save();
67
+ if (!$model->getId()){
68
+ Mage::throwException(Mage::helper('bannerslider')->__('Error saving slide details'));
69
+ }
70
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('bannerslider')->__('Details was successfully saved.'));
71
+ Mage::getSingleton('adminhtml/session')->setFormData(false);
72
+
73
+ // The following line decides if it is a "save" or "save and continue"
74
+ if ($this->getRequest()->getParam('back')) {
75
+ $this->_redirect('*/*/edit', array('id' => $model->getId()));
76
+ }else{
77
+ $this->_redirect('*/*/');
78
+ }
79
+ }catch(Exception $e){
80
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
81
+ if ($model && $model->getId()) {
82
+ $this->_redirect('*/*/edit', array('id' => $model->getId()));
83
+ } else {
84
+ $this->_redirect('*/*/');
85
+ }
86
+ }
87
+ return;
88
+ }
89
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bannerslider')->__('No data found to save'));
90
+ $this->_redirect('*/*/');
91
+
92
+ }
93
+ public function editAction(){
94
+ $id = $this->getRequest()->getParam('id', null);
95
+ $model = Mage::getModel('bannerslider/imagedetail');
96
+ if($id){
97
+ $model->load((int)$id);
98
+ if($model->getId()){
99
+ $data = Mage::getSingleton('adminhtml/session')->getFormData(true);
100
+ if($data){
101
+ $model->setData($data)->setId($id);
102
+ }
103
+ }else{
104
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bannerslider')->__('image does not exist'));
105
+ $this->_redirect('*/*/');
106
+ }
107
+ }
108
+ Mage::register('image_data', $model);
109
+ $this->_title($this->__('Banner Slider'))->_title($this->__('Edit Slide'));
110
+ $this->loadLayout();
111
+ $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
112
+ $this->_addContent($this->getLayout()->createBlock('bannerslider/adminhtml_image_edit'))->_addLeft($this->getLayout()->createBlock('bannerslider/adminhtml_image_edit_tabs'));
113
+ $this->renderLayout();
114
+ }
115
+ public function deleteAction(){
116
+ if ($this->getRequest()->getParam('id') > 0) {
117
+ try{
118
+ $model = Mage::getModel('bannerslider/imagedetail');
119
+ $id = $this->getRequest()->getParam('id');
120
+ $objModel = $model->load($id);
121
+ $path = Mage::getBaseDir('media');
122
+ unlink($path.DS.$objModel->galleryImg);
123
+ $model->setId($id)->delete();
124
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Item was successfully deleted'));
125
+ $this->_redirect('*/*/');
126
+ }catch (Exception $e) {
127
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
128
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
129
+ }
130
+ }
131
+ $this->_redirect('*/*/');
132
+ }
133
+ public function massDeleteAction(){
134
+ // Here the id is got from the function _prepareMassAction in Grid.php. ($this->getMassactionBlock()->setFormFieldName('id');)
135
+ $ids = $this->getRequest()->getParam('id');
136
+ if(!is_array($ids)) {
137
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bannerslider')->__('Please select slide(s).'));
138
+ }else{
139
+ try{
140
+ $imageModel = Mage::getModel('bannerslider/imagedetail');
141
+ foreach($ids as $id){
142
+ $objModel = $imageModel->load($id);
143
+ $path = Mage::getBaseDir('media');
144
+ unlink($path.DS.$objModel->galleryImg);
145
+ $objModel->delete();
146
+ }
147
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('bannerslider')->__('Total of %d record(s) were deleted.', count($ids)));
148
+ }catch(Exception $e){
149
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
150
+ }
151
+ }
152
+ $this->_redirect('*/*/index');
153
+ }
154
+ }
155
+ ?>
app/code/community/Vsourz/Bannerslider/data/bannerslider_setup/data-install-0.1.0.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $categories = array(
3
+ array(
4
+ 'slider_title' => 'default',
5
+ 'status' => '1'
6
+ ),
7
+ );
8
+ foreach ($categories as $category){
9
+ $model = Mage::getModel('bannerslider/imagecategory')->setData($category)->save();
10
+ }
app/code/community/Vsourz/Bannerslider/etc/adminhtml.xml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <menu>
4
+ <bannerslider module="bannerslider">
5
+ <title>Banner Slider</title>
6
+ <sort_order>101</sort_order>
7
+ <children>
8
+ <imagecategory module="bannerslider">
9
+ <title>Manage Slide Category</title>
10
+ <action>bannerslider/adminhtml_category</action>
11
+ </imagecategory>
12
+ <imagedetail module="bannerslider">
13
+ <title>Manage Slides</title>
14
+ <action>bannerslider/adminhtml_image</action>
15
+ </imagedetail>
16
+ </children>
17
+ </bannerslider>
18
+ </menu>
19
+ <acl>
20
+ <resources>
21
+ <all>
22
+ <title>Allow Everything</title>
23
+ </all>
24
+ <admin>
25
+ <children>
26
+ <bannerslider>
27
+ <title>Banner Slider</title>
28
+ <sort_order>7</sort_order>
29
+ </bannerslider>
30
+ <system>
31
+ <children>
32
+ <config>
33
+ <children>
34
+ <bannerslider translate="title" module="bannerslider">
35
+ <title>Banner Slider</title>
36
+ <sort_order>11</sort_order>
37
+ </bannerslider>
38
+ </children>
39
+ </config>
40
+ </children>
41
+ </system>
42
+ </children>
43
+ </admin>
44
+ </resources>
45
+ </acl>
46
+ </config>
app/code/community/Vsourz/Bannerslider/etc/config.xml ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Vsourz_Bannerslider>
5
+ <version>0.1.0</version>
6
+ </Vsourz_Bannerslider>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <bannerslider>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Vsourz_Bannerslider</module>
14
+ <frontName>bannerslider</frontName>
15
+ </args>
16
+ </bannerslider>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <bannerslider>
21
+ <file>bannerslider.xml</file>
22
+ </bannerslider>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <admin>
27
+ <routers>
28
+ <bannerslider>
29
+ <use>admin</use>
30
+ <args>
31
+ <module>Vsourz_Bannerslider</module>
32
+ <frontName>bannerslider</frontName>
33
+ </args>
34
+ </bannerslider>
35
+ </routers>
36
+ </admin>
37
+ <adminhtml>
38
+ <layout>
39
+ <updates>
40
+ <bannerslider>
41
+ <file>bannerslider.xml</file>
42
+ </bannerslider>
43
+ </updates>
44
+ </layout>
45
+ </adminhtml>
46
+ <global>
47
+ <helpers>
48
+ <bannerslider>
49
+ <class>Vsourz_Bannerslider_Helper</class>
50
+ </bannerslider>
51
+ </helpers>
52
+ <blocks>
53
+ <bannerslider>
54
+ <class>Vsourz_Bannerslider_Block</class>
55
+ </bannerslider>
56
+ </blocks>
57
+ <models>
58
+ <bannerslider>
59
+ <class>Vsourz_Bannerslider_Model</class>
60
+ <resourceModel>bannerslider_resource</resourceModel>
61
+ </bannerslider>
62
+ <bannerslider_resource>
63
+ <class>Vsourz_Bannerslider_Model_Resource</class>
64
+ <entities>
65
+ <imagedetail>
66
+ <table>bannerdetail</table>
67
+ </imagedetail>
68
+ <imagecategory>
69
+ <table>bannercategory</table>
70
+ </imagecategory>
71
+ </entities>
72
+ </bannerslider_resource>
73
+ </models>
74
+ <resources>
75
+ <bannerslider_setup>
76
+ <setup>
77
+ <module>Vsourz_Bannerslider</module>
78
+ </setup>
79
+ <connection>
80
+ <use>core_setup</use>
81
+ </connection>
82
+ </bannerslider_setup>
83
+ <bannerslider_write>
84
+ <connection>
85
+ <use>core_write</use>
86
+ </connection>
87
+ </bannerslider_write>
88
+ <bannerslider_read>
89
+ <connection>
90
+ <use>core_read</use>
91
+ </connection>
92
+ </bannerslider_read>
93
+ </resources>
94
+ </global>
95
+ </config>
app/code/community/Vsourz/Bannerslider/etc/system.xml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <bannerslider translate="label">
5
+ <label>Vsourz Banner Slider</label>
6
+ <sort_order>155</sort_order>
7
+ </bannerslider>
8
+ </tabs>
9
+ <sections>
10
+ <bannerslider translate="label">
11
+ <label>Banner Slider</label>
12
+ <tab>bannerslider</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>1000</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <settings translate="label">
20
+ <label>General Settings</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>10</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <loadjs translate="label">
28
+ <label>Load JQuery Library</label>
29
+ <comment><![CDATA[Select YES if JQuery library in not included in your Magento Project]]></comment>
30
+ <frontend_type>select</frontend_type>
31
+ <source_model>adminhtml/system_config_source_yesno</source_model>
32
+ <sort_order>10</sort_order>
33
+ <show_in_default>1</show_in_default>
34
+ <show_in_website>1</show_in_website>
35
+ <show_in_store>1</show_in_store>
36
+ </loadjs>
37
+ </fields>
38
+ </settings>
39
+ </groups>
40
+ </bannerslider>
41
+ </sections>
42
+ </config>
app/code/community/Vsourz/Bannerslider/sql/bannerslider_setup/mysql4-install-0.1.0.php ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+ $table = $installer->getConnection()
5
+ ->newTable($installer->getTable('bannerdetail'))
6
+ ->addColumn('bannerdetail_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
7
+ 'identity' => true,
8
+ 'unsigned' => true,
9
+ 'nullable' => false,
10
+ 'primary' => true,
11
+ ), 'Banner ID')
12
+ ->addColumn('slide_title', Varien_Db_Ddl_Table::TYPE_TEXT, 256, array(
13
+ 'nullable' => false,
14
+ ), 'Slide Title')
15
+ ->addColumn('slide_img', Varien_Db_Ddl_Table::TYPE_TEXT, 256, array(
16
+ 'nullable' => false,
17
+ ), 'Slide Image')
18
+ ->addColumn('slide_description', Varien_Db_Ddl_Table::TYPE_TEXT, 256, array(
19
+ ), 'Slide Description')
20
+ ->addColumn('slider_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
21
+ 'unsigned' => true,
22
+ 'nullable' => false,
23
+ ), 'Slider Id')
24
+ ->addColumn('text_color', Varien_Db_Ddl_Table::TYPE_TEXT, 256, null, array(
25
+ 'nullable' => false,
26
+ ), 'Text Color')
27
+ ->addColumn('text_align', Varien_Db_Ddl_Table::TYPE_TEXT, 256, null, array(
28
+ 'nullable' => false,
29
+ ), 'Text Align')
30
+ ->addColumn('status', Varien_Db_Ddl_Table::TYPE_SMALLINT, null, array(
31
+ 'nullable' => false,
32
+ 'default' => '0',
33
+ ), 'Is Enabled');
34
+
35
+ $installer->getConnection()->createTable($table);
36
+
37
+ $table = $installer->getConnection()
38
+ ->newTable($installer->getTable('bannercategory'))
39
+ ->addColumn('slider_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
40
+ 'identity' => true,
41
+ 'unsigned' => true,
42
+ 'nullable' => false,
43
+ 'primary' => true,
44
+ ), 'Slide ID')
45
+ ->addColumn('slider_title', Varien_Db_Ddl_Table::TYPE_TEXT, 256, array(
46
+ 'nullable' => false,
47
+ ), 'Slider Title')
48
+ ->addColumn('status', Varien_Db_Ddl_Table::TYPE_SMALLINT, null, array(
49
+ 'nullable' => false,
50
+ 'default' => '0',
51
+ ), 'Status')
52
+ ->addColumn('display_all_slide_title', Varien_Db_Ddl_Table::TYPE_SMALLINT, null, array(
53
+ 'nullable' => false,
54
+ 'default' => '0',
55
+ ), 'Display All Slide Title')
56
+ ->addColumn('display_all_slide_description', Varien_Db_Ddl_Table::TYPE_SMALLINT, null, array(
57
+ 'nullable' => false,
58
+ 'default' => '0',
59
+ ), 'Display All Slide Description')
60
+ ->addColumn('animation_in', Varien_Db_Ddl_Table::TYPE_TEXT, 256, null, array(
61
+ 'nullable' => false,
62
+ ), 'Animation In')
63
+ ->addColumn('animation_out', Varien_Db_Ddl_Table::TYPE_TEXT, 256, null, array(
64
+ 'nullable' => false,
65
+ ), 'Animation Out')
66
+ ->addColumn('navigation', Varien_Db_Ddl_Table::TYPE_SMALLINT, null, array(
67
+ 'nullable' => false,
68
+ 'default' => '0',
69
+ ), 'Navigation')
70
+ ->addColumn('navigation_bg_color', Varien_Db_Ddl_Table::TYPE_TEXT, 256, null, array(
71
+ 'nullable' => false,
72
+ ), 'Navigation Bg Color')
73
+ ->addColumn('navigation_bg_hover_color', Varien_Db_Ddl_Table::TYPE_TEXT, 256, null, array(
74
+ 'nullable' => false,
75
+ ), 'Navigation Bg Hover Color')
76
+ ->addColumn('navigation_arrow_color', Varien_Db_Ddl_Table::TYPE_TEXT, 256, null, array(
77
+ 'nullable' => false,
78
+ ), 'Navigation Arrow Color')
79
+ ->addColumn('navigation_arrow_hover_color', Varien_Db_Ddl_Table::TYPE_TEXT, 256, null, array(
80
+ 'nullable' => false,
81
+ ), 'Navigation Arrow Hover Color')
82
+ ->addColumn('pagination', Varien_Db_Ddl_Table::TYPE_SMALLINT, null, array(
83
+ 'nullable' => false,
84
+ 'default' => '0',
85
+ ), 'Pagination')
86
+ ->addColumn('pagination_bg_color', Varien_Db_Ddl_Table::TYPE_TEXT, 256, null, array(
87
+ 'nullable' => false,
88
+ ), 'Pagination Bg Color')
89
+ ->addColumn('pagination_bg_hover_color', Varien_Db_Ddl_Table::TYPE_TEXT, 256, null, array(
90
+ 'nullable' => false,
91
+ ), 'Pagination Bg Hover Color')
92
+ ->addColumn('auto_play', Varien_Db_Ddl_Table::TYPE_BIGINT, null, array(
93
+ 'nullable' => false,
94
+ ), 'Auto Play');
95
+
96
+ $installer->getConnection()->createTable($table);
97
+
98
+ $installer->endSetup();
app/design/adminhtml/default/default/layout/bannerslider.xml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <bannerslider_adminhtml_category_index>
4
+ <reference name="content">
5
+ <block type="bannerslider/adminhtml_slider" name="category"></block>
6
+ </reference>
7
+ </bannerslider_adminhtml_category_index>
8
+ <bannerslider_adminhtml_image_index>
9
+ <reference name="content">
10
+ <block type="bannerslider/adminhtml_slide" name="image"></block>
11
+ </reference>
12
+ </bannerslider_adminhtml_image_index>
13
+ <!-- Below are the necessary JS files for the WYSIWYG editor -->
14
+ <default>
15
+ <reference name="head">
16
+ <action method="addItem">
17
+ <type>js</type>
18
+ <name>vsourz/bannerslider/jscolor.js</name>
19
+ </action>
20
+ <action method="setCanLoadExtJs">
21
+ <flag>1</flag>
22
+ </action>
23
+ <action method="addJs">
24
+ <script>mage/adminhtml/variables.js</script>
25
+ </action>
26
+ <action method="addJs">
27
+ <script>mage/adminhtml/wysiwyg/widget.js</script>
28
+ </action>
29
+ <action method="addJs">
30
+ <script>lib/flex.js</script>
31
+ </action>
32
+ <action method="addJs">
33
+ <script>lib/FABridge.js</script>
34
+ </action>
35
+ <action method="addJs">
36
+ <script>mage/adminhtml/flexuploader.js</script>
37
+ </action>
38
+ <action method="addJs">
39
+ <script>mage/adminhtml/browser.js</script>
40
+ </action>
41
+ <action method="addJs">
42
+ <script>prototype/window.js</script>
43
+ </action>
44
+ <action method="addItem">
45
+ <type>js_css</type>
46
+ <name>prototype/windows/themes/default.css</name>
47
+ </action>
48
+ <action method="addItem">
49
+ <type>js_css</type>
50
+ <name>prototype/windows/themes/magento.css</name>
51
+ </action>
52
+ <action method="addCss">
53
+ <stylesheet>lib/prototype/windows/themes/magento.css</stylesheet>
54
+ </action>
55
+ </reference>
56
+ </default>
57
+ </layout>
app/design/frontend/base/default/layout/bannerslider.xml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="head">
5
+ <action method="addItem"><type>skin_js</type><name>js/bannerslider/no-conflict.js</name></action>
6
+ <action method="addItem" ifconfig="bannerslider/settings/loadjs"><type>skin_js</type><name>js/bannerslider/jquery-1.10.2.min.js</name></action>
7
+ <action method="addItem"><type>skin_css</type><name>css/bannerslider/bannerslider.css</name></action>
8
+ <action method="addItem"><type>skin_css</type><name>css/bannerslider/animate.min.css</name></action>
9
+ <action method="addItem"><type>skin_js</type><name>js/bannerslider/owl.slider.js</name></action>
10
+ <action method="addItem"><type>skin_css</type><name>css/bannerslider/owl.carousel.css</name></action>
11
+ </reference>
12
+ </default>
13
+ </layout>
app/design/frontend/base/default/template/bannerslider/bannerslider.phtml ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $collection = $this->getImages();
3
+ $imageData = $collection->getData();
4
+ $catCollection = $this->getCategoryData();
5
+ $catData = $catCollection->getData();
6
+ ?>
7
+
8
+ <?php foreach($catData as $key => $value):
9
+ $sliderId=$value['slider_id'];
10
+ $sliderTitle=$value['slider_title'];
11
+ $status=$value['status'];
12
+ $title=$value['display_all_slide_title'];
13
+ $description=$value['display_all_slide_description'];
14
+ $animationIn=$value['animation_in'];
15
+ $animationOut=$value['animation_out'];
16
+ $navigation=($value['navigation']==0)?"true":"false";
17
+ $navigationBgColor=$value['navigation_bg_color'];
18
+ $navigationHoverColor=$value['navigation_bg_hover_color'];
19
+ $navigationArrowColor=$value['navigation_arrow_color'];
20
+ $navigationArrowHoverColor=$value['navigation_arrow_hover_color'];
21
+ $pagination=($value['pagination']==0)?"true":"false";
22
+ $paginationBgColor=$value['pagination_bg_color'];
23
+ $paginationHoverColor=$value['pagination_bg_hover_color'];
24
+ $autoplay=($value['auto_play']==0)?"false":"true";
25
+ $autoplayTimeout=($value['auto_play']==0)?0:$value['auto_play'];
26
+ endforeach;
27
+ ?>
28
+
29
+ <?php if($status==1): ?>
30
+ <div class="image-gallery-outer">
31
+ <div class="image-detail">
32
+ <ul id="banner-slider<?php echo $sliderId ?>" class="banner-slider">
33
+ <?php foreach($imageData as $data): ?>
34
+ <?php //print_r($data); ?>
35
+ <li class="banner-slide">
36
+ <div class="img-box">
37
+ <div class="img-box-inner">
38
+ <img src="<?php echo Mage::getBaseUrl('media').$data['slide_img']; ?>" alt="<?php echo $data['slide_title']; ?>"/>
39
+ <div class="slide-desc-box t-<?php echo $data['text_align']; ?>">
40
+ <div class="slide-content" style="color:#<?php echo $data['text_color']; ?>">
41
+ <?php if($title==0): ?>
42
+ <h3 class="slide-title" style="color:#<?php echo $data['text_color']; ?>">
43
+ <?php echo $data['slide_title']; ?>
44
+ </h3><?php
45
+ endif;
46
+ ?>
47
+ <?php if($description==0): ?>
48
+ <div class="slide-desc">
49
+ <?php echo $data['slide_description']; ?>
50
+ </div><?php
51
+ endif;
52
+ ?>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </li>
58
+ <?php endforeach; ?>
59
+ </ul>
60
+ </div>
61
+ </div>
62
+ <!-- Script -->
63
+ <script type="text/javascript">
64
+ jQuery.noConflict();
65
+ jQuery(document).ready(function ($) {
66
+ $('#banner-slider<?php echo $sliderId; ?>').owlSlider({
67
+ animateOut:'<?php echo $animationOut; ?>',
68
+ animateIn:'<?php echo $animationIn; ?>',
69
+ items:1,
70
+ margin:0,
71
+ stagePadding:0,
72
+ autoplay:<?php echo $autoplay; ?>,
73
+ autoplayTimeout:<?php echo $autoplayTimeout; ?>,
74
+ nav:<?php echo $navigation; ?>,
75
+ navText:['<','>'],
76
+ smartSpeed:450,
77
+ loop:true,
78
+ dots:<?php echo $pagination; ?>
79
+ });
80
+ });
81
+ </script>
82
+ <!-- Style -->
83
+ <style>
84
+ #banner-slider<?php echo $sliderId; ?>.owl-theme .owl-controls .owl-nav div
85
+ {
86
+ background:#<?php echo $navigationBgColor; ?>;
87
+ color:#<?php echo $navigationArrowColor;?>
88
+ }
89
+ #banner-slider<?php echo $sliderId; ?>.owl-theme .owl-controls .owl-nav div:hover
90
+ {
91
+ background:#<?php echo $navigationHoverColor; ?>;
92
+ color:#<?php echo $navigationArrowHoverColor;?>
93
+ }
94
+ #banner-slider<?php echo $sliderId; ?>.owl-theme .owl-controls .owl-dot span
95
+ {
96
+ background:#<?php echo $paginationBgColor; ?>;
97
+ }
98
+ #banner-slider<?php echo $sliderId; ?>.owl-theme .owl-controls .owl-dot.active span,
99
+ #banner-slider<?php echo $sliderId; ?>.owl-theme .owl-controls .owl-dot:hover span
100
+ {
101
+ background:#<?php echo $paginationHoverColor; ?>;
102
+ }
103
+ </style><?php
104
+ endif;
105
+ ?>
app/etc/modules/Vsourz_Bannerslider.xml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * @category Vsourz
17
+ * @package Vsourz_Layerslider
18
+ * @copyright Copyright (c) 2014 Vsourz Ltd
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ -->
22
+ <config>
23
+ <modules>
24
+ <Vsourz_Bannerslider>
25
+ <active>true</active>
26
+ <codePool>community</codePool>
27
+ </Vsourz_Bannerslider>
28
+ </modules>
29
+ </config>
js/vsourz/bannerslider/arrow.gif ADDED
Binary file
js/vsourz/bannerslider/cross.gif ADDED
Binary file
js/vsourz/bannerslider/hs.png ADDED
Binary file
js/vsourz/bannerslider/hv.png ADDED
Binary file
js/vsourz/bannerslider/jscolor.js ADDED
@@ -0,0 +1,1010 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * jscolor, JavaScript Color Picker
3
+ *
4
+ * @version 1.4.4
5
+ * @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
6
+ * @author Jan Odvarko, http://odvarko.cz
7
+ * @created 2008-06-15
8
+ * @updated 2014-12-09
9
+ * @link http://jscolor.com
10
+ */
11
+
12
+
13
+ var jscolor = {
14
+
15
+
16
+ dir : '', // location of jscolor directory (leave empty to autodetect)
17
+ bindClass : 'color', // class name
18
+ binding : true, // automatic binding via <input class="...">
19
+ preloading : true, // use image preloading?
20
+
21
+
22
+ install : function() {
23
+ jscolor.addEvent(window, 'load', jscolor.init);
24
+ },
25
+
26
+
27
+ init : function() {
28
+ if(jscolor.binding) {
29
+ jscolor.bind();
30
+ }
31
+ if(jscolor.preloading) {
32
+ jscolor.preload();
33
+ }
34
+ },
35
+
36
+
37
+ getDir : function() {
38
+ if(!jscolor.dir) {
39
+ var detected = jscolor.detectDir();
40
+ jscolor.dir = detected!==false ? detected : 'jscolor/';
41
+ }
42
+ return jscolor.dir;
43
+ },
44
+
45
+
46
+ detectDir : function() {
47
+ var base = location.href;
48
+
49
+ var e = document.getElementsByTagName('base');
50
+ for(var i=0; i<e.length; i+=1) {
51
+ if(e[i].href) { base = e[i].href; }
52
+ }
53
+
54
+ var e = document.getElementsByTagName('script');
55
+ for(var i=0; i<e.length; i+=1) {
56
+ if(e[i].src && /(^|\/)jscolor\.js([?#].*)?$/i.test(e[i].src)) {
57
+ var src = new jscolor.URI(e[i].src);
58
+ var srcAbs = src.toAbsolute(base);
59
+ srcAbs.path = srcAbs.path.replace(/[^\/]+$/, ''); // remove filename
60
+ srcAbs.query = null;
61
+ srcAbs.fragment = null;
62
+ return srcAbs.toString();
63
+ }
64
+ }
65
+ return false;
66
+ },
67
+
68
+
69
+ bind : function() {
70
+ var matchClass = new RegExp('(^|\\s)('+jscolor.bindClass+')(\\s*(\\{[^}]*\\})|\\s|$)', 'i');
71
+ var e = document.getElementsByTagName('input');
72
+ for(var i=0; i<e.length; i+=1) {
73
+ if(jscolor.isColorAttrSupported && e[i].type.toLowerCase() == 'color') {
74
+ // skip inputs of type 'color' if the browser supports this feature
75
+ continue;
76
+ }
77
+ var m;
78
+ if(!e[i].color && e[i].className && (m = e[i].className.match(matchClass))) {
79
+ var prop = {};
80
+ if(m[4]) {
81
+ try {
82
+ prop = (new Function ('return (' + m[4] + ')'))();
83
+ } catch(eInvalidProp) {}
84
+ }
85
+ e[i].color = new jscolor.color(e[i], prop);
86
+ }
87
+ }
88
+ },
89
+
90
+
91
+ preload : function() {
92
+ for(var fn in jscolor.imgRequire) {
93
+ if(jscolor.imgRequire.hasOwnProperty(fn)) {
94
+ jscolor.loadImage(fn);
95
+ }
96
+ }
97
+ },
98
+
99
+
100
+ images : {
101
+ pad : [ 181, 101 ],
102
+ sld : [ 16, 101 ],
103
+ cross : [ 15, 15 ],
104
+ arrow : [ 7, 11 ]
105
+ },
106
+
107
+
108
+ imgRequire : {},
109
+ imgLoaded : {},
110
+
111
+
112
+ requireImage : function(filename) {
113
+ jscolor.imgRequire[filename] = true;
114
+ },
115
+
116
+
117
+ loadImage : function(filename) {
118
+ if(!jscolor.imgLoaded[filename]) {
119
+ jscolor.imgLoaded[filename] = new Image();
120
+ jscolor.imgLoaded[filename].src = jscolor.getDir()+filename;
121
+ }
122
+ },
123
+
124
+
125
+ fetchElement : function(mixed) {
126
+ return typeof mixed === 'string' ? document.getElementById(mixed) : mixed;
127
+ },
128
+
129
+
130
+ addEvent : function(el, evnt, func) {
131
+ if(el.addEventListener) {
132
+ el.addEventListener(evnt, func, false);
133
+ } else if(el.attachEvent) {
134
+ el.attachEvent('on'+evnt, func);
135
+ }
136
+ },
137
+
138
+
139
+ fireEvent : function(el, evnt) {
140
+ if(!el) {
141
+ return;
142
+ }
143
+ if(document.createEvent) {
144
+ var ev = document.createEvent('HTMLEvents');
145
+ ev.initEvent(evnt, true, true);
146
+ el.dispatchEvent(ev);
147
+ } else if(document.createEventObject) {
148
+ var ev = document.createEventObject();
149
+ el.fireEvent('on'+evnt, ev);
150
+ } else if(el['on'+evnt]) { // alternatively use the traditional event model (IE5)
151
+ el['on'+evnt]();
152
+ }
153
+ },
154
+
155
+
156
+ getElementPos : function(e) {
157
+ var e1=e, e2=e;
158
+ var x=0, y=0;
159
+ if(e1.offsetParent) {
160
+ do {
161
+ x += e1.offsetLeft;
162
+ y += e1.offsetTop;
163
+ } while(e1 = e1.offsetParent);
164
+ }
165
+ while((e2 = e2.parentNode) && e2.nodeName.toUpperCase() !== 'BODY') {
166
+ x -= e2.scrollLeft;
167
+ y -= e2.scrollTop;
168
+ }
169
+ return [x, y];
170
+ },
171
+
172
+
173
+ getElementSize : function(e) {
174
+ return [e.offsetWidth, e.offsetHeight];
175
+ },
176
+
177
+
178
+ getRelMousePos : function(e) {
179
+ var x = 0, y = 0;
180
+ if (!e) { e = window.event; }
181
+ if (typeof e.offsetX === 'number') {
182
+ x = e.offsetX;
183
+ y = e.offsetY;
184
+ } else if (typeof e.layerX === 'number') {
185
+ x = e.layerX;
186
+ y = e.layerY;
187
+ }
188
+ return { x: x, y: y };
189
+ },
190
+
191
+
192
+ getViewPos : function() {
193
+ if(typeof window.pageYOffset === 'number') {
194
+ return [window.pageXOffset, window.pageYOffset];
195
+ } else if(document.body && (document.body.scrollLeft || document.body.scrollTop)) {
196
+ return [document.body.scrollLeft, document.body.scrollTop];
197
+ } else if(document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
198
+ return [document.documentElement.scrollLeft, document.documentElement.scrollTop];
199
+ } else {
200
+ return [0, 0];
201
+ }
202
+ },
203
+
204
+
205
+ getViewSize : function() {
206
+ if(typeof window.innerWidth === 'number') {
207
+ return [window.innerWidth, window.innerHeight];
208
+ } else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
209
+ return [document.body.clientWidth, document.body.clientHeight];
210
+ } else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
211
+ return [document.documentElement.clientWidth, document.documentElement.clientHeight];
212
+ } else {
213
+ return [0, 0];
214
+ }
215
+ },
216
+
217
+
218
+ URI : function(uri) { // See RFC3986
219
+
220
+ this.scheme = null;
221
+ this.authority = null;
222
+ this.path = '';
223
+ this.query = null;
224
+ this.fragment = null;
225
+
226
+ this.parse = function(uri) {
227
+ var m = uri.match(/^(([A-Za-z][0-9A-Za-z+.-]*)(:))?((\/\/)([^\/?#]*))?([^?#]*)((\?)([^#]*))?((#)(.*))?/);
228
+ this.scheme = m[3] ? m[2] : null;
229
+ this.authority = m[5] ? m[6] : null;
230
+ this.path = m[7];
231
+ this.query = m[9] ? m[10] : null;
232
+ this.fragment = m[12] ? m[13] : null;
233
+ return this;
234
+ };
235
+
236
+ this.toString = function() {
237
+ var result = '';
238
+ if(this.scheme !== null) { result = result + this.scheme + ':'; }
239
+ if(this.authority !== null) { result = result + '//' + this.authority; }
240
+ if(this.path !== null) { result = result + this.path; }
241
+ if(this.query !== null) { result = result + '?' + this.query; }
242
+ if(this.fragment !== null) { result = result + '#' + this.fragment; }
243
+ return result;
244
+ };
245
+
246
+ this.toAbsolute = function(base) {
247
+ var base = new jscolor.URI(base);
248
+ var r = this;
249
+ var t = new jscolor.URI;
250
+
251
+ if(base.scheme === null) { return false; }
252
+
253
+ if(r.scheme !== null && r.scheme.toLowerCase() === base.scheme.toLowerCase()) {
254
+ r.scheme = null;
255
+ }
256
+
257
+ if(r.scheme !== null) {
258
+ t.scheme = r.scheme;
259
+ t.authority = r.authority;
260
+ t.path = removeDotSegments(r.path);
261
+ t.query = r.query;
262
+ } else {
263
+ if(r.authority !== null) {
264
+ t.authority = r.authority;
265
+ t.path = removeDotSegments(r.path);
266
+ t.query = r.query;
267
+ } else {
268
+ if(r.path === '') {
269
+ t.path = base.path;
270
+ if(r.query !== null) {
271
+ t.query = r.query;
272
+ } else {
273
+ t.query = base.query;
274
+ }
275
+ } else {
276
+ if(r.path.substr(0,1) === '/') {
277
+ t.path = removeDotSegments(r.path);
278
+ } else {
279
+ if(base.authority !== null && base.path === '') {
280
+ t.path = '/'+r.path;
281
+ } else {
282
+ t.path = base.path.replace(/[^\/]+$/,'')+r.path;
283
+ }
284
+ t.path = removeDotSegments(t.path);
285
+ }
286
+ t.query = r.query;
287
+ }
288
+ t.authority = base.authority;
289
+ }
290
+ t.scheme = base.scheme;
291
+ }
292
+ t.fragment = r.fragment;
293
+
294
+ return t;
295
+ };
296
+
297
+ function removeDotSegments(path) {
298
+ var out = '';
299
+ while(path) {
300
+ if(path.substr(0,3)==='../' || path.substr(0,2)==='./') {
301
+ path = path.replace(/^\.+/,'').substr(1);
302
+ } else if(path.substr(0,3)==='/./' || path==='/.') {
303
+ path = '/'+path.substr(3);
304
+ } else if(path.substr(0,4)==='/../' || path==='/..') {
305
+ path = '/'+path.substr(4);
306
+ out = out.replace(/\/?[^\/]*$/, '');
307
+ } else if(path==='.' || path==='..') {
308
+ path = '';
309
+ } else {
310
+ var rm = path.match(/^\/?[^\/]*/)[0];
311
+ path = path.substr(rm.length);
312
+ out = out + rm;
313
+ }
314
+ }
315
+ return out;
316
+ }
317
+
318
+ if(uri) {
319
+ this.parse(uri);
320
+ }
321
+
322
+ },
323
+
324
+
325
+ //
326
+ // Usage example:
327
+ // var myColor = new jscolor.color(myInputElement)
328
+ //
329
+
330
+ color : function(target, prop) {
331
+
332
+
333
+ this.required = true; // refuse empty values?
334
+ this.adjust = true; // adjust value to uniform notation?
335
+ this.hash = false; // prefix color with # symbol?
336
+ this.caps = true; // uppercase?
337
+ this.slider = true; // show the value/saturation slider?
338
+ this.valueElement = target; // value holder
339
+ this.styleElement = target; // where to reflect current color
340
+ this.onImmediateChange = null; // onchange callback (can be either string or function)
341
+ this.hsv = [0, 0, 1]; // read-only 0-6, 0-1, 0-1
342
+ this.rgb = [1, 1, 1]; // read-only 0-1, 0-1, 0-1
343
+ this.minH = 0; // read-only 0-6
344
+ this.maxH = 6; // read-only 0-6
345
+ this.minS = 0; // read-only 0-1
346
+ this.maxS = 1; // read-only 0-1
347
+ this.minV = 0; // read-only 0-1
348
+ this.maxV = 1; // read-only 0-1
349
+
350
+ this.pickerOnfocus = true; // display picker on focus?
351
+ this.pickerMode = 'HSV'; // HSV | HVS
352
+ this.pickerPosition = 'bottom'; // left | right | top | bottom
353
+ this.pickerSmartPosition = true; // automatically adjust picker position when necessary
354
+ this.pickerButtonHeight = 20; // px
355
+ this.pickerClosable = false;
356
+ this.pickerCloseText = 'Close';
357
+ this.pickerButtonColor = 'ButtonText'; // px
358
+ this.pickerFace = 10; // px
359
+ this.pickerFaceColor = 'ThreeDFace'; // CSS color
360
+ this.pickerBorder = 1; // px
361
+ this.pickerBorderColor = 'ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight'; // CSS color
362
+ this.pickerInset = 1; // px
363
+ this.pickerInsetColor = 'ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow'; // CSS color
364
+ this.pickerZIndex = 10000;
365
+
366
+
367
+ for(var p in prop) {
368
+ if(prop.hasOwnProperty(p)) {
369
+ this[p] = prop[p];
370
+ }
371
+ }
372
+
373
+
374
+ this.hidePicker = function() {
375
+ if(isPickerOwner()) {
376
+ removePicker();
377
+ }
378
+ };
379
+
380
+
381
+ this.showPicker = function() {
382
+ if(!isPickerOwner()) {
383
+ var tp = jscolor.getElementPos(target); // target pos
384
+ var ts = jscolor.getElementSize(target); // target size
385
+ var vp = jscolor.getViewPos(); // view pos
386
+ var vs = jscolor.getViewSize(); // view size
387
+ var ps = getPickerDims(this); // picker size
388
+ var a, b, c;
389
+ switch(this.pickerPosition.toLowerCase()) {
390
+ case 'left': a=1; b=0; c=-1; break;
391
+ case 'right':a=1; b=0; c=1; break;
392
+ case 'top': a=0; b=1; c=-1; break;
393
+ default: a=0; b=1; c=1; break;
394
+ }
395
+ var l = (ts[b]+ps[b])/2;
396
+
397
+ // picker pos
398
+ if (!this.pickerSmartPosition) {
399
+ var pp = [
400
+ tp[a],
401
+ tp[b]+ts[b]-l+l*c
402
+ ];
403
+ } else {
404
+ var pp = [
405
+ -vp[a]+tp[a]+ps[a] > vs[a] ?
406
+ (-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) :
407
+ tp[a],
408
+ -vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ?
409
+ (-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) :
410
+ (tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c)
411
+ ];
412
+ }
413
+ drawPicker(pp[a], pp[b]);
414
+ }
415
+ };
416
+
417
+
418
+ this.importColor = function() {
419
+ if(!valueElement) {
420
+ this.exportColor();
421
+ } else {
422
+ if(!this.adjust) {
423
+ if(!this.fromString(valueElement.value, leaveValue)) {
424
+ styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage;
425
+ styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor;
426
+ styleElement.style.color = styleElement.jscStyle.color;
427
+ this.exportColor(leaveValue | leaveStyle);
428
+ }
429
+ } else if(!this.required && /^\s*$/.test(valueElement.value)) {
430
+ valueElement.value = '';
431
+ styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage;
432
+ styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor;
433
+ styleElement.style.color = styleElement.jscStyle.color;
434
+ this.exportColor(leaveValue | leaveStyle);
435
+
436
+ } else if(this.fromString(valueElement.value)) {
437
+ // OK
438
+ } else {
439
+ this.exportColor();
440
+ }
441
+ }
442
+ };
443
+
444
+
445
+ this.exportColor = function(flags) {
446
+ if(!(flags & leaveValue) && valueElement) {
447
+ var value = this.toString();
448
+ if(this.caps) { value = value.toUpperCase(); }
449
+ if(this.hash) { value = '#'+value; }
450
+ valueElement.value = value;
451
+ }
452
+ if(!(flags & leaveStyle) && styleElement) {
453
+ styleElement.style.backgroundImage = "none";
454
+ styleElement.style.backgroundColor =
455
+ '#'+this.toString();
456
+ styleElement.style.color =
457
+ 0.213 * this.rgb[0] +
458
+ 0.715 * this.rgb[1] +
459
+ 0.072 * this.rgb[2]
460
+ < 0.5 ? '#FFF' : '#000';
461
+ }
462
+ if(!(flags & leavePad) && isPickerOwner()) {
463
+ redrawPad();
464
+ }
465
+ if(!(flags & leaveSld) && isPickerOwner()) {
466
+ redrawSld();
467
+ }
468
+ };
469
+
470
+
471
+ this.fromHSV = function(h, s, v, flags) { // null = don't change
472
+ if(h !== null) { h = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, h)); }
473
+ if(s !== null) { s = Math.max(0.0, this.minS, Math.min(1.0, this.maxS, s)); }
474
+ if(v !== null) { v = Math.max(0.0, this.minV, Math.min(1.0, this.maxV, v)); }
475
+
476
+ this.rgb = HSV_RGB(
477
+ h===null ? this.hsv[0] : (this.hsv[0]=h),
478
+ s===null ? this.hsv[1] : (this.hsv[1]=s),
479
+ v===null ? this.hsv[2] : (this.hsv[2]=v)
480
+ );
481
+
482
+ this.exportColor(flags);
483
+ };
484
+
485
+
486
+ this.fromRGB = function(r, g, b, flags) { // null = don't change
487
+ if(r !== null) { r = Math.max(0.0, Math.min(1.0, r)); }
488
+ if(g !== null) { g = Math.max(0.0, Math.min(1.0, g)); }
489
+ if(b !== null) { b = Math.max(0.0, Math.min(1.0, b)); }
490
+
491
+ var hsv = RGB_HSV(
492
+ r===null ? this.rgb[0] : r,
493
+ g===null ? this.rgb[1] : g,
494
+ b===null ? this.rgb[2] : b
495
+ );
496
+ if(hsv[0] !== null) {
497
+ this.hsv[0] = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, hsv[0]));
498
+ }
499
+ if(hsv[2] !== 0) {
500
+ this.hsv[1] = hsv[1]===null ? null : Math.max(0.0, this.minS, Math.min(1.0, this.maxS, hsv[1]));
501
+ }
502
+ this.hsv[2] = hsv[2]===null ? null : Math.max(0.0, this.minV, Math.min(1.0, this.maxV, hsv[2]));
503
+
504
+ // update RGB according to final HSV, as some values might be trimmed
505
+ var rgb = HSV_RGB(this.hsv[0], this.hsv[1], this.hsv[2]);
506
+ this.rgb[0] = rgb[0];
507
+ this.rgb[1] = rgb[1];
508
+ this.rgb[2] = rgb[2];
509
+
510
+ this.exportColor(flags);
511
+ };
512
+
513
+
514
+ this.fromString = function(hex, flags) {
515
+ var m = hex.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i);
516
+ if(!m) {
517
+ return false;
518
+ } else {
519
+ if(m[1].length === 6) { // 6-char notation
520
+ this.fromRGB(
521
+ parseInt(m[1].substr(0,2),16) / 255,
522
+ parseInt(m[1].substr(2,2),16) / 255,
523
+ parseInt(m[1].substr(4,2),16) / 255,
524
+ flags
525
+ );
526
+ } else { // 3-char notation
527
+ this.fromRGB(
528
+ parseInt(m[1].charAt(0)+m[1].charAt(0),16) / 255,
529
+ parseInt(m[1].charAt(1)+m[1].charAt(1),16) / 255,
530
+ parseInt(m[1].charAt(2)+m[1].charAt(2),16) / 255,
531
+ flags
532
+ );
533
+ }
534
+ return true;
535
+ }
536
+ };
537
+
538
+
539
+ this.toString = function() {
540
+ return (
541
+ (0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) +
542
+ (0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) +
543
+ (0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1)
544
+ );
545
+ };
546
+
547
+
548
+ function RGB_HSV(r, g, b) {
549
+ var n = Math.min(Math.min(r,g),b);
550
+ var v = Math.max(Math.max(r,g),b);
551
+ var m = v - n;
552
+ if(m === 0) { return [ null, 0, v ]; }
553
+ var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m);
554
+ return [ h===6?0:h, m/v, v ];
555
+ }
556
+
557
+
558
+ function HSV_RGB(h, s, v) {
559
+ if(h === null) { return [ v, v, v ]; }
560
+ var i = Math.floor(h);
561
+ var f = i%2 ? h-i : 1-(h-i);
562
+ var m = v * (1 - s);
563
+ var n = v * (1 - s*f);
564
+ switch(i) {
565
+ case 6:
566
+ case 0: return [v,n,m];
567
+ case 1: return [n,v,m];
568
+ case 2: return [m,v,n];
569
+ case 3: return [m,n,v];
570
+ case 4: return [n,m,v];
571
+ case 5: return [v,m,n];
572
+ }
573
+ }
574
+
575
+
576
+ function removePicker() {
577
+ delete jscolor.picker.owner;
578
+ document.getElementsByTagName('body')[0].removeChild(jscolor.picker.boxB);
579
+ }
580
+
581
+
582
+ function drawPicker(x, y) {
583
+ if(!jscolor.picker) {
584
+ jscolor.picker = {
585
+ box : document.createElement('div'),
586
+ boxB : document.createElement('div'),
587
+ pad : document.createElement('div'),
588
+ padB : document.createElement('div'),
589
+ padM : document.createElement('div'),
590
+ sld : document.createElement('div'),
591
+ sldB : document.createElement('div'),
592
+ sldM : document.createElement('div'),
593
+ btn : document.createElement('div'),
594
+ btnS : document.createElement('span'),
595
+ btnT : document.createTextNode(THIS.pickerCloseText)
596
+ };
597
+ for(var i=0,segSize=4; i<jscolor.images.sld[1]; i+=segSize) {
598
+ var seg = document.createElement('div');
599
+ seg.style.height = segSize+'px';
600
+ seg.style.fontSize = '1px';
601
+ seg.style.lineHeight = '0';
602
+ jscolor.picker.sld.appendChild(seg);
603
+ }
604
+ jscolor.picker.sldB.appendChild(jscolor.picker.sld);
605
+ jscolor.picker.box.appendChild(jscolor.picker.sldB);
606
+ jscolor.picker.box.appendChild(jscolor.picker.sldM);
607
+ jscolor.picker.padB.appendChild(jscolor.picker.pad);
608
+ jscolor.picker.box.appendChild(jscolor.picker.padB);
609
+ jscolor.picker.box.appendChild(jscolor.picker.padM);
610
+ jscolor.picker.btnS.appendChild(jscolor.picker.btnT);
611
+ jscolor.picker.btn.appendChild(jscolor.picker.btnS);
612
+ jscolor.picker.box.appendChild(jscolor.picker.btn);
613
+ jscolor.picker.boxB.appendChild(jscolor.picker.box);
614
+ }
615
+
616
+ var p = jscolor.picker;
617
+
618
+ // controls interaction
619
+ p.box.onmouseup =
620
+ p.box.onmouseout = function() { target.focus(); };
621
+ p.box.onmousedown = function() { abortBlur=true; };
622
+ p.box.onmousemove = function(e) {
623
+ if (holdPad || holdSld) {
624
+ holdPad && setPad(e);
625
+ holdSld && setSld(e);
626
+ if (document.selection) {
627
+ document.selection.empty();
628
+ } else if (window.getSelection) {
629
+ window.getSelection().removeAllRanges();
630
+ }
631
+ dispatchImmediateChange();
632
+ }
633
+ };
634
+ if('ontouchstart' in window) { // if touch device
635
+ var handle_touchmove = function(e) {
636
+ var event={
637
+ 'offsetX': e.touches[0].pageX-touchOffset.X,
638
+ 'offsetY': e.touches[0].pageY-touchOffset.Y
639
+ };
640
+ if (holdPad || holdSld) {
641
+ holdPad && setPad(event);
642
+ holdSld && setSld(event);
643
+ dispatchImmediateChange();
644
+ }
645
+ e.stopPropagation(); // prevent move "view" on broswer
646
+ e.preventDefault(); // prevent Default - Android Fix (else android generated only 1-2 touchmove events)
647
+ };
648
+ p.box.removeEventListener('touchmove', handle_touchmove, false)
649
+ p.box.addEventListener('touchmove', handle_touchmove, false)
650
+ }
651
+ p.padM.onmouseup =
652
+ p.padM.onmouseout = function() { if(holdPad) { holdPad=false; jscolor.fireEvent(valueElement,'change'); } };
653
+ p.padM.onmousedown = function(e) {
654
+ // if the slider is at the bottom, move it up
655
+ switch(modeID) {
656
+ case 0: if (THIS.hsv[2] === 0) { THIS.fromHSV(null, null, 1.0); }; break;
657
+ case 1: if (THIS.hsv[1] === 0) { THIS.fromHSV(null, 1.0, null); }; break;
658
+ }
659
+ holdSld=false;
660
+ holdPad=true;
661
+ setPad(e);
662
+ dispatchImmediateChange();
663
+ };
664
+ if('ontouchstart' in window) {
665
+ p.padM.addEventListener('touchstart', function(e) {
666
+ touchOffset={
667
+ 'X': e.target.offsetParent.offsetLeft,
668
+ 'Y': e.target.offsetParent.offsetTop
669
+ };
670
+ this.onmousedown({
671
+ 'offsetX':e.touches[0].pageX-touchOffset.X,
672
+ 'offsetY':e.touches[0].pageY-touchOffset.Y
673
+ });
674
+ });
675
+ }
676
+ p.sldM.onmouseup =
677
+ p.sldM.onmouseout = function() { if(holdSld) { holdSld=false; jscolor.fireEvent(valueElement,'change'); } };
678
+ p.sldM.onmousedown = function(e) {
679
+ holdPad=false;
680
+ holdSld=true;
681
+ setSld(e);
682
+ dispatchImmediateChange();
683
+ };
684
+ if('ontouchstart' in window) {
685
+ p.sldM.addEventListener('touchstart', function(e) {
686
+ touchOffset={
687
+ 'X': e.target.offsetParent.offsetLeft,
688
+ 'Y': e.target.offsetParent.offsetTop
689
+ };
690
+ this.onmousedown({
691
+ 'offsetX':e.touches[0].pageX-touchOffset.X,
692
+ 'offsetY':e.touches[0].pageY-touchOffset.Y
693
+ });
694
+ });
695
+ }
696
+
697
+ // picker
698
+ var dims = getPickerDims(THIS);
699
+ p.box.style.width = dims[0] + 'px';
700
+ p.box.style.height = dims[1] + 'px';
701
+
702
+ // picker border
703
+ p.boxB.style.position = 'absolute';
704
+ p.boxB.style.clear = 'both';
705
+ p.boxB.style.left = x+'px';
706
+ p.boxB.style.top = y+'px';
707
+ p.boxB.style.zIndex = THIS.pickerZIndex;
708
+ p.boxB.style.border = THIS.pickerBorder+'px solid';
709
+ p.boxB.style.borderColor = THIS.pickerBorderColor;
710
+ p.boxB.style.background = THIS.pickerFaceColor;
711
+
712
+ // pad image
713
+ p.pad.style.width = jscolor.images.pad[0]+'px';
714
+ p.pad.style.height = jscolor.images.pad[1]+'px';
715
+
716
+ // pad border
717
+ p.padB.style.position = 'absolute';
718
+ p.padB.style.left = THIS.pickerFace+'px';
719
+ p.padB.style.top = THIS.pickerFace+'px';
720
+ p.padB.style.border = THIS.pickerInset+'px solid';
721
+ p.padB.style.borderColor = THIS.pickerInsetColor;
722
+
723
+ // pad mouse area
724
+ p.padM.style.position = 'absolute';
725
+ p.padM.style.left = '0';
726
+ p.padM.style.top = '0';
727
+ p.padM.style.width = THIS.pickerFace + 2*THIS.pickerInset + jscolor.images.pad[0] + jscolor.images.arrow[0] + 'px';
728
+ p.padM.style.height = p.box.style.height;
729
+ p.padM.style.cursor = 'crosshair';
730
+
731
+ // slider image
732
+ p.sld.style.overflow = 'hidden';
733
+ p.sld.style.width = jscolor.images.sld[0]+'px';
734
+ p.sld.style.height = jscolor.images.sld[1]+'px';
735
+
736
+ // slider border
737
+ p.sldB.style.display = THIS.slider ? 'block' : 'none';
738
+ p.sldB.style.position = 'absolute';
739
+ p.sldB.style.right = THIS.pickerFace+'px';
740
+ p.sldB.style.top = THIS.pickerFace+'px';
741
+ p.sldB.style.border = THIS.pickerInset+'px solid';
742
+ p.sldB.style.borderColor = THIS.pickerInsetColor;
743
+
744
+ // slider mouse area
745
+ p.sldM.style.display = THIS.slider ? 'block' : 'none';
746
+ p.sldM.style.position = 'absolute';
747
+ p.sldM.style.right = '0';
748
+ p.sldM.style.top = '0';
749
+ p.sldM.style.width = jscolor.images.sld[0] + jscolor.images.arrow[0] + THIS.pickerFace + 2*THIS.pickerInset + 'px';
750
+ p.sldM.style.height = p.box.style.height;
751
+ try {
752
+ p.sldM.style.cursor = 'pointer';
753
+ } catch(eOldIE) {
754
+ p.sldM.style.cursor = 'hand';
755
+ }
756
+
757
+ // "close" button
758
+ function setBtnBorder() {
759
+ var insetColors = THIS.pickerInsetColor.split(/\s+/);
760
+ var pickerOutsetColor = insetColors.length < 2 ? insetColors[0] : insetColors[1] + ' ' + insetColors[0] + ' ' + insetColors[0] + ' ' + insetColors[1];
761
+ p.btn.style.borderColor = pickerOutsetColor;
762
+ }
763
+ p.btn.style.display = THIS.pickerClosable ? 'block' : 'none';
764
+ p.btn.style.position = 'absolute';
765
+ p.btn.style.left = THIS.pickerFace + 'px';
766
+ p.btn.style.bottom = THIS.pickerFace + 'px';
767
+ p.btn.style.padding = '0 15px';
768
+ p.btn.style.height = '18px';
769
+ p.btn.style.border = THIS.pickerInset + 'px solid';
770
+ setBtnBorder();
771
+ p.btn.style.color = THIS.pickerButtonColor;
772
+ p.btn.style.font = '12px sans-serif';
773
+ p.btn.style.textAlign = 'center';
774
+ try {
775
+ p.btn.style.cursor = 'pointer';
776
+ } catch(eOldIE) {
777
+ p.btn.style.cursor = 'hand';
778
+ }
779
+ p.btn.onmousedown = function () {
780
+ THIS.hidePicker();
781
+ };
782
+ p.btnS.style.lineHeight = p.btn.style.height;
783
+
784
+ // load images in optimal order
785
+ switch(modeID) {
786
+ case 0: var padImg = 'hs.png'; break;
787
+ case 1: var padImg = 'hv.png'; break;
788
+ }
789
+ p.padM.style.backgroundImage = "url('"+jscolor.getDir()+"cross.gif')";
790
+ p.padM.style.backgroundRepeat = "no-repeat";
791
+ p.sldM.style.backgroundImage = "url('"+jscolor.getDir()+"arrow.gif')";
792
+ p.sldM.style.backgroundRepeat = "no-repeat";
793
+ p.pad.style.backgroundImage = "url('"+jscolor.getDir()+padImg+"')";
794
+ p.pad.style.backgroundRepeat = "no-repeat";
795
+ p.pad.style.backgroundPosition = "0 0";
796
+
797
+ // place pointers
798
+ redrawPad();
799
+ redrawSld();
800
+
801
+ jscolor.picker.owner = THIS;
802
+ document.getElementsByTagName('body')[0].appendChild(p.boxB);
803
+ }
804
+
805
+
806
+ function getPickerDims(o) {
807
+ var dims = [
808
+ 2*o.pickerInset + 2*o.pickerFace + jscolor.images.pad[0] +
809
+ (o.slider ? 2*o.pickerInset + 2*jscolor.images.arrow[0] + jscolor.images.sld[0] : 0),
810
+ o.pickerClosable ?
811
+ 4*o.pickerInset + 3*o.pickerFace + jscolor.images.pad[1] + o.pickerButtonHeight :
812
+ 2*o.pickerInset + 2*o.pickerFace + jscolor.images.pad[1]
813
+ ];
814
+ return dims;
815
+ }
816
+
817
+
818
+ function redrawPad() {
819
+ // redraw the pad pointer
820
+ switch(modeID) {
821
+ case 0: var yComponent = 1; break;
822
+ case 1: var yComponent = 2; break;
823
+ }
824
+ var x = Math.round((THIS.hsv[0]/6) * (jscolor.images.pad[0]-1));
825
+ var y = Math.round((1-THIS.hsv[yComponent]) * (jscolor.images.pad[1]-1));
826
+ jscolor.picker.padM.style.backgroundPosition =
827
+ (THIS.pickerFace+THIS.pickerInset+x - Math.floor(jscolor.images.cross[0]/2)) + 'px ' +
828
+ (THIS.pickerFace+THIS.pickerInset+y - Math.floor(jscolor.images.cross[1]/2)) + 'px';
829
+
830
+ // redraw the slider image
831
+ var seg = jscolor.picker.sld.childNodes;
832
+
833
+ switch(modeID) {
834
+ case 0:
835
+ var rgb = HSV_RGB(THIS.hsv[0], THIS.hsv[1], 1);
836
+ for(var i=0; i<seg.length; i+=1) {
837
+ seg[i].style.backgroundColor = 'rgb('+
838
+ (rgb[0]*(1-i/seg.length)*100)+'%,'+
839
+ (rgb[1]*(1-i/seg.length)*100)+'%,'+
840
+ (rgb[2]*(1-i/seg.length)*100)+'%)';
841
+ }
842
+ break;
843
+ case 1:
844
+ var rgb, s, c = [ THIS.hsv[2], 0, 0 ];
845
+ var i = Math.floor(THIS.hsv[0]);
846
+ var f = i%2 ? THIS.hsv[0]-i : 1-(THIS.hsv[0]-i);
847
+ switch(i) {
848
+ case 6:
849
+ case 0: rgb=[0,1,2]; break;
850
+ case 1: rgb=[1,0,2]; break;
851
+ case 2: rgb=[2,0,1]; break;
852
+ case 3: rgb=[2,1,0]; break;
853
+ case 4: rgb=[1,2,0]; break;
854
+ case 5: rgb=[0,2,1]; break;
855
+ }
856
+ for(var i=0; i<seg.length; i+=1) {
857
+ s = 1 - 1/(seg.length-1)*i;
858
+ c[1] = c[0] * (1 - s*f);
859
+ c[2] = c[0] * (1 - s);
860
+ seg[i].style.backgroundColor = 'rgb('+
861
+ (c[rgb[0]]*100)+'%,'+
862
+ (c[rgb[1]]*100)+'%,'+
863
+ (c[rgb[2]]*100)+'%)';
864
+ }
865
+ break;
866
+ }
867
+ }
868
+
869
+
870
+ function redrawSld() {
871
+ // redraw the slider pointer
872
+ switch(modeID) {
873
+ case 0: var yComponent = 2; break;
874
+ case 1: var yComponent = 1; break;
875
+ }
876
+ var y = Math.round((1-THIS.hsv[yComponent]) * (jscolor.images.sld[1]-1));
877
+ jscolor.picker.sldM.style.backgroundPosition =
878
+ '0 ' + (THIS.pickerFace+THIS.pickerInset+y - Math.floor(jscolor.images.arrow[1]/2)) + 'px';
879
+ }
880
+
881
+
882
+ function isPickerOwner() {
883
+ return jscolor.picker && jscolor.picker.owner === THIS;
884
+ }
885
+
886
+
887
+ function blurTarget() {
888
+ if(valueElement === target) {
889
+ THIS.importColor();
890
+ }
891
+ if(THIS.pickerOnfocus) {
892
+ THIS.hidePicker();
893
+ }
894
+ }
895
+
896
+
897
+ function blurValue() {
898
+ if(valueElement !== target) {
899
+ THIS.importColor();
900
+ }
901
+ }
902
+
903
+
904
+ function setPad(e) {
905
+ var mpos = jscolor.getRelMousePos(e);
906
+ var x = mpos.x - THIS.pickerFace - THIS.pickerInset;
907
+ var y = mpos.y - THIS.pickerFace - THIS.pickerInset;
908
+ switch(modeID) {
909
+ case 0: THIS.fromHSV(x*(6/(jscolor.images.pad[0]-1)), 1 - y/(jscolor.images.pad[1]-1), null, leaveSld); break;
910
+ case 1: THIS.fromHSV(x*(6/(jscolor.images.pad[0]-1)), null, 1 - y/(jscolor.images.pad[1]-1), leaveSld); break;
911
+ }
912
+ }
913
+
914
+
915
+ function setSld(e) {
916
+ var mpos = jscolor.getRelMousePos(e);
917
+ var y = mpos.y - THIS.pickerFace - THIS.pickerInset;
918
+ switch(modeID) {
919
+ case 0: THIS.fromHSV(null, null, 1 - y/(jscolor.images.sld[1]-1), leavePad); break;
920
+ case 1: THIS.fromHSV(null, 1 - y/(jscolor.images.sld[1]-1), null, leavePad); break;
921
+ }
922
+ }
923
+
924
+
925
+ function dispatchImmediateChange() {
926
+ if (THIS.onImmediateChange) {
927
+ var callback;
928
+ if (typeof THIS.onImmediateChange === 'string') {
929
+ callback = new Function (THIS.onImmediateChange);
930
+ } else {
931
+ callback = THIS.onImmediateChange;
932
+ }
933
+ callback.call(THIS);
934
+ }
935
+ }
936
+
937
+
938
+ var THIS = this;
939
+ var modeID = this.pickerMode.toLowerCase()==='hvs' ? 1 : 0;
940
+ var abortBlur = false;
941
+ var
942
+ valueElement = jscolor.fetchElement(this.valueElement),
943
+ styleElement = jscolor.fetchElement(this.styleElement);
944
+ var
945
+ holdPad = false,
946
+ holdSld = false,
947
+ touchOffset = {};
948
+ var
949
+ leaveValue = 1<<0,
950
+ leaveStyle = 1<<1,
951
+ leavePad = 1<<2,
952
+ leaveSld = 1<<3;
953
+
954
+ jscolor.isColorAttrSupported = false;
955
+ var el = document.createElement('input');
956
+ if(el.setAttribute) {
957
+ el.setAttribute('type', 'color');
958
+ if(el.type.toLowerCase() == 'color') {
959
+ jscolor.isColorAttrSupported = true;
960
+ }
961
+ }
962
+
963
+ // target
964
+ jscolor.addEvent(target, 'focus', function() {
965
+ if(THIS.pickerOnfocus) { THIS.showPicker(); }
966
+ });
967
+ jscolor.addEvent(target, 'blur', function() {
968
+ if(!abortBlur) {
969
+ window.setTimeout(function(){ abortBlur || blurTarget(); abortBlur=false; }, 0);
970
+ } else {
971
+ abortBlur = false;
972
+ }
973
+ });
974
+
975
+ // valueElement
976
+ if(valueElement) {
977
+ var updateField = function() {
978
+ THIS.fromString(valueElement.value, leaveValue);
979
+ dispatchImmediateChange();
980
+ };
981
+ jscolor.addEvent(valueElement, 'keyup', updateField);
982
+ jscolor.addEvent(valueElement, 'input', updateField);
983
+ jscolor.addEvent(valueElement, 'blur', blurValue);
984
+ valueElement.setAttribute('autocomplete', 'off');
985
+ }
986
+
987
+ // styleElement
988
+ if(styleElement) {
989
+ styleElement.jscStyle = {
990
+ backgroundImage : styleElement.style.backgroundImage,
991
+ backgroundColor : styleElement.style.backgroundColor,
992
+ color : styleElement.style.color
993
+ };
994
+ }
995
+
996
+ // require images
997
+ switch(modeID) {
998
+ case 0: jscolor.requireImage('hs.png'); break;
999
+ case 1: jscolor.requireImage('hv.png'); break;
1000
+ }
1001
+ jscolor.requireImage('cross.gif');
1002
+ jscolor.requireImage('arrow.gif');
1003
+
1004
+ this.importColor();
1005
+ }
1006
+
1007
+ };
1008
+
1009
+
1010
+ jscolor.install();
media/bannerslider/favicon.ico ADDED
Binary file
package.xml ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Responsive_Owl_Slider</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/MIT">Massachusetts Institute of Technology License (MITL)</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Fully responsive banner slider built on OWL Carousel 2. 40+ Effects. Categorized banner management from Back-end</summary>
10
+ <description>An exclusive banner slider built on OWL Carousel JS that livens up your website with impressive and impactful banners. Give your image banners a radiant look with more than 40 effects. &#xD;
11
+ &#xD;
12
+ All it takes is 3 easy steps to have this on your website:&#xD;
13
+ &#xD;
14
+ Install the extension from Magento Connect&#xD;
15
+ Create Category, upload image banners, select Category and select effects you want&#xD;
16
+ Add the Code Snippet where you want the banner to be invoked&#xD;
17
+ &#xD;
18
+ Read How to use? section to find out more about the slider configurations&#xD;
19
+ &#xD;
20
+ Demo Link: http://extensiondemo.vsourz.co/&#xD;
21
+ &#xD;
22
+ Need Support? Click Here&#xD;
23
+ &#xD;
24
+ Features:&#xD;
25
+ &#xD;
26
+ - Simple, easy to use interface.&#xD;
27
+ - Creates Responsive slideshows within seconds.&#xD;
28
+ - Support for categorized banner sliders with ability to create unrestricted categories.&#xD;
29
+ - Unrestricted support for Image slides (supports Caption, Link, Description Text, Images, Videos, Maps).&#xD;
30
+ - Full Width Slider Support.&#xD;
31
+ - Fast &#x2013; only the minimum JavaScript and CSS is included in your page, making it faster to load.&#xD;
32
+ - Touch Swipe by Finger/Mouse.&#xD;
33
+ - 40plus animation effects.&#xD;
34
+ - Ability to manage banner effects and colors using Magento Backend.&#xD;
35
+ - Cross Browser, All Browsers Supported&#xD;
36
+ - Mobile Device Optimized&#xD;
37
+ - Publish/Unpublish Slides based on selected date&#xD;
38
+ &#xD;
39
+ How to use?&#xD;
40
+ &#xD;
41
+ Step 1: Install Extension from Magento Connect&#xD;
42
+ Step 2: Setup the Slider Category. Goto Banner Slider &gt;&gt; Manage Slide Category &gt;&gt; Add Category Slider and follow below steps as shown in the screenshot.&#xD;
43
+ http://extensiondemo.vsourz.co/media/wysiwyg/category1.jpg&#xD;
44
+ Step 3: Insert the image and associate it with the category. Goto Banner Slider &gt;&gt; Manage Slides &gt;&gt; Add Slide and follow below steps as shown in the screenshot.&#xD;
45
+ http://extensiondemo.vsourz.co/media/wysiwyg/slide1.jpg&#xD;
46
+ Step 4: Call the slider on the desired page using the predefined short codes.&#xD;
47
+ &#xD;
48
+ ** Shortcode&#xD;
49
+ ADMIN&#xD;
50
+ {{block type="bannerslider/bannerslider" name="bannerslider" category_id="1" template="bannerslider/bannerslider.phtml" }}&#xD;
51
+ &#xD;
52
+ XML&#xD;
53
+ &lt; reference name="content"&gt;&#xD;
54
+ &lt; block type="bannerslider/bannerslider" name="bannerslider" template="bannerslider/bannerslider.phtml"&gt;&#xD;
55
+ &lt; action method="setCategoryId"&gt;&lt; category_id&gt;1&lt; /category_id&gt;&lt; /action&gt;&#xD;
56
+ &lt; /block&gt;&#xD;
57
+ &lt; /reference&gt; &#xD;
58
+ &#xD;
59
+ HTML&#xD;
60
+ echo $this-&gt;getLayout()-&gt;createBlock('bannerslider/bannerslider')-&gt;setCategoryId('1')-&gt;setTemplate('bannerslider/bannerslider.phtml')-&gt;toHtml();&#xD;
61
+ &#xD;
62
+ Please Note: In the XML code, we have intentionally placed space in the XML tags. Please remove the spaces while adding the code.</description>
63
+ <notes>Fully responsive banner slider built on OWL Carousel 2. 40+ Effects. Categorized banner management from Back-end</notes>
64
+ <authors><author><name>Vsourz Digital</name><user>MAG002979323</user><email>mehul@vsourz.com</email></author></authors>
65
+ <date>2015-08-03</date>
66
+ <time>10:15:15</time>
67
+ <contents><target name="magecommunity"><dir name="Vsourz"><dir name="Bannerslider"><dir name="Block"><dir name="Adminhtml"><dir name="Bannerslider"><dir name="Renderer"><file name="Category.php" hash="435b1da95825c5ea6b477ff96d3d4391"/><file name="Catimage.php" hash="e5b371e90cb711133888a145454e3228"/><file name="Image.php" hash="f5d9724d63193c0387e2f87097dd2e12"/><file name="Status.php" hash="168f6ef1a43cd324acf32caa3aac4ba5"/></dir></dir><dir name="Category"><dir name="Edit"><file name="Form.php" hash="b2e367356e30c4c6c160970ea475cae5"/><dir name="Tabs"><file name="Form.php" hash="9cfdd467b7440c8ab611a6c72106aad1"/></dir><file name="Tabs.php" hash="829947261268f847a7471ac00806f6fd"/></dir><file name="Edit.php" hash="5f93ab08c68905a7239a70a284fb5540"/><file name="Grid.php" hash="d3b1f09b70ad9a1238298aaf7c67bde3"/></dir><dir name="Image"><dir name="Edit"><file name="Form.php" hash="94d630c37b94b27dd5e6a3c450914c3c"/><dir name="Tabs"><file name="Form.php" hash="1da8b221c2de6adf9cd15b074eccb64a"/></dir><file name="Tabs.php" hash="8d9dae43a3b3546554cd346758cb452e"/></dir><file name="Edit.php" hash="f20bf6f3a3cb48dd7e4e06fd87573a84"/><file name="Grid.php" hash="d662aa4b1fae64cf2eb9d9fbfda478b1"/></dir><file name="Slide.php" hash="ad91018546ea7878fcd626c2408f8fad"/><file name="Slider.php" hash="75e3f6c460c11c292340fa54b64770c5"/></dir><file name="Bannerslider.php" hash="ca75226a72738b6b1be4e5faa724e935"/></dir><dir name="Helper"><file name="Data.php" hash="128263516fa22072df8a1e7b3a2f3260"/></dir><dir name="Model"><file name="Align.php" hash="1aaafcef6317a5efad4b9bb7cd926c1d"/><file name="Animationin.php" hash="23bc1b215a2671721b3d2965faac9464"/><file name="Animationout.php" hash="d08ea1b53588d3957575d162ff6a2cdd"/><file name="Bannerslider.php" hash="07ded4de06b4e4cb5af358e114abe362"/><file name="Categoryval.php" hash="3a8b19e8954371e7a4b215237538bfef"/><file name="Imagecategory.php" hash="81e6e3410eab6d41f60abbc728776b66"/><file name="Imagedetail.php" hash="3d3cf19691756ae32575a238f2ab1fea"/><dir name="Resource"><dir name="Imagecategory"><file name="Collection.php" hash="3b4dcf09798007986115fae27198aca5"/></dir><file name="Imagecategory.php" hash="93275df9ac2459216d8ce95a2707811b"/><dir name="Imagedetail"><file name="Collection.php" hash="b8689924261b354a4d712a9a736f2449"/></dir><file name="Imagedetail.php" hash="e48c2814899f03e551dbd0d5650eb621"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="CategoryController.php" hash="0c7bb5ac471fd017f07126d6987a85dd"/><file name="ImageController.php" hash="676cdd67edf9e1e748714461ab259dcf"/></dir></dir><dir name="data"><dir name="bannerslider_setup"><file name="data-install-0.1.0.php" hash="b23d20d160568e71df2da142719a07b3"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="44c66d5233ae3e6582493c61b8c77864"/><file name="config.xml" hash="c40f10dabafa3e579a3dda8530a2b41d"/><file name="system.xml" hash="4c608359184cc7b3cd71c5fd6eaf074a"/></dir><dir name="sql"><dir name="bannerslider_setup"><file name="mysql4-install-0.1.0.php" hash="62bfd79eaaaf64ce235cabaffc8e40d4"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vsourz_Bannerslider.xml" hash="d1fd185de844ee5297e77deaf8870153"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="54205744501c78a0cd424a59f3092a88"/></dir><dir name="template"><dir name="bannerslider"><file name="bannerslider.phtml" hash=""/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="8cacfe5fdbed3ac4fdb75bfa2407ce6d"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="bannerslider"><file name="animate.css" hash="3f1e82dcc86df45a1943d41a049b8b51"/><file name="animate.min.css" hash="199ea108e710786634d182e11782de2a"/><file name="bannerslider.css" hash="d45581f5765c810ff4f16ec0c0577a01"/><file name="owl.carousel.css" hash="b51416af9e8adbe3d16f5f2526aba221"/></dir></dir><dir name="js"><dir name="bannerslider"><file name="jquery-1.10.2.min.js" hash="f49b02ff7ee95b2d6509a9e553759991"/><file name="no-conflict.js" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="owl.banner.min.js" hash="ffaa3c82ad2c6e216e68aca44746e1be"/><file name="owl.slider.js" hash="4876b7da868a30df943238018bb5cb6a"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="vsourz"><dir name="bannerslider"><file name="arrow.gif" hash="5034704a76cd55c1cbcbc58ea6bf523f"/><file name="cross.gif" hash="ba9a274b9323753cd95bc3b1eb2f4e5f"/><file name="hs.png" hash="fefa1a03d92ebad25c88dca94a0b63db"/><file name="hv.png" hash="990d71cada17da100653636cf8490884"/><file name="jscolor.js" hash="a26701f49bf33da8dc48f3431e5f4f42"/></dir></dir></dir></target><target name="magemedia"><dir name="bannerslider"><file name="favicon.ico" hash="88733ee53676a47fc354a61c32516e82"/></dir></target></contents>
68
+ <compatible/>
69
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
70
+ </package>
skin/frontend/base/default/css/bannerslider/animate.css ADDED
@@ -0,0 +1,3272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "UTF-8";
2
+
3
+ /*!
4
+ Animate.css - http://daneden.me/animate
5
+ Licensed under the MIT license - http://opensource.org/licenses/MIT
6
+
7
+ Copyright (c) 2015 Daniel Eden
8
+ */
9
+
10
+ .animated {
11
+ -webkit-animation-duration: 1s;
12
+ animation-duration: 1s;
13
+ -webkit-animation-fill-mode: both;
14
+ animation-fill-mode: both;
15
+ }
16
+
17
+ .animated.infinite {
18
+ -webkit-animation-iteration-count: infinite;
19
+ animation-iteration-count: infinite;
20
+ }
21
+
22
+ .animated.hinge {
23
+ -webkit-animation-duration: 2s;
24
+ animation-duration: 2s;
25
+ }
26
+
27
+ .animated.bounceIn,
28
+ .animated.bounceOut {
29
+ -webkit-animation-duration: .75s;
30
+ animation-duration: .75s;
31
+ }
32
+
33
+ .animated.flipOutX,
34
+ .animated.flipOutY {
35
+ -webkit-animation-duration: .75s;
36
+ animation-duration: .75s;
37
+ }
38
+
39
+ @-webkit-keyframes bounce {
40
+ 0%, 20%, 53%, 80%, 100% {
41
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
42
+ animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
43
+ -webkit-transform: translate3d(0,0,0);
44
+ transform: translate3d(0,0,0);
45
+ }
46
+
47
+ 40%, 43% {
48
+ -webkit-animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
49
+ animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
50
+ -webkit-transform: translate3d(0, -30px, 0);
51
+ transform: translate3d(0, -30px, 0);
52
+ }
53
+
54
+ 70% {
55
+ -webkit-animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
56
+ animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
57
+ -webkit-transform: translate3d(0, -15px, 0);
58
+ transform: translate3d(0, -15px, 0);
59
+ }
60
+
61
+ 90% {
62
+ -webkit-transform: translate3d(0,-4px,0);
63
+ transform: translate3d(0,-4px,0);
64
+ }
65
+ }
66
+
67
+ @keyframes bounce {
68
+ 0%, 20%, 53%, 80%, 100% {
69
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
70
+ animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
71
+ -webkit-transform: translate3d(0,0,0);
72
+ transform: translate3d(0,0,0);
73
+ }
74
+
75
+ 40%, 43% {
76
+ -webkit-animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
77
+ animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
78
+ -webkit-transform: translate3d(0, -30px, 0);
79
+ transform: translate3d(0, -30px, 0);
80
+ }
81
+
82
+ 70% {
83
+ -webkit-animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
84
+ animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
85
+ -webkit-transform: translate3d(0, -15px, 0);
86
+ transform: translate3d(0, -15px, 0);
87
+ }
88
+
89
+ 90% {
90
+ -webkit-transform: translate3d(0,-4px,0);
91
+ transform: translate3d(0,-4px,0);
92
+ }
93
+ }
94
+
95
+ .bounce {
96
+ -webkit-animation-name: bounce;
97
+ animation-name: bounce;
98
+ -webkit-transform-origin: center bottom;
99
+ transform-origin: center bottom;
100
+ }
101
+
102
+ @-webkit-keyframes flash {
103
+ 0%, 50%, 100% {
104
+ opacity: 1;
105
+ }
106
+
107
+ 25%, 75% {
108
+ opacity: 0;
109
+ }
110
+ }
111
+
112
+ @keyframes flash {
113
+ 0%, 50%, 100% {
114
+ opacity: 1;
115
+ }
116
+
117
+ 25%, 75% {
118
+ opacity: 0;
119
+ }
120
+ }
121
+
122
+ .flash {
123
+ -webkit-animation-name: flash;
124
+ animation-name: flash;
125
+ }
126
+
127
+ /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */
128
+
129
+ @-webkit-keyframes pulse {
130
+ 0% {
131
+ -webkit-transform: scale3d(1, 1, 1);
132
+ transform: scale3d(1, 1, 1);
133
+ }
134
+
135
+ 50% {
136
+ -webkit-transform: scale3d(1.05, 1.05, 1.05);
137
+ transform: scale3d(1.05, 1.05, 1.05);
138
+ }
139
+
140
+ 100% {
141
+ -webkit-transform: scale3d(1, 1, 1);
142
+ transform: scale3d(1, 1, 1);
143
+ }
144
+ }
145
+
146
+ @keyframes pulse {
147
+ 0% {
148
+ -webkit-transform: scale3d(1, 1, 1);
149
+ transform: scale3d(1, 1, 1);
150
+ }
151
+
152
+ 50% {
153
+ -webkit-transform: scale3d(1.05, 1.05, 1.05);
154
+ transform: scale3d(1.05, 1.05, 1.05);
155
+ }
156
+
157
+ 100% {
158
+ -webkit-transform: scale3d(1, 1, 1);
159
+ transform: scale3d(1, 1, 1);
160
+ }
161
+ }
162
+
163
+ .pulse {
164
+ -webkit-animation-name: pulse;
165
+ animation-name: pulse;
166
+ }
167
+
168
+ @-webkit-keyframes rubberBand {
169
+ 0% {
170
+ -webkit-transform: scale3d(1, 1, 1);
171
+ transform: scale3d(1, 1, 1);
172
+ }
173
+
174
+ 30% {
175
+ -webkit-transform: scale3d(1.25, 0.75, 1);
176
+ transform: scale3d(1.25, 0.75, 1);
177
+ }
178
+
179
+ 40% {
180
+ -webkit-transform: scale3d(0.75, 1.25, 1);
181
+ transform: scale3d(0.75, 1.25, 1);
182
+ }
183
+
184
+ 50% {
185
+ -webkit-transform: scale3d(1.15, 0.85, 1);
186
+ transform: scale3d(1.15, 0.85, 1);
187
+ }
188
+
189
+ 65% {
190
+ -webkit-transform: scale3d(.95, 1.05, 1);
191
+ transform: scale3d(.95, 1.05, 1);
192
+ }
193
+
194
+ 75% {
195
+ -webkit-transform: scale3d(1.05, .95, 1);
196
+ transform: scale3d(1.05, .95, 1);
197
+ }
198
+
199
+ 100% {
200
+ -webkit-transform: scale3d(1, 1, 1);
201
+ transform: scale3d(1, 1, 1);
202
+ }
203
+ }
204
+
205
+ @keyframes rubberBand {
206
+ 0% {
207
+ -webkit-transform: scale3d(1, 1, 1);
208
+ transform: scale3d(1, 1, 1);
209
+ }
210
+
211
+ 30% {
212
+ -webkit-transform: scale3d(1.25, 0.75, 1);
213
+ transform: scale3d(1.25, 0.75, 1);
214
+ }
215
+
216
+ 40% {
217
+ -webkit-transform: scale3d(0.75, 1.25, 1);
218
+ transform: scale3d(0.75, 1.25, 1);
219
+ }
220
+
221
+ 50% {
222
+ -webkit-transform: scale3d(1.15, 0.85, 1);
223
+ transform: scale3d(1.15, 0.85, 1);
224
+ }
225
+
226
+ 65% {
227
+ -webkit-transform: scale3d(.95, 1.05, 1);
228
+ transform: scale3d(.95, 1.05, 1);
229
+ }
230
+
231
+ 75% {
232
+ -webkit-transform: scale3d(1.05, .95, 1);
233
+ transform: scale3d(1.05, .95, 1);
234
+ }
235
+
236
+ 100% {
237
+ -webkit-transform: scale3d(1, 1, 1);
238
+ transform: scale3d(1, 1, 1);
239
+ }
240
+ }
241
+
242
+ .rubberBand {
243
+ -webkit-animation-name: rubberBand;
244
+ animation-name: rubberBand;
245
+ }
246
+
247
+ @-webkit-keyframes shake {
248
+ 0%, 100% {
249
+ -webkit-transform: translate3d(0, 0, 0);
250
+ transform: translate3d(0, 0, 0);
251
+ }
252
+
253
+ 10%, 30%, 50%, 70%, 90% {
254
+ -webkit-transform: translate3d(-10px, 0, 0);
255
+ transform: translate3d(-10px, 0, 0);
256
+ }
257
+
258
+ 20%, 40%, 60%, 80% {
259
+ -webkit-transform: translate3d(10px, 0, 0);
260
+ transform: translate3d(10px, 0, 0);
261
+ }
262
+ }
263
+
264
+ @keyframes shake {
265
+ 0%, 100% {
266
+ -webkit-transform: translate3d(0, 0, 0);
267
+ transform: translate3d(0, 0, 0);
268
+ }
269
+
270
+ 10%, 30%, 50%, 70%, 90% {
271
+ -webkit-transform: translate3d(-10px, 0, 0);
272
+ transform: translate3d(-10px, 0, 0);
273
+ }
274
+
275
+ 20%, 40%, 60%, 80% {
276
+ -webkit-transform: translate3d(10px, 0, 0);
277
+ transform: translate3d(10px, 0, 0);
278
+ }
279
+ }
280
+
281
+ .shake {
282
+ -webkit-animation-name: shake;
283
+ animation-name: shake;
284
+ }
285
+
286
+ @-webkit-keyframes swing {
287
+ 20% {
288
+ -webkit-transform: rotate3d(0, 0, 1, 15deg);
289
+ transform: rotate3d(0, 0, 1, 15deg);
290
+ }
291
+
292
+ 40% {
293
+ -webkit-transform: rotate3d(0, 0, 1, -10deg);
294
+ transform: rotate3d(0, 0, 1, -10deg);
295
+ }
296
+
297
+ 60% {
298
+ -webkit-transform: rotate3d(0, 0, 1, 5deg);
299
+ transform: rotate3d(0, 0, 1, 5deg);
300
+ }
301
+
302
+ 80% {
303
+ -webkit-transform: rotate3d(0, 0, 1, -5deg);
304
+ transform: rotate3d(0, 0, 1, -5deg);
305
+ }
306
+
307
+ 100% {
308
+ -webkit-transform: rotate3d(0, 0, 1, 0deg);
309
+ transform: rotate3d(0, 0, 1, 0deg);
310
+ }
311
+ }
312
+
313
+ @keyframes swing {
314
+ 20% {
315
+ -webkit-transform: rotate3d(0, 0, 1, 15deg);
316
+ transform: rotate3d(0, 0, 1, 15deg);
317
+ }
318
+
319
+ 40% {
320
+ -webkit-transform: rotate3d(0, 0, 1, -10deg);
321
+ transform: rotate3d(0, 0, 1, -10deg);
322
+ }
323
+
324
+ 60% {
325
+ -webkit-transform: rotate3d(0, 0, 1, 5deg);
326
+ transform: rotate3d(0, 0, 1, 5deg);
327
+ }
328
+
329
+ 80% {
330
+ -webkit-transform: rotate3d(0, 0, 1, -5deg);
331
+ transform: rotate3d(0, 0, 1, -5deg);
332
+ }
333
+
334
+ 100% {
335
+ -webkit-transform: rotate3d(0, 0, 1, 0deg);
336
+ transform: rotate3d(0, 0, 1, 0deg);
337
+ }
338
+ }
339
+
340
+ .swing {
341
+ -webkit-transform-origin: top center;
342
+ transform-origin: top center;
343
+ -webkit-animation-name: swing;
344
+ animation-name: swing;
345
+ }
346
+
347
+ @-webkit-keyframes tada {
348
+ 0% {
349
+ -webkit-transform: scale3d(1, 1, 1);
350
+ transform: scale3d(1, 1, 1);
351
+ }
352
+
353
+ 10%, 20% {
354
+ -webkit-transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
355
+ transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
356
+ }
357
+
358
+ 30%, 50%, 70%, 90% {
359
+ -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
360
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
361
+ }
362
+
363
+ 40%, 60%, 80% {
364
+ -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
365
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
366
+ }
367
+
368
+ 100% {
369
+ -webkit-transform: scale3d(1, 1, 1);
370
+ transform: scale3d(1, 1, 1);
371
+ }
372
+ }
373
+
374
+ @keyframes tada {
375
+ 0% {
376
+ -webkit-transform: scale3d(1, 1, 1);
377
+ transform: scale3d(1, 1, 1);
378
+ }
379
+
380
+ 10%, 20% {
381
+ -webkit-transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
382
+ transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
383
+ }
384
+
385
+ 30%, 50%, 70%, 90% {
386
+ -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
387
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
388
+ }
389
+
390
+ 40%, 60%, 80% {
391
+ -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
392
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
393
+ }
394
+
395
+ 100% {
396
+ -webkit-transform: scale3d(1, 1, 1);
397
+ transform: scale3d(1, 1, 1);
398
+ }
399
+ }
400
+
401
+ .tada {
402
+ -webkit-animation-name: tada;
403
+ animation-name: tada;
404
+ }
405
+
406
+ /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */
407
+
408
+ @-webkit-keyframes wobble {
409
+ 0% {
410
+ -webkit-transform: none;
411
+ transform: none;
412
+ }
413
+
414
+ 15% {
415
+ -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
416
+ transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
417
+ }
418
+
419
+ 30% {
420
+ -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
421
+ transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
422
+ }
423
+
424
+ 45% {
425
+ -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
426
+ transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
427
+ }
428
+
429
+ 60% {
430
+ -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
431
+ transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
432
+ }
433
+
434
+ 75% {
435
+ -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
436
+ transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
437
+ }
438
+
439
+ 100% {
440
+ -webkit-transform: none;
441
+ transform: none;
442
+ }
443
+ }
444
+
445
+ @keyframes wobble {
446
+ 0% {
447
+ -webkit-transform: none;
448
+ transform: none;
449
+ }
450
+
451
+ 15% {
452
+ -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
453
+ transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
454
+ }
455
+
456
+ 30% {
457
+ -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
458
+ transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
459
+ }
460
+
461
+ 45% {
462
+ -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
463
+ transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
464
+ }
465
+
466
+ 60% {
467
+ -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
468
+ transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
469
+ }
470
+
471
+ 75% {
472
+ -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
473
+ transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
474
+ }
475
+
476
+ 100% {
477
+ -webkit-transform: none;
478
+ transform: none;
479
+ }
480
+ }
481
+
482
+ .wobble {
483
+ -webkit-animation-name: wobble;
484
+ animation-name: wobble;
485
+ }
486
+
487
+ @-webkit-keyframes jello {
488
+ 11.1% {
489
+ -webkit-transform: none;
490
+ transform: none
491
+ }
492
+
493
+ 22.2% {
494
+ -webkit-transform: skewX(-12.5deg) skewY(-12.5deg);
495
+ transform: skewX(-12.5deg) skewY(-12.5deg)
496
+ }
497
+ 33.3% {
498
+ -webkit-transform: skewX(6.25deg) skewY(6.25deg);
499
+ transform: skewX(6.25deg) skewY(6.25deg)
500
+ }
501
+ 44.4% {
502
+ -webkit-transform: skewX(-3.125deg) skewY(-3.125deg);
503
+ transform: skewX(-3.125deg) skewY(-3.125deg)
504
+ }
505
+ 55.5% {
506
+ -webkit-transform: skewX(1.5625deg) skewY(1.5625deg);
507
+ transform: skewX(1.5625deg) skewY(1.5625deg)
508
+ }
509
+ 66.6% {
510
+ -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg);
511
+ transform: skewX(-0.78125deg) skewY(-0.78125deg)
512
+ }
513
+ 77.7% {
514
+ -webkit-transform: skewX(0.390625deg) skewY(0.390625deg);
515
+ transform: skewX(0.390625deg) skewY(0.390625deg)
516
+ }
517
+ 88.8% {
518
+ -webkit-transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
519
+ transform: skewX(-0.1953125deg) skewY(-0.1953125deg)
520
+ }
521
+ 100% {
522
+ -webkit-transform: none;
523
+ transform: none
524
+ }
525
+ }
526
+
527
+ @keyframes jello {
528
+ 11.1% {
529
+ -webkit-transform: none;
530
+ transform: none
531
+ }
532
+
533
+ 22.2% {
534
+
535
+ -webkit-transform: skewX(-12.5deg) skewY(-12.5deg);
536
+ transform: skewX(-12.5deg) skewY(-12.5deg)
537
+ }
538
+ 33.3% {
539
+ -webkit-transform: skewX(6.25deg) skewY(6.25deg);
540
+ transform: skewX(6.25deg) skewY(6.25deg)
541
+ }
542
+ 44.4% {
543
+ -webkit-transform: skewX(-3.125deg) skewY(-3.125deg);
544
+ transform: skewX(-3.125deg) skewY(-3.125deg)
545
+ }
546
+ 55.5% {
547
+ -webkit-transform: skewX(1.5625deg) skewY(1.5625deg);
548
+ transform: skewX(1.5625deg) skewY(1.5625deg)
549
+ }
550
+ 66.6% {
551
+ -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg);
552
+ transform: skewX(-0.78125deg) skewY(-0.78125deg)
553
+ }
554
+ 77.7% {
555
+ -webkit-transform: skewX(0.390625deg) skewY(0.390625deg);
556
+ transform: skewX(0.390625deg) skewY(0.390625deg)
557
+ }
558
+ 88.8% {
559
+ -webkit-transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
560
+ transform: skewX(-0.1953125deg) skewY(-0.1953125deg)
561
+ }
562
+ 100% {
563
+ -webkit-transform: none;
564
+ transform: none
565
+ }
566
+ }
567
+
568
+
569
+
570
+ .jello{
571
+ -webkit-animation-name:jello;
572
+ animation-name:jello;
573
+ -webkit-transform-origin: center;
574
+
575
+ transform-origin: center
576
+ }
577
+
578
+ @-webkit-keyframes bounceIn {
579
+ 0%, 20%, 40%, 60%, 80%, 100% {
580
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
581
+ animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
582
+ }
583
+
584
+ 0% {
585
+ opacity: 0;
586
+ -webkit-transform: scale3d(.3, .3, .3);
587
+ transform: scale3d(.3, .3, .3);
588
+ }
589
+
590
+ 20% {
591
+ -webkit-transform: scale3d(1.1, 1.1, 1.1);
592
+ transform: scale3d(1.1, 1.1, 1.1);
593
+ }
594
+
595
+ 40% {
596
+ -webkit-transform: scale3d(.9, .9, .9);
597
+ transform: scale3d(.9, .9, .9);
598
+ }
599
+
600
+ 60% {
601
+ opacity: 1;
602
+ -webkit-transform: scale3d(1.03, 1.03, 1.03);
603
+ transform: scale3d(1.03, 1.03, 1.03);
604
+ }
605
+
606
+ 80% {
607
+ -webkit-transform: scale3d(.97, .97, .97);
608
+ transform: scale3d(.97, .97, .97);
609
+ }
610
+
611
+ 100% {
612
+ opacity: 1;
613
+ -webkit-transform: scale3d(1, 1, 1);
614
+ transform: scale3d(1, 1, 1);
615
+ }
616
+ }
617
+
618
+ @keyframes bounceIn {
619
+ 0%, 20%, 40%, 60%, 80%, 100% {
620
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
621
+ animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
622
+ }
623
+
624
+ 0% {
625
+ opacity: 0;
626
+ -webkit-transform: scale3d(.3, .3, .3);
627
+ transform: scale3d(.3, .3, .3);
628
+ }
629
+
630
+ 20% {
631
+ -webkit-transform: scale3d(1.1, 1.1, 1.1);
632
+ transform: scale3d(1.1, 1.1, 1.1);
633
+ }
634
+
635
+ 40% {
636
+ -webkit-transform: scale3d(.9, .9, .9);
637
+ transform: scale3d(.9, .9, .9);
638
+ }
639
+
640
+ 60% {
641
+ opacity: 1;
642
+ -webkit-transform: scale3d(1.03, 1.03, 1.03);
643
+ transform: scale3d(1.03, 1.03, 1.03);
644
+ }
645
+
646
+ 80% {
647
+ -webkit-transform: scale3d(.97, .97, .97);
648
+ transform: scale3d(.97, .97, .97);
649
+ }
650
+
651
+ 100% {
652
+ opacity: 1;
653
+ -webkit-transform: scale3d(1, 1, 1);
654
+ transform: scale3d(1, 1, 1);
655
+ }
656
+ }
657
+
658
+ .bounceIn {
659
+ -webkit-animation-name: bounceIn;
660
+ animation-name: bounceIn;
661
+ }
662
+
663
+ @-webkit-keyframes bounceInDown {
664
+ 0%, 60%, 75%, 90%, 100% {
665
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
666
+ animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
667
+ }
668
+
669
+ 0% {
670
+ opacity: 0;
671
+ -webkit-transform: translate3d(0, -3000px, 0);
672
+ transform: translate3d(0, -3000px, 0);
673
+ }
674
+
675
+ 60% {
676
+ opacity: 1;
677
+ -webkit-transform: translate3d(0, 25px, 0);
678
+ transform: translate3d(0, 25px, 0);
679
+ }
680
+
681
+ 75% {
682
+ -webkit-transform: translate3d(0, -10px, 0);
683
+ transform: translate3d(0, -10px, 0);
684
+ }
685
+
686
+ 90% {
687
+ -webkit-transform: translate3d(0, 5px, 0);
688
+ transform: translate3d(0, 5px, 0);
689
+ }
690
+
691
+ 100% {
692
+ -webkit-transform: none;
693
+ transform: none;
694
+ }
695
+ }
696
+
697
+ @keyframes bounceInDown {
698
+ 0%, 60%, 75%, 90%, 100% {
699
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
700
+ animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
701
+ }
702
+
703
+ 0% {
704
+ opacity: 0;
705
+ -webkit-transform: translate3d(0, -3000px, 0);
706
+ transform: translate3d(0, -3000px, 0);
707
+ }
708
+
709
+ 60% {
710
+ opacity: 1;
711
+ -webkit-transform: translate3d(0, 25px, 0);
712
+ transform: translate3d(0, 25px, 0);
713
+ }
714
+
715
+ 75% {
716
+ -webkit-transform: translate3d(0, -10px, 0);
717
+ transform: translate3d(0, -10px, 0);
718
+ }
719
+
720
+ 90% {
721
+ -webkit-transform: translate3d(0, 5px, 0);
722
+ transform: translate3d(0, 5px, 0);
723
+ }
724
+
725
+ 100% {
726
+ -webkit-transform: none;
727
+ transform: none;
728
+ }
729
+ }
730
+
731
+ .bounceInDown {
732
+ -webkit-animation-name: bounceInDown;
733
+ animation-name: bounceInDown;
734
+ }
735
+
736
+ @-webkit-keyframes bounceInLeft {
737
+ 0%, 60%, 75%, 90%, 100% {
738
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
739
+ animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
740
+ }
741
+
742
+ 0% {
743
+ opacity: 0;
744
+ -webkit-transform: translate3d(-3000px, 0, 0);
745
+ transform: translate3d(-3000px, 0, 0);
746
+ }
747
+
748
+ 60% {
749
+ opacity: 1;
750
+ -webkit-transform: translate3d(25px, 0, 0);
751
+ transform: translate3d(25px, 0, 0);
752
+ }
753
+
754
+ 75% {
755
+ -webkit-transform: translate3d(-10px, 0, 0);
756
+ transform: translate3d(-10px, 0, 0);
757
+ }
758
+
759
+ 90% {
760
+ -webkit-transform: translate3d(5px, 0, 0);
761
+ transform: translate3d(5px, 0, 0);
762
+ }
763
+
764
+ 100% {
765
+ -webkit-transform: none;
766
+ transform: none;
767
+ }
768
+ }
769
+
770
+ @keyframes bounceInLeft {
771
+ 0%, 60%, 75%, 90%, 100% {
772
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
773
+ animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
774
+ }
775
+
776
+ 0% {
777
+ opacity: 0;
778
+ -webkit-transform: translate3d(-3000px, 0, 0);
779
+ transform: translate3d(-3000px, 0, 0);
780
+ }
781
+
782
+ 60% {
783
+ opacity: 1;
784
+ -webkit-transform: translate3d(25px, 0, 0);
785
+ transform: translate3d(25px, 0, 0);
786
+ }
787
+
788
+ 75% {
789
+ -webkit-transform: translate3d(-10px, 0, 0);
790
+ transform: translate3d(-10px, 0, 0);
791
+ }
792
+
793
+ 90% {
794
+ -webkit-transform: translate3d(5px, 0, 0);
795
+ transform: translate3d(5px, 0, 0);
796
+ }
797
+
798
+ 100% {
799
+ -webkit-transform: none;
800
+ transform: none;
801
+ }
802
+ }
803
+
804
+ .bounceInLeft {
805
+ -webkit-animation-name: bounceInLeft;
806
+ animation-name: bounceInLeft;
807
+ }
808
+
809
+ @-webkit-keyframes bounceInRight {
810
+ 0%, 60%, 75%, 90%, 100% {
811
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
812
+ animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
813
+ }
814
+
815
+ 0% {
816
+ opacity: 0;
817
+ -webkit-transform: translate3d(3000px, 0, 0);
818
+ transform: translate3d(3000px, 0, 0);
819
+ }
820
+
821
+ 60% {
822
+ opacity: 1;
823
+ -webkit-transform: translate3d(-25px, 0, 0);
824
+ transform: translate3d(-25px, 0, 0);
825
+ }
826
+
827
+ 75% {
828
+ -webkit-transform: translate3d(10px, 0, 0);
829
+ transform: translate3d(10px, 0, 0);
830
+ }
831
+
832
+ 90% {
833
+ -webkit-transform: translate3d(-5px, 0, 0);
834
+ transform: translate3d(-5px, 0, 0);
835
+ }
836
+
837
+ 100% {
838
+ -webkit-transform: none;
839
+ transform: none;
840
+ }
841
+ }
842
+
843
+ @keyframes bounceInRight {
844
+ 0%, 60%, 75%, 90%, 100% {
845
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
846
+ animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
847
+ }
848
+
849
+ 0% {
850
+ opacity: 0;
851
+ -webkit-transform: translate3d(3000px, 0, 0);
852
+ transform: translate3d(3000px, 0, 0);
853
+ }
854
+
855
+ 60% {
856
+ opacity: 1;
857
+ -webkit-transform: translate3d(-25px, 0, 0);
858
+ transform: translate3d(-25px, 0, 0);
859
+ }
860
+
861
+ 75% {
862
+ -webkit-transform: translate3d(10px, 0, 0);
863
+ transform: translate3d(10px, 0, 0);
864
+ }
865
+
866
+ 90% {
867
+ -webkit-transform: translate3d(-5px, 0, 0);
868
+ transform: translate3d(-5px, 0, 0);
869
+ }
870
+
871
+ 100% {
872
+ -webkit-transform: none;
873
+ transform: none;
874
+ }
875
+ }
876
+
877
+ .bounceInRight {
878
+ -webkit-animation-name: bounceInRight;
879
+ animation-name: bounceInRight;
880
+ }
881
+
882
+ @-webkit-keyframes bounceInUp {
883
+ 0%, 60%, 75%, 90%, 100% {
884
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
885
+ animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
886
+ }
887
+
888
+ 0% {
889
+ opacity: 0;
890
+ -webkit-transform: translate3d(0, 3000px, 0);
891
+ transform: translate3d(0, 3000px, 0);
892
+ }
893
+
894
+ 60% {
895
+ opacity: 1;
896
+ -webkit-transform: translate3d(0, -20px, 0);
897
+ transform: translate3d(0, -20px, 0);
898
+ }
899
+
900
+ 75% {
901
+ -webkit-transform: translate3d(0, 10px, 0);
902
+ transform: translate3d(0, 10px, 0);
903
+ }
904
+
905
+ 90% {
906
+ -webkit-transform: translate3d(0, -5px, 0);
907
+ transform: translate3d(0, -5px, 0);
908
+ }
909
+
910
+ 100% {
911
+ -webkit-transform: translate3d(0, 0, 0);
912
+ transform: translate3d(0, 0, 0);
913
+ }
914
+ }
915
+
916
+ @keyframes bounceInUp {
917
+ 0%, 60%, 75%, 90%, 100% {
918
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
919
+ animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
920
+ }
921
+
922
+ 0% {
923
+ opacity: 0;
924
+ -webkit-transform: translate3d(0, 3000px, 0);
925
+ transform: translate3d(0, 3000px, 0);
926
+ }
927
+
928
+ 60% {
929
+ opacity: 1;
930
+ -webkit-transform: translate3d(0, -20px, 0);
931
+ transform: translate3d(0, -20px, 0);
932
+ }
933
+
934
+ 75% {
935
+ -webkit-transform: translate3d(0, 10px, 0);
936
+ transform: translate3d(0, 10px, 0);
937
+ }
938
+
939
+ 90% {
940
+ -webkit-transform: translate3d(0, -5px, 0);
941
+ transform: translate3d(0, -5px, 0);
942
+ }
943
+
944
+ 100% {
945
+ -webkit-transform: translate3d(0, 0, 0);
946
+ transform: translate3d(0, 0, 0);
947
+ }
948
+ }
949
+
950
+ .bounceInUp {
951
+ -webkit-animation-name: bounceInUp;
952
+ animation-name: bounceInUp;
953
+ }
954
+
955
+ @-webkit-keyframes bounceOut {
956
+ 20% {
957
+ -webkit-transform: scale3d(.9, .9, .9);
958
+ transform: scale3d(.9, .9, .9);
959
+ }
960
+
961
+ 50%, 55% {
962
+ opacity: 1;
963
+ -webkit-transform: scale3d(1.1, 1.1, 1.1);
964
+ transform: scale3d(1.1, 1.1, 1.1);
965
+ }
966
+
967
+ 100% {
968
+ opacity: 0;
969
+ -webkit-transform: scale3d(.3, .3, .3);
970
+ transform: scale3d(.3, .3, .3);
971
+ }
972
+ }
973
+
974
+ @keyframes bounceOut {
975
+ 20% {
976
+ -webkit-transform: scale3d(.9, .9, .9);
977
+ transform: scale3d(.9, .9, .9);
978
+ }
979
+
980
+ 50%, 55% {
981
+ opacity: 1;
982
+ -webkit-transform: scale3d(1.1, 1.1, 1.1);
983
+ transform: scale3d(1.1, 1.1, 1.1);
984
+ }
985
+
986
+ 100% {
987
+ opacity: 0;
988
+ -webkit-transform: scale3d(.3, .3, .3);
989
+ transform: scale3d(.3, .3, .3);
990
+ }
991
+ }
992
+
993
+ .bounceOut {
994
+ -webkit-animation-name: bounceOut;
995
+ animation-name: bounceOut;
996
+ }
997
+
998
+ @-webkit-keyframes bounceOutDown {
999
+ 20% {
1000
+ -webkit-transform: translate3d(0, 10px, 0);
1001
+ transform: translate3d(0, 10px, 0);
1002
+ }
1003
+
1004
+ 40%, 45% {
1005
+ opacity: 1;
1006
+ -webkit-transform: translate3d(0, -20px, 0);
1007
+ transform: translate3d(0, -20px, 0);
1008
+ }
1009
+
1010
+ 100% {
1011
+ opacity: 0;
1012
+ -webkit-transform: translate3d(0, 2000px, 0);
1013
+ transform: translate3d(0, 2000px, 0);
1014
+ }
1015
+ }
1016
+
1017
+ @keyframes bounceOutDown {
1018
+ 20% {
1019
+ -webkit-transform: translate3d(0, 10px, 0);
1020
+ transform: translate3d(0, 10px, 0);
1021
+ }
1022
+
1023
+ 40%, 45% {
1024
+ opacity: 1;
1025
+ -webkit-transform: translate3d(0, -20px, 0);
1026
+ transform: translate3d(0, -20px, 0);
1027
+ }
1028
+
1029
+ 100% {
1030
+ opacity: 0;
1031
+ -webkit-transform: translate3d(0, 2000px, 0);
1032
+ transform: translate3d(0, 2000px, 0);
1033
+ }
1034
+ }
1035
+
1036
+ .bounceOutDown {
1037
+ -webkit-animation-name: bounceOutDown;
1038
+ animation-name: bounceOutDown;
1039
+ }
1040
+
1041
+ @-webkit-keyframes bounceOutLeft {
1042
+ 20% {
1043
+ opacity: 1;
1044
+ -webkit-transform: translate3d(20px, 0, 0);
1045
+ transform: translate3d(20px, 0, 0);
1046
+ }
1047
+
1048
+ 100% {
1049
+ opacity: 0;
1050
+ -webkit-transform: translate3d(-2000px, 0, 0);
1051
+ transform: translate3d(-2000px, 0, 0);
1052
+ }
1053
+ }
1054
+
1055
+ @keyframes bounceOutLeft {
1056
+ 20% {
1057
+ opacity: 1;
1058
+ -webkit-transform: translate3d(20px, 0, 0);
1059
+ transform: translate3d(20px, 0, 0);
1060
+ }
1061
+
1062
+ 100% {
1063
+ opacity: 0;
1064
+ -webkit-transform: translate3d(-2000px, 0, 0);
1065
+ transform: translate3d(-2000px, 0, 0);
1066
+ }
1067
+ }
1068
+
1069
+ .bounceOutLeft {
1070
+ -webkit-animation-name: bounceOutLeft;
1071
+ animation-name: bounceOutLeft;
1072
+ }
1073
+
1074
+ @-webkit-keyframes bounceOutRight {
1075
+ 20% {
1076
+ opacity: 1;
1077
+ -webkit-transform: translate3d(-20px, 0, 0);
1078
+ transform: translate3d(-20px, 0, 0);
1079
+ }
1080
+
1081
+ 100% {
1082
+ opacity: 0;
1083
+ -webkit-transform: translate3d(2000px, 0, 0);
1084
+ transform: translate3d(2000px, 0, 0);
1085
+ }
1086
+ }
1087
+
1088
+ @keyframes bounceOutRight {
1089
+ 20% {
1090
+ opacity: 1;
1091
+ -webkit-transform: translate3d(-20px, 0, 0);
1092
+ transform: translate3d(-20px, 0, 0);
1093
+ }
1094
+
1095
+ 100% {
1096
+ opacity: 0;
1097
+ -webkit-transform: translate3d(2000px, 0, 0);
1098
+ transform: translate3d(2000px, 0, 0);
1099
+ }
1100
+ }
1101
+
1102
+ .bounceOutRight {
1103
+ -webkit-animation-name: bounceOutRight;
1104
+ animation-name: bounceOutRight;
1105
+ }
1106
+
1107
+ @-webkit-keyframes bounceOutUp {
1108
+ 20% {
1109
+ -webkit-transform: translate3d(0, -10px, 0);
1110
+ transform: translate3d(0, -10px, 0);
1111
+ }
1112
+
1113
+ 40%, 45% {
1114
+ opacity: 1;
1115
+ -webkit-transform: translate3d(0, 20px, 0);
1116
+ transform: translate3d(0, 20px, 0);
1117
+ }
1118
+
1119
+ 100% {
1120
+ opacity: 0;
1121
+ -webkit-transform: translate3d(0, -2000px, 0);
1122
+ transform: translate3d(0, -2000px, 0);
1123
+ }
1124
+ }
1125
+
1126
+ @keyframes bounceOutUp {
1127
+ 20% {
1128
+ -webkit-transform: translate3d(0, -10px, 0);
1129
+ transform: translate3d(0, -10px, 0);
1130
+ }
1131
+
1132
+ 40%, 45% {
1133
+ opacity: 1;
1134
+ -webkit-transform: translate3d(0, 20px, 0);
1135
+ transform: translate3d(0, 20px, 0);
1136
+ }
1137
+
1138
+ 100% {
1139
+ opacity: 0;
1140
+ -webkit-transform: translate3d(0, -2000px, 0);
1141
+ transform: translate3d(0, -2000px, 0);
1142
+ }
1143
+ }
1144
+
1145
+ .bounceOutUp {
1146
+ -webkit-animation-name: bounceOutUp;
1147
+ animation-name: bounceOutUp;
1148
+ }
1149
+
1150
+ @-webkit-keyframes fadeIn {
1151
+ 0% {
1152
+ opacity: 0;
1153
+ }
1154
+
1155
+ 100% {
1156
+ opacity: 1;
1157
+ }
1158
+ }
1159
+
1160
+ @keyframes fadeIn {
1161
+ 0% {
1162
+ opacity: 0;
1163
+ }
1164
+
1165
+ 100% {
1166
+ opacity: 1;
1167
+ }
1168
+ }
1169
+
1170
+ .fadeIn {
1171
+ -webkit-animation-name: fadeIn;
1172
+ animation-name: fadeIn;
1173
+ }
1174
+
1175
+ @-webkit-keyframes fadeInDown {
1176
+ 0% {
1177
+ opacity: 0;
1178
+ -webkit-transform: translate3d(0, -100%, 0);
1179
+ transform: translate3d(0, -100%, 0);
1180
+ }
1181
+
1182
+ 100% {
1183
+ opacity: 1;
1184
+ -webkit-transform: none;
1185
+ transform: none;
1186
+ }
1187
+ }
1188
+
1189
+ @keyframes fadeInDown {
1190
+ 0% {
1191
+ opacity: 0;
1192
+ -webkit-transform: translate3d(0, -100%, 0);
1193
+ transform: translate3d(0, -100%, 0);
1194
+ }
1195
+
1196
+ 100% {
1197
+ opacity: 1;
1198
+ -webkit-transform: none;
1199
+ transform: none;
1200
+ }
1201
+ }
1202
+
1203
+ .fadeInDown {
1204
+ -webkit-animation-name: fadeInDown;
1205
+ animation-name: fadeInDown;
1206
+ }
1207
+
1208
+ @-webkit-keyframes fadeInDownBig {
1209
+ 0% {
1210
+ opacity: 0;
1211
+ -webkit-transform: translate3d(0, -2000px, 0);
1212
+ transform: translate3d(0, -2000px, 0);
1213
+ }
1214
+
1215
+ 100% {
1216
+ opacity: 1;
1217
+ -webkit-transform: none;
1218
+ transform: none;
1219
+ }
1220
+ }
1221
+
1222
+ @keyframes fadeInDownBig {
1223
+ 0% {
1224
+ opacity: 0;
1225
+ -webkit-transform: translate3d(0, -2000px, 0);
1226
+ transform: translate3d(0, -2000px, 0);
1227
+ }
1228
+
1229
+ 100% {
1230
+ opacity: 1;
1231
+ -webkit-transform: none;
1232
+ transform: none;
1233
+ }
1234
+ }
1235
+
1236
+ .fadeInDownBig {
1237
+ -webkit-animation-name: fadeInDownBig;
1238
+ animation-name: fadeInDownBig;
1239
+ }
1240
+
1241
+ @-webkit-keyframes fadeInLeft {
1242
+ 0% {
1243
+ opacity: 0;
1244
+ -webkit-transform: translate3d(-100%, 0, 0);
1245
+ transform: translate3d(-100%, 0, 0);
1246
+ }
1247
+
1248
+ 100% {
1249
+ opacity: 1;
1250
+ -webkit-transform: none;
1251
+ transform: none;
1252
+ }
1253
+ }
1254
+
1255
+ @keyframes fadeInLeft {
1256
+ 0% {
1257
+ opacity: 0;
1258
+ -webkit-transform: translate3d(-100%, 0, 0);
1259
+ transform: translate3d(-100%, 0, 0);
1260
+ }
1261
+
1262
+ 100% {
1263
+ opacity: 1;
1264
+ -webkit-transform: none;
1265
+ transform: none;
1266
+ }
1267
+ }
1268
+
1269
+ .fadeInLeft {
1270
+ -webkit-animation-name: fadeInLeft;
1271
+ animation-name: fadeInLeft;
1272
+ }
1273
+
1274
+ @-webkit-keyframes fadeInLeftBig {
1275
+ 0% {
1276
+ opacity: 0;
1277
+ -webkit-transform: translate3d(-2000px, 0, 0);
1278
+ transform: translate3d(-2000px, 0, 0);
1279
+ }
1280
+
1281
+ 100% {
1282
+ opacity: 1;
1283
+ -webkit-transform: none;
1284
+ transform: none;
1285
+ }
1286
+ }
1287
+
1288
+ @keyframes fadeInLeftBig {
1289
+ 0% {
1290
+ opacity: 0;
1291
+ -webkit-transform: translate3d(-2000px, 0, 0);
1292
+ transform: translate3d(-2000px, 0, 0);
1293
+ }
1294
+
1295
+ 100% {
1296
+ opacity: 1;
1297
+ -webkit-transform: none;
1298
+ transform: none;
1299
+ }
1300
+ }
1301
+
1302
+ .fadeInLeftBig {
1303
+ -webkit-animation-name: fadeInLeftBig;
1304
+ animation-name: fadeInLeftBig;
1305
+ }
1306
+
1307
+ @-webkit-keyframes fadeInRight {
1308
+ 0% {
1309
+ opacity: 0;
1310
+ -webkit-transform: translate3d(100%, 0, 0);
1311
+ transform: translate3d(100%, 0, 0);
1312
+ }
1313
+
1314
+ 100% {
1315
+ opacity: 1;
1316
+ -webkit-transform: none;
1317
+ transform: none;
1318
+ }
1319
+ }
1320
+
1321
+ @keyframes fadeInRight {
1322
+ 0% {
1323
+ opacity: 0;
1324
+ -webkit-transform: translate3d(100%, 0, 0);
1325
+ transform: translate3d(100%, 0, 0);
1326
+ }
1327
+
1328
+ 100% {
1329
+ opacity: 1;
1330
+ -webkit-transform: none;
1331
+ transform: none;
1332
+ }
1333
+ }
1334
+
1335
+ .fadeInRight {
1336
+ -webkit-animation-name: fadeInRight;
1337
+ animation-name: fadeInRight;
1338
+ }
1339
+
1340
+ @-webkit-keyframes fadeInRightBig {
1341
+ 0% {
1342
+ opacity: 0;
1343
+ -webkit-transform: translate3d(2000px, 0, 0);
1344
+ transform: translate3d(2000px, 0, 0);
1345
+ }
1346
+
1347
+ 100% {
1348
+ opacity: 1;
1349
+ -webkit-transform: none;
1350
+ transform: none;
1351
+ }
1352
+ }
1353
+
1354
+ @keyframes fadeInRightBig {
1355
+ 0% {
1356
+ opacity: 0;
1357
+ -webkit-transform: translate3d(2000px, 0, 0);
1358
+ transform: translate3d(2000px, 0, 0);
1359
+ }
1360
+
1361
+ 100% {
1362
+ opacity: 1;
1363
+ -webkit-transform: none;
1364
+ transform: none;
1365
+ }
1366
+ }
1367
+
1368
+ .fadeInRightBig {
1369
+ -webkit-animation-name: fadeInRightBig;
1370
+ animation-name: fadeInRightBig;
1371
+ }
1372
+
1373
+ @-webkit-keyframes fadeInUp {
1374
+ 0% {
1375
+ opacity: 0;
1376
+ -webkit-transform: translate3d(0, 100%, 0);
1377
+ transform: translate3d(0, 100%, 0);
1378
+ }
1379
+
1380
+ 100% {
1381
+ opacity: 1;
1382
+ -webkit-transform: none;
1383
+ transform: none;
1384
+ }
1385
+ }
1386
+
1387
+ @keyframes fadeInUp {
1388
+ 0% {
1389
+ opacity: 0;
1390
+ -webkit-transform: translate3d(0, 100%, 0);
1391
+ transform: translate3d(0, 100%, 0);
1392
+ }
1393
+
1394
+ 100% {
1395
+ opacity: 1;
1396
+ -webkit-transform: none;
1397
+ transform: none;
1398
+ }
1399
+ }
1400
+
1401
+ .fadeInUp {
1402
+ -webkit-animation-name: fadeInUp;
1403
+ animation-name: fadeInUp;
1404
+ }
1405
+
1406
+ @-webkit-keyframes fadeInUpBig {
1407
+ 0% {
1408
+ opacity: 0;
1409
+ -webkit-transform: translate3d(0, 2000px, 0);
1410
+ transform: translate3d(0, 2000px, 0);
1411
+ }
1412
+
1413
+ 100% {
1414
+ opacity: 1;
1415
+ -webkit-transform: none;
1416
+ transform: none;
1417
+ }
1418
+ }
1419
+
1420
+ @keyframes fadeInUpBig {
1421
+ 0% {
1422
+ opacity: 0;
1423
+ -webkit-transform: translate3d(0, 2000px, 0);
1424
+ transform: translate3d(0, 2000px, 0);
1425
+ }
1426
+
1427
+ 100% {
1428
+ opacity: 1;
1429
+ -webkit-transform: none;
1430
+ transform: none;
1431
+ }
1432
+ }
1433
+
1434
+ .fadeInUpBig {
1435
+ -webkit-animation-name: fadeInUpBig;
1436
+ animation-name: fadeInUpBig;
1437
+ }
1438
+
1439
+ @-webkit-keyframes fadeOut {
1440
+ 0% {
1441
+ opacity: 1;
1442
+ }
1443
+
1444
+ 100% {
1445
+ opacity: 0;
1446
+ }
1447
+ }
1448
+
1449
+ @keyframes fadeOut {
1450
+ 0% {
1451
+ opacity: 1;
1452
+ }
1453
+
1454
+ 100% {
1455
+ opacity: 0;
1456
+ }
1457
+ }
1458
+
1459
+ .fadeOut {
1460
+ -webkit-animation-name: fadeOut;
1461
+ animation-name: fadeOut;
1462
+ }
1463
+
1464
+ @-webkit-keyframes fadeOutDown {
1465
+ 0% {
1466
+ opacity: 1;
1467
+ }
1468
+
1469
+ 100% {
1470
+ opacity: 0;
1471
+ -webkit-transform: translate3d(0, 100%, 0);
1472
+ transform: translate3d(0, 100%, 0);
1473
+ }
1474
+ }
1475
+
1476
+ @keyframes fadeOutDown {
1477
+ 0% {
1478
+ opacity: 1;
1479
+ }
1480
+
1481
+ 100% {
1482
+ opacity: 0;
1483
+ -webkit-transform: translate3d(0, 100%, 0);
1484
+ transform: translate3d(0, 100%, 0);
1485
+ }
1486
+ }
1487
+
1488
+ .fadeOutDown {
1489
+ -webkit-animation-name: fadeOutDown;
1490
+ animation-name: fadeOutDown;
1491
+ }
1492
+
1493
+ @-webkit-keyframes fadeOutDownBig {
1494
+ 0% {
1495
+ opacity: 1;
1496
+ }
1497
+
1498
+ 100% {
1499
+ opacity: 0;
1500
+ -webkit-transform: translate3d(0, 2000px, 0);
1501
+ transform: translate3d(0, 2000px, 0);
1502
+ }
1503
+ }
1504
+
1505
+ @keyframes fadeOutDownBig {
1506
+ 0% {
1507
+ opacity: 1;
1508
+ }
1509
+
1510
+ 100% {
1511
+ opacity: 0;
1512
+ -webkit-transform: translate3d(0, 2000px, 0);
1513
+ transform: translate3d(0, 2000px, 0);
1514
+ }
1515
+ }
1516
+
1517
+ .fadeOutDownBig {
1518
+ -webkit-animation-name: fadeOutDownBig;
1519
+ animation-name: fadeOutDownBig;
1520
+ }
1521
+
1522
+ @-webkit-keyframes fadeOutLeft {
1523
+ 0% {
1524
+ opacity: 1;
1525
+ }
1526
+
1527
+ 100% {
1528
+ opacity: 0;
1529
+ -webkit-transform: translate3d(-100%, 0, 0);
1530
+ transform: translate3d(-100%, 0, 0);
1531
+ }
1532
+ }
1533
+
1534
+ @keyframes fadeOutLeft {
1535
+ 0% {
1536
+ opacity: 1;
1537
+ }
1538
+
1539
+ 100% {
1540
+ opacity: 0;
1541
+ -webkit-transform: translate3d(-100%, 0, 0);
1542
+ transform: translate3d(-100%, 0, 0);
1543
+ }
1544
+ }
1545
+
1546
+ .fadeOutLeft {
1547
+ -webkit-animation-name: fadeOutLeft;
1548
+ animation-name: fadeOutLeft;
1549
+ }
1550
+
1551
+ @-webkit-keyframes fadeOutLeftBig {
1552
+ 0% {
1553
+ opacity: 1;
1554
+ }
1555
+
1556
+ 100% {
1557
+ opacity: 0;
1558
+ -webkit-transform: translate3d(-2000px, 0, 0);
1559
+ transform: translate3d(-2000px, 0, 0);
1560
+ }
1561
+ }
1562
+
1563
+ @keyframes fadeOutLeftBig {
1564
+ 0% {
1565
+ opacity: 1;
1566
+ }
1567
+
1568
+ 100% {
1569
+ opacity: 0;
1570
+ -webkit-transform: translate3d(-2000px, 0, 0);
1571
+ transform: translate3d(-2000px, 0, 0);
1572
+ }
1573
+ }
1574
+
1575
+ .fadeOutLeftBig {
1576
+ -webkit-animation-name: fadeOutLeftBig;
1577
+ animation-name: fadeOutLeftBig;
1578
+ }
1579
+
1580
+ @-webkit-keyframes fadeOutRight {
1581
+ 0% {
1582
+ opacity: 1;
1583
+ }
1584
+
1585
+ 100% {
1586
+ opacity: 0;
1587
+ -webkit-transform: translate3d(100%, 0, 0);
1588
+ transform: translate3d(100%, 0, 0);
1589
+ }
1590
+ }
1591
+
1592
+ @keyframes fadeOutRight {
1593
+ 0% {
1594
+ opacity: 1;
1595
+ }
1596
+
1597
+ 100% {
1598
+ opacity: 0;
1599
+ -webkit-transform: translate3d(100%, 0, 0);
1600
+ transform: translate3d(100%, 0, 0);
1601
+ }
1602
+ }
1603
+
1604
+ .fadeOutRight {
1605
+ -webkit-animation-name: fadeOutRight;
1606
+ animation-name: fadeOutRight;
1607
+ }
1608
+
1609
+ @-webkit-keyframes fadeOutRightBig {
1610
+ 0% {
1611
+ opacity: 1;
1612
+ }
1613
+
1614
+ 100% {
1615
+ opacity: 0;
1616
+ -webkit-transform: translate3d(2000px, 0, 0);
1617
+ transform: translate3d(2000px, 0, 0);
1618
+ }
1619
+ }
1620
+
1621
+ @keyframes fadeOutRightBig {
1622
+ 0% {
1623
+ opacity: 1;
1624
+ }
1625
+
1626
+ 100% {
1627
+ opacity: 0;
1628
+ -webkit-transform: translate3d(2000px, 0, 0);
1629
+ transform: translate3d(2000px, 0, 0);
1630
+ }
1631
+ }
1632
+
1633
+ .fadeOutRightBig {
1634
+ -webkit-animation-name: fadeOutRightBig;
1635
+ animation-name: fadeOutRightBig;
1636
+ }
1637
+
1638
+ @-webkit-keyframes fadeOutUp {
1639
+ 0% {
1640
+ opacity: 1;
1641
+ }
1642
+
1643
+ 100% {
1644
+ opacity: 0;
1645
+ -webkit-transform: translate3d(0, -100%, 0);
1646
+ transform: translate3d(0, -100%, 0);
1647
+ }
1648
+ }
1649
+
1650
+ @keyframes fadeOutUp {
1651
+ 0% {
1652
+ opacity: 1;
1653
+ }
1654
+
1655
+ 100% {
1656
+ opacity: 0;
1657
+ -webkit-transform: translate3d(0, -100%, 0);
1658
+ transform: translate3d(0, -100%, 0);
1659
+ }
1660
+ }
1661
+
1662
+ .fadeOutUp {
1663
+ -webkit-animation-name: fadeOutUp;
1664
+ animation-name: fadeOutUp;
1665
+ }
1666
+
1667
+ @-webkit-keyframes fadeOutUpBig {
1668
+ 0% {
1669
+ opacity: 1;
1670
+ }
1671
+
1672
+ 100% {
1673
+ opacity: 0;
1674
+ -webkit-transform: translate3d(0, -2000px, 0);
1675
+ transform: translate3d(0, -2000px, 0);
1676
+ }
1677
+ }
1678
+
1679
+ @keyframes fadeOutUpBig {
1680
+ 0% {
1681
+ opacity: 1;
1682
+ }
1683
+
1684
+ 100% {
1685
+ opacity: 0;
1686
+ -webkit-transform: translate3d(0, -2000px, 0);
1687
+ transform: translate3d(0, -2000px, 0);
1688
+ }
1689
+ }
1690
+
1691
+ .fadeOutUpBig {
1692
+ -webkit-animation-name: fadeOutUpBig;
1693
+ animation-name: fadeOutUpBig;
1694
+ }
1695
+
1696
+ @-webkit-keyframes flip {
1697
+ 0% {
1698
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -360deg);
1699
+ transform: perspective(400px) rotate3d(0, 1, 0, -360deg);
1700
+ -webkit-animation-timing-function: ease-out;
1701
+ animation-timing-function: ease-out;
1702
+ }
1703
+
1704
+ 40% {
1705
+ -webkit-transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);
1706
+ transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);
1707
+ -webkit-animation-timing-function: ease-out;
1708
+ animation-timing-function: ease-out;
1709
+ }
1710
+
1711
+ 50% {
1712
+ -webkit-transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);
1713
+ transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);
1714
+ -webkit-animation-timing-function: ease-in;
1715
+ animation-timing-function: ease-in;
1716
+ }
1717
+
1718
+ 80% {
1719
+ -webkit-transform: perspective(400px) scale3d(.95, .95, .95);
1720
+ transform: perspective(400px) scale3d(.95, .95, .95);
1721
+ -webkit-animation-timing-function: ease-in;
1722
+ animation-timing-function: ease-in;
1723
+ }
1724
+
1725
+ 100% {
1726
+ -webkit-transform: perspective(400px);
1727
+ transform: perspective(400px);
1728
+ -webkit-animation-timing-function: ease-in;
1729
+ animation-timing-function: ease-in;
1730
+ }
1731
+ }
1732
+
1733
+ @keyframes flip {
1734
+ 0% {
1735
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -360deg);
1736
+ transform: perspective(400px) rotate3d(0, 1, 0, -360deg);
1737
+ -webkit-animation-timing-function: ease-out;
1738
+ animation-timing-function: ease-out;
1739
+ }
1740
+
1741
+ 40% {
1742
+ -webkit-transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);
1743
+ transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);
1744
+ -webkit-animation-timing-function: ease-out;
1745
+ animation-timing-function: ease-out;
1746
+ }
1747
+
1748
+ 50% {
1749
+ -webkit-transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);
1750
+ transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);
1751
+ -webkit-animation-timing-function: ease-in;
1752
+ animation-timing-function: ease-in;
1753
+ }
1754
+
1755
+ 80% {
1756
+ -webkit-transform: perspective(400px) scale3d(.95, .95, .95);
1757
+ transform: perspective(400px) scale3d(.95, .95, .95);
1758
+ -webkit-animation-timing-function: ease-in;
1759
+ animation-timing-function: ease-in;
1760
+ }
1761
+
1762
+ 100% {
1763
+ -webkit-transform: perspective(400px);
1764
+ transform: perspective(400px);
1765
+ -webkit-animation-timing-function: ease-in;
1766
+ animation-timing-function: ease-in;
1767
+ }
1768
+ }
1769
+
1770
+ .animated.flip {
1771
+ -webkit-backface-visibility: visible;
1772
+ backface-visibility: visible;
1773
+ -webkit-animation-name: flip;
1774
+ animation-name: flip;
1775
+ }
1776
+
1777
+ @-webkit-keyframes flipInX {
1778
+ 0% {
1779
+ -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
1780
+ transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
1781
+ -webkit-animation-timing-function: ease-in;
1782
+ animation-timing-function: ease-in;
1783
+ opacity: 0;
1784
+ }
1785
+
1786
+ 40% {
1787
+ -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
1788
+ transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
1789
+ -webkit-animation-timing-function: ease-in;
1790
+ animation-timing-function: ease-in;
1791
+ }
1792
+
1793
+ 60% {
1794
+ -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
1795
+ transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
1796
+ opacity: 1;
1797
+ }
1798
+
1799
+ 80% {
1800
+ -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
1801
+ transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
1802
+ }
1803
+
1804
+ 100% {
1805
+ -webkit-transform: perspective(400px);
1806
+ transform: perspective(400px);
1807
+ }
1808
+ }
1809
+
1810
+ @keyframes flipInX {
1811
+ 0% {
1812
+ -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
1813
+ transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
1814
+ -webkit-animation-timing-function: ease-in;
1815
+ animation-timing-function: ease-in;
1816
+ opacity: 0;
1817
+ }
1818
+
1819
+ 40% {
1820
+ -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
1821
+ transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
1822
+ -webkit-animation-timing-function: ease-in;
1823
+ animation-timing-function: ease-in;
1824
+ }
1825
+
1826
+ 60% {
1827
+ -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
1828
+ transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
1829
+ opacity: 1;
1830
+ }
1831
+
1832
+ 80% {
1833
+ -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
1834
+ transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
1835
+ }
1836
+
1837
+ 100% {
1838
+ -webkit-transform: perspective(400px);
1839
+ transform: perspective(400px);
1840
+ }
1841
+ }
1842
+
1843
+ .flipInX {
1844
+ -webkit-backface-visibility: visible !important;
1845
+ backface-visibility: visible !important;
1846
+ -webkit-animation-name: flipInX;
1847
+ animation-name: flipInX;
1848
+ }
1849
+
1850
+ @-webkit-keyframes flipInY {
1851
+ 0% {
1852
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
1853
+ transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
1854
+ -webkit-animation-timing-function: ease-in;
1855
+ animation-timing-function: ease-in;
1856
+ opacity: 0;
1857
+ }
1858
+
1859
+ 40% {
1860
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
1861
+ transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
1862
+ -webkit-animation-timing-function: ease-in;
1863
+ animation-timing-function: ease-in;
1864
+ }
1865
+
1866
+ 60% {
1867
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
1868
+ transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
1869
+ opacity: 1;
1870
+ }
1871
+
1872
+ 80% {
1873
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
1874
+ transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
1875
+ }
1876
+
1877
+ 100% {
1878
+ -webkit-transform: perspective(400px);
1879
+ transform: perspective(400px);
1880
+ }
1881
+ }
1882
+
1883
+ @keyframes flipInY {
1884
+ 0% {
1885
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
1886
+ transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
1887
+ -webkit-animation-timing-function: ease-in;
1888
+ animation-timing-function: ease-in;
1889
+ opacity: 0;
1890
+ }
1891
+
1892
+ 40% {
1893
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
1894
+ transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
1895
+ -webkit-animation-timing-function: ease-in;
1896
+ animation-timing-function: ease-in;
1897
+ }
1898
+
1899
+ 60% {
1900
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
1901
+ transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
1902
+ opacity: 1;
1903
+ }
1904
+
1905
+ 80% {
1906
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
1907
+ transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
1908
+ }
1909
+
1910
+ 100% {
1911
+ -webkit-transform: perspective(400px);
1912
+ transform: perspective(400px);
1913
+ }
1914
+ }
1915
+
1916
+ .flipInY {
1917
+ -webkit-backface-visibility: visible !important;
1918
+ backface-visibility: visible !important;
1919
+ -webkit-animation-name: flipInY;
1920
+ animation-name: flipInY;
1921
+ }
1922
+
1923
+ @-webkit-keyframes flipOutX {
1924
+ 0% {
1925
+ -webkit-transform: perspective(400px);
1926
+ transform: perspective(400px);
1927
+ }
1928
+
1929
+ 30% {
1930
+ -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
1931
+ transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
1932
+ opacity: 1;
1933
+ }
1934
+
1935
+ 100% {
1936
+ -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
1937
+ transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
1938
+ opacity: 0;
1939
+ }
1940
+ }
1941
+
1942
+ @keyframes flipOutX {
1943
+ 0% {
1944
+ -webkit-transform: perspective(400px);
1945
+ transform: perspective(400px);
1946
+ }
1947
+
1948
+ 30% {
1949
+ -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
1950
+ transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
1951
+ opacity: 1;
1952
+ }
1953
+
1954
+ 100% {
1955
+ -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
1956
+ transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
1957
+ opacity: 0;
1958
+ }
1959
+ }
1960
+
1961
+ .flipOutX {
1962
+ -webkit-animation-name: flipOutX;
1963
+ animation-name: flipOutX;
1964
+ -webkit-backface-visibility: visible !important;
1965
+ backface-visibility: visible !important;
1966
+ }
1967
+
1968
+ @-webkit-keyframes flipOutY {
1969
+ 0% {
1970
+ -webkit-transform: perspective(400px);
1971
+ transform: perspective(400px);
1972
+ }
1973
+
1974
+ 30% {
1975
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -15deg);
1976
+ transform: perspective(400px) rotate3d(0, 1, 0, -15deg);
1977
+ opacity: 1;
1978
+ }
1979
+
1980
+ 100% {
1981
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
1982
+ transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
1983
+ opacity: 0;
1984
+ }
1985
+ }
1986
+
1987
+ @keyframes flipOutY {
1988
+ 0% {
1989
+ -webkit-transform: perspective(400px);
1990
+ transform: perspective(400px);
1991
+ }
1992
+
1993
+ 30% {
1994
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -15deg);
1995
+ transform: perspective(400px) rotate3d(0, 1, 0, -15deg);
1996
+ opacity: 1;
1997
+ }
1998
+
1999
+ 100% {
2000
+ -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
2001
+ transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
2002
+ opacity: 0;
2003
+ }
2004
+ }
2005
+
2006
+ .flipOutY {
2007
+ -webkit-backface-visibility: visible !important;
2008
+ backface-visibility: visible !important;
2009
+ -webkit-animation-name: flipOutY;
2010
+ animation-name: flipOutY;
2011
+ }
2012
+
2013
+ @-webkit-keyframes lightSpeedIn {
2014
+ 0% {
2015
+ -webkit-transform: translate3d(100%, 0, 0) skewX(-30deg);
2016
+ transform: translate3d(100%, 0, 0) skewX(-30deg);
2017
+ opacity: 0;
2018
+ }
2019
+
2020
+ 60% {
2021
+ -webkit-transform: skewX(20deg);
2022
+ transform: skewX(20deg);
2023
+ opacity: 1;
2024
+ }
2025
+
2026
+ 80% {
2027
+ -webkit-transform: skewX(-5deg);
2028
+ transform: skewX(-5deg);
2029
+ opacity: 1;
2030
+ }
2031
+
2032
+ 100% {
2033
+ -webkit-transform: none;
2034
+ transform: none;
2035
+ opacity: 1;
2036
+ }
2037
+ }
2038
+
2039
+ @keyframes lightSpeedIn {
2040
+ 0% {
2041
+ -webkit-transform: translate3d(100%, 0, 0) skewX(-30deg);
2042
+ transform: translate3d(100%, 0, 0) skewX(-30deg);
2043
+ opacity: 0;
2044
+ }
2045
+
2046
+ 60% {
2047
+ -webkit-transform: skewX(20deg);
2048
+ transform: skewX(20deg);
2049
+ opacity: 1;
2050
+ }
2051
+
2052
+ 80% {
2053
+ -webkit-transform: skewX(-5deg);
2054
+ transform: skewX(-5deg);
2055
+ opacity: 1;
2056
+ }
2057
+
2058
+ 100% {
2059
+ -webkit-transform: none;
2060
+ transform: none;
2061
+ opacity: 1;
2062
+ }
2063
+ }
2064
+
2065
+ .lightSpeedIn {
2066
+ -webkit-animation-name: lightSpeedIn;
2067
+ animation-name: lightSpeedIn;
2068
+ -webkit-animation-timing-function: ease-out;
2069
+ animation-timing-function: ease-out;
2070
+ }
2071
+
2072
+ @-webkit-keyframes lightSpeedOut {
2073
+ 0% {
2074
+ opacity: 1;
2075
+ }
2076
+
2077
+ 100% {
2078
+ -webkit-transform: translate3d(100%, 0, 0) skewX(30deg);
2079
+ transform: translate3d(100%, 0, 0) skewX(30deg);
2080
+ opacity: 0;
2081
+ }
2082
+ }
2083
+
2084
+ @keyframes lightSpeedOut {
2085
+ 0% {
2086
+ opacity: 1;
2087
+ }
2088
+
2089
+ 100% {
2090
+ -webkit-transform: translate3d(100%, 0, 0) skewX(30deg);
2091
+ transform: translate3d(100%, 0, 0) skewX(30deg);
2092
+ opacity: 0;
2093
+ }
2094
+ }
2095
+
2096
+ .lightSpeedOut {
2097
+ -webkit-animation-name: lightSpeedOut;
2098
+ animation-name: lightSpeedOut;
2099
+ -webkit-animation-timing-function: ease-in;
2100
+ animation-timing-function: ease-in;
2101
+ }
2102
+
2103
+ @-webkit-keyframes rotateIn {
2104
+ 0% {
2105
+ -webkit-transform-origin: center;
2106
+ transform-origin: center;
2107
+ -webkit-transform: rotate3d(0, 0, 1, -200deg);
2108
+ transform: rotate3d(0, 0, 1, -200deg);
2109
+ opacity: 0;
2110
+ }
2111
+
2112
+ 100% {
2113
+ -webkit-transform-origin: center;
2114
+ transform-origin: center;
2115
+ -webkit-transform: none;
2116
+ transform: none;
2117
+ opacity: 1;
2118
+ }
2119
+ }
2120
+
2121
+ @keyframes rotateIn {
2122
+ 0% {
2123
+ -webkit-transform-origin: center;
2124
+ transform-origin: center;
2125
+ -webkit-transform: rotate3d(0, 0, 1, -200deg);
2126
+ transform: rotate3d(0, 0, 1, -200deg);
2127
+ opacity: 0;
2128
+ }
2129
+
2130
+ 100% {
2131
+ -webkit-transform-origin: center;
2132
+ transform-origin: center;
2133
+ -webkit-transform: none;
2134
+ transform: none;
2135
+ opacity: 1;
2136
+ }
2137
+ }
2138
+
2139
+ .rotateIn {
2140
+ -webkit-animation-name: rotateIn;
2141
+ animation-name: rotateIn;
2142
+ }
2143
+
2144
+ @-webkit-keyframes rotateInDownLeft {
2145
+ 0% {
2146
+ -webkit-transform-origin: left bottom;
2147
+ transform-origin: left bottom;
2148
+ -webkit-transform: rotate3d(0, 0, 1, -45deg);
2149
+ transform: rotate3d(0, 0, 1, -45deg);
2150
+ opacity: 0;
2151
+ }
2152
+
2153
+ 100% {
2154
+ -webkit-transform-origin: left bottom;
2155
+ transform-origin: left bottom;
2156
+ -webkit-transform: none;
2157
+ transform: none;
2158
+ opacity: 1;
2159
+ }
2160
+ }
2161
+
2162
+ @keyframes rotateInDownLeft {
2163
+ 0% {
2164
+ -webkit-transform-origin: left bottom;
2165
+ transform-origin: left bottom;
2166
+ -webkit-transform: rotate3d(0, 0, 1, -45deg);
2167
+ transform: rotate3d(0, 0, 1, -45deg);
2168
+ opacity: 0;
2169
+ }
2170
+
2171
+ 100% {
2172
+ -webkit-transform-origin: left bottom;
2173
+ transform-origin: left bottom;
2174
+ -webkit-transform: none;
2175
+ transform: none;
2176
+ opacity: 1;
2177
+ }
2178
+ }
2179
+
2180
+ .rotateInDownLeft {
2181
+ -webkit-animation-name: rotateInDownLeft;
2182
+ animation-name: rotateInDownLeft;
2183
+ }
2184
+
2185
+ @-webkit-keyframes rotateInDownRight {
2186
+ 0% {
2187
+ -webkit-transform-origin: right bottom;
2188
+ transform-origin: right bottom;
2189
+ -webkit-transform: rotate3d(0, 0, 1, 45deg);
2190
+ transform: rotate3d(0, 0, 1, 45deg);
2191
+ opacity: 0;
2192
+ }
2193
+
2194
+ 100% {
2195
+ -webkit-transform-origin: right bottom;
2196
+ transform-origin: right bottom;
2197
+ -webkit-transform: none;
2198
+ transform: none;
2199
+ opacity: 1;
2200
+ }
2201
+ }
2202
+
2203
+ @keyframes rotateInDownRight {
2204
+ 0% {
2205
+ -webkit-transform-origin: right bottom;
2206
+ transform-origin: right bottom;
2207
+ -webkit-transform: rotate3d(0, 0, 1, 45deg);
2208
+ transform: rotate3d(0, 0, 1, 45deg);
2209
+ opacity: 0;
2210
+ }
2211
+
2212
+ 100% {
2213
+ -webkit-transform-origin: right bottom;
2214
+ transform-origin: right bottom;
2215
+ -webkit-transform: none;
2216
+ transform: none;
2217
+ opacity: 1;
2218
+ }
2219
+ }
2220
+
2221
+ .rotateInDownRight {
2222
+ -webkit-animation-name: rotateInDownRight;
2223
+ animation-name: rotateInDownRight;
2224
+ }
2225
+
2226
+ @-webkit-keyframes rotateInUpLeft {
2227
+ 0% {
2228
+ -webkit-transform-origin: left bottom;
2229
+ transform-origin: left bottom;
2230
+ -webkit-transform: rotate3d(0, 0, 1, 45deg);
2231
+ transform: rotate3d(0, 0, 1, 45deg);
2232
+ opacity: 0;
2233
+ }
2234
+
2235
+ 100% {
2236
+ -webkit-transform-origin: left bottom;
2237
+ transform-origin: left bottom;
2238
+ -webkit-transform: none;
2239
+ transform: none;
2240
+ opacity: 1;
2241
+ }
2242
+ }
2243
+
2244
+ @keyframes rotateInUpLeft {
2245
+ 0% {
2246
+ -webkit-transform-origin: left bottom;
2247
+ transform-origin: left bottom;
2248
+ -webkit-transform: rotate3d(0, 0, 1, 45deg);
2249
+ transform: rotate3d(0, 0, 1, 45deg);
2250
+ opacity: 0;
2251
+ }
2252
+
2253
+ 100% {
2254
+ -webkit-transform-origin: left bottom;
2255
+ transform-origin: left bottom;
2256
+ -webkit-transform: none;
2257
+ transform: none;
2258
+ opacity: 1;
2259
+ }
2260
+ }
2261
+
2262
+ .rotateInUpLeft {
2263
+ -webkit-animation-name: rotateInUpLeft;
2264
+ animation-name: rotateInUpLeft;
2265
+ }
2266
+
2267
+ @-webkit-keyframes rotateInUpRight {
2268
+ 0% {
2269
+ -webkit-transform-origin: right bottom;
2270
+ transform-origin: right bottom;
2271
+ -webkit-transform: rotate3d(0, 0, 1, -90deg);
2272
+ transform: rotate3d(0, 0, 1, -90deg);
2273
+ opacity: 0;
2274
+ }
2275
+
2276
+ 100% {
2277
+ -webkit-transform-origin: right bottom;
2278
+ transform-origin: right bottom;
2279
+ -webkit-transform: none;
2280
+ transform: none;
2281
+ opacity: 1;
2282
+ }
2283
+ }
2284
+
2285
+ @keyframes rotateInUpRight {
2286
+ 0% {
2287
+ -webkit-transform-origin: right bottom;
2288
+ transform-origin: right bottom;
2289
+ -webkit-transform: rotate3d(0, 0, 1, -90deg);
2290
+ transform: rotate3d(0, 0, 1, -90deg);
2291
+ opacity: 0;
2292
+ }
2293
+
2294
+ 100% {
2295
+ -webkit-transform-origin: right bottom;
2296
+ transform-origin: right bottom;
2297
+ -webkit-transform: none;
2298
+ transform: none;
2299
+ opacity: 1;
2300
+ }
2301
+ }
2302
+
2303
+ .rotateInUpRight {
2304
+ -webkit-animation-name: rotateInUpRight;
2305
+ animation-name: rotateInUpRight;
2306
+ }
2307
+
2308
+ @-webkit-keyframes rotateOut {
2309
+ 0% {
2310
+ -webkit-transform-origin: center;
2311
+ transform-origin: center;
2312
+ opacity: 1;
2313
+ }
2314
+
2315
+ 100% {
2316
+ -webkit-transform-origin: center;
2317
+ transform-origin: center;
2318
+ -webkit-transform: rotate3d(0, 0, 1, 200deg);
2319
+ transform: rotate3d(0, 0, 1, 200deg);
2320
+ opacity: 0;
2321
+ }
2322
+ }
2323
+
2324
+ @keyframes rotateOut {
2325
+ 0% {
2326
+ -webkit-transform-origin: center;
2327
+ transform-origin: center;
2328
+ opacity: 1;
2329
+ }
2330
+
2331
+ 100% {
2332
+ -webkit-transform-origin: center;
2333
+ transform-origin: center;
2334
+ -webkit-transform: rotate3d(0, 0, 1, 200deg);
2335
+ transform: rotate3d(0, 0, 1, 200deg);
2336
+ opacity: 0;
2337
+ }
2338
+ }
2339
+
2340
+ .rotateOut {
2341
+ -webkit-animation-name: rotateOut;
2342
+ animation-name: rotateOut;
2343
+ }
2344
+
2345
+ @-webkit-keyframes rotateOutDownLeft {
2346
+ 0% {
2347
+ -webkit-transform-origin: left bottom;
2348
+ transform-origin: left bottom;
2349
+ opacity: 1;
2350
+ }
2351
+
2352
+ 100% {
2353
+ -webkit-transform-origin: left bottom;
2354
+ transform-origin: left bottom;
2355
+ -webkit-transform: rotate3d(0, 0, 1, 45deg);
2356
+ transform: rotate3d(0, 0, 1, 45deg);
2357
+ opacity: 0;
2358
+ }
2359
+ }
2360
+
2361
+ @keyframes rotateOutDownLeft {
2362
+ 0% {
2363
+ -webkit-transform-origin: left bottom;
2364
+ transform-origin: left bottom;
2365
+ opacity: 1;
2366
+ }
2367
+
2368
+ 100% {
2369
+ -webkit-transform-origin: left bottom;
2370
+ transform-origin: left bottom;
2371
+ -webkit-transform: rotate3d(0, 0, 1, 45deg);
2372
+ transform: rotate3d(0, 0, 1, 45deg);
2373
+ opacity: 0;
2374
+ }
2375
+ }
2376
+
2377
+ .rotateOutDownLeft {
2378
+ -webkit-animation-name: rotateOutDownLeft;
2379
+ animation-name: rotateOutDownLeft;
2380
+ }
2381
+
2382
+ @-webkit-keyframes rotateOutDownRight {
2383
+ 0% {
2384
+ -webkit-transform-origin: right bottom;
2385
+ transform-origin: right bottom;
2386
+ opacity: 1;
2387
+ }
2388
+
2389
+ 100% {
2390
+ -webkit-transform-origin: right bottom;
2391
+ transform-origin: right bottom;
2392
+ -webkit-transform: rotate3d(0, 0, 1, -45deg);
2393
+ transform: rotate3d(0, 0, 1, -45deg);
2394
+ opacity: 0;
2395
+ }
2396
+ }
2397
+
2398
+ @keyframes rotateOutDownRight {
2399
+ 0% {
2400
+ -webkit-transform-origin: right bottom;
2401
+ transform-origin: right bottom;
2402
+ opacity: 1;
2403
+ }
2404
+
2405
+ 100% {
2406
+ -webkit-transform-origin: right bottom;
2407
+ transform-origin: right bottom;
2408
+ -webkit-transform: rotate3d(0, 0, 1, -45deg);
2409
+ transform: rotate3d(0, 0, 1, -45deg);
2410
+ opacity: 0;
2411
+ }
2412
+ }
2413
+
2414
+ .rotateOutDownRight {
2415
+ -webkit-animation-name: rotateOutDownRight;
2416
+ animation-name: rotateOutDownRight;
2417
+ }
2418
+
2419
+ @-webkit-keyframes rotateOutUpLeft {
2420
+ 0% {
2421
+ -webkit-transform-origin: left bottom;
2422
+ transform-origin: left bottom;
2423
+ opacity: 1;
2424
+ }
2425
+
2426
+ 100% {
2427
+ -webkit-transform-origin: left bottom;
2428
+ transform-origin: left bottom;
2429
+ -webkit-transform: rotate3d(0, 0, 1, -45deg);
2430
+ transform: rotate3d(0, 0, 1, -45deg);
2431
+ opacity: 0;
2432
+ }
2433
+ }
2434
+
2435
+ @keyframes rotateOutUpLeft {
2436
+ 0% {
2437
+ -webkit-transform-origin: left bottom;
2438
+ transform-origin: left bottom;
2439
+ opacity: 1;
2440
+ }
2441
+
2442
+ 100% {
2443
+ -webkit-transform-origin: left bottom;
2444
+ transform-origin: left bottom;
2445
+ -webkit-transform: rotate3d(0, 0, 1, -45deg);
2446
+ transform: rotate3d(0, 0, 1, -45deg);
2447
+ opacity: 0;
2448
+ }
2449
+ }
2450
+
2451
+ .rotateOutUpLeft {
2452
+ -webkit-animation-name: rotateOutUpLeft;
2453
+ animation-name: rotateOutUpLeft;
2454
+ }
2455
+
2456
+ @-webkit-keyframes rotateOutUpRight {
2457
+ 0% {
2458
+ -webkit-transform-origin: right bottom;
2459
+ transform-origin: right bottom;
2460
+ opacity: 1;
2461
+ }
2462
+
2463
+ 100% {
2464
+ -webkit-transform-origin: right bottom;
2465
+ transform-origin: right bottom;
2466
+ -webkit-transform: rotate3d(0, 0, 1, 90deg);
2467
+ transform: rotate3d(0, 0, 1, 90deg);
2468
+ opacity: 0;
2469
+ }
2470
+ }
2471
+
2472
+ @keyframes rotateOutUpRight {
2473
+ 0% {
2474
+ -webkit-transform-origin: right bottom;
2475
+ transform-origin: right bottom;
2476
+ opacity: 1;
2477
+ }
2478
+
2479
+ 100% {
2480
+ -webkit-transform-origin: right bottom;
2481
+ transform-origin: right bottom;
2482
+ -webkit-transform: rotate3d(0, 0, 1, 90deg);
2483
+ transform: rotate3d(0, 0, 1, 90deg);
2484
+ opacity: 0;
2485
+ }
2486
+ }
2487
+
2488
+ .rotateOutUpRight {
2489
+ -webkit-animation-name: rotateOutUpRight;
2490
+ animation-name: rotateOutUpRight;
2491
+ }
2492
+
2493
+ @-webkit-keyframes hinge {
2494
+ 0% {
2495
+ -webkit-transform-origin: top left;
2496
+ transform-origin: top left;
2497
+ -webkit-animation-timing-function: ease-in-out;
2498
+ animation-timing-function: ease-in-out;
2499
+ }
2500
+
2501
+ 20%, 60% {
2502
+ -webkit-transform: rotate3d(0, 0, 1, 80deg);
2503
+ transform: rotate3d(0, 0, 1, 80deg);
2504
+ -webkit-transform-origin: top left;
2505
+ transform-origin: top left;
2506
+ -webkit-animation-timing-function: ease-in-out;
2507
+ animation-timing-function: ease-in-out;
2508
+ }
2509
+
2510
+ 40%, 80% {
2511
+ -webkit-transform: rotate3d(0, 0, 1, 60deg);
2512
+ transform: rotate3d(0, 0, 1, 60deg);
2513
+ -webkit-transform-origin: top left;
2514
+ transform-origin: top left;
2515
+ -webkit-animation-timing-function: ease-in-out;
2516
+ animation-timing-function: ease-in-out;
2517
+ opacity: 1;
2518
+ }
2519
+
2520
+ 100% {
2521
+ -webkit-transform: translate3d(0, 700px, 0);
2522
+ transform: translate3d(0, 700px, 0);
2523
+ opacity: 0;
2524
+ }
2525
+ }
2526
+
2527
+ @keyframes hinge {
2528
+ 0% {
2529
+ -webkit-transform-origin: top left;
2530
+ transform-origin: top left;
2531
+ -webkit-animation-timing-function: ease-in-out;
2532
+ animation-timing-function: ease-in-out;
2533
+ }
2534
+
2535
+ 20%, 60% {
2536
+ -webkit-transform: rotate3d(0, 0, 1, 80deg);
2537
+ transform: rotate3d(0, 0, 1, 80deg);
2538
+ -webkit-transform-origin: top left;
2539
+ transform-origin: top left;
2540
+ -webkit-animation-timing-function: ease-in-out;
2541
+ animation-timing-function: ease-in-out;
2542
+ }
2543
+
2544
+ 40%, 80% {
2545
+ -webkit-transform: rotate3d(0, 0, 1, 60deg);
2546
+ transform: rotate3d(0, 0, 1, 60deg);
2547
+ -webkit-transform-origin: top left;
2548
+ transform-origin: top left;
2549
+ -webkit-animation-timing-function: ease-in-out;
2550
+ animation-timing-function: ease-in-out;
2551
+ opacity: 1;
2552
+ }
2553
+
2554
+ 100% {
2555
+ -webkit-transform: translate3d(0, 700px, 0);
2556
+ transform: translate3d(0, 700px, 0);
2557
+ opacity: 0;
2558
+ }
2559
+ }
2560
+
2561
+ .hinge {
2562
+ -webkit-animation-name: hinge;
2563
+ animation-name: hinge;
2564
+ }
2565
+
2566
+ /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */
2567
+
2568
+ @-webkit-keyframes rollIn {
2569
+ 0% {
2570
+ opacity: 0;
2571
+ -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
2572
+ transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
2573
+ }
2574
+
2575
+ 100% {
2576
+ opacity: 1;
2577
+ -webkit-transform: none;
2578
+ transform: none;
2579
+ }
2580
+ }
2581
+
2582
+ @keyframes rollIn {
2583
+ 0% {
2584
+ opacity: 0;
2585
+ -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
2586
+ transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
2587
+ }
2588
+
2589
+ 100% {
2590
+ opacity: 1;
2591
+ -webkit-transform: none;
2592
+ transform: none;
2593
+ }
2594
+ }
2595
+
2596
+ .rollIn {
2597
+ -webkit-animation-name: rollIn;
2598
+ animation-name: rollIn;
2599
+ }
2600
+
2601
+ /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */
2602
+
2603
+ @-webkit-keyframes rollOut {
2604
+ 0% {
2605
+ opacity: 1;
2606
+ }
2607
+
2608
+ 100% {
2609
+ opacity: 0;
2610
+ -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
2611
+ transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
2612
+ }
2613
+ }
2614
+
2615
+ @keyframes rollOut {
2616
+ 0% {
2617
+ opacity: 1;
2618
+ }
2619
+
2620
+ 100% {
2621
+ opacity: 0;
2622
+ -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
2623
+ transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
2624
+ }
2625
+ }
2626
+
2627
+ .rollOut {
2628
+ -webkit-animation-name: rollOut;
2629
+ animation-name: rollOut;
2630
+ }
2631
+
2632
+ @-webkit-keyframes zoomIn {
2633
+ 0% {
2634
+ opacity: 0;
2635
+ -webkit-transform: scale3d(.3, .3, .3);
2636
+ transform: scale3d(.3, .3, .3);
2637
+ }
2638
+
2639
+ 50% {
2640
+ opacity: 1;
2641
+ }
2642
+ }
2643
+
2644
+ @keyframes zoomIn {
2645
+ 0% {
2646
+ opacity: 0;
2647
+ -webkit-transform: scale3d(.3, .3, .3);
2648
+ transform: scale3d(.3, .3, .3);
2649
+ }
2650
+
2651
+ 50% {
2652
+ opacity: 1;
2653
+ }
2654
+ }
2655
+
2656
+ .zoomIn {
2657
+ -webkit-animation-name: zoomIn;
2658
+ animation-name: zoomIn;
2659
+ }
2660
+
2661
+ @-webkit-keyframes zoomInDown {
2662
+ 0% {
2663
+ opacity: 0;
2664
+ -webkit-transform: scale3d(.1, .1, .1) translate3d(0, -1000px, 0);
2665
+ transform: scale3d(.1, .1, .1) translate3d(0, -1000px, 0);
2666
+ -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2667
+ animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2668
+ }
2669
+
2670
+ 60% {
2671
+ opacity: 1;
2672
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0);
2673
+ transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0);
2674
+ -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2675
+ animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2676
+ }
2677
+ }
2678
+
2679
+ @keyframes zoomInDown {
2680
+ 0% {
2681
+ opacity: 0;
2682
+ -webkit-transform: scale3d(.1, .1, .1) translate3d(0, -1000px, 0);
2683
+ transform: scale3d(.1, .1, .1) translate3d(0, -1000px, 0);
2684
+ -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2685
+ animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2686
+ }
2687
+
2688
+ 60% {
2689
+ opacity: 1;
2690
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0);
2691
+ transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0);
2692
+ -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2693
+ animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2694
+ }
2695
+ }
2696
+
2697
+ .zoomInDown {
2698
+ -webkit-animation-name: zoomInDown;
2699
+ animation-name: zoomInDown;
2700
+ }
2701
+
2702
+ @-webkit-keyframes zoomInLeft {
2703
+ 0% {
2704
+ opacity: 0;
2705
+ -webkit-transform: scale3d(.1, .1, .1) translate3d(-1000px, 0, 0);
2706
+ transform: scale3d(.1, .1, .1) translate3d(-1000px, 0, 0);
2707
+ -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2708
+ animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2709
+ }
2710
+
2711
+ 60% {
2712
+ opacity: 1;
2713
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(10px, 0, 0);
2714
+ transform: scale3d(.475, .475, .475) translate3d(10px, 0, 0);
2715
+ -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2716
+ animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2717
+ }
2718
+ }
2719
+
2720
+ @keyframes zoomInLeft {
2721
+ 0% {
2722
+ opacity: 0;
2723
+ -webkit-transform: scale3d(.1, .1, .1) translate3d(-1000px, 0, 0);
2724
+ transform: scale3d(.1, .1, .1) translate3d(-1000px, 0, 0);
2725
+ -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2726
+ animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2727
+ }
2728
+
2729
+ 60% {
2730
+ opacity: 1;
2731
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(10px, 0, 0);
2732
+ transform: scale3d(.475, .475, .475) translate3d(10px, 0, 0);
2733
+ -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2734
+ animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2735
+ }
2736
+ }
2737
+
2738
+ .zoomInLeft {
2739
+ -webkit-animation-name: zoomInLeft;
2740
+ animation-name: zoomInLeft;
2741
+ }
2742
+
2743
+ @-webkit-keyframes zoomInRight {
2744
+ 0% {
2745
+ opacity: 0;
2746
+ -webkit-transform: scale3d(.1, .1, .1) translate3d(1000px, 0, 0);
2747
+ transform: scale3d(.1, .1, .1) translate3d(1000px, 0, 0);
2748
+ -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2749
+ animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2750
+ }
2751
+
2752
+ 60% {
2753
+ opacity: 1;
2754
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(-10px, 0, 0);
2755
+ transform: scale3d(.475, .475, .475) translate3d(-10px, 0, 0);
2756
+ -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2757
+ animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2758
+ }
2759
+ }
2760
+
2761
+ @keyframes zoomInRight {
2762
+ 0% {
2763
+ opacity: 0;
2764
+ -webkit-transform: scale3d(.1, .1, .1) translate3d(1000px, 0, 0);
2765
+ transform: scale3d(.1, .1, .1) translate3d(1000px, 0, 0);
2766
+ -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2767
+ animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2768
+ }
2769
+
2770
+ 60% {
2771
+ opacity: 1;
2772
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(-10px, 0, 0);
2773
+ transform: scale3d(.475, .475, .475) translate3d(-10px, 0, 0);
2774
+ -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2775
+ animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2776
+ }
2777
+ }
2778
+
2779
+ .zoomInRight {
2780
+ -webkit-animation-name: zoomInRight;
2781
+ animation-name: zoomInRight;
2782
+ }
2783
+
2784
+ @-webkit-keyframes zoomInUp {
2785
+ 0% {
2786
+ opacity: 0;
2787
+ -webkit-transform: scale3d(.1, .1, .1) translate3d(0, 1000px, 0);
2788
+ transform: scale3d(.1, .1, .1) translate3d(0, 1000px, 0);
2789
+ -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2790
+ animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2791
+ }
2792
+
2793
+ 60% {
2794
+ opacity: 1;
2795
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(0, -60px, 0);
2796
+ transform: scale3d(.475, .475, .475) translate3d(0, -60px, 0);
2797
+ -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2798
+ animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2799
+ }
2800
+ }
2801
+
2802
+ @keyframes zoomInUp {
2803
+ 0% {
2804
+ opacity: 0;
2805
+ -webkit-transform: scale3d(.1, .1, .1) translate3d(0, 1000px, 0);
2806
+ transform: scale3d(.1, .1, .1) translate3d(0, 1000px, 0);
2807
+ -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2808
+ animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2809
+ }
2810
+
2811
+ 60% {
2812
+ opacity: 1;
2813
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(0, -60px, 0);
2814
+ transform: scale3d(.475, .475, .475) translate3d(0, -60px, 0);
2815
+ -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2816
+ animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2817
+ }
2818
+ }
2819
+
2820
+ .zoomInUp {
2821
+ -webkit-animation-name: zoomInUp;
2822
+ animation-name: zoomInUp;
2823
+ }
2824
+
2825
+ @-webkit-keyframes zoomOut {
2826
+ 0% {
2827
+ opacity: 1;
2828
+ }
2829
+
2830
+ 50% {
2831
+ opacity: 0;
2832
+ -webkit-transform: scale3d(.3, .3, .3);
2833
+ transform: scale3d(.3, .3, .3);
2834
+ }
2835
+
2836
+ 100% {
2837
+ opacity: 0;
2838
+ }
2839
+ }
2840
+
2841
+ @keyframes zoomOut {
2842
+ 0% {
2843
+ opacity: 1;
2844
+ }
2845
+
2846
+ 50% {
2847
+ opacity: 0;
2848
+ -webkit-transform: scale3d(.3, .3, .3);
2849
+ transform: scale3d(.3, .3, .3);
2850
+ }
2851
+
2852
+ 100% {
2853
+ opacity: 0;
2854
+ }
2855
+ }
2856
+
2857
+ .zoomOut {
2858
+ -webkit-animation-name: zoomOut;
2859
+ animation-name: zoomOut;
2860
+ }
2861
+
2862
+ @-webkit-keyframes zoomOutDown {
2863
+ 40% {
2864
+ opacity: 1;
2865
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(0, -60px, 0);
2866
+ transform: scale3d(.475, .475, .475) translate3d(0, -60px, 0);
2867
+ -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2868
+ animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2869
+ }
2870
+
2871
+ 100% {
2872
+ opacity: 0;
2873
+ -webkit-transform: scale3d(.1, .1, .1) translate3d(0, 2000px, 0);
2874
+ transform: scale3d(.1, .1, .1) translate3d(0, 2000px, 0);
2875
+ -webkit-transform-origin: center bottom;
2876
+ transform-origin: center bottom;
2877
+ -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2878
+ animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2879
+ }
2880
+ }
2881
+
2882
+ @keyframes zoomOutDown {
2883
+ 40% {
2884
+ opacity: 1;
2885
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(0, -60px, 0);
2886
+ transform: scale3d(.475, .475, .475) translate3d(0, -60px, 0);
2887
+ -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2888
+ animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2889
+ }
2890
+
2891
+ 100% {
2892
+ opacity: 0;
2893
+ -webkit-transform: scale3d(.1, .1, .1) translate3d(0, 2000px, 0);
2894
+ transform: scale3d(.1, .1, .1) translate3d(0, 2000px, 0);
2895
+ -webkit-transform-origin: center bottom;
2896
+ transform-origin: center bottom;
2897
+ -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2898
+ animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2899
+ }
2900
+ }
2901
+
2902
+ .zoomOutDown {
2903
+ -webkit-animation-name: zoomOutDown;
2904
+ animation-name: zoomOutDown;
2905
+ }
2906
+
2907
+ @-webkit-keyframes zoomOutLeft {
2908
+ 40% {
2909
+ opacity: 1;
2910
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(42px, 0, 0);
2911
+ transform: scale3d(.475, .475, .475) translate3d(42px, 0, 0);
2912
+ }
2913
+
2914
+ 100% {
2915
+ opacity: 0;
2916
+ -webkit-transform: scale(.1) translate3d(-2000px, 0, 0);
2917
+ transform: scale(.1) translate3d(-2000px, 0, 0);
2918
+ -webkit-transform-origin: left center;
2919
+ transform-origin: left center;
2920
+ }
2921
+ }
2922
+
2923
+ @keyframes zoomOutLeft {
2924
+ 40% {
2925
+ opacity: 1;
2926
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(42px, 0, 0);
2927
+ transform: scale3d(.475, .475, .475) translate3d(42px, 0, 0);
2928
+ }
2929
+
2930
+ 100% {
2931
+ opacity: 0;
2932
+ -webkit-transform: scale(.1) translate3d(-2000px, 0, 0);
2933
+ transform: scale(.1) translate3d(-2000px, 0, 0);
2934
+ -webkit-transform-origin: left center;
2935
+ transform-origin: left center;
2936
+ }
2937
+ }
2938
+
2939
+ .zoomOutLeft {
2940
+ -webkit-animation-name: zoomOutLeft;
2941
+ animation-name: zoomOutLeft;
2942
+ }
2943
+
2944
+ @-webkit-keyframes zoomOutRight {
2945
+ 40% {
2946
+ opacity: 1;
2947
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(-42px, 0, 0);
2948
+ transform: scale3d(.475, .475, .475) translate3d(-42px, 0, 0);
2949
+ }
2950
+
2951
+ 100% {
2952
+ opacity: 0;
2953
+ -webkit-transform: scale(.1) translate3d(2000px, 0, 0);
2954
+ transform: scale(.1) translate3d(2000px, 0, 0);
2955
+ -webkit-transform-origin: right center;
2956
+ transform-origin: right center;
2957
+ }
2958
+ }
2959
+
2960
+ @keyframes zoomOutRight {
2961
+ 40% {
2962
+ opacity: 1;
2963
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(-42px, 0, 0);
2964
+ transform: scale3d(.475, .475, .475) translate3d(-42px, 0, 0);
2965
+ }
2966
+
2967
+ 100% {
2968
+ opacity: 0;
2969
+ -webkit-transform: scale(.1) translate3d(2000px, 0, 0);
2970
+ transform: scale(.1) translate3d(2000px, 0, 0);
2971
+ -webkit-transform-origin: right center;
2972
+ transform-origin: right center;
2973
+ }
2974
+ }
2975
+
2976
+ .zoomOutRight {
2977
+ -webkit-animation-name: zoomOutRight;
2978
+ animation-name: zoomOutRight;
2979
+ }
2980
+
2981
+ @-webkit-keyframes zoomOutUp {
2982
+ 40% {
2983
+ opacity: 1;
2984
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0);
2985
+ transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0);
2986
+ -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2987
+ animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2988
+ }
2989
+
2990
+ 100% {
2991
+ opacity: 0;
2992
+ -webkit-transform: scale3d(.1, .1, .1) translate3d(0, -2000px, 0);
2993
+ transform: scale3d(.1, .1, .1) translate3d(0, -2000px, 0);
2994
+ -webkit-transform-origin: center bottom;
2995
+ transform-origin: center bottom;
2996
+ -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2997
+ animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
2998
+ }
2999
+ }
3000
+
3001
+ @keyframes zoomOutUp {
3002
+ 40% {
3003
+ opacity: 1;
3004
+ -webkit-transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0);
3005
+ transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0);
3006
+ -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
3007
+ animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
3008
+ }
3009
+
3010
+ 100% {
3011
+ opacity: 0;
3012
+ -webkit-transform: scale3d(.1, .1, .1) translate3d(0, -2000px, 0);
3013
+ transform: scale3d(.1, .1, .1) translate3d(0, -2000px, 0);
3014
+ -webkit-transform-origin: center bottom;
3015
+ transform-origin: center bottom;
3016
+ -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
3017
+ animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
3018
+ }
3019
+ }
3020
+
3021
+ .zoomOutUp {
3022
+ -webkit-animation-name: zoomOutUp;
3023
+ animation-name: zoomOutUp;
3024
+ }
3025
+
3026
+ @-webkit-keyframes slideInDown {
3027
+ 0% {
3028
+ -webkit-transform: translate3d(0, -100%, 0);
3029
+ transform: translate3d(0, -100%, 0);
3030
+ visibility: visible;
3031
+ }
3032
+
3033
+ 100% {
3034
+ -webkit-transform: translate3d(0, 0, 0);
3035
+ transform: translate3d(0, 0, 0);
3036
+ }
3037
+ }
3038
+
3039
+ @keyframes slideInDown {
3040
+ 0% {
3041
+ -webkit-transform: translate3d(0, -100%, 0);
3042
+ transform: translate3d(0, -100%, 0);
3043
+ visibility: visible;
3044
+ }
3045
+
3046
+ 100% {
3047
+ -webkit-transform: translate3d(0, 0, 0);
3048
+ transform: translate3d(0, 0, 0);
3049
+ }
3050
+ }
3051
+
3052
+ .slideInDown {
3053
+ -webkit-animation-name: slideInDown;
3054
+ animation-name: slideInDown;
3055
+ }
3056
+
3057
+ @-webkit-keyframes slideInLeft {
3058
+ 0% {
3059
+ -webkit-transform: translate3d(-100%, 0, 0);
3060
+ transform: translate3d(-100%, 0, 0);
3061
+ visibility: visible;
3062
+ }
3063
+
3064
+ 100% {
3065
+ -webkit-transform: translate3d(0, 0, 0);
3066
+ transform: translate3d(0, 0, 0);
3067
+ }
3068
+ }
3069
+
3070
+ @keyframes slideInLeft {
3071
+ 0% {
3072
+ -webkit-transform: translate3d(-100%, 0, 0);
3073
+ transform: translate3d(-100%, 0, 0);
3074
+ visibility: visible;
3075
+ }
3076
+
3077
+ 100% {
3078
+ -webkit-transform: translate3d(0, 0, 0);
3079
+ transform: translate3d(0, 0, 0);
3080
+ }
3081
+ }
3082
+
3083
+ .slideInLeft {
3084
+ -webkit-animation-name: slideInLeft;
3085
+ animation-name: slideInLeft;
3086
+ }
3087
+
3088
+ @-webkit-keyframes slideInRight {
3089
+ 0% {
3090
+ -webkit-transform: translate3d(100%, 0, 0);
3091
+ transform: translate3d(100%, 0, 0);
3092
+ visibility: visible;
3093
+ }
3094
+
3095
+ 100% {
3096
+ -webkit-transform: translate3d(0, 0, 0);
3097
+ transform: translate3d(0, 0, 0);
3098
+ }
3099
+ }
3100
+
3101
+ @keyframes slideInRight {
3102
+ 0% {
3103
+ -webkit-transform: translate3d(100%, 0, 0);
3104
+ transform: translate3d(100%, 0, 0);
3105
+ visibility: visible;
3106
+ }
3107
+
3108
+ 100% {
3109
+ -webkit-transform: translate3d(0, 0, 0);
3110
+ transform: translate3d(0, 0, 0);
3111
+ }
3112
+ }
3113
+
3114
+ .slideInRight {
3115
+ -webkit-animation-name: slideInRight;
3116
+ animation-name: slideInRight;
3117
+ }
3118
+
3119
+ @-webkit-keyframes slideInUp {
3120
+ 0% {
3121
+ -webkit-transform: translate3d(0, 100%, 0);
3122
+ transform: translate3d(0, 100%, 0);
3123
+ visibility: visible;
3124
+ }
3125
+
3126
+ 100% {
3127
+ -webkit-transform: translate3d(0, 0, 0);
3128
+ transform: translate3d(0, 0, 0);
3129
+ }
3130
+ }
3131
+
3132
+ @keyframes slideInUp {
3133
+ 0% {
3134
+ -webkit-transform: translate3d(0, 100%, 0);
3135
+ transform: translate3d(0, 100%, 0);
3136
+ visibility: visible;
3137
+ }
3138
+
3139
+ 100% {
3140
+ -webkit-transform: translate3d(0, 0, 0);
3141
+ transform: translate3d(0, 0, 0);
3142
+ }
3143
+ }
3144
+
3145
+ .slideInUp {
3146
+ -webkit-animation-name: slideInUp;
3147
+ animation-name: slideInUp;
3148
+ }
3149
+
3150
+ @-webkit-keyframes slideOutDown {
3151
+ 0% {
3152
+ -webkit-transform: translate3d(0, 0, 0);
3153
+ transform: translate3d(0, 0, 0);
3154
+ }
3155
+
3156
+ 100% {
3157
+ visibility: hidden;
3158
+ -webkit-transform: translate3d(0, 100%, 0);
3159
+ transform: translate3d(0, 100%, 0);
3160
+ }
3161
+ }
3162
+
3163
+ @keyframes slideOutDown {
3164
+ 0% {
3165
+ -webkit-transform: translate3d(0, 0, 0);
3166
+ transform: translate3d(0, 0, 0);
3167
+ }
3168
+
3169
+ 100% {
3170
+ visibility: hidden;
3171
+ -webkit-transform: translate3d(0, 100%, 0);
3172
+ transform: translate3d(0, 100%, 0);
3173
+ }
3174
+ }
3175
+
3176
+ .slideOutDown {
3177
+ -webkit-animation-name: slideOutDown;
3178
+ animation-name: slideOutDown;
3179
+ }
3180
+
3181
+ @-webkit-keyframes slideOutLeft {
3182
+ 0% {
3183
+ -webkit-transform: translate3d(0, 0, 0);
3184
+ transform: translate3d(0, 0, 0);
3185
+ }
3186
+
3187
+ 100% {
3188
+ visibility: hidden;
3189
+ -webkit-transform: translate3d(-100%, 0, 0);
3190
+ transform: translate3d(-100%, 0, 0);
3191
+ }
3192
+ }
3193
+
3194
+ @keyframes slideOutLeft {
3195
+ 0% {
3196
+ -webkit-transform: translate3d(0, 0, 0);
3197
+ transform: translate3d(0, 0, 0);
3198
+ }
3199
+
3200
+ 100% {
3201
+ visibility: hidden;
3202
+ -webkit-transform: translate3d(-100%, 0, 0);
3203
+ transform: translate3d(-100%, 0, 0);
3204
+ }
3205
+ }
3206
+
3207
+ .slideOutLeft {
3208
+ -webkit-animation-name: slideOutLeft;
3209
+ animation-name: slideOutLeft;
3210
+ }
3211
+
3212
+ @-webkit-keyframes slideOutRight {
3213
+ 0% {
3214
+ -webkit-transform: translate3d(0, 0, 0);
3215
+ transform: translate3d(0, 0, 0);
3216
+ }
3217
+
3218
+ 100% {
3219
+ visibility: hidden;
3220
+ -webkit-transform: translate3d(100%, 0, 0);
3221
+ transform: translate3d(100%, 0, 0);
3222
+ }
3223
+ }
3224
+
3225
+ @keyframes slideOutRight {
3226
+ 0% {
3227
+ -webkit-transform: translate3d(0, 0, 0);
3228
+ transform: translate3d(0, 0, 0);
3229
+ }
3230
+
3231
+ 100% {
3232
+ visibility: hidden;
3233
+ -webkit-transform: translate3d(100%, 0, 0);
3234
+ transform: translate3d(100%, 0, 0);
3235
+ }
3236
+ }
3237
+
3238
+ .slideOutRight {
3239
+ -webkit-animation-name: slideOutRight;
3240
+ animation-name: slideOutRight;
3241
+ }
3242
+
3243
+ @-webkit-keyframes slideOutUp {
3244
+ 0% {
3245
+ -webkit-transform: translate3d(0, 0, 0);
3246
+ transform: translate3d(0, 0, 0);
3247
+ }
3248
+
3249
+ 100% {
3250
+ visibility: hidden;
3251
+ -webkit-transform: translate3d(0, -100%, 0);
3252
+ transform: translate3d(0, -100%, 0);
3253
+ }
3254
+ }
3255
+
3256
+ @keyframes slideOutUp {
3257
+ 0% {
3258
+ -webkit-transform: translate3d(0, 0, 0);
3259
+ transform: translate3d(0, 0, 0);
3260
+ }
3261
+
3262
+ 100% {
3263
+ visibility: hidden;
3264
+ -webkit-transform: translate3d(0, -100%, 0);
3265
+ transform: translate3d(0, -100%, 0);
3266
+ }
3267
+ }
3268
+
3269
+ .slideOutUp {
3270
+ -webkit-animation-name: slideOutUp;
3271
+ animation-name: slideOutUp;
3272
+ }
skin/frontend/base/default/css/bannerslider/animate.min.css ADDED
@@ -0,0 +1 @@
 
1
+ @charset "UTF-8";/*!Animate.css - http://daneden.me/animate Licensed under the MIT license -http://opensource.org/licenses/MIT Copyright (c) 2015 Daniel Eden*/.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.hinge{-webkit-animation-duration:2s;animation-duration:2s}.animated.bounceIn,.animated.bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s}.animated.flipOutX,.animated.flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s}@-webkit-keyframes bounce{0%,20%,53%,80%,100%{-webkit-animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}@keyframes bounce{0%,20%,53%,80%,100%{-webkit-animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,100%{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,100%{opacity:1}25%,75%{opacity:0}}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse}@-webkit-keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,0.75,1);transform:scale3d(1.25,0.75,1)}40%{-webkit-transform:scale3d(0.75,1.25,1);transform:scale3d(0.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,0.85,1);transform:scale3d(1.15,0.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,0.75,1);transform:scale3d(1.25,0.75,1)}40%{-webkit-transform:scale3d(0.75,1.25,1);transform:scale3d(0.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,0.85,1);transform:scale3d(1.15,0.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shake{0%,100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shake{0%,100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}100%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}100%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}}.swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}100%{-webkit-transform:none;transform:none}}@keyframes wobble{0%{-webkit-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}100%{-webkit-transform:none;transform:none}}.wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{11.1%{-webkit-transform:none;transform:none}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-0.78125deg) skewY(-0.78125deg);transform:skewX(-0.78125deg) skewY(-0.78125deg)}77.7%{-webkit-transform:skewX(0.390625deg) skewY(0.390625deg);transform:skewX(0.390625deg) skewY(0.390625deg)}88.8%{-webkit-transform:skewX(-0.1953125deg) skewY(-0.1953125deg);transform:skewX(-0.1953125deg) skewY(-0.1953125deg)}100%{-webkit-transform:none;transform:none}}@keyframes jello{11.1%{-webkit-transform:none;transform:none}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-0.78125deg) skewY(-0.78125deg);transform:skewX(-0.78125deg) skewY(-0.78125deg)}77.7%{-webkit-transform:skewX(0.390625deg) skewY(0.390625deg);transform:skewX(0.390625deg) skewY(0.390625deg)}88.8%{-webkit-transform:skewX(-0.1953125deg) skewY(-0.1953125deg);transform:skewX(-0.1953125deg) skewY(-0.1953125deg)}100%{-webkit-transform:none;transform:none}}.jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,100%{-webkit-animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}100%{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,100%{-webkit-animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}100%{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.bounceIn{-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,100%{-webkit-animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0);transform:translate3d(0,-3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0);transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}100%{-webkit-transform:none;transform:none}}@keyframes bounceInDown{0%,60%,75%,90%,100%{-webkit-animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0);transform:translate3d(0,-3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0);transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}100%{-webkit-transform:none;transform:none}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,100%{-webkit-animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}100%{-webkit-transform:none;transform:none}}@keyframes bounceInLeft{0%,60%,75%,90%,100%{-webkit-animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}100%{-webkit-transform:none;transform:none}}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,100%{-webkit-animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0);transform:translate3d(3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0);transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}100%{-webkit-transform:none;transform:none}}@keyframes bounceInRight{0%,60%,75%,90%,100%{-webkit-animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0);transform:translate3d(3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0);transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}100%{-webkit-transform:none;transform:none}}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,100%{-webkit-animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes bounceInUp{0%,60%,75%,90%,100%{-webkit-animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}100%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}100%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.bounceOut{-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-360deg);transform:perspective(400px) rotate3d(0,1,0,-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95);transform:perspective(400px) scale3d(.95,.95,.95);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{-webkit-transform:perspective(400px);transform:perspective(400px);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-360deg);transform:perspective(400px) rotate3d(0,1,0,-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95);transform:perspective(400px) scale3d(.95,.95,.95);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{-webkit-transform:perspective(400px);transform:perspective(400px);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animated.flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}.flipOutX{-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}.flipOutY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedIn{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skewX(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg);opacity:1}100%{-webkit-transform:none;transform:none;opacity:1}}@keyframes lightSpeedIn{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skewX(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg);opacity:1}100%{-webkit-transform:none;transform:none;opacity:1}}.lightSpeedIn{-webkit-animation-name:lightSpeedIn;animation-name:lightSpeedIn;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOut{0%{opacity:1}100%{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg);opacity:0}}@keyframes lightSpeedOut{0%{opacity:1}100%{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg);opacity:0}}.lightSpeedOut{-webkit-animation-name:lightSpeedOut;animation-name:lightSpeedOut;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}100%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateIn{0%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}100%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:none;transform:none;opacity:1}}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight}@-webkit-keyframes rotateOut{0%{-webkit-transform-origin:center;transform-origin:center;opacity:1}100%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOut{0%{-webkit-transform-origin:center;transform-origin:center;opacity:1}100%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut}@-webkit-keyframes rotateOutDownLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft}@-webkit-keyframes rotateOutDownRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight}@-webkit-keyframes rotateOutUpLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft}@-webkit-keyframes rotateOutUpRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutUpRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight}@-webkit-keyframes hinge{0%{-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}100%{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}100%{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.hinge{-webkit-animation-name:hinge;animation-name:hinge}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}100%{opacity:1;-webkit-transform:none;transform:none}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes rollOut{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1)}}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1)}}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1)}}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1)}}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}100%{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}100%{opacity:0}}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1)}}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0);-webkit-transform-origin:left center;transform-origin:left center}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0);-webkit-transform-origin:left center;transform-origin:left center}}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0);-webkit-transform-origin:right center;transform-origin:right center}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0);-webkit-transform-origin:right center;transform-origin:right center}}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1)}}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}
skin/frontend/base/default/css/bannerslider/bannerslider.css ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .image-gallery-outer{overflow:hidden;}
2
+ .owl-carousel .owl-item li,
3
+ ul,li{
4
+ padding:0;
5
+ margin:0;
6
+ list-style-type:none;
7
+ }
8
+ .slide-desc-box
9
+ {
10
+ position:absolute;
11
+ top:50%;
12
+ transform:translateY(-50%);
13
+ -webkit-transform:translateY(-50%);
14
+ width:100%;
15
+ text-align:center;
16
+ padding:0 5%;
17
+ box-sizing:border-box;
18
+ -webkit-box-sizing:border-box;
19
+ }
20
+ .slide-desc-box.t-left
21
+ {
22
+ text-align:left;
23
+ }
24
+ .slide-desc-box.t-right
25
+ {
26
+ text-align:right;
27
+ }
28
+ .slide-desc-box .slide-title
29
+ {
30
+ font-size:25px;
31
+ font-weight:700;
32
+ }
33
+ .slide-desc-box .slide-desc
34
+ {
35
+ font-size:18px;
36
+ }
37
+ .owl-theme .owl-controls{
38
+ margin-top: 0px;
39
+ text-align: center;
40
+ }
41
+
42
+ /* Styling Next and Prev buttons */
43
+
44
+ .owl-theme .owl-controls .owl-nav div
45
+ {
46
+ background:#f00;
47
+ border: 0 none;
48
+ height: 44px;
49
+ position: absolute;
50
+ width: 44px;
51
+ top:50%;
52
+ background-position: 100% 0;
53
+ position:absolute;
54
+ font-size:25px;
55
+ font-family:"Comic Sans MS", cursive;
56
+ color:#fff;
57
+ line-height:40px;
58
+ transform:translateY(-50%);
59
+ -webkit-transform:translateY(-50%);
60
+
61
+ transition: all 0.3s ease 0s;
62
+ -moz-transition: all 0.3s ease 0s;
63
+ -webkit-transition: all 0.3s ease 0s;
64
+ -o-transition: all 0.3s ease 0s;
65
+ }
66
+
67
+ .owl-theme .owl-controls .owl-nav .owl-prev
68
+ {
69
+ left:0;
70
+ }
71
+ .owl-theme .owl-controls .owl-nav .owl-next
72
+ {
73
+ right:0;
74
+ }
75
+ .owl-theme .owl-controls .owl-nav .owl-prev:hover
76
+ {
77
+ background-color: #262626;
78
+ background-position: 0 100%;
79
+ }
80
+ .owl-theme .owl-controls .owl-nav .owl-next:hover
81
+ {
82
+ background-color: #262626;
83
+ background-position: 100% 100%;
84
+ }
85
+
86
+ /* Styling Pagination*/
87
+ .owl-theme .owl-controls .owl-dots
88
+ {
89
+ position:absolute;
90
+ bottom:15px;
91
+ width:100%;
92
+ }
93
+ .owl-theme .owl-controls .owl-dot{
94
+ display: inline-block;
95
+ zoom: 1;
96
+ *display: inline;/*IE7 life-saver */
97
+ margin:0 3px;
98
+ }
99
+ .owl-theme .owl-controls .owl-dot span{
100
+ display: block;
101
+ background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
102
+ border-radius: 20px;
103
+ cursor: pointer;
104
+ display: block;
105
+ height: 12px;
106
+ width: 12px;
107
+ z-index: 9;
108
+ margin:0 0 0 0;
109
+ }
110
+
111
+ .owl-theme .owl-controls .owl-dot.active span,
112
+ .owl-theme .owl-controls.clickable .owl-dot:hover span{
113
+ background: none repeat scroll 0 0 #d5d5d5;
114
+ }
115
+
116
+ /* If PaginationNumbers is true */
117
+
118
+ .owl-theme .owl-controls .owl-dot span.owl-numbers{
119
+ height: auto;
120
+ width: auto;
121
+ color: #FFF;
122
+ padding: 2px 10px;
123
+ font-size: 12px;
124
+ -webkit-border-radius: 30px;
125
+ -moz-border-radius: 30px;
126
+ border-radius: 30px;
127
+ }
128
+
129
+ /* preloading images */
130
+ .owl-item.loading{
131
+ min-height: 150px;
132
+ background: url(AjaxLoader.gif) no-repeat center center
133
+ }
134
+ @media screen and (max-width: 980px) {
135
+ .slide-desc-box{padding:0 70px;}
136
+ }
137
+ @media screen and (max-width: 650px)
138
+ {
139
+ .slide-desc-box .slide-title
140
+ {
141
+ font-size:18px;
142
+ }
143
+ .slide-desc-box .slide-desc{font-size:16px;}
144
+ .owl-theme .owl-controls .owl-nav div{
145
+ font-size:20px;
146
+ line-height:35px;
147
+ width:35px;
148
+ height:35px;
149
+ }
150
+ .owl-theme .owl-controls .owl-dot span{
151
+ width:10px;
152
+ height:10px;
153
+ }
154
+ }
155
+ @media screen and (max-width: 480px) {
156
+ .owl-theme .owl-controls .owl-dots{bottom:3px;}
157
+ .slide-desc-box .slide-title{font-size:14px;line-height:16px;}
158
+ .slide-desc-box {
159
+ padding: 0 35px;
160
+ }
161
+ .slide-desc-box .slide-desc{font-size:10px;line-height:12px;}
162
+ .owl-theme .owl-controls .owl-nav div {
163
+ font-size: 18px;
164
+ height: 25px;
165
+ line-height: 25px;
166
+ width: 25px;
167
+ }
168
+ .owl-theme .owl-controls .owl-dot span{width:7px;height:7px;}
169
+ }
skin/frontend/base/default/css/bannerslider/owl.carousel.css ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Owl Carousel - Animate Plugin
3
+ */
4
+ .owl-carousel .animated {
5
+ -webkit-animation-duration: 1000ms;
6
+ animation-duration: 1000ms;
7
+ -webkit-animation-fill-mode: both;
8
+ animation-fill-mode: both;
9
+ }
10
+ .owl-carousel .owl-animated-in {
11
+ z-index: 0;
12
+ }
13
+ .owl-carousel .owl-animated-out {
14
+ z-index: 1;
15
+ }
16
+ .owl-carousel .fadeOut {
17
+ -webkit-animation-name: fadeOut;
18
+ animation-name: fadeOut;
19
+ }
20
+
21
+ @-webkit-keyframes fadeOut {
22
+ 0% {
23
+ opacity: 1;
24
+ }
25
+
26
+ 100% {
27
+ opacity: 0;
28
+ }
29
+ }
30
+ @keyframes fadeOut {
31
+ 0% {
32
+ opacity: 1;
33
+ }
34
+
35
+ 100% {
36
+ opacity: 0;
37
+ }
38
+ }
39
+
40
+ /*
41
+ * Owl Carousel - Auto Height Plugin
42
+ */
43
+ .owl-height {
44
+ -webkit-transition: height 500ms ease-in-out;
45
+ -moz-transition: height 500ms ease-in-out;
46
+ -ms-transition: height 500ms ease-in-out;
47
+ -o-transition: height 500ms ease-in-out;
48
+ transition: height 500ms ease-in-out;
49
+ }
50
+
51
+ /*
52
+ * Core Owl Carousel CSS File
53
+ */
54
+ .owl-carousel {
55
+ display: none;
56
+ width: 100%;
57
+ -webkit-tap-highlight-color: transparent;
58
+ /* position relative and z-index fix webkit rendering fonts issue */
59
+ position: relative;
60
+ z-index: 1;
61
+ }
62
+ .owl-carousel .owl-stage {
63
+ position: relative;
64
+ -ms-touch-action: pan-Y;
65
+ }
66
+ .owl-carousel .owl-stage:after {
67
+ content: ".";
68
+ display: block;
69
+ clear: both;
70
+ visibility: hidden;
71
+ line-height: 0;
72
+ height: 0;
73
+ }
74
+ .owl-carousel .owl-stage-outer {
75
+ position: relative;
76
+ overflow: hidden;
77
+ /* fix for flashing background */
78
+ -webkit-transform: translate3d(0px, 0px, 0px);
79
+ }
80
+ .owl-carousel .owl-controls .owl-nav .owl-prev,
81
+ .owl-carousel .owl-controls .owl-nav .owl-next,
82
+ .owl-carousel .owl-controls .owl-dot {
83
+ cursor: pointer;
84
+ cursor: hand;
85
+ -webkit-user-select: none;
86
+ -khtml-user-select: none;
87
+ -moz-user-select: none;
88
+ -ms-user-select: none;
89
+ user-select: none;
90
+ }
91
+ .owl-carousel.owl-loaded {
92
+ display: block;
93
+ }
94
+ .owl-carousel.owl-loading {
95
+ opacity: 0;
96
+ display: block;
97
+ }
98
+ .owl-carousel.owl-hidden {
99
+ opacity: 0;
100
+ }
101
+ .owl-carousel .owl-refresh .owl-item {
102
+ display: none;
103
+ }
104
+ .owl-carousel .owl-item {
105
+ position: relative;
106
+ min-height: 1px;
107
+ float: left;
108
+ -webkit-backface-visibility: hidden;
109
+ -webkit-tap-highlight-color: transparent;
110
+ -webkit-touch-callout: none;
111
+ -webkit-user-select: none;
112
+ -moz-user-select: none;
113
+ -ms-user-select: none;
114
+ user-select: none;
115
+ }
116
+ .owl-carousel .owl-item img {
117
+ display: block;
118
+ width: 100%;
119
+ -webkit-transform-style: preserve-3d;
120
+ }
121
+ .owl-carousel.owl-text-select-on .owl-item {
122
+ -webkit-user-select: auto;
123
+ -moz-user-select: auto;
124
+ -ms-user-select: auto;
125
+ user-select: auto;
126
+ }
127
+ .owl-carousel .owl-grab {
128
+ cursor: move;
129
+ cursor: -webkit-grab;
130
+ cursor: -o-grab;
131
+ cursor: -ms-grab;
132
+ cursor: grab;
133
+ }
134
+ .owl-carousel.owl-rtl {
135
+ direction: rtl;
136
+ }
137
+ .owl-carousel.owl-rtl .owl-item {
138
+ float: right;
139
+ }
140
+
141
+ /* No Js */
142
+ .no-js .owl-carousel {
143
+ display: block;
144
+ }
145
+
146
+ /*
147
+ * Owl Carousel - Lazy Load Plugin
148
+ */
149
+ .owl-carousel .owl-item .owl-lazy {
150
+ opacity: 0;
151
+ -webkit-transition: opacity 400ms ease;
152
+ -moz-transition: opacity 400ms ease;
153
+ -ms-transition: opacity 400ms ease;
154
+ -o-transition: opacity 400ms ease;
155
+ transition: opacity 400ms ease;
156
+ }
157
+ .owl-carousel .owl-item img {
158
+ transform-style: preserve-3d;
159
+ }
160
+
161
+ /*
162
+ * Owl Carousel - Video Plugin
163
+ */
164
+ .owl-carousel .owl-video-wrapper {
165
+ position: relative;
166
+ height: 100%;
167
+ background: #000;
168
+ }
169
+ .owl-carousel .owl-video-play-icon {
170
+ position: absolute;
171
+ height: 80px;
172
+ width: 80px;
173
+ left: 50%;
174
+ top: 50%;
175
+ margin-left: -40px;
176
+ margin-top: -40px;
177
+ background: url("owl.video.play.png") no-repeat;
178
+ cursor: pointer;
179
+ z-index: 1;
180
+ -webkit-backface-visibility: hidden;
181
+ -webkit-transition: scale 100ms ease;
182
+ -moz-transition: scale 100ms ease;
183
+ -ms-transition: scale 100ms ease;
184
+ -o-transition: scale 100ms ease;
185
+ transition: scale 100ms ease;
186
+ }
187
+ .owl-carousel .owl-video-play-icon:hover {
188
+ -webkit-transition: scale(1.3, 1.3);
189
+ -moz-transition: scale(1.3, 1.3);
190
+ -ms-transition: scale(1.3, 1.3);
191
+ -o-transition: scale(1.3, 1.3);
192
+ transition: scale(1.3, 1.3);
193
+ }
194
+ .owl-carousel .owl-video-playing .owl-video-tn,
195
+ .owl-carousel .owl-video-playing .owl-video-play-icon {
196
+ display: none;
197
+ }
198
+ .owl-carousel .owl-video-tn {
199
+ opacity: 0;
200
+ height: 100%;
201
+ background-position: center center;
202
+ background-repeat: no-repeat;
203
+ -webkit-background-size: contain;
204
+ -moz-background-size: contain;
205
+ -o-background-size: contain;
206
+ background-size: contain;
207
+ -webkit-transition: opacity 400ms ease;
208
+ -moz-transition: opacity 400ms ease;
209
+ -ms-transition: opacity 400ms ease;
210
+ -o-transition: opacity 400ms ease;
211
+ transition: opacity 400ms ease;
212
+ }
213
+ .owl-carousel .owl-video-frame {
214
+ position: relative;
215
+ z-index: 1;
216
+ }
skin/frontend/base/default/js/bannerslider/jquery-1.10.2.min.js ADDED
@@ -0,0 +1,3375 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
2
+ //@ sourceMappingURL=jquery-1.10.2.min.map
3
+ */
4
+ (function(e, t) {
5
+ var n, r, i = typeof t,
6
+ o = e.location,
7
+ a = e.document,
8
+ s = a.documentElement,
9
+ l = e.jQuery,
10
+ u = e.$,
11
+ c = {},
12
+ p = [],
13
+ f = "1.10.2",
14
+ d = p.concat,
15
+ h = p.push,
16
+ g = p.slice,
17
+ m = p.indexOf,
18
+ y = c.toString,
19
+ v = c.hasOwnProperty,
20
+ b = f.trim,
21
+ x = function(e, t) {
22
+ return new x.fn.init(e, t, r)
23
+ },
24
+ w = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
25
+ T = /\S+/g,
26
+ C = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
27
+ N = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
28
+ k = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
29
+ E = /^[\],:{}\s]*$/,
30
+ S = /(?:^|:|,)(?:\s*\[)+/g,
31
+ A = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,
32
+ j = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,
33
+ D = /^-ms-/,
34
+ L = /-([\da-z])/gi,
35
+ H = function(e, t) {
36
+ return t.toUpperCase()
37
+ },
38
+ q = function(e) {
39
+ (a.addEventListener || "load" === e.type || "complete" === a.readyState) && (_(), x.ready())
40
+ },
41
+ _ = function() {
42
+ a.addEventListener ? (a.removeEventListener("DOMContentLoaded", q, !1), e.removeEventListener("load", q, !1)) : (a.detachEvent("onreadystatechange", q), e.detachEvent("onload", q))
43
+ };
44
+ x.fn = x.prototype = {
45
+ jquery: f,
46
+ constructor: x,
47
+ init: function(e, n, r) {
48
+ var i, o;
49
+ if (!e) return this;
50
+ if ("string" == typeof e) {
51
+ if (i = "<" === e.charAt(0) && ">" === e.charAt(e.length - 1) && e.length >= 3 ? [null, e, null] : N.exec(e), !i || !i[1] && n) return !n || n.jquery ? (n || r).find(e) : this.constructor(n).find(e);
52
+ if (i[1]) {
53
+ if (n = n instanceof x ? n[0] : n, x.merge(this, x.parseHTML(i[1], n && n.nodeType ? n.ownerDocument || n : a, !0)), k.test(i[1]) && x.isPlainObject(n))
54
+ for (i in n) x.isFunction(this[i]) ? this[i](n[i]) : this.attr(i, n[i]);
55
+ return this
56
+ }
57
+ if (o = a.getElementById(i[2]), o && o.parentNode) {
58
+ if (o.id !== i[2]) return r.find(e);
59
+ this.length = 1, this[0] = o
60
+ }
61
+ return this.context = a, this.selector = e, this
62
+ }
63
+ return e.nodeType ? (this.context = this[0] = e, this.length = 1, this) : x.isFunction(e) ? r.ready(e) : (e.selector !== t && (this.selector = e.selector, this.context = e.context), x.makeArray(e, this))
64
+ },
65
+ selector: "",
66
+ length: 0,
67
+ toArray: function() {
68
+ return g.call(this)
69
+ },
70
+ get: function(e) {
71
+ return null == e ? this.toArray() : 0 > e ? this[this.length + e] : this[e]
72
+ },
73
+ pushStack: function(e) {
74
+ var t = x.merge(this.constructor(), e);
75
+ return t.prevObject = this, t.context = this.context, t
76
+ },
77
+ each: function(e, t) {
78
+ return x.each(this, e, t)
79
+ },
80
+ ready: function(e) {
81
+ return x.ready.promise().done(e), this
82
+ },
83
+ slice: function() {
84
+ return this.pushStack(g.apply(this, arguments))
85
+ },
86
+ first: function() {
87
+ return this.eq(0)
88
+ },
89
+ last: function() {
90
+ return this.eq(-1)
91
+ },
92
+ eq: function(e) {
93
+ var t = this.length,
94
+ n = +e + (0 > e ? t : 0);
95
+ return this.pushStack(n >= 0 && t > n ? [this[n]] : [])
96
+ },
97
+ map: function(e) {
98
+ return this.pushStack(x.map(this, function(t, n) {
99
+ return e.call(t, n, t)
100
+ }))
101
+ },
102
+ end: function() {
103
+ return this.prevObject || this.constructor(null)
104
+ },
105
+ push: h,
106
+ sort: [].sort,
107
+ splice: [].splice
108
+ }, x.fn.init.prototype = x.fn, x.extend = x.fn.extend = function() {
109
+ var e, n, r, i, o, a, s = arguments[0] || {},
110
+ l = 1,
111
+ u = arguments.length,
112
+ c = !1;
113
+ for ("boolean" == typeof s && (c = s, s = arguments[1] || {}, l = 2), "object" == typeof s || x.isFunction(s) || (s = {}), u === l && (s = this, --l); u > l; l++)
114
+ if (null != (o = arguments[l]))
115
+ for (i in o) e = s[i], r = o[i], s !== r && (c && r && (x.isPlainObject(r) || (n = x.isArray(r))) ? (n ? (n = !1, a = e && x.isArray(e) ? e : []) : a = e && x.isPlainObject(e) ? e : {}, s[i] = x.extend(c, a, r)) : r !== t && (s[i] = r));
116
+ return s
117
+ }, x.extend({
118
+ expando: "jQuery" + (f + Math.random()).replace(/\D/g, ""),
119
+ noConflict: function(t) {
120
+ return e.$ === x && (e.$ = u), t && e.jQuery === x && (e.jQuery = l), x
121
+ },
122
+ isReady: !1,
123
+ readyWait: 1,
124
+ holdReady: function(e) {
125
+ e ? x.readyWait++ : x.ready(!0)
126
+ },
127
+ ready: function(e) {
128
+ if (e === !0 ? !--x.readyWait : !x.isReady) {
129
+ if (!a.body) return setTimeout(x.ready);
130
+ x.isReady = !0, e !== !0 && --x.readyWait > 0 || (n.resolveWith(a, [x]), x.fn.trigger && x(a).trigger("ready").off("ready"))
131
+ }
132
+ },
133
+ isFunction: function(e) {
134
+ return "function" === x.type(e)
135
+ },
136
+ isArray: Array.isArray || function(e) {
137
+ return "array" === x.type(e)
138
+ },
139
+ isWindow: function(e) {
140
+ return null != e && e == e.window
141
+ },
142
+ isNumeric: function(e) {
143
+ return !isNaN(parseFloat(e)) && isFinite(e)
144
+ },
145
+ type: function(e) {
146
+ return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? c[y.call(e)] || "object" : typeof e
147
+ },
148
+ isPlainObject: function(e) {
149
+ var n;
150
+ if (!e || "object" !== x.type(e) || e.nodeType || x.isWindow(e)) return !1;
151
+ try {
152
+ if (e.constructor && !v.call(e, "constructor") && !v.call(e.constructor.prototype, "isPrototypeOf")) return !1
153
+ } catch (r) {
154
+ return !1
155
+ }
156
+ if (x.support.ownLast)
157
+ for (n in e) return v.call(e, n);
158
+ for (n in e);
159
+ return n === t || v.call(e, n)
160
+ },
161
+ isEmptyObject: function(e) {
162
+ var t;
163
+ for (t in e) return !1;
164
+ return !0
165
+ },
166
+ error: function(e) {
167
+ throw Error(e)
168
+ },
169
+ parseHTML: function(e, t, n) {
170
+ if (!e || "string" != typeof e) return null;
171
+ "boolean" == typeof t && (n = t, t = !1), t = t || a;
172
+ var r = k.exec(e),
173
+ i = !n && [];
174
+ return r ? [t.createElement(r[1])] : (r = x.buildFragment([e], t, i), i && x(i).remove(), x.merge([], r.childNodes))
175
+ },
176
+ parseJSON: function(n) {
177
+ return e.JSON && e.JSON.parse ? e.JSON.parse(n) : null === n ? n : "string" == typeof n && (n = x.trim(n), n && E.test(n.replace(A, "@").replace(j, "]").replace(S, ""))) ? Function("return " + n)() : (x.error("Invalid JSON: " + n), t)
178
+ },
179
+ parseXML: function(n) {
180
+ var r, i;
181
+ if (!n || "string" != typeof n) return null;
182
+ try {
183
+ e.DOMParser ? (i = new DOMParser, r = i.parseFromString(n, "text/xml")) : (r = new ActiveXObject("Microsoft.XMLDOM"), r.async = "false", r.loadXML(n))
184
+ } catch (o) {
185
+ r = t
186
+ }
187
+ return r && r.documentElement && !r.getElementsByTagName("parsererror").length || x.error("Invalid XML: " + n), r
188
+ },
189
+ noop: function() {},
190
+ globalEval: function(t) {
191
+ t && x.trim(t) && (e.execScript || function(t) {
192
+ e.eval.call(e, t)
193
+ })(t)
194
+ },
195
+ camelCase: function(e) {
196
+ return e.replace(D, "ms-").replace(L, H)
197
+ },
198
+ nodeName: function(e, t) {
199
+ return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase()
200
+ },
201
+ each: function(e, t, n) {
202
+ var r, i = 0,
203
+ o = e.length,
204
+ a = M(e);
205
+ if (n) {
206
+ if (a) {
207
+ for (; o > i; i++)
208
+ if (r = t.apply(e[i], n), r === !1) break
209
+ } else
210
+ for (i in e)
211
+ if (r = t.apply(e[i], n), r === !1) break
212
+ } else if (a) {
213
+ for (; o > i; i++)
214
+ if (r = t.call(e[i], i, e[i]), r === !1) break
215
+ } else
216
+ for (i in e)
217
+ if (r = t.call(e[i], i, e[i]), r === !1) break; return e
218
+ },
219
+ trim: b && !b.call("\ufeff\u00a0") ? function(e) {
220
+ return null == e ? "" : b.call(e)
221
+ } : function(e) {
222
+ return null == e ? "" : (e + "").replace(C, "")
223
+ },
224
+ makeArray: function(e, t) {
225
+ var n = t || [];
226
+ return null != e && (M(Object(e)) ? x.merge(n, "string" == typeof e ? [e] : e) : h.call(n, e)), n
227
+ },
228
+ inArray: function(e, t, n) {
229
+ var r;
230
+ if (t) {
231
+ if (m) return m.call(t, e, n);
232
+ for (r = t.length, n = n ? 0 > n ? Math.max(0, r + n) : n : 0; r > n; n++)
233
+ if (n in t && t[n] === e) return n
234
+ }
235
+ return -1
236
+ },
237
+ merge: function(e, n) {
238
+ var r = n.length,
239
+ i = e.length,
240
+ o = 0;
241
+ if ("number" == typeof r)
242
+ for (; r > o; o++) e[i++] = n[o];
243
+ else
244
+ while (n[o] !== t) e[i++] = n[o++];
245
+ return e.length = i, e
246
+ },
247
+ grep: function(e, t, n) {
248
+ var r, i = [],
249
+ o = 0,
250
+ a = e.length;
251
+ for (n = !!n; a > o; o++) r = !!t(e[o], o), n !== r && i.push(e[o]);
252
+ return i
253
+ },
254
+ map: function(e, t, n) {
255
+ var r, i = 0,
256
+ o = e.length,
257
+ a = M(e),
258
+ s = [];
259
+ if (a)
260
+ for (; o > i; i++) r = t(e[i], i, n), null != r && (s[s.length] = r);
261
+ else
262
+ for (i in e) r = t(e[i], i, n), null != r && (s[s.length] = r);
263
+ return d.apply([], s)
264
+ },
265
+ guid: 1,
266
+ proxy: function(e, n) {
267
+ var r, i, o;
268
+ return "string" == typeof n && (o = e[n], n = e, e = o), x.isFunction(e) ? (r = g.call(arguments, 2), i = function() {
269
+ return e.apply(n || this, r.concat(g.call(arguments)))
270
+ }, i.guid = e.guid = e.guid || x.guid++, i) : t
271
+ },
272
+ access: function(e, n, r, i, o, a, s) {
273
+ var l = 0,
274
+ u = e.length,
275
+ c = null == r;
276
+ if ("object" === x.type(r)) {
277
+ o = !0;
278
+ for (l in r) x.access(e, n, l, r[l], !0, a, s)
279
+ } else if (i !== t && (o = !0, x.isFunction(i) || (s = !0), c && (s ? (n.call(e, i), n = null) : (c = n, n = function(e, t, n) {
280
+ return c.call(x(e), n)
281
+ })), n))
282
+ for (; u > l; l++) n(e[l], r, s ? i : i.call(e[l], l, n(e[l], r)));
283
+ return o ? e : c ? n.call(e) : u ? n(e[0], r) : a
284
+ },
285
+ now: function() {
286
+ return (new Date).getTime()
287
+ },
288
+ swap: function(e, t, n, r) {
289
+ var i, o, a = {};
290
+ for (o in t) a[o] = e.style[o], e.style[o] = t[o];
291
+ i = n.apply(e, r || []);
292
+ for (o in t) e.style[o] = a[o];
293
+ return i
294
+ }
295
+ }), x.ready.promise = function(t) {
296
+ if (!n)
297
+ if (n = x.Deferred(), "complete" === a.readyState) setTimeout(x.ready);
298
+ else if (a.addEventListener) a.addEventListener("DOMContentLoaded", q, !1), e.addEventListener("load", q, !1);
299
+ else {
300
+ a.attachEvent("onreadystatechange", q), e.attachEvent("onload", q);
301
+ var r = !1;
302
+ try {
303
+ r = null == e.frameElement && a.documentElement
304
+ } catch (i) {}
305
+ r && r.doScroll && function o() {
306
+ if (!x.isReady) {
307
+ try {
308
+ r.doScroll("left")
309
+ } catch (e) {
310
+ return setTimeout(o, 50)
311
+ }
312
+ _(), x.ready()
313
+ }
314
+ }()
315
+ }
316
+ return n.promise(t)
317
+ }, x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(e, t) {
318
+ c["[object " + t + "]"] = t.toLowerCase()
319
+ });
320
+
321
+ function M(e) {
322
+ var t = e.length,
323
+ n = x.type(e);
324
+ return x.isWindow(e) ? !1 : 1 === e.nodeType && t ? !0 : "array" === n || "function" !== n && (0 === t || "number" == typeof t && t > 0 && t - 1 in e)
325
+ }
326
+ r = x(a),
327
+ function(e, t) {
328
+ var n, r, i, o, a, s, l, u, c, p, f, d, h, g, m, y, v, b = "sizzle" + -new Date,
329
+ w = e.document,
330
+ T = 0,
331
+ C = 0,
332
+ N = st(),
333
+ k = st(),
334
+ E = st(),
335
+ S = !1,
336
+ A = function(e, t) {
337
+ return e === t ? (S = !0, 0) : 0
338
+ },
339
+ j = typeof t,
340
+ D = 1 << 31,
341
+ L = {}.hasOwnProperty,
342
+ H = [],
343
+ q = H.pop,
344
+ _ = H.push,
345
+ M = H.push,
346
+ O = H.slice,
347
+ F = H.indexOf || function(e) {
348
+ var t = 0,
349
+ n = this.length;
350
+ for (; n > t; t++)
351
+ if (this[t] === e) return t;
352
+ return -1
353
+ },
354
+ B = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
355
+ P = "[\\x20\\t\\r\\n\\f]",
356
+ R = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
357
+ W = R.replace("w", "w#"),
358
+ $ = "\\[" + P + "*(" + R + ")" + P + "*(?:([*^$|!~]?=)" + P + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + W + ")|)|)" + P + "*\\]",
359
+ I = ":(" + R + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + $.replace(3, 8) + ")*)|.*)\\)|)",
360
+ z = RegExp("^" + P + "+|((?:^|[^\\\\])(?:\\\\.)*)" + P + "+$", "g"),
361
+ X = RegExp("^" + P + "*," + P + "*"),
362
+ U = RegExp("^" + P + "*([>+~]|" + P + ")" + P + "*"),
363
+ V = RegExp(P + "*[+~]"),
364
+ Y = RegExp("=" + P + "*([^\\]'\"]*)" + P + "*\\]", "g"),
365
+ J = RegExp(I),
366
+ G = RegExp("^" + W + "$"),
367
+ Q = {
368
+ ID: RegExp("^#(" + R + ")"),
369
+ CLASS: RegExp("^\\.(" + R + ")"),
370
+ TAG: RegExp("^(" + R.replace("w", "w*") + ")"),
371
+ ATTR: RegExp("^" + $),
372
+ PSEUDO: RegExp("^" + I),
373
+ CHILD: RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + P + "*(even|odd|(([+-]|)(\\d*)n|)" + P + "*(?:([+-]|)" + P + "*(\\d+)|))" + P + "*\\)|)", "i"),
374
+ bool: RegExp("^(?:" + B + ")$", "i"),
375
+ needsContext: RegExp("^" + P + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + P + "*((?:-\\d)?\\d*)" + P + "*\\)|)(?=[^-]|$)", "i")
376
+ },
377
+ K = /^[^{]+\{\s*\[native \w/,
378
+ Z = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
379
+ et = /^(?:input|select|textarea|button)$/i,
380
+ tt = /^h\d$/i,
381
+ nt = /'|\\/g,
382
+ rt = RegExp("\\\\([\\da-f]{1,6}" + P + "?|(" + P + ")|.)", "ig"),
383
+ it = function(e, t, n) {
384
+ var r = "0x" + t - 65536;
385
+ return r !== r || n ? t : 0 > r ? String.fromCharCode(r + 65536) : String.fromCharCode(55296 | r >> 10, 56320 | 1023 & r)
386
+ };
387
+ try {
388
+ M.apply(H = O.call(w.childNodes), w.childNodes), H[w.childNodes.length].nodeType
389
+ } catch (ot) {
390
+ M = {
391
+ apply: H.length ? function(e, t) {
392
+ _.apply(e, O.call(t))
393
+ } : function(e, t) {
394
+ var n = e.length,
395
+ r = 0;
396
+ while (e[n++] = t[r++]);
397
+ e.length = n - 1
398
+ }
399
+ }
400
+ }
401
+
402
+ function at(e, t, n, i) {
403
+ var o, a, s, l, u, c, d, m, y, x;
404
+ if ((t ? t.ownerDocument || t : w) !== f && p(t), t = t || f, n = n || [], !e || "string" != typeof e) return n;
405
+ if (1 !== (l = t.nodeType) && 9 !== l) return [];
406
+ if (h && !i) {
407
+ if (o = Z.exec(e))
408
+ if (s = o[1]) {
409
+ if (9 === l) {
410
+ if (a = t.getElementById(s), !a || !a.parentNode) return n;
411
+ if (a.id === s) return n.push(a), n
412
+ } else if (t.ownerDocument && (a = t.ownerDocument.getElementById(s)) && v(t, a) && a.id === s) return n.push(a), n
413
+ } else {
414
+ if (o[2]) return M.apply(n, t.getElementsByTagName(e)), n;
415
+ if ((s = o[3]) && r.getElementsByClassName && t.getElementsByClassName) return M.apply(n, t.getElementsByClassName(s)), n
416
+ }
417
+ if (r.qsa && (!g || !g.test(e))) {
418
+ if (m = d = b, y = t, x = 9 === l && e, 1 === l && "object" !== t.nodeName.toLowerCase()) {
419
+ c = mt(e), (d = t.getAttribute("id")) ? m = d.replace(nt, "\\$&") : t.setAttribute("id", m), m = "[id='" + m + "'] ", u = c.length;
420
+ while (u--) c[u] = m + yt(c[u]);
421
+ y = V.test(e) && t.parentNode || t, x = c.join(",")
422
+ }
423
+ if (x) try {
424
+ return M.apply(n, y.querySelectorAll(x)), n
425
+ } catch (T) {} finally {
426
+ d || t.removeAttribute("id")
427
+ }
428
+ }
429
+ }
430
+ return kt(e.replace(z, "$1"), t, n, i)
431
+ }
432
+
433
+ function st() {
434
+ var e = [];
435
+
436
+ function t(n, r) {
437
+ return e.push(n += " ") > o.cacheLength && delete t[e.shift()], t[n] = r
438
+ }
439
+ return t
440
+ }
441
+
442
+ function lt(e) {
443
+ return e[b] = !0, e
444
+ }
445
+
446
+ function ut(e) {
447
+ var t = f.createElement("div");
448
+ try {
449
+ return !!e(t)
450
+ } catch (n) {
451
+ return !1
452
+ } finally {
453
+ t.parentNode && t.parentNode.removeChild(t), t = null
454
+ }
455
+ }
456
+
457
+ function ct(e, t) {
458
+ var n = e.split("|"),
459
+ r = e.length;
460
+ while (r--) o.attrHandle[n[r]] = t
461
+ }
462
+
463
+ function pt(e, t) {
464
+ var n = t && e,
465
+ r = n && 1 === e.nodeType && 1 === t.nodeType && (~t.sourceIndex || D) - (~e.sourceIndex || D);
466
+ if (r) return r;
467
+ if (n)
468
+ while (n = n.nextSibling)
469
+ if (n === t) return -1;
470
+ return e ? 1 : -1
471
+ }
472
+
473
+ function ft(e) {
474
+ return function(t) {
475
+ var n = t.nodeName.toLowerCase();
476
+ return "input" === n && t.type === e
477
+ }
478
+ }
479
+
480
+ function dt(e) {
481
+ return function(t) {
482
+ var n = t.nodeName.toLowerCase();
483
+ return ("input" === n || "button" === n) && t.type === e
484
+ }
485
+ }
486
+
487
+ function ht(e) {
488
+ return lt(function(t) {
489
+ return t = +t, lt(function(n, r) {
490
+ var i, o = e([], n.length, t),
491
+ a = o.length;
492
+ while (a--) n[i = o[a]] && (n[i] = !(r[i] = n[i]))
493
+ })
494
+ })
495
+ }
496
+ s = at.isXML = function(e) {
497
+ var t = e && (e.ownerDocument || e).documentElement;
498
+ return t ? "HTML" !== t.nodeName : !1
499
+ }, r = at.support = {}, p = at.setDocument = function(e) {
500
+ var n = e ? e.ownerDocument || e : w,
501
+ i = n.defaultView;
502
+ return n !== f && 9 === n.nodeType && n.documentElement ? (f = n, d = n.documentElement, h = !s(n), i && i.attachEvent && i !== i.top && i.attachEvent("onbeforeunload", function() {
503
+ p()
504
+ }), r.attributes = ut(function(e) {
505
+ return e.className = "i", !e.getAttribute("className")
506
+ }), r.getElementsByTagName = ut(function(e) {
507
+ return e.appendChild(n.createComment("")), !e.getElementsByTagName("*").length
508
+ }), r.getElementsByClassName = ut(function(e) {
509
+ return e.innerHTML = "<div class='a'></div><div class='a i'></div>", e.firstChild.className = "i", 2 === e.getElementsByClassName("i").length
510
+ }), r.getById = ut(function(e) {
511
+ return d.appendChild(e).id = b, !n.getElementsByName || !n.getElementsByName(b).length
512
+ }), r.getById ? (o.find.ID = function(e, t) {
513
+ if (typeof t.getElementById !== j && h) {
514
+ var n = t.getElementById(e);
515
+ return n && n.parentNode ? [n] : []
516
+ }
517
+ }, o.filter.ID = function(e) {
518
+ var t = e.replace(rt, it);
519
+ return function(e) {
520
+ return e.getAttribute("id") === t
521
+ }
522
+ }) : (delete o.find.ID, o.filter.ID = function(e) {
523
+ var t = e.replace(rt, it);
524
+ return function(e) {
525
+ var n = typeof e.getAttributeNode !== j && e.getAttributeNode("id");
526
+ return n && n.value === t
527
+ }
528
+ }), o.find.TAG = r.getElementsByTagName ? function(e, n) {
529
+ return typeof n.getElementsByTagName !== j ? n.getElementsByTagName(e) : t
530
+ } : function(e, t) {
531
+ var n, r = [],
532
+ i = 0,
533
+ o = t.getElementsByTagName(e);
534
+ if ("*" === e) {
535
+ while (n = o[i++]) 1 === n.nodeType && r.push(n);
536
+ return r
537
+ }
538
+ return o
539
+ }, o.find.CLASS = r.getElementsByClassName && function(e, n) {
540
+ return typeof n.getElementsByClassName !== j && h ? n.getElementsByClassName(e) : t
541
+ }, m = [], g = [], (r.qsa = K.test(n.querySelectorAll)) && (ut(function(e) {
542
+ e.innerHTML = "<select><option selected=''></option></select>", e.querySelectorAll("[selected]").length || g.push("\\[" + P + "*(?:value|" + B + ")"), e.querySelectorAll(":checked").length || g.push(":checked")
543
+ }), ut(function(e) {
544
+ var t = n.createElement("input");
545
+ t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("t", ""), e.querySelectorAll("[t^='']").length && g.push("[*^$]=" + P + "*(?:''|\"\")"), e.querySelectorAll(":enabled").length || g.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), g.push(",.*:")
546
+ })), (r.matchesSelector = K.test(y = d.webkitMatchesSelector || d.mozMatchesSelector || d.oMatchesSelector || d.msMatchesSelector)) && ut(function(e) {
547
+ r.disconnectedMatch = y.call(e, "div"), y.call(e, "[s!='']:x"), m.push("!=", I)
548
+ }), g = g.length && RegExp(g.join("|")), m = m.length && RegExp(m.join("|")), v = K.test(d.contains) || d.compareDocumentPosition ? function(e, t) {
549
+ var n = 9 === e.nodeType ? e.documentElement : e,
550
+ r = t && t.parentNode;
551
+ return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r)))
552
+ } : function(e, t) {
553
+ if (t)
554
+ while (t = t.parentNode)
555
+ if (t === e) return !0;
556
+ return !1
557
+ }, A = d.compareDocumentPosition ? function(e, t) {
558
+ if (e === t) return S = !0, 0;
559
+ var i = t.compareDocumentPosition && e.compareDocumentPosition && e.compareDocumentPosition(t);
560
+ return i ? 1 & i || !r.sortDetached && t.compareDocumentPosition(e) === i ? e === n || v(w, e) ? -1 : t === n || v(w, t) ? 1 : c ? F.call(c, e) - F.call(c, t) : 0 : 4 & i ? -1 : 1 : e.compareDocumentPosition ? -1 : 1
561
+ } : function(e, t) {
562
+ var r, i = 0,
563
+ o = e.parentNode,
564
+ a = t.parentNode,
565
+ s = [e],
566
+ l = [t];
567
+ if (e === t) return S = !0, 0;
568
+ if (!o || !a) return e === n ? -1 : t === n ? 1 : o ? -1 : a ? 1 : c ? F.call(c, e) - F.call(c, t) : 0;
569
+ if (o === a) return pt(e, t);
570
+ r = e;
571
+ while (r = r.parentNode) s.unshift(r);
572
+ r = t;
573
+ while (r = r.parentNode) l.unshift(r);
574
+ while (s[i] === l[i]) i++;
575
+ return i ? pt(s[i], l[i]) : s[i] === w ? -1 : l[i] === w ? 1 : 0
576
+ }, n) : f
577
+ }, at.matches = function(e, t) {
578
+ return at(e, null, null, t)
579
+ }, at.matchesSelector = function(e, t) {
580
+ if ((e.ownerDocument || e) !== f && p(e), t = t.replace(Y, "='$1']"), !(!r.matchesSelector || !h || m && m.test(t) || g && g.test(t))) try {
581
+ var n = y.call(e, t);
582
+ if (n || r.disconnectedMatch || e.document && 11 !== e.document.nodeType) return n
583
+ } catch (i) {}
584
+ return at(t, f, null, [e]).length > 0
585
+ }, at.contains = function(e, t) {
586
+ return (e.ownerDocument || e) !== f && p(e), v(e, t)
587
+ }, at.attr = function(e, n) {
588
+ (e.ownerDocument || e) !== f && p(e);
589
+ var i = o.attrHandle[n.toLowerCase()],
590
+ a = i && L.call(o.attrHandle, n.toLowerCase()) ? i(e, n, !h) : t;
591
+ return a === t ? r.attributes || !h ? e.getAttribute(n) : (a = e.getAttributeNode(n)) && a.specified ? a.value : null : a
592
+ }, at.error = function(e) {
593
+ throw Error("Syntax error, unrecognized expression: " + e)
594
+ }, at.uniqueSort = function(e) {
595
+ var t, n = [],
596
+ i = 0,
597
+ o = 0;
598
+ if (S = !r.detectDuplicates, c = !r.sortStable && e.slice(0), e.sort(A), S) {
599
+ while (t = e[o++]) t === e[o] && (i = n.push(o));
600
+ while (i--) e.splice(n[i], 1)
601
+ }
602
+ return e
603
+ }, a = at.getText = function(e) {
604
+ var t, n = "",
605
+ r = 0,
606
+ i = e.nodeType;
607
+ if (i) {
608
+ if (1 === i || 9 === i || 11 === i) {
609
+ if ("string" == typeof e.textContent) return e.textContent;
610
+ for (e = e.firstChild; e; e = e.nextSibling) n += a(e)
611
+ } else if (3 === i || 4 === i) return e.nodeValue
612
+ } else
613
+ for (; t = e[r]; r++) n += a(t);
614
+ return n
615
+ }, o = at.selectors = {
616
+ cacheLength: 50,
617
+ createPseudo: lt,
618
+ match: Q,
619
+ attrHandle: {},
620
+ find: {},
621
+ relative: {
622
+ ">": {
623
+ dir: "parentNode",
624
+ first: !0
625
+ },
626
+ " ": {
627
+ dir: "parentNode"
628
+ },
629
+ "+": {
630
+ dir: "previousSibling",
631
+ first: !0
632
+ },
633
+ "~": {
634
+ dir: "previousSibling"
635
+ }
636
+ },
637
+ preFilter: {
638
+ ATTR: function(e) {
639
+ return e[1] = e[1].replace(rt, it), e[3] = (e[4] || e[5] || "").replace(rt, it), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4)
640
+ },
641
+ CHILD: function(e) {
642
+ return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || at.error(e[0]), e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && at.error(e[0]), e
643
+ },
644
+ PSEUDO: function(e) {
645
+ var n, r = !e[5] && e[2];
646
+ return Q.CHILD.test(e[0]) ? null : (e[3] && e[4] !== t ? e[2] = e[4] : r && J.test(r) && (n = mt(r, !0)) && (n = r.indexOf(")", r.length - n) - r.length) && (e[0] = e[0].slice(0, n), e[2] = r.slice(0, n)), e.slice(0, 3))
647
+ }
648
+ },
649
+ filter: {
650
+ TAG: function(e) {
651
+ var t = e.replace(rt, it).toLowerCase();
652
+ return "*" === e ? function() {
653
+ return !0
654
+ } : function(e) {
655
+ return e.nodeName && e.nodeName.toLowerCase() === t
656
+ }
657
+ },
658
+ CLASS: function(e) {
659
+ var t = N[e + " "];
660
+ return t || (t = RegExp("(^|" + P + ")" + e + "(" + P + "|$)")) && N(e, function(e) {
661
+ return t.test("string" == typeof e.className && e.className || typeof e.getAttribute !== j && e.getAttribute("class") || "")
662
+ })
663
+ },
664
+ ATTR: function(e, t, n) {
665
+ return function(r) {
666
+ var i = at.attr(r, e);
667
+ return null == i ? "!=" === t : t ? (i += "", "=" === t ? i === n : "!=" === t ? i !== n : "^=" === t ? n && 0 === i.indexOf(n) : "*=" === t ? n && i.indexOf(n) > -1 : "$=" === t ? n && i.slice(-n.length) === n : "~=" === t ? (" " + i + " ").indexOf(n) > -1 : "|=" === t ? i === n || i.slice(0, n.length + 1) === n + "-" : !1) : !0
668
+ }
669
+ },
670
+ CHILD: function(e, t, n, r, i) {
671
+ var o = "nth" !== e.slice(0, 3),
672
+ a = "last" !== e.slice(-4),
673
+ s = "of-type" === t;
674
+ return 1 === r && 0 === i ? function(e) {
675
+ return !!e.parentNode
676
+ } : function(t, n, l) {
677
+ var u, c, p, f, d, h, g = o !== a ? "nextSibling" : "previousSibling",
678
+ m = t.parentNode,
679
+ y = s && t.nodeName.toLowerCase(),
680
+ v = !l && !s;
681
+ if (m) {
682
+ if (o) {
683
+ while (g) {
684
+ p = t;
685
+ while (p = p[g])
686
+ if (s ? p.nodeName.toLowerCase() === y : 1 === p.nodeType) return !1;
687
+ h = g = "only" === e && !h && "nextSibling"
688
+ }
689
+ return !0
690
+ }
691
+ if (h = [a ? m.firstChild : m.lastChild], a && v) {
692
+ c = m[b] || (m[b] = {}), u = c[e] || [], d = u[0] === T && u[1], f = u[0] === T && u[2], p = d && m.childNodes[d];
693
+ while (p = ++d && p && p[g] || (f = d = 0) || h.pop())
694
+ if (1 === p.nodeType && ++f && p === t) {
695
+ c[e] = [T, d, f];
696
+ break
697
+ }
698
+ } else if (v && (u = (t[b] || (t[b] = {}))[e]) && u[0] === T) f = u[1];
699
+ else
700
+ while (p = ++d && p && p[g] || (f = d = 0) || h.pop())
701
+ if ((s ? p.nodeName.toLowerCase() === y : 1 === p.nodeType) && ++f && (v && ((p[b] || (p[b] = {}))[e] = [T, f]), p === t)) break; return f -= i, f === r || 0 === f % r && f / r >= 0
702
+ }
703
+ }
704
+ },
705
+ PSEUDO: function(e, t) {
706
+ var n, r = o.pseudos[e] || o.setFilters[e.toLowerCase()] || at.error("unsupported pseudo: " + e);
707
+ return r[b] ? r(t) : r.length > 1 ? (n = [e, e, "", t], o.setFilters.hasOwnProperty(e.toLowerCase()) ? lt(function(e, n) {
708
+ var i, o = r(e, t),
709
+ a = o.length;
710
+ while (a--) i = F.call(e, o[a]), e[i] = !(n[i] = o[a])
711
+ }) : function(e) {
712
+ return r(e, 0, n)
713
+ }) : r
714
+ }
715
+ },
716
+ pseudos: {
717
+ not: lt(function(e) {
718
+ var t = [],
719
+ n = [],
720
+ r = l(e.replace(z, "$1"));
721
+ return r[b] ? lt(function(e, t, n, i) {
722
+ var o, a = r(e, null, i, []),
723
+ s = e.length;
724
+ while (s--)(o = a[s]) && (e[s] = !(t[s] = o))
725
+ }) : function(e, i, o) {
726
+ return t[0] = e, r(t, null, o, n), !n.pop()
727
+ }
728
+ }),
729
+ has: lt(function(e) {
730
+ return function(t) {
731
+ return at(e, t).length > 0
732
+ }
733
+ }),
734
+ contains: lt(function(e) {
735
+ return function(t) {
736
+ return (t.textContent || t.innerText || a(t)).indexOf(e) > -1
737
+ }
738
+ }),
739
+ lang: lt(function(e) {
740
+ return G.test(e || "") || at.error("unsupported lang: " + e), e = e.replace(rt, it).toLowerCase(),
741
+ function(t) {
742
+ var n;
743
+ do
744
+ if (n = h ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return n = n.toLowerCase(), n === e || 0 === n.indexOf(e + "-");
745
+ while ((t = t.parentNode) && 1 === t.nodeType);
746
+ return !1
747
+ }
748
+ }),
749
+ target: function(t) {
750
+ var n = e.location && e.location.hash;
751
+ return n && n.slice(1) === t.id
752
+ },
753
+ root: function(e) {
754
+ return e === d
755
+ },
756
+ focus: function(e) {
757
+ return e === f.activeElement && (!f.hasFocus || f.hasFocus()) && !!(e.type || e.href || ~e.tabIndex)
758
+ },
759
+ enabled: function(e) {
760
+ return e.disabled === !1
761
+ },
762
+ disabled: function(e) {
763
+ return e.disabled === !0
764
+ },
765
+ checked: function(e) {
766
+ var t = e.nodeName.toLowerCase();
767
+ return "input" === t && !!e.checked || "option" === t && !!e.selected
768
+ },
769
+ selected: function(e) {
770
+ return e.parentNode && e.parentNode.selectedIndex, e.selected === !0
771
+ },
772
+ empty: function(e) {
773
+ for (e = e.firstChild; e; e = e.nextSibling)
774
+ if (e.nodeName > "@" || 3 === e.nodeType || 4 === e.nodeType) return !1;
775
+ return !0
776
+ },
777
+ parent: function(e) {
778
+ return !o.pseudos.empty(e)
779
+ },
780
+ header: function(e) {
781
+ return tt.test(e.nodeName)
782
+ },
783
+ input: function(e) {
784
+ return et.test(e.nodeName)
785
+ },
786
+ button: function(e) {
787
+ var t = e.nodeName.toLowerCase();
788
+ return "input" === t && "button" === e.type || "button" === t
789
+ },
790
+ text: function(e) {
791
+ var t;
792
+ return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || t.toLowerCase() === e.type)
793
+ },
794
+ first: ht(function() {
795
+ return [0]
796
+ }),
797
+ last: ht(function(e, t) {
798
+ return [t - 1]
799
+ }),
800
+ eq: ht(function(e, t, n) {
801
+ return [0 > n ? n + t : n]
802
+ }),
803
+ even: ht(function(e, t) {
804
+ var n = 0;
805
+ for (; t > n; n += 2) e.push(n);
806
+ return e
807
+ }),
808
+ odd: ht(function(e, t) {
809
+ var n = 1;
810
+ for (; t > n; n += 2) e.push(n);
811
+ return e
812
+ }),
813
+ lt: ht(function(e, t, n) {
814
+ var r = 0 > n ? n + t : n;
815
+ for (; --r >= 0;) e.push(r);
816
+ return e
817
+ }),
818
+ gt: ht(function(e, t, n) {
819
+ var r = 0 > n ? n + t : n;
820
+ for (; t > ++r;) e.push(r);
821
+ return e
822
+ })
823
+ }
824
+ }, o.pseudos.nth = o.pseudos.eq;
825
+ for (n in {
826
+ radio: !0,
827
+ checkbox: !0,
828
+ file: !0,
829
+ password: !0,
830
+ image: !0
831
+ }) o.pseudos[n] = ft(n);
832
+ for (n in {
833
+ submit: !0,
834
+ reset: !0
835
+ }) o.pseudos[n] = dt(n);
836
+
837
+ function gt() {}
838
+ gt.prototype = o.filters = o.pseudos, o.setFilters = new gt;
839
+
840
+ function mt(e, t) {
841
+ var n, r, i, a, s, l, u, c = k[e + " "];
842
+ if (c) return t ? 0 : c.slice(0);
843
+ s = e, l = [], u = o.preFilter;
844
+ while (s) {
845
+ (!n || (r = X.exec(s))) && (r && (s = s.slice(r[0].length) || s), l.push(i = [])), n = !1, (r = U.exec(s)) && (n = r.shift(), i.push({
846
+ value: n,
847
+ type: r[0].replace(z, " ")
848
+ }), s = s.slice(n.length));
849
+ for (a in o.filter) !(r = Q[a].exec(s)) || u[a] && !(r = u[a](r)) || (n = r.shift(), i.push({
850
+ value: n,
851
+ type: a,
852
+ matches: r
853
+ }), s = s.slice(n.length));
854
+ if (!n) break
855
+ }
856
+ return t ? s.length : s ? at.error(e) : k(e, l).slice(0)
857
+ }
858
+
859
+ function yt(e) {
860
+ var t = 0,
861
+ n = e.length,
862
+ r = "";
863
+ for (; n > t; t++) r += e[t].value;
864
+ return r
865
+ }
866
+
867
+ function vt(e, t, n) {
868
+ var r = t.dir,
869
+ o = n && "parentNode" === r,
870
+ a = C++;
871
+ return t.first ? function(t, n, i) {
872
+ while (t = t[r])
873
+ if (1 === t.nodeType || o) return e(t, n, i)
874
+ } : function(t, n, s) {
875
+ var l, u, c, p = T + " " + a;
876
+ if (s) {
877
+ while (t = t[r])
878
+ if ((1 === t.nodeType || o) && e(t, n, s)) return !0
879
+ } else
880
+ while (t = t[r])
881
+ if (1 === t.nodeType || o)
882
+ if (c = t[b] || (t[b] = {}), (u = c[r]) && u[0] === p) {
883
+ if ((l = u[1]) === !0 || l === i) return l === !0
884
+ } else if (u = c[r] = [p], u[1] = e(t, n, s) || i, u[1] === !0) return !0
885
+ }
886
+ }
887
+
888
+ function bt(e) {
889
+ return e.length > 1 ? function(t, n, r) {
890
+ var i = e.length;
891
+ while (i--)
892
+ if (!e[i](t, n, r)) return !1;
893
+ return !0
894
+ } : e[0]
895
+ }
896
+
897
+ function xt(e, t, n, r, i) {
898
+ var o, a = [],
899
+ s = 0,
900
+ l = e.length,
901
+ u = null != t;
902
+ for (; l > s; s++)(o = e[s]) && (!n || n(o, r, i)) && (a.push(o), u && t.push(s));
903
+ return a
904
+ }
905
+
906
+ function wt(e, t, n, r, i, o) {
907
+ return r && !r[b] && (r = wt(r)), i && !i[b] && (i = wt(i, o)), lt(function(o, a, s, l) {
908
+ var u, c, p, f = [],
909
+ d = [],
910
+ h = a.length,
911
+ g = o || Nt(t || "*", s.nodeType ? [s] : s, []),
912
+ m = !e || !o && t ? g : xt(g, f, e, s, l),
913
+ y = n ? i || (o ? e : h || r) ? [] : a : m;
914
+ if (n && n(m, y, s, l), r) {
915
+ u = xt(y, d), r(u, [], s, l), c = u.length;
916
+ while (c--)(p = u[c]) && (y[d[c]] = !(m[d[c]] = p))
917
+ }
918
+ if (o) {
919
+ if (i || e) {
920
+ if (i) {
921
+ u = [], c = y.length;
922
+ while (c--)(p = y[c]) && u.push(m[c] = p);
923
+ i(null, y = [], u, l)
924
+ }
925
+ c = y.length;
926
+ while (c--)(p = y[c]) && (u = i ? F.call(o, p) : f[c]) > -1 && (o[u] = !(a[u] = p))
927
+ }
928
+ } else y = xt(y === a ? y.splice(h, y.length) : y), i ? i(null, a, y, l) : M.apply(a, y)
929
+ })
930
+ }
931
+
932
+ function Tt(e) {
933
+ var t, n, r, i = e.length,
934
+ a = o.relative[e[0].type],
935
+ s = a || o.relative[" "],
936
+ l = a ? 1 : 0,
937
+ c = vt(function(e) {
938
+ return e === t
939
+ }, s, !0),
940
+ p = vt(function(e) {
941
+ return F.call(t, e) > -1
942
+ }, s, !0),
943
+ f = [function(e, n, r) {
944
+ return !a && (r || n !== u) || ((t = n).nodeType ? c(e, n, r) : p(e, n, r))
945
+ }];
946
+ for (; i > l; l++)
947
+ if (n = o.relative[e[l].type]) f = [vt(bt(f), n)];
948
+ else {
949
+ if (n = o.filter[e[l].type].apply(null, e[l].matches), n[b]) {
950
+ for (r = ++l; i > r; r++)
951
+ if (o.relative[e[r].type]) break;
952
+ return wt(l > 1 && bt(f), l > 1 && yt(e.slice(0, l - 1).concat({
953
+ value: " " === e[l - 2].type ? "*" : ""
954
+ })).replace(z, "$1"), n, r > l && Tt(e.slice(l, r)), i > r && Tt(e = e.slice(r)), i > r && yt(e))
955
+ }
956
+ f.push(n)
957
+ }
958
+ return bt(f)
959
+ }
960
+
961
+ function Ct(e, t) {
962
+ var n = 0,
963
+ r = t.length > 0,
964
+ a = e.length > 0,
965
+ s = function(s, l, c, p, d) {
966
+ var h, g, m, y = [],
967
+ v = 0,
968
+ b = "0",
969
+ x = s && [],
970
+ w = null != d,
971
+ C = u,
972
+ N = s || a && o.find.TAG("*", d && l.parentNode || l),
973
+ k = T += null == C ? 1 : Math.random() || .1;
974
+ for (w && (u = l !== f && l, i = n); null != (h = N[b]); b++) {
975
+ if (a && h) {
976
+ g = 0;
977
+ while (m = e[g++])
978
+ if (m(h, l, c)) {
979
+ p.push(h);
980
+ break
981
+ }
982
+ w && (T = k, i = ++n)
983
+ }
984
+ r && ((h = !m && h) && v--, s && x.push(h))
985
+ }
986
+ if (v += b, r && b !== v) {
987
+ g = 0;
988
+ while (m = t[g++]) m(x, y, l, c);
989
+ if (s) {
990
+ if (v > 0)
991
+ while (b--) x[b] || y[b] || (y[b] = q.call(p));
992
+ y = xt(y)
993
+ }
994
+ M.apply(p, y), w && !s && y.length > 0 && v + t.length > 1 && at.uniqueSort(p)
995
+ }
996
+ return w && (T = k, u = C), x
997
+ };
998
+ return r ? lt(s) : s
999
+ }
1000
+ l = at.compile = function(e, t) {
1001
+ var n, r = [],
1002
+ i = [],
1003
+ o = E[e + " "];
1004
+ if (!o) {
1005
+ t || (t = mt(e)), n = t.length;
1006
+ while (n--) o = Tt(t[n]), o[b] ? r.push(o) : i.push(o);
1007
+ o = E(e, Ct(i, r))
1008
+ }
1009
+ return o
1010
+ };
1011
+
1012
+ function Nt(e, t, n) {
1013
+ var r = 0,
1014
+ i = t.length;
1015
+ for (; i > r; r++) at(e, t[r], n);
1016
+ return n
1017
+ }
1018
+
1019
+ function kt(e, t, n, i) {
1020
+ var a, s, u, c, p, f = mt(e);
1021
+ if (!i && 1 === f.length) {
1022
+ if (s = f[0] = f[0].slice(0), s.length > 2 && "ID" === (u = s[0]).type && r.getById && 9 === t.nodeType && h && o.relative[s[1].type]) {
1023
+ if (t = (o.find.ID(u.matches[0].replace(rt, it), t) || [])[0], !t) return n;
1024
+ e = e.slice(s.shift().value.length)
1025
+ }
1026
+ a = Q.needsContext.test(e) ? 0 : s.length;
1027
+ while (a--) {
1028
+ if (u = s[a], o.relative[c = u.type]) break;
1029
+ if ((p = o.find[c]) && (i = p(u.matches[0].replace(rt, it), V.test(s[0].type) && t.parentNode || t))) {
1030
+ if (s.splice(a, 1), e = i.length && yt(s), !e) return M.apply(n, i), n;
1031
+ break
1032
+ }
1033
+ }
1034
+ }
1035
+ return l(e, f)(i, t, !h, n, V.test(e)), n
1036
+ }
1037
+ r.sortStable = b.split("").sort(A).join("") === b, r.detectDuplicates = S, p(), r.sortDetached = ut(function(e) {
1038
+ return 1 & e.compareDocumentPosition(f.createElement("div"))
1039
+ }), ut(function(e) {
1040
+ return e.innerHTML = "<a href='#'></a>", "#" === e.firstChild.getAttribute("href")
1041
+ }) || ct("type|href|height|width", function(e, n, r) {
1042
+ return r ? t : e.getAttribute(n, "type" === n.toLowerCase() ? 1 : 2)
1043
+ }), r.attributes && ut(function(e) {
1044
+ return e.innerHTML = "<input/>", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value")
1045
+ }) || ct("value", function(e, n, r) {
1046
+ return r || "input" !== e.nodeName.toLowerCase() ? t : e.defaultValue
1047
+ }), ut(function(e) {
1048
+ return null == e.getAttribute("disabled")
1049
+ }) || ct(B, function(e, n, r) {
1050
+ var i;
1051
+ return r ? t : (i = e.getAttributeNode(n)) && i.specified ? i.value : e[n] === !0 ? n.toLowerCase() : null
1052
+ }), x.find = at, x.expr = at.selectors, x.expr[":"] = x.expr.pseudos, x.unique = at.uniqueSort, x.text = at.getText, x.isXMLDoc = at.isXML, x.contains = at.contains
1053
+ }(e);
1054
+ var O = {};
1055
+
1056
+ function F(e) {
1057
+ var t = O[e] = {};
1058
+ return x.each(e.match(T) || [], function(e, n) {
1059
+ t[n] = !0
1060
+ }), t
1061
+ }
1062
+ x.Callbacks = function(e) {
1063
+ e = "string" == typeof e ? O[e] || F(e) : x.extend({}, e);
1064
+ var n, r, i, o, a, s, l = [],
1065
+ u = !e.once && [],
1066
+ c = function(t) {
1067
+ for (r = e.memory && t, i = !0, a = s || 0, s = 0, o = l.length, n = !0; l && o > a; a++)
1068
+ if (l[a].apply(t[0], t[1]) === !1 && e.stopOnFalse) {
1069
+ r = !1;
1070
+ break
1071
+ }
1072
+ n = !1, l && (u ? u.length && c(u.shift()) : r ? l = [] : p.disable())
1073
+ },
1074
+ p = {
1075
+ add: function() {
1076
+ if (l) {
1077
+ var t = l.length;
1078
+ (function i(t) {
1079
+ x.each(t, function(t, n) {
1080
+ var r = x.type(n);
1081
+ "function" === r ? e.unique && p.has(n) || l.push(n) : n && n.length && "string" !== r && i(n)
1082
+ })
1083
+ })(arguments), n ? o = l.length : r && (s = t, c(r))
1084
+ }
1085
+ return this
1086
+ },
1087
+ remove: function() {
1088
+ return l && x.each(arguments, function(e, t) {
1089
+ var r;
1090
+ while ((r = x.inArray(t, l, r)) > -1) l.splice(r, 1), n && (o >= r && o--, a >= r && a--)
1091
+ }), this
1092
+ },
1093
+ has: function(e) {
1094
+ return e ? x.inArray(e, l) > -1 : !(!l || !l.length)
1095
+ },
1096
+ empty: function() {
1097
+ return l = [], o = 0, this
1098
+ },
1099
+ disable: function() {
1100
+ return l = u = r = t, this
1101
+ },
1102
+ disabled: function() {
1103
+ return !l
1104
+ },
1105
+ lock: function() {
1106
+ return u = t, r || p.disable(), this
1107
+ },
1108
+ locked: function() {
1109
+ return !u
1110
+ },
1111
+ fireWith: function(e, t) {
1112
+ return !l || i && !u || (t = t || [], t = [e, t.slice ? t.slice() : t], n ? u.push(t) : c(t)), this
1113
+ },
1114
+ fire: function() {
1115
+ return p.fireWith(this, arguments), this
1116
+ },
1117
+ fired: function() {
1118
+ return !!i
1119
+ }
1120
+ };
1121
+ return p
1122
+ }, x.extend({
1123
+ Deferred: function(e) {
1124
+ var t = [
1125
+ ["resolve", "done", x.Callbacks("once memory"), "resolved"],
1126
+ ["reject", "fail", x.Callbacks("once memory"), "rejected"],
1127
+ ["notify", "progress", x.Callbacks("memory")]
1128
+ ],
1129
+ n = "pending",
1130
+ r = {
1131
+ state: function() {
1132
+ return n
1133
+ },
1134
+ always: function() {
1135
+ return i.done(arguments).fail(arguments), this
1136
+ },
1137
+ then: function() {
1138
+ var e = arguments;
1139
+ return x.Deferred(function(n) {
1140
+ x.each(t, function(t, o) {
1141
+ var a = o[0],
1142
+ s = x.isFunction(e[t]) && e[t];
1143
+ i[o[1]](function() {
1144
+ var e = s && s.apply(this, arguments);
1145
+ e && x.isFunction(e.promise) ? e.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[a + "With"](this === r ? n.promise() : this, s ? [e] : arguments)
1146
+ })
1147
+ }), e = null
1148
+ }).promise()
1149
+ },
1150
+ promise: function(e) {
1151
+ return null != e ? x.extend(e, r) : r
1152
+ }
1153
+ },
1154
+ i = {};
1155
+ return r.pipe = r.then, x.each(t, function(e, o) {
1156
+ var a = o[2],
1157
+ s = o[3];
1158
+ r[o[1]] = a.add, s && a.add(function() {
1159
+ n = s
1160
+ }, t[1 ^ e][2].disable, t[2][2].lock), i[o[0]] = function() {
1161
+ return i[o[0] + "With"](this === i ? r : this, arguments), this
1162
+ }, i[o[0] + "With"] = a.fireWith
1163
+ }), r.promise(i), e && e.call(i, i), i
1164
+ },
1165
+ when: function(e) {
1166
+ var t = 0,
1167
+ n = g.call(arguments),
1168
+ r = n.length,
1169
+ i = 1 !== r || e && x.isFunction(e.promise) ? r : 0,
1170
+ o = 1 === i ? e : x.Deferred(),
1171
+ a = function(e, t, n) {
1172
+ return function(r) {
1173
+ t[e] = this, n[e] = arguments.length > 1 ? g.call(arguments) : r, n === s ? o.notifyWith(t, n) : --i || o.resolveWith(t, n)
1174
+ }
1175
+ },
1176
+ s, l, u;
1177
+ if (r > 1)
1178
+ for (s = Array(r), l = Array(r), u = Array(r); r > t; t++) n[t] && x.isFunction(n[t].promise) ? n[t].promise().done(a(t, u, n)).fail(o.reject).progress(a(t, l, s)) : --i;
1179
+ return i || o.resolveWith(u, n), o.promise()
1180
+ }
1181
+ }), x.support = function(t) {
1182
+ var n, r, o, s, l, u, c, p, f, d = a.createElement("div");
1183
+ if (d.setAttribute("className", "t"), d.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", n = d.getElementsByTagName("*") || [], r = d.getElementsByTagName("a")[0], !r || !r.style || !n.length) return t;
1184
+ s = a.createElement("select"), u = s.appendChild(a.createElement("option")), o = d.getElementsByTagName("input")[0], r.style.cssText = "top:1px;float:left;opacity:.5", t.getSetAttribute = "t" !== d.className, t.leadingWhitespace = 3 === d.firstChild.nodeType, t.tbody = !d.getElementsByTagName("tbody").length, t.htmlSerialize = !!d.getElementsByTagName("link").length, t.style = /top/.test(r.getAttribute("style")), t.hrefNormalized = "/a" === r.getAttribute("href"), t.opacity = /^0.5/.test(r.style.opacity), t.cssFloat = !!r.style.cssFloat, t.checkOn = !!o.value, t.optSelected = u.selected, t.enctype = !!a.createElement("form").enctype, t.html5Clone = "<:nav></:nav>" !== a.createElement("nav").cloneNode(!0).outerHTML, t.inlineBlockNeedsLayout = !1, t.shrinkWrapBlocks = !1, t.pixelPosition = !1, t.deleteExpando = !0, t.noCloneEvent = !0, t.reliableMarginRight = !0, t.boxSizingReliable = !0, o.checked = !0, t.noCloneChecked = o.cloneNode(!0).checked, s.disabled = !0, t.optDisabled = !u.disabled;
1185
+ try {
1186
+ delete d.test
1187
+ } catch (h) {
1188
+ t.deleteExpando = !1
1189
+ }
1190
+ o = a.createElement("input"), o.setAttribute("value", ""), t.input = "" === o.getAttribute("value"), o.value = "t", o.setAttribute("type", "radio"), t.radioValue = "t" === o.value, o.setAttribute("checked", "t"), o.setAttribute("name", "t"), l = a.createDocumentFragment(), l.appendChild(o), t.appendChecked = o.checked, t.checkClone = l.cloneNode(!0).cloneNode(!0).lastChild.checked, d.attachEvent && (d.attachEvent("onclick", function() {
1191
+ t.noCloneEvent = !1
1192
+ }), d.cloneNode(!0).click());
1193
+ for (f in {
1194
+ submit: !0,
1195
+ change: !0,
1196
+ focusin: !0
1197
+ }) d.setAttribute(c = "on" + f, "t"), t[f + "Bubbles"] = c in e || d.attributes[c].expando === !1;
1198
+ d.style.backgroundClip = "content-box", d.cloneNode(!0).style.backgroundClip = "", t.clearCloneStyle = "content-box" === d.style.backgroundClip;
1199
+ for (f in x(t)) break;
1200
+ return t.ownLast = "0" !== f, x(function() {
1201
+ var n, r, o, s = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",
1202
+ l = a.getElementsByTagName("body")[0];
1203
+ l && (n = a.createElement("div"), n.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px", l.appendChild(n).appendChild(d), d.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", o = d.getElementsByTagName("td"), o[0].style.cssText = "padding:0;margin:0;border:0;display:none", p = 0 === o[0].offsetHeight, o[0].style.display = "", o[1].style.display = "none", t.reliableHiddenOffsets = p && 0 === o[0].offsetHeight, d.innerHTML = "", d.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;", x.swap(l, null != l.style.zoom ? {
1204
+ zoom: 1
1205
+ } : {}, function() {
1206
+ t.boxSizing = 4 === d.offsetWidth
1207
+ }), e.getComputedStyle && (t.pixelPosition = "1%" !== (e.getComputedStyle(d, null) || {}).top, t.boxSizingReliable = "4px" === (e.getComputedStyle(d, null) || {
1208
+ width: "4px"
1209
+ }).width, r = d.appendChild(a.createElement("div")), r.style.cssText = d.style.cssText = s, r.style.marginRight = r.style.width = "0", d.style.width = "1px", t.reliableMarginRight = !parseFloat((e.getComputedStyle(r, null) || {}).marginRight)), typeof d.style.zoom !== i && (d.innerHTML = "", d.style.cssText = s + "width:1px;padding:1px;display:inline;zoom:1", t.inlineBlockNeedsLayout = 3 === d.offsetWidth, d.style.display = "block", d.innerHTML = "<div></div>", d.firstChild.style.width = "5px", t.shrinkWrapBlocks = 3 !== d.offsetWidth, t.inlineBlockNeedsLayout && (l.style.zoom = 1)), l.removeChild(n), n = d = o = r = null)
1210
+ }), n = s = l = u = r = o = null, t
1211
+ }({});
1212
+ var B = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
1213
+ P = /([A-Z])/g;
1214
+
1215
+ function R(e, n, r, i) {
1216
+ if (x.acceptData(e)) {
1217
+ var o, a, s = x.expando,
1218
+ l = e.nodeType,
1219
+ u = l ? x.cache : e,
1220
+ c = l ? e[s] : e[s] && s;
1221
+ if (c && u[c] && (i || u[c].data) || r !== t || "string" != typeof n) return c || (c = l ? e[s] = p.pop() || x.guid++ : s), u[c] || (u[c] = l ? {} : {
1222
+ toJSON: x.noop
1223
+ }), ("object" == typeof n || "function" == typeof n) && (i ? u[c] = x.extend(u[c], n) : u[c].data = x.extend(u[c].data, n)), a = u[c], i || (a.data || (a.data = {}), a = a.data), r !== t && (a[x.camelCase(n)] = r), "string" == typeof n ? (o = a[n], null == o && (o = a[x.camelCase(n)])) : o = a, o
1224
+ }
1225
+ }
1226
+
1227
+ function W(e, t, n) {
1228
+ if (x.acceptData(e)) {
1229
+ var r, i, o = e.nodeType,
1230
+ a = o ? x.cache : e,
1231
+ s = o ? e[x.expando] : x.expando;
1232
+ if (a[s]) {
1233
+ if (t && (r = n ? a[s] : a[s].data)) {
1234
+ x.isArray(t) ? t = t.concat(x.map(t, x.camelCase)) : t in r ? t = [t] : (t = x.camelCase(t), t = t in r ? [t] : t.split(" ")), i = t.length;
1235
+ while (i--) delete r[t[i]];
1236
+ if (n ? !I(r) : !x.isEmptyObject(r)) return
1237
+ }(n || (delete a[s].data, I(a[s]))) && (o ? x.cleanData([e], !0) : x.support.deleteExpando || a != a.window ? delete a[s] : a[s] = null)
1238
+ }
1239
+ }
1240
+ }
1241
+ x.extend({
1242
+ cache: {},
1243
+ noData: {
1244
+ applet: !0,
1245
+ embed: !0,
1246
+ object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
1247
+ },
1248
+ hasData: function(e) {
1249
+ return e = e.nodeType ? x.cache[e[x.expando]] : e[x.expando], !!e && !I(e)
1250
+ },
1251
+ data: function(e, t, n) {
1252
+ return R(e, t, n)
1253
+ },
1254
+ removeData: function(e, t) {
1255
+ return W(e, t)
1256
+ },
1257
+ _data: function(e, t, n) {
1258
+ return R(e, t, n, !0)
1259
+ },
1260
+ _removeData: function(e, t) {
1261
+ return W(e, t, !0)
1262
+ },
1263
+ acceptData: function(e) {
1264
+ if (e.nodeType && 1 !== e.nodeType && 9 !== e.nodeType) return !1;
1265
+ var t = e.nodeName && x.noData[e.nodeName.toLowerCase()];
1266
+ return !t || t !== !0 && e.getAttribute("classid") === t
1267
+ }
1268
+ }), x.fn.extend({
1269
+ data: function(e, n) {
1270
+ var r, i, o = null,
1271
+ a = 0,
1272
+ s = this[0];
1273
+ if (e === t) {
1274
+ if (this.length && (o = x.data(s), 1 === s.nodeType && !x._data(s, "parsedAttrs"))) {
1275
+ for (r = s.attributes; r.length > a; a++) i = r[a].name, 0 === i.indexOf("data-") && (i = x.camelCase(i.slice(5)), $(s, i, o[i]));
1276
+ x._data(s, "parsedAttrs", !0)
1277
+ }
1278
+ return o
1279
+ }
1280
+ return "object" == typeof e ? this.each(function() {
1281
+ x.data(this, e)
1282
+ }) : arguments.length > 1 ? this.each(function() {
1283
+ x.data(this, e, n)
1284
+ }) : s ? $(s, e, x.data(s, e)) : null
1285
+ },
1286
+ removeData: function(e) {
1287
+ return this.each(function() {
1288
+ x.removeData(this, e)
1289
+ })
1290
+ }
1291
+ });
1292
+
1293
+ function $(e, n, r) {
1294
+ if (r === t && 1 === e.nodeType) {
1295
+ var i = "data-" + n.replace(P, "-$1").toLowerCase();
1296
+ if (r = e.getAttribute(i), "string" == typeof r) {
1297
+ try {
1298
+ r = "true" === r ? !0 : "false" === r ? !1 : "null" === r ? null : +r + "" === r ? +r : B.test(r) ? x.parseJSON(r) : r
1299
+ } catch (o) {}
1300
+ x.data(e, n, r)
1301
+ } else r = t
1302
+ }
1303
+ return r
1304
+ }
1305
+
1306
+ function I(e) {
1307
+ var t;
1308
+ for (t in e)
1309
+ if (("data" !== t || !x.isEmptyObject(e[t])) && "toJSON" !== t) return !1;
1310
+ return !0
1311
+ }
1312
+ x.extend({
1313
+ queue: function(e, n, r) {
1314
+ var i;
1315
+ return e ? (n = (n || "fx") + "queue", i = x._data(e, n), r && (!i || x.isArray(r) ? i = x._data(e, n, x.makeArray(r)) : i.push(r)), i || []) : t
1316
+ },
1317
+ dequeue: function(e, t) {
1318
+ t = t || "fx";
1319
+ var n = x.queue(e, t),
1320
+ r = n.length,
1321
+ i = n.shift(),
1322
+ o = x._queueHooks(e, t),
1323
+ a = function() {
1324
+ x.dequeue(e, t)
1325
+ };
1326
+ "inprogress" === i && (i = n.shift(), r--), i && ("fx" === t && n.unshift("inprogress"), delete o.stop, i.call(e, a, o)), !r && o && o.empty.fire()
1327
+ },
1328
+ _queueHooks: function(e, t) {
1329
+ var n = t + "queueHooks";
1330
+ return x._data(e, n) || x._data(e, n, {
1331
+ empty: x.Callbacks("once memory").add(function() {
1332
+ x._removeData(e, t + "queue"), x._removeData(e, n)
1333
+ })
1334
+ })
1335
+ }
1336
+ }), x.fn.extend({
1337
+ queue: function(e, n) {
1338
+ var r = 2;
1339
+ return "string" != typeof e && (n = e, e = "fx", r--), r > arguments.length ? x.queue(this[0], e) : n === t ? this : this.each(function() {
1340
+ var t = x.queue(this, e, n);
1341
+ x._queueHooks(this, e), "fx" === e && "inprogress" !== t[0] && x.dequeue(this, e)
1342
+ })
1343
+ },
1344
+ dequeue: function(e) {
1345
+ return this.each(function() {
1346
+ x.dequeue(this, e)
1347
+ })
1348
+ },
1349
+ delay: function(e, t) {
1350
+ return e = x.fx ? x.fx.speeds[e] || e : e, t = t || "fx", this.queue(t, function(t, n) {
1351
+ var r = setTimeout(t, e);
1352
+ n.stop = function() {
1353
+ clearTimeout(r)
1354
+ }
1355
+ })
1356
+ },
1357
+ clearQueue: function(e) {
1358
+ return this.queue(e || "fx", [])
1359
+ },
1360
+ promise: function(e, n) {
1361
+ var r, i = 1,
1362
+ o = x.Deferred(),
1363
+ a = this,
1364
+ s = this.length,
1365
+ l = function() {
1366
+ --i || o.resolveWith(a, [a])
1367
+ };
1368
+ "string" != typeof e && (n = e, e = t), e = e || "fx";
1369
+ while (s--) r = x._data(a[s], e + "queueHooks"), r && r.empty && (i++, r.empty.add(l));
1370
+ return l(), o.promise(n)
1371
+ }
1372
+ });
1373
+ var z, X, U = /[\t\r\n\f]/g,
1374
+ V = /\r/g,
1375
+ Y = /^(?:input|select|textarea|button|object)$/i,
1376
+ J = /^(?:a|area)$/i,
1377
+ G = /^(?:checked|selected)$/i,
1378
+ Q = x.support.getSetAttribute,
1379
+ K = x.support.input;
1380
+ x.fn.extend({
1381
+ attr: function(e, t) {
1382
+ return x.access(this, x.attr, e, t, arguments.length > 1)
1383
+ },
1384
+ removeAttr: function(e) {
1385
+ return this.each(function() {
1386
+ x.removeAttr(this, e)
1387
+ })
1388
+ },
1389
+ prop: function(e, t) {
1390
+ return x.access(this, x.prop, e, t, arguments.length > 1)
1391
+ },
1392
+ removeProp: function(e) {
1393
+ return e = x.propFix[e] || e, this.each(function() {
1394
+ try {
1395
+ this[e] = t, delete this[e]
1396
+ } catch (n) {}
1397
+ })
1398
+ },
1399
+ addClass: function(e) {
1400
+ var t, n, r, i, o, a = 0,
1401
+ s = this.length,
1402
+ l = "string" == typeof e && e;
1403
+ if (x.isFunction(e)) return this.each(function(t) {
1404
+ x(this).addClass(e.call(this, t, this.className))
1405
+ });
1406
+ if (l)
1407
+ for (t = (e || "").match(T) || []; s > a; a++)
1408
+ if (n = this[a], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(U, " ") : " ")) {
1409
+ o = 0;
1410
+ while (i = t[o++]) 0 > r.indexOf(" " + i + " ") && (r += i + " ");
1411
+ n.className = x.trim(r)
1412
+ }
1413
+ return this
1414
+ },
1415
+ removeClass: function(e) {
1416
+ var t, n, r, i, o, a = 0,
1417
+ s = this.length,
1418
+ l = 0 === arguments.length || "string" == typeof e && e;
1419
+ if (x.isFunction(e)) return this.each(function(t) {
1420
+ x(this).removeClass(e.call(this, t, this.className))
1421
+ });
1422
+ if (l)
1423
+ for (t = (e || "").match(T) || []; s > a; a++)
1424
+ if (n = this[a], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(U, " ") : "")) {
1425
+ o = 0;
1426
+ while (i = t[o++])
1427
+ while (r.indexOf(" " + i + " ") >= 0) r = r.replace(" " + i + " ", " ");
1428
+ n.className = e ? x.trim(r) : ""
1429
+ }
1430
+ return this
1431
+ },
1432
+ toggleClass: function(e, t) {
1433
+ var n = typeof e;
1434
+ return "boolean" == typeof t && "string" === n ? t ? this.addClass(e) : this.removeClass(e) : x.isFunction(e) ? this.each(function(n) {
1435
+ x(this).toggleClass(e.call(this, n, this.className, t), t)
1436
+ }) : this.each(function() {
1437
+ if ("string" === n) {
1438
+ var t, r = 0,
1439
+ o = x(this),
1440
+ a = e.match(T) || [];
1441
+ while (t = a[r++]) o.hasClass(t) ? o.removeClass(t) : o.addClass(t)
1442
+ } else(n === i || "boolean" === n) && (this.className && x._data(this, "__className__", this.className), this.className = this.className || e === !1 ? "" : x._data(this, "__className__") || "")
1443
+ })
1444
+ },
1445
+ hasClass: function(e) {
1446
+ var t = " " + e + " ",
1447
+ n = 0,
1448
+ r = this.length;
1449
+ for (; r > n; n++)
1450
+ if (1 === this[n].nodeType && (" " + this[n].className + " ").replace(U, " ").indexOf(t) >= 0) return !0;
1451
+ return !1
1452
+ },
1453
+ val: function(e) {
1454
+ var n, r, i, o = this[0]; {
1455
+ if (arguments.length) return i = x.isFunction(e), this.each(function(n) {
1456
+ var o;
1457
+ 1 === this.nodeType && (o = i ? e.call(this, n, x(this).val()) : e, null == o ? o = "" : "number" == typeof o ? o += "" : x.isArray(o) && (o = x.map(o, function(e) {
1458
+ return null == e ? "" : e + ""
1459
+ })), r = x.valHooks[this.type] || x.valHooks[this.nodeName.toLowerCase()], r && "set" in r && r.set(this, o, "value") !== t || (this.value = o))
1460
+ });
1461
+ if (o) return r = x.valHooks[o.type] || x.valHooks[o.nodeName.toLowerCase()], r && "get" in r && (n = r.get(o, "value")) !== t ? n : (n = o.value, "string" == typeof n ? n.replace(V, "") : null == n ? "" : n)
1462
+ }
1463
+ }
1464
+ }), x.extend({
1465
+ valHooks: {
1466
+ option: {
1467
+ get: function(e) {
1468
+ var t = x.find.attr(e, "value");
1469
+ return null != t ? t : e.text
1470
+ }
1471
+ },
1472
+ select: {
1473
+ get: function(e) {
1474
+ var t, n, r = e.options,
1475
+ i = e.selectedIndex,
1476
+ o = "select-one" === e.type || 0 > i,
1477
+ a = o ? null : [],
1478
+ s = o ? i + 1 : r.length,
1479
+ l = 0 > i ? s : o ? i : 0;
1480
+ for (; s > l; l++)
1481
+ if (n = r[l], !(!n.selected && l !== i || (x.support.optDisabled ? n.disabled : null !== n.getAttribute("disabled")) || n.parentNode.disabled && x.nodeName(n.parentNode, "optgroup"))) {
1482
+ if (t = x(n).val(), o) return t;
1483
+ a.push(t)
1484
+ }
1485
+ return a
1486
+ },
1487
+ set: function(e, t) {
1488
+ var n, r, i = e.options,
1489
+ o = x.makeArray(t),
1490
+ a = i.length;
1491
+ while (a--) r = i[a], (r.selected = x.inArray(x(r).val(), o) >= 0) && (n = !0);
1492
+ return n || (e.selectedIndex = -1), o
1493
+ }
1494
+ }
1495
+ },
1496
+ attr: function(e, n, r) {
1497
+ var o, a, s = e.nodeType;
1498
+ if (e && 3 !== s && 8 !== s && 2 !== s) return typeof e.getAttribute === i ? x.prop(e, n, r) : (1 === s && x.isXMLDoc(e) || (n = n.toLowerCase(), o = x.attrHooks[n] || (x.expr.match.bool.test(n) ? X : z)), r === t ? o && "get" in o && null !== (a = o.get(e, n)) ? a : (a = x.find.attr(e, n), null == a ? t : a) : null !== r ? o && "set" in o && (a = o.set(e, r, n)) !== t ? a : (e.setAttribute(n, r + ""), r) : (x.removeAttr(e, n), t))
1499
+ },
1500
+ removeAttr: function(e, t) {
1501
+ var n, r, i = 0,
1502
+ o = t && t.match(T);
1503
+ if (o && 1 === e.nodeType)
1504
+ while (n = o[i++]) r = x.propFix[n] || n, x.expr.match.bool.test(n) ? K && Q || !G.test(n) ? e[r] = !1 : e[x.camelCase("default-" + n)] = e[r] = !1 : x.attr(e, n, ""), e.removeAttribute(Q ? n : r)
1505
+ },
1506
+ attrHooks: {
1507
+ type: {
1508
+ set: function(e, t) {
1509
+ if (!x.support.radioValue && "radio" === t && x.nodeName(e, "input")) {
1510
+ var n = e.value;
1511
+ return e.setAttribute("type", t), n && (e.value = n), t
1512
+ }
1513
+ }
1514
+ }
1515
+ },
1516
+ propFix: {
1517
+ "for": "htmlFor",
1518
+ "class": "className"
1519
+ },
1520
+ prop: function(e, n, r) {
1521
+ var i, o, a, s = e.nodeType;
1522
+ if (e && 3 !== s && 8 !== s && 2 !== s) return a = 1 !== s || !x.isXMLDoc(e), a && (n = x.propFix[n] || n, o = x.propHooks[n]), r !== t ? o && "set" in o && (i = o.set(e, r, n)) !== t ? i : e[n] = r : o && "get" in o && null !== (i = o.get(e, n)) ? i : e[n]
1523
+ },
1524
+ propHooks: {
1525
+ tabIndex: {
1526
+ get: function(e) {
1527
+ var t = x.find.attr(e, "tabindex");
1528
+ return t ? parseInt(t, 10) : Y.test(e.nodeName) || J.test(e.nodeName) && e.href ? 0 : -1
1529
+ }
1530
+ }
1531
+ }
1532
+ }), X = {
1533
+ set: function(e, t, n) {
1534
+ return t === !1 ? x.removeAttr(e, n) : K && Q || !G.test(n) ? e.setAttribute(!Q && x.propFix[n] || n, n) : e[x.camelCase("default-" + n)] = e[n] = !0, n
1535
+ }
1536
+ }, x.each(x.expr.match.bool.source.match(/\w+/g), function(e, n) {
1537
+ var r = x.expr.attrHandle[n] || x.find.attr;
1538
+ x.expr.attrHandle[n] = K && Q || !G.test(n) ? function(e, n, i) {
1539
+ var o = x.expr.attrHandle[n],
1540
+ a = i ? t : (x.expr.attrHandle[n] = t) != r(e, n, i) ? n.toLowerCase() : null;
1541
+ return x.expr.attrHandle[n] = o, a
1542
+ } : function(e, n, r) {
1543
+ return r ? t : e[x.camelCase("default-" + n)] ? n.toLowerCase() : null
1544
+ }
1545
+ }), K && Q || (x.attrHooks.value = {
1546
+ set: function(e, n, r) {
1547
+ return x.nodeName(e, "input") ? (e.defaultValue = n, t) : z && z.set(e, n, r)
1548
+ }
1549
+ }), Q || (z = {
1550
+ set: function(e, n, r) {
1551
+ var i = e.getAttributeNode(r);
1552
+ return i || e.setAttributeNode(i = e.ownerDocument.createAttribute(r)), i.value = n += "", "value" === r || n === e.getAttribute(r) ? n : t
1553
+ }
1554
+ }, x.expr.attrHandle.id = x.expr.attrHandle.name = x.expr.attrHandle.coords = function(e, n, r) {
1555
+ var i;
1556
+ return r ? t : (i = e.getAttributeNode(n)) && "" !== i.value ? i.value : null
1557
+ }, x.valHooks.button = {
1558
+ get: function(e, n) {
1559
+ var r = e.getAttributeNode(n);
1560
+ return r && r.specified ? r.value : t
1561
+ },
1562
+ set: z.set
1563
+ }, x.attrHooks.contenteditable = {
1564
+ set: function(e, t, n) {
1565
+ z.set(e, "" === t ? !1 : t, n)
1566
+ }
1567
+ }, x.each(["width", "height"], function(e, n) {
1568
+ x.attrHooks[n] = {
1569
+ set: function(e, r) {
1570
+ return "" === r ? (e.setAttribute(n, "auto"), r) : t
1571
+ }
1572
+ }
1573
+ })), x.support.hrefNormalized || x.each(["href", "src"], function(e, t) {
1574
+ x.propHooks[t] = {
1575
+ get: function(e) {
1576
+ return e.getAttribute(t, 4)
1577
+ }
1578
+ }
1579
+ }), x.support.style || (x.attrHooks.style = {
1580
+ get: function(e) {
1581
+ return e.style.cssText || t
1582
+ },
1583
+ set: function(e, t) {
1584
+ return e.style.cssText = t + ""
1585
+ }
1586
+ }), x.support.optSelected || (x.propHooks.selected = {
1587
+ get: function(e) {
1588
+ var t = e.parentNode;
1589
+ return t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex), null
1590
+ }
1591
+ }), x.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
1592
+ x.propFix[this.toLowerCase()] = this
1593
+ }), x.support.enctype || (x.propFix.enctype = "encoding"), x.each(["radio", "checkbox"], function() {
1594
+ x.valHooks[this] = {
1595
+ set: function(e, n) {
1596
+ return x.isArray(n) ? e.checked = x.inArray(x(e).val(), n) >= 0 : t
1597
+ }
1598
+ }, x.support.checkOn || (x.valHooks[this].get = function(e) {
1599
+ return null === e.getAttribute("value") ? "on" : e.value
1600
+ })
1601
+ });
1602
+ var Z = /^(?:input|select|textarea)$/i,
1603
+ et = /^key/,
1604
+ tt = /^(?:mouse|contextmenu)|click/,
1605
+ nt = /^(?:focusinfocus|focusoutblur)$/,
1606
+ rt = /^([^.]*)(?:\.(.+)|)$/;
1607
+
1608
+ function it() {
1609
+ return !0
1610
+ }
1611
+
1612
+ function ot() {
1613
+ return !1
1614
+ }
1615
+
1616
+ function at() {
1617
+ try {
1618
+ return a.activeElement
1619
+ } catch (e) {}
1620
+ }
1621
+ x.event = {
1622
+ global: {},
1623
+ add: function(e, n, r, o, a) {
1624
+ var s, l, u, c, p, f, d, h, g, m, y, v = x._data(e);
1625
+ if (v) {
1626
+ r.handler && (c = r, r = c.handler, a = c.selector), r.guid || (r.guid = x.guid++), (l = v.events) || (l = v.events = {}), (f = v.handle) || (f = v.handle = function(e) {
1627
+ return typeof x === i || e && x.event.triggered === e.type ? t : x.event.dispatch.apply(f.elem, arguments)
1628
+ }, f.elem = e), n = (n || "").match(T) || [""], u = n.length;
1629
+ while (u--) s = rt.exec(n[u]) || [], g = y = s[1], m = (s[2] || "").split(".").sort(), g && (p = x.event.special[g] || {}, g = (a ? p.delegateType : p.bindType) || g, p = x.event.special[g] || {}, d = x.extend({
1630
+ type: g,
1631
+ origType: y,
1632
+ data: o,
1633
+ handler: r,
1634
+ guid: r.guid,
1635
+ selector: a,
1636
+ needsContext: a && x.expr.match.needsContext.test(a),
1637
+ namespace: m.join(".")
1638
+ }, c), (h = l[g]) || (h = l[g] = [], h.delegateCount = 0, p.setup && p.setup.call(e, o, m, f) !== !1 || (e.addEventListener ? e.addEventListener(g, f, !1) : e.attachEvent && e.attachEvent("on" + g, f))), p.add && (p.add.call(e, d), d.handler.guid || (d.handler.guid = r.guid)), a ? h.splice(h.delegateCount++, 0, d) : h.push(d), x.event.global[g] = !0);
1639
+ e = null
1640
+ }
1641
+ },
1642
+ remove: function(e, t, n, r, i) {
1643
+ var o, a, s, l, u, c, p, f, d, h, g, m = x.hasData(e) && x._data(e);
1644
+ if (m && (c = m.events)) {
1645
+ t = (t || "").match(T) || [""], u = t.length;
1646
+ while (u--)
1647
+ if (s = rt.exec(t[u]) || [], d = g = s[1], h = (s[2] || "").split(".").sort(), d) {
1648
+ p = x.event.special[d] || {}, d = (r ? p.delegateType : p.bindType) || d, f = c[d] || [], s = s[2] && RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), l = o = f.length;
1649
+ while (o--) a = f[o], !i && g !== a.origType || n && n.guid !== a.guid || s && !s.test(a.namespace) || r && r !== a.selector && ("**" !== r || !a.selector) || (f.splice(o, 1), a.selector && f.delegateCount--, p.remove && p.remove.call(e, a));
1650
+ l && !f.length && (p.teardown && p.teardown.call(e, h, m.handle) !== !1 || x.removeEvent(e, d, m.handle), delete c[d])
1651
+ } else
1652
+ for (d in c) x.event.remove(e, d + t[u], n, r, !0);
1653
+ x.isEmptyObject(c) && (delete m.handle, x._removeData(e, "events"))
1654
+ }
1655
+ },
1656
+ trigger: function(n, r, i, o) {
1657
+ var s, l, u, c, p, f, d, h = [i || a],
1658
+ g = v.call(n, "type") ? n.type : n,
1659
+ m = v.call(n, "namespace") ? n.namespace.split(".") : [];
1660
+ if (u = f = i = i || a, 3 !== i.nodeType && 8 !== i.nodeType && !nt.test(g + x.event.triggered) && (g.indexOf(".") >= 0 && (m = g.split("."), g = m.shift(), m.sort()), l = 0 > g.indexOf(":") && "on" + g, n = n[x.expando] ? n : new x.Event(g, "object" == typeof n && n), n.isTrigger = o ? 2 : 3, n.namespace = m.join("."), n.namespace_re = n.namespace ? RegExp("(^|\\.)" + m.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, n.result = t, n.target || (n.target = i), r = null == r ? [n] : x.makeArray(r, [n]), p = x.event.special[g] || {}, o || !p.trigger || p.trigger.apply(i, r) !== !1)) {
1661
+ if (!o && !p.noBubble && !x.isWindow(i)) {
1662
+ for (c = p.delegateType || g, nt.test(c + g) || (u = u.parentNode); u; u = u.parentNode) h.push(u), f = u;
1663
+ f === (i.ownerDocument || a) && h.push(f.defaultView || f.parentWindow || e)
1664
+ }
1665
+ d = 0;
1666
+ while ((u = h[d++]) && !n.isPropagationStopped()) n.type = d > 1 ? c : p.bindType || g, s = (x._data(u, "events") || {})[n.type] && x._data(u, "handle"), s && s.apply(u, r), s = l && u[l], s && x.acceptData(u) && s.apply && s.apply(u, r) === !1 && n.preventDefault();
1667
+ if (n.type = g, !o && !n.isDefaultPrevented() && (!p._default || p._default.apply(h.pop(), r) === !1) && x.acceptData(i) && l && i[g] && !x.isWindow(i)) {
1668
+ f = i[l], f && (i[l] = null), x.event.triggered = g;
1669
+ try {
1670
+ i[g]()
1671
+ } catch (y) {}
1672
+ x.event.triggered = t, f && (i[l] = f)
1673
+ }
1674
+ return n.result
1675
+ }
1676
+ },
1677
+ dispatch: function(e) {
1678
+ e = x.event.fix(e);
1679
+ var n, r, i, o, a, s = [],
1680
+ l = g.call(arguments),
1681
+ u = (x._data(this, "events") || {})[e.type] || [],
1682
+ c = x.event.special[e.type] || {};
1683
+ if (l[0] = e, e.delegateTarget = this, !c.preDispatch || c.preDispatch.call(this, e) !== !1) {
1684
+ s = x.event.handlers.call(this, e, u), n = 0;
1685
+ while ((o = s[n++]) && !e.isPropagationStopped()) {
1686
+ e.currentTarget = o.elem, a = 0;
1687
+ while ((i = o.handlers[a++]) && !e.isImmediatePropagationStopped())(!e.namespace_re || e.namespace_re.test(i.namespace)) && (e.handleObj = i, e.data = i.data, r = ((x.event.special[i.origType] || {}).handle || i.handler).apply(o.elem, l), r !== t && (e.result = r) === !1 && (e.preventDefault(), e.stopPropagation()))
1688
+ }
1689
+ return c.postDispatch && c.postDispatch.call(this, e), e.result
1690
+ }
1691
+ },
1692
+ handlers: function(e, n) {
1693
+ var r, i, o, a, s = [],
1694
+ l = n.delegateCount,
1695
+ u = e.target;
1696
+ if (l && u.nodeType && (!e.button || "click" !== e.type))
1697
+ for (; u != this; u = u.parentNode || this)
1698
+ if (1 === u.nodeType && (u.disabled !== !0 || "click" !== e.type)) {
1699
+ for (o = [], a = 0; l > a; a++) i = n[a], r = i.selector + " ", o[r] === t && (o[r] = i.needsContext ? x(r, this).index(u) >= 0 : x.find(r, this, null, [u]).length), o[r] && o.push(i);
1700
+ o.length && s.push({
1701
+ elem: u,
1702
+ handlers: o
1703
+ })
1704
+ }
1705
+ return n.length > l && s.push({
1706
+ elem: this,
1707
+ handlers: n.slice(l)
1708
+ }), s
1709
+ },
1710
+ fix: function(e) {
1711
+ if (e[x.expando]) return e;
1712
+ var t, n, r, i = e.type,
1713
+ o = e,
1714
+ s = this.fixHooks[i];
1715
+ s || (this.fixHooks[i] = s = tt.test(i) ? this.mouseHooks : et.test(i) ? this.keyHooks : {}), r = s.props ? this.props.concat(s.props) : this.props, e = new x.Event(o), t = r.length;
1716
+ while (t--) n = r[t], e[n] = o[n];
1717
+ return e.target || (e.target = o.srcElement || a), 3 === e.target.nodeType && (e.target = e.target.parentNode), e.metaKey = !!e.metaKey, s.filter ? s.filter(e, o) : e
1718
+ },
1719
+ props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
1720
+ fixHooks: {},
1721
+ keyHooks: {
1722
+ props: "char charCode key keyCode".split(" "),
1723
+ filter: function(e, t) {
1724
+ return null == e.which && (e.which = null != t.charCode ? t.charCode : t.keyCode), e
1725
+ }
1726
+ },
1727
+ mouseHooks: {
1728
+ props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
1729
+ filter: function(e, n) {
1730
+ var r, i, o, s = n.button,
1731
+ l = n.fromElement;
1732
+ return null == e.pageX && null != n.clientX && (i = e.target.ownerDocument || a, o = i.documentElement, r = i.body, e.pageX = n.clientX + (o && o.scrollLeft || r && r.scrollLeft || 0) - (o && o.clientLeft || r && r.clientLeft || 0), e.pageY = n.clientY + (o && o.scrollTop || r && r.scrollTop || 0) - (o && o.clientTop || r && r.clientTop || 0)), !e.relatedTarget && l && (e.relatedTarget = l === e.target ? n.toElement : l), e.which || s === t || (e.which = 1 & s ? 1 : 2 & s ? 3 : 4 & s ? 2 : 0), e
1733
+ }
1734
+ },
1735
+ special: {
1736
+ load: {
1737
+ noBubble: !0
1738
+ },
1739
+ focus: {
1740
+ trigger: function() {
1741
+ if (this !== at() && this.focus) try {
1742
+ return this.focus(), !1
1743
+ } catch (e) {}
1744
+ },
1745
+ delegateType: "focusin"
1746
+ },
1747
+ blur: {
1748
+ trigger: function() {
1749
+ return this === at() && this.blur ? (this.blur(), !1) : t
1750
+ },
1751
+ delegateType: "focusout"
1752
+ },
1753
+ click: {
1754
+ trigger: function() {
1755
+ return x.nodeName(this, "input") && "checkbox" === this.type && this.click ? (this.click(), !1) : t
1756
+ },
1757
+ _default: function(e) {
1758
+ return x.nodeName(e.target, "a")
1759
+ }
1760
+ },
1761
+ beforeunload: {
1762
+ postDispatch: function(e) {
1763
+ e.result !== t && (e.originalEvent.returnValue = e.result)
1764
+ }
1765
+ }
1766
+ },
1767
+ simulate: function(e, t, n, r) {
1768
+ var i = x.extend(new x.Event, n, {
1769
+ type: e,
1770
+ isSimulated: !0,
1771
+ originalEvent: {}
1772
+ });
1773
+ r ? x.event.trigger(i, null, t) : x.event.dispatch.call(t, i), i.isDefaultPrevented() && n.preventDefault()
1774
+ }
1775
+ }, x.removeEvent = a.removeEventListener ? function(e, t, n) {
1776
+ e.removeEventListener && e.removeEventListener(t, n, !1)
1777
+ } : function(e, t, n) {
1778
+ var r = "on" + t;
1779
+ e.detachEvent && (typeof e[r] === i && (e[r] = null), e.detachEvent(r, n))
1780
+ }, x.Event = function(e, n) {
1781
+ return this instanceof x.Event ? (e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || e.returnValue === !1 || e.getPreventDefault && e.getPreventDefault() ? it : ot) : this.type = e, n && x.extend(this, n), this.timeStamp = e && e.timeStamp || x.now(), this[x.expando] = !0, t) : new x.Event(e, n)
1782
+ }, x.Event.prototype = {
1783
+ isDefaultPrevented: ot,
1784
+ isPropagationStopped: ot,
1785
+ isImmediatePropagationStopped: ot,
1786
+ preventDefault: function() {
1787
+ var e = this.originalEvent;
1788
+ this.isDefaultPrevented = it, e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1)
1789
+ },
1790
+ stopPropagation: function() {
1791
+ var e = this.originalEvent;
1792
+ this.isPropagationStopped = it, e && (e.stopPropagation && e.stopPropagation(), e.cancelBubble = !0)
1793
+ },
1794
+ stopImmediatePropagation: function() {
1795
+ this.isImmediatePropagationStopped = it, this.stopPropagation()
1796
+ }
1797
+ }, x.each({
1798
+ mouseenter: "mouseover",
1799
+ mouseleave: "mouseout"
1800
+ }, function(e, t) {
1801
+ x.event.special[e] = {
1802
+ delegateType: t,
1803
+ bindType: t,
1804
+ handle: function(e) {
1805
+ var n, r = this,
1806
+ i = e.relatedTarget,
1807
+ o = e.handleObj;
1808
+ return (!i || i !== r && !x.contains(r, i)) && (e.type = o.origType, n = o.handler.apply(this, arguments), e.type = t), n
1809
+ }
1810
+ }
1811
+ }), x.support.submitBubbles || (x.event.special.submit = {
1812
+ setup: function() {
1813
+ return x.nodeName(this, "form") ? !1 : (x.event.add(this, "click._submit keypress._submit", function(e) {
1814
+ var n = e.target,
1815
+ r = x.nodeName(n, "input") || x.nodeName(n, "button") ? n.form : t;
1816
+ r && !x._data(r, "submitBubbles") && (x.event.add(r, "submit._submit", function(e) {
1817
+ e._submit_bubble = !0
1818
+ }), x._data(r, "submitBubbles", !0))
1819
+ }), t)
1820
+ },
1821
+ postDispatch: function(e) {
1822
+ e._submit_bubble && (delete e._submit_bubble, this.parentNode && !e.isTrigger && x.event.simulate("submit", this.parentNode, e, !0))
1823
+ },
1824
+ teardown: function() {
1825
+ return x.nodeName(this, "form") ? !1 : (x.event.remove(this, "._submit"), t)
1826
+ }
1827
+ }), x.support.changeBubbles || (x.event.special.change = {
1828
+ setup: function() {
1829
+ return Z.test(this.nodeName) ? (("checkbox" === this.type || "radio" === this.type) && (x.event.add(this, "propertychange._change", function(e) {
1830
+ "checked" === e.originalEvent.propertyName && (this._just_changed = !0)
1831
+ }), x.event.add(this, "click._change", function(e) {
1832
+ this._just_changed && !e.isTrigger && (this._just_changed = !1), x.event.simulate("change", this, e, !0)
1833
+ })), !1) : (x.event.add(this, "beforeactivate._change", function(e) {
1834
+ var t = e.target;
1835
+ Z.test(t.nodeName) && !x._data(t, "changeBubbles") && (x.event.add(t, "change._change", function(e) {
1836
+ !this.parentNode || e.isSimulated || e.isTrigger || x.event.simulate("change", this.parentNode, e, !0)
1837
+ }), x._data(t, "changeBubbles", !0))
1838
+ }), t)
1839
+ },
1840
+ handle: function(e) {
1841
+ var n = e.target;
1842
+ return this !== n || e.isSimulated || e.isTrigger || "radio" !== n.type && "checkbox" !== n.type ? e.handleObj.handler.apply(this, arguments) : t
1843
+ },
1844
+ teardown: function() {
1845
+ return x.event.remove(this, "._change"), !Z.test(this.nodeName)
1846
+ }
1847
+ }), x.support.focusinBubbles || x.each({
1848
+ focus: "focusin",
1849
+ blur: "focusout"
1850
+ }, function(e, t) {
1851
+ var n = 0,
1852
+ r = function(e) {
1853
+ x.event.simulate(t, e.target, x.event.fix(e), !0)
1854
+ };
1855
+ x.event.special[t] = {
1856
+ setup: function() {
1857
+ 0 === n++ && a.addEventListener(e, r, !0)
1858
+ },
1859
+ teardown: function() {
1860
+ 0 === --n && a.removeEventListener(e, r, !0)
1861
+ }
1862
+ }
1863
+ }), x.fn.extend({
1864
+ on: function(e, n, r, i, o) {
1865
+ var a, s;
1866
+ if ("object" == typeof e) {
1867
+ "string" != typeof n && (r = r || n, n = t);
1868
+ for (a in e) this.on(a, n, r, e[a], o);
1869
+ return this
1870
+ }
1871
+ if (null == r && null == i ? (i = n, r = n = t) : null == i && ("string" == typeof n ? (i = r, r = t) : (i = r, r = n, n = t)), i === !1) i = ot;
1872
+ else if (!i) return this;
1873
+ return 1 === o && (s = i, i = function(e) {
1874
+ return x().off(e), s.apply(this, arguments)
1875
+ }, i.guid = s.guid || (s.guid = x.guid++)), this.each(function() {
1876
+ x.event.add(this, e, i, r, n)
1877
+ })
1878
+ },
1879
+ one: function(e, t, n, r) {
1880
+ return this.on(e, t, n, r, 1)
1881
+ },
1882
+ off: function(e, n, r) {
1883
+ var i, o;
1884
+ if (e && e.preventDefault && e.handleObj) return i = e.handleObj, x(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this;
1885
+ if ("object" == typeof e) {
1886
+ for (o in e) this.off(o, n, e[o]);
1887
+ return this
1888
+ }
1889
+ return (n === !1 || "function" == typeof n) && (r = n, n = t), r === !1 && (r = ot), this.each(function() {
1890
+ x.event.remove(this, e, r, n)
1891
+ })
1892
+ },
1893
+ trigger: function(e, t) {
1894
+ return this.each(function() {
1895
+ x.event.trigger(e, t, this)
1896
+ })
1897
+ },
1898
+ triggerHandler: function(e, n) {
1899
+ var r = this[0];
1900
+ return r ? x.event.trigger(e, n, r, !0) : t
1901
+ }
1902
+ });
1903
+ var st = /^.[^:#\[\.,]*$/,
1904
+ lt = /^(?:parents|prev(?:Until|All))/,
1905
+ ut = x.expr.match.needsContext,
1906
+ ct = {
1907
+ children: !0,
1908
+ contents: !0,
1909
+ next: !0,
1910
+ prev: !0
1911
+ };
1912
+ x.fn.extend({
1913
+ find: function(e) {
1914
+ var t, n = [],
1915
+ r = this,
1916
+ i = r.length;
1917
+ if ("string" != typeof e) return this.pushStack(x(e).filter(function() {
1918
+ for (t = 0; i > t; t++)
1919
+ if (x.contains(r[t], this)) return !0
1920
+ }));
1921
+ for (t = 0; i > t; t++) x.find(e, r[t], n);
1922
+ return n = this.pushStack(i > 1 ? x.unique(n) : n), n.selector = this.selector ? this.selector + " " + e : e, n
1923
+ },
1924
+ has: function(e) {
1925
+ var t, n = x(e, this),
1926
+ r = n.length;
1927
+ return this.filter(function() {
1928
+ for (t = 0; r > t; t++)
1929
+ if (x.contains(this, n[t])) return !0
1930
+ })
1931
+ },
1932
+ not: function(e) {
1933
+ return this.pushStack(ft(this, e || [], !0))
1934
+ },
1935
+ filter: function(e) {
1936
+ return this.pushStack(ft(this, e || [], !1))
1937
+ },
1938
+ is: function(e) {
1939
+ return !!ft(this, "string" == typeof e && ut.test(e) ? x(e) : e || [], !1).length
1940
+ },
1941
+ closest: function(e, t) {
1942
+ var n, r = 0,
1943
+ i = this.length,
1944
+ o = [],
1945
+ a = ut.test(e) || "string" != typeof e ? x(e, t || this.context) : 0;
1946
+ for (; i > r; r++)
1947
+ for (n = this[r]; n && n !== t; n = n.parentNode)
1948
+ if (11 > n.nodeType && (a ? a.index(n) > -1 : 1 === n.nodeType && x.find.matchesSelector(n, e))) {
1949
+ n = o.push(n);
1950
+ break
1951
+ }
1952
+ return this.pushStack(o.length > 1 ? x.unique(o) : o)
1953
+ },
1954
+ index: function(e) {
1955
+ return e ? "string" == typeof e ? x.inArray(this[0], x(e)) : x.inArray(e.jquery ? e[0] : e, this) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
1956
+ },
1957
+ add: function(e, t) {
1958
+ var n = "string" == typeof e ? x(e, t) : x.makeArray(e && e.nodeType ? [e] : e),
1959
+ r = x.merge(this.get(), n);
1960
+ return this.pushStack(x.unique(r))
1961
+ },
1962
+ addBack: function(e) {
1963
+ return this.add(null == e ? this.prevObject : this.prevObject.filter(e))
1964
+ }
1965
+ });
1966
+
1967
+ function pt(e, t) {
1968
+ do e = e[t]; while (e && 1 !== e.nodeType);
1969
+ return e
1970
+ }
1971
+ x.each({
1972
+ parent: function(e) {
1973
+ var t = e.parentNode;
1974
+ return t && 11 !== t.nodeType ? t : null
1975
+ },
1976
+ parents: function(e) {
1977
+ return x.dir(e, "parentNode")
1978
+ },
1979
+ parentsUntil: function(e, t, n) {
1980
+ return x.dir(e, "parentNode", n)
1981
+ },
1982
+ next: function(e) {
1983
+ return pt(e, "nextSibling")
1984
+ },
1985
+ prev: function(e) {
1986
+ return pt(e, "previousSibling")
1987
+ },
1988
+ nextAll: function(e) {
1989
+ return x.dir(e, "nextSibling")
1990
+ },
1991
+ prevAll: function(e) {
1992
+ return x.dir(e, "previousSibling")
1993
+ },
1994
+ nextUntil: function(e, t, n) {
1995
+ return x.dir(e, "nextSibling", n)
1996
+ },
1997
+ prevUntil: function(e, t, n) {
1998
+ return x.dir(e, "previousSibling", n)
1999
+ },
2000
+ siblings: function(e) {
2001
+ return x.sibling((e.parentNode || {}).firstChild, e)
2002
+ },
2003
+ children: function(e) {
2004
+ return x.sibling(e.firstChild)
2005
+ },
2006
+ contents: function(e) {
2007
+ return x.nodeName(e, "iframe") ? e.contentDocument || e.contentWindow.document : x.merge([], e.childNodes)
2008
+ }
2009
+ }, function(e, t) {
2010
+ x.fn[e] = function(n, r) {
2011
+ var i = x.map(this, t, n);
2012
+ return "Until" !== e.slice(-5) && (r = n), r && "string" == typeof r && (i = x.filter(r, i)), this.length > 1 && (ct[e] || (i = x.unique(i)), lt.test(e) && (i = i.reverse())), this.pushStack(i)
2013
+ }
2014
+ }), x.extend({
2015
+ filter: function(e, t, n) {
2016
+ var r = t[0];
2017
+ return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === r.nodeType ? x.find.matchesSelector(r, e) ? [r] : [] : x.find.matches(e, x.grep(t, function(e) {
2018
+ return 1 === e.nodeType
2019
+ }))
2020
+ },
2021
+ dir: function(e, n, r) {
2022
+ var i = [],
2023
+ o = e[n];
2024
+ while (o && 9 !== o.nodeType && (r === t || 1 !== o.nodeType || !x(o).is(r))) 1 === o.nodeType && i.push(o), o = o[n];
2025
+ return i
2026
+ },
2027
+ sibling: function(e, t) {
2028
+ var n = [];
2029
+ for (; e; e = e.nextSibling) 1 === e.nodeType && e !== t && n.push(e);
2030
+ return n
2031
+ }
2032
+ });
2033
+
2034
+ function ft(e, t, n) {
2035
+ if (x.isFunction(t)) return x.grep(e, function(e, r) {
2036
+ return !!t.call(e, r, e) !== n
2037
+ });
2038
+ if (t.nodeType) return x.grep(e, function(e) {
2039
+ return e === t !== n
2040
+ });
2041
+ if ("string" == typeof t) {
2042
+ if (st.test(t)) return x.filter(t, e, n);
2043
+ t = x.filter(t, e)
2044
+ }
2045
+ return x.grep(e, function(e) {
2046
+ return x.inArray(e, t) >= 0 !== n
2047
+ })
2048
+ }
2049
+
2050
+ function dt(e) {
2051
+ var t = ht.split("|"),
2052
+ n = e.createDocumentFragment();
2053
+ if (n.createElement)
2054
+ while (t.length) n.createElement(t.pop());
2055
+ return n
2056
+ }
2057
+ var ht = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
2058
+ gt = / jQuery\d+="(?:null|\d+)"/g,
2059
+ mt = RegExp("<(?:" + ht + ")[\\s/>]", "i"),
2060
+ yt = /^\s+/,
2061
+ vt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
2062
+ bt = /<([\w:]+)/,
2063
+ xt = /<tbody/i,
2064
+ wt = /<|&#?\w+;/,
2065
+ Tt = /<(?:script|style|link)/i,
2066
+ Ct = /^(?:checkbox|radio)$/i,
2067
+ Nt = /checked\s*(?:[^=]|=\s*.checked.)/i,
2068
+ kt = /^$|\/(?:java|ecma)script/i,
2069
+ Et = /^true\/(.*)/,
2070
+ St = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
2071
+ At = {
2072
+ option: [1, "<select multiple='multiple'>", "</select>"],
2073
+ legend: [1, "<fieldset>", "</fieldset>"],
2074
+ area: [1, "<map>", "</map>"],
2075
+ param: [1, "<object>", "</object>"],
2076
+ thead: [1, "<table>", "</table>"],
2077
+ tr: [2, "<table><tbody>", "</tbody></table>"],
2078
+ col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
2079
+ td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
2080
+ _default: x.support.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"]
2081
+ },
2082
+ jt = dt(a),
2083
+ Dt = jt.appendChild(a.createElement("div"));
2084
+ At.optgroup = At.option, At.tbody = At.tfoot = At.colgroup = At.caption = At.thead, At.th = At.td, x.fn.extend({
2085
+ text: function(e) {
2086
+ return x.access(this, function(e) {
2087
+ return e === t ? x.text(this) : this.empty().append((this[0] && this[0].ownerDocument || a).createTextNode(e))
2088
+ }, null, e, arguments.length)
2089
+ },
2090
+ append: function() {
2091
+ return this.domManip(arguments, function(e) {
2092
+ if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
2093
+ var t = Lt(this, e);
2094
+ t.appendChild(e)
2095
+ }
2096
+ })
2097
+ },
2098
+ prepend: function() {
2099
+ return this.domManip(arguments, function(e) {
2100
+ if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
2101
+ var t = Lt(this, e);
2102
+ t.insertBefore(e, t.firstChild)
2103
+ }
2104
+ })
2105
+ },
2106
+ before: function() {
2107
+ return this.domManip(arguments, function(e) {
2108
+ this.parentNode && this.parentNode.insertBefore(e, this)
2109
+ })
2110
+ },
2111
+ after: function() {
2112
+ return this.domManip(arguments, function(e) {
2113
+ this.parentNode && this.parentNode.insertBefore(e, this.nextSibling)
2114
+ })
2115
+ },
2116
+ remove: function(e, t) {
2117
+ var n, r = e ? x.filter(e, this) : this,
2118
+ i = 0;
2119
+ for (; null != (n = r[i]); i++) t || 1 !== n.nodeType || x.cleanData(Ft(n)), n.parentNode && (t && x.contains(n.ownerDocument, n) && _t(Ft(n, "script")), n.parentNode.removeChild(n));
2120
+ return this
2121
+ },
2122
+ empty: function() {
2123
+ var e, t = 0;
2124
+ for (; null != (e = this[t]); t++) {
2125
+ 1 === e.nodeType && x.cleanData(Ft(e, !1));
2126
+ while (e.firstChild) e.removeChild(e.firstChild);
2127
+ e.options && x.nodeName(e, "select") && (e.options.length = 0)
2128
+ }
2129
+ return this
2130
+ },
2131
+ clone: function(e, t) {
2132
+ return e = null == e ? !1 : e, t = null == t ? e : t, this.map(function() {
2133
+ return x.clone(this, e, t)
2134
+ })
2135
+ },
2136
+ html: function(e) {
2137
+ return x.access(this, function(e) {
2138
+ var n = this[0] || {},
2139
+ r = 0,
2140
+ i = this.length;
2141
+ if (e === t) return 1 === n.nodeType ? n.innerHTML.replace(gt, "") : t;
2142
+ if (!("string" != typeof e || Tt.test(e) || !x.support.htmlSerialize && mt.test(e) || !x.support.leadingWhitespace && yt.test(e) || At[(bt.exec(e) || ["", ""])[1].toLowerCase()])) {
2143
+ e = e.replace(vt, "<$1></$2>");
2144
+ try {
2145
+ for (; i > r; r++) n = this[r] || {}, 1 === n.nodeType && (x.cleanData(Ft(n, !1)), n.innerHTML = e);
2146
+ n = 0
2147
+ } catch (o) {}
2148
+ }
2149
+ n && this.empty().append(e)
2150
+ }, null, e, arguments.length)
2151
+ },
2152
+ replaceWith: function() {
2153
+ var e = x.map(this, function(e) {
2154
+ return [e.nextSibling, e.parentNode]
2155
+ }),
2156
+ t = 0;
2157
+ return this.domManip(arguments, function(n) {
2158
+ var r = e[t++],
2159
+ i = e[t++];
2160
+ i && (r && r.parentNode !== i && (r = this.nextSibling), x(this).remove(), i.insertBefore(n, r))
2161
+ }, !0), t ? this : this.remove()
2162
+ },
2163
+ detach: function(e) {
2164
+ return this.remove(e, !0)
2165
+ },
2166
+ domManip: function(e, t, n) {
2167
+ e = d.apply([], e);
2168
+ var r, i, o, a, s, l, u = 0,
2169
+ c = this.length,
2170
+ p = this,
2171
+ f = c - 1,
2172
+ h = e[0],
2173
+ g = x.isFunction(h);
2174
+ if (g || !(1 >= c || "string" != typeof h || x.support.checkClone) && Nt.test(h)) return this.each(function(r) {
2175
+ var i = p.eq(r);
2176
+ g && (e[0] = h.call(this, r, i.html())), i.domManip(e, t, n)
2177
+ });
2178
+ if (c && (l = x.buildFragment(e, this[0].ownerDocument, !1, !n && this), r = l.firstChild, 1 === l.childNodes.length && (l = r), r)) {
2179
+ for (a = x.map(Ft(l, "script"), Ht), o = a.length; c > u; u++) i = l, u !== f && (i = x.clone(i, !0, !0), o && x.merge(a, Ft(i, "script"))), t.call(this[u], i, u);
2180
+ if (o)
2181
+ for (s = a[a.length - 1].ownerDocument, x.map(a, qt), u = 0; o > u; u++) i = a[u], kt.test(i.type || "") && !x._data(i, "globalEval") && x.contains(s, i) && (i.src ? x._evalUrl(i.src) : x.globalEval((i.text || i.textContent || i.innerHTML || "").replace(St, "")));
2182
+ l = r = null
2183
+ }
2184
+ return this
2185
+ }
2186
+ });
2187
+
2188
+ function Lt(e, t) {
2189
+ return x.nodeName(e, "table") && x.nodeName(1 === t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e
2190
+ }
2191
+
2192
+ function Ht(e) {
2193
+ return e.type = (null !== x.find.attr(e, "type")) + "/" + e.type, e
2194
+ }
2195
+
2196
+ function qt(e) {
2197
+ var t = Et.exec(e.type);
2198
+ return t ? e.type = t[1] : e.removeAttribute("type"), e
2199
+ }
2200
+
2201
+ function _t(e, t) {
2202
+ var n, r = 0;
2203
+ for (; null != (n = e[r]); r++) x._data(n, "globalEval", !t || x._data(t[r], "globalEval"))
2204
+ }
2205
+
2206
+ function Mt(e, t) {
2207
+ if (1 === t.nodeType && x.hasData(e)) {
2208
+ var n, r, i, o = x._data(e),
2209
+ a = x._data(t, o),
2210
+ s = o.events;
2211
+ if (s) {
2212
+ delete a.handle, a.events = {};
2213
+ for (n in s)
2214
+ for (r = 0, i = s[n].length; i > r; r++) x.event.add(t, n, s[n][r])
2215
+ }
2216
+ a.data && (a.data = x.extend({}, a.data))
2217
+ }
2218
+ }
2219
+
2220
+ function Ot(e, t) {
2221
+ var n, r, i;
2222
+ if (1 === t.nodeType) {
2223
+ if (n = t.nodeName.toLowerCase(), !x.support.noCloneEvent && t[x.expando]) {
2224
+ i = x._data(t);
2225
+ for (r in i.events) x.removeEvent(t, r, i.handle);
2226
+ t.removeAttribute(x.expando)
2227
+ }
2228
+ "script" === n && t.text !== e.text ? (Ht(t).text = e.text, qt(t)) : "object" === n ? (t.parentNode && (t.outerHTML = e.outerHTML), x.support.html5Clone && e.innerHTML && !x.trim(t.innerHTML) && (t.innerHTML = e.innerHTML)) : "input" === n && Ct.test(e.type) ? (t.defaultChecked = t.checked = e.checked, t.value !== e.value && (t.value = e.value)) : "option" === n ? t.defaultSelected = t.selected = e.defaultSelected : ("input" === n || "textarea" === n) && (t.defaultValue = e.defaultValue)
2229
+ }
2230
+ }
2231
+ x.each({
2232
+ appendTo: "append",
2233
+ prependTo: "prepend",
2234
+ insertBefore: "before",
2235
+ insertAfter: "after",
2236
+ replaceAll: "replaceWith"
2237
+ }, function(e, t) {
2238
+ x.fn[e] = function(e) {
2239
+ var n, r = 0,
2240
+ i = [],
2241
+ o = x(e),
2242
+ a = o.length - 1;
2243
+ for (; a >= r; r++) n = r === a ? this : this.clone(!0), x(o[r])[t](n), h.apply(i, n.get());
2244
+ return this.pushStack(i)
2245
+ }
2246
+ });
2247
+
2248
+ function Ft(e, n) {
2249
+ var r, o, a = 0,
2250
+ s = typeof e.getElementsByTagName !== i ? e.getElementsByTagName(n || "*") : typeof e.querySelectorAll !== i ? e.querySelectorAll(n || "*") : t;
2251
+ if (!s)
2252
+ for (s = [], r = e.childNodes || e; null != (o = r[a]); a++) !n || x.nodeName(o, n) ? s.push(o) : x.merge(s, Ft(o, n));
2253
+ return n === t || n && x.nodeName(e, n) ? x.merge([e], s) : s
2254
+ }
2255
+
2256
+ function Bt(e) {
2257
+ Ct.test(e.type) && (e.defaultChecked = e.checked)
2258
+ }
2259
+ x.extend({
2260
+ clone: function(e, t, n) {
2261
+ var r, i, o, a, s, l = x.contains(e.ownerDocument, e);
2262
+ if (x.support.html5Clone || x.isXMLDoc(e) || !mt.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (Dt.innerHTML = e.outerHTML, Dt.removeChild(o = Dt.firstChild)), !(x.support.noCloneEvent && x.support.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || x.isXMLDoc(e)))
2263
+ for (r = Ft(o), s = Ft(e), a = 0; null != (i = s[a]); ++a) r[a] && Ot(i, r[a]);
2264
+ if (t)
2265
+ if (n)
2266
+ for (s = s || Ft(e), r = r || Ft(o), a = 0; null != (i = s[a]); a++) Mt(i, r[a]);
2267
+ else Mt(e, o);
2268
+ return r = Ft(o, "script"), r.length > 0 && _t(r, !l && Ft(e, "script")), r = s = i = null, o
2269
+ },
2270
+ buildFragment: function(e, t, n, r) {
2271
+ var i, o, a, s, l, u, c, p = e.length,
2272
+ f = dt(t),
2273
+ d = [],
2274
+ h = 0;
2275
+ for (; p > h; h++)
2276
+ if (o = e[h], o || 0 === o)
2277
+ if ("object" === x.type(o)) x.merge(d, o.nodeType ? [o] : o);
2278
+ else if (wt.test(o)) {
2279
+ s = s || f.appendChild(t.createElement("div")), l = (bt.exec(o) || ["", ""])[1].toLowerCase(), c = At[l] || At._default, s.innerHTML = c[1] + o.replace(vt, "<$1></$2>") + c[2], i = c[0];
2280
+ while (i--) s = s.lastChild;
2281
+ if (!x.support.leadingWhitespace && yt.test(o) && d.push(t.createTextNode(yt.exec(o)[0])), !x.support.tbody) {
2282
+ o = "table" !== l || xt.test(o) ? "<table>" !== c[1] || xt.test(o) ? 0 : s : s.firstChild, i = o && o.childNodes.length;
2283
+ while (i--) x.nodeName(u = o.childNodes[i], "tbody") && !u.childNodes.length && o.removeChild(u)
2284
+ }
2285
+ x.merge(d, s.childNodes), s.textContent = "";
2286
+ while (s.firstChild) s.removeChild(s.firstChild);
2287
+ s = f.lastChild
2288
+ } else d.push(t.createTextNode(o));
2289
+ s && f.removeChild(s), x.support.appendChecked || x.grep(Ft(d, "input"), Bt), h = 0;
2290
+ while (o = d[h++])
2291
+ if ((!r || -1 === x.inArray(o, r)) && (a = x.contains(o.ownerDocument, o), s = Ft(f.appendChild(o), "script"), a && _t(s), n)) {
2292
+ i = 0;
2293
+ while (o = s[i++]) kt.test(o.type || "") && n.push(o)
2294
+ }
2295
+ return s = null, f
2296
+ },
2297
+ cleanData: function(e, t) {
2298
+ var n, r, o, a, s = 0,
2299
+ l = x.expando,
2300
+ u = x.cache,
2301
+ c = x.support.deleteExpando,
2302
+ f = x.event.special;
2303
+ for (; null != (n = e[s]); s++)
2304
+ if ((t || x.acceptData(n)) && (o = n[l], a = o && u[o])) {
2305
+ if (a.events)
2306
+ for (r in a.events) f[r] ? x.event.remove(n, r) : x.removeEvent(n, r, a.handle);
2307
+ u[o] && (delete u[o], c ? delete n[l] : typeof n.removeAttribute !== i ? n.removeAttribute(l) : n[l] = null, p.push(o))
2308
+ }
2309
+ },
2310
+ _evalUrl: function(e) {
2311
+ return x.ajax({
2312
+ url: e,
2313
+ type: "GET",
2314
+ dataType: "script",
2315
+ async: !1,
2316
+ global: !1,
2317
+ "throws": !0
2318
+ })
2319
+ }
2320
+ }), x.fn.extend({
2321
+ wrapAll: function(e) {
2322
+ if (x.isFunction(e)) return this.each(function(t) {
2323
+ x(this).wrapAll(e.call(this, t))
2324
+ });
2325
+ if (this[0]) {
2326
+ var t = x(e, this[0].ownerDocument).eq(0).clone(!0);
2327
+ this[0].parentNode && t.insertBefore(this[0]), t.map(function() {
2328
+ var e = this;
2329
+ while (e.firstChild && 1 === e.firstChild.nodeType) e = e.firstChild;
2330
+ return e
2331
+ }).append(this)
2332
+ }
2333
+ return this
2334
+ },
2335
+ wrapInner: function(e) {
2336
+ return x.isFunction(e) ? this.each(function(t) {
2337
+ x(this).wrapInner(e.call(this, t))
2338
+ }) : this.each(function() {
2339
+ var t = x(this),
2340
+ n = t.contents();
2341
+ n.length ? n.wrapAll(e) : t.append(e)
2342
+ })
2343
+ },
2344
+ wrap: function(e) {
2345
+ var t = x.isFunction(e);
2346
+ return this.each(function(n) {
2347
+ x(this).wrapAll(t ? e.call(this, n) : e)
2348
+ })
2349
+ },
2350
+ unwrap: function() {
2351
+ return this.parent().each(function() {
2352
+ x.nodeName(this, "body") || x(this).replaceWith(this.childNodes)
2353
+ }).end()
2354
+ }
2355
+ });
2356
+ var Pt, Rt, Wt, $t = /alpha\([^)]*\)/i,
2357
+ It = /opacity\s*=\s*([^)]*)/,
2358
+ zt = /^(top|right|bottom|left)$/,
2359
+ Xt = /^(none|table(?!-c[ea]).+)/,
2360
+ Ut = /^margin/,
2361
+ Vt = RegExp("^(" + w + ")(.*)$", "i"),
2362
+ Yt = RegExp("^(" + w + ")(?!px)[a-z%]+$", "i"),
2363
+ Jt = RegExp("^([+-])=(" + w + ")", "i"),
2364
+ Gt = {
2365
+ BODY: "block"
2366
+ },
2367
+ Qt = {
2368
+ position: "absolute",
2369
+ visibility: "hidden",
2370
+ display: "block"
2371
+ },
2372
+ Kt = {
2373
+ letterSpacing: 0,
2374
+ fontWeight: 400
2375
+ },
2376
+ Zt = ["Top", "Right", "Bottom", "Left"],
2377
+ en = ["Webkit", "O", "Moz", "ms"];
2378
+
2379
+ function tn(e, t) {
2380
+ if (t in e) return t;
2381
+ var n = t.charAt(0).toUpperCase() + t.slice(1),
2382
+ r = t,
2383
+ i = en.length;
2384
+ while (i--)
2385
+ if (t = en[i] + n, t in e) return t;
2386
+ return r
2387
+ }
2388
+
2389
+ function nn(e, t) {
2390
+ return e = t || e, "none" === x.css(e, "display") || !x.contains(e.ownerDocument, e)
2391
+ }
2392
+
2393
+ function rn(e, t) {
2394
+ var n, r, i, o = [],
2395
+ a = 0,
2396
+ s = e.length;
2397
+ for (; s > a; a++) r = e[a], r.style && (o[a] = x._data(r, "olddisplay"), n = r.style.display, t ? (o[a] || "none" !== n || (r.style.display = ""), "" === r.style.display && nn(r) && (o[a] = x._data(r, "olddisplay", ln(r.nodeName)))) : o[a] || (i = nn(r), (n && "none" !== n || !i) && x._data(r, "olddisplay", i ? n : x.css(r, "display"))));
2398
+ for (a = 0; s > a; a++) r = e[a], r.style && (t && "none" !== r.style.display && "" !== r.style.display || (r.style.display = t ? o[a] || "" : "none"));
2399
+ return e
2400
+ }
2401
+ x.fn.extend({
2402
+ css: function(e, n) {
2403
+ return x.access(this, function(e, n, r) {
2404
+ var i, o, a = {},
2405
+ s = 0;
2406
+ if (x.isArray(n)) {
2407
+ for (o = Rt(e), i = n.length; i > s; s++) a[n[s]] = x.css(e, n[s], !1, o);
2408
+ return a
2409
+ }
2410
+ return r !== t ? x.style(e, n, r) : x.css(e, n)
2411
+ }, e, n, arguments.length > 1)
2412
+ },
2413
+ show: function() {
2414
+ return rn(this, !0)
2415
+ },
2416
+ hide: function() {
2417
+ return rn(this)
2418
+ },
2419
+ toggle: function(e) {
2420
+ return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function() {
2421
+ nn(this) ? x(this).show() : x(this).hide()
2422
+ })
2423
+ }
2424
+ }), x.extend({
2425
+ cssHooks: {
2426
+ opacity: {
2427
+ get: function(e, t) {
2428
+ if (t) {
2429
+ var n = Wt(e, "opacity");
2430
+ return "" === n ? "1" : n
2431
+ }
2432
+ }
2433
+ }
2434
+ },
2435
+ cssNumber: {
2436
+ columnCount: !0,
2437
+ fillOpacity: !0,
2438
+ fontWeight: !0,
2439
+ lineHeight: !0,
2440
+ opacity: !0,
2441
+ order: !0,
2442
+ orphans: !0,
2443
+ widows: !0,
2444
+ zIndex: !0,
2445
+ zoom: !0
2446
+ },
2447
+ cssProps: {
2448
+ "float": x.support.cssFloat ? "cssFloat" : "styleFloat"
2449
+ },
2450
+ style: function(e, n, r, i) {
2451
+ if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
2452
+ var o, a, s, l = x.camelCase(n),
2453
+ u = e.style;
2454
+ if (n = x.cssProps[l] || (x.cssProps[l] = tn(u, l)), s = x.cssHooks[n] || x.cssHooks[l], r === t) return s && "get" in s && (o = s.get(e, !1, i)) !== t ? o : u[n];
2455
+ if (a = typeof r, "string" === a && (o = Jt.exec(r)) && (r = (o[1] + 1) * o[2] + parseFloat(x.css(e, n)), a = "number"), !(null == r || "number" === a && isNaN(r) || ("number" !== a || x.cssNumber[l] || (r += "px"), x.support.clearCloneStyle || "" !== r || 0 !== n.indexOf("background") || (u[n] = "inherit"), s && "set" in s && (r = s.set(e, r, i)) === t))) try {
2456
+ u[n] = r
2457
+ } catch (c) {}
2458
+ }
2459
+ },
2460
+ css: function(e, n, r, i) {
2461
+ var o, a, s, l = x.camelCase(n);
2462
+ return n = x.cssProps[l] || (x.cssProps[l] = tn(e.style, l)), s = x.cssHooks[n] || x.cssHooks[l], s && "get" in s && (a = s.get(e, !0, r)), a === t && (a = Wt(e, n, i)), "normal" === a && n in Kt && (a = Kt[n]), "" === r || r ? (o = parseFloat(a), r === !0 || x.isNumeric(o) ? o || 0 : a) : a
2463
+ }
2464
+ }), e.getComputedStyle ? (Rt = function(t) {
2465
+ return e.getComputedStyle(t, null)
2466
+ }, Wt = function(e, n, r) {
2467
+ var i, o, a, s = r || Rt(e),
2468
+ l = s ? s.getPropertyValue(n) || s[n] : t,
2469
+ u = e.style;
2470
+ return s && ("" !== l || x.contains(e.ownerDocument, e) || (l = x.style(e, n)), Yt.test(l) && Ut.test(n) && (i = u.width, o = u.minWidth, a = u.maxWidth, u.minWidth = u.maxWidth = u.width = l, l = s.width, u.width = i, u.minWidth = o, u.maxWidth = a)), l
2471
+ }) : a.documentElement.currentStyle && (Rt = function(e) {
2472
+ return e.currentStyle
2473
+ }, Wt = function(e, n, r) {
2474
+ var i, o, a, s = r || Rt(e),
2475
+ l = s ? s[n] : t,
2476
+ u = e.style;
2477
+ return null == l && u && u[n] && (l = u[n]), Yt.test(l) && !zt.test(n) && (i = u.left, o = e.runtimeStyle, a = o && o.left, a && (o.left = e.currentStyle.left), u.left = "fontSize" === n ? "1em" : l, l = u.pixelLeft + "px", u.left = i, a && (o.left = a)), "" === l ? "auto" : l
2478
+ });
2479
+
2480
+ function on(e, t, n) {
2481
+ var r = Vt.exec(t);
2482
+ return r ? Math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t
2483
+ }
2484
+
2485
+ function an(e, t, n, r, i) {
2486
+ var o = n === (r ? "border" : "content") ? 4 : "width" === t ? 1 : 0,
2487
+ a = 0;
2488
+ for (; 4 > o; o += 2) "margin" === n && (a += x.css(e, n + Zt[o], !0, i)), r ? ("content" === n && (a -= x.css(e, "padding" + Zt[o], !0, i)), "margin" !== n && (a -= x.css(e, "border" + Zt[o] + "Width", !0, i))) : (a += x.css(e, "padding" + Zt[o], !0, i), "padding" !== n && (a += x.css(e, "border" + Zt[o] + "Width", !0, i)));
2489
+ return a
2490
+ }
2491
+
2492
+ function sn(e, t, n) {
2493
+ var r = !0,
2494
+ i = "width" === t ? e.offsetWidth : e.offsetHeight,
2495
+ o = Rt(e),
2496
+ a = x.support.boxSizing && "border-box" === x.css(e, "boxSizing", !1, o);
2497
+ if (0 >= i || null == i) {
2498
+ if (i = Wt(e, t, o), (0 > i || null == i) && (i = e.style[t]), Yt.test(i)) return i;
2499
+ r = a && (x.support.boxSizingReliable || i === e.style[t]), i = parseFloat(i) || 0
2500
+ }
2501
+ return i + an(e, t, n || (a ? "border" : "content"), r, o) + "px"
2502
+ }
2503
+
2504
+ function ln(e) {
2505
+ var t = a,
2506
+ n = Gt[e];
2507
+ return n || (n = un(e, t), "none" !== n && n || (Pt = (Pt || x("<iframe frameborder='0' width='0' height='0'/>").css("cssText", "display:block !important")).appendTo(t.documentElement), t = (Pt[0].contentWindow || Pt[0].contentDocument).document, t.write("<!doctype html><html><body>"), t.close(), n = un(e, t), Pt.detach()), Gt[e] = n), n
2508
+ }
2509
+
2510
+ function un(e, t) {
2511
+ var n = x(t.createElement(e)).appendTo(t.body),
2512
+ r = x.css(n[0], "display");
2513
+ return n.remove(), r
2514
+ }
2515
+ x.each(["height", "width"], function(e, n) {
2516
+ x.cssHooks[n] = {
2517
+ get: function(e, r, i) {
2518
+ return r ? 0 === e.offsetWidth && Xt.test(x.css(e, "display")) ? x.swap(e, Qt, function() {
2519
+ return sn(e, n, i)
2520
+ }) : sn(e, n, i) : t
2521
+ },
2522
+ set: function(e, t, r) {
2523
+ var i = r && Rt(e);
2524
+ return on(e, t, r ? an(e, n, r, x.support.boxSizing && "border-box" === x.css(e, "boxSizing", !1, i), i) : 0)
2525
+ }
2526
+ }
2527
+ }), x.support.opacity || (x.cssHooks.opacity = {
2528
+ get: function(e, t) {
2529
+ return It.test((t && e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : t ? "1" : ""
2530
+ },
2531
+ set: function(e, t) {
2532
+ var n = e.style,
2533
+ r = e.currentStyle,
2534
+ i = x.isNumeric(t) ? "alpha(opacity=" + 100 * t + ")" : "",
2535
+ o = r && r.filter || n.filter || "";
2536
+ n.zoom = 1, (t >= 1 || "" === t) && "" === x.trim(o.replace($t, "")) && n.removeAttribute && (n.removeAttribute("filter"), "" === t || r && !r.filter) || (n.filter = $t.test(o) ? o.replace($t, i) : o + " " + i)
2537
+ }
2538
+ }), x(function() {
2539
+ x.support.reliableMarginRight || (x.cssHooks.marginRight = {
2540
+ get: function(e, n) {
2541
+ return n ? x.swap(e, {
2542
+ display: "inline-block"
2543
+ }, Wt, [e, "marginRight"]) : t
2544
+ }
2545
+ }), !x.support.pixelPosition && x.fn.position && x.each(["top", "left"], function(e, n) {
2546
+ x.cssHooks[n] = {
2547
+ get: function(e, r) {
2548
+ return r ? (r = Wt(e, n), Yt.test(r) ? x(e).position()[n] + "px" : r) : t
2549
+ }
2550
+ }
2551
+ })
2552
+ }), x.expr && x.expr.filters && (x.expr.filters.hidden = function(e) {
2553
+ return 0 >= e.offsetWidth && 0 >= e.offsetHeight || !x.support.reliableHiddenOffsets && "none" === (e.style && e.style.display || x.css(e, "display"))
2554
+ }, x.expr.filters.visible = function(e) {
2555
+ return !x.expr.filters.hidden(e)
2556
+ }), x.each({
2557
+ margin: "",
2558
+ padding: "",
2559
+ border: "Width"
2560
+ }, function(e, t) {
2561
+ x.cssHooks[e + t] = {
2562
+ expand: function(n) {
2563
+ var r = 0,
2564
+ i = {},
2565
+ o = "string" == typeof n ? n.split(" ") : [n];
2566
+ for (; 4 > r; r++) i[e + Zt[r] + t] = o[r] || o[r - 2] || o[0];
2567
+ return i
2568
+ }
2569
+ }, Ut.test(e) || (x.cssHooks[e + t].set = on)
2570
+ });
2571
+ var cn = /%20/g,
2572
+ pn = /\[\]$/,
2573
+ fn = /\r?\n/g,
2574
+ dn = /^(?:submit|button|image|reset|file)$/i,
2575
+ hn = /^(?:input|select|textarea|keygen)/i;
2576
+ x.fn.extend({
2577
+ serialize: function() {
2578
+ return x.param(this.serializeArray())
2579
+ },
2580
+ serializeArray: function() {
2581
+ return this.map(function() {
2582
+ var e = x.prop(this, "elements");
2583
+ return e ? x.makeArray(e) : this
2584
+ }).filter(function() {
2585
+ var e = this.type;
2586
+ return this.name && !x(this).is(":disabled") && hn.test(this.nodeName) && !dn.test(e) && (this.checked || !Ct.test(e))
2587
+ }).map(function(e, t) {
2588
+ var n = x(this).val();
2589
+ return null == n ? null : x.isArray(n) ? x.map(n, function(e) {
2590
+ return {
2591
+ name: t.name,
2592
+ value: e.replace(fn, "\r\n")
2593
+ }
2594
+ }) : {
2595
+ name: t.name,
2596
+ value: n.replace(fn, "\r\n")
2597
+ }
2598
+ }).get()
2599
+ }
2600
+ }), x.param = function(e, n) {
2601
+ var r, i = [],
2602
+ o = function(e, t) {
2603
+ t = x.isFunction(t) ? t() : null == t ? "" : t, i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t)
2604
+ };
2605
+ if (n === t && (n = x.ajaxSettings && x.ajaxSettings.traditional), x.isArray(e) || e.jquery && !x.isPlainObject(e)) x.each(e, function() {
2606
+ o(this.name, this.value)
2607
+ });
2608
+ else
2609
+ for (r in e) gn(r, e[r], n, o);
2610
+ return i.join("&").replace(cn, "+")
2611
+ };
2612
+
2613
+ function gn(e, t, n, r) {
2614
+ var i;
2615
+ if (x.isArray(t)) x.each(t, function(t, i) {
2616
+ n || pn.test(e) ? r(e, i) : gn(e + "[" + ("object" == typeof i ? t : "") + "]", i, n, r)
2617
+ });
2618
+ else if (n || "object" !== x.type(t)) r(e, t);
2619
+ else
2620
+ for (i in t) gn(e + "[" + i + "]", t[i], n, r)
2621
+ }
2622
+ x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function(e, t) {
2623
+ x.fn[t] = function(e, n) {
2624
+ return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t)
2625
+ }
2626
+ }), x.fn.extend({
2627
+ hover: function(e, t) {
2628
+ return this.mouseenter(e).mouseleave(t || e)
2629
+ },
2630
+ bind: function(e, t, n) {
2631
+ return this.on(e, null, t, n)
2632
+ },
2633
+ unbind: function(e, t) {
2634
+ return this.off(e, null, t)
2635
+ },
2636
+ delegate: function(e, t, n, r) {
2637
+ return this.on(t, e, n, r)
2638
+ },
2639
+ undelegate: function(e, t, n) {
2640
+ return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n)
2641
+ }
2642
+ });
2643
+ var mn, yn, vn = x.now(),
2644
+ bn = /\?/,
2645
+ xn = /#.*$/,
2646
+ wn = /([?&])_=[^&]*/,
2647
+ Tn = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm,
2648
+ Cn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
2649
+ Nn = /^(?:GET|HEAD)$/,
2650
+ kn = /^\/\//,
2651
+ En = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,
2652
+ Sn = x.fn.load,
2653
+ An = {},
2654
+ jn = {},
2655
+ Dn = "*/".concat("*");
2656
+ try {
2657
+ yn = o.href
2658
+ } catch (Ln) {
2659
+ yn = a.createElement("a"), yn.href = "", yn = yn.href
2660
+ }
2661
+ mn = En.exec(yn.toLowerCase()) || [];
2662
+
2663
+ function Hn(e) {
2664
+ return function(t, n) {
2665
+ "string" != typeof t && (n = t, t = "*");
2666
+ var r, i = 0,
2667
+ o = t.toLowerCase().match(T) || [];
2668
+ if (x.isFunction(n))
2669
+ while (r = o[i++]) "+" === r[0] ? (r = r.slice(1) || "*", (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n)
2670
+ }
2671
+ }
2672
+
2673
+ function qn(e, n, r, i) {
2674
+ var o = {},
2675
+ a = e === jn;
2676
+
2677
+ function s(l) {
2678
+ var u;
2679
+ return o[l] = !0, x.each(e[l] || [], function(e, l) {
2680
+ var c = l(n, r, i);
2681
+ return "string" != typeof c || a || o[c] ? a ? !(u = c) : t : (n.dataTypes.unshift(c), s(c), !1)
2682
+ }), u
2683
+ }
2684
+ return s(n.dataTypes[0]) || !o["*"] && s("*")
2685
+ }
2686
+
2687
+ function _n(e, n) {
2688
+ var r, i, o = x.ajaxSettings.flatOptions || {};
2689
+ for (i in n) n[i] !== t && ((o[i] ? e : r || (r = {}))[i] = n[i]);
2690
+ return r && x.extend(!0, e, r), e
2691
+ }
2692
+ x.fn.load = function(e, n, r) {
2693
+ if ("string" != typeof e && Sn) return Sn.apply(this, arguments);
2694
+ var i, o, a, s = this,
2695
+ l = e.indexOf(" ");
2696
+ return l >= 0 && (i = e.slice(l, e.length), e = e.slice(0, l)), x.isFunction(n) ? (r = n, n = t) : n && "object" == typeof n && (a = "POST"), s.length > 0 && x.ajax({
2697
+ url: e,
2698
+ type: a,
2699
+ dataType: "html",
2700
+ data: n
2701
+ }).done(function(e) {
2702
+ o = arguments, s.html(i ? x("<div>").append(x.parseHTML(e)).find(i) : e)
2703
+ }).complete(r && function(e, t) {
2704
+ s.each(r, o || [e.responseText, t, e])
2705
+ }), this
2706
+ }, x.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(e, t) {
2707
+ x.fn[t] = function(e) {
2708
+ return this.on(t, e)
2709
+ }
2710
+ }), x.extend({
2711
+ active: 0,
2712
+ lastModified: {},
2713
+ etag: {},
2714
+ ajaxSettings: {
2715
+ url: yn,
2716
+ type: "GET",
2717
+ isLocal: Cn.test(mn[1]),
2718
+ global: !0,
2719
+ processData: !0,
2720
+ async: !0,
2721
+ contentType: "application/x-www-form-urlencoded; charset=UTF-8",
2722
+ accepts: {
2723
+ "*": Dn,
2724
+ text: "text/plain",
2725
+ html: "text/html",
2726
+ xml: "application/xml, text/xml",
2727
+ json: "application/json, text/javascript"
2728
+ },
2729
+ contents: {
2730
+ xml: /xml/,
2731
+ html: /html/,
2732
+ json: /json/
2733
+ },
2734
+ responseFields: {
2735
+ xml: "responseXML",
2736
+ text: "responseText",
2737
+ json: "responseJSON"
2738
+ },
2739
+ converters: {
2740
+ "* text": String,
2741
+ "text html": !0,
2742
+ "text json": x.parseJSON,
2743
+ "text xml": x.parseXML
2744
+ },
2745
+ flatOptions: {
2746
+ url: !0,
2747
+ context: !0
2748
+ }
2749
+ },
2750
+ ajaxSetup: function(e, t) {
2751
+ return t ? _n(_n(e, x.ajaxSettings), t) : _n(x.ajaxSettings, e)
2752
+ },
2753
+ ajaxPrefilter: Hn(An),
2754
+ ajaxTransport: Hn(jn),
2755
+ ajax: function(e, n) {
2756
+ "object" == typeof e && (n = e, e = t), n = n || {};
2757
+ var r, i, o, a, s, l, u, c, p = x.ajaxSetup({}, n),
2758
+ f = p.context || p,
2759
+ d = p.context && (f.nodeType || f.jquery) ? x(f) : x.event,
2760
+ h = x.Deferred(),
2761
+ g = x.Callbacks("once memory"),
2762
+ m = p.statusCode || {},
2763
+ y = {},
2764
+ v = {},
2765
+ b = 0,
2766
+ w = "canceled",
2767
+ C = {
2768
+ readyState: 0,
2769
+ getResponseHeader: function(e) {
2770
+ var t;
2771
+ if (2 === b) {
2772
+ if (!c) {
2773
+ c = {};
2774
+ while (t = Tn.exec(a)) c[t[1].toLowerCase()] = t[2]
2775
+ }
2776
+ t = c[e.toLowerCase()]
2777
+ }
2778
+ return null == t ? null : t
2779
+ },
2780
+ getAllResponseHeaders: function() {
2781
+ return 2 === b ? a : null
2782
+ },
2783
+ setRequestHeader: function(e, t) {
2784
+ var n = e.toLowerCase();
2785
+ return b || (e = v[n] = v[n] || e, y[e] = t), this
2786
+ },
2787
+ overrideMimeType: function(e) {
2788
+ return b || (p.mimeType = e), this
2789
+ },
2790
+ statusCode: function(e) {
2791
+ var t;
2792
+ if (e)
2793
+ if (2 > b)
2794
+ for (t in e) m[t] = [m[t], e[t]];
2795
+ else C.always(e[C.status]);
2796
+ return this
2797
+ },
2798
+ abort: function(e) {
2799
+ var t = e || w;
2800
+ return u && u.abort(t), k(0, t), this
2801
+ }
2802
+ };
2803
+ if (h.promise(C).complete = g.add, C.success = C.done, C.error = C.fail, p.url = ((e || p.url || yn) + "").replace(xn, "").replace(kn, mn[1] + "//"), p.type = n.method || n.type || p.method || p.type, p.dataTypes = x.trim(p.dataType || "*").toLowerCase().match(T) || [""], null == p.crossDomain && (r = En.exec(p.url.toLowerCase()), p.crossDomain = !(!r || r[1] === mn[1] && r[2] === mn[2] && (r[3] || ("http:" === r[1] ? "80" : "443")) === (mn[3] || ("http:" === mn[1] ? "80" : "443")))), p.data && p.processData && "string" != typeof p.data && (p.data = x.param(p.data, p.traditional)), qn(An, p, n, C), 2 === b) return C;
2804
+ l = p.global, l && 0 === x.active++ && x.event.trigger("ajaxStart"), p.type = p.type.toUpperCase(), p.hasContent = !Nn.test(p.type), o = p.url, p.hasContent || (p.data && (o = p.url += (bn.test(o) ? "&" : "?") + p.data, delete p.data), p.cache === !1 && (p.url = wn.test(o) ? o.replace(wn, "$1_=" + vn++) : o + (bn.test(o) ? "&" : "?") + "_=" + vn++)), p.ifModified && (x.lastModified[o] && C.setRequestHeader("If-Modified-Since", x.lastModified[o]), x.etag[o] && C.setRequestHeader("If-None-Match", x.etag[o])), (p.data && p.hasContent && p.contentType !== !1 || n.contentType) && C.setRequestHeader("Content-Type", p.contentType), C.setRequestHeader("Accept", p.dataTypes[0] && p.accepts[p.dataTypes[0]] ? p.accepts[p.dataTypes[0]] + ("*" !== p.dataTypes[0] ? ", " + Dn + "; q=0.01" : "") : p.accepts["*"]);
2805
+ for (i in p.headers) C.setRequestHeader(i, p.headers[i]);
2806
+ if (p.beforeSend && (p.beforeSend.call(f, C, p) === !1 || 2 === b)) return C.abort();
2807
+ w = "abort";
2808
+ for (i in {
2809
+ success: 1,
2810
+ error: 1,
2811
+ complete: 1
2812
+ }) C[i](p[i]);
2813
+ if (u = qn(jn, p, n, C)) {
2814
+ C.readyState = 1, l && d.trigger("ajaxSend", [C, p]), p.async && p.timeout > 0 && (s = setTimeout(function() {
2815
+ C.abort("timeout")
2816
+ }, p.timeout));
2817
+ try {
2818
+ b = 1, u.send(y, k)
2819
+ } catch (N) {
2820
+ if (!(2 > b)) throw N;
2821
+ k(-1, N)
2822
+ }
2823
+ } else k(-1, "No Transport");
2824
+
2825
+ function k(e, n, r, i) {
2826
+ var c, y, v, w, T, N = n;
2827
+ 2 !== b && (b = 2, s && clearTimeout(s), u = t, a = i || "", C.readyState = e > 0 ? 4 : 0, c = e >= 200 && 300 > e || 304 === e, r && (w = Mn(p, C, r)), w = On(p, w, C, c), c ? (p.ifModified && (T = C.getResponseHeader("Last-Modified"), T && (x.lastModified[o] = T), T = C.getResponseHeader("etag"), T && (x.etag[o] = T)), 204 === e || "HEAD" === p.type ? N = "nocontent" : 304 === e ? N = "notmodified" : (N = w.state, y = w.data, v = w.error, c = !v)) : (v = N, (e || !N) && (N = "error", 0 > e && (e = 0))), C.status = e, C.statusText = (n || N) + "", c ? h.resolveWith(f, [y, N, C]) : h.rejectWith(f, [C, N, v]), C.statusCode(m), m = t, l && d.trigger(c ? "ajaxSuccess" : "ajaxError", [C, p, c ? y : v]), g.fireWith(f, [C, N]), l && (d.trigger("ajaxComplete", [C, p]), --x.active || x.event.trigger("ajaxStop")))
2828
+ }
2829
+ return C
2830
+ },
2831
+ getJSON: function(e, t, n) {
2832
+ return x.get(e, t, n, "json")
2833
+ },
2834
+ getScript: function(e, n) {
2835
+ return x.get(e, t, n, "script")
2836
+ }
2837
+ }), x.each(["get", "post"], function(e, n) {
2838
+ x[n] = function(e, r, i, o) {
2839
+ return x.isFunction(r) && (o = o || i, i = r, r = t), x.ajax({
2840
+ url: e,
2841
+ type: n,
2842
+ dataType: o,
2843
+ data: r,
2844
+ success: i
2845
+ })
2846
+ }
2847
+ });
2848
+
2849
+ function Mn(e, n, r) {
2850
+ var i, o, a, s, l = e.contents,
2851
+ u = e.dataTypes;
2852
+ while ("*" === u[0]) u.shift(), o === t && (o = e.mimeType || n.getResponseHeader("Content-Type"));
2853
+ if (o)
2854
+ for (s in l)
2855
+ if (l[s] && l[s].test(o)) {
2856
+ u.unshift(s);
2857
+ break
2858
+ }
2859
+ if (u[0] in r) a = u[0];
2860
+ else {
2861
+ for (s in r) {
2862
+ if (!u[0] || e.converters[s + " " + u[0]]) {
2863
+ a = s;
2864
+ break
2865
+ }
2866
+ i || (i = s)
2867
+ }
2868
+ a = a || i
2869
+ }
2870
+ return a ? (a !== u[0] && u.unshift(a), r[a]) : t
2871
+ }
2872
+
2873
+ function On(e, t, n, r) {
2874
+ var i, o, a, s, l, u = {},
2875
+ c = e.dataTypes.slice();
2876
+ if (c[1])
2877
+ for (a in e.converters) u[a.toLowerCase()] = e.converters[a];
2878
+ o = c.shift();
2879
+ while (o)
2880
+ if (e.responseFields[o] && (n[e.responseFields[o]] = t), !l && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)), l = o, o = c.shift())
2881
+ if ("*" === o) o = l;
2882
+ else if ("*" !== l && l !== o) {
2883
+ if (a = u[l + " " + o] || u["* " + o], !a)
2884
+ for (i in u)
2885
+ if (s = i.split(" "), s[1] === o && (a = u[l + " " + s[0]] || u["* " + s[0]])) {
2886
+ a === !0 ? a = u[i] : u[i] !== !0 && (o = s[0], c.unshift(s[1]));
2887
+ break
2888
+ }
2889
+ if (a !== !0)
2890
+ if (a && e["throws"]) t = a(t);
2891
+ else try {
2892
+ t = a(t)
2893
+ } catch (p) {
2894
+ return {
2895
+ state: "parsererror",
2896
+ error: a ? p : "No conversion from " + l + " to " + o
2897
+ }
2898
+ }
2899
+ }
2900
+ return {
2901
+ state: "success",
2902
+ data: t
2903
+ }
2904
+ }
2905
+ x.ajaxSetup({
2906
+ accepts: {
2907
+ script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
2908
+ },
2909
+ contents: {
2910
+ script: /(?:java|ecma)script/
2911
+ },
2912
+ converters: {
2913
+ "text script": function(e) {
2914
+ return x.globalEval(e), e
2915
+ }
2916
+ }
2917
+ }), x.ajaxPrefilter("script", function(e) {
2918
+ e.cache === t && (e.cache = !1), e.crossDomain && (e.type = "GET", e.global = !1)
2919
+ }), x.ajaxTransport("script", function(e) {
2920
+ if (e.crossDomain) {
2921
+ var n, r = a.head || x("head")[0] || a.documentElement;
2922
+ return {
2923
+ send: function(t, i) {
2924
+ n = a.createElement("script"), n.async = !0, e.scriptCharset && (n.charset = e.scriptCharset), n.src = e.url, n.onload = n.onreadystatechange = function(e, t) {
2925
+ (t || !n.readyState || /loaded|complete/.test(n.readyState)) && (n.onload = n.onreadystatechange = null, n.parentNode && n.parentNode.removeChild(n), n = null, t || i(200, "success"))
2926
+ }, r.insertBefore(n, r.firstChild)
2927
+ },
2928
+ abort: function() {
2929
+ n && n.onload(t, !0)
2930
+ }
2931
+ }
2932
+ }
2933
+ });
2934
+ var Fn = [],
2935
+ Bn = /(=)\?(?=&|$)|\?\?/;
2936
+ x.ajaxSetup({
2937
+ jsonp: "callback",
2938
+ jsonpCallback: function() {
2939
+ var e = Fn.pop() || x.expando + "_" + vn++;
2940
+ return this[e] = !0, e
2941
+ }
2942
+ }), x.ajaxPrefilter("json jsonp", function(n, r, i) {
2943
+ var o, a, s, l = n.jsonp !== !1 && (Bn.test(n.url) ? "url" : "string" == typeof n.data && !(n.contentType || "").indexOf("application/x-www-form-urlencoded") && Bn.test(n.data) && "data");
2944
+ return l || "jsonp" === n.dataTypes[0] ? (o = n.jsonpCallback = x.isFunction(n.jsonpCallback) ? n.jsonpCallback() : n.jsonpCallback, l ? n[l] = n[l].replace(Bn, "$1" + o) : n.jsonp !== !1 && (n.url += (bn.test(n.url) ? "&" : "?") + n.jsonp + "=" + o), n.converters["script json"] = function() {
2945
+ return s || x.error(o + " was not called"), s[0]
2946
+ }, n.dataTypes[0] = "json", a = e[o], e[o] = function() {
2947
+ s = arguments
2948
+ }, i.always(function() {
2949
+ e[o] = a, n[o] && (n.jsonpCallback = r.jsonpCallback, Fn.push(o)), s && x.isFunction(a) && a(s[0]), s = a = t
2950
+ }), "script") : t
2951
+ });
2952
+ var Pn, Rn, Wn = 0,
2953
+ $n = e.ActiveXObject && function() {
2954
+ var e;
2955
+ for (e in Pn) Pn[e](t, !0)
2956
+ };
2957
+
2958
+ function In() {
2959
+ try {
2960
+ return new e.XMLHttpRequest
2961
+ } catch (t) {}
2962
+ }
2963
+
2964
+ function zn() {
2965
+ try {
2966
+ return new e.ActiveXObject("Microsoft.XMLHTTP")
2967
+ } catch (t) {}
2968
+ }
2969
+ x.ajaxSettings.xhr = e.ActiveXObject ? function() {
2970
+ return !this.isLocal && In() || zn()
2971
+ } : In, Rn = x.ajaxSettings.xhr(), x.support.cors = !!Rn && "withCredentials" in Rn, Rn = x.support.ajax = !!Rn, Rn && x.ajaxTransport(function(n) {
2972
+ if (!n.crossDomain || x.support.cors) {
2973
+ var r;
2974
+ return {
2975
+ send: function(i, o) {
2976
+ var a, s, l = n.xhr();
2977
+ if (n.username ? l.open(n.type, n.url, n.async, n.username, n.password) : l.open(n.type, n.url, n.async), n.xhrFields)
2978
+ for (s in n.xhrFields) l[s] = n.xhrFields[s];
2979
+ n.mimeType && l.overrideMimeType && l.overrideMimeType(n.mimeType), n.crossDomain || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest");
2980
+ try {
2981
+ for (s in i) l.setRequestHeader(s, i[s])
2982
+ } catch (u) {}
2983
+ l.send(n.hasContent && n.data || null), r = function(e, i) {
2984
+ var s, u, c, p;
2985
+ try {
2986
+ if (r && (i || 4 === l.readyState))
2987
+ if (r = t, a && (l.onreadystatechange = x.noop, $n && delete Pn[a]), i) 4 !== l.readyState && l.abort();
2988
+ else {
2989
+ p = {}, s = l.status, u = l.getAllResponseHeaders(), "string" == typeof l.responseText && (p.text = l.responseText);
2990
+ try {
2991
+ c = l.statusText
2992
+ } catch (f) {
2993
+ c = ""
2994
+ }
2995
+ s || !n.isLocal || n.crossDomain ? 1223 === s && (s = 204) : s = p.text ? 200 : 404
2996
+ }
2997
+ } catch (d) {
2998
+ i || o(-1, d)
2999
+ }
3000
+ p && o(s, c, p, u)
3001
+ }, n.async ? 4 === l.readyState ? setTimeout(r) : (a = ++Wn, $n && (Pn || (Pn = {}, x(e).unload($n)), Pn[a] = r), l.onreadystatechange = r) : r()
3002
+ },
3003
+ abort: function() {
3004
+ r && r(t, !0)
3005
+ }
3006
+ }
3007
+ }
3008
+ });
3009
+ var Xn, Un, Vn = /^(?:toggle|show|hide)$/,
3010
+ Yn = RegExp("^(?:([+-])=|)(" + w + ")([a-z%]*)$", "i"),
3011
+ Jn = /queueHooks$/,
3012
+ Gn = [nr],
3013
+ Qn = {
3014
+ "*": [function(e, t) {
3015
+ var n = this.createTween(e, t),
3016
+ r = n.cur(),
3017
+ i = Yn.exec(t),
3018
+ o = i && i[3] || (x.cssNumber[e] ? "" : "px"),
3019
+ a = (x.cssNumber[e] || "px" !== o && +r) && Yn.exec(x.css(n.elem, e)),
3020
+ s = 1,
3021
+ l = 20;
3022
+ if (a && a[3] !== o) {
3023
+ o = o || a[3], i = i || [], a = +r || 1;
3024
+ do s = s || ".5", a /= s, x.style(n.elem, e, a + o); while (s !== (s = n.cur() / r) && 1 !== s && --l)
3025
+ }
3026
+ return i && (a = n.start = +a || +r || 0, n.unit = o, n.end = i[1] ? a + (i[1] + 1) * i[2] : +i[2]), n
3027
+ }]
3028
+ };
3029
+
3030
+ function Kn() {
3031
+ return setTimeout(function() {
3032
+ Xn = t
3033
+ }), Xn = x.now()
3034
+ }
3035
+
3036
+ function Zn(e, t, n) {
3037
+ var r, i = (Qn[t] || []).concat(Qn["*"]),
3038
+ o = 0,
3039
+ a = i.length;
3040
+ for (; a > o; o++)
3041
+ if (r = i[o].call(n, t, e)) return r
3042
+ }
3043
+
3044
+ function er(e, t, n) {
3045
+ var r, i, o = 0,
3046
+ a = Gn.length,
3047
+ s = x.Deferred().always(function() {
3048
+ delete l.elem
3049
+ }),
3050
+ l = function() {
3051
+ if (i) return !1;
3052
+ var t = Xn || Kn(),
3053
+ n = Math.max(0, u.startTime + u.duration - t),
3054
+ r = n / u.duration || 0,
3055
+ o = 1 - r,
3056
+ a = 0,
3057
+ l = u.tweens.length;
3058
+ for (; l > a; a++) u.tweens[a].run(o);
3059
+ return s.notifyWith(e, [u, o, n]), 1 > o && l ? n : (s.resolveWith(e, [u]), !1)
3060
+ },
3061
+ u = s.promise({
3062
+ elem: e,
3063
+ props: x.extend({}, t),
3064
+ opts: x.extend(!0, {
3065
+ specialEasing: {}
3066
+ }, n),
3067
+ originalProperties: t,
3068
+ originalOptions: n,
3069
+ startTime: Xn || Kn(),
3070
+ duration: n.duration,
3071
+ tweens: [],
3072
+ createTween: function(t, n) {
3073
+ var r = x.Tween(e, u.opts, t, n, u.opts.specialEasing[t] || u.opts.easing);
3074
+ return u.tweens.push(r), r
3075
+ },
3076
+ stop: function(t) {
3077
+ var n = 0,
3078
+ r = t ? u.tweens.length : 0;
3079
+ if (i) return this;
3080
+ for (i = !0; r > n; n++) u.tweens[n].run(1);
3081
+ return t ? s.resolveWith(e, [u, t]) : s.rejectWith(e, [u, t]), this
3082
+ }
3083
+ }),
3084
+ c = u.props;
3085
+ for (tr(c, u.opts.specialEasing); a > o; o++)
3086
+ if (r = Gn[o].call(u, e, c, u.opts)) return r;
3087
+ return x.map(c, Zn, u), x.isFunction(u.opts.start) && u.opts.start.call(e, u), x.fx.timer(x.extend(l, {
3088
+ elem: e,
3089
+ anim: u,
3090
+ queue: u.opts.queue
3091
+ })), u.progress(u.opts.progress).done(u.opts.done, u.opts.complete).fail(u.opts.fail).always(u.opts.always)
3092
+ }
3093
+
3094
+ function tr(e, t) {
3095
+ var n, r, i, o, a;
3096
+ for (n in e)
3097
+ if (r = x.camelCase(n), i = t[r], o = e[n], x.isArray(o) && (i = o[1], o = e[n] = o[0]), n !== r && (e[r] = o, delete e[n]), a = x.cssHooks[r], a && "expand" in a) {
3098
+ o = a.expand(o), delete e[r];
3099
+ for (n in o) n in e || (e[n] = o[n], t[n] = i)
3100
+ } else t[r] = i
3101
+ }
3102
+ x.Animation = x.extend(er, {
3103
+ tweener: function(e, t) {
3104
+ x.isFunction(e) ? (t = e, e = ["*"]) : e = e.split(" ");
3105
+ var n, r = 0,
3106
+ i = e.length;
3107
+ for (; i > r; r++) n = e[r], Qn[n] = Qn[n] || [], Qn[n].unshift(t)
3108
+ },
3109
+ prefilter: function(e, t) {
3110
+ t ? Gn.unshift(e) : Gn.push(e)
3111
+ }
3112
+ });
3113
+
3114
+ function nr(e, t, n) {
3115
+ var r, i, o, a, s, l, u = this,
3116
+ c = {},
3117
+ p = e.style,
3118
+ f = e.nodeType && nn(e),
3119
+ d = x._data(e, "fxshow");
3120
+ n.queue || (s = x._queueHooks(e, "fx"), null == s.unqueued && (s.unqueued = 0, l = s.empty.fire, s.empty.fire = function() {
3121
+ s.unqueued || l()
3122
+ }), s.unqueued++, u.always(function() {
3123
+ u.always(function() {
3124
+ s.unqueued--, x.queue(e, "fx").length || s.empty.fire()
3125
+ })
3126
+ })), 1 === e.nodeType && ("height" in t || "width" in t) && (n.overflow = [p.overflow, p.overflowX, p.overflowY], "inline" === x.css(e, "display") && "none" === x.css(e, "float") && (x.support.inlineBlockNeedsLayout && "inline" !== ln(e.nodeName) ? p.zoom = 1 : p.display = "inline-block")), n.overflow && (p.overflow = "hidden", x.support.shrinkWrapBlocks || u.always(function() {
3127
+ p.overflow = n.overflow[0], p.overflowX = n.overflow[1], p.overflowY = n.overflow[2]
3128
+ }));
3129
+ for (r in t)
3130
+ if (i = t[r], Vn.exec(i)) {
3131
+ if (delete t[r], o = o || "toggle" === i, i === (f ? "hide" : "show")) continue;
3132
+ c[r] = d && d[r] || x.style(e, r)
3133
+ }
3134
+ if (!x.isEmptyObject(c)) {
3135
+ d ? "hidden" in d && (f = d.hidden) : d = x._data(e, "fxshow", {}), o && (d.hidden = !f), f ? x(e).show() : u.done(function() {
3136
+ x(e).hide()
3137
+ }), u.done(function() {
3138
+ var t;
3139
+ x._removeData(e, "fxshow");
3140
+ for (t in c) x.style(e, t, c[t])
3141
+ });
3142
+ for (r in c) a = Zn(f ? d[r] : 0, r, u), r in d || (d[r] = a.start, f && (a.end = a.start, a.start = "width" === r || "height" === r ? 1 : 0))
3143
+ }
3144
+ }
3145
+
3146
+ function rr(e, t, n, r, i) {
3147
+ return new rr.prototype.init(e, t, n, r, i)
3148
+ }
3149
+ x.Tween = rr, rr.prototype = {
3150
+ constructor: rr,
3151
+ init: function(e, t, n, r, i, o) {
3152
+ this.elem = e, this.prop = n, this.easing = i || "swing", this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = o || (x.cssNumber[n] ? "" : "px")
3153
+ },
3154
+ cur: function() {
3155
+ var e = rr.propHooks[this.prop];
3156
+ return e && e.get ? e.get(this) : rr.propHooks._default.get(this)
3157
+ },
3158
+ run: function(e) {
3159
+ var t, n = rr.propHooks[this.prop];
3160
+ return this.pos = t = this.options.duration ? x.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : rr.propHooks._default.set(this), this
3161
+ }
3162
+ }, rr.prototype.init.prototype = rr.prototype, rr.propHooks = {
3163
+ _default: {
3164
+ get: function(e) {
3165
+ var t;
3166
+ return null == e.elem[e.prop] || e.elem.style && null != e.elem.style[e.prop] ? (t = x.css(e.elem, e.prop, ""), t && "auto" !== t ? t : 0) : e.elem[e.prop]
3167
+ },
3168
+ set: function(e) {
3169
+ x.fx.step[e.prop] ? x.fx.step[e.prop](e) : e.elem.style && (null != e.elem.style[x.cssProps[e.prop]] || x.cssHooks[e.prop]) ? x.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now
3170
+ }
3171
+ }
3172
+ }, rr.propHooks.scrollTop = rr.propHooks.scrollLeft = {
3173
+ set: function(e) {
3174
+ e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now)
3175
+ }
3176
+ }, x.each(["toggle", "show", "hide"], function(e, t) {
3177
+ var n = x.fn[t];
3178
+ x.fn[t] = function(e, r, i) {
3179
+ return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(ir(t, !0), e, r, i)
3180
+ }
3181
+ }), x.fn.extend({
3182
+ fadeTo: function(e, t, n, r) {
3183
+ return this.filter(nn).css("opacity", 0).show().end().animate({
3184
+ opacity: t
3185
+ }, e, n, r)
3186
+ },
3187
+ animate: function(e, t, n, r) {
3188
+ var i = x.isEmptyObject(e),
3189
+ o = x.speed(t, n, r),
3190
+ a = function() {
3191
+ var t = er(this, x.extend({}, e), o);
3192
+ (i || x._data(this, "finish")) && t.stop(!0)
3193
+ };
3194
+ return a.finish = a, i || o.queue === !1 ? this.each(a) : this.queue(o.queue, a)
3195
+ },
3196
+ stop: function(e, n, r) {
3197
+ var i = function(e) {
3198
+ var t = e.stop;
3199
+ delete e.stop, t(r)
3200
+ };
3201
+ return "string" != typeof e && (r = n, n = e, e = t), n && e !== !1 && this.queue(e || "fx", []), this.each(function() {
3202
+ var t = !0,
3203
+ n = null != e && e + "queueHooks",
3204
+ o = x.timers,
3205
+ a = x._data(this);
3206
+ if (n) a[n] && a[n].stop && i(a[n]);
3207
+ else
3208
+ for (n in a) a[n] && a[n].stop && Jn.test(n) && i(a[n]);
3209
+ for (n = o.length; n--;) o[n].elem !== this || null != e && o[n].queue !== e || (o[n].anim.stop(r), t = !1, o.splice(n, 1));
3210
+ (t || !r) && x.dequeue(this, e)
3211
+ })
3212
+ },
3213
+ finish: function(e) {
3214
+ return e !== !1 && (e = e || "fx"), this.each(function() {
3215
+ var t, n = x._data(this),
3216
+ r = n[e + "queue"],
3217
+ i = n[e + "queueHooks"],
3218
+ o = x.timers,
3219
+ a = r ? r.length : 0;
3220
+ for (n.finish = !0, x.queue(this, e, []), i && i.stop && i.stop.call(this, !0), t = o.length; t--;) o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), o.splice(t, 1));
3221
+ for (t = 0; a > t; t++) r[t] && r[t].finish && r[t].finish.call(this);
3222
+ delete n.finish
3223
+ })
3224
+ }
3225
+ });
3226
+
3227
+ function ir(e, t) {
3228
+ var n, r = {
3229
+ height: e
3230
+ },
3231
+ i = 0;
3232
+ for (t = t ? 1 : 0; 4 > i; i += 2 - t) n = Zt[i], r["margin" + n] = r["padding" + n] = e;
3233
+ return t && (r.opacity = r.width = e), r
3234
+ }
3235
+ x.each({
3236
+ slideDown: ir("show"),
3237
+ slideUp: ir("hide"),
3238
+ slideToggle: ir("toggle"),
3239
+ fadeIn: {
3240
+ opacity: "show"
3241
+ },
3242
+ fadeOut: {
3243
+ opacity: "hide"
3244
+ },
3245
+ fadeToggle: {
3246
+ opacity: "toggle"
3247
+ }
3248
+ }, function(e, t) {
3249
+ x.fn[e] = function(e, n, r) {
3250
+ return this.animate(t, e, n, r)
3251
+ }
3252
+ }), x.speed = function(e, t, n) {
3253
+ var r = e && "object" == typeof e ? x.extend({}, e) : {
3254
+ complete: n || !n && t || x.isFunction(e) && e,
3255
+ duration: e,
3256
+ easing: n && t || t && !x.isFunction(t) && t
3257
+ };
3258
+ return r.duration = x.fx.off ? 0 : "number" == typeof r.duration ? r.duration : r.duration in x.fx.speeds ? x.fx.speeds[r.duration] : x.fx.speeds._default, (null == r.queue || r.queue === !0) && (r.queue = "fx"), r.old = r.complete, r.complete = function() {
3259
+ x.isFunction(r.old) && r.old.call(this), r.queue && x.dequeue(this, r.queue)
3260
+ }, r
3261
+ }, x.easing = {
3262
+ linear: function(e) {
3263
+ return e
3264
+ },
3265
+ swing: function(e) {
3266
+ return .5 - Math.cos(e * Math.PI) / 2
3267
+ }
3268
+ }, x.timers = [], x.fx = rr.prototype.init, x.fx.tick = function() {
3269
+ var e, n = x.timers,
3270
+ r = 0;
3271
+ for (Xn = x.now(); n.length > r; r++) e = n[r], e() || n[r] !== e || n.splice(r--, 1);
3272
+ n.length || x.fx.stop(), Xn = t
3273
+ }, x.fx.timer = function(e) {
3274
+ e() && x.timers.push(e) && x.fx.start()
3275
+ }, x.fx.interval = 13, x.fx.start = function() {
3276
+ Un || (Un = setInterval(x.fx.tick, x.fx.interval))
3277
+ }, x.fx.stop = function() {
3278
+ clearInterval(Un), Un = null
3279
+ }, x.fx.speeds = {
3280
+ slow: 600,
3281
+ fast: 200,
3282
+ _default: 400
3283
+ }, x.fx.step = {}, x.expr && x.expr.filters && (x.expr.filters.animated = function(e) {
3284
+ return x.grep(x.timers, function(t) {
3285
+ return e === t.elem
3286
+ }).length
3287
+ }), x.fn.offset = function(e) {
3288
+ if (arguments.length) return e === t ? this : this.each(function(t) {
3289
+ x.offset.setOffset(this, e, t)
3290
+ });
3291
+ var n, r, o = {
3292
+ top: 0,
3293
+ left: 0
3294
+ },
3295
+ a = this[0],
3296
+ s = a && a.ownerDocument;
3297
+ if (s) return n = s.documentElement, x.contains(n, a) ? (typeof a.getBoundingClientRect !== i && (o = a.getBoundingClientRect()), r = or(s), {
3298
+ top: o.top + (r.pageYOffset || n.scrollTop) - (n.clientTop || 0),
3299
+ left: o.left + (r.pageXOffset || n.scrollLeft) - (n.clientLeft || 0)
3300
+ }) : o
3301
+ }, x.offset = {
3302
+ setOffset: function(e, t, n) {
3303
+ var r = x.css(e, "position");
3304
+ "static" === r && (e.style.position = "relative");
3305
+ var i = x(e),
3306
+ o = i.offset(),
3307
+ a = x.css(e, "top"),
3308
+ s = x.css(e, "left"),
3309
+ l = ("absolute" === r || "fixed" === r) && x.inArray("auto", [a, s]) > -1,
3310
+ u = {},
3311
+ c = {},
3312
+ p, f;
3313
+ l ? (c = i.position(), p = c.top, f = c.left) : (p = parseFloat(a) || 0, f = parseFloat(s) || 0), x.isFunction(t) && (t = t.call(e, n, o)), null != t.top && (u.top = t.top - o.top + p), null != t.left && (u.left = t.left - o.left + f), "using" in t ? t.using.call(e, u) : i.css(u)
3314
+ }
3315
+ }, x.fn.extend({
3316
+ position: function() {
3317
+ if (this[0]) {
3318
+ var e, t, n = {
3319
+ top: 0,
3320
+ left: 0
3321
+ },
3322
+ r = this[0];
3323
+ return "fixed" === x.css(r, "position") ? t = r.getBoundingClientRect() : (e = this.offsetParent(), t = this.offset(), x.nodeName(e[0], "html") || (n = e.offset()), n.top += x.css(e[0], "borderTopWidth", !0), n.left += x.css(e[0], "borderLeftWidth", !0)), {
3324
+ top: t.top - n.top - x.css(r, "marginTop", !0),
3325
+ left: t.left - n.left - x.css(r, "marginLeft", !0)
3326
+ }
3327
+ }
3328
+ },
3329
+ offsetParent: function() {
3330
+ return this.map(function() {
3331
+ var e = this.offsetParent || s;
3332
+ while (e && !x.nodeName(e, "html") && "static" === x.css(e, "position")) e = e.offsetParent;
3333
+ return e || s
3334
+ })
3335
+ }
3336
+ }), x.each({
3337
+ scrollLeft: "pageXOffset",
3338
+ scrollTop: "pageYOffset"
3339
+ }, function(e, n) {
3340
+ var r = /Y/.test(n);
3341
+ x.fn[e] = function(i) {
3342
+ return x.access(this, function(e, i, o) {
3343
+ var a = or(e);
3344
+ return o === t ? a ? n in a ? a[n] : a.document.documentElement[i] : e[i] : (a ? a.scrollTo(r ? x(a).scrollLeft() : o, r ? o : x(a).scrollTop()) : e[i] = o, t)
3345
+ }, e, i, arguments.length, null)
3346
+ }
3347
+ });
3348
+
3349
+ function or(e) {
3350
+ return x.isWindow(e) ? e : 9 === e.nodeType ? e.defaultView || e.parentWindow : !1
3351
+ }
3352
+ x.each({
3353
+ Height: "height",
3354
+ Width: "width"
3355
+ }, function(e, n) {
3356
+ x.each({
3357
+ padding: "inner" + e,
3358
+ content: n,
3359
+ "": "outer" + e
3360
+ }, function(r, i) {
3361
+ x.fn[i] = function(i, o) {
3362
+ var a = arguments.length && (r || "boolean" != typeof i),
3363
+ s = r || (i === !0 || o === !0 ? "margin" : "border");
3364
+ return x.access(this, function(n, r, i) {
3365
+ var o;
3366
+ return x.isWindow(n) ? n.document.documentElement["client" + e] : 9 === n.nodeType ? (o = n.documentElement, Math.max(n.body["scroll" + e], o["scroll" + e], n.body["offset" + e], o["offset" + e], o["client" + e])) : i === t ? x.css(n, r, s) : x.style(n, r, i, s)
3367
+ }, n, a ? i : t, a, null)
3368
+ }
3369
+ })
3370
+ }), x.fn.size = function() {
3371
+ return this.length
3372
+ }, x.fn.andSelf = x.fn.addBack, "object" == typeof module && module && "object" == typeof module.exports ? module.exports = x : (e.jQuery = e.$ = x, "function" == typeof define && define.amd && define("jquery", [], function() {
3373
+ return x
3374
+ }))
3375
+ })(window);
skin/frontend/base/default/js/bannerslider/no-conflict.js ADDED
File without changes
skin/frontend/base/default/js/bannerslider/owl.banner.min.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ !function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this.drag=a.extend({},m),this.state=a.extend({},n),this.e=a.extend({},o),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a[0].toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Pipe,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}function f(a){if(a.touches!==d)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(a.touches===d){if(a.pageX!==d)return{x:a.pageX,y:a.pageY};if(a.pageX===d)return{x:a.clientX,y:a.clientY}}}function g(a){var b,d,e=c.createElement("div"),f=a;for(b in f)if(d=f[b],"undefined"!=typeof e.style[d])return e=null,[d,b];return[!1]}function h(){return g(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function i(){return g(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function j(){return g(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function k(){return"ontouchstart"in b||!!navigator.msMaxTouchPoints}function l(){return b.navigator.msPointerEnabled}var m,n,o;m={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},n={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},o={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},e.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Plugins={},e.Pipe=[{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var a=this._clones,b=this.$stage.children(".cloned");(b.length!==a.length||!this.settings.loop&&a.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var a,b,c=this._clones,d=this._items,e=this.settings.loop?c.length-Math.max(2*this.settings.items,4):0;for(a=0,b=Math.abs(e/2);b>a;a++)e>0?(this.$stage.children().eq(d.length+c.length-1).remove(),c.pop(),this.$stage.children().eq(0).remove(),c.pop()):(c.push(c.length/2),this.$stage.append(d[c[c.length-1]].clone().addClass("cloned")),c.push(d.length-1-(c.length-1)/2),this.$stage.prepend(d[c[c.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var a,b,c,d=this.settings.rtl?1:-1,e=(this.width()/this.settings.items).toFixed(3),f=0;for(this._coordinates=[],b=0,c=this._clones.length+this._items.length;c>b;b++)a=this._mergers[this.relative(b)],a=this.settings.mergeFit&&Math.min(a,this.settings.items)||a,f+=(this.settings.autoWidth?this._items[this.relative(b)].width()+this.settings.margin:e*a)*d,this._coordinates.push(f)}},{filter:["width","items","settings"],run:function(){var b,c,d=(this.width()/this.settings.items).toFixed(3),e={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(e),e={width:this.settings.autoWidth?"auto":d-this.settings.margin},e[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&a.grep(this._mergers,function(a){return a>1}).length>0)for(b=0,c=this._coordinates.length;c>b;b++)e.width=Math.abs(this._coordinates[b])-Math.abs(this._coordinates[b-1]||0)-this.settings.margin,this.$stage.children().eq(b).css(e);else this.$stage.children().css(e)}},{filter:["width","items","settings"],run:function(a){a.current&&this.reset(this.$stage.children().index(a.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;d>c;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],e.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var b,c,e;if(b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&0>=e)return this.preloadAutoWidthImages(b),!1}this.$element.addClass("owl-loading"),this.$stage=a("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){b>=a&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),delete e.responsive,e.responsiveClass&&this.$element.attr("class",function(a,b){return b.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+d)):e=a.extend({},this.options),(null===this.settings||this._breakpoint!==d)&&(this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},e.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};c>b;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={}},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){if(0===this._items.length)return!1;(new Date).getTime();this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=b.orientation,this.watchVisibility(),this.trigger("refreshed")},e.prototype.eventsCall=function(){this.e._onDragStart=a.proxy(function(a){this.onDragStart(a)},this),this.e._onDragMove=a.proxy(function(a){this.onDragMove(a)},this),this.e._onDragEnd=a.proxy(function(a){this.onDragEnd(a)},this),this.e._onResize=a.proxy(function(a){this.onResize(a)},this),this.e._transitionEnd=a.proxy(function(a){this.transitionEnd(a)},this),this.e._preventClick=a.proxy(function(a){this.preventClick(a)},this)},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return this._items.length?this._width===this.$element.width()?!1:this.trigger("resize").isDefaultPrevented()?!1:(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized")):!1},e.prototype.eventsRouter=function(a){var b=a.type;"mousedown"===b||"touchstart"===b?this.onDragStart(a):"mousemove"===b||"touchmove"===b?this.onDragMove(a):"mouseup"===b||"touchend"===b?this.onDragEnd(a):"touchcancel"===b&&this.onDragEnd(a)},e.prototype.internalEvents=function(){var c=(k(),l());this.settings.mouseDrag?(this.$stage.on("mousedown",a.proxy(function(a){this.eventsRouter(a)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!c&&this.$stage.on("touchstart touchcancel",a.proxy(function(a){this.eventsRouter(a)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),this.settings.responsive!==!1&&this.on(b,"resize",a.proxy(this.onThrottledResize,this))},e.prototype.onDragStart=function(d){var e,g,h,i;if(e=d.originalEvent||d||b.event,3===e.which||this.state.isTouch)return!1;if("mousedown"===e.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,g=f(e).x,h=f(e).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)i=this.getTransformProperty(),this.drag.offsetX=i,this.animate(i),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=g-this.drag.offsetX,this.drag.startY=h-this.drag.offsetY,this.drag.start=g-this.drag.startX,this.drag.targetEl=e.target||e.srcElement,this.drag.updatedX=this.drag.start,("IMG"===this.drag.targetEl.tagName||"A"===this.drag.targetEl.tagName)&&(this.drag.targetEl.draggable=!1),a(c).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",a.proxy(function(a){this.eventsRouter(a)},this))},e.prototype.onDragMove=function(a){var c,e,g,h,i,j;this.state.isTouch&&(this.state.isScrolling||(c=a.originalEvent||a||b.event,e=f(c).x,g=f(c).y,this.drag.currentX=e-this.drag.startX,this.drag.currentY=g-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(h=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),i=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),j=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,h+j),i+j)),(this.drag.distance>8||this.drag.distance<-8)&&(c.preventDefault!==d?c.preventDefault():c.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},e.prototype.onDragEnd=function(b){var d,e,f;if(this.state.isTouch){if("mouseup"===b.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&this.state.inMotion!==!0)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime(),d=this.drag.endTime-this.drag.startTime,e=Math.abs(this.drag.distance),(e>3||d>300)&&this.removeClick(this.drag.targetEl),f=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(f),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(f)||this.transitionEnd(),this.drag.distance=0,a(c).off(".owl.dragEvents")}},e.prototype.removeClick=function(c){this.drag.targetEl=c,a(c).on("click.preventClick",this.e._preventClick),b.setTimeout(function(){a(c).off("click.preventClick")},300)},e.prototype.preventClick=function(b){b.preventDefault?b.preventDefault():b.returnValue=!1,b.stopPropagation&&b.stopPropagation(),a(b.target).off("click.preventClick")},e.prototype.getTransformProperty=function(){var a,c;return a=b.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),a=a.replace(/matrix(3d)?\(|\)/g,"").split(","),c=16===a.length,c!==!0?a[4]:a[12]},e.prototype.closest=function(b){var c=-1,d=30,e=this.width(),f=this.coordinates();return this.settings.freeDrag||a.each(f,a.proxy(function(a,g){return b>g-d&&g+d>b?c=a:this.op(b,"<",g)&&this.op(b,">",f[a+1]||g-e)&&(c="left"===this.state.direction?a+1:a),-1===c},this)),this.settings.loop||(this.op(b,">",f[this.minimum()])?c=b=this.minimum():this.op(b,"<",f[this.maximum()])&&(c=b=this.maximum())),c},e.prototype.animate=function(b){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.$stage.css({transform:"translate3d("+b+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:b+"px"}):this.$stage.animate({left:b},this.speed()/1e3,this.settings.fallbackEasing,a.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(a){this._invalidated[a]=!0},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(b,c){var e=c?this._items.length:this._items.length+this._clones.length;return!a.isNumeric(b)||1>e?d:b=this._clones.length?(b%e+e)%e:Math.max(this.minimum(c),Math.min(this.maximum(c),b))},e.prototype.relative=function(a){return a=this.normalize(a),a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=0,f=this.settings;if(a)return this._items.length-1;if(!f.loop&&f.center)b=this._items.length-1;else if(f.loop||f.center)if(f.loop||f.center)b=this._items.length+f.items;else{if(!f.autoWidth&&!f.merge)throw"Can not detect maximum absolute position.";for(revert=f.rtl?1:-1,c=this.$stage.width()-this.$element.width();(d=this.coordinates(e))&&!(d*revert>=c);)b=++e}else b=this._items.length-f.items;return b},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c=null;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[b-1]||0))/2*(this.settings.rtl?-1:1)):c=this._coordinates[b-1]||0,c)},e.prototype.duration=function(a,b,c){return Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(c,d){if(this.settings.loop){var e=c-this.relative(this.current()),f=this.current(),g=this.current(),h=this.current()+e,i=0>g-h?!0:!1,j=this._clones.length+this._items.length;h<this.settings.items&&i===!1?(f=g+this._items.length,this.reset(f)):h>=j-this.settings.items&&i===!0&&(f=g-this._items.length,this.reset(f)),b.clearTimeout(this.e._goToLoop),this.e._goToLoop=b.setTimeout(a.proxy(function(){this.speed(this.duration(this.current(),f+e,d)),this.current(f+e),this.update()},this),30)}else this.speed(this.duration(this.current(),c,d)),this.current(c),this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.transitionEnd=function(a){return a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0))?!1:(this.state.inMotion=!1,void this.trigger("translated"))},e.prototype.viewport=function(){var d;if(this.options.responsiveBaseElement!==b)d=a(this.options.responsiveBaseElement).width();else if(b.innerWidth)d=b.innerWidth;else{if(!c.documentElement||!c.documentElement.clientWidth)throw"Can not detect viewport width.";d=c.documentElement.clientWidth}return d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(a.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(a,b){b=b===d?this._items.length:this.normalize(b,!0),this.trigger("add",{content:a,position:b}),0===this._items.length||b===this._items.length?(this.$stage.append(a),this._items.push(a),this._mergers.push(1*a.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[b].before(a),this._items.splice(b,0,a),this._mergers.splice(b,0,1*a.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:a,position:b})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.addTriggerableEvents=function(){var b=a.proxy(function(b,c){return a.proxy(function(a){a.relatedTarget!==this&&(this.suppress([c]),b.apply(this,[].slice.call(arguments,1)),this.release([c]))},this)},this);a.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},a.proxy(function(a,c){this.$element.on(a+".owl.carousel",b(c,a+".owl.carousel"))},this))},e.prototype.watchVisibility=function(){function c(a){return a.offsetWidth>0&&a.offsetHeight>0}function d(){c(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),b.clearInterval(this.e._checkVisibile))}c(this.$element.get(0))||(this.$element.addClass("owl-hidden"),b.clearInterval(this.e._checkVisibile),this.e._checkVisibile=b.setInterval(a.proxy(d,this),500))},e.prototype.preloadAutoWidthImages=function(b){var c,d,e,f;c=0,d=this,b.each(function(g,h){e=a(h),f=new Image,f.onload=function(){c++,e.attr("src",f.src),e.css("opacity",1),c>=b.length&&(d.state.imagesLoaded=!0,d.initialize())},f.src=e.attr("src")||e.attr("data-src")||e.attr("data-src-retina")})},e.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),this.settings.responsive!==!1&&a(b).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var d in this._plugins)this._plugins[d].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),a(c).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:c>a;case">":return d?c>a:a>c;case">=":return d?c>=a:a>=c;case"<=":return d?a>=c:c>=a}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d){var e={item:{count:this._items.length,index:this.current()}},f=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),g=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},e,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(g)}),this.$element.trigger(g),this.settings&&"function"==typeof this.settings[f]&&this.settings[f].apply(this,g)),g},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.browserSupport=function(){if(this.support3d=j(),this.support3d){this.transformVendor=i();var a=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=a[h()],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=b.orientation},a.fn.owlCarousel=function(b){return this.each(function(){a(this).data("owlCarousel")||a(this).data("owlCarousel",new e(this,b))})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b){var c=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type))for(var c=this._core.settings,d=c.center&&Math.ceil(c.items/2)||c.items,e=c.center&&-1*d||0,f=(b.property&&b.property.value||this._core.current())+e,g=this._core.clones().length,h=a.proxy(function(a,b){this.load(b)},this);e++<d;)this.load(g/2+this._core.relative(f)),g&&a.each(this._core.clones(this._core.relative(f++)),h)},this)},this._core.options=a.extend({},c.Defaults,this._core.options),this._core.$element.on(this._handlers)};c.Defaults={lazyLoad:!1},c.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":"url("+g+")",opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},c.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=c}(window.Zepto||window.jQuery,window,document),function(a){var b=function(c){this._core=c,this._handlers={"initialized.owl.carousel":a.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=a.extend({},b.Defaults,this._core.options),this._core.$element.on(this._handlers)};b.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},b.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},b.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=b}(window.Zepto||window.jQuery,window,document),function(a,b,c){var d=function(b){this._core=b,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":a.proxy(function(a){this._core.settings.video&&!this.isInFullScreen()&&a.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":a.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))},this)},this._core.options=a.extend({},d.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};d.Defaults={video:!1,videoHeight:!1,videoWidth:!1},d.prototype.fetch=function(a,b){var c=a.attr("data-vimeo-id")?"vimeo":"youtube",d=a.attr("data-vimeo-id")||a.attr("data-youtube-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else{if(!(d[3].indexOf("vimeo")>-1))throw new Error("Video URL not supported.");c="vimeo"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},d.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(a){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?'<div class="owl-video-tn '+j+'" '+i+'="'+a+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+a+')"></div>',b.after(d),b.after(e)};return b.wrap('<div class="owl-video-wrapper"'+g+"></div>"),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length?(l(h.attr(i)),h.remove(),!1):void("youtube"===c.type?(f="http://img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type&&a.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}))},d.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},d.prototype.play=function(b){this._core.trigger("play",null,"video"),this._playing&&this.stop();var c,d,e=a(b.target||b.srcElement),f=e.closest("."+this._core.settings.itemClass),g=this._videos[f.attr("data-video")],h=g.width||"100%",i=g.height||this._core.$stage.height();"youtube"===g.type?c='<iframe width="'+h+'" height="'+i+'" src="http://www.youtube.com/embed/'+g.id+"?autoplay=1&v="+g.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===g.type&&(c='<iframe src="http://player.vimeo.com/video/'+g.id+'?autoplay=1" width="'+h+'" height="'+i+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),f.addClass("owl-video-playing"),this._playing=f,d=a('<div style="height:'+i+"px; width:"+h+'px" class="owl-video-frame">'+c+"</div>"),e.after(d)},d.prototype.isInFullScreen=function(){var d=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return d&&a(d).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),d&&this._fullscreen&&this._playing?!1:this._fullscreen?(this._fullscreen=!1,!1):this._playing&&this._core.state.orientation!==b.orientation?(this._core.state.orientation=b.orientation,!1):!0},d.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=d}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){this.swapping="translated"==a.type},this),"translate.owl.carousel":a.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",c)),f&&e.addClass("animated owl-animated-in").addClass(f).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",c))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c){var d=function(b){this.core=b,this.core.options=a.extend({},d.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":a.proxy(function(){this.autoplay()
2
+ },this),"play.owl.autoplay":a.proxy(function(a,b,c){this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};d.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},d.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(b.clearInterval(this.interval),this.interval=b.setInterval(a.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):b.clearInterval(this.interval)},d.prototype.play=function(){return c.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void b.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},d.prototype.stop=function(){b.clearInterval(this.interval)},d.prototype.pause=function(){b.clearInterval(this.interval)},d.prototype.destroy=function(){var a,c;b.clearInterval(this.interval);for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=d}(window.Zepto||window.jQuery,window,document),function(a){"use strict";var b=function(c){this._core=c,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){this._core.settings.dotsData&&this._templates.push(a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":a.proxy(function(b){this._core.settings.dotsData&&this._templates.splice(b.position,0,a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":a.proxy(function(a){this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"change.owl.carousel":a.proxy(function(a){if("position"==a.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var b=this._core.current(),c=this._core.maximum(),d=this._core.minimum();a.data=a.property.value>c?b>=c?d:c:a.property.value<d?c:a.property.value}},this),"changed.owl.carousel":a.proxy(function(a){"position"==a.property.name&&this.draw()},this),"refreshed.owl.carousel":a.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=a.extend({},b.Defaults,this._core.options),this.$element.on(this._handlers)};b.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"},b.prototype.initialize=function(){var b,c,d=this._core.settings;d.dotsData||(this._templates=[a("<div>").addClass(d.dotClass).append(a("<span>")).prop("outerHTML")]),d.navContainer&&d.dotsContainer||(this._controls.$container=a("<div>").addClass(d.controlsClass).appendTo(this.$element)),this._controls.$indicators=d.dotsContainer?a(d.dotsContainer):a("<div>").hide().addClass(d.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",a.proxy(function(b){var c=a(b.target).parent().is(this._controls.$indicators)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(c,d.dotsSpeed)},this)),b=d.navContainer?a(d.navContainer):a("<div>").addClass(d.navContainerClass).prependTo(this._controls.$container),this._controls.$next=a("<"+d.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(d.navClass[0]).html(d.navText[0]).hide().prependTo(b).on("click",a.proxy(function(){this.prev(d.navSpeed)},this)),this._controls.$next.addClass(d.navClass[1]).html(d.navText[1]).hide().appendTo(b).on("click",a.proxy(function(){this.next(d.navSpeed)},this));for(c in this._overrides)this._core[c]=a.proxy(this[c],this)},b.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},b.prototype.update=function(){var a,b,c,d=this._core.settings,e=this._core.clones().length/2,f=e+this._core.items().length,g=d.center||d.autoWidth||d.dotData?1:d.dotsEach||d.items;if("page"!==d.slideBy&&(d.slideBy=Math.min(d.slideBy,d.items)),d.dots||"page"==d.slideBy)for(this._pages=[],a=e,b=0,c=0;f>a;a++)(b>=g||0===b)&&(this._pages.push({start:a-e,end:a-e+g-1}),b=0,++c),b+=this._core.mergers(this._core.relative(a))},b.prototype.draw=function(){var b,c,d="",e=this._core.settings,f=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!e.nav||e.loop||e.navRewind||(this._controls.$previous.toggleClass("disabled",0>=f),this._controls.$next.toggleClass("disabled",f>=this._core.maximum())),this._controls.$previous.toggle(e.nav),this._controls.$next.toggle(e.nav),e.dots){if(b=this._pages.length-this._controls.$indicators.children().length,e.dotData&&0!==b){for(c=0;c<this._controls.$indicators.children().length;c++)d+=this._templates[this._core.relative(c)];this._controls.$indicators.html(d)}else b>0?(d=new Array(b+1).join(this._templates[0]),this._controls.$indicators.append(d)):0>b&&this._controls.$indicators.children().slice(b).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(a.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(e.dots)},b.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotData?1:c.dotsEach||c.items)}},b.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,function(a){return a.start<=b&&a.end>=b}).pop()},b.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},b.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},b.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},b.prototype.to=function(b,c,d){var e;d?a.proxy(this._overrides.to,this._core)(b,c):(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c))},a.fn.owlCarousel.Constructor.Plugins.Navigation=b}(window.Zepto||window.jQuery,window,document),function(a,b){"use strict";var c=function(d){this._core=d,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(){"URLHash"==this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){var c=a(b.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[c]=b.content},this)},this._core.options=a.extend({},c.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(){var a=b.location.hash.substring(1),c=this._core.$stage.children(),d=this._hashes[a]&&c.index(this._hashes[a])||0;return a?void this._core.to(d,!1,!0):!1},this))};c.Defaults={URLhashListener:!1},c.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=c}(window.Zepto||window.jQuery,window,document);
skin/frontend/base/default/js/bannerslider/owl.slider.js ADDED
@@ -0,0 +1,3069 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Owl carousel
3
+ * @version 2.0.0
4
+ * @author Bartosz Wojciechowski
5
+ * @license The MIT License (MIT)
6
+ * @todo Lazy Load Icon
7
+ * @todo prevent animationend bubling
8
+ * @todo itemsScaleUp
9
+ * @todo Test Zepto
10
+ * @todo stagePadding calculate wrong active classes
11
+ */
12
+ ;(function($, window, document, undefined) {
13
+
14
+ var drag, state, e;
15
+
16
+ /**
17
+ * Template for status information about drag and touch events.
18
+ * @private
19
+ */
20
+ drag = {
21
+ start: 0,
22
+ startX: 0,
23
+ startY: 0,
24
+ current: 0,
25
+ currentX: 0,
26
+ currentY: 0,
27
+ offsetX: 0,
28
+ offsetY: 0,
29
+ distance: null,
30
+ startTime: 0,
31
+ endTime: 0,
32
+ updatedX: 0,
33
+ targetEl: null
34
+ };
35
+
36
+ /**
37
+ * Template for some status informations.
38
+ * @private
39
+ */
40
+ state = {
41
+ isTouch: false,
42
+ isScrolling: false,
43
+ isSwiping: false,
44
+ direction: false,
45
+ inMotion: false
46
+ };
47
+
48
+ /**
49
+ * Event functions references.
50
+ * @private
51
+ */
52
+ e = {
53
+ _onDragStart: null,
54
+ _onDragMove: null,
55
+ _onDragEnd: null,
56
+ _transitionEnd: null,
57
+ _resizer: null,
58
+ _responsiveCall: null,
59
+ _goToLoop: null,
60
+ _checkVisibile: null
61
+ };
62
+
63
+ /**
64
+ * Creates a carousel.
65
+ * @class The Owl Carousel.
66
+ * @public
67
+ * @param {HTMLElement|jQuery} element - The element to create the carousel for.
68
+ * @param {Object} [options] - The options
69
+ */
70
+ function Owl(element, options) {
71
+
72
+ /**
73
+ * Current settings for the carousel.
74
+ * @public
75
+ */
76
+ this.settings = null;
77
+
78
+ /**
79
+ * Current options set by the caller including defaults.
80
+ * @public
81
+ */
82
+ this.options = $.extend({}, Owl.Defaults, options);
83
+
84
+ /**
85
+ * Plugin element.
86
+ * @public
87
+ */
88
+ this.$element = $(element);
89
+
90
+ /**
91
+ * Caches informations about drag and touch events.
92
+ */
93
+ this.drag = $.extend({}, drag);
94
+
95
+ /**
96
+ * Caches some status informations.
97
+ * @protected
98
+ */
99
+ this.state = $.extend({}, state);
100
+
101
+ /**
102
+ * @protected
103
+ * @todo Must be documented
104
+ */
105
+ this.e = $.extend({}, e);
106
+
107
+ /**
108
+ * References to the running plugins of this carousel.
109
+ * @protected
110
+ */
111
+ this._plugins = {};
112
+
113
+ /**
114
+ * Currently suppressed events to prevent them from beeing retriggered.
115
+ * @protected
116
+ */
117
+ this._supress = {};
118
+
119
+ /**
120
+ * Absolute current position.
121
+ * @protected
122
+ */
123
+ this._current = null;
124
+
125
+ /**
126
+ * Animation speed in milliseconds.
127
+ * @protected
128
+ */
129
+ this._speed = null;
130
+
131
+ /**
132
+ * Coordinates of all items in pixel.
133
+ * @todo The name of this member is missleading.
134
+ * @protected
135
+ */
136
+ this._coordinates = [];
137
+
138
+ /**
139
+ * Current breakpoint.
140
+ * @todo Real media queries would be nice.
141
+ * @protected
142
+ */
143
+ this._breakpoint = null;
144
+
145
+ /**
146
+ * Current width of the plugin element.
147
+ */
148
+ this._width = null;
149
+
150
+ /**
151
+ * All real items.
152
+ * @protected
153
+ */
154
+ this._items = [];
155
+
156
+ /**
157
+ * All cloned items.
158
+ * @protected
159
+ */
160
+ this._clones = [];
161
+
162
+ /**
163
+ * Merge values of all items.
164
+ * @todo Maybe this could be part of a plugin.
165
+ * @protected
166
+ */
167
+ this._mergers = [];
168
+
169
+ /**
170
+ * Invalidated parts within the update process.
171
+ * @protected
172
+ */
173
+ this._invalidated = {};
174
+
175
+ /**
176
+ * Ordered list of workers for the update process.
177
+ * @protected
178
+ */
179
+ this._pipe = [];
180
+
181
+ $.each(Owl.Plugins, $.proxy(function(key, plugin) {
182
+ this._plugins[key[0].toLowerCase() + key.slice(1)]
183
+ = new plugin(this);
184
+ }, this));
185
+
186
+ $.each(Owl.Pipe, $.proxy(function(priority, worker) {
187
+ this._pipe.push({
188
+ 'filter': worker.filter,
189
+ 'run': $.proxy(worker.run, this)
190
+ });
191
+ }, this));
192
+
193
+ this.setup();
194
+ this.initialize();
195
+ }
196
+
197
+ /**
198
+ * Default options for the carousel.
199
+ * @public
200
+ */
201
+ Owl.Defaults = {
202
+ items: 3,
203
+ loop: false,
204
+ center: false,
205
+
206
+ mouseDrag: true,
207
+ touchDrag: true,
208
+ pullDrag: true,
209
+ freeDrag: false,
210
+
211
+ margin: 0,
212
+ stagePadding: 0,
213
+
214
+ merge: false,
215
+ mergeFit: true,
216
+ autoWidth: false,
217
+
218
+ startPosition: 0,
219
+ rtl: false,
220
+
221
+ smartSpeed: 250,
222
+ fluidSpeed: false,
223
+ dragEndSpeed: false,
224
+
225
+ responsive: {},
226
+ responsiveRefreshRate: 200,
227
+ responsiveBaseElement: window,
228
+ responsiveClass: false,
229
+
230
+ fallbackEasing: 'swing',
231
+
232
+ info: false,
233
+
234
+ nestedItemSelector: false,
235
+ itemElement: 'div',
236
+ stageElement: 'div',
237
+
238
+ // Classes and Names
239
+ themeClass: 'owl-theme',
240
+ baseClass: 'owl-carousel',
241
+ itemClass: 'owl-item',
242
+ centerClass: 'center',
243
+ activeClass: 'active'
244
+ };
245
+
246
+ /**
247
+ * Enumeration for width.
248
+ * @public
249
+ * @readonly
250
+ * @enum {String}
251
+ */
252
+ Owl.Width = {
253
+ Default: 'default',
254
+ Inner: 'inner',
255
+ Outer: 'outer'
256
+ };
257
+
258
+ /**
259
+ * Contains all registered plugins.
260
+ * @public
261
+ */
262
+ Owl.Plugins = {};
263
+
264
+ /**
265
+ * Update pipe.
266
+ */
267
+ Owl.Pipe = [ {
268
+ filter: [ 'width', 'items', 'settings' ],
269
+ run: function(cache) {
270
+ cache.current = this._items && this._items[this.relative(this._current)];
271
+ }
272
+ }, {
273
+ filter: [ 'items', 'settings' ],
274
+ run: function() {
275
+ var cached = this._clones,
276
+ clones = this.$stage.children('.cloned');
277
+
278
+ if (clones.length !== cached.length || (!this.settings.loop && cached.length > 0)) {
279
+ this.$stage.children('.cloned').remove();
280
+ this._clones = [];
281
+ }
282
+ }
283
+ }, {
284
+ filter: [ 'items', 'settings' ],
285
+ run: function() {
286
+ var i, n,
287
+ clones = this._clones,
288
+ items = this._items,
289
+ delta = this.settings.loop ? clones.length - Math.max(this.settings.items * 2, 4) : 0;
290
+
291
+ for (i = 0, n = Math.abs(delta / 2); i < n; i++) {
292
+ if (delta > 0) {
293
+ this.$stage.children().eq(items.length + clones.length - 1).remove();
294
+ clones.pop();
295
+ this.$stage.children().eq(0).remove();
296
+ clones.pop();
297
+ } else {
298
+ clones.push(clones.length / 2);
299
+ this.$stage.append(items[clones[clones.length - 1]].clone().addClass('cloned'));
300
+ clones.push(items.length - 1 - (clones.length - 1) / 2);
301
+ this.$stage.prepend(items[clones[clones.length - 1]].clone().addClass('cloned'));
302
+ }
303
+ }
304
+ }
305
+ }, {
306
+ filter: [ 'width', 'items', 'settings' ],
307
+ run: function() {
308
+ var rtl = (this.settings.rtl ? 1 : -1),
309
+ width = (this.width() / this.settings.items).toFixed(3),
310
+ coordinate = 0, merge, i, n;
311
+
312
+ this._coordinates = [];
313
+ for (i = 0, n = this._clones.length + this._items.length; i < n; i++) {
314
+ merge = this._mergers[this.relative(i)];
315
+ merge = (this.settings.mergeFit && Math.min(merge, this.settings.items)) || merge;
316
+ coordinate += (this.settings.autoWidth ? this._items[this.relative(i)].width() + this.settings.margin : width * merge) * rtl;
317
+
318
+ this._coordinates.push(coordinate);
319
+ }
320
+ }
321
+ }, {
322
+ filter: [ 'width', 'items', 'settings' ],
323
+ run: function() {
324
+ var i, n, width = (this.width() / this.settings.items).toFixed(3), css = {
325
+ 'width': Math.abs(this._coordinates[this._coordinates.length - 1]) + this.settings.stagePadding * 2,
326
+ 'padding-left': this.settings.stagePadding || '',
327
+ 'padding-right': this.settings.stagePadding || ''
328
+ };
329
+
330
+ this.$stage.css(css);
331
+
332
+ css = { 'width': this.settings.autoWidth ? 'auto' : width - this.settings.margin };
333
+ css[this.settings.rtl ? 'margin-left' : 'margin-right'] = this.settings.margin;
334
+
335
+ if (!this.settings.autoWidth && $.grep(this._mergers, function(v) { return v > 1 }).length > 0) {
336
+ for (i = 0, n = this._coordinates.length; i < n; i++) {
337
+ css.width = Math.abs(this._coordinates[i]) - Math.abs(this._coordinates[i - 1] || 0) - this.settings.margin;
338
+ this.$stage.children().eq(i).css(css);
339
+ }
340
+ } else {
341
+ this.$stage.children().css(css);
342
+ }
343
+ }
344
+ }, {
345
+ filter: [ 'width', 'items', 'settings' ],
346
+ run: function(cache) {
347
+ cache.current && this.reset(this.$stage.children().index(cache.current));
348
+ }
349
+ }, {
350
+ filter: [ 'position' ],
351
+ run: function() {
352
+ this.animate(this.coordinates(this._current));
353
+ }
354
+ }, {
355
+ filter: [ 'width', 'position', 'items', 'settings' ],
356
+ run: function() {
357
+ var rtl = this.settings.rtl ? 1 : -1,
358
+ padding = this.settings.stagePadding * 2,
359
+ begin = this.coordinates(this.current()) + padding,
360
+ end = begin + this.width() * rtl,
361
+ inner, outer, matches = [], i, n;
362
+
363
+ for (i = 0, n = this._coordinates.length; i < n; i++) {
364
+ inner = this._coordinates[i - 1] || 0;
365
+ outer = Math.abs(this._coordinates[i]) + padding * rtl;
366
+
367
+ if ((this.op(inner, '<=', begin) && (this.op(inner, '>', end)))
368
+ || (this.op(outer, '<', begin) && this.op(outer, '>', end))) {
369
+ matches.push(i);
370
+ }
371
+ }
372
+
373
+ this.$stage.children('.' + this.settings.activeClass).removeClass(this.settings.activeClass);
374
+ this.$stage.children(':eq(' + matches.join('), :eq(') + ')').addClass(this.settings.activeClass);
375
+
376
+ if (this.settings.center) {
377
+ this.$stage.children('.' + this.settings.centerClass).removeClass(this.settings.centerClass);
378
+ this.$stage.children().eq(this.current()).addClass(this.settings.centerClass);
379
+ }
380
+ }
381
+ } ];
382
+
383
+ /**
384
+ * Initializes the carousel.
385
+ * @protected
386
+ */
387
+ Owl.prototype.initialize = function() {
388
+ this.trigger('initialize');
389
+
390
+ this.$element
391
+ .addClass(this.settings.baseClass)
392
+ .addClass(this.settings.themeClass)
393
+ .toggleClass('owl-rtl', this.settings.rtl);
394
+
395
+ // check support
396
+ this.browserSupport();
397
+
398
+ if (this.settings.autoWidth && this.state.imagesLoaded !== true) {
399
+ var imgs, nestedSelector, width;
400
+ imgs = this.$element.find('img');
401
+ nestedSelector = this.settings.nestedItemSelector ? '.' + this.settings.nestedItemSelector : undefined;
402
+ width = this.$element.children(nestedSelector).width();
403
+
404
+ if (imgs.length && width <= 0) {
405
+ this.preloadAutoWidthImages(imgs);
406
+ return false;
407
+ }
408
+ }
409
+
410
+ this.$element.addClass('owl-loading');
411
+
412
+ // create stage
413
+ this.$stage = $('<' + this.settings.stageElement + ' class="owl-stage"/>')
414
+ .wrap('<div class="owl-stage-outer">');
415
+
416
+ // append stage
417
+ this.$element.append(this.$stage.parent());
418
+
419
+ // append content
420
+ this.replace(this.$element.children().not(this.$stage.parent()));
421
+
422
+ // set view width
423
+ this._width = this.$element.width();
424
+
425
+ // update view
426
+ this.refresh();
427
+
428
+ this.$element.removeClass('owl-loading').addClass('owl-loaded');
429
+
430
+ // attach generic events
431
+ this.eventsCall();
432
+
433
+ // attach generic events
434
+ this.internalEvents();
435
+
436
+ // attach custom control events
437
+ this.addTriggerableEvents();
438
+
439
+ this.trigger('initialized');
440
+ };
441
+
442
+ /**
443
+ * Setups the current settings.
444
+ * @todo Remove responsive classes. Why should adaptive designs be brought into IE8?
445
+ * @todo Support for media queries by using `matchMedia` would be nice.
446
+ * @public
447
+ */
448
+ Owl.prototype.setup = function() {
449
+ var viewport = this.viewport(),
450
+ overwrites = this.options.responsive,
451
+ match = -1,
452
+ settings = null;
453
+
454
+ if (!overwrites) {
455
+ settings = $.extend({}, this.options);
456
+ } else {
457
+ $.each(overwrites, function(breakpoint) {
458
+ if (breakpoint <= viewport && breakpoint > match) {
459
+ match = Number(breakpoint);
460
+ }
461
+ });
462
+
463
+ settings = $.extend({}, this.options, overwrites[match]);
464
+ delete settings.responsive;
465
+
466
+ // responsive class
467
+ if (settings.responsiveClass) {
468
+ this.$element.attr('class', function(i, c) {
469
+ return c.replace(/\b owl-responsive-\S+/g, '');
470
+ }).addClass('owl-responsive-' + match);
471
+ }
472
+ }
473
+
474
+ if (this.settings === null || this._breakpoint !== match) {
475
+ this.trigger('change', { property: { name: 'settings', value: settings } });
476
+ this._breakpoint = match;
477
+ this.settings = settings;
478
+ this.invalidate('settings');
479
+ this.trigger('changed', { property: { name: 'settings', value: this.settings } });
480
+ }
481
+ };
482
+
483
+ /**
484
+ * Updates option logic if necessery.
485
+ * @protected
486
+ */
487
+ Owl.prototype.optionsLogic = function() {
488
+ // Toggle Center class
489
+ this.$element.toggleClass('owl-center', this.settings.center);
490
+
491
+ // if items number is less than in body
492
+ if (this.settings.loop && this._items.length < this.settings.items) {
493
+ this.settings.loop = false;
494
+ }
495
+
496
+ if (this.settings.autoWidth) {
497
+ this.settings.stagePadding = false;
498
+ this.settings.merge = false;
499
+ }
500
+ };
501
+
502
+ /**
503
+ * Prepares an item before add.
504
+ * @todo Rename event parameter `content` to `item`.
505
+ * @protected
506
+ * @returns {jQuery|HTMLElement} - The item container.
507
+ */
508
+ Owl.prototype.prepare = function(item) {
509
+ var event = this.trigger('prepare', { content: item });
510
+
511
+ if (!event.data) {
512
+ event.data = $('<' + this.settings.itemElement + '/>')
513
+ .addClass(this.settings.itemClass).append(item)
514
+ }
515
+
516
+ this.trigger('prepared', { content: event.data });
517
+
518
+ return event.data;
519
+ };
520
+
521
+ /**
522
+ * Updates the view.
523
+ * @public
524
+ */
525
+ Owl.prototype.update = function() {
526
+ var i = 0,
527
+ n = this._pipe.length,
528
+ filter = $.proxy(function(p) { return this[p] }, this._invalidated),
529
+ cache = {};
530
+
531
+ while (i < n) {
532
+ if (this._invalidated.all || $.grep(this._pipe[i].filter, filter).length > 0) {
533
+ this._pipe[i].run(cache);
534
+ }
535
+ i++;
536
+ }
537
+
538
+ this._invalidated = {};
539
+ };
540
+
541
+ /**
542
+ * Gets the width of the view.
543
+ * @public
544
+ * @param {Owl.Width} [dimension=Owl.Width.Default] - The dimension to return.
545
+ * @returns {Number} - The width of the view in pixel.
546
+ */
547
+ Owl.prototype.width = function(dimension) {
548
+ dimension = dimension || Owl.Width.Default;
549
+ switch (dimension) {
550
+ case Owl.Width.Inner:
551
+ case Owl.Width.Outer:
552
+ return this._width;
553
+ default:
554
+ return this._width - this.settings.stagePadding * 2 + this.settings.margin;
555
+ }
556
+ };
557
+
558
+ /**
559
+ * Refreshes the carousel primarily for adaptive purposes.
560
+ * @public
561
+ */
562
+ Owl.prototype.refresh = function() {
563
+ if (this._items.length === 0) {
564
+ return false;
565
+ }
566
+
567
+ var start = new Date().getTime();
568
+
569
+ this.trigger('refresh');
570
+
571
+ this.setup();
572
+
573
+ this.optionsLogic();
574
+
575
+ // hide and show methods helps here to set a proper widths,
576
+ // this prevents scrollbar to be calculated in stage width
577
+ this.$stage.addClass('owl-refresh');
578
+
579
+ this.update();
580
+
581
+ this.$stage.removeClass('owl-refresh');
582
+
583
+ this.state.orientation = window.orientation;
584
+
585
+ this.watchVisibility();
586
+
587
+ this.trigger('refreshed');
588
+ };
589
+
590
+ /**
591
+ * Save internal event references and add event based functions.
592
+ * @protected
593
+ */
594
+ Owl.prototype.eventsCall = function() {
595
+ // Save events references
596
+ this.e._onDragStart = $.proxy(function(e) {
597
+ this.onDragStart(e);
598
+ }, this);
599
+ this.e._onDragMove = $.proxy(function(e) {
600
+ this.onDragMove(e);
601
+ }, this);
602
+ this.e._onDragEnd = $.proxy(function(e) {
603
+ this.onDragEnd(e);
604
+ }, this);
605
+ this.e._onResize = $.proxy(function(e) {
606
+ this.onResize(e);
607
+ }, this);
608
+ this.e._transitionEnd = $.proxy(function(e) {
609
+ this.transitionEnd(e);
610
+ }, this);
611
+ this.e._preventClick = $.proxy(function(e) {
612
+ this.preventClick(e);
613
+ }, this);
614
+ };
615
+
616
+ /**
617
+ * Checks window `resize` event.
618
+ * @protected
619
+ */
620
+ Owl.prototype.onThrottledResize = function() {
621
+ window.clearTimeout(this.resizeTimer);
622
+ this.resizeTimer = window.setTimeout(this.e._onResize, this.settings.responsiveRefreshRate);
623
+ };
624
+
625
+ /**
626
+ * Checks window `resize` event.
627
+ * @protected
628
+ */
629
+ Owl.prototype.onResize = function() {
630
+ if (!this._items.length) {
631
+ return false;
632
+ }
633
+
634
+ if (this._width === this.$element.width()) {
635
+ return false;
636
+ }
637
+
638
+ if (this.trigger('resize').isDefaultPrevented()) {
639
+ return false;
640
+ }
641
+
642
+ this._width = this.$element.width();
643
+
644
+ this.invalidate('width');
645
+
646
+ this.refresh();
647
+
648
+ this.trigger('resized');
649
+ };
650
+
651
+ /**
652
+ * Checks for touch/mouse drag event type and add run event handlers.
653
+ * @protected
654
+ */
655
+ Owl.prototype.eventsRouter = function(event) {
656
+ var type = event.type;
657
+
658
+ if (type === "mousedown" || type === "touchstart") {
659
+ this.onDragStart(event);
660
+ } else if (type === "mousemove" || type === "touchmove") {
661
+ this.onDragMove(event);
662
+ } else if (type === "mouseup" || type === "touchend") {
663
+ this.onDragEnd(event);
664
+ } else if (type === "touchcancel") {
665
+ this.onDragEnd(event);
666
+ }
667
+ };
668
+
669
+ /**
670
+ * Checks for touch/mouse drag options and add necessery event handlers.
671
+ * @protected
672
+ */
673
+ Owl.prototype.internalEvents = function() {
674
+ var isTouch = isTouchSupport(),
675
+ isTouchIE = isTouchSupportIE();
676
+
677
+ if (this.settings.mouseDrag){
678
+ this.$stage.on('mousedown', $.proxy(function(event) { this.eventsRouter(event) }, this));
679
+ this.$stage.on('dragstart', function() { return false });
680
+ this.$stage.get(0).onselectstart = function() { return false };
681
+ } else {
682
+ this.$element.addClass('owl-text-select-on');
683
+ }
684
+
685
+ if (this.settings.touchDrag && !isTouchIE){
686
+ this.$stage.on('touchstart touchcancel', $.proxy(function(event) { this.eventsRouter(event) }, this));
687
+ }
688
+
689
+ // catch transitionEnd event
690
+ if (this.transitionEndVendor) {
691
+ this.on(this.$stage.get(0), this.transitionEndVendor, this.e._transitionEnd, false);
692
+ }
693
+
694
+ // responsive
695
+ if (this.settings.responsive !== false) {
696
+ this.on(window, 'resize', $.proxy(this.onThrottledResize, this));
697
+ }
698
+ };
699
+
700
+ /**
701
+ * Handles touchstart/mousedown event.
702
+ * @protected
703
+ * @param {Event} event - The event arguments.
704
+ */
705
+ Owl.prototype.onDragStart = function(event) {
706
+ var ev, isTouchEvent, pageX, pageY, animatedPos;
707
+
708
+ ev = event.originalEvent || event || window.event;
709
+
710
+ // prevent right click
711
+ if (ev.which === 3 || this.state.isTouch) {
712
+ return false;
713
+ }
714
+
715
+ if (ev.type === 'mousedown') {
716
+ this.$stage.addClass('owl-grab');
717
+ }
718
+
719
+ this.trigger('drag');
720
+ this.drag.startTime = new Date().getTime();
721
+ this.speed(0);
722
+ this.state.isTouch = true;
723
+ this.state.isScrolling = false;
724
+ this.state.isSwiping = false;
725
+ this.drag.distance = 0;
726
+
727
+ pageX = getTouches(ev).x;
728
+ pageY = getTouches(ev).y;
729
+
730
+ // get stage position left
731
+ this.drag.offsetX = this.$stage.position().left;
732
+ this.drag.offsetY = this.$stage.position().top;
733
+
734
+ if (this.settings.rtl) {
735
+ this.drag.offsetX = this.$stage.position().left + this.$stage.width() - this.width()
736
+ + this.settings.margin;
737
+ }
738
+
739
+ // catch position // ie to fix
740
+ if (this.state.inMotion && this.support3d) {
741
+ animatedPos = this.getTransformProperty();
742
+ this.drag.offsetX = animatedPos;
743
+ this.animate(animatedPos);
744
+ this.state.inMotion = true;
745
+ } else if (this.state.inMotion && !this.support3d) {
746
+ this.state.inMotion = false;
747
+ return false;
748
+ }
749
+
750
+ this.drag.startX = pageX - this.drag.offsetX;
751
+ this.drag.startY = pageY - this.drag.offsetY;
752
+
753
+ this.drag.start = pageX - this.drag.startX;
754
+ this.drag.targetEl = ev.target || ev.srcElement;
755
+ this.drag.updatedX = this.drag.start;
756
+
757
+ // to do/check
758
+ // prevent links and images dragging;
759
+ if (this.drag.targetEl.tagName === "IMG" || this.drag.targetEl.tagName === "A") {
760
+ this.drag.targetEl.draggable = false;
761
+ }
762
+
763
+ $(document).on('mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents', $.proxy(function(event) {this.eventsRouter(event)},this));
764
+ };
765
+
766
+ /**
767
+ * Handles the touchmove/mousemove events.
768
+ * @todo Simplify
769
+ * @protected
770
+ * @param {Event} event - The event arguments.
771
+ */
772
+ Owl.prototype.onDragMove = function(event) {
773
+ var ev, isTouchEvent, pageX, pageY, minValue, maxValue, pull;
774
+
775
+ if (!this.state.isTouch) {
776
+ return;
777
+ }
778
+
779
+ if (this.state.isScrolling) {
780
+ return;
781
+ }
782
+
783
+ ev = event.originalEvent || event || window.event;
784
+
785
+ pageX = getTouches(ev).x;
786
+ pageY = getTouches(ev).y;
787
+
788
+ // Drag Direction
789
+ this.drag.currentX = pageX - this.drag.startX;
790
+ this.drag.currentY = pageY - this.drag.startY;
791
+ this.drag.distance = this.drag.currentX - this.drag.offsetX;
792
+
793
+ // Check move direction
794
+ if (this.drag.distance < 0) {
795
+ this.state.direction = this.settings.rtl ? 'right' : 'left';
796
+ } else if (this.drag.distance > 0) {
797
+ this.state.direction = this.settings.rtl ? 'left' : 'right';
798
+ }
799
+ // Loop
800
+ if (this.settings.loop) {
801
+ if (this.op(this.drag.currentX, '>', this.coordinates(this.minimum())) && this.state.direction === 'right') {
802
+ this.drag.currentX -= (this.settings.center && this.coordinates(0)) - this.coordinates(this._items.length);
803
+ } else if (this.op(this.drag.currentX, '<', this.coordinates(this.maximum())) && this.state.direction === 'left') {
804
+ this.drag.currentX += (this.settings.center && this.coordinates(0)) - this.coordinates(this._items.length);
805
+ }
806
+ } else {
807
+ // pull
808
+ minValue = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum());
809
+ maxValue = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum());
810
+ pull = this.settings.pullDrag ? this.drag.distance / 5 : 0;
811
+ this.drag.currentX = Math.max(Math.min(this.drag.currentX, minValue + pull), maxValue + pull);
812
+ }
813
+
814
+ // Lock browser if swiping horizontal
815
+
816
+ if ((this.drag.distance > 8 || this.drag.distance < -8)) {
817
+ if (ev.preventDefault !== undefined) {
818
+ ev.preventDefault();
819
+ } else {
820
+ ev.returnValue = false;
821
+ }
822
+ this.state.isSwiping = true;
823
+ }
824
+
825
+ this.drag.updatedX = this.drag.currentX;
826
+
827
+ // Lock Owl if scrolling
828
+ if ((this.drag.currentY > 16 || this.drag.currentY < -16) && this.state.isSwiping === false) {
829
+ this.state.isScrolling = true;
830
+ this.drag.updatedX = this.drag.start;
831
+ }
832
+
833
+ this.animate(this.drag.updatedX);
834
+ };
835
+
836
+ /**
837
+ * Handles the touchend/mouseup events.
838
+ * @protected
839
+ */
840
+ Owl.prototype.onDragEnd = function(event) {
841
+ var compareTimes, distanceAbs, closest;
842
+
843
+ if (!this.state.isTouch) {
844
+ return;
845
+ }
846
+
847
+ if (event.type === 'mouseup') {
848
+ this.$stage.removeClass('owl-grab');
849
+ }
850
+
851
+ this.trigger('dragged');
852
+
853
+ // prevent links and images dragging;
854
+ this.drag.targetEl.removeAttribute("draggable");
855
+
856
+ // remove drag event listeners
857
+
858
+ this.state.isTouch = false;
859
+ this.state.isScrolling = false;
860
+ this.state.isSwiping = false;
861
+
862
+ // to check
863
+ if (this.drag.distance === 0 && this.state.inMotion !== true) {
864
+ this.state.inMotion = false;
865
+ return false;
866
+ }
867
+
868
+ // prevent clicks while scrolling
869
+
870
+ this.drag.endTime = new Date().getTime();
871
+ compareTimes = this.drag.endTime - this.drag.startTime;
872
+ distanceAbs = Math.abs(this.drag.distance);
873
+
874
+ // to test
875
+ if (distanceAbs > 3 || compareTimes > 300) {
876
+ this.removeClick(this.drag.targetEl);
877
+ }
878
+
879
+ closest = this.closest(this.drag.updatedX);
880
+
881
+ this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed);
882
+ this.current(closest);
883
+ this.invalidate('position');
884
+ this.update();
885
+
886
+ // if pullDrag is off then fire transitionEnd event manually when stick
887
+ // to border
888
+ if (!this.settings.pullDrag && this.drag.updatedX === this.coordinates(closest)) {
889
+ this.transitionEnd();
890
+ }
891
+
892
+ this.drag.distance = 0;
893
+
894
+ $(document).off('.owl.dragEvents');
895
+ };
896
+
897
+ /**
898
+ * Attaches `preventClick` to disable link while swipping.
899
+ * @protected
900
+ * @param {HTMLElement} [target] - The target of the `click` event.
901
+ */
902
+ Owl.prototype.removeClick = function(target) {
903
+ this.drag.targetEl = target;
904
+ $(target).on('click.preventClick', this.e._preventClick);
905
+ // to make sure click is removed:
906
+ window.setTimeout(function() {
907
+ $(target).off('click.preventClick');
908
+ }, 300);
909
+ };
910
+
911
+ /**
912
+ * Suppresses click event.
913
+ * @protected
914
+ * @param {Event} ev - The event arguments.
915
+ */
916
+ Owl.prototype.preventClick = function(ev) {
917
+ if (ev.preventDefault) {
918
+ ev.preventDefault();
919
+ } else {
920
+ ev.returnValue = false;
921
+ }
922
+ if (ev.stopPropagation) {
923
+ ev.stopPropagation();
924
+ }
925
+ $(ev.target).off('click.preventClick');
926
+ };
927
+
928
+ /**
929
+ * Catches stage position while animate (only CSS3).
930
+ * @protected
931
+ * @returns
932
+ */
933
+ Owl.prototype.getTransformProperty = function() {
934
+ var transform, matrix3d;
935
+
936
+ transform = window.getComputedStyle(this.$stage.get(0), null).getPropertyValue(this.vendorName + 'transform');
937
+ // var transform = this.$stage.css(this.vendorName + 'transform')
938
+ transform = transform.replace(/matrix(3d)?\(|\)/g, '').split(',');
939
+ matrix3d = transform.length === 16;
940
+
941
+ return matrix3d !== true ? transform[4] : transform[12];
942
+ };
943
+
944
+ /**
945
+ * Gets absolute position of the closest item for a coordinate.
946
+ * @todo Setting `freeDrag` makes `closest` not reusable. See #165.
947
+ * @protected
948
+ * @param {Number} coordinate - The coordinate in pixel.
949
+ * @return {Number} - The absolute position of the closest item.
950
+ */
951
+ Owl.prototype.closest = function(coordinate) {
952
+ var position = -1, pull = 30, width = this.width(), coordinates = this.coordinates();
953
+
954
+ if (!this.settings.freeDrag) {
955
+ // check closest item
956
+ $.each(coordinates, $.proxy(function(index, value) {
957
+ if (coordinate > value - pull && coordinate < value + pull) {
958
+ position = index;
959
+ } else if (this.op(coordinate, '<', value)
960
+ && this.op(coordinate, '>', coordinates[index + 1] || value - width)) {
961
+ position = this.state.direction === 'left' ? index + 1 : index;
962
+ }
963
+ return position === -1;
964
+ }, this));
965
+ }
966
+
967
+ if (!this.settings.loop) {
968
+ // non loop boundries
969
+ if (this.op(coordinate, '>', coordinates[this.minimum()])) {
970
+ position = coordinate = this.minimum();
971
+ } else if (this.op(coordinate, '<', coordinates[this.maximum()])) {
972
+ position = coordinate = this.maximum();
973
+ }
974
+ }
975
+
976
+ return position;
977
+ };
978
+
979
+ /**
980
+ * Animates the stage.
981
+ * @public
982
+ * @param {Number} coordinate - The coordinate in pixels.
983
+ */
984
+ Owl.prototype.animate = function(coordinate) {
985
+ this.trigger('translate');
986
+ this.state.inMotion = this.speed() > 0;
987
+
988
+ if (this.support3d) {
989
+ this.$stage.css({
990
+ transform: 'translate3d(' + coordinate + 'px' + ',0px, 0px)',
991
+ transition: (this.speed() / 1000) + 's'
992
+ });
993
+ } else if (this.state.isTouch) {
994
+ this.$stage.css({
995
+ left: coordinate + 'px'
996
+ });
997
+ } else {
998
+ this.$stage.animate({
999
+ left: coordinate
1000
+ }, this.speed() / 1000, this.settings.fallbackEasing, $.proxy(function() {
1001
+ if (this.state.inMotion) {
1002
+ this.transitionEnd();
1003
+ }
1004
+ }, this));
1005
+ }
1006
+ };
1007
+
1008
+ /**
1009
+ * Sets the absolute position of the current item.
1010
+ * @public
1011
+ * @param {Number} [position] - The new absolute position or nothing to leave it unchanged.
1012
+ * @returns {Number} - The absolute position of the current item.
1013
+ */
1014
+ Owl.prototype.current = function(position) {
1015
+ if (position === undefined) {
1016
+ return this._current;
1017
+ }
1018
+
1019
+ if (this._items.length === 0) {
1020
+ return undefined;
1021
+ }
1022
+
1023
+ position = this.normalize(position);
1024
+
1025
+ if (this._current !== position) {
1026
+ var event = this.trigger('change', { property: { name: 'position', value: position } });
1027
+
1028
+ if (event.data !== undefined) {
1029
+ position = this.normalize(event.data);
1030
+ }
1031
+
1032
+ this._current = position;
1033
+
1034
+ this.invalidate('position');
1035
+
1036
+ this.trigger('changed', { property: { name: 'position', value: this._current } });
1037
+ }
1038
+
1039
+ return this._current;
1040
+ };
1041
+
1042
+ /**
1043
+ * Invalidates the given part of the update routine.
1044
+ * @param {String} part - The part to invalidate.
1045
+ */
1046
+ Owl.prototype.invalidate = function(part) {
1047
+ this._invalidated[part] = true;
1048
+ }
1049
+
1050
+ /**
1051
+ * Resets the absolute position of the current item.
1052
+ * @public
1053
+ * @param {Number} position - The absolute position of the new item.
1054
+ */
1055
+ Owl.prototype.reset = function(position) {
1056
+ position = this.normalize(position);
1057
+
1058
+ if (position === undefined) {
1059
+ return;
1060
+ }
1061
+
1062
+ this._speed = 0;
1063
+ this._current = position;
1064
+
1065
+ this.suppress([ 'translate', 'translated' ]);
1066
+
1067
+ this.animate(this.coordinates(position));
1068
+
1069
+ this.release([ 'translate', 'translated' ]);
1070
+ };
1071
+
1072
+ /**
1073
+ * Normalizes an absolute or a relative position for an item.
1074
+ * @public
1075
+ * @param {Number} position - The absolute or relative position to normalize.
1076
+ * @param {Boolean} [relative=false] - Whether the given position is relative or not.
1077
+ * @returns {Number} - The normalized position.
1078
+ */
1079
+ Owl.prototype.normalize = function(position, relative) {
1080
+ var n = (relative ? this._items.length : this._items.length + this._clones.length);
1081
+
1082
+ if (!$.isNumeric(position) || n < 1) {
1083
+ return undefined;
1084
+ }
1085
+
1086
+ if (this._clones.length) {
1087
+ position = ((position % n) + n) % n;
1088
+ } else {
1089
+ position = Math.max(this.minimum(relative), Math.min(this.maximum(relative), position));
1090
+ }
1091
+
1092
+ return position;
1093
+ };
1094
+
1095
+ /**
1096
+ * Converts an absolute position for an item into a relative position.
1097
+ * @public
1098
+ * @param {Number} position - The absolute position to convert.
1099
+ * @returns {Number} - The converted position.
1100
+ */
1101
+ Owl.prototype.relative = function(position) {
1102
+ position = this.normalize(position);
1103
+ position = position - this._clones.length / 2;
1104
+ return this.normalize(position, true);
1105
+ };
1106
+
1107
+ /**
1108
+ * Gets the maximum position for an item.
1109
+ * @public
1110
+ * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position.
1111
+ * @returns {Number}
1112
+ */
1113
+ Owl.prototype.maximum = function(relative) {
1114
+ var maximum, width, i = 0, coordinate,
1115
+ settings = this.settings;
1116
+
1117
+ if (relative) {
1118
+ return this._items.length - 1;
1119
+ }
1120
+
1121
+ if (!settings.loop && settings.center) {
1122
+ maximum = this._items.length - 1;
1123
+ } else if (!settings.loop && !settings.center) {
1124
+ maximum = this._items.length - settings.items;
1125
+ } else if (settings.loop || settings.center) {
1126
+ maximum = this._items.length + settings.items;
1127
+ } else if (settings.autoWidth || settings.merge) {
1128
+ revert = settings.rtl ? 1 : -1;
1129
+ width = this.$stage.width() - this.$element.width();
1130
+ while (coordinate = this.coordinates(i)) {
1131
+ if (coordinate * revert >= width) {
1132
+ break;
1133
+ }
1134
+ maximum = ++i;
1135
+ }
1136
+ } else {
1137
+ throw 'Can not detect maximum absolute position.'
1138
+ }
1139
+
1140
+ return maximum;
1141
+ };
1142
+
1143
+ /**
1144
+ * Gets the minimum position for an item.
1145
+ * @public
1146
+ * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position.
1147
+ * @returns {Number}
1148
+ */
1149
+ Owl.prototype.minimum = function(relative) {
1150
+ if (relative) {
1151
+ return 0;
1152
+ }
1153
+
1154
+ return this._clones.length / 2;
1155
+ };
1156
+
1157
+ /**
1158
+ * Gets an item at the specified relative position.
1159
+ * @public
1160
+ * @param {Number} [position] - The relative position of the item.
1161
+ * @return {jQuery|Array.<jQuery>} - The item at the given position or all items if no position was given.
1162
+ */
1163
+ Owl.prototype.items = function(position) {
1164
+ if (position === undefined) {
1165
+ return this._items.slice();
1166
+ }
1167
+
1168
+ position = this.normalize(position, true);
1169
+ return this._items[position];
1170
+ };
1171
+
1172
+ /**
1173
+ * Gets an item at the specified relative position.
1174
+ * @public
1175
+ * @param {Number} [position] - The relative position of the item.
1176
+ * @return {jQuery|Array.<jQuery>} - The item at the given position or all items if no position was given.
1177
+ */
1178
+ Owl.prototype.mergers = function(position) {
1179
+ if (position === undefined) {
1180
+ return this._mergers.slice();
1181
+ }
1182
+
1183
+ position = this.normalize(position, true);
1184
+ return this._mergers[position];
1185
+ };
1186
+
1187
+ /**
1188
+ * Gets the absolute positions of clones for an item.
1189
+ * @public
1190
+ * @param {Number} [position] - The relative position of the item.
1191
+ * @returns {Array.<Number>} - The absolute positions of clones for the item or all if no position was given.
1192
+ */
1193
+ Owl.prototype.clones = function(position) {
1194
+ var odd = this._clones.length / 2,
1195
+ even = odd + this._items.length,
1196
+ map = function(index) { return index % 2 === 0 ? even + index / 2 : odd - (index + 1) / 2 };
1197
+
1198
+ if (position === undefined) {
1199
+ return $.map(this._clones, function(v, i) { return map(i) });
1200
+ }
1201
+
1202
+ return $.map(this._clones, function(v, i) { return v === position ? map(i) : null });
1203
+ };
1204
+
1205
+ /**
1206
+ * Sets the current animation speed.
1207
+ * @public
1208
+ * @param {Number} [speed] - The animation speed in milliseconds or nothing to leave it unchanged.
1209
+ * @returns {Number} - The current animation speed in milliseconds.
1210
+ */
1211
+ Owl.prototype.speed = function(speed) {
1212
+ if (speed !== undefined) {
1213
+ this._speed = speed;
1214
+ }
1215
+
1216
+ return this._speed;
1217
+ };
1218
+
1219
+ /**
1220
+ * Gets the coordinate of an item.
1221
+ * @todo The name of this method is missleanding.
1222
+ * @public
1223
+ * @param {Number} position - The absolute position of the item within `minimum()` and `maximum()`.
1224
+ * @returns {Number|Array.<Number>} - The coordinate of the item in pixel or all coordinates.
1225
+ */
1226
+ Owl.prototype.coordinates = function(position) {
1227
+ var coordinate = null;
1228
+
1229
+ if (position === undefined) {
1230
+ return $.map(this._coordinates, $.proxy(function(coordinate, index) {
1231
+ return this.coordinates(index);
1232
+ }, this));
1233
+ }
1234
+
1235
+ if (this.settings.center) {
1236
+ coordinate = this._coordinates[position];
1237
+ coordinate += (this.width() - coordinate + (this._coordinates[position - 1] || 0)) / 2 * (this.settings.rtl ? -1 : 1);
1238
+ } else {
1239
+ coordinate = this._coordinates[position - 1] || 0;
1240
+ }
1241
+
1242
+ return coordinate;
1243
+ };
1244
+
1245
+ /**
1246
+ * Calculates the speed for a translation.
1247
+ * @protected
1248
+ * @param {Number} from - The absolute position of the start item.
1249
+ * @param {Number} to - The absolute position of the target item.
1250
+ * @param {Number} [factor=undefined] - The time factor in milliseconds.
1251
+ * @returns {Number} - The time in milliseconds for the translation.
1252
+ */
1253
+ Owl.prototype.duration = function(from, to, factor) {
1254
+ return Math.min(Math.max(Math.abs(to - from), 1), 6) * Math.abs((factor || this.settings.smartSpeed));
1255
+ };
1256
+
1257
+ /**
1258
+ * Slides to the specified item.
1259
+ * @public
1260
+ * @param {Number} position - The position of the item.
1261
+ * @param {Number} [speed] - The time in milliseconds for the transition.
1262
+ */
1263
+ Owl.prototype.to = function(position, speed) {
1264
+ if (this.settings.loop) {
1265
+ var distance = position - this.relative(this.current()),
1266
+ revert = this.current(),
1267
+ before = this.current(),
1268
+ after = this.current() + distance,
1269
+ direction = before - after < 0 ? true : false,
1270
+ items = this._clones.length + this._items.length;
1271
+
1272
+ if (after < this.settings.items && direction === false) {
1273
+ revert = before + this._items.length;
1274
+ this.reset(revert);
1275
+ } else if (after >= items - this.settings.items && direction === true) {
1276
+ revert = before - this._items.length;
1277
+ this.reset(revert);
1278
+ }
1279
+ window.clearTimeout(this.e._goToLoop);
1280
+ this.e._goToLoop = window.setTimeout($.proxy(function() {
1281
+ this.speed(this.duration(this.current(), revert + distance, speed));
1282
+ this.current(revert + distance);
1283
+ this.update();
1284
+ }, this), 30);
1285
+ } else {
1286
+ this.speed(this.duration(this.current(), position, speed));
1287
+ this.current(position);
1288
+ this.update();
1289
+ }
1290
+ };
1291
+
1292
+ /**
1293
+ * Slides to the next item.
1294
+ * @public
1295
+ * @param {Number} [speed] - The time in milliseconds for the transition.
1296
+ */
1297
+ Owl.prototype.next = function(speed) {
1298
+ speed = speed || false;
1299
+ this.to(this.relative(this.current()) + 1, speed);
1300
+ };
1301
+
1302
+ /**
1303
+ * Slides to the previous item.
1304
+ * @public
1305
+ * @param {Number} [speed] - The time in milliseconds for the transition.
1306
+ */
1307
+ Owl.prototype.prev = function(speed) {
1308
+ speed = speed || false;
1309
+ this.to(this.relative(this.current()) - 1, speed);
1310
+ };
1311
+
1312
+ /**
1313
+ * Handles the end of an animation.
1314
+ * @protected
1315
+ * @param {Event} event - The event arguments.
1316
+ */
1317
+ Owl.prototype.transitionEnd = function(event) {
1318
+
1319
+ // if css2 animation then event object is undefined
1320
+ if (event !== undefined) {
1321
+ event.stopPropagation();
1322
+
1323
+ // Catch only owl-stage transitionEnd event
1324
+ if ((event.target || event.srcElement || event.originalTarget) !== this.$stage.get(0)) {
1325
+ return false;
1326
+ }
1327
+ }
1328
+
1329
+ this.state.inMotion = false;
1330
+ this.trigger('translated');
1331
+ };
1332
+
1333
+ /**
1334
+ * Gets viewport width.
1335
+ * @protected
1336
+ * @return {Number} - The width in pixel.
1337
+ */
1338
+ Owl.prototype.viewport = function() {
1339
+ var width;
1340
+ if (this.options.responsiveBaseElement !== window) {
1341
+ width = $(this.options.responsiveBaseElement).width();
1342
+ } else if (window.innerWidth) {
1343
+ width = window.innerWidth;
1344
+ } else if (document.documentElement && document.documentElement.clientWidth) {
1345
+ width = document.documentElement.clientWidth;
1346
+ } else {
1347
+ throw 'Can not detect viewport width.';
1348
+ }
1349
+ return width;
1350
+ };
1351
+
1352
+ /**
1353
+ * Replaces the current content.
1354
+ * @public
1355
+ * @param {HTMLElement|jQuery|String} content - The new content.
1356
+ */
1357
+ Owl.prototype.replace = function(content) {
1358
+ this.$stage.empty();
1359
+ this._items = [];
1360
+
1361
+ if (content) {
1362
+ content = (content instanceof jQuery) ? content : $(content);
1363
+ }
1364
+
1365
+ if (this.settings.nestedItemSelector) {
1366
+ content = content.find('.' + this.settings.nestedItemSelector);
1367
+ }
1368
+
1369
+ content.filter(function() {
1370
+ return this.nodeType === 1;
1371
+ }).each($.proxy(function(index, item) {
1372
+ item = this.prepare(item);
1373
+ this.$stage.append(item);
1374
+ this._items.push(item);
1375
+ this._mergers.push(item.find('[data-merge]').andSelf('[data-merge]').attr('data-merge') * 1 || 1);
1376
+ }, this));
1377
+
1378
+ this.reset($.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0);
1379
+
1380
+ this.invalidate('items');
1381
+ };
1382
+
1383
+ /**
1384
+ * Adds an item.
1385
+ * @todo Use `item` instead of `content` for the event arguments.
1386
+ * @public
1387
+ * @param {HTMLElement|jQuery|String} content - The item content to add.
1388
+ * @param {Number} [position] - The relative position at which to insert the item otherwise the item will be added to the end.
1389
+ */
1390
+ Owl.prototype.add = function(content, position) {
1391
+ position = position === undefined ? this._items.length : this.normalize(position, true);
1392
+
1393
+ this.trigger('add', { content: content, position: position });
1394
+
1395
+ if (this._items.length === 0 || position === this._items.length) {
1396
+ this.$stage.append(content);
1397
+ this._items.push(content);
1398
+ this._mergers.push(content.find('[data-merge]').andSelf('[data-merge]').attr('data-merge') * 1 || 1);
1399
+ } else {
1400
+ this._items[position].before(content);
1401
+ this._items.splice(position, 0, content);
1402
+ this._mergers.splice(position, 0, content.find('[data-merge]').andSelf('[data-merge]').attr('data-merge') * 1 || 1);
1403
+ }
1404
+
1405
+ this.invalidate('items');
1406
+
1407
+ this.trigger('added', { content: content, position: position });
1408
+ };
1409
+
1410
+ /**
1411
+ * Removes an item by its position.
1412
+ * @todo Use `item` instead of `content` for the event arguments.
1413
+ * @public
1414
+ * @param {Number} position - The relative position of the item to remove.
1415
+ */
1416
+ Owl.prototype.remove = function(position) {
1417
+ position = this.normalize(position, true);
1418
+
1419
+ if (position === undefined) {
1420
+ return;
1421
+ }
1422
+
1423
+ this.trigger('remove', { content: this._items[position], position: position });
1424
+
1425
+ this._items[position].remove();
1426
+ this._items.splice(position, 1);
1427
+ this._mergers.splice(position, 1);
1428
+
1429
+ this.invalidate('items');
1430
+
1431
+ this.trigger('removed', { content: null, position: position });
1432
+ };
1433
+
1434
+ /**
1435
+ * Adds triggerable events.
1436
+ * @protected
1437
+ */
1438
+ Owl.prototype.addTriggerableEvents = function() {
1439
+ var handler = $.proxy(function(callback, event) {
1440
+ return $.proxy(function(e) {
1441
+ if (e.relatedTarget !== this) {
1442
+ this.suppress([ event ]);
1443
+ callback.apply(this, [].slice.call(arguments, 1));
1444
+ this.release([ event ]);
1445
+ }
1446
+ }, this);
1447
+ }, this);
1448
+
1449
+ $.each({
1450
+ 'next': this.next,
1451
+ 'prev': this.prev,
1452
+ 'to': this.to,
1453
+ 'destroy': this.destroy,
1454
+ 'refresh': this.refresh,
1455
+ 'replace': this.replace,
1456
+ 'add': this.add,
1457
+ 'remove': this.remove
1458
+ }, $.proxy(function(event, callback) {
1459
+ this.$element.on(event + '.owl.carousel', handler(callback, event + '.owl.carousel'));
1460
+ }, this));
1461
+
1462
+ };
1463
+
1464
+ /**
1465
+ * Watches the visibility of the carousel element.
1466
+ * @protected
1467
+ */
1468
+ Owl.prototype.watchVisibility = function() {
1469
+
1470
+ // test on zepto
1471
+ if (!isElVisible(this.$element.get(0))) {
1472
+ this.$element.addClass('owl-hidden');
1473
+ window.clearInterval(this.e._checkVisibile);
1474
+ this.e._checkVisibile = window.setInterval($.proxy(checkVisible, this), 500);
1475
+ }
1476
+
1477
+ function isElVisible(el) {
1478
+ return el.offsetWidth > 0 && el.offsetHeight > 0;
1479
+ }
1480
+
1481
+ function checkVisible() {
1482
+ if (isElVisible(this.$element.get(0))) {
1483
+ this.$element.removeClass('owl-hidden');
1484
+ this.refresh();
1485
+ window.clearInterval(this.e._checkVisibile);
1486
+ }
1487
+ }
1488
+ };
1489
+
1490
+ /**
1491
+ * Preloads images with auto width.
1492
+ * @protected
1493
+ * @todo Still to test
1494
+ */
1495
+ Owl.prototype.preloadAutoWidthImages = function(imgs) {
1496
+ var loaded, that, $el, img;
1497
+
1498
+ loaded = 0;
1499
+ that = this;
1500
+ imgs.each(function(i, el) {
1501
+ $el = $(el);
1502
+ img = new Image();
1503
+
1504
+ img.onload = function() {
1505
+ loaded++;
1506
+ $el.attr('src', img.src);
1507
+ $el.css('opacity', 1);
1508
+ if (loaded >= imgs.length) {
1509
+ that.state.imagesLoaded = true;
1510
+ that.initialize();
1511
+ }
1512
+ };
1513
+
1514
+ img.src = $el.attr('src') || $el.attr('data-src') || $el.attr('data-src-retina');
1515
+ });
1516
+ };
1517
+
1518
+ /**
1519
+ * Destroys the carousel.
1520
+ * @public
1521
+ */
1522
+ Owl.prototype.destroy = function() {
1523
+
1524
+ if (this.$element.hasClass(this.settings.themeClass)) {
1525
+ this.$element.removeClass(this.settings.themeClass);
1526
+ }
1527
+
1528
+ if (this.settings.responsive !== false) {
1529
+ $(window).off('resize.owl.carousel');
1530
+ }
1531
+
1532
+ if (this.transitionEndVendor) {
1533
+ this.off(this.$stage.get(0), this.transitionEndVendor, this.e._transitionEnd);
1534
+ }
1535
+
1536
+ for ( var i in this._plugins) {
1537
+ this._plugins[i].destroy();
1538
+ }
1539
+
1540
+ if (this.settings.mouseDrag || this.settings.touchDrag) {
1541
+ this.$stage.off('mousedown touchstart touchcancel');
1542
+ $(document).off('.owl.dragEvents');
1543
+ this.$stage.get(0).onselectstart = function() {};
1544
+ this.$stage.off('dragstart', function() { return false });
1545
+ }
1546
+
1547
+ // remove event handlers in the ".owl.carousel" namespace
1548
+ this.$element.off('.owl');
1549
+
1550
+ this.$stage.children('.cloned').remove();
1551
+ this.e = null;
1552
+ this.$element.removeData('owlCarousel');
1553
+
1554
+ this.$stage.children().contents().unwrap();
1555
+ this.$stage.children().unwrap();
1556
+ this.$stage.unwrap();
1557
+ };
1558
+
1559
+ /**
1560
+ * Operators to calculate right-to-left and left-to-right.
1561
+ * @protected
1562
+ * @param {Number} [a] - The left side operand.
1563
+ * @param {String} [o] - The operator.
1564
+ * @param {Number} [b] - The right side operand.
1565
+ */
1566
+ Owl.prototype.op = function(a, o, b) {
1567
+ var rtl = this.settings.rtl;
1568
+ switch (o) {
1569
+ case '<':
1570
+ return rtl ? a > b : a < b;
1571
+ case '>':
1572
+ return rtl ? a < b : a > b;
1573
+ case '>=':
1574
+ return rtl ? a <= b : a >= b;
1575
+ case '<=':
1576
+ return rtl ? a >= b : a <= b;
1577
+ default:
1578
+ break;
1579
+ }
1580
+ };
1581
+
1582
+ /**
1583
+ * Attaches to an internal event.
1584
+ * @protected
1585
+ * @param {HTMLElement} element - The event source.
1586
+ * @param {String} event - The event name.
1587
+ * @param {Function} listener - The event handler to attach.
1588
+ * @param {Boolean} capture - Wether the event should be handled at the capturing phase or not.
1589
+ */
1590
+ Owl.prototype.on = function(element, event, listener, capture) {
1591
+ if (element.addEventListener) {
1592
+ element.addEventListener(event, listener, capture);
1593
+ } else if (element.attachEvent) {
1594
+ element.attachEvent('on' + event, listener);
1595
+ }
1596
+ };
1597
+
1598
+ /**
1599
+ * Detaches from an internal event.
1600
+ * @protected
1601
+ * @param {HTMLElement} element - The event source.
1602
+ * @param {String} event - The event name.
1603
+ * @param {Function} listener - The attached event handler to detach.
1604
+ * @param {Boolean} capture - Wether the attached event handler was registered as a capturing listener or not.
1605
+ */
1606
+ Owl.prototype.off = function(element, event, listener, capture) {
1607
+ if (element.removeEventListener) {
1608
+ element.removeEventListener(event, listener, capture);
1609
+ } else if (element.detachEvent) {
1610
+ element.detachEvent('on' + event, listener);
1611
+ }
1612
+ };
1613
+
1614
+ /**
1615
+ * Triggers an public event.
1616
+ * @protected
1617
+ * @param {String} name - The event name.
1618
+ * @param {*} [data=null] - The event data.
1619
+ * @param {String} [namespace=.owl.carousel] - The event namespace.
1620
+ * @returns {Event} - The event arguments.
1621
+ */
1622
+ Owl.prototype.trigger = function(name, data, namespace) {
1623
+ var status = {
1624
+ item: { count: this._items.length, index: this.current() }
1625
+ }, handler = $.camelCase(
1626
+ $.grep([ 'on', name, namespace ], function(v) { return v })
1627
+ .join('-').toLowerCase()
1628
+ ), event = $.Event(
1629
+ [ name, 'owl', namespace || 'carousel' ].join('.').toLowerCase(),
1630
+ $.extend({ relatedTarget: this }, status, data)
1631
+ );
1632
+
1633
+ if (!this._supress[name]) {
1634
+ $.each(this._plugins, function(name, plugin) {
1635
+ if (plugin.onTrigger) {
1636
+ plugin.onTrigger(event);
1637
+ }
1638
+ });
1639
+
1640
+ this.$element.trigger(event);
1641
+
1642
+ if (this.settings && typeof this.settings[handler] === 'function') {
1643
+ this.settings[handler].apply(this, event);
1644
+ }
1645
+ }
1646
+
1647
+ return event;
1648
+ };
1649
+
1650
+ /**
1651
+ * Suppresses events.
1652
+ * @protected
1653
+ * @param {Array.<String>} events - The events to suppress.
1654
+ */
1655
+ Owl.prototype.suppress = function(events) {
1656
+ $.each(events, $.proxy(function(index, event) {
1657
+ this._supress[event] = true;
1658
+ }, this));
1659
+ }
1660
+
1661
+ /**
1662
+ * Releases suppressed events.
1663
+ * @protected
1664
+ * @param {Array.<String>} events - The events to release.
1665
+ */
1666
+ Owl.prototype.release = function(events) {
1667
+ $.each(events, $.proxy(function(index, event) {
1668
+ delete this._supress[event];
1669
+ }, this));
1670
+ }
1671
+
1672
+ /**
1673
+ * Checks the availability of some browser features.
1674
+ * @protected
1675
+ */
1676
+ Owl.prototype.browserSupport = function() {
1677
+ this.support3d = isPerspective();
1678
+
1679
+ if (this.support3d) {
1680
+ this.transformVendor = isTransform();
1681
+
1682
+ // take transitionend event name by detecting transition
1683
+ var endVendors = [ 'transitionend', 'webkitTransitionEnd', 'transitionend', 'oTransitionEnd' ];
1684
+ this.transitionEndVendor = endVendors[isTransition()];
1685
+
1686
+ // take vendor name from transform name
1687
+ this.vendorName = this.transformVendor.replace(/Transform/i, '');
1688
+ this.vendorName = this.vendorName !== '' ? '-' + this.vendorName.toLowerCase() + '-' : '';
1689
+ }
1690
+
1691
+ this.state.orientation = window.orientation;
1692
+ };
1693
+
1694
+ /**
1695
+ * Get touch/drag coordinats.
1696
+ * @private
1697
+ * @param {event} - mousedown/touchstart event
1698
+ * @returns {object} - Contains X and Y of current mouse/touch position
1699
+ */
1700
+
1701
+ function getTouches(event) {
1702
+ if (event.touches !== undefined) {
1703
+ return {
1704
+ x: event.touches[0].pageX,
1705
+ y: event.touches[0].pageY
1706
+ };
1707
+ }
1708
+
1709
+ if (event.touches === undefined) {
1710
+ if (event.pageX !== undefined) {
1711
+ return {
1712
+ x: event.pageX,
1713
+ y: event.pageY
1714
+ };
1715
+ }
1716
+
1717
+ if (event.pageX === undefined) {
1718
+ return {
1719
+ x: event.clientX,
1720
+ y: event.clientY
1721
+ };
1722
+ }
1723
+ }
1724
+ }
1725
+
1726
+ /**
1727
+ * Checks for CSS support.
1728
+ * @private
1729
+ * @param {Array} array - The CSS properties to check for.
1730
+ * @returns {Array} - Contains the supported CSS property name and its index or `false`.
1731
+ */
1732
+ function isStyleSupported(array) {
1733
+ var p, s, fake = document.createElement('div'), list = array;
1734
+ for (p in list) {
1735
+ s = list[p];
1736
+ if (typeof fake.style[s] !== 'undefined') {
1737
+ fake = null;
1738
+ return [ s, p ];
1739
+ }
1740
+ }
1741
+ return [ false ];
1742
+ }
1743
+
1744
+ /**
1745
+ * Checks for CSS transition support.
1746
+ * @private
1747
+ * @todo Realy bad design
1748
+ * @returns {Number}
1749
+ */
1750
+ function isTransition() {
1751
+ return isStyleSupported([ 'transition', 'WebkitTransition', 'MozTransition', 'OTransition' ])[1];
1752
+ }
1753
+
1754
+ /**
1755
+ * Checks for CSS transform support.
1756
+ * @private
1757
+ * @returns {String} The supported property name or false.
1758
+ */
1759
+ function isTransform() {
1760
+ return isStyleSupported([ 'transform', 'WebkitTransform', 'MozTransform', 'OTransform', 'msTransform' ])[0];
1761
+ }
1762
+
1763
+ /**
1764
+ * Checks for CSS perspective support.
1765
+ * @private
1766
+ * @returns {String} The supported property name or false.
1767
+ */
1768
+ function isPerspective() {
1769
+ return isStyleSupported([ 'perspective', 'webkitPerspective', 'MozPerspective', 'OPerspective', 'MsPerspective' ])[0];
1770
+ }
1771
+
1772
+ /**
1773
+ * Checks wether touch is supported or not.
1774
+ * @private
1775
+ * @returns {Boolean}
1776
+ */
1777
+ function isTouchSupport() {
1778
+ return 'ontouchstart' in window || !!(navigator.msMaxTouchPoints);
1779
+ }
1780
+
1781
+ /**
1782
+ * Checks wether touch is supported or not for IE.
1783
+ * @private
1784
+ * @returns {Boolean}
1785
+ */
1786
+ function isTouchSupportIE() {
1787
+ return window.navigator.msPointerEnabled;
1788
+ }
1789
+
1790
+ /**
1791
+ * The jQuery Plugin for the Owl Carousel
1792
+ * @public
1793
+ */
1794
+ $.fn.owlSlider = function(options) {
1795
+ return this.each(function() {
1796
+ if (!$(this).data('owlCarousel')) {
1797
+ $(this).data('owlCarousel', new Owl(this, options));
1798
+ }
1799
+ });
1800
+ };
1801
+
1802
+ /**
1803
+ * The constructor for the jQuery Plugin
1804
+ * @public
1805
+ */
1806
+ $.fn.owlSlider.Constructor = Owl;
1807
+
1808
+ })(window.Zepto || window.jQuery, window, document);
1809
+
1810
+ /**
1811
+ * Lazy Plugin
1812
+ * @version 2.0.0
1813
+ * @author Bartosz Wojciechowski
1814
+ * @license The MIT License (MIT)
1815
+ */
1816
+ ;(function($, window, document, undefined) {
1817
+
1818
+ /**
1819
+ * Creates the lazy plugin.
1820
+ * @class The Lazy Plugin
1821
+ * @param {Owl} carousel - The Owl Carousel
1822
+ */
1823
+ var Lazy = function(carousel) {
1824
+
1825
+ /**
1826
+ * Reference to the core.
1827
+ * @protected
1828
+ * @type {Owl}
1829
+ */
1830
+ this._core = carousel;
1831
+
1832
+ /**
1833
+ * Already loaded items.
1834
+ * @protected
1835
+ * @type {Array.<jQuery>}
1836
+ */
1837
+ this._loaded = [];
1838
+
1839
+ /**
1840
+ * Event handlers.
1841
+ * @protected
1842
+ * @type {Object}
1843
+ */
1844
+ this._handlers = {
1845
+ 'initialized.owl.carousel change.owl.carousel': $.proxy(function(e) {
1846
+ if (!e.namespace) {
1847
+ return;
1848
+ }
1849
+
1850
+ if (!this._core.settings || !this._core.settings.lazyLoad) {
1851
+ return;
1852
+ }
1853
+
1854
+ if ((e.property && e.property.name == 'position') || e.type == 'initialized') {
1855
+ var settings = this._core.settings,
1856
+ n = (settings.center && Math.ceil(settings.items / 2) || settings.items),
1857
+ i = ((settings.center && n * -1) || 0),
1858
+ position = ((e.property && e.property.value) || this._core.current()) + i,
1859
+ clones = this._core.clones().length,
1860
+ load = $.proxy(function(i, v) { this.load(v) }, this);
1861
+
1862
+ while (i++ < n) {
1863
+ this.load(clones / 2 + this._core.relative(position));
1864
+ clones && $.each(this._core.clones(this._core.relative(position++)), load);
1865
+ }
1866
+ }
1867
+ }, this)
1868
+ };
1869
+
1870
+ // set the default options
1871
+ this._core.options = $.extend({}, Lazy.Defaults, this._core.options);
1872
+
1873
+ // register event handler
1874
+ this._core.$element.on(this._handlers);
1875
+ }
1876
+
1877
+ /**
1878
+ * Default options.
1879
+ * @public
1880
+ */
1881
+ Lazy.Defaults = {
1882
+ lazyLoad: false
1883
+ }
1884
+
1885
+ /**
1886
+ * Loads all resources of an item at the specified position.
1887
+ * @param {Number} position - The absolute position of the item.
1888
+ * @protected
1889
+ */
1890
+ Lazy.prototype.load = function(position) {
1891
+ var $item = this._core.$stage.children().eq(position),
1892
+ $elements = $item && $item.find('.owl-lazy');
1893
+
1894
+ if (!$elements || $.inArray($item.get(0), this._loaded) > -1) {
1895
+ return;
1896
+ }
1897
+
1898
+ $elements.each($.proxy(function(index, element) {
1899
+ var $element = $(element), image,
1900
+ url = (window.devicePixelRatio > 1 && $element.attr('data-src-retina')) || $element.attr('data-src');
1901
+
1902
+ this._core.trigger('load', { element: $element, url: url }, 'lazy');
1903
+
1904
+ if ($element.is('img')) {
1905
+ $element.one('load.owl.lazy', $.proxy(function() {
1906
+ $element.css('opacity', 1);
1907
+ this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
1908
+ }, this)).attr('src', url);
1909
+ } else {
1910
+ image = new Image();
1911
+ image.onload = $.proxy(function() {
1912
+ $element.css({
1913
+ 'background-image': 'url(' + url + ')',
1914
+ 'opacity': '1'
1915
+ });
1916
+ this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
1917
+ }, this);
1918
+ image.src = url;
1919
+ }
1920
+ }, this));
1921
+
1922
+ this._loaded.push($item.get(0));
1923
+ }
1924
+
1925
+ /**
1926
+ * Destroys the plugin.
1927
+ * @public
1928
+ */
1929
+ Lazy.prototype.destroy = function() {
1930
+ var handler, property;
1931
+
1932
+ for (handler in this.handlers) {
1933
+ this._core.$element.off(handler, this.handlers[handler]);
1934
+ }
1935
+ for (property in Object.getOwnPropertyNames(this)) {
1936
+ typeof this[property] != 'function' && (this[property] = null);
1937
+ }
1938
+ }
1939
+
1940
+ $.fn.owlSlider.Constructor.Plugins.Lazy = Lazy;
1941
+
1942
+ })(window.Zepto || window.jQuery, window, document);
1943
+
1944
+ /**
1945
+ * AutoHeight Plugin
1946
+ * @version 2.0.0
1947
+ * @author Bartosz Wojciechowski
1948
+ * @license The MIT License (MIT)
1949
+ */
1950
+ ;(function($, window, document, undefined) {
1951
+
1952
+ /**
1953
+ * Creates the auto height plugin.
1954
+ * @class The Auto Height Plugin
1955
+ * @param {Owl} carousel - The Owl Carousel
1956
+ */
1957
+ var AutoHeight = function(carousel) {
1958
+ /**
1959
+ * Reference to the core.
1960
+ * @protected
1961
+ * @type {Owl}
1962
+ */
1963
+ this._core = carousel;
1964
+
1965
+ /**
1966
+ * All event handlers.
1967
+ * @protected
1968
+ * @type {Object}
1969
+ */
1970
+ this._handlers = {
1971
+ 'initialized.owl.carousel': $.proxy(function() {
1972
+ if (this._core.settings.autoHeight) {
1973
+ this.update();
1974
+ }
1975
+ }, this),
1976
+ 'changed.owl.carousel': $.proxy(function(e) {
1977
+ if (this._core.settings.autoHeight && e.property.name == 'position'){
1978
+ this.update();
1979
+ }
1980
+ }, this),
1981
+ 'loaded.owl.lazy': $.proxy(function(e) {
1982
+ if (this._core.settings.autoHeight && e.element.closest('.' + this._core.settings.itemClass)
1983
+ === this._core.$stage.children().eq(this._core.current())) {
1984
+ this.update();
1985
+ }
1986
+ }, this)
1987
+ };
1988
+
1989
+ // set default options
1990
+ this._core.options = $.extend({}, AutoHeight.Defaults, this._core.options);
1991
+
1992
+ // register event handlers
1993
+ this._core.$element.on(this._handlers);
1994
+ };
1995
+
1996
+ /**
1997
+ * Default options.
1998
+ * @public
1999
+ */
2000
+ AutoHeight.Defaults = {
2001
+ autoHeight: false,
2002
+ autoHeightClass: 'owl-height'
2003
+ };
2004
+
2005
+ /**
2006
+ * Updates the view.
2007
+ */
2008
+ AutoHeight.prototype.update = function() {
2009
+ this._core.$stage.parent()
2010
+ .height(this._core.$stage.children().eq(this._core.current()).height())
2011
+ .addClass(this._core.settings.autoHeightClass);
2012
+ };
2013
+
2014
+ AutoHeight.prototype.destroy = function() {
2015
+ var handler, property;
2016
+
2017
+ for (handler in this._handlers) {
2018
+ this._core.$element.off(handler, this._handlers[handler]);
2019
+ }
2020
+ for (property in Object.getOwnPropertyNames(this)) {
2021
+ typeof this[property] != 'function' && (this[property] = null);
2022
+ }
2023
+ };
2024
+
2025
+ $.fn.owlSlider.Constructor.Plugins.AutoHeight = AutoHeight;
2026
+
2027
+ })(window.Zepto || window.jQuery, window, document);
2028
+
2029
+ /**
2030
+ * Video Plugin
2031
+ * @version 2.0.0
2032
+ * @author Bartosz Wojciechowski
2033
+ * @license The MIT License (MIT)
2034
+ */
2035
+ ;(function($, window, document, undefined) {
2036
+
2037
+ /**
2038
+ * Creates the video plugin.
2039
+ * @class The Video Plugin
2040
+ * @param {Owl} carousel - The Owl Carousel
2041
+ */
2042
+ var Video = function(carousel) {
2043
+ /**
2044
+ * Reference to the core.
2045
+ * @protected
2046
+ * @type {Owl}
2047
+ */
2048
+ this._core = carousel;
2049
+
2050
+ /**
2051
+ * Cache all video URLs.
2052
+ * @protected
2053
+ * @type {Object}
2054
+ */
2055
+ this._videos = {};
2056
+
2057
+ /**
2058
+ * Current playing item.
2059
+ * @protected
2060
+ * @type {jQuery}
2061
+ */
2062
+ this._playing = null;
2063
+
2064
+ /**
2065
+ * Whether this is in fullscreen or not.
2066
+ * @protected
2067
+ * @type {Boolean}
2068
+ */
2069
+ this._fullscreen = false;
2070
+
2071
+ /**
2072
+ * All event handlers.
2073
+ * @protected
2074
+ * @type {Object}
2075
+ */
2076
+ this._handlers = {
2077
+ 'resize.owl.carousel': $.proxy(function(e) {
2078
+ if (this._core.settings.video && !this.isInFullScreen()) {
2079
+ e.preventDefault();
2080
+ }
2081
+ }, this),
2082
+ 'refresh.owl.carousel changed.owl.carousel': $.proxy(function(e) {
2083
+ if (this._playing) {
2084
+ this.stop();
2085
+ }
2086
+ }, this),
2087
+ 'prepared.owl.carousel': $.proxy(function(e) {
2088
+ var $element = $(e.content).find('.owl-video');
2089
+ if ($element.length) {
2090
+ $element.css('display', 'none');
2091
+ this.fetch($element, $(e.content));
2092
+ }
2093
+ }, this)
2094
+ };
2095
+
2096
+ // set default options
2097
+ this._core.options = $.extend({}, Video.Defaults, this._core.options);
2098
+
2099
+ // register event handlers
2100
+ this._core.$element.on(this._handlers);
2101
+
2102
+ this._core.$element.on('click.owl.video', '.owl-video-play-icon', $.proxy(function(e) {
2103
+ this.play(e);
2104
+ }, this));
2105
+ };
2106
+
2107
+ /**
2108
+ * Default options.
2109
+ * @public
2110
+ */
2111
+ Video.Defaults = {
2112
+ video: false,
2113
+ videoHeight: false,
2114
+ videoWidth: false
2115
+ };
2116
+
2117
+ /**
2118
+ * Gets the video ID and the type (YouTube/Vimeo only).
2119
+ * @protected
2120
+ * @param {jQuery} target - The target containing the video data.
2121
+ * @param {jQuery} item - The item containing the video.
2122
+ */
2123
+ Video.prototype.fetch = function(target, item) {
2124
+
2125
+ var type = target.attr('data-vimeo-id') ? 'vimeo' : 'youtube',
2126
+ id = target.attr('data-vimeo-id') || target.attr('data-youtube-id'),
2127
+ width = target.attr('data-width') || this._core.settings.videoWidth,
2128
+ height = target.attr('data-height') || this._core.settings.videoHeight,
2129
+ url = target.attr('href');
2130
+
2131
+ if (url) {
2132
+ id = url.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);
2133
+
2134
+ if (id[3].indexOf('youtu') > -1) {
2135
+ type = 'youtube';
2136
+ } else if (id[3].indexOf('vimeo') > -1) {
2137
+ type = 'vimeo';
2138
+ } else {
2139
+ throw new Error('Video URL not supported.');
2140
+ }
2141
+ id = id[6];
2142
+ } else {
2143
+ throw new Error('Missing video URL.');
2144
+ }
2145
+
2146
+ this._videos[url] = {
2147
+ type: type,
2148
+ id: id,
2149
+ width: width,
2150
+ height: height
2151
+ };
2152
+
2153
+ item.attr('data-video', url);
2154
+
2155
+ this.thumbnail(target, this._videos[url]);
2156
+ };
2157
+
2158
+ /**
2159
+ * Creates video thumbnail.
2160
+ * @protected
2161
+ * @param {jQuery} target - The target containing the video data.
2162
+ * @param {Object} info - The video info object.
2163
+ * @see `fetch`
2164
+ */
2165
+ Video.prototype.thumbnail = function(target, video) {
2166
+
2167
+ var tnLink,
2168
+ icon,
2169
+ path,
2170
+ dimensions = video.width && video.height ? 'style="width:' + video.width + 'px;height:' + video.height + 'px;"' : '',
2171
+ customTn = target.find('img'),
2172
+ srcType = 'src',
2173
+ lazyClass = '',
2174
+ settings = this._core.settings,
2175
+ create = function(path) {
2176
+ icon = '<div class="owl-video-play-icon"></div>';
2177
+
2178
+ if (settings.lazyLoad) {
2179
+ tnLink = '<div class="owl-video-tn ' + lazyClass + '" ' + srcType + '="' + path + '"></div>';
2180
+ } else {
2181
+ tnLink = '<div class="owl-video-tn" style="opacity:1;background-image:url(' + path + ')"></div>';
2182
+ }
2183
+ target.after(tnLink);
2184
+ target.after(icon);
2185
+ };
2186
+
2187
+ // wrap video content into owl-video-wrapper div
2188
+ target.wrap('<div class="owl-video-wrapper"' + dimensions + '></div>');
2189
+
2190
+ if (this._core.settings.lazyLoad) {
2191
+ srcType = 'data-src';
2192
+ lazyClass = 'owl-lazy';
2193
+ }
2194
+
2195
+ // custom thumbnail
2196
+ if (customTn.length) {
2197
+ create(customTn.attr(srcType));
2198
+ customTn.remove();
2199
+ return false;
2200
+ }
2201
+
2202
+ if (video.type === 'youtube') {
2203
+ path = "http://img.youtube.com/vi/" + video.id + "/hqdefault.jpg";
2204
+ create(path);
2205
+ } else if (video.type === 'vimeo') {
2206
+ $.ajax({
2207
+ type: 'GET',
2208
+ url: 'http://vimeo.com/api/v2/video/' + video.id + '.json',
2209
+ jsonp: 'callback',
2210
+ dataType: 'jsonp',
2211
+ success: function(data) {
2212
+ path = data[0].thumbnail_large;
2213
+ create(path);
2214
+ }
2215
+ });
2216
+ }
2217
+ };
2218
+
2219
+ /**
2220
+ * Stops the current video.
2221
+ * @public
2222
+ */
2223
+ Video.prototype.stop = function() {
2224
+ this._core.trigger('stop', null, 'video');
2225
+ this._playing.find('.owl-video-frame').remove();
2226
+ this._playing.removeClass('owl-video-playing');
2227
+ this._playing = null;
2228
+ };
2229
+
2230
+ /**
2231
+ * Starts the current video.
2232
+ * @public
2233
+ * @param {Event} ev - The event arguments.
2234
+ */
2235
+ Video.prototype.play = function(ev) {
2236
+ this._core.trigger('play', null, 'video');
2237
+
2238
+ if (this._playing) {
2239
+ this.stop();
2240
+ }
2241
+
2242
+ var target = $(ev.target || ev.srcElement),
2243
+ item = target.closest('.' + this._core.settings.itemClass),
2244
+ video = this._videos[item.attr('data-video')],
2245
+ width = video.width || '100%',
2246
+ height = video.height || this._core.$stage.height(),
2247
+ html, wrap;
2248
+
2249
+ if (video.type === 'youtube') {
2250
+ html = '<iframe width="' + width + '" height="' + height + '" src="http://www.youtube.com/embed/'
2251
+ + video.id + '?autoplay=1&v=' + video.id + '" frameborder="0" allowfullscreen></iframe>';
2252
+ } else if (video.type === 'vimeo') {
2253
+ html = '<iframe src="http://player.vimeo.com/video/' + video.id + '?autoplay=1" width="' + width
2254
+ + '" height="' + height
2255
+ + '" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
2256
+ }
2257
+
2258
+ item.addClass('owl-video-playing');
2259
+ this._playing = item;
2260
+
2261
+ wrap = $('<div style="height:' + height + 'px; width:' + width + 'px" class="owl-video-frame">'
2262
+ + html + '</div>');
2263
+ target.after(wrap);
2264
+ };
2265
+
2266
+ /**
2267
+ * Checks whether an video is currently in full screen mode or not.
2268
+ * @todo Bad style because looks like a readonly method but changes members.
2269
+ * @protected
2270
+ * @returns {Boolean}
2271
+ */
2272
+ Video.prototype.isInFullScreen = function() {
2273
+
2274
+ // if Vimeo Fullscreen mode
2275
+ var element = document.fullscreenElement || document.mozFullScreenElement
2276
+ || document.webkitFullscreenElement;
2277
+
2278
+ if (element && $(element).parent().hasClass('owl-video-frame')) {
2279
+ this._core.speed(0);
2280
+ this._fullscreen = true;
2281
+ }
2282
+
2283
+ if (element && this._fullscreen && this._playing) {
2284
+ return false;
2285
+ }
2286
+
2287
+ // comming back from fullscreen
2288
+ if (this._fullscreen) {
2289
+ this._fullscreen = false;
2290
+ return false;
2291
+ }
2292
+
2293
+ // check full screen mode and window orientation
2294
+ if (this._playing) {
2295
+ if (this._core.state.orientation !== window.orientation) {
2296
+ this._core.state.orientation = window.orientation;
2297
+ return false;
2298
+ }
2299
+ }
2300
+
2301
+ return true;
2302
+ };
2303
+
2304
+ /**
2305
+ * Destroys the plugin.
2306
+ */
2307
+ Video.prototype.destroy = function() {
2308
+ var handler, property;
2309
+
2310
+ this._core.$element.off('click.owl.video');
2311
+
2312
+ for (handler in this._handlers) {
2313
+ this._core.$element.off(handler, this._handlers[handler]);
2314
+ }
2315
+ for (property in Object.getOwnPropertyNames(this)) {
2316
+ typeof this[property] != 'function' && (this[property] = null);
2317
+ }
2318
+ };
2319
+
2320
+ $.fn.owlSlider.Constructor.Plugins.Video = Video;
2321
+
2322
+ })(window.Zepto || window.jQuery, window, document);
2323
+
2324
+ /**
2325
+ * Animate Plugin
2326
+ * @version 2.0.0
2327
+ * @author Bartosz Wojciechowski
2328
+ * @license The MIT License (MIT)
2329
+ */
2330
+ ;(function($, window, document, undefined) {
2331
+
2332
+ /**
2333
+ * Creates the animate plugin.
2334
+ * @class The Navigation Plugin
2335
+ * @param {Owl} scope - The Owl Carousel
2336
+ */
2337
+ var Animate = function(scope) {
2338
+ this.core = scope;
2339
+ this.core.options = $.extend({}, Animate.Defaults, this.core.options);
2340
+ this.swapping = true;
2341
+ this.previous = undefined;
2342
+ this.next = undefined;
2343
+
2344
+ this.handlers = {
2345
+ 'change.owl.carousel': $.proxy(function(e) {
2346
+ if (e.property.name == 'position') {
2347
+ this.previous = this.core.current();
2348
+ this.next = e.property.value;
2349
+ }
2350
+ }, this),
2351
+ 'drag.owl.carousel dragged.owl.carousel translated.owl.carousel': $.proxy(function(e) {
2352
+ this.swapping = e.type == 'translated';
2353
+ }, this),
2354
+ 'translate.owl.carousel': $.proxy(function(e) {
2355
+ if (this.swapping && (this.core.options.animateOut || this.core.options.animateIn)) {
2356
+ this.swap();
2357
+ }
2358
+ }, this)
2359
+ };
2360
+
2361
+ this.core.$element.on(this.handlers);
2362
+ };
2363
+
2364
+ /**
2365
+ * Default options.
2366
+ * @public
2367
+ */
2368
+ Animate.Defaults = {
2369
+ animateOut: false,
2370
+ animateIn: false
2371
+ };
2372
+
2373
+ /**
2374
+ * Toggles the animation classes whenever an translations starts.
2375
+ * @protected
2376
+ * @returns {Boolean|undefined}
2377
+ */
2378
+ Animate.prototype.swap = function() {
2379
+
2380
+ if (this.core.settings.items !== 1 || !this.core.support3d) {
2381
+ return;
2382
+ }
2383
+
2384
+ this.core.speed(0);
2385
+
2386
+ var left,
2387
+ clear = $.proxy(this.clear, this),
2388
+ previous = this.core.$stage.children().eq(this.previous),
2389
+ next = this.core.$stage.children().eq(this.next),
2390
+ incoming = this.core.settings.animateIn,
2391
+ outgoing = this.core.settings.animateOut;
2392
+
2393
+ if (this.core.current() === this.previous) {
2394
+ return;
2395
+ }
2396
+
2397
+ if (outgoing) {
2398
+ left = this.core.coordinates(this.previous) - this.core.coordinates(this.next);
2399
+ previous.css( { 'left': left + 'px' } )
2400
+ .addClass('animated owl-animated-out')
2401
+ .addClass(outgoing)
2402
+ .one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', clear);
2403
+ }
2404
+
2405
+ if (incoming) {
2406
+ next.addClass('animated owl-animated-in')
2407
+ .addClass(incoming)
2408
+ .one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', clear);
2409
+ }
2410
+ };
2411
+
2412
+ Animate.prototype.clear = function(e) {
2413
+ $(e.target).css( { 'left': '' } )
2414
+ .removeClass('animated owl-animated-out owl-animated-in')
2415
+ .removeClass(this.core.settings.animateIn)
2416
+ .removeClass(this.core.settings.animateOut);
2417
+ this.core.transitionEnd();
2418
+ }
2419
+
2420
+ /**
2421
+ * Destroys the plugin.
2422
+ * @public
2423
+ */
2424
+ Animate.prototype.destroy = function() {
2425
+ var handler, property;
2426
+
2427
+ for (handler in this.handlers) {
2428
+ this.core.$element.off(handler, this.handlers[handler]);
2429
+ }
2430
+ for (property in Object.getOwnPropertyNames(this)) {
2431
+ typeof this[property] != 'function' && (this[property] = null);
2432
+ }
2433
+ };
2434
+
2435
+ $.fn.owlSlider.Constructor.Plugins.Animate = Animate;
2436
+
2437
+ })(window.Zepto || window.jQuery, window, document);
2438
+
2439
+ /**
2440
+ * Autoplay Plugin
2441
+ * @version 2.0.0
2442
+ * @author Bartosz Wojciechowski
2443
+ * @license The MIT License (MIT)
2444
+ */
2445
+ ;(function($, window, document, undefined) {
2446
+
2447
+ /**
2448
+ * Creates the autoplay plugin.
2449
+ * @class The Autoplay Plugin
2450
+ * @param {Owl} scope - The Owl Carousel
2451
+ */
2452
+ var Autoplay = function(scope) {
2453
+ this.core = scope;
2454
+ this.core.options = $.extend({}, Autoplay.Defaults, this.core.options);
2455
+
2456
+ this.handlers = {
2457
+ 'translated.owl.carousel refreshed.owl.carousel': $.proxy(function() {
2458
+ this.autoplay();
2459
+ }, this),
2460
+ 'play.owl.autoplay': $.proxy(function(e, t, s) {
2461
+ this.play(t, s);
2462
+ }, this),
2463
+ 'stop.owl.autoplay': $.proxy(function() {
2464
+ this.stop();
2465
+ }, this),
2466
+ 'mouseover.owl.autoplay': $.proxy(function() {
2467
+ if (this.core.settings.autoplayHoverPause) {
2468
+ this.pause();
2469
+ }
2470
+ }, this),
2471
+ 'mouseleave.owl.autoplay': $.proxy(function() {
2472
+ if (this.core.settings.autoplayHoverPause) {
2473
+ this.autoplay();
2474
+ }
2475
+ }, this)
2476
+ };
2477
+
2478
+ this.core.$element.on(this.handlers);
2479
+ };
2480
+
2481
+ /**
2482
+ * Default options.
2483
+ * @public
2484
+ */
2485
+ Autoplay.Defaults = {
2486
+ autoplay: false,
2487
+ autoplayTimeout: 5000,
2488
+ autoplayHoverPause: false,
2489
+ autoplaySpeed: false
2490
+ };
2491
+
2492
+ /**
2493
+ * @protected
2494
+ * @todo Must be documented.
2495
+ */
2496
+ Autoplay.prototype.autoplay = function() {
2497
+ if (this.core.settings.autoplay && !this.core.state.videoPlay) {
2498
+ window.clearInterval(this.interval);
2499
+
2500
+ this.interval = window.setInterval($.proxy(function() {
2501
+ this.play();
2502
+ }, this), this.core.settings.autoplayTimeout);
2503
+ } else {
2504
+ window.clearInterval(this.interval);
2505
+ }
2506
+ };
2507
+
2508
+ /**
2509
+ * Starts the autoplay.
2510
+ * @public
2511
+ * @param {Number} [timeout] - ...
2512
+ * @param {Number} [speed] - ...
2513
+ * @returns {Boolean|undefined} - ...
2514
+ * @todo Must be documented.
2515
+ */
2516
+ Autoplay.prototype.play = function(timeout, speed) {
2517
+ // if tab is inactive - doesnt work in <IE10
2518
+ if (document.hidden === true) {
2519
+ return;
2520
+ }
2521
+
2522
+ if (this.core.state.isTouch || this.core.state.isScrolling
2523
+ || this.core.state.isSwiping || this.core.state.inMotion) {
2524
+ return;
2525
+ }
2526
+
2527
+ if (this.core.settings.autoplay === false) {
2528
+ window.clearInterval(this.interval);
2529
+ return;
2530
+ }
2531
+
2532
+ this.core.next(this.core.settings.autoplaySpeed);
2533
+ };
2534
+
2535
+ /**
2536
+ * Stops the autoplay.
2537
+ * @public
2538
+ */
2539
+ Autoplay.prototype.stop = function() {
2540
+ window.clearInterval(this.interval);
2541
+ };
2542
+
2543
+ /**
2544
+ * Pauses the autoplay.
2545
+ * @public
2546
+ */
2547
+ Autoplay.prototype.pause = function() {
2548
+ window.clearInterval(this.interval);
2549
+ };
2550
+
2551
+ /**
2552
+ * Destroys the plugin.
2553
+ */
2554
+ Autoplay.prototype.destroy = function() {
2555
+ var handler, property;
2556
+
2557
+ window.clearInterval(this.interval);
2558
+
2559
+ for (handler in this.handlers) {
2560
+ this.core.$element.off(handler, this.handlers[handler]);
2561
+ }
2562
+ for (property in Object.getOwnPropertyNames(this)) {
2563
+ typeof this[property] != 'function' && (this[property] = null);
2564
+ }
2565
+ };
2566
+
2567
+ $.fn.owlSlider.Constructor.Plugins.autoplay = Autoplay;
2568
+
2569
+ })(window.Zepto || window.jQuery, window, document);
2570
+
2571
+ /**
2572
+ * Navigation Plugin
2573
+ * @version 2.0.0
2574
+ * @author Artus Kolanowski
2575
+ * @license The MIT License (MIT)
2576
+ */
2577
+ ;(function($, window, document, undefined) {
2578
+ 'use strict';
2579
+
2580
+ /**
2581
+ * Creates the navigation plugin.
2582
+ * @class The Navigation Plugin
2583
+ * @param {Owl} carousel - The Owl Carousel.
2584
+ */
2585
+ var Navigation = function(carousel) {
2586
+ /**
2587
+ * Reference to the core.
2588
+ * @protected
2589
+ * @type {Owl}
2590
+ */
2591
+ this._core = carousel;
2592
+
2593
+ /**
2594
+ * Indicates whether the plugin is initialized or not.
2595
+ * @protected
2596
+ * @type {Boolean}
2597
+ */
2598
+ this._initialized = false;
2599
+
2600
+ /**
2601
+ * The current paging indexes.
2602
+ * @protected
2603
+ * @type {Array}
2604
+ */
2605
+ this._pages = [];
2606
+
2607
+ /**
2608
+ * All DOM elements of the user interface.
2609
+ * @protected
2610
+ * @type {Object}
2611
+ */
2612
+ this._controls = {};
2613
+
2614
+ /**
2615
+ * Markup for an indicator.
2616
+ * @protected
2617
+ * @type {Array.<String>}
2618
+ */
2619
+ this._templates = [];
2620
+
2621
+ /**
2622
+ * The carousel element.
2623
+ * @type {jQuery}
2624
+ */
2625
+ this.$element = this._core.$element;
2626
+
2627
+ /**
2628
+ * Overridden methods of the carousel.
2629
+ * @protected
2630
+ * @type {Object}
2631
+ */
2632
+ this._overrides = {
2633
+ next: this._core.next,
2634
+ prev: this._core.prev,
2635
+ to: this._core.to
2636
+ };
2637
+
2638
+ /**
2639
+ * All event handlers.
2640
+ * @protected
2641
+ * @type {Object}
2642
+ */
2643
+ this._handlers = {
2644
+ 'prepared.owl.carousel': $.proxy(function(e) {
2645
+ if (this._core.settings.dotsData) {
2646
+ this._templates.push($(e.content).find('[data-dot]').andSelf('[data-dot]').attr('data-dot'));
2647
+ }
2648
+ }, this),
2649
+ 'add.owl.carousel': $.proxy(function(e) {
2650
+ if (this._core.settings.dotsData) {
2651
+ this._templates.splice(e.position, 0, $(e.content).find('[data-dot]').andSelf('[data-dot]').attr('data-dot'));
2652
+ }
2653
+ }, this),
2654
+ 'remove.owl.carousel prepared.owl.carousel': $.proxy(function(e) {
2655
+ if (this._core.settings.dotsData) {
2656
+ this._templates.splice(e.position, 1);
2657
+ }
2658
+ }, this),
2659
+ 'change.owl.carousel': $.proxy(function(e) {
2660
+ if (e.property.name == 'position') {
2661
+ if (!this._core.state.revert && !this._core.settings.loop && this._core.settings.navRewind) {
2662
+ var current = this._core.current(),
2663
+ maximum = this._core.maximum(),
2664
+ minimum = this._core.minimum();
2665
+ e.data = e.property.value > maximum
2666
+ ? current >= maximum ? minimum : maximum
2667
+ : e.property.value < minimum ? maximum : e.property.value;
2668
+ }
2669
+ }
2670
+ }, this),
2671
+ 'changed.owl.carousel': $.proxy(function(e) {
2672
+ if (e.property.name == 'position') {
2673
+ this.draw();
2674
+ }
2675
+ }, this),
2676
+ 'refreshed.owl.carousel': $.proxy(function() {
2677
+ if (!this._initialized) {
2678
+ this.initialize();
2679
+ this._initialized = true;
2680
+ }
2681
+ this._core.trigger('refresh', null, 'navigation');
2682
+ this.update();
2683
+ this.draw();
2684
+ this._core.trigger('refreshed', null, 'navigation');
2685
+ }, this)
2686
+ };
2687
+
2688
+ // set default options
2689
+ this._core.options = $.extend({}, Navigation.Defaults, this._core.options);
2690
+
2691
+ // register event handlers
2692
+ this.$element.on(this._handlers);
2693
+ }
2694
+
2695
+ /**
2696
+ * Default options.
2697
+ * @public
2698
+ * @todo Rename `slideBy` to `navBy`
2699
+ */
2700
+ Navigation.Defaults = {
2701
+ nav: false,
2702
+ navRewind: true,
2703
+ navText: [ 'prev', 'next' ],
2704
+ navSpeed: false,
2705
+ navElement: 'div',
2706
+ navContainer: false,
2707
+ navContainerClass: 'owl-nav',
2708
+ navClass: [ 'owl-prev', 'owl-next' ],
2709
+ slideBy: 1,
2710
+ dotClass: 'owl-dot',
2711
+ dotsClass: 'owl-dots',
2712
+ dots: true,
2713
+ dotsEach: false,
2714
+ dotData: false,
2715
+ dotsSpeed: false,
2716
+ dotsContainer: false,
2717
+ controlsClass: 'owl-controls'
2718
+ }
2719
+
2720
+ /**
2721
+ * Initializes the layout of the plugin and extends the carousel.
2722
+ * @protected
2723
+ */
2724
+ Navigation.prototype.initialize = function() {
2725
+ var $container, override,
2726
+ options = this._core.settings;
2727
+
2728
+ // create the indicator template
2729
+ if (!options.dotsData) {
2730
+ this._templates = [ $('<div>')
2731
+ .addClass(options.dotClass)
2732
+ .append($('<span>'))
2733
+ .prop('outerHTML') ];
2734
+ }
2735
+
2736
+ // create controls container if needed
2737
+ if (!options.navContainer || !options.dotsContainer) {
2738
+ this._controls.$container = $('<div>')
2739
+ .addClass(options.controlsClass)
2740
+ .appendTo(this.$element);
2741
+ }
2742
+
2743
+ // create DOM structure for absolute navigation
2744
+ this._controls.$indicators = options.dotsContainer ? $(options.dotsContainer)
2745
+ : $('<div>').hide().addClass(options.dotsClass).appendTo(this._controls.$container);
2746
+
2747
+ this._controls.$indicators.on('click', 'div', $.proxy(function(e) {
2748
+ var index = $(e.target).parent().is(this._controls.$indicators)
2749
+ ? $(e.target).index() : $(e.target).parent().index();
2750
+
2751
+ e.preventDefault();
2752
+
2753
+ this.to(index, options.dotsSpeed);
2754
+ }, this));
2755
+
2756
+ // create DOM structure for relative navigation
2757
+ $container = options.navContainer ? $(options.navContainer)
2758
+ : $('<div>').addClass(options.navContainerClass).prependTo(this._controls.$container);
2759
+
2760
+ this._controls.$next = $('<' + options.navElement + '>');
2761
+ this._controls.$previous = this._controls.$next.clone();
2762
+
2763
+ this._controls.$previous
2764
+ .addClass(options.navClass[0])
2765
+ .html(options.navText[0])
2766
+ .hide()
2767
+ .prependTo($container)
2768
+ .on('click', $.proxy(function(e) {
2769
+ this.prev(options.navSpeed);
2770
+ }, this));
2771
+ this._controls.$next
2772
+ .addClass(options.navClass[1])
2773
+ .html(options.navText[1])
2774
+ .hide()
2775
+ .appendTo($container)
2776
+ .on('click', $.proxy(function(e) {
2777
+ this.next(options.navSpeed);
2778
+ }, this));
2779
+
2780
+ // override public methods of the carousel
2781
+ for (override in this._overrides) {
2782
+ this._core[override] = $.proxy(this[override], this);
2783
+ }
2784
+ }
2785
+
2786
+ /**
2787
+ * Destroys the plugin.
2788
+ * @protected
2789
+ */
2790
+ Navigation.prototype.destroy = function() {
2791
+ var handler, control, property, override;
2792
+
2793
+ for (handler in this._handlers) {
2794
+ this.$element.off(handler, this._handlers[handler]);
2795
+ }
2796
+ for (control in this._controls) {
2797
+ this._controls[control].remove();
2798
+ }
2799
+ for (override in this.overides) {
2800
+ this._core[override] = this._overrides[override];
2801
+ }
2802
+ for (property in Object.getOwnPropertyNames(this)) {
2803
+ typeof this[property] != 'function' && (this[property] = null);
2804
+ }
2805
+ }
2806
+
2807
+ /**
2808
+ * Updates the internal state.
2809
+ * @protected
2810
+ */
2811
+ Navigation.prototype.update = function() {
2812
+ var i, j, k,
2813
+ options = this._core.settings,
2814
+ lower = this._core.clones().length / 2,
2815
+ upper = lower + this._core.items().length,
2816
+ size = options.center || options.autoWidth || options.dotData
2817
+ ? 1 : options.dotsEach || options.items;
2818
+
2819
+ if (options.slideBy !== 'page') {
2820
+ options.slideBy = Math.min(options.slideBy, options.items);
2821
+ }
2822
+
2823
+ if (options.dots || options.slideBy == 'page') {
2824
+ this._pages = [];
2825
+
2826
+ for (i = lower, j = 0, k = 0; i < upper; i++) {
2827
+ if (j >= size || j === 0) {
2828
+ this._pages.push({
2829
+ start: i - lower,
2830
+ end: i - lower + size - 1
2831
+ });
2832
+ j = 0, ++k;
2833
+ }
2834
+ j += this._core.mergers(this._core.relative(i));
2835
+ }
2836
+ }
2837
+ }
2838
+
2839
+ /**
2840
+ * Draws the user interface.
2841
+ * @todo The option `dotData` wont work.
2842
+ * @protected
2843
+ */
2844
+ Navigation.prototype.draw = function() {
2845
+ var difference, i, html = '',
2846
+ options = this._core.settings,
2847
+ $items = this._core.$stage.children(),
2848
+ index = this._core.relative(this._core.current());
2849
+
2850
+ if (options.nav && !options.loop && !options.navRewind) {
2851
+ this._controls.$previous.toggleClass('disabled', index <= 0);
2852
+ this._controls.$next.toggleClass('disabled', index >= this._core.maximum());
2853
+ }
2854
+
2855
+ this._controls.$previous.toggle(options.nav);
2856
+ this._controls.$next.toggle(options.nav);
2857
+
2858
+ if (options.dots) {
2859
+ difference = this._pages.length - this._controls.$indicators.children().length;
2860
+
2861
+ if (options.dotData && difference !== 0) {
2862
+ for (i = 0; i < this._controls.$indicators.children().length; i++) {
2863
+ html += this._templates[this._core.relative(i)];
2864
+ }
2865
+ this._controls.$indicators.html(html);
2866
+ } else if (difference > 0) {
2867
+ html = new Array(difference + 1).join(this._templates[0]);
2868
+ this._controls.$indicators.append(html);
2869
+ } else if (difference < 0) {
2870
+ this._controls.$indicators.children().slice(difference).remove();
2871
+ }
2872
+
2873
+ this._controls.$indicators.find('.active').removeClass('active');
2874
+ this._controls.$indicators.children().eq($.inArray(this.current(), this._pages)).addClass('active');
2875
+ }
2876
+
2877
+ this._controls.$indicators.toggle(options.dots);
2878
+ }
2879
+
2880
+ /**
2881
+ * Extends event data.
2882
+ * @protected
2883
+ * @param {Event} event - The event object which gets thrown.
2884
+ */
2885
+ Navigation.prototype.onTrigger = function(event) {
2886
+ var settings = this._core.settings;
2887
+
2888
+ event.page = {
2889
+ index: $.inArray(this.current(), this._pages),
2890
+ count: this._pages.length,
2891
+ size: settings && (settings.center || settings.autoWidth || settings.dotData
2892
+ ? 1 : settings.dotsEach || settings.items)
2893
+ };
2894
+ }
2895
+
2896
+ /**
2897
+ * Gets the current page position of the carousel.
2898
+ * @protected
2899
+ * @returns {Number}
2900
+ */
2901
+ Navigation.prototype.current = function() {
2902
+ var index = this._core.relative(this._core.current());
2903
+ return $.grep(this._pages, function(o) {
2904
+ return o.start <= index && o.end >= index;
2905
+ }).pop();
2906
+ }
2907
+
2908
+ /**
2909
+ * Gets the current succesor/predecessor position.
2910
+ * @protected
2911
+ * @returns {Number}
2912
+ */
2913
+ Navigation.prototype.getPosition = function(successor) {
2914
+ var position, length,
2915
+ options = this._core.settings;
2916
+
2917
+ if (options.slideBy == 'page') {
2918
+ position = $.inArray(this.current(), this._pages);
2919
+ length = this._pages.length;
2920
+ successor ? ++position : --position;
2921
+ position = this._pages[((position % length) + length) % length].start;
2922
+ } else {
2923
+ position = this._core.relative(this._core.current());
2924
+ length = this._core.items().length;
2925
+ successor ? position += options.slideBy : position -= options.slideBy;
2926
+ }
2927
+ return position;
2928
+ }
2929
+
2930
+ /**
2931
+ * Slides to the next item or page.
2932
+ * @public
2933
+ * @param {Number} [speed=false] - The time in milliseconds for the transition.
2934
+ */
2935
+ Navigation.prototype.next = function(speed) {
2936
+ $.proxy(this._overrides.to, this._core)(this.getPosition(true), speed);
2937
+ }
2938
+
2939
+ /**
2940
+ * Slides to the previous item or page.
2941
+ * @public
2942
+ * @param {Number} [speed=false] - The time in milliseconds for the transition.
2943
+ */
2944
+ Navigation.prototype.prev = function(speed) {
2945
+ $.proxy(this._overrides.to, this._core)(this.getPosition(false), speed);
2946
+ }
2947
+
2948
+ /**
2949
+ * Slides to the specified item or page.
2950
+ * @public
2951
+ * @param {Number} position - The position of the item or page.
2952
+ * @param {Number} [speed] - The time in milliseconds for the transition.
2953
+ * @param {Boolean} [standard=false] - Whether to use the standard behaviour or not.
2954
+ */
2955
+ Navigation.prototype.to = function(position, speed, standard) {
2956
+ var length;
2957
+
2958
+ if (!standard) {
2959
+ length = this._pages.length;
2960
+ $.proxy(this._overrides.to, this._core)(this._pages[((position % length) + length) % length].start, speed);
2961
+ } else {
2962
+ $.proxy(this._overrides.to, this._core)(position, speed);
2963
+ }
2964
+ }
2965
+
2966
+ $.fn.owlSlider.Constructor.Plugins.Navigation = Navigation;
2967
+
2968
+ })(window.Zepto || window.jQuery, window, document);
2969
+
2970
+ /**
2971
+ * Hash Plugin
2972
+ * @version 2.0.0
2973
+ * @author Artus Kolanowski
2974
+ * @license The MIT License (MIT)
2975
+ */
2976
+ ;(function($, window, document, undefined) {
2977
+ 'use strict';
2978
+
2979
+ /**
2980
+ * Creates the hash plugin.
2981
+ * @class The Hash Plugin
2982
+ * @param {Owl} carousel - The Owl Carousel
2983
+ */
2984
+ var Hash = function(carousel) {
2985
+ /**
2986
+ * Reference to the core.
2987
+ * @protected
2988
+ * @type {Owl}
2989
+ */
2990
+ this._core = carousel;
2991
+
2992
+ /**
2993
+ * Hash table for the hashes.
2994
+ * @protected
2995
+ * @type {Object}
2996
+ */
2997
+ this._hashes = {};
2998
+
2999
+ /**
3000
+ * The carousel element.
3001
+ * @type {jQuery}
3002
+ */
3003
+ this.$element = this._core.$element;
3004
+
3005
+ /**
3006
+ * All event handlers.
3007
+ * @protected
3008
+ * @type {Object}
3009
+ */
3010
+ this._handlers = {
3011
+ 'initialized.owl.carousel': $.proxy(function() {
3012
+ if (this._core.settings.startPosition == 'URLHash') {
3013
+ $(window).trigger('hashchange.owl.navigation');
3014
+ }
3015
+ }, this),
3016
+ 'prepared.owl.carousel': $.proxy(function(e) {
3017
+ var hash = $(e.content).find('[data-hash]').andSelf('[data-hash]').attr('data-hash');
3018
+ this._hashes[hash] = e.content;
3019
+ }, this)
3020
+ };
3021
+
3022
+ // set default options
3023
+ this._core.options = $.extend({}, Hash.Defaults, this._core.options);
3024
+
3025
+ // register the event handlers
3026
+ this.$element.on(this._handlers);
3027
+
3028
+ // register event listener for hash navigation
3029
+ $(window).on('hashchange.owl.navigation', $.proxy(function() {
3030
+ var hash = window.location.hash.substring(1),
3031
+ items = this._core.$stage.children(),
3032
+ position = this._hashes[hash] && items.index(this._hashes[hash]) || 0;
3033
+
3034
+ if (!hash) {
3035
+ return false;
3036
+ }
3037
+
3038
+ this._core.to(position, false, true);
3039
+ }, this));
3040
+ }
3041
+
3042
+ /**
3043
+ * Default options.
3044
+ * @public
3045
+ */
3046
+ Hash.Defaults = {
3047
+ URLhashListener: false
3048
+ }
3049
+
3050
+ /**
3051
+ * Destroys the plugin.
3052
+ * @public
3053
+ */
3054
+ Hash.prototype.destroy = function() {
3055
+ var handler, property;
3056
+
3057
+ $(window).off('hashchange.owl.navigation');
3058
+
3059
+ for (handler in this._handlers) {
3060
+ this._core.$element.off(handler, this._handlers[handler]);
3061
+ }
3062
+ for (property in Object.getOwnPropertyNames(this)) {
3063
+ typeof this[property] != 'function' && (this[property] = null);
3064
+ }
3065
+ }
3066
+
3067
+ $.fn.owlSlider.Constructor.Plugins.Hash = Hash;
3068
+
3069
+ })(window.Zepto || window.jQuery, window, document);