FancyPopup - Version 0.0.1

Version Notes

FancyPopup first release version 0.0.1

Download this release

Release Info

Developer EvoPin
Extension FancyPopup
Version 0.0.1
Comparing to
See all releases


Version 0.0.1

Files changed (40) hide show
  1. app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup.php +14 -0
  2. app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Edit.php +45 -0
  3. app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Edit/Form.php +19 -0
  4. app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Edit/Tab/Form.php +91 -0
  5. app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Edit/Tab/Formdate.php +49 -0
  6. app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Edit/Tab/Formpopup.php +47 -0
  7. app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Edit/Tabs.php +41 -0
  8. app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Grid.php +140 -0
  9. app/code/community/Evopin/Fancypopup/Block/Fancypopup.php +91 -0
  10. app/code/community/Evopin/Fancypopup/Helper/Data.php +18 -0
  11. app/code/community/Evopin/Fancypopup/Model/Adminhtml/System/Config/Source/Effect.php +73 -0
  12. app/code/community/Evopin/Fancypopup/Model/Fancypopup.php +10 -0
  13. app/code/community/Evopin/Fancypopup/Model/Mysql4/Fancypopup.php +89 -0
  14. app/code/community/Evopin/Fancypopup/Model/Mysql4/Fancypopup/Collection.php +37 -0
  15. app/code/community/Evopin/Fancypopup/controllers/Adminhtml/FancypopupController.php +214 -0
  16. app/code/community/Evopin/Fancypopup/controllers/IndexController.php +8 -0
  17. app/code/community/Evopin/Fancypopup/etc/config.xml +150 -0
  18. app/code/community/Evopin/Fancypopup/etc/system.xml +92 -0
  19. app/code/community/Evopin/Fancypopup/sql/fancypopup_setup/mysql4-install-0.0.1.php +42 -0
  20. app/design/adminhtml/base/default/layout/evopin/fancypopup.xml +8 -0
  21. app/design/adminhtml/base/default/template/evopin/fancypopup/system/config/fieldset/evopin.phtml +0 -0
  22. app/design/frontend/base/default/layout/evopin/fancypopup.xml +18 -0
  23. app/design/frontend/base/default/template/evopin/fancypopup/fancypopup.phtml +68 -0
  24. app/etc/modules/Evopin_Fancypopup.xml +9 -0
  25. package.xml +18 -0
  26. skin/frontend/base/default/evopin/fancypopup/css/.DS_Store +0 -0
  27. skin/frontend/base/default/evopin/fancypopup/css/component.css +744 -0
  28. skin/frontend/base/default/evopin/fancypopup/css/style.css +181 -0
  29. skin/frontend/base/default/evopin/fancypopup/fonts/.DS_Store +0 -0
  30. skin/frontend/base/default/evopin/fancypopup/fonts/codropsicons/.DS_Store +0 -0
  31. skin/frontend/base/default/evopin/fancypopup/fonts/codropsicons/codropsicons.eot +0 -0
  32. skin/frontend/base/default/evopin/fancypopup/fonts/codropsicons/codropsicons.svg +24 -0
  33. skin/frontend/base/default/evopin/fancypopup/fonts/codropsicons/codropsicons.ttf +0 -0
  34. skin/frontend/base/default/evopin/fancypopup/fonts/codropsicons/codropsicons.woff +0 -0
  35. skin/frontend/base/default/evopin/fancypopup/fonts/codropsicons/license.txt +6 -0
  36. skin/frontend/base/default/evopin/fancypopup/js/.DS_Store +0 -0
  37. skin/frontend/base/default/evopin/fancypopup/js/fancypopup.js +29 -0
  38. skin/frontend/base/default/evopin/fancypopup/js/jquery-2.1.0.min.js +4 -0
  39. skin/frontend/base/default/evopin/fancypopup/js/jquery-noConflict.js +1 -0
  40. skin/frontend/base/default/evopin/fancypopup/js/script.js +2 -0
app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Block_Adminhtml_Fancypopup extends Mage_Adminhtml_Block_Widget_Grid_Container
4
+ {
5
+ public function __construct()
6
+ {
7
+ $this->_controller = 'adminhtml_fancypopup';
8
+ $this->_blockGroup = 'fancypopup';
9
+ $this->_headerText = Mage::helper('fancypopup')
10
+ ->__('Fancy Popup');
11
+ $this->_addButtonLabel = Mage::helper('fancypopup')->__('Add Fancy Popup');
12
+ parent::__construct();
13
+ }
14
+ }
app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Edit.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Block_Adminhtml_Fancypopup_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
+ {
5
+ public function __construct()
6
+ {
7
+ parent::__construct();
8
+
9
+ $this->_objectId = 'id';
10
+ $this->_blockGroup = 'fancypopup';
11
+ $this->_controller = 'adminhtml_fancypopup';
12
+
13
+ $this->_updateButton('save', 'label', Mage::helper('fancypopup')->__('Save'));
14
+ $this->_updateButton('delete', 'label', Mage::helper('fancypopup')->__('Delete'));
15
+
16
+ $this->_addButton('saveandcontinue', array(
17
+ 'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
18
+ 'onclick' => 'saveAndContinueEdit()',
19
+ 'class' => 'save',
20
+ ), -100);
21
+
22
+ $this->_formScripts[] = "
23
+ function toggleEditor() {
24
+ if (tinyMCE.getInstanceById('fancypopup_content') == null) {
25
+ tinyMCE.execCommand('mceAddControl', false, 'fancypopup_content');
26
+ } else {
27
+ tinyMCE.execCommand('mceRemoveControl', false, 'fancypopup_content');
28
+ }
29
+ }
30
+
31
+ function saveAndContinueEdit(){
32
+ editForm.submit($('edit_form').action+'back/edit/');
33
+ }
34
+ ";
35
+ }
36
+
37
+ public function getHeaderText()
38
+ {
39
+ if( Mage::registry('fancypopup_data') && Mage::registry('fancypopup_data')->getId() ) {
40
+ return Mage::helper('fancypopup')->__("Edit '%s'.", $this->htmlEscape(Mage::registry('fancypopup_data')->getPopupName()));
41
+ } else {
42
+ return Mage::helper('fancypopup')->__('New Fancy Popup');
43
+ }
44
+ }
45
+ }
app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Edit/Form.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Block_Adminhtml_Fancypopup_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
4
+ {
5
+ protected function _prepareForm()
6
+ {
7
+ $form = new Varien_Data_Form(array(
8
+ 'id' => 'edit_form',
9
+ 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
10
+ 'method' => 'post',
11
+ 'enctype' => 'multipart/form-data'
12
+ )
13
+ );
14
+
15
+ $form->setUseContainer(true);
16
+ $this->setForm($form);
17
+ return parent::_prepareForm();
18
+ }
19
+ }
app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Edit/Tab/Form.php ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Block_Adminhtml_Fancypopup_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
4
+ {
5
+ protected function _prepareForm()
6
+ {
7
+ $form = new Varien_Data_Form();
8
+
9
+ $model = Mage::registry('fancypopup_data'); //importante nas abas pa saber onde grava
10
+
11
+
12
+ $fieldset = $form->addFieldset('fancypopup_form',
13
+ array('legend'=>Mage::helper('fancypopup')->__('Fancy Popup')));
14
+
15
+ $fieldset->addField('popup_name', 'text', array(
16
+ 'label' => Mage::helper('fancypopup')->__('Name'),
17
+ 'class' => 'required-entry',
18
+ 'required' => true,
19
+ 'name' => 'popup_name',
20
+ 'maxlength' => '30'
21
+ ));
22
+
23
+
24
+ $fieldset->addField('image_link', 'image', array(
25
+ 'label' => Mage::helper('fancypopup')->__('Popup Image'),
26
+ 'class' => 'required-entry',
27
+ 'required' => true,
28
+ 'name' => 'image_link',
29
+ ));
30
+
31
+ $fieldset->addField('width_image', 'text', array(
32
+ 'label' => Mage::helper('fancypopup')->__('Width Image'),
33
+ 'class' => 'required-entry validate-digits',
34
+ 'required' => true,
35
+ 'name' => 'width_image',
36
+ ));
37
+
38
+ $fieldset->addField('height_image', 'text', array(
39
+ 'label' => Mage::helper('fancypopup')->__('Height Image'),
40
+ 'class' => 'required-entry validate-digits',
41
+ 'required' => true,
42
+ 'name' => 'height_image',
43
+ ));
44
+
45
+ $fieldset->addField('url_link', 'text', array(
46
+ 'label' => Mage::helper('fancypopup')->__('Url'),
47
+ 'name' => 'url_link',
48
+ ));
49
+
50
+ $fieldset->addField('is_active', 'select', array(
51
+ 'label' => Mage::helper('fancypopup')->__('Status'),
52
+ 'options' => $this->helper('fancypopup/data')->getStatusOptions(),
53
+ 'class' => 'required-entry',
54
+ 'required' => true,
55
+ 'name' => 'is_active',
56
+ ));
57
+
58
+
59
+ if (!Mage::app()->isSingleStoreMode()) {
60
+ $fieldset->addField('store_id', 'multiselect', array(
61
+ 'name' => 'stores[]',
62
+ 'label' => Mage::helper('fancypopup')->__('Store View'),
63
+ 'title' => Mage::helper('fancypopup')->__('Store View'),
64
+ 'required' => true,
65
+ 'values' => Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true),
66
+ ));
67
+ }
68
+ else {
69
+ $fieldset->addField('store_id', 'hidden', array(
70
+ 'name' => 'stores[]',
71
+ 'value' => Mage::app()->getStore(true)->getId()
72
+ ));
73
+ }
74
+
75
+ if ( Mage::getSingleton('adminhtml/session')->getFancypopupData() )
76
+ {
77
+ $form->setValues(Mage::getSingleton('adminhtml/session')->getFancypopupData());
78
+ Mage::getSingleton('adminhtml/session')->setFancypopupData(null);
79
+ } elseif ( Mage::registry('fancypopup_data') ) {
80
+ $form->setValues(Mage::registry('fancypopup_data')->getData());
81
+ }
82
+ $form->setValues($model->getData()); //coloquei
83
+ $this->setForm($form);
84
+
85
+ return parent::_prepareForm();
86
+ }
87
+
88
+
89
+
90
+
91
+ }
app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Edit/Tab/Formdate.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Block_Adminhtml_Fancypopup_Edit_Tab_Formdate extends Mage_Adminhtml_Block_Widget_Form
4
+
5
+ {
6
+ protected function _prepareForm()
7
+ {
8
+ $form = new Varien_Data_Form();
9
+
10
+ $model = Mage::registry('fancypopup_data');
11
+
12
+ $fieldset = $form->addFieldset('fancypopup_date', array('legend'=>Mage::helper('fancypopup')->__('Date Settings')));
13
+
14
+ $outputFormat = Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM);
15
+
16
+
17
+ $fieldset->addField('from_date', 'date',array(
18
+ 'name' => 'from_date',
19
+ 'time' => true,
20
+ 'class' => 'required-entry',
21
+ 'required' => true,
22
+ 'format' => $this->escDates(),
23
+ 'label' => Mage::helper('fancypopup')->__('From:'),
24
+ 'image' => $this->getSkinUrl('images/grid-cal.gif')
25
+ ));
26
+
27
+ $fieldset->addField('to_date', 'date',array(
28
+ 'name' => 'to_date',
29
+ 'time' => true,
30
+ 'class' => 'required-entry',
31
+ 'required' => true,
32
+ 'format' => $this->escDates(),
33
+ 'label' => Mage::helper('fancypopup')->__('To:'),
34
+ 'image' => $this->getSkinUrl('images/grid-cal.gif')
35
+ ));
36
+
37
+ $form->setValues($model->getData());
38
+
39
+ $this->setForm($form);
40
+ return parent::_prepareForm();
41
+ }
42
+
43
+
44
+ private function escDates() {
45
+ return 'yyyy-MM-dd HH:mm:ss';
46
+ }
47
+
48
+
49
+ }
app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Edit/Tab/Formpopup.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Block_Adminhtml_Fancypopup_Edit_Tab_Formpopup extends Mage_Adminhtml_Block_Widget_Form
4
+
5
+ {
6
+ protected function _prepareForm()
7
+ {
8
+ $form = new Varien_Data_Form();
9
+
10
+ $model = Mage::registry('fancypopup_data');
11
+
12
+ $fieldset = $form->addFieldset('fancypopup_popup', array('legend'=>Mage::helper('fancypopup')->__('Popup Settings')));
13
+
14
+ // TODO: css and js styles to choose here
15
+
16
+ $fieldset->addField('delay_start', 'text', array(
17
+ 'label' => Mage::helper('fancypopup')->__('Delay Start'),
18
+ 'name' => 'delay_start',
19
+ 'class' => 'validate-zero-or-greater',
20
+ ));
21
+
22
+ $fieldset->addField('delay_close', 'text', array(
23
+ 'label' => Mage::helper('fancypopup')->__('Delay Close'),
24
+ 'name' => 'delay_close',
25
+ 'class' => 'validate-zero-or-greater',
26
+ ));
27
+
28
+ // $fieldset->addField('priority', 'text', array(
29
+ // 'label' => Mage::helper('fancypopup')->__('Priority'),
30
+ // 'name' => 'priority',
31
+ // 'class' => 'validate-zero-or-greater',
32
+ // ));
33
+
34
+ // $fieldset->addField('opacity', 'text', array(
35
+ // 'label' => Mage::helper('fancypopup')->__('Opacity'),
36
+ // 'name' => 'opacity',
37
+ // 'class' => 'validate-zero-or-greater',
38
+ // ));
39
+
40
+ $form->setValues($model->getData());
41
+
42
+ $this->setForm($form);
43
+ return parent::_prepareForm();
44
+ }
45
+
46
+
47
+ }
app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Edit/Tabs.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Block_Adminhtml_Fancypopup_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
4
+ {
5
+
6
+ public function __construct()
7
+ {
8
+ parent::__construct();
9
+ $this->setId('fancypopup_tabs');
10
+ $this->setDestElementId('edit_form');
11
+ $this->setTitle(Mage::helper('fancypopup')->__('Fancy Popup'));
12
+ }
13
+
14
+ protected function _beforeToHtml()
15
+ {
16
+ $this->addTab('form_section', array(
17
+ 'label' => Mage::helper('fancypopup')->__('Fancy Popup'),
18
+ 'title' => Mage::helper('fancypopup')->__('Fancy Popup'),
19
+ 'content' => $this->getLayout()->createBlock('fancypopup/adminhtml_fancypopup_edit_tab_form')->toHtml(),
20
+ ));
21
+
22
+ $this->addTab('date_section', array(
23
+ 'label' => Mage::helper('fancypopup')->__('Date Settings'),
24
+ 'title' => Mage::helper('fancypopup')->__('Date Settings'),
25
+ 'content' => $this->getLayout()->createBlock('fancypopup/adminhtml_fancypopup_edit_tab_formdate')
26
+ ->toHtml(),
27
+ ));
28
+
29
+
30
+
31
+ $this->addTab('popup_section', array(
32
+ 'label' => Mage::helper('fancypopup')->__('Popup Settings'),
33
+ 'title' => Mage::helper('fancypopup')->__('Popup Settings'),
34
+ 'content' => $this->getLayout()->createBlock('fancypopup/adminhtml_fancypopup_edit_tab_formpopup')->toHtml(),
35
+ ));
36
+
37
+ return parent::_beforeToHtml();
38
+ }
39
+
40
+
41
+ }
app/code/community/Evopin/Fancypopup/Block/Adminhtml/Fancypopup/Grid.php ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Block_Adminhtml_Fancypopup_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
+ {
5
+ public function __construct()
6
+ {
7
+ parent::__construct();
8
+ $this->setId('fancypopupGrid');
9
+ $this->setDefaultSort('fancypopup_id');
10
+ $this->setDefaultDir('ASC');
11
+ $this->setSaveParametersInSession(true);
12
+ }
13
+
14
+ protected function _prepareCollection()
15
+ {
16
+ $collection = Mage::getModel('fancypopup/fancypopup')->getCollection();
17
+ $this->setCollection($collection);
18
+ return parent::_prepareCollection();
19
+ }
20
+
21
+ protected function _prepareColumns()
22
+ {
23
+ $this->addColumn('fancypopup_id', array(
24
+ 'header' => Mage::helper('fancypopup')->__('ID'),
25
+ 'align' =>'right',
26
+ 'width' => '50px',
27
+ 'index' => 'fancypopup_id',
28
+ ));
29
+
30
+ $this->addColumn('popup_name', array(
31
+ 'header' => Mage::helper('fancypopup')->__('Name'),
32
+ 'align' =>'left',
33
+ 'index' => 'popup_name',
34
+ ));
35
+
36
+
37
+ $this->addColumn('url_link', array(
38
+ 'header' => Mage::helper('fancypopup')->__('Link'),
39
+ 'align' =>'left',
40
+ 'index' => 'url_link',
41
+ ));
42
+
43
+ $this->addColumn('from_date', array(
44
+ 'header' => Mage::helper('fancypopup')->__('From:'),
45
+ 'type' => 'datetime',
46
+ 'index' => 'from_date',
47
+ ));
48
+
49
+ $this->addColumn('to_date', array(
50
+ 'header' => Mage::helper('fancypopup')->__('To:'),
51
+ 'type' => 'datetime',
52
+ 'index' => 'to_date',
53
+ ));
54
+
55
+ $this->addColumn('is_active', array(
56
+ 'header' => Mage::helper('fancypopup')->__('Status'),
57
+ 'options' => $this->helper('fancypopup/data')->getStatusOptions(),
58
+ 'type' => 'options',
59
+ 'index' => 'is_active',
60
+ ));
61
+
62
+ if (!Mage::app()->isSingleStoreMode()) {
63
+ $this->addColumn('store_id', array(
64
+ 'header' => Mage::helper('fancypopup')->__('Store View'),
65
+ 'index' => 'store_id',
66
+ 'type' => 'store',
67
+ 'store_all' => true,
68
+ 'store_view' => true,
69
+ 'sortable' => false,
70
+ 'filter_condition_callback'
71
+ => array($this, '_filterStoreCondition'),
72
+ ));
73
+ }
74
+
75
+
76
+ $this->addColumn('action',
77
+ array(
78
+ 'header' => Mage::helper('fancypopup')->__('Action'),
79
+ 'width' => '100',
80
+ 'type' => 'action',
81
+ 'getter' => 'getId',
82
+ 'actions' => array(
83
+ array(
84
+ 'caption' => Mage::helper('fancypopup')->__('Edit'),
85
+ 'url' => array('base'=> '*/*/edit'),
86
+ 'field' => 'id'
87
+ )
88
+ ),
89
+ 'filter' => false,
90
+ 'sortable' => false,
91
+ 'index' => 'stores',
92
+ 'is_system' => true,
93
+ ));
94
+
95
+
96
+ return parent::_prepareColumns();
97
+ }
98
+
99
+
100
+
101
+ protected function _afterLoadCollection()
102
+ {
103
+ $this->getCollection()->walk('afterLoad');
104
+ parent::_afterLoadCollection();
105
+ }
106
+
107
+ protected function _filterStoreCondition($collection, $column)
108
+ {
109
+ if (!$value = $column->getFilter()->getValue()) {
110
+ return;
111
+ }
112
+ $this->getCollection()->addStoreFilter($value);
113
+ }
114
+
115
+
116
+
117
+
118
+
119
+
120
+ protected function _prepareMassaction()
121
+ {
122
+ $this->setMassactionIdField('fancypopup_id');
123
+ $this->getMassactionBlock()->setFormFieldName('fancypopup');
124
+
125
+ $this->getMassactionBlock()->addItem('delete', array(
126
+ 'label' => Mage::helper('fancypopup')->__('Delete'),
127
+ 'url' => $this->getUrl('*/*/massDelete'),
128
+ 'confirm' => Mage::helper('fancypopup')->__('Are you sure?')
129
+ ));
130
+
131
+
132
+ return $this;
133
+ }
134
+
135
+ public function getRowUrl($row)
136
+ {
137
+ return $this->getUrl('*/*/edit', array('id' => $row->getId()));
138
+ }
139
+
140
+ }
app/code/community/Evopin/Fancypopup/Block/Fancypopup.php ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Block_Fancypopup extends Mage_Core_Block_Template {
4
+
5
+ public $fancypopupvar;
6
+ private $image;
7
+ private $url = '';
8
+ private $width_image = 0;
9
+ private $height_image = 0;
10
+ private $delay_start = 0;
11
+ private $delay_close;
12
+ private $opacity = 0.4;
13
+ public $okShowPopup = 0;
14
+
15
+ public function __construct() {
16
+
17
+ if (!$this->helper('fancypopup')->getIsEnabled()) {
18
+ return;
19
+ };
20
+
21
+ $magento_now_date = $this->magentoNowDate();
22
+
23
+ $this->fancypopupvar = Mage :: getModel('fancypopup/fancypopup')
24
+ ->getCollection()
25
+ ->addStoreFilter(Mage :: app()->getStore()->getId())
26
+ ->addFilter('is_active', 1)
27
+ ->addFieldToFilter(
28
+ 'from_date', array (
29
+ 'datetime' => true,
30
+ 'to' => $magento_now_date
31
+ )
32
+ )
33
+ ->addFieldToFilter(
34
+ 'to_date', array (
35
+ 'datetime' => true,
36
+ 'from' => $magento_now_date
37
+ ))->setOrder('priority');
38
+
39
+ foreach ($this->fancypopupvar as $vars) {
40
+
41
+ $this->image = $vars->getImageLink();
42
+ $this->url = $vars->getUrlLink();
43
+ $this->width_image = $vars->getWidthImage();
44
+ $this->height_image = $vars->getHeightImage();
45
+ $this->delay_start = $vars->getDelayStart();
46
+ $this->delay_close = $vars->getDelayClose();
47
+ $this->opacity = $vars->getOpacity();
48
+
49
+ $this->okShowPopup = 1;
50
+ }
51
+
52
+ }
53
+
54
+ public function _prepareLayout() {
55
+ return parent :: _prepareLayout();
56
+ }
57
+
58
+ public function obtainImage() {
59
+ return Mage :: getBaseUrl(Mage_Core_Model_Store :: URL_TYPE_MEDIA) . $this->image;
60
+ }
61
+
62
+ public function obtainUrl() {
63
+ return $this->url;
64
+ }
65
+
66
+ public function obtainWidthImage() {
67
+ return (is_numeric($this->width_image) && $this->width_image > 0) ? $this->width_image : 0;
68
+ }
69
+
70
+ public function obtainHeightImage() {
71
+ return (is_numeric($this->height_image) && $this->height_image > 0) ? $this->height_image : 0;
72
+ }
73
+
74
+ public function obtainDelayStart() {
75
+ return (is_numeric($this->delay_start) && $this->delay_start > 0) ? $this->delay_start : 1;
76
+ }
77
+
78
+ public function obtainDelayClose() {
79
+ return (is_numeric($this->delay_close) && $this->delay_close > 0) ? $this->delay_close : 1;
80
+ }
81
+
82
+ public function obtainOpacity() {
83
+ return (is_numeric($this->opacity) && $this->opacity > 0 && $this->opacity <= 1) ? $this->opacity : 0.4;
84
+ }
85
+
86
+ private function magentoNowDate() {
87
+ $now = Mage :: getModel('core/date')->timestamp(time());
88
+ return date('Y-m-d H:i:s', $now);
89
+ }
90
+
91
+ }
app/code/community/Evopin/Fancypopup/Helper/Data.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
+ public function getStatusOptions() {
7
+ return array(
8
+ '0' => Mage::helper('fancypopup')->__('Disabled'),
9
+ '1' => Mage::helper('fancypopup')->__('Enabled')
10
+ );
11
+ }
12
+
13
+ public function getIsEnabled() {
14
+ return (bool) Mage::getStoreConfigFlag('fancypopup/general/active');
15
+ }
16
+
17
+
18
+ }
app/code/community/Evopin/Fancypopup/Model/Adminhtml/System/Config/Source/Effect.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Evopin_Fancypopup_Model_Adminhtml_System_Config_Source_Effect {
3
+ public function toOptionArray() {
4
+ $themes = array (
5
+ array (
6
+ 'value' => '1',
7
+ 'label' => 'Fade in & Scale'
8
+ ),
9
+ array (
10
+ 'value' => '2',
11
+ 'label' => 'Slide in (right)'
12
+ ),
13
+ array (
14
+ 'value' => '3',
15
+ 'label' => 'Slide in (bottom)'
16
+ ),
17
+ array (
18
+ 'value' => '4',
19
+ 'label' => 'Newspaper'
20
+ ),
21
+ array (
22
+ 'value' => '5',
23
+ 'label' => 'Fall'
24
+ ),
25
+ array (
26
+ 'value' => '6',
27
+ 'label' => 'Side Fall'
28
+ ),
29
+ array (
30
+ 'value' => '7',
31
+ 'label' => 'Sticky Up'
32
+ ),
33
+ array (
34
+ 'value' => '8',
35
+ 'label' => '3D Flip (horizontal)'
36
+ ),
37
+ array (
38
+ 'value' => '9',
39
+ 'label' => '3D Flip (vertical)'
40
+ ),
41
+ array (
42
+ 'value' => '10',
43
+ 'label' => '3D Sign'
44
+ ),
45
+ array (
46
+ 'value' => '11',
47
+ 'label' => 'Super Scaled'
48
+ ),
49
+ array (
50
+ 'value' => '12',
51
+ 'label' => 'Just Me'
52
+ ),
53
+ array (
54
+ 'value' => '13',
55
+ 'label' => '3D Slit'
56
+ ),
57
+ array (
58
+ 'value' => '14',
59
+ 'label' => '3D Rotate Bottom'
60
+ ),
61
+ array (
62
+ 'value' => '15',
63
+ 'label' => '3D Rotate In Left'
64
+ ),
65
+ array (
66
+ 'value' => '16',
67
+ 'label' => 'Blur'
68
+ )
69
+ );
70
+
71
+ return $themes;
72
+ }
73
+ }
app/code/community/Evopin/Fancypopup/Model/Fancypopup.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Model_Fancypopup extends Mage_Core_Model_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->_init('fancypopup/fancypopup');
9
+ }
10
+ }
app/code/community/Evopin/Fancypopup/Model/Mysql4/Fancypopup.php ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Model_Mysql4_Fancypopup extends Mage_Core_Model_Mysql4_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ $this->_init('fancypopup/fancypopup', 'fancypopup_id');
8
+ }
9
+
10
+
11
+ /**
12
+ * Process page data before saving. As validacoes podem ser feitas aqui
13
+ *
14
+ * @param Mage_Core_Model_Abstract $object
15
+ */
16
+ protected function _beforeSave(Mage_Core_Model_Abstract $object)
17
+ {
18
+
19
+ //compare from to date
20
+ if ( strtotime($object->getData('from_date')) > strtotime($object->getData('to_date'))) {
21
+ Mage::throwException(Mage::helper('fancypopup')->__('Range of dates wrong'));
22
+ }
23
+
24
+ return $this;
25
+ }
26
+
27
+
28
+ protected function _afterSave(Mage_Core_Model_Abstract $object)
29
+ {
30
+ $condition = $this->_getWriteAdapter()->quoteInto('fancy_id = ?', $object->getId());
31
+ $this->_getWriteAdapter()->delete($this->getTable('evopin_fancypopup_store'), $condition);
32
+
33
+ foreach ((array)$object->getData('stores') as $store) {
34
+ $storeArray = array();
35
+ $storeArray['fancy_id'] = $object->getId();
36
+ $storeArray['store_id'] = $store;
37
+ $this->_getWriteAdapter()->insert($this->getTable('evopin_fancypopup_store'), $storeArray);
38
+ }
39
+
40
+ return parent::_afterSave($object);
41
+ }
42
+
43
+
44
+
45
+
46
+ protected function _afterLoad(Mage_Core_Model_Abstract $object)
47
+ {
48
+
49
+ $select = $this->_getReadAdapter()->select()
50
+ ->from($this->getTable('evopin_fancypopup_store'))
51
+ ->where('fancy_id = ?', $object->getId());
52
+
53
+ if (!Mage::app()->isSingleStoreMode()) {
54
+
55
+ if ($data = $this->_getReadAdapter()->fetchAll($select)) {
56
+ $storesArray = array();
57
+ foreach ($data as $row) {
58
+ $storesArray[] = $row['store_id'];
59
+ }
60
+
61
+ $object->setData('store_id', $storesArray);
62
+ }
63
+
64
+ }
65
+
66
+
67
+ else { $object->setData('store_id', Mage::app()->getStore(true)->getId()); }
68
+
69
+
70
+ return parent::_afterLoad($object);
71
+ }
72
+
73
+ protected function _getLoadSelect($field, $value, $object)
74
+ {
75
+ $select = parent::_getLoadSelect($field, $value, $object);
76
+
77
+ if ($object->getStoreId()) {
78
+ $select->join(
79
+ array('cps' => $this->getTable('evopin_fancypopup_store')),
80
+ $this->getMainTable().'.fancy_id = `cps`.fancypopup_id'
81
+ )
82
+ ->where('is_active=1 AND `cps`.store_id in (' . Mage_Core_Model_App::ADMIN_STORE_ID . ', ?) ', $object->getStoreId())
83
+ ->order('store_id DESC')
84
+ ->limit(1);
85
+ }
86
+ return $select;
87
+ }
88
+
89
+ }
app/code/community/Evopin/Fancypopup/Model/Mysql4/Fancypopup/Collection.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Model_Mysql4_Fancypopup_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->_init('fancypopup/fancypopup');
9
+ }
10
+
11
+ /**
12
+ * Add Filter by store
13
+ *
14
+ * @param int|Mage_Core_Model_Store $store
15
+ * @return Mage_Cms_Model_Mysql4_Page_Collection
16
+ */
17
+ public function addStoreFilter($store, $withAdmin = true)
18
+ {
19
+
20
+ if ($store instanceof Mage_Core_Model_Store) {
21
+ $store = array($store->getId());
22
+ }
23
+
24
+ $this->getSelect()->join(
25
+ array('store_table' => $this->getTable('evopin_fancypopup_store')),
26
+ 'main_table.fancypopup_id = store_table.fancy_id',
27
+ array()
28
+ )
29
+ ->where('store_table.store_id in (?)', ($withAdmin ? array(0, $store) : $store))
30
+ ->group('main_table.fancypopup_id');
31
+
32
+ return $this;
33
+ }
34
+
35
+
36
+
37
+ }
app/code/community/Evopin/Fancypopup/controllers/Adminhtml/FancypopupController.php ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_Adminhtml_FancypopupController extends Mage_Adminhtml_Controller_action
4
+ {
5
+
6
+ protected function _initAction() {
7
+
8
+
9
+ $this->loadLayout()
10
+ ->_setActiveMenu('cms/fancypopup')
11
+ ->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
12
+
13
+ return $this;
14
+ }
15
+
16
+ public function indexAction() {
17
+ $this->_initAction()
18
+ ->renderLayout();
19
+ }
20
+
21
+ public function editAction() {
22
+
23
+ $id = $this->getRequest()->getParam('id');
24
+ $model = Mage::getModel('fancypopup/fancypopup')->load($id);
25
+
26
+ if ($model->getId() || $id == 0) {
27
+ $data = Mage::getSingleton('adminhtml/session')->getFormData(true);
28
+ if (!empty($data)) {
29
+ $model->setData($data);
30
+ }
31
+
32
+ Mage::register('fancypopup_data', $model);
33
+
34
+ $this->loadLayout();
35
+ $this->_setActiveMenu('cms/fancypopup');
36
+
37
+ $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item Manager'), Mage::helper('adminhtml')->__('Item Manager'));
38
+ $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item News'), Mage::helper('adminhtml')->__('Item News'));
39
+
40
+ $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
41
+
42
+ $this->_addContent($this->getLayout()->createBlock('fancypopup/adminhtml_fancypopup_edit'))
43
+ ->_addLeft($this->getLayout()->createBlock('fancypopup/adminhtml_fancypopup_edit_tabs'));
44
+
45
+ $this->renderLayout();
46
+ } else {
47
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('fancypopup')->__('Item does not exist'));
48
+ $this->_redirect('*/*/');
49
+ }
50
+ }
51
+
52
+ public function newAction() {
53
+ $this->_forward('edit');
54
+ }
55
+
56
+ public function saveAction() {
57
+ if ($data = $this->getRequest()->getPost()) {
58
+
59
+
60
+ if(isset($_FILES['image_link']['name']) and (file_exists($_FILES['image_link']['tmp_name']))) {
61
+ try {
62
+ $uploader = new Varien_File_Uploader('image_link');
63
+ $uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
64
+ $uploader->setAllowRenameFiles(true);
65
+ $uploader->setFilesDispersion(false);
66
+ $path = Mage::getBaseDir('media') . DS .'evopin/fancypopup';
67
+ $uploader->save($path, $_FILES['image_link']['name']);
68
+ $name_image_link = $uploader->getUploadedFileName();
69
+ $data['image_link'] = 'evopin/fancypopup/' . $name_image_link;
70
+ //em cima acrescentei para ver se grava com path correcta
71
+ }catch(Exception $e) {
72
+ }
73
+ }
74
+ else {
75
+
76
+ if(isset($data['image_link']['delete']) && $data['image_link']['delete'] == 1)
77
+ $data['image_link'] = '';
78
+ else
79
+ unset($data['image_link']);
80
+ }
81
+
82
+
83
+ $model = Mage::getModel('fancypopup/fancypopup');
84
+ $model->setData($data)
85
+ ->setId($this->getRequest()->getParam('id'));
86
+
87
+ try {
88
+
89
+ $model->save();
90
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('fancypopup')->__('The fancy popup has been saved.'));
91
+ Mage::getSingleton('adminhtml/session')->setFormData(false);
92
+
93
+ if ($this->getRequest()->getParam('back')) {
94
+ $this->_redirect('*/*/edit', array('id' => $model->getId()));
95
+ return;
96
+ }
97
+ $this->_redirect('*/*/');
98
+ return;
99
+ } catch (Exception $e) {
100
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
101
+ Mage::getSingleton('adminhtml/session')->setFormData($data);
102
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
103
+ return;
104
+ }
105
+ }
106
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('fancypopup')->__('Unable to find item to save'));
107
+ $this->_redirect('*/*/');
108
+ }
109
+
110
+ public function deleteAction() {
111
+ if( $this->getRequest()->getParam('id') > 0 ) {
112
+ try {
113
+ $model = Mage::getModel('fancypopup/fancypopup');
114
+
115
+ $model->setId($this->getRequest()->getParam('id'))
116
+ ->delete();
117
+
118
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Item was successfully deleted'));
119
+ $this->_redirect('*/*/');
120
+ } catch (Exception $e) {
121
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
122
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
123
+ }
124
+ }
125
+ $this->_redirect('*/*/');
126
+ }
127
+
128
+ public function massDeleteAction() {
129
+ $fancypopupsIds = $this->getRequest()->getParam('fancypopup');
130
+ if(!is_array($fancypopupsIds)) {
131
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('Please select item(s)'));
132
+ } else {
133
+ try {
134
+ foreach ($fancypopupsIds as $fancypopupId) {
135
+ $fancypopups = Mage::getModel('fancypopup/fancypopup')->load($fancypopupId);
136
+ $fancypopups->delete();
137
+ }
138
+ Mage::getSingleton('adminhtml/session')->addSuccess(
139
+ Mage::helper('adminhtml')->__(
140
+ 'Total of %d record(s) were successfully deleted', count($fancypopupsIds)
141
+ )
142
+ );
143
+ } catch (Exception $e) {
144
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
145
+ }
146
+ }
147
+ $this->_redirect('*/*/index');
148
+ }
149
+
150
+ public function massStatusAction()
151
+ {
152
+ $fancypopupsIds = $this->getRequest()->getParam('fancypopup');
153
+ if(!is_array($fancypopupsIds)) {
154
+ Mage::getSingleton('adminhtml/session')->addError($this->__('Please select item(s)'));
155
+ } else {
156
+ try {
157
+ foreach ($fancypopupsIds as $fancypopupId) {
158
+ $fancypopups = Mage::getSingleton('fancypopup/fancypopup')
159
+ ->load($fancypopupId)
160
+ ->setStatus($this->getRequest()->getParam('status'))
161
+ ->setIsMassupdate(true)
162
+ ->save();
163
+ }
164
+ $this->_getSession()->addSuccess(
165
+ $this->__('Total of %d record(s) were successfully updated', count($fancypopupsIds))
166
+ );
167
+ } catch (Exception $e) {
168
+ $this->_getSession()->addError($e->getMessage());
169
+ }
170
+ }
171
+ $this->_redirect('*/*/index');
172
+ }
173
+
174
+ public function exportCsvAction()
175
+ {
176
+ $fileName = 'fancypopup.csv';
177
+ $content = $this->getLayout()->createBlock('fancypopup/adminhtml_fancypopup_grid')
178
+ ->getCsv();
179
+
180
+ $this->_sendUploadResponse($fileName, $content);
181
+ }
182
+
183
+ public function exportXmlAction()
184
+ {
185
+ $fileName = 'fancypopup.xml';
186
+ $content = $this->getLayout()->createBlock('fancypopup/adminhtml_fancypopup_grid')
187
+ ->getXml();
188
+
189
+ $this->_sendUploadResponse($fileName, $content);
190
+ }
191
+
192
+ protected function _sendUploadResponse($fileName, $content, $contentType='application/octet-stream')
193
+ {
194
+ $response = $this->getResponse();
195
+ $response->setHeader('HTTP/1.1 200 OK','');
196
+ $response->setHeader('Pragma', 'public', true);
197
+ $response->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true);
198
+ $response->setHeader('Content-Disposition', 'attachment; filename='.$fileName);
199
+ $response->setHeader('Last-Modified', date('r'));
200
+ $response->setHeader('Accept-Ranges', 'bytes');
201
+ $response->setHeader('Content-Length', strlen($content));
202
+ $response->setHeader('Content-type', $contentType);
203
+ $response->setBody($content);
204
+ $response->sendResponse();
205
+ die;
206
+ }
207
+
208
+ protected function _isAllowed()
209
+ {
210
+ return Mage::getSingleton('admin/session')->isAllowed('admin/cms/fancypopup'); //ver isto muito bem
211
+ }
212
+
213
+
214
+ }
app/code/community/Evopin/Fancypopup/controllers/IndexController.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Evopin_Fancypopup_IndexController extends Mage_Core_Controller_Front_Action {
4
+ public function indexAction() {
5
+ $collection = Mage::getModel('fancypopup/fancypopup')->getCollection();
6
+ var_dump($collection);
7
+ }
8
+ }
app/code/community/Evopin/Fancypopup/etc/config.xml ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Evopin_Fancypopup>
5
+ <version>0.0.1</version>
6
+ </Evopin_Fancypopup>
7
+ </modules>
8
+ <admin>
9
+ <routers>
10
+ <fancypopup>
11
+ <use>admin</use>
12
+ <args>
13
+ <module>Evopin_Fancypopup</module>
14
+ <frontName>fancypopup</frontName>
15
+ </args>
16
+ </fancypopup>
17
+ </routers>
18
+ </admin>
19
+ <adminhtml>
20
+ <translate>
21
+ <modules>
22
+ <Evopin_Fancypopup>
23
+ <files>
24
+ <default>Evopin_Fancypopup.csv</default>
25
+ </files>
26
+ </Evopin_Fancypopup>
27
+ </modules>
28
+ </translate>
29
+ <menu>
30
+ <cms>
31
+ <children>
32
+ <fancypopup module="fancypopup">
33
+ <title>Fancy Popup</title>
34
+ <action>fancypopup/adminhtml_fancypopup</action>
35
+ <sort_order>90</sort_order>
36
+ </fancypopup>
37
+ </children>
38
+ </cms>
39
+ </menu>
40
+ <acl>
41
+ <resources>
42
+ <admin>
43
+ <children>
44
+ <system>
45
+ <children>
46
+ <config>
47
+ <children>
48
+ <fancypopup translate="title" module="fancypopup">
49
+ <title>Fancypopup</title>
50
+ </fancypopup>
51
+ </children>
52
+ </config>
53
+ </children>
54
+ </system>
55
+ </children>
56
+ </admin>
57
+ </resources>
58
+ </acl>
59
+ <layout>
60
+ <updates>
61
+ <fancypopup>
62
+ <file>evopin/fancypopup.xml</file>
63
+ </fancypopup>
64
+ </updates>
65
+ </layout>
66
+ </adminhtml>
67
+ <frontend>
68
+ <routers>
69
+ <fancypopup>
70
+ <use>standard</use>
71
+ <args>
72
+ <module>Evopin_Fancypopup</module>
73
+ <frontName>fancypopup</frontName>
74
+ </args>
75
+ </fancypopup>
76
+ </routers>
77
+ <layout>
78
+ <updates>
79
+ <fancypopup module="fancypopup">
80
+ <file>evopin/fancypopup.xml</file>
81
+ </fancypopup>
82
+ </updates>
83
+ </layout>
84
+ </frontend>
85
+ <global>
86
+ <models>
87
+ <fancypopup>
88
+ <class>Evopin_Fancypopup_Model</class>
89
+ <resourceModel>fancypopup_mysql4</resourceModel>
90
+ </fancypopup>
91
+ <fancypopup_mysql4>
92
+ <class>Evopin_Fancypopup_Model_Mysql4</class>
93
+ <entities>
94
+ <fancypopup>
95
+ <table>evopin_fancypopup</table>
96
+ </fancypopup>
97
+ <fancypopup_store>
98
+ <table>evopin_fancypopup_store</table>
99
+ </fancypopup_store>
100
+ <evopin_fancypopup_store>
101
+ <table>evopin_fancypopup_store</table>
102
+ </evopin_fancypopup_store>
103
+ </entities>
104
+ </fancypopup_mysql4>
105
+ </models>
106
+ <resources>
107
+ <fancypopup_setup>
108
+ <setup>
109
+ <module>Evopin_Fancypopup</module>
110
+ </setup>
111
+ <connection>
112
+ <use>core_setup</use>
113
+ </connection>
114
+ </fancypopup_setup>
115
+ <fancypopup_write>
116
+ <connection>
117
+ <use>core_write</use>
118
+ </connection>
119
+ </fancypopup_write>
120
+ <fancypopup_read>
121
+ <connection>
122
+ <use>core_read</use>
123
+ </connection>
124
+ </fancypopup_read>
125
+ </resources>
126
+ <blocks>
127
+ <fancypopup>
128
+ <class>Evopin_Fancypopup_Block</class>
129
+ </fancypopup>
130
+ </blocks>
131
+ <helpers>
132
+ <fancypopup>
133
+ <class>Evopin_Fancypopup_Helper</class>
134
+ </fancypopup>
135
+ </helpers>
136
+ </global>
137
+ <default>
138
+ <fancypopup>
139
+ <general>
140
+ <active>0</active>
141
+ <jquery>0</jquery>
142
+ <effect>1</effect>
143
+ <close>1</close>
144
+ <overlay_close>0</overlay_close>
145
+ <always_show>1</always_show>
146
+ <cookie_lifetime>3600</cookie_lifetime>
147
+ </general>
148
+ </fancypopup>
149
+ </default>
150
+ </config>
app/code/community/Evopin/Fancypopup/etc/system.xml ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <sections>
4
+ <fancypopup translate="label" module="fancypopup">
5
+ <label>Fancy Popup</label>
6
+ <tab>evopin</tab>
7
+ <sort_order>10</sort_order>
8
+ <show_in_default>1</show_in_default>
9
+ <show_in_website>1</show_in_website>
10
+ <show_in_store>1</show_in_store>
11
+ <groups>
12
+ <general translate="label">
13
+ <label>Fancy Popup Configuration</label>
14
+ <frontend_type>text</frontend_type>
15
+ <sort_order>10</sort_order>
16
+ <show_in_default>1</show_in_default>
17
+ <show_in_website>1</show_in_website>
18
+ <show_in_store>1</show_in_store>
19
+ <fields>
20
+ <active translate="label">
21
+ <label>Status</label>
22
+ <frontend_type>select</frontend_type>
23
+ <sort_order>0</sort_order>
24
+ <show_in_default>1</show_in_default>
25
+ <show_in_website>0</show_in_website>
26
+ <show_in_store>0</show_in_store>
27
+ <source_model>adminhtml/system_config_source_enabledisable
28
+ </source_model>
29
+ </active>
30
+ <jquery translate="label">
31
+ <label>Enable jQuery</label>
32
+ <frontend_type>select</frontend_type>
33
+ <sort_order>1</sort_order>
34
+ <show_in_default>1</show_in_default>
35
+ <show_in_website>0</show_in_website>
36
+ <show_in_store>0</show_in_store>
37
+ <source_model>adminhtml/system_config_source_yesno</source_model>
38
+ </jquery>
39
+ <effect>
40
+ <label>Animation effect</label>
41
+ <frontend_type>select</frontend_type>
42
+ <source_model>Evopin_Fancypopup_Model_Adminhtml_System_Config_Source_Effect
43
+ </source_model>
44
+ <sort_order>2</sort_order>
45
+ <show_in_default>1</show_in_default>
46
+ <show_in_website>1</show_in_website>
47
+ <show_in_store>1</show_in_store>
48
+ </effect>
49
+ <close translate="label">
50
+ <label>Show the close button</label>
51
+ <frontend_type>select</frontend_type>
52
+ <sort_order>3</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>0</show_in_website>
55
+ <show_in_store>0</show_in_store>
56
+ <source_model>adminhtml/system_config_source_yesno</source_model>
57
+ </close>
58
+ <overlay_close translate="label">
59
+ <label>Hide when click outside</label>
60
+ <frontend_type>select</frontend_type>
61
+ <sort_order>4</sort_order>
62
+ <show_in_default>1</show_in_default>
63
+ <show_in_website>0</show_in_website>
64
+ <show_in_store>0</show_in_store>
65
+ <source_model>adminhtml/system_config_source_yesno</source_model>
66
+ </overlay_close>
67
+ <always_show translate="label">
68
+ <label>Always show</label>
69
+ <frontend_type>select</frontend_type>
70
+ <sort_order>5</sort_order>
71
+ <show_in_default>1</show_in_default>
72
+ <show_in_website>0</show_in_website>
73
+ <show_in_store>0</show_in_store>
74
+ <source_model>adminhtml/system_config_source_yesno</source_model>
75
+ <comment>Show the popup on each page view.</comment>
76
+ </always_show>
77
+ <cookie_lifetime>
78
+ <label>Cookie lifetime</label>
79
+ <frontend_type>text</frontend_type>
80
+ <sort_order>6</sort_order>
81
+ <show_in_default>1</show_in_default>
82
+ <show_in_website>1</show_in_website>
83
+ <show_in_store>1</show_in_store>
84
+ <comment>Cookie lifetime in seconds</comment>
85
+ <depends><always_show>0</always_show></depends>
86
+ </cookie_lifetime>
87
+ </fields>
88
+ </general>
89
+ </groups>
90
+ </fancypopup>
91
+ </sections>
92
+ </config>
app/code/community/Evopin/Fancypopup/sql/fancypopup_setup/mysql4-install-0.0.1.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+
5
+ $installer->startSetup();
6
+
7
+ $installer->run("
8
+
9
+ DROP TABLE IF EXISTS {$this->getTable('evopin_fancypopup')};
10
+ CREATE TABLE {$this->getTable('evopin_fancypopup')} (
11
+ `fancypopup_id` int(11) unsigned NOT NULL auto_increment,
12
+ `popup_name` varchar(30) NOT NULL default '',
13
+ `image_link` varchar(255) NOT NULL default '',
14
+ `width_image` smallint(4) NOT NULL default '0',
15
+ `height_image` smallint(4) NOT NULL default '0',
16
+ `url_link` varchar(255) NOT NULL default '',
17
+ `is_active` tinyint(1) NOT NULL default '1',
18
+ `from_date` datetime NOT NULL default '0000-00-00 00:00:00',
19
+ `to_date` datetime NOT NULL default '0000-00-00 00:00:00',
20
+ `css_style` varchar(64) NOT NULL default '',
21
+ `js_style` varchar(64) NOT NULL default '',
22
+ `delay_start` tinyint(3) NOT NULL default '0',
23
+ `delay_close` tinyint(3) NOT NULL default '0',
24
+ `priority` tinyint(4) NOT NULL default '0',
25
+ `opacity` decimal(3,2) NOT NULL default '0.4',
26
+ PRIMARY KEY (`fancypopup_id`)
27
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
28
+
29
+ DROP TABLE IF EXISTS `{$this->getTable('evopin_fancypopup_store')}`;
30
+ CREATE TABLE `{$this->getTable('evopin_fancypopup_store')}` (
31
+ `fancy_id` int(11) unsigned NOT NULL,
32
+ `store_id` smallint(5) unsigned NOT NULL,
33
+ PRIMARY KEY (`fancy_id`,`store_id`),
34
+ CONSTRAINT `FK_FANCYPOPUP_STORE_FANCYPOPUP` FOREIGN KEY (`fancy_id`) REFERENCES `{$this->getTable('evopin_fancypopup')}` (`fancypopup_id`) ON UPDATE CASCADE ON DELETE CASCADE,
35
+ CONSTRAINT `FK_FANCYPOPUP_STORE_STORE` FOREIGN KEY (`store_id`) REFERENCES `{$this->getTable('core/store')}` (`store_id`) ON UPDATE CASCADE ON DELETE CASCADE
36
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Store for fancy popup';
37
+
38
+
39
+ ");
40
+
41
+
42
+ $installer->endSetup();
app/design/adminhtml/base/default/layout/evopin/fancypopup.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <fancypopup_adminhtml_fancypopup_index>
4
+ <reference name="content">
5
+ <block type="fancypopup/adminhtml_fancypopup" name="fancypopup" />
6
+ </reference>
7
+ </fancypopup_adminhtml_fancypopup_index>
8
+ </layout>
app/design/adminhtml/base/default/template/evopin/fancypopup/system/config/fieldset/evopin.phtml ADDED
File without changes
app/design/frontend/base/default/layout/evopin/fancypopup.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="head">
5
+ <action method="addCss" ifconfig="fancypopup/general/active"><stylesheet>evopin/fancypopup/css/component.css</stylesheet></action>
6
+ <action method="addCss" ifconfig="fancypopup/general/active"><stylesheet>evopin/fancypopup/css/style.css</stylesheet></action>
7
+ <action method="addItem" ifconfig="fancypopup/general/jquery"><type>skin_js</type><file>evopin/fancypopup/js/jquery-2.1.0.min.js</file></action>
8
+ <action method="addItem" ifconfig="fancypopup/general/jquery"><type>skin_js</type><file>evopin/fancypopup/js/jquery-noConflict.js</file></action>
9
+ <action method="addItem" ifconfig="fancypopup/general/active"><type>skin_js</type><file>evopin/fancypopup/js/fancypopup.js</file></action>
10
+ <action method="addItem" ifconfig="fancypopup/general/active"><type>skin_js</type><file>evopin/fancypopup/js/script.js</file></action>
11
+ </reference>
12
+ <reference name="after_body_start">
13
+ <block type="fancypopup/fancypopup" name="fancypopup" as="fancypopup" template="evopin/fancypopup/fancypopup.phtml" />
14
+ </reference>
15
+ </default>
16
+ </layout>
17
+
18
+
app/design/frontend/base/default/template/evopin/fancypopup/fancypopup.phtml ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ($this->okShowPopup) :
3
+ $width = $this->obtainWidthImage ();
4
+ $height = $this->obtainHeightImage ();
5
+ $src_img = $this->obtainImage ();
6
+ $href_link = $this->obtainUrl ();
7
+ $opacity = $this->obtainOpacity ();
8
+ $open_timer = $this->obtainDelayStart ();
9
+ $close_timer = $this->obtainDelayClose ();
10
+ $cookie = Mage::getSingleton('core/cookie');
11
+ ?>
12
+ <div class="md-modal md-effect-<?php echo Mage::getStoreConfig('fancypopup/general/effect'); ?>" id="fancypopupModal">
13
+ <div class="md-content">
14
+ <!-- <h3>Modal Dialog</h3> -->
15
+ <div>
16
+ <!-- <p>This is a modal window. You can do the following things with it:</p>
17
+ <ul>
18
+ <li><strong>Read:</strong> modal windows will probably tell you something important so don't forget to read what they say.</li>
19
+ <li><strong>Look:</strong> a modal window enjoys a certain kind of attention; just look at it and appreciate its presence.</li>
20
+ <li><strong>Close:</strong> click on the button below to close the modal.</li>
21
+ </ul>
22
+ <button class="md-close">Close me!</button> -->
23
+ <a href="<?php echo $href_link; ?>">
24
+ <img
25
+ src="<?php echo $src_img; ?>" width="<?php echo $width; ?>"
26
+ height="<?php echo $height; ?>" />
27
+ </a>
28
+ <?php if(Mage::getStoreConfig('fancypopup/general/close')): ?>
29
+ <button class="md-close" id="close-btn"><?php echo $this->__('Close me!'); ?></button>
30
+ <?php endif; ?>
31
+ </div>
32
+ </div>
33
+ </div>
34
+
35
+
36
+ <div class="md-overlay"></div>
37
+ <!-- the overlay element -->
38
+ <script type="text/javascript">
39
+ var delayStart = <?php echo $this->obtainDelayStart() * 1000; ?>;
40
+ var delayClose = <?php echo $this->obtainDelayClose() * 1000; ?>;
41
+ (function ( $ ) {
42
+ $(document).ready(function() {
43
+ $('#close-btn').click(function() {
44
+ $('#fancypopupModal').fancypopup('hide');
45
+ });
46
+ <?php if(Mage::getStoreConfig('fancypopup/general/overlay_close')): ?>
47
+ $('.md-overlay').click(function() {
48
+ $('#fancypopupModal').fancypopup('hide');
49
+ });
50
+ <?php endif; ?>
51
+ <?php if($cookie->get('evopin_fancypopup') != 1 || Mage::getStoreConfig('fancypopup/general/always_show')): ?>
52
+ setTimeout(function() {
53
+ $('#fancypopupModal').fancypopup('show');
54
+ }, delayStart);
55
+ setTimeout(function() {
56
+ $('#fancypopupModal').fancypopup('hide');
57
+ }, delayClose);
58
+ <?php $cookie->set('evopin_fancypopup', '1' ,time() + Mage::getStoreConfig('fancypopup/general/cookie_lifetime'),'/'); ?>
59
+ <?php endif; ?>
60
+ });
61
+ }(jQuery));
62
+ </script>
63
+ <?php endif ?>
64
+
65
+
66
+
67
+
68
+
app/etc/modules/Evopin_Fancypopup.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Evopin_Fancypopup>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </Evopin_Fancypopup>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>FancyPopup</name>
4
+ <version>0.0.1</version>
5
+ <stability>stable</stability>
6
+ <license>MIT</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>FancyPopup first release version 0.0.1</summary>
10
+ <description>FancyPopup first release version 0.0.1</description>
11
+ <notes>FancyPopup first release version 0.0.1</notes>
12
+ <authors><author><name>EvoPin</name><user>EvoPin</user><email>evopin@gmail.com</email></author></authors>
13
+ <date>2014-04-05</date>
14
+ <time>09:47:58</time>
15
+ <contents><target name="magecommunity"><dir name="Evopin"><dir name="Fancypopup"><dir name="Block"><dir name="Adminhtml"><dir name="Fancypopup"><dir name="Edit"><file name="Form.php" hash="13a0874b9523469307372949152d175e"/><dir name="Tab"><file name="Form.php" hash="cfe3db20c1f56bde10ffa9b4b42a3e49"/><file name="Formdate.php" hash="8ee73965d9d0989adef6d9d7e5dba34e"/><file name="Formpopup.php" hash="4df7b969c525d354cdbb6c86204b0ca7"/></dir><file name="Tabs.php" hash="58ed3f312a66b541bd1360d0a087ab54"/></dir><file name="Edit.php" hash="55fd0f4f0973f669a527e4a3708aa0d9"/><file name="Grid.php" hash="8b9332c41842294064d9037da795cae6"/></dir><file name="Fancypopup.php" hash="817e7f66356111ad8b00e413025d6861"/></dir><file name="Fancypopup.php" hash="21bdd6e5c3e87970ffae8a977fac650d"/></dir><dir name="Helper"><file name="Data.php" hash="a6a3a5b8924e2d00f4440deda9871c1a"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Effect.php" hash="109457b818027f494775f2e13053414f"/></dir></dir></dir></dir><file name="Fancypopup.php" hash="94012becc0f8d22b9ced52550aabce0a"/><dir name="Mysql4"><dir name="Fancypopup"><file name="Collection.php" hash="567c3bd3e434a4d253a50d34b1b758ee"/></dir><file name="Fancypopup.php" hash="7e4d2789c626f75e24c7ec1acddf3605"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="FancypopupController.php" hash="1cbd67c616abdcdbbe1499cf2590e889"/></dir><file name="IndexController.php" hash="d7d982174452d7203dc7a246bfdc5ff4"/></dir><dir name="etc"><file name="config.xml" hash="d9b787d3bbaa4cfaa623fa5c1e72ef09"/><file name="system.xml" hash="da45de942614d53016d2e670e9ca08f3"/></dir><dir name="sql"><dir name="fancypopup_setup"><file name="mysql4-install-0.0.1.php" hash="c421ae92d7ea7da2fad95da6f9b39b5f"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Evopin_Fancypopup.xml" hash="7c927d3542256472e2c87c4a9ebedd23"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="layout"><dir name="evopin"><file name="fancypopup.xml" hash="0380f19ecf35588070c799d25fc5b2f8"/></dir></dir><dir name="template"><dir name="evopin"><dir name="fancypopup"><dir name="system"><dir name="config"><dir name="fieldset"><file name="evopin.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="evopin"><file name="fancypopup.xml" hash="b86174f40966e80bfab8f034b20c25bd"/></dir></dir><dir name="template"><dir name="evopin"><dir name="fancypopup"><file name="fancypopup.phtml" hash="965b877c842e91859f71aedbb8f28791"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="evopin"><dir name="fancypopup"><dir name="css"><file name="component.css" hash="aa82066947c16a8d47b46d14b16bf650"/><file name="style.css" hash="6c15f9850e2beb2ab90eb0099fc65521"/><file name=".DS_Store" hash="c0dc13313680dd191a3b8640779511f9"/></dir><dir name="fonts"><dir name="codropsicons"><file name="codropsicons.eot" hash="e0c41e218300b108279dfd69224873a8"/><file name="codropsicons.svg" hash="1958497a8eab2ae7a4f8d3e602655143"/><file name="codropsicons.ttf" hash="89060daed41f701ecf87e69c4c6b635b"/><file name="codropsicons.woff" hash="70b872279cb3b15ddf0447a94c985c1d"/><file name="license.txt" hash="71989a368aa14fa2bee7719a8edaf654"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="09ce20eb922d26072fa48368a07dec51"/></dir><dir name="js"><file name="fancypopup.js" hash="c6066e1c83ea952addf2a7c283c20530"/><file name="jquery-2.1.0.min.js" hash="5ca7582261c421482436dfdf3af9bffe"/><file name="jquery-noConflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="script.js" hash="fa0cf1b59e224aa4c6b68ba185e25797"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></dir></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
+ </package>
skin/frontend/base/default/evopin/fancypopup/css/.DS_Store ADDED
Binary file
skin/frontend/base/default/evopin/fancypopup/css/component.css ADDED
@@ -0,0 +1,744 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* General styles for the modal */
2
+
3
+ /*
4
+ Styles for the html/body for special modal where we want 3d effects
5
+ Note that we need a container wrapping all content on the page for the
6
+ perspective effects (not including the modals and the overlay).
7
+ */
8
+ .md-perspective,
9
+ .md-perspective body {
10
+ height: 100%;
11
+ overflow: hidden;
12
+ }
13
+
14
+ .md-perspective body {
15
+ background: #222;
16
+ -webkit-perspective: 600px;
17
+ -moz-perspective: 600px;
18
+ perspective: 600px;
19
+ }
20
+
21
+ .container {
22
+ background: #e74c3c;
23
+ min-height: 100%;
24
+ }
25
+
26
+ .md-modal {
27
+ position: fixed;
28
+ top: 50%;
29
+ left: 50%;
30
+ /*width: 50%;
31
+ max-width: 630px;
32
+ min-width: 320px;
33
+ height: auto;*/
34
+ z-index: 2000;
35
+ visibility: hidden;
36
+ -webkit-backface-visibility: hidden;
37
+ -moz-backface-visibility: hidden;
38
+ backface-visibility: hidden;
39
+ -webkit-transform: translateX(-50%) translateY(-50%);
40
+ -moz-transform: translateX(-50%) translateY(-50%);
41
+ -ms-transform: translateX(-50%) translateY(-50%);
42
+ transform: translateX(-50%) translateY(-50%);
43
+ }
44
+
45
+ .md-show {
46
+ visibility: visible;
47
+ }
48
+
49
+ .md-overlay {
50
+ position: fixed;
51
+ width: 100%;
52
+ height: 100%;
53
+ visibility: hidden;
54
+ top: 0;
55
+ left: 0;
56
+ z-index: 1000;
57
+ opacity: 0;
58
+ /* background: rgba(143,27,15,0.8); */
59
+ background: rgba(0,0,0,0.8);
60
+ -webkit-transition: all 0.3s;
61
+ -moz-transition: all 0.3s;
62
+ transition: all 0.3s;
63
+ }
64
+
65
+ .md-show ~ .md-overlay {
66
+ opacity: 1;
67
+ visibility: visible;
68
+ }
69
+
70
+ /* Content styles */
71
+ .md-content {
72
+ color: #fff;
73
+ /* background: #e74c3c; */
74
+ background: #EEE;
75
+ position: relative;
76
+ border-radius: 3px;
77
+ margin: 0 auto;
78
+ }
79
+
80
+ .md-content h3 {
81
+ margin: 0;
82
+ padding: 0.4em;
83
+ text-align: center;
84
+ font-size: 2.4em;
85
+ font-weight: 300;
86
+ opacity: 0.8;
87
+ background: rgba(0,0,0,0.1);
88
+ border-radius: 3px 3px 0 0;
89
+ }
90
+
91
+ .md-content > div {
92
+ /* padding: 15px 40px 30px; */
93
+ margin: 0;
94
+ font-weight: 300;
95
+ font-size: 1.15em;
96
+ }
97
+
98
+ .md-content > div p {
99
+ margin: 0;
100
+ padding: 10px 0;
101
+ }
102
+
103
+ .md-content > div ul {
104
+ margin: 0;
105
+ padding: 0 0 30px 20px;
106
+ }
107
+
108
+ .md-content > div ul li {
109
+ padding: 5px 0;
110
+ }
111
+
112
+ .md-content button {
113
+ display: block;
114
+ margin: 0 auto;
115
+ font-size: 0.8em;
116
+ }
117
+
118
+ /* Individual modal styles with animations/transitions */
119
+
120
+ /* Effect 1: Fade in and scale up */
121
+ .md-effect-1 .md-content {
122
+ -webkit-transform: scale(0.7);
123
+ -moz-transform: scale(0.7);
124
+ -ms-transform: scale(0.7);
125
+ transform: scale(0.7);
126
+ opacity: 0;
127
+ -webkit-transition: all 0.3s;
128
+ -moz-transition: all 0.3s;
129
+ transition: all 0.3s;
130
+ }
131
+
132
+ .md-show.md-effect-1 .md-content {
133
+ -webkit-transform: scale(1);
134
+ -moz-transform: scale(1);
135
+ -ms-transform: scale(1);
136
+ transform: scale(1);
137
+ opacity: 1;
138
+ }
139
+
140
+ /* Effect 2: Slide from the right */
141
+ .md-effect-2 .md-content {
142
+ -webkit-transform: translateX(20%);
143
+ -moz-transform: translateX(20%);
144
+ -ms-transform: translateX(20%);
145
+ transform: translateX(20%);
146
+ opacity: 0;
147
+ -webkit-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
148
+ -moz-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
149
+ transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
150
+ }
151
+
152
+ .md-show.md-effect-2 .md-content {
153
+ -webkit-transform: translateX(0);
154
+ -moz-transform: translateX(0);
155
+ -ms-transform: translateX(0);
156
+ transform: translateX(0);
157
+ opacity: 1;
158
+ }
159
+
160
+ /* Effect 3: Slide from the bottom */
161
+ .md-effect-3 .md-content {
162
+ -webkit-transform: translateY(20%);
163
+ -moz-transform: translateY(20%);
164
+ -ms-transform: translateY(20%);
165
+ transform: translateY(20%);
166
+ opacity: 0;
167
+ -webkit-transition: all 0.3s;
168
+ -moz-transition: all 0.3s;
169
+ transition: all 0.3s;
170
+ }
171
+
172
+ .md-show.md-effect-3 .md-content {
173
+ -webkit-transform: translateY(0);
174
+ -moz-transform: translateY(0);
175
+ -ms-transform: translateY(0);
176
+ transform: translateY(0);
177
+ opacity: 1;
178
+ }
179
+
180
+ /* Effect 4: Newspaper */
181
+ .md-effect-4 .md-content {
182
+ -webkit-transform: scale(0) rotate(720deg);
183
+ -moz-transform: scale(0) rotate(720deg);
184
+ -ms-transform: scale(0) rotate(720deg);
185
+ transform: scale(0) rotate(720deg);
186
+ opacity: 0;
187
+ }
188
+
189
+ .md-show.md-effect-4 ~ .md-overlay,
190
+ .md-effect-4 .md-content {
191
+ -webkit-transition: all 0.5s;
192
+ -moz-transition: all 0.5s;
193
+ transition: all 0.5s;
194
+ }
195
+
196
+ .md-show.md-effect-4 .md-content {
197
+ -webkit-transform: scale(1) rotate(0deg);
198
+ -moz-transform: scale(1) rotate(0deg);
199
+ -ms-transform: scale(1) rotate(0deg);
200
+ transform: scale(1) rotate(0deg);
201
+ opacity: 1;
202
+ }
203
+
204
+ /* Effect 5: fall */
205
+ .md-effect-5.md-modal {
206
+ -webkit-perspective: 1300px;
207
+ -moz-perspective: 1300px;
208
+ perspective: 1300px;
209
+ }
210
+
211
+ .md-effect-5 .md-content {
212
+ -webkit-transform-style: preserve-3d;
213
+ -moz-transform-style: preserve-3d;
214
+ transform-style: preserve-3d;
215
+ -webkit-transform: translateZ(600px) rotateX(20deg);
216
+ -moz-transform: translateZ(600px) rotateX(20deg);
217
+ -ms-transform: translateZ(600px) rotateX(20deg);
218
+ transform: translateZ(600px) rotateX(20deg);
219
+ opacity: 0;
220
+ }
221
+
222
+ .md-show.md-effect-5 .md-content {
223
+ -webkit-transition: all 0.3s ease-in;
224
+ -moz-transition: all 0.3s ease-in;
225
+ transition: all 0.3s ease-in;
226
+ -webkit-transform: translateZ(0px) rotateX(0deg);
227
+ -moz-transform: translateZ(0px) rotateX(0deg);
228
+ -ms-transform: translateZ(0px) rotateX(0deg);
229
+ transform: translateZ(0px) rotateX(0deg);
230
+ opacity: 1;
231
+ }
232
+
233
+ /* Effect 6: side fall */
234
+ .md-effect-6.md-modal {
235
+ -webkit-perspective: 1300px;
236
+ -moz-perspective: 1300px;
237
+ perspective: 1300px;
238
+ }
239
+
240
+ .md-effect-6 .md-content {
241
+ -webkit-transform-style: preserve-3d;
242
+ -moz-transform-style: preserve-3d;
243
+ transform-style: preserve-3d;
244
+ -webkit-transform: translate(30%) translateZ(600px) rotate(10deg);
245
+ -moz-transform: translate(30%) translateZ(600px) rotate(10deg);
246
+ -ms-transform: translate(30%) translateZ(600px) rotate(10deg);
247
+ transform: translate(30%) translateZ(600px) rotate(10deg);
248
+ opacity: 0;
249
+ }
250
+
251
+ .md-show.md-effect-6 .md-content {
252
+ -webkit-transition: all 0.3s ease-in;
253
+ -moz-transition: all 0.3s ease-in;
254
+ transition: all 0.3s ease-in;
255
+ -webkit-transform: translate(0%) translateZ(0) rotate(0deg);
256
+ -moz-transform: translate(0%) translateZ(0) rotate(0deg);
257
+ -ms-transform: translate(0%) translateZ(0) rotate(0deg);
258
+ transform: translate(0%) translateZ(0) rotate(0deg);
259
+ opacity: 1;
260
+ }
261
+
262
+ /* Effect 7: slide and stick to top */
263
+ .md-effect-7{
264
+ top: 0;
265
+ -webkit-transform: translateX(-50%);
266
+ -moz-transform: translateX(-50%);
267
+ -ms-transform: translateX(-50%);
268
+ transform: translateX(-50%);
269
+ }
270
+
271
+ .md-effect-7 .md-content {
272
+ -webkit-transform: translateY(-200%);
273
+ -moz-transform: translateY(-200%);
274
+ -ms-transform: translateY(-200%);
275
+ transform: translateY(-200%);
276
+ -webkit-transition: all .3s;
277
+ -moz-transition: all .3s;
278
+ transition: all .3s;
279
+ opacity: 0;
280
+ }
281
+
282
+ .md-show.md-effect-7 .md-content {
283
+ -webkit-transform: translateY(0%);
284
+ -moz-transform: translateY(0%);
285
+ -ms-transform: translateY(0%);
286
+ transform: translateY(0%);
287
+ border-radius: 0 0 3px 3px;
288
+ opacity: 1;
289
+ }
290
+
291
+ /* Effect 8: 3D flip horizontal */
292
+ .md-effect-8.md-modal {
293
+ -webkit-perspective: 1300px;
294
+ -moz-perspective: 1300px;
295
+ perspective: 1300px;
296
+ }
297
+
298
+ .md-effect-8 .md-content {
299
+ -webkit-transform-style: preserve-3d;
300
+ -moz-transform-style: preserve-3d;
301
+ transform-style: preserve-3d;
302
+ -webkit-transform: rotateY(-70deg);
303
+ -moz-transform: rotateY(-70deg);
304
+ -ms-transform: rotateY(-70deg);
305
+ transform: rotateY(-70deg);
306
+ -webkit-transition: all 0.3s;
307
+ -moz-transition: all 0.3s;
308
+ transition: all 0.3s;
309
+ opacity: 0;
310
+ }
311
+
312
+ .md-show.md-effect-8 .md-content {
313
+ -webkit-transform: rotateY(0deg);
314
+ -moz-transform: rotateY(0deg);
315
+ -ms-transform: rotateY(0deg);
316
+ transform: rotateY(0deg);
317
+ opacity: 1;
318
+ }
319
+
320
+ /* Effect 9: 3D flip vertical */
321
+ .md-effect-9.md-modal {
322
+ -webkit-perspective: 1300px;
323
+ -moz-perspective: 1300px;
324
+ perspective: 1300px;
325
+ }
326
+
327
+ .md-effect-9 .md-content {
328
+ -webkit-transform-style: preserve-3d;
329
+ -moz-transform-style: preserve-3d;
330
+ transform-style: preserve-3d;
331
+ -webkit-transform: rotateX(-70deg);
332
+ -moz-transform: rotateX(-70deg);
333
+ -ms-transform: rotateX(-70deg);
334
+ transform: rotateX(-70deg);
335
+ -webkit-transition: all 0.3s;
336
+ -moz-transition: all 0.3s;
337
+ transition: all 0.3s;
338
+ opacity: 0;
339
+ }
340
+
341
+ .md-show.md-effect-9 .md-content {
342
+ -webkit-transform: rotateX(0deg);
343
+ -moz-transform: rotateX(0deg);
344
+ -ms-transform: rotateX(0deg);
345
+ transform: rotateX(0deg);
346
+ opacity: 1;
347
+ }
348
+
349
+ /* Effect 10: 3D sign */
350
+ .md-effect-10.md-modal {
351
+ -webkit-perspective: 1300px;
352
+ -moz-perspective: 1300px;
353
+ perspective: 1300px;
354
+ }
355
+
356
+ .md-effect-10 .md-content {
357
+ -webkit-transform-style: preserve-3d;
358
+ -moz-transform-style: preserve-3d;
359
+ transform-style: preserve-3d;
360
+ -webkit-transform: rotateX(-60deg);
361
+ -moz-transform: rotateX(-60deg);
362
+ -ms-transform: rotateX(-60deg);
363
+ transform: rotateX(-60deg);
364
+ -webkit-transform-origin: 50% 0;
365
+ -moz-transform-origin: 50% 0;
366
+ transform-origin: 50% 0;
367
+ opacity: 0;
368
+ -webkit-transition: all 0.3s;
369
+ -moz-transition: all 0.3s;
370
+ transition: all 0.3s;
371
+ }
372
+
373
+ .md-show.md-effect-10 .md-content {
374
+ -webkit-transform: rotateX(0deg);
375
+ -moz-transform: rotateX(0deg);
376
+ -ms-transform: rotateX(0deg);
377
+ transform: rotateX(0deg);
378
+ opacity: 1;
379
+ }
380
+
381
+ /* Effect 11: Super scaled */
382
+ .md-effect-11 .md-content {
383
+ -webkit-transform: scale(2);
384
+ -moz-transform: scale(2);
385
+ -ms-transform: scale(2);
386
+ transform: scale(2);
387
+ opacity: 0;
388
+ -webkit-transition: all 0.3s;
389
+ -moz-transition: all 0.3s;
390
+ transition: all 0.3s;
391
+ }
392
+
393
+ .md-show.md-effect-11 .md-content {
394
+ -webkit-transform: scale(1);
395
+ -moz-transform: scale(1);
396
+ -ms-transform: scale(1);
397
+ transform: scale(1);
398
+ opacity: 1;
399
+ }
400
+
401
+ /* Effect 12: Just me */
402
+ .md-effect-12 .md-content {
403
+ -webkit-transform: scale(0.8);
404
+ -moz-transform: scale(0.8);
405
+ -ms-transform: scale(0.8);
406
+ transform: scale(0.8);
407
+ opacity: 0;
408
+ -webkit-transition: all 0.3s;
409
+ -moz-transition: all 0.3s;
410
+ transition: all 0.3s;
411
+ }
412
+
413
+ .md-show.md-effect-12 ~ .md-overlay {
414
+ background: #e74c3c;
415
+ }
416
+
417
+ .md-effect-12 .md-content h3,
418
+ .md-effect-12 .md-content {
419
+ background: transparent;
420
+ }
421
+
422
+ .md-show.md-effect-12 .md-content {
423
+ -webkit-transform: scale(1);
424
+ -moz-transform: scale(1);
425
+ -ms-transform: scale(1);
426
+ transform: scale(1);
427
+ opacity: 1;
428
+ }
429
+
430
+ /* Effect 13: 3D slit */
431
+ .md-effect-13.md-modal {
432
+ -webkit-perspective: 1300px;
433
+ -moz-perspective: 1300px;
434
+ perspective: 1300px;
435
+ }
436
+
437
+ .md-effect-13 .md-content {
438
+ -webkit-transform-style: preserve-3d;
439
+ -moz-transform-style: preserve-3d;
440
+ transform-style: preserve-3d;
441
+ -webkit-transform: translateZ(-3000px) rotateY(90deg);
442
+ -moz-transform: translateZ(-3000px) rotateY(90deg);
443
+ -ms-transform: translateZ(-3000px) rotateY(90deg);
444
+ transform: translateZ(-3000px) rotateY(90deg);
445
+ opacity: 0;
446
+ }
447
+
448
+ .md-show.md-effect-13 .md-content {
449
+ -webkit-animation: slit .7s forwards ease-out;
450
+ -moz-animation: slit .7s forwards ease-out;
451
+ animation: slit .7s forwards ease-out;
452
+ }
453
+
454
+ @-webkit-keyframes slit {
455
+ 50% { -webkit-transform: translateZ(-250px) rotateY(89deg); opacity: .5; -webkit-animation-timing-function: ease-out;}
456
+ 100% { -webkit-transform: translateZ(0) rotateY(0deg); opacity: 1; }
457
+ }
458
+
459
+ @-moz-keyframes slit {
460
+ 50% { -moz-transform: translateZ(-250px) rotateY(89deg); opacity: .5; -moz-animation-timing-function: ease-out;}
461
+ 100% { -moz-transform: translateZ(0) rotateY(0deg); opacity: 1; }
462
+ }
463
+
464
+ @keyframes slit {
465
+ 50% { transform: translateZ(-250px) rotateY(89deg); opacity: 1; animation-timing-function: ease-in;}
466
+ 100% { transform: translateZ(0) rotateY(0deg); opacity: 1; }
467
+ }
468
+
469
+ /* Effect 14: 3D Rotate from bottom */
470
+ .md-effect-14.md-modal {
471
+ -webkit-perspective: 1300px;
472
+ -moz-perspective: 1300px;
473
+ perspective: 1300px;
474
+ }
475
+
476
+ .md-effect-14 .md-content {
477
+ -webkit-transform-style: preserve-3d;
478
+ -moz-transform-style: preserve-3d;
479
+ transform-style: preserve-3d;
480
+ -webkit-transform: translateY(100%) rotateX(90deg);
481
+ -moz-transform: translateY(100%) rotateX(90deg);
482
+ -ms-transform: translateY(100%) rotateX(90deg);
483
+ transform: translateY(100%) rotateX(90deg);
484
+ -webkit-transform-origin: 0 100%;
485
+ -moz-transform-origin: 0 100%;
486
+ transform-origin: 0 100%;
487
+ opacity: 0;
488
+ -webkit-transition: all 0.3s ease-out;
489
+ -moz-transition: all 0.3s ease-out;
490
+ transition: all 0.3s ease-out;
491
+ }
492
+
493
+ .md-show.md-effect-14 .md-content {
494
+ -webkit-transform: translateY(0%) rotateX(0deg);
495
+ -moz-transform: translateY(0%) rotateX(0deg);
496
+ -ms-transform: translateY(0%) rotateX(0deg);
497
+ transform: translateY(0%) rotateX(0deg);
498
+ opacity: 1;
499
+ }
500
+
501
+ /* Effect 15: 3D Rotate in from left */
502
+ .md-effect-15.md-modal {
503
+ -webkit-perspective: 1300px;
504
+ -moz-perspective: 1300px;
505
+ perspective: 1300px;
506
+ }
507
+
508
+ .md-effect-15 .md-content {
509
+ -webkit-transform-style: preserve-3d;
510
+ -moz-transform-style: preserve-3d;
511
+ transform-style: preserve-3d;
512
+ -webkit-transform: translateZ(100px) translateX(-30%) rotateY(90deg);
513
+ -moz-transform: translateZ(100px) translateX(-30%) rotateY(90deg);
514
+ -ms-transform: translateZ(100px) translateX(-30%) rotateY(90deg);
515
+ transform: translateZ(100px) translateX(-30%) rotateY(90deg);
516
+ -webkit-transform-origin: 0 100%;
517
+ -moz-transform-origin: 0 100%;
518
+ transform-origin: 0 100%;
519
+ opacity: 0;
520
+ -webkit-transition: all 0.3s;
521
+ -moz-transition: all 0.3s;
522
+ transition: all 0.3s;
523
+ }
524
+
525
+ .md-show.md-effect-15 .md-content {
526
+ -webkit-transform: translateZ(0px) translateX(0%) rotateY(0deg);
527
+ -moz-transform: translateZ(0px) translateX(0%) rotateY(0deg);
528
+ -ms-transform: translateZ(0px) translateX(0%) rotateY(0deg);
529
+ transform: translateZ(0px) translateX(0%) rotateY(0deg);
530
+ opacity: 1;
531
+ }
532
+
533
+ /* Effect 16: Blur */
534
+ .md-show.md-effect-16 ~ .md-overlay {
535
+ background: rgba(180,46,32,0.5);
536
+ }
537
+
538
+ .md-show.md-effect-16 ~ .container {
539
+ -webkit-filter: blur(3px);
540
+ -moz-filter: blur(3px);
541
+ filter: blur(3px);
542
+ }
543
+
544
+ .md-effect-16 .md-content {
545
+ -webkit-transform: translateY(-5%);
546
+ -moz-transform: translateY(-5%);
547
+ -ms-transform: translateY(-5%);
548
+ transform: translateY(-5%);
549
+ opacity: 0;
550
+ }
551
+
552
+ .md-show.md-effect-16 ~ .container,
553
+ .md-effect-16 .md-content {
554
+ -webkit-transition: all 0.3s;
555
+ -moz-transition: all 0.3s;
556
+ transition: all 0.3s;
557
+ }
558
+
559
+ .md-show.md-effect-16 .md-content {
560
+ -webkit-transform: translateY(0);
561
+ -moz-transform: translateY(0);
562
+ -ms-transform: translateY(0);
563
+ transform: translateY(0);
564
+ opacity: 1;
565
+ }
566
+
567
+ /* Effect 17: Slide in from bottom with perspective on container */
568
+ .md-show.md-effect-17 ~ .container {
569
+ height: 100%;
570
+ overflow: hidden;
571
+ -webkit-transition: -webkit-transform 0.3s;
572
+ -moz-transition: -moz-transform 0.3s;
573
+ transition: transform 0.3s;
574
+ }
575
+
576
+ .md-show.md-effect-17 ~ .container,
577
+ .md-show.md-effect-17 ~ .md-overlay {
578
+ -webkit-transform: rotateX(-2deg);
579
+ -moz-transform: rotateX(-2deg);
580
+ -ms-transform: rotateX(-2deg);
581
+ transform: rotateX(-2deg);
582
+ -webkit-transform-origin: 50% 0%;
583
+ -moz-transform-origin: 50% 0%;
584
+ transform-origin: 50% 0%;
585
+ -webkit-transform-style: preserve-3d;
586
+ -moz-transform-style: preserve-3d;
587
+ transform-style: preserve-3d;
588
+ }
589
+
590
+ .md-effect-17 .md-content {
591
+ opacity: 0;
592
+ -webkit-transform: translateY(200%);
593
+ -moz-transform: translateY(200%);
594
+ -ms-transform: translateY(200%);
595
+ transform: translateY(200%);
596
+ }
597
+
598
+ .md-show.md-effect-17 .md-content {
599
+ -webkit-transform: translateY(0);
600
+ -moz-transform: translateY(0);
601
+ -ms-transform: translateY(0);
602
+ transform: translateY(0);
603
+ opacity: 1;
604
+ -webkit-transition: all 0.3s 0.2s;
605
+ -moz-transition: all 0.3s 0.2s;
606
+ transition: all 0.3s 0.2s;
607
+ }
608
+
609
+ /* Effect 18: Slide from right with perspective on container */
610
+ .md-show.md-effect-18 ~ .container {
611
+ height: 100%;
612
+ overflow: hidden;
613
+ }
614
+
615
+ .md-show.md-effect-18 ~ .md-overlay {
616
+ background: rgba(143,27,15,0.8);
617
+ -webkit-transition: all 0.5s;
618
+ -moz-transition: all 0.5s;
619
+ transition: all 0.5s;
620
+ }
621
+
622
+ .md-show.md-effect-18 ~ .container,
623
+ .md-show.md-effect-18 ~ .md-overlay {
624
+ -webkit-transform-style: preserve-3d;
625
+ -webkit-transform-origin: 0% 50%;
626
+ -webkit-animation: rotateRightSideFirst 0.5s forwards ease-in;
627
+ -moz-transform-style: preserve-3d;
628
+ -moz-transform-origin: 0% 50%;
629
+ -moz-animation: rotateRightSideFirst 0.5s forwards ease-in;
630
+ transform-style: preserve-3d;
631
+ transform-origin: 0% 50%;
632
+ animation: rotateRightSideFirst 0.5s forwards ease-in;
633
+ }
634
+
635
+ @-webkit-keyframes rotateRightSideFirst {
636
+ 50% { -webkit-transform: translateZ(-50px) rotateY(5deg); -webkit-animation-timing-function: ease-out; }
637
+ 100% { -webkit-transform: translateZ(-200px); }
638
+ }
639
+
640
+ @-moz-keyframes rotateRightSideFirst {
641
+ 50% { -moz-transform: translateZ(-50px) rotateY(5deg); -moz-animation-timing-function: ease-out; }
642
+ 100% { -moz-transform: translateZ(-200px); }
643
+ }
644
+
645
+ @keyframes rotateRightSideFirst {
646
+ 50% { transform: translateZ(-50px) rotateY(5deg); animation-timing-function: ease-out; }
647
+ 100% { transform: translateZ(-200px); }
648
+ }
649
+
650
+ .md-effect-18 .md-content {
651
+ -webkit-transform: translateX(200%);
652
+ -moz-transform: translateX(200%);
653
+ -ms-transform: translateX(200%);
654
+ transform: translateX(200%);
655
+ opacity: 0;
656
+ }
657
+
658
+ .md-show.md-effect-18 .md-content {
659
+ -webkit-transform: translateX(0);
660
+ -moz-transform: translateX(0);
661
+ -ms-transform: translateX(0);
662
+ transform: translateX(0);
663
+ opacity: 1;
664
+ -webkit-transition: all 0.5s 0.1s;
665
+ -moz-transition: all 0.5s 0.1s;
666
+ transition: all 0.5s 0.1s;
667
+ }
668
+
669
+ /* Effect 19: Slip in from the top with perspective on container */
670
+ .md-show.md-effect-19 ~ .container {
671
+ height: 100%;
672
+ overflow: hidden;
673
+ }
674
+
675
+ .md-show.md-effect-19 ~ .md-overlay {
676
+ -webkit-transition: all 0.5s;
677
+ -moz-transition: all 0.5s;
678
+ transition: all 0.5s;
679
+ }
680
+
681
+ .md-show.md-effect-19 ~ .container,
682
+ .md-show.md-effect-19 ~ .md-overlay {
683
+ -webkit-transform-style: preserve-3d;
684
+ -webkit-transform-origin: 50% 100%;
685
+ -webkit-animation: OpenTop 0.5s forwards ease-in;
686
+ -moz-transform-style: preserve-3d;
687
+ -moz-transform-origin: 50% 100%;
688
+ -moz-animation: OpenTop 0.5s forwards ease-in;
689
+ transform-style: preserve-3d;
690
+ transform-origin: 50% 100%;
691
+ animation: OpenTop 0.5s forwards ease-in;
692
+ }
693
+
694
+ @-webkit-keyframes OpenTop {
695
+ 50% {
696
+ -webkit-transform: rotateX(10deg);
697
+ -webkit-animation-timing-function: ease-out;
698
+ }
699
+ }
700
+
701
+ @-moz-keyframes OpenTop {
702
+ 50% {
703
+ -moz-transform: rotateX(10deg);
704
+ -moz-animation-timing-function: ease-out;
705
+ }
706
+ }
707
+
708
+ @keyframes OpenTop {
709
+ 50% {
710
+ transform: rotateX(10deg);
711
+ animation-timing-function: ease-out;
712
+ }
713
+ }
714
+
715
+ .md-effect-19 .md-content {
716
+ -webkit-transform: translateY(-200%);
717
+ -moz-transform: translateY(-200%);
718
+ -ms-transform: translateY(-200%);
719
+ transform: translateY(-200%);
720
+ opacity: 0;
721
+ }
722
+
723
+ .md-show.md-effect-19 .md-content {
724
+ -webkit-transform: translateY(0);
725
+ -moz-transform: translateY(0);
726
+ -ms-transform: translateY(0);
727
+ transform: translateY(0);
728
+ opacity: 1;
729
+ -webkit-transition: all 0.5s 0.1s;
730
+ -moz-transition: all 0.5s 0.1s;
731
+ transition: all 0.5s 0.1s;
732
+ }
733
+
734
+ @media screen and (max-width: 32em) {
735
+ body { font-size: 75%; }
736
+ }
737
+
738
+ /****/
739
+
740
+ #close-btn {
741
+ position: absolute;
742
+ top: 3px;
743
+ right: 3px;
744
+ }
skin/frontend/base/default/evopin/fancypopup/css/style.css ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* General Style */
2
+ @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700);
3
+
4
+ @font-face {
5
+ font-family: 'codropsicons';
6
+ src:url('../fonts/codropsicons/codropsicons.eot');
7
+ src:url('../fonts/codropsicons/codropsicons.eot?#iefix') format('embedded-opentype'),
8
+ url('../fonts/codropsicons/codropsicons.woff') format('woff'),
9
+ url('../fonts/codropsicons/codropsicons.ttf') format('truetype'),
10
+ url('../fonts/codropsicons/codropsicons.svg#codropsicons') format('svg');
11
+ font-weight: normal;
12
+ font-style: normal;
13
+ }
14
+
15
+ div.md-modal { font-size: 100%; padding: 0; margin: 0; }
16
+
17
+ /* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
18
+ div.md-modal .clearfix:before, div.md-modal .clearfix:after { content: " "; display: table; }
19
+ div.md-modal .clearfix:after { clear: both; }
20
+
21
+ div.md-modal {
22
+ font-family: 'Lato', Calibri, Arial, sans-serif;
23
+ }
24
+
25
+ div.md-modal a {
26
+ color: #c0392b;
27
+ text-decoration: none;
28
+ }
29
+
30
+ div.md-modal a:hover,
31
+ div.md-modal a:active {
32
+ color: #333;
33
+ }
34
+
35
+ /* Header Style */
36
+ div.md-modal .main,
37
+ div.md-modal .container > header {
38
+ margin: 0 auto;
39
+ padding: 2em;
40
+ }
41
+
42
+ div.md-modal .container > header {
43
+ text-align: center;
44
+ background: #d94839;
45
+ padding: 3em;
46
+ }
47
+
48
+ div.md-modal .container > header h1 {
49
+ font-size: 2.625em;
50
+ line-height: 1.3;
51
+ margin: 0;
52
+ font-weight: 300;
53
+ }
54
+
55
+ div.md-modal .container > header span {
56
+ display: block;
57
+ font-size: 60%;
58
+ opacity: 0.7;
59
+ padding: 0 0 0.6em 0.1em;
60
+ }
61
+
62
+ /* Main Content */
63
+ div.md-modal .main {
64
+ max-width: 69em;
65
+ }
66
+
67
+ div.md-modal .column {
68
+ float: left;
69
+ width: 50%;
70
+ padding: 0 2em;
71
+ min-height: 300px;
72
+ position: relative;
73
+ }
74
+
75
+ div.md-modal .column:nth-child(2) {
76
+ box-shadow: -1px 0 0 rgba(0,0,0,0.1);
77
+ }
78
+
79
+ div.md-modal .column p {
80
+ font-weight: 300;
81
+ font-size: 2em;
82
+ padding: 0;
83
+ margin: 0;
84
+ text-align: right;
85
+ line-height: 1.5;
86
+ }
87
+
88
+ /* To Navigation Style */
89
+ div.md-modal .codrops-top {
90
+ background: #fff;
91
+ background: rgba(255, 255, 255, 0.2);
92
+ text-transform: uppercase;
93
+ width: 100%;
94
+ font-size: 0.69em;
95
+ line-height: 2.2;
96
+ }
97
+
98
+ div.md-modal .codrops-top a {
99
+ padding: 0 1em;
100
+ letter-spacing: 0.1em;
101
+ display: inline-block;
102
+ }
103
+
104
+ div.md-modal .codrops-top a:hover {
105
+ color: #e74c3c;
106
+ background: rgba(255,255,255,0.6);
107
+ }
108
+
109
+ div.md-modal .codrops-top span.right {
110
+ float: right;
111
+ }
112
+
113
+ div.md-modal .codrops-top span.right a {
114
+ float: left;
115
+ display: block;
116
+ }
117
+
118
+ div.md-modal .codrops-icon:before {
119
+ font-family: 'codropsicons';
120
+ margin: 0 4px;
121
+ speak: none;
122
+ font-style: normal;
123
+ font-weight: normal;
124
+ font-variant: normal;
125
+ text-transform: none;
126
+ line-height: 1;
127
+ -webkit-font-smoothing: antialiased;
128
+ }
129
+
130
+ div.md-modal .codrops-icon-drop:before {
131
+ content: "\e001";
132
+ }
133
+
134
+ div.md-modal .codrops-icon-prev:before {
135
+ content: "\e004";
136
+ }
137
+
138
+ div.md-modal button {
139
+ border: none;
140
+ padding: 0.6em 1.2em;
141
+ background: #c0392b;
142
+ color: #fff;
143
+ font-family: 'Lato', Calibri, Arial, sans-serif;
144
+ font-size: 1em;
145
+ letter-spacing: 1px;
146
+ text-transform: uppercase;
147
+ cursor: pointer;
148
+ display: inline-block;
149
+ margin: 3px 2px;
150
+ border-radius: 2px;
151
+ }
152
+
153
+ div.md-modal button:hover {
154
+ background: #A5281B;
155
+ }
156
+
157
+ div.md-modal @media screen and (max-width: 46.0625em) {
158
+ div.md-modal .column {
159
+ width: 100%;
160
+ min-width: auto;
161
+ min-height: auto;
162
+ padding: 1em;
163
+ }
164
+
165
+ div.md-modal .column p {
166
+ text-align: left;
167
+ font-size: 1.5em;
168
+ }
169
+
170
+ div.md-modal .column:nth-child(2) {
171
+ box-shadow: 0 -1px 0 rgba(0,0,0,0.1);
172
+ }
173
+ }
174
+
175
+ div.md-modal @media screen and (max-width: 25em) {
176
+
177
+ div.md-modal .codrops-icon span {
178
+ display: none;
179
+ }
180
+
181
+ }
skin/frontend/base/default/evopin/fancypopup/fonts/.DS_Store ADDED
Binary file
skin/frontend/base/default/evopin/fancypopup/fonts/codropsicons/.DS_Store ADDED
Binary file
skin/frontend/base/default/evopin/fancypopup/fonts/codropsicons/codropsicons.eot ADDED
Binary file
skin/frontend/base/default/evopin/fancypopup/fonts/codropsicons/codropsicons.svg ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>
5
+ This is a custom SVG font generated by IcoMoon.
6
+ <iconset grid="14"></iconset>
7
+ </metadata>
8
+ <defs>
9
+ <font id="codropsicons" horiz-adv-x="448" >
10
+ <font-face units-per-em="448" ascent="384" descent="-64" />
11
+ <missing-glyph horiz-adv-x="448" />
12
+ <glyph unicode="&#xe001;" d="M 221.657,359.485 ,m0.00,0.00,c 0.00,0.00 -132.984-182.838 -132.205-286.236 0.515-68.522 61.089-123.688 135.314-123.218 74.202,0.479 133.943,56.421 133.428,124.943 C 357.414,178.368 221.657,359.485 221.657,359.485 z" />
13
+ <glyph unicode="&#xe004;" d="M 384.00,160.00l0.00-32.00 q0.00-13.25 -8.125-22.625t-21.125-9.375l-176.00,0.00 l 73.25-73.50q 9.50-9.00 9.50-22.50t-9.50-22.50l-18.75-19.00q-9.25-9.25 -22.50-9.25q-13.00,0.00 -22.75,9.25l-162.75,163.00q-9.25,9.25 -9.25,22.50q0.00,13.00 9.25,22.75l 162.75,162.50q 9.50,9.50 22.75,9.50q 13.00,0.00 22.50-9.50l 18.75-18.50q 9.50-9.50 9.50-22.75t-9.50-22.75l-73.25-73.25l 176.00,0.00 q 13.00,0.00 21.125-9.375 t 8.125-22.625z" horiz-adv-x="384" />
14
+ <glyph unicode="&#xe002;" d="M 407.273-23.273c0.00,0.00-325.818,0.00-366.545,0.00s-40.727,40.727-40.727,40.727l0.00,142.545 l 101.818,183.273l 244.364,0.00 l 101.818-183.273c0.00,0.00,0.00-101.818,0.00-142.545S 407.273-23.273, 407.273-23.273z M 325.818,302.545L 122.182,302.545
15
+ l-71.273-142.545L 142.545,160.00 c0.00,0.00, 40.727,0.00, 40.727-40.727l0.00-20.364 l 81.455,0.00 l0.00,20.364 c0.00,0.00,0.00,40.727, 40.727,40.727l 91.636,0.00 L 325.818,302.545z M 407.273,119.273l-96.911,0.00 C 307.532,113.917, 305.455,107.503, 305.455,98.909c0.00-40.727-40.727-40.727-40.727-40.727L 183.273,58.182 c0.00,0.00-40.727,0.00-40.727,40.727
16
+ c0.00,8.593-2.077,15.008-4.908,20.364L 40.727,119.273 l0.00-101.818 l 366.545,0.00 L 407.273,119.273 z M 132.364,221.091l 183.273,0.00 L 325.818,200.727L 122.182,200.727 L 132.364,221.091z M 152.727,261.818l 142.545,0.00 L 305.455,241.455L 142.545,241.455 L 152.727,261.818z" />
17
+ <glyph unicode="&#xe000;" d="M 368.00,144.00q0.00-13.50 -9.25-22.75l-162.75-162.75q-9.75-9.25 -22.75-9.25q-12.75,0.00 -22.50,9.25l-18.75,18.75q-9.50,9.50 -9.50,22.75t 9.50,22.75l 73.25,73.25l-176.00,0.00 q-13.00,0.00 -21.125,9.375t-8.125,22.625l0.00,32.00 q0.00,13.25 8.125,22.625t 21.125,9.375l 176.00,0.00 l-73.25,73.50q-9.50,9.00 -9.50,22.50t 9.50,22.50l 18.75,18.75q 9.50,9.50 22.50,9.50q 13.25,0.00 22.75-9.50l 162.75-162.75q 9.25-8.75 9.25-22.50z" horiz-adv-x="384" />
18
+ <glyph unicode="&#xe003;" d="M 224.00-64.00C 100.291-64.00,0.00,36.291,0.00,160.00S 100.291,384.00, 224.00,384.00s 224.00-100.291, 224.00-224.00S 347.709-64.00, 224.00-64.00z
19
+ M 224.00,343.273c-101.228,0.00-183.273-82.045-183.273-183.273s 82.045-183.273, 183.273-183.273s 183.273,82.045, 183.273,183.273S 325.228,343.273, 224.00,343.273z M 244.364,122.164C 244.364,111.005, 244.364,98.909, 244.364,98.909l-40.727,0.00 c0.00,0.00,0.00,29.466,0.00,40.727
20
+ s 9.123,20.364, 20.364,20.364l0.00,0.00c 22.481,0.00, 40.727,18.246, 40.727,40.727s-18.246,40.727-40.727,40.727S 183.273,223.209, 183.273,200.727c0.00-7.453, 2.138-14.356, 5.641-20.364L 145.437,180.364 C 143.727,186.90, 142.545,193.661, 142.545,200.727
21
+ c0.00,44.983, 36.471,81.455, 81.455,81.455s 81.455-36.471, 81.455-81.455C 305.455,162.831, 279.45,131.247, 244.364,122.164z M 244.364,37.818l-40.727,0.00 l0.00,40.727 l 40.727,0.00 L 244.364,37.818 z" />
22
+ <glyph unicode="&#x20;" horiz-adv-x="224" />
23
+ <glyph class="hidden" unicode="&#xf000;" d="M0,384L 448 -64L0 -64 z" horiz-adv-x="0" />
24
+ </font></defs></svg>
skin/frontend/base/default/evopin/fancypopup/fonts/codropsicons/codropsicons.ttf ADDED
Binary file
skin/frontend/base/default/evopin/fancypopup/fonts/codropsicons/codropsicons.woff ADDED
Binary file
skin/frontend/base/default/evopin/fancypopup/fonts/codropsicons/license.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ Icon Set: Font Awesome -- http://fortawesome.github.com/Font-Awesome/
2
+ License: SIL -- http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
3
+
4
+
5
+ Icon Set: Eco Ico -- http://dribbble.com/shots/665585-Eco-Ico
6
+ License: CC0 -- http://creativecommons.org/publicdomain/zero/1.0/
skin/frontend/base/default/evopin/fancypopup/js/.DS_Store ADDED
Binary file
skin/frontend/base/default/evopin/fancypopup/js/fancypopup.js ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * EvoPin FancyPopup version 0.0.1
3
+ */
4
+
5
+ (function ( $ ) {
6
+
7
+ $.fn.fancypopup = function( options ) {
8
+
9
+ switch(options) {
10
+ case 'show':
11
+ this.addClass('md-show');
12
+ break;
13
+ case 'hide':
14
+ this.removeClass('md-show');
15
+ break;
16
+ default:
17
+ //
18
+ break;
19
+ }
20
+
21
+ //
22
+ var settings = $.extend({
23
+ // These are the defaults.
24
+
25
+ }, options );
26
+
27
+ };
28
+
29
+ }( jQuery ));
skin/frontend/base/default/evopin/fancypopup/js/jquery-2.1.0.min.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ /*! jQuery v2.1.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
2
+ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m=a.document,n="2.1.0",o=function(a,b){return new o.fn.init(a,b)},p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};o.fn=o.prototype={jquery:n,constructor:o,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=o.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return o.each(this,a,b)},map:function(a){return this.pushStack(o.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},o.extend=o.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||o.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(o.isPlainObject(d)||(e=o.isArray(d)))?(e?(e=!1,f=c&&o.isArray(c)?c:[]):f=c&&o.isPlainObject(c)?c:{},g[b]=o.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},o.extend({expando:"jQuery"+(n+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===o.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isPlainObject:function(a){if("object"!==o.type(a)||a.nodeType||o.isWindow(a))return!1;try{if(a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}return!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=o.trim(a),a&&(1===a.indexOf("use strict")?(b=m.createElement("script"),b.text=a,m.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":k.call(a)},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?o.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),o.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||o.guid++,f):void 0},now:Date.now,support:l}),o.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=o.type(a);return"function"===c||o.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="<select t=''><option selected=''></option></select>",a.querySelectorAll("[t^='']").length&&o.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!='']:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=jb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=kb(b);function nb(){}nb.prototype=d.filters=d.pseudos,d.setFilters=new nb;function ob(a,b){var c,e,f,g,h,i,j,k=x[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=Q.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?db.error(a):x(a,i).slice(0)}function pb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);o.find=t,o.expr=t.selectors,o.expr[":"]=o.expr.pseudos,o.unique=t.uniqueSort,o.text=t.getText,o.isXMLDoc=t.isXML,o.contains=t.contains;var u=o.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(o.isFunction(b))return o.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return o.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return o.filter(b,a,c);b=o.filter(b,a)}return o.grep(a,function(a){return g.call(b,a)>=0!==c})}o.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?o.find.matchesSelector(d,a)?[d]:[]:o.find.matches(a,o.grep(b,function(a){return 1===a.nodeType}))},o.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(o(a).filter(function(){for(b=0;c>b;b++)if(o.contains(e[b],this))return!0}));for(b=0;c>b;b++)o.find(a,e[b],d);return d=this.pushStack(c>1?o.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?o(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=o.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof o?b[0]:b,o.merge(this,o.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:m,!0)),v.test(c[1])&&o.isPlainObject(b))for(c in b)o.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=m.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=m,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):o.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(o):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),o.makeArray(a,this))};A.prototype=o.fn,y=o(m);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};o.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&o(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),o.fn.extend({has:function(a){var b=o(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(o.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?o(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&o.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?o.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(o(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(o.unique(o.merge(this.get(),o(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}o.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return o.dir(a,"parentNode")},parentsUntil:function(a,b,c){return o.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return o.dir(a,"nextSibling")},prevAll:function(a){return o.dir(a,"previousSibling")},nextUntil:function(a,b,c){return o.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return o.dir(a,"previousSibling",c)},siblings:function(a){return o.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return o.sibling(a.firstChild)},contents:function(a){return a.contentDocument||o.merge([],a.childNodes)}},function(a,b){o.fn[a]=function(c,d){var e=o.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=o.filter(d,e)),this.length>1&&(C[a]||o.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return o.each(a.match(E)||[],function(a,c){b[c]=!0}),b}o.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):o.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){o.each(b,function(b,c){var d=o.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&o.each(arguments,function(a,b){var c;while((c=o.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?o.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},o.extend({Deferred:function(a){var b=[["resolve","done",o.Callbacks("once memory"),"resolved"],["reject","fail",o.Callbacks("once memory"),"rejected"],["notify","progress",o.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return o.Deferred(function(c){o.each(b,function(b,f){var g=o.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&o.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?o.extend(a,d):d}},e={};return d.pipe=d.then,o.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&o.isFunction(a.promise)?e:0,g=1===f?a:o.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&o.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;o.fn.ready=function(a){return o.ready.promise().done(a),this},o.extend({isReady:!1,readyWait:1,holdReady:function(a){a?o.readyWait++:o.ready(!0)},ready:function(a){(a===!0?--o.readyWait:o.isReady)||(o.isReady=!0,a!==!0&&--o.readyWait>0||(H.resolveWith(m,[o]),o.fn.trigger&&o(m).trigger("ready").off("ready")))}});function I(){m.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),o.ready()}o.ready.promise=function(b){return H||(H=o.Deferred(),"complete"===m.readyState?setTimeout(o.ready):(m.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},o.ready.promise();var J=o.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===o.type(c)){e=!0;for(h in c)o.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,o.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(o(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};o.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=o.expando+Math.random()}K.uid=1,K.accepts=o.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,o.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(o.isEmptyObject(f))o.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,o.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{o.isArray(b)?d=b.concat(b.map(o.camelCase)):(e=o.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!o.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?o.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}o.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),o.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;
3
+ while(c--)d=g[c].name,0===d.indexOf("data-")&&(d=o.camelCase(d.slice(5)),P(f,d,e[d]));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=o.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),o.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||o.isArray(c)?d=L.access(a,b,o.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=o.queue(a,b),d=c.length,e=c.shift(),f=o._queueHooks(a,b),g=function(){o.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:o.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),o.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?o.queue(this[0],a):void 0===b?this:this.each(function(){var c=o.queue(this,a,b);o._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&o.dequeue(this,a)})},dequeue:function(a){return this.each(function(){o.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=o.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=L.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,R=["Top","Right","Bottom","Left"],S=function(a,b){return a=b||a,"none"===o.css(a,"display")||!o.contains(a.ownerDocument,a)},T=/^(?:checkbox|radio)$/i;!function(){var a=m.createDocumentFragment(),b=a.appendChild(m.createElement("div"));b.innerHTML="<input type='radio' checked='checked' name='t'/>",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";l.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return m.activeElement}catch(a){}}o.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=o.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof o!==U&&o.event.triggered!==b.type?o.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],n=q=h[1],p=(h[2]||"").split(".").sort(),n&&(l=o.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=o.event.special[n]||{},k=o.extend({type:n,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&o.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(n,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),o.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],n=q=h[1],p=(h[2]||"").split(".").sort(),n){l=o.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||o.removeEvent(a,n,r.handle),delete i[n])}else for(n in i)o.event.remove(a,n+b[j],c,d,!0);o.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,p=[d||m],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||m,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+o.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[o.expando]?b:new o.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:o.makeArray(c,[b]),n=o.event.special[q]||{},e||!n.trigger||n.trigger.apply(d,c)!==!1)){if(!e&&!n.noBubble&&!o.isWindow(d)){for(i=n.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||m)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:n.bindType||q,l=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),l&&l.apply(g,c),l=k&&g[k],l&&l.apply&&o.acceptData(g)&&(b.result=l.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||n._default&&n._default.apply(p.pop(),c)!==!1||!o.acceptData(d)||k&&o.isFunction(d[q])&&!o.isWindow(d)&&(h=d[k],h&&(d[k]=null),o.event.triggered=q,d[q](),o.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=o.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=o.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=o.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((o.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?o(e,this).index(i)>=0:o.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||m,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[o.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=W.test(e)?this.mouseHooks:V.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new o.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=m),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&o.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return o.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=o.extend(new o.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?o.event.trigger(e,null,b):o.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},o.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},o.Event=function(a,b){return this instanceof o.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.getPreventDefault&&a.getPreventDefault()?Z:$):this.type=a,b&&o.extend(this,b),this.timeStamp=a&&a.timeStamp||o.now(),void(this[o.expando]=!0)):new o.Event(a,b)},o.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=Z,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=Z,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z,this.stopPropagation()}},o.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){o.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!o.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.focusinBubbles||o.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){o.event.simulate(b,a.target,o.event.fix(a),!0)};o.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=L.access(d,b);e||d.addEventListener(a,c,!0),L.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=L.access(d,b)-1;e?L.access(d,b,e):(d.removeEventListener(a,c,!0),L.remove(d,b))}}}),o.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=$;else if(!d)return this;return 1===e&&(f=d,d=function(a){return o().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=o.guid++)),this.each(function(){o.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,o(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=$),this.each(function(){o.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){o.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?o.event.trigger(a,b,c,!0):void 0}});var ab=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ib={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return o.nodeName(a,"table")&&o.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)o.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=o.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&o.nodeName(a,b)?o.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}o.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=o.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||o.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,n=a.length;n>m;m++)if(e=a[m],e||0===e)if("object"===o.type(e))o.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1></$2>")+h[2],j=h[0];while(j--)f=f.lastChild;o.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===o.inArray(e,d))&&(i=o.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f,g,h=o.event.special,i=0;void 0!==(c=a[i]);i++){if(o.acceptData(c)&&(f=c[L.expando],f&&(b=L.cache[f]))){if(d=Object.keys(b.events||{}),d.length)for(g=0;void 0!==(e=d[g]);g++)h[e]?o.event.remove(c,e):o.removeEvent(c,e,b.handle);L.cache[f]&&delete L.cache[f]}delete M.cache[c[M.expando]]}}}),o.fn.extend({text:function(a){return J(this,function(a){return void 0===a?o.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?o.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||o.cleanData(ob(c)),c.parentNode&&(b&&o.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(o.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return o.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(o.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,o.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,n=k-1,p=a[0],q=o.isFunction(p);if(q||k>1&&"string"==typeof p&&!l.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(k&&(c=o.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=o.map(ob(c,"script"),kb),g=f.length;k>j;j++)h=c,j!==n&&(h=o.clone(h,!0,!0),g&&o.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,o.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&o.contains(i,h)&&(h.src?o._evalUrl&&o._evalUrl(h.src):o.globalEval(h.textContent.replace(hb,"")))}return this}}),o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){o.fn[a]=function(a){for(var c,d=[],e=o(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),o(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d=o(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:o.css(d[0],"display");return d.detach(),e}function tb(a){var b=m,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||o("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=qb[0].contentDocument,b.write(),b.close(),c=sb(a,b),qb.detach()),rb[a]=c),c}var ub=/^margin/,vb=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),wb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)};function xb(a,b,c){var d,e,f,g,h=a.style;return c=c||wb(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||o.contains(a.ownerDocument,a)||(g=o.style(a,b)),vb.test(g)&&ub.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function yb(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",e=m.documentElement,f=m.createElement("div"),g=m.createElement("div");g.style.backgroundClip="content-box",g.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===g.style.backgroundClip,f.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",f.appendChild(g);function h(){g.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",e.appendChild(f);var d=a.getComputedStyle(g,null);b="1%"!==d.top,c="4px"===d.width,e.removeChild(f)}a.getComputedStyle&&o.extend(l,{pixelPosition:function(){return h(),b},boxSizingReliable:function(){return null==c&&h(),c},reliableMarginRight:function(){var b,c=g.appendChild(m.createElement("div"));return c.style.cssText=g.style.cssText=d,c.style.marginRight=c.style.width="0",g.style.width="1px",e.appendChild(f),b=!parseFloat(a.getComputedStyle(c,null).marginRight),e.removeChild(f),g.innerHTML="",b}})}(),o.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var zb=/^(none|table(?!-c[ea]).+)/,Ab=new RegExp("^("+Q+")(.*)$","i"),Bb=new RegExp("^([+-])=("+Q+")","i"),Cb={position:"absolute",visibility:"hidden",display:"block"},Db={letterSpacing:0,fontWeight:400},Eb=["Webkit","O","Moz","ms"];function Fb(a,b){if(b in a)return b;var c=b[0].toUpperCase()+b.slice(1),d=b,e=Eb.length;while(e--)if(b=Eb[e]+c,b in a)return b;return d}function Gb(a,b,c){var d=Ab.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Hb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=o.css(a,c+R[f],!0,e)),d?("content"===c&&(g-=o.css(a,"padding"+R[f],!0,e)),"margin"!==c&&(g-=o.css(a,"border"+R[f]+"Width",!0,e))):(g+=o.css(a,"padding"+R[f],!0,e),"padding"!==c&&(g+=o.css(a,"border"+R[f]+"Width",!0,e)));return g}function Ib(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=wb(a),g="border-box"===o.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=xb(a,b,f),(0>e||null==e)&&(e=a.style[b]),vb.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Hb(a,b,c||(g?"border":"content"),d,f)+"px"}function Jb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=L.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&S(d)&&(f[g]=L.access(d,"olddisplay",tb(d.nodeName)))):f[g]||(e=S(d),(c&&"none"!==c||!e)&&L.set(d,"olddisplay",e?c:o.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}o.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=o.camelCase(b),i=a.style;return b=o.cssProps[h]||(o.cssProps[h]=Fb(i,h)),g=o.cssHooks[b]||o.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Bb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(o.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||o.cssNumber[h]||(c+="px"),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]="",i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=o.camelCase(b);return b=o.cssProps[h]||(o.cssProps[h]=Fb(a.style,h)),g=o.cssHooks[b]||o.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=xb(a,b,d)),"normal"===e&&b in Db&&(e=Db[b]),""===c||c?(f=parseFloat(e),c===!0||o.isNumeric(f)?f||0:e):e}}),o.each(["height","width"],function(a,b){o.cssHooks[b]={get:function(a,c,d){return c?0===a.offsetWidth&&zb.test(o.css(a,"display"))?o.swap(a,Cb,function(){return Ib(a,b,d)}):Ib(a,b,d):void 0},set:function(a,c,d){var e=d&&wb(a);return Gb(a,c,d?Hb(a,b,d,"border-box"===o.css(a,"boxSizing",!1,e),e):0)}}}),o.cssHooks.marginRight=yb(l.reliableMarginRight,function(a,b){return b?o.swap(a,{display:"inline-block"},xb,[a,"marginRight"]):void 0}),o.each({margin:"",padding:"",border:"Width"},function(a,b){o.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+R[d]+b]=f[d]||f[d-2]||f[0];return e}},ub.test(a)||(o.cssHooks[a+b].set=Gb)}),o.fn.extend({css:function(a,b){return J(this,function(a,b,c){var d,e,f={},g=0;if(o.isArray(b)){for(d=wb(a),e=b.length;e>g;g++)f[b[g]]=o.css(a,b[g],!1,d);return f}return void 0!==c?o.style(a,b,c):o.css(a,b)},a,b,arguments.length>1)},show:function(){return Jb(this,!0)},hide:function(){return Jb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){S(this)?o(this).show():o(this).hide()})}});function Kb(a,b,c,d,e){return new Kb.prototype.init(a,b,c,d,e)}o.Tween=Kb,Kb.prototype={constructor:Kb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(o.cssNumber[c]?"":"px")},cur:function(){var a=Kb.propHooks[this.prop];return a&&a.get?a.get(this):Kb.propHooks._default.get(this)},run:function(a){var b,c=Kb.propHooks[this.prop];return this.pos=b=this.options.duration?o.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Kb.propHooks._default.set(this),this}},Kb.prototype.init.prototype=Kb.prototype,Kb.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=o.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){o.fx.step[a.prop]?o.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[o.cssProps[a.prop]]||o.cssHooks[a.prop])?o.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Kb.propHooks.scrollTop=Kb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},o.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},o.fx=Kb.prototype.init,o.fx.step={};var Lb,Mb,Nb=/^(?:toggle|show|hide)$/,Ob=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),Pb=/queueHooks$/,Qb=[Vb],Rb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=Ob.exec(b),f=e&&e[3]||(o.cssNumber[a]?"":"px"),g=(o.cssNumber[a]||"px"!==f&&+d)&&Ob.exec(o.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,o.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function Sb(){return setTimeout(function(){Lb=void 0}),Lb=o.now()}function Tb(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=R[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ub(a,b,c){for(var d,e=(Rb[b]||[]).concat(Rb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Vb(a,b,c){var d,e,f,g,h,i,j,k=this,l={},m=a.style,n=a.nodeType&&S(a),p=L.get(a,"fxshow");c.queue||(h=o._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,k.always(function(){k.always(function(){h.unqueued--,o.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[m.overflow,m.overflowX,m.overflowY],j=o.css(a,"display"),"none"===j&&(j=tb(a.nodeName)),"inline"===j&&"none"===o.css(a,"float")&&(m.display="inline-block")),c.overflow&&(m.overflow="hidden",k.always(function(){m.overflow=c.overflow[0],m.overflowX=c.overflow[1],m.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Nb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(n?"hide":"show")){if("show"!==e||!p||void 0===p[d])continue;n=!0}l[d]=p&&p[d]||o.style(a,d)}if(!o.isEmptyObject(l)){p?"hidden"in p&&(n=p.hidden):p=L.access(a,"fxshow",{}),f&&(p.hidden=!n),n?o(a).show():k.done(function(){o(a).hide()}),k.done(function(){var b;L.remove(a,"fxshow");for(b in l)o.style(a,b,l[b])});for(d in l)g=Ub(n?p[d]:0,d,k),d in p||(p[d]=g.start,n&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function Wb(a,b){var c,d,e,f,g;for(c in a)if(d=o.camelCase(c),e=b[d],f=a[c],o.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=o.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function Xb(a,b,c){var d,e,f=0,g=Qb.length,h=o.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Lb||Sb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:o.extend({},b),opts:o.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:Lb||Sb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=o.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(Wb(k,j.opts.specialEasing);g>f;f++)if(d=Qb[f].call(j,a,k,j.opts))return d;return o.map(k,Ub,j),o.isFunction(j.opts.start)&&j.opts.start.call(a,j),o.fx.timer(o.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}o.Animation=o.extend(Xb,{tweener:function(a,b){o.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],Rb[c]=Rb[c]||[],Rb[c].unshift(b)},prefilter:function(a,b){b?Qb.unshift(a):Qb.push(a)}}),o.speed=function(a,b,c){var d=a&&"object"==typeof a?o.extend({},a):{complete:c||!c&&b||o.isFunction(a)&&a,duration:a,easing:c&&b||b&&!o.isFunction(b)&&b};return d.duration=o.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in o.fx.speeds?o.fx.speeds[d.duration]:o.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){o.isFunction(d.old)&&d.old.call(this),d.queue&&o.dequeue(this,d.queue)},d},o.fn.extend({fadeTo:function(a,b,c,d){return this.filter(S).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=o.isEmptyObject(a),f=o.speed(b,c,d),g=function(){var b=Xb(this,o.extend({},a),f);(e||L.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=o.timers,g=L.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Pb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&o.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=L.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=o.timers,g=d?d.length:0;for(c.finish=!0,o.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),o.each(["toggle","show","hide"],function(a,b){var c=o.fn[b];o.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Tb(b,!0),a,d,e)}}),o.each({slideDown:Tb("show"),slideUp:Tb("hide"),slideToggle:Tb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){o.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),o.timers=[],o.fx.tick=function(){var a,b=0,c=o.timers;for(Lb=o.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||o.fx.stop(),Lb=void 0},o.fx.timer=function(a){o.timers.push(a),a()?o.fx.start():o.timers.pop()},o.fx.interval=13,o.fx.start=function(){Mb||(Mb=setInterval(o.fx.tick,o.fx.interval))},o.fx.stop=function(){clearInterval(Mb),Mb=null},o.fx.speeds={slow:600,fast:200,_default:400},o.fn.delay=function(a,b){return a=o.fx?o.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=m.createElement("input"),b=m.createElement("select"),c=b.appendChild(m.createElement("option"));a.type="checkbox",l.checkOn=""!==a.value,l.optSelected=c.selected,b.disabled=!0,l.optDisabled=!c.disabled,a=m.createElement("input"),a.value="t",a.type="radio",l.radioValue="t"===a.value}();var Yb,Zb,$b=o.expr.attrHandle;o.fn.extend({attr:function(a,b){return J(this,o.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){o.removeAttr(this,a)})}}),o.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===U?o.prop(a,b,c):(1===f&&o.isXMLDoc(a)||(b=b.toLowerCase(),d=o.attrHooks[b]||(o.expr.match.bool.test(b)?Zb:Yb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=o.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void o.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=o.propFix[c]||c,o.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&o.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),Zb={set:function(a,b,c){return b===!1?o.removeAttr(a,c):a.setAttribute(c,c),c}},o.each(o.expr.match.bool.source.match(/\w+/g),function(a,b){var c=$b[b]||o.find.attr;$b[b]=function(a,b,d){var e,f;
4
+ return d||(f=$b[b],$b[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$b[b]=f),e}});var _b=/^(?:input|select|textarea|button)$/i;o.fn.extend({prop:function(a,b){return J(this,o.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[o.propFix[a]||a]})}}),o.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!o.isXMLDoc(a),f&&(b=o.propFix[b]||b,e=o.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||_b.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),l.optSelected||(o.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),o.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){o.propFix[this.toLowerCase()]=this});var ac=/[\t\r\n\f]/g;o.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(o.isFunction(a))return this.each(function(b){o(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=o.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(o.isFunction(a))return this.each(function(b){o(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?o.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(o.isFunction(a)?function(c){o(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=o(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===U||"boolean"===c)&&(this.className&&L.set(this,"__className__",this.className),this.className=this.className||a===!1?"":L.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ac," ").indexOf(b)>=0)return!0;return!1}});var bc=/\r/g;o.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=o.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,o(this).val()):a,null==e?e="":"number"==typeof e?e+="":o.isArray(e)&&(e=o.map(e,function(a){return null==a?"":a+""})),b=o.valHooks[this.type]||o.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=o.valHooks[e.type]||o.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(bc,""):null==c?"":c)}}}),o.extend({valHooks:{select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(l.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&o.nodeName(c.parentNode,"optgroup"))){if(b=o(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=o.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=o.inArray(o(d).val(),f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),o.each(["radio","checkbox"],function(){o.valHooks[this]={set:function(a,b){return o.isArray(b)?a.checked=o.inArray(o(a).val(),b)>=0:void 0}},l.checkOn||(o.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),o.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){o.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),o.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var cc=o.now(),dc=/\?/;o.parseJSON=function(a){return JSON.parse(a+"")},o.parseXML=function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&o.error("Invalid XML: "+a),b};var ec,fc,gc=/#.*$/,hc=/([?&])_=[^&]*/,ic=/^(.*?):[ \t]*([^\r\n]*)$/gm,jc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,kc=/^(?:GET|HEAD)$/,lc=/^\/\//,mc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,nc={},oc={},pc="*/".concat("*");try{fc=location.href}catch(qc){fc=m.createElement("a"),fc.href="",fc=fc.href}ec=mc.exec(fc.toLowerCase())||[];function rc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(o.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function sc(a,b,c,d){var e={},f=a===oc;function g(h){var i;return e[h]=!0,o.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function tc(a,b){var c,d,e=o.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&o.extend(!0,a,d),a}function uc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function vc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}o.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fc,type:"GET",isLocal:jc.test(ec[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":pc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":o.parseJSON,"text xml":o.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?tc(tc(a,o.ajaxSettings),b):tc(o.ajaxSettings,a)},ajaxPrefilter:rc(nc),ajaxTransport:rc(oc),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=o.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?o(l):o.event,n=o.Deferred(),p=o.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!f){f={};while(b=ic.exec(e))f[b[1].toLowerCase()]=b[2]}b=f[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return c&&c.abort(b),x(0,b),this}};if(n.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||fc)+"").replace(gc,"").replace(lc,ec[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=o.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(h=mc.exec(k.url.toLowerCase()),k.crossDomain=!(!h||h[1]===ec[1]&&h[2]===ec[2]&&(h[3]||("http:"===h[1]?"80":"443"))===(ec[3]||("http:"===ec[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=o.param(k.data,k.traditional)),sc(nc,k,b,v),2===t)return v;i=k.global,i&&0===o.active++&&o.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!kc.test(k.type),d=k.url,k.hasContent||(k.data&&(d=k.url+=(dc.test(d)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=hc.test(d)?d.replace(hc,"$1_="+cc++):d+(dc.test(d)?"&":"?")+"_="+cc++)),k.ifModified&&(o.lastModified[d]&&v.setRequestHeader("If-Modified-Since",o.lastModified[d]),o.etag[d]&&v.setRequestHeader("If-None-Match",o.etag[d])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+pc+"; q=0.01":""):k.accepts["*"]);for(j in k.headers)v.setRequestHeader(j,k.headers[j]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(j in{success:1,error:1,complete:1})v[j](k[j]);if(c=sc(oc,k,b,v)){v.readyState=1,i&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,c.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,f,h){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),c=void 0,e=h||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,f&&(u=uc(k,v,f)),u=vc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(o.lastModified[d]=w),w=v.getResponseHeader("etag"),w&&(o.etag[d]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?n.resolveWith(l,[r,x,v]):n.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,i&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),i&&(m.trigger("ajaxComplete",[v,k]),--o.active||o.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return o.get(a,b,c,"json")},getScript:function(a,b){return o.get(a,void 0,b,"script")}}),o.each(["get","post"],function(a,b){o[b]=function(a,c,d,e){return o.isFunction(c)&&(e=e||d,d=c,c=void 0),o.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),o.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){o.fn[b]=function(a){return this.on(b,a)}}),o._evalUrl=function(a){return o.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},o.fn.extend({wrapAll:function(a){var b;return o.isFunction(a)?this.each(function(b){o(this).wrapAll(a.call(this,b))}):(this[0]&&(b=o(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return this.each(o.isFunction(a)?function(b){o(this).wrapInner(a.call(this,b))}:function(){var b=o(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=o.isFunction(a);return this.each(function(c){o(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){o.nodeName(this,"body")||o(this).replaceWith(this.childNodes)}).end()}}),o.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},o.expr.filters.visible=function(a){return!o.expr.filters.hidden(a)};var wc=/%20/g,xc=/\[\]$/,yc=/\r?\n/g,zc=/^(?:submit|button|image|reset|file)$/i,Ac=/^(?:input|select|textarea|keygen)/i;function Bc(a,b,c,d){var e;if(o.isArray(b))o.each(b,function(b,e){c||xc.test(a)?d(a,e):Bc(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==o.type(b))d(a,b);else for(e in b)Bc(a+"["+e+"]",b[e],c,d)}o.param=function(a,b){var c,d=[],e=function(a,b){b=o.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=o.ajaxSettings&&o.ajaxSettings.traditional),o.isArray(a)||a.jquery&&!o.isPlainObject(a))o.each(a,function(){e(this.name,this.value)});else for(c in a)Bc(c,a[c],b,e);return d.join("&").replace(wc,"+")},o.fn.extend({serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=o.prop(this,"elements");return a?o.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!o(this).is(":disabled")&&Ac.test(this.nodeName)&&!zc.test(a)&&(this.checked||!T.test(a))}).map(function(a,b){var c=o(this).val();return null==c?null:o.isArray(c)?o.map(c,function(a){return{name:b.name,value:a.replace(yc,"\r\n")}}):{name:b.name,value:c.replace(yc,"\r\n")}}).get()}}),o.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Cc=0,Dc={},Ec={0:200,1223:204},Fc=o.ajaxSettings.xhr();a.ActiveXObject&&o(a).on("unload",function(){for(var a in Dc)Dc[a]()}),l.cors=!!Fc&&"withCredentials"in Fc,l.ajax=Fc=!!Fc,o.ajaxTransport(function(a){var b;return l.cors||Fc&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Cc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Dc[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Ec[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Dc[g]=b("abort"),f.send(a.hasContent&&a.data||null)},abort:function(){b&&b()}}:void 0}),o.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return o.globalEval(a),a}}}),o.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),o.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=o("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),m.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Gc=[],Hc=/(=)\?(?=&|$)|\?\?/;o.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Gc.pop()||o.expando+"_"+cc++;return this[a]=!0,a}}),o.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Hc.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Hc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=o.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Hc,"$1"+e):b.jsonp!==!1&&(b.url+=(dc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||o.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Gc.push(e)),g&&o.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),o.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||m;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=o.buildFragment([a],b,e),e&&e.length&&o(e).remove(),o.merge([],d.childNodes))};var Ic=o.fn.load;o.fn.load=function(a,b,c){if("string"!=typeof a&&Ic)return Ic.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=a.slice(h),a=a.slice(0,h)),o.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&o.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?o("<div>").append(o.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},o.expr.filters.animated=function(a){return o.grep(o.timers,function(b){return a===b.elem}).length};var Jc=a.document.documentElement;function Kc(a){return o.isWindow(a)?a:9===a.nodeType&&a.defaultView}o.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=o.css(a,"position"),l=o(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=o.css(a,"top"),i=o.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),o.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},o.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){o.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,o.contains(b,d)?(typeof d.getBoundingClientRect!==U&&(e=d.getBoundingClientRect()),c=Kc(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===o.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),o.nodeName(a[0],"html")||(d=a.offset()),d.top+=o.css(a[0],"borderTopWidth",!0),d.left+=o.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-o.css(c,"marginTop",!0),left:b.left-d.left-o.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||Jc;while(a&&!o.nodeName(a,"html")&&"static"===o.css(a,"position"))a=a.offsetParent;return a||Jc})}}),o.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;o.fn[b]=function(e){return J(this,function(b,e,f){var g=Kc(b);return void 0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),o.each(["top","left"],function(a,b){o.cssHooks[b]=yb(l.pixelPosition,function(a,c){return c?(c=xb(a,b),vb.test(c)?o(a).position()[b]+"px":c):void 0})}),o.each({Height:"height",Width:"width"},function(a,b){o.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){o.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return J(this,function(b,c,d){var e;return o.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?o.css(b,c,g):o.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),o.fn.size=function(){return this.length},o.fn.andSelf=o.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return o});var Lc=a.jQuery,Mc=a.$;return o.noConflict=function(b){return a.$===o&&(a.$=Mc),b&&a.jQuery===o&&(a.jQuery=Lc),o},typeof b===U&&(a.jQuery=a.$=o),o});
skin/frontend/base/default/evopin/fancypopup/js/jquery-noConflict.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery.noConflict();
skin/frontend/base/default/evopin/fancypopup/js/script.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ // this is important for IEs
2
+ var polyfilter_scriptpath = '/skin/frontend/base/default/evopin/fancypopup/js/';