Version Notes
- Fixed the warning issues due to split() function
- Fixed the Extension taking over the default configuration page.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Mpycho_Jquery_Lightboxes |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/local/MagentoPycho/All/Block/System/Config/Info.php +32 -0
- app/code/local/MagentoPycho/All/Helper/Data.php +11 -0
- app/code/local/MagentoPycho/All/etc/config.xml +55 -0
- app/code/local/MagentoPycho/All/etc/system.xml +38 -0
- app/code/local/MagentoPycho/Lightboxes/Block/Config/Fancybox/Info.php +33 -0
- app/code/local/MagentoPycho/Lightboxes/Block/Config/Lightboxclone/Info.php +33 -0
- app/code/local/MagentoPycho/Lightboxes/Block/Config/Pirobox/Info.php +32 -0
- app/code/local/MagentoPycho/Lightboxes/Block/Lightboxes.php +5 -0
- app/code/local/MagentoPycho/Lightboxes/Block/Media.php +35 -0
- app/code/local/MagentoPycho/Lightboxes/Helper/Data.php +173 -0
- app/code/local/MagentoPycho/Lightboxes/Model/Config/Fancybox/Easings.php +12 -0
- app/code/local/MagentoPycho/Lightboxes/Model/Config/Fancybox/Opacities.php +13 -0
- app/code/local/MagentoPycho/Lightboxes/Model/Config/Fancybox/Scrollings.php +12 -0
- app/code/local/MagentoPycho/Lightboxes/Model/Config/Fancybox/Speeds.php +10 -0
- app/code/local/MagentoPycho/Lightboxes/Model/Config/Fancybox/Titlepositions.php +12 -0
- app/code/local/MagentoPycho/Lightboxes/Model/Config/Fancybox/Transitions.php +12 -0
- app/code/local/MagentoPycho/Lightboxes/Model/Config/Lightboxclone/Opacities.php +13 -0
- app/code/local/MagentoPycho/Lightboxes/Model/Config/Lightboxtypes.php +12 -0
- app/code/local/MagentoPycho/Lightboxes/Model/Config/Pirobox/Bgalphas.php +13 -0
- app/code/local/MagentoPycho/Lightboxes/Model/Config/Pirobox/Themes.php +14 -0
- app/code/local/MagentoPycho/Lightboxes/Model/Lightboxes.php +6 -0
- app/code/local/MagentoPycho/Lightboxes/controllers/IndexController.php +8 -0
- app/code/local/MagentoPycho/Lightboxes/etc/config.xml +121 -0
- app/code/local/MagentoPycho/Lightboxes/etc/system.xml +492 -0
- app/design/frontend/default/default/layout/lightboxes.xml +18 -0
- app/design/frontend/default/default/template/lightboxes/head.phtml +63 -0
- app/design/frontend/default/default/template/lightboxes/media.phtml +135 -0
- app/etc/modules/MagentoPycho_All.xml +18 -0
- app/etc/modules/MagentoPycho_Lightboxes.xml +18 -0
- js/magentopycho/fancybox/Thumbs.db +0 -0
- js/magentopycho/fancybox/blank.gif +0 -0
- js/magentopycho/fancybox/fancy_close.png +0 -0
- js/magentopycho/fancybox/fancy_loading.png +0 -0
- js/magentopycho/fancybox/fancy_nav_left.png +0 -0
- js/magentopycho/fancybox/fancy_nav_right.png +0 -0
- js/magentopycho/fancybox/fancy_shadow_e.png +0 -0
- js/magentopycho/fancybox/fancy_shadow_n.png +0 -0
- js/magentopycho/fancybox/fancy_shadow_ne.png +0 -0
- js/magentopycho/fancybox/fancy_shadow_nw.png +0 -0
- js/magentopycho/fancybox/fancy_shadow_s.png +0 -0
- js/magentopycho/fancybox/fancy_shadow_se.png +0 -0
- js/magentopycho/fancybox/fancy_shadow_sw.png +0 -0
- js/magentopycho/fancybox/fancy_shadow_w.png +0 -0
- js/magentopycho/fancybox/fancy_title_left.png +0 -0
- js/magentopycho/fancybox/fancy_title_main.png +0 -0
- js/magentopycho/fancybox/fancy_title_over.png +0 -0
- js/magentopycho/fancybox/fancy_title_right.png +0 -0
- js/magentopycho/fancybox/fancybox-x.png +0 -0
- js/magentopycho/fancybox/fancybox-y.png +0 -0
- js/magentopycho/fancybox/fancybox.png +0 -0
- js/magentopycho/fancybox/jquery.easing-1.3.pack.js +72 -0
- js/magentopycho/fancybox/jquery.fancybox-1.3.2.css +359 -0
- js/magentopycho/fancybox/jquery.fancybox-1.3.2.js +1136 -0
- js/magentopycho/fancybox/jquery.fancybox-1.3.2.pack.js +46 -0
- js/magentopycho/fancybox/jquery.mousewheel-3.0.4.pack.js +14 -0
- js/magentopycho/jquery-lightbox-0.5/css/jquery.lightbox-0.5.css +101 -0
- js/magentopycho/jquery-lightbox-0.5/images/lightbox-blank.gif +0 -0
- js/magentopycho/jquery-lightbox-0.5/images/lightbox-btn-close.gif +0 -0
- js/magentopycho/jquery-lightbox-0.5/images/lightbox-btn-next.gif +0 -0
- js/magentopycho/jquery-lightbox-0.5/images/lightbox-btn-prev.gif +0 -0
- js/magentopycho/jquery-lightbox-0.5/images/lightbox-ico-loading.gif +0 -0
- js/magentopycho/jquery-lightbox-0.5/js/jquery.js +32 -0
- js/magentopycho/jquery-lightbox-0.5/js/jquery.lightbox-0.5.js +472 -0
- js/magentopycho/jquery-lightbox-0.5/js/jquery.lightbox-0.5.min.js +42 -0
- js/magentopycho/jquery-lightbox-0.5/js/jquery.lightbox-0.5.pack.js +14 -0
- js/magentopycho/jquery.min.js +166 -0
- js/magentopycho/no-conflict.js +1 -0
- js/magentopycho/pirobox/css_pirobox/css.css +457 -0
- js/magentopycho/pirobox/css_pirobox/demo1/ajax-loader.gif +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/b_c.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/b_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/b_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/c_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/c_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/close_btn.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/close_btn_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/link_out.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/link_out_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/next.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/next_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/pause.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/pause_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/play.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/play_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/prev.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/prev_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/style.css +61 -0
- js/magentopycho/pirobox/css_pirobox/demo1/t_c.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/t_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo1/t_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/ajax-loader.gif +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/b_c.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/b_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/b_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/c_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/c_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/close_btn.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/close_btn_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/link_out.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/link_out_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/next.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/next_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/pause.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/pause_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/play.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/play_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/prev.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/prev_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/style.css +61 -0
- js/magentopycho/pirobox/css_pirobox/demo2/t_c.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/t_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo2/t_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/ajax-loader.gif +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/b_c.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/b_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/b_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/c_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/c_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/close_btn.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/close_btn_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/link_out.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/link_out_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/next.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/next_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/pause.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/pause_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/play.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/play_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/prev.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/prev_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/style.css +61 -0
- js/magentopycho/pirobox/css_pirobox/demo3/t_c.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/t_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo3/t_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/ajax-loader.gif +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/b_c.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/b_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/b_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/c_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/c_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/close_btn.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/close_btn_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/link_out.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/link_out_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/next.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/next_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/pause.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/pause_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/play.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/play_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/prev.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/prev_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/style.css +61 -0
- js/magentopycho/pirobox/css_pirobox/demo4/t_c.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/t_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo4/t_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/ajax-loader.gif +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/b_c.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/b_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/b_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/c_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/c_r.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/close_btn.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/close_btn_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/link_out.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/link_out_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/next.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/next_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/pause.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/pause_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/play.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/play_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/prev.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/prev_h.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/style.css +61 -0
- js/magentopycho/pirobox/css_pirobox/demo5/t_c.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/t_l.png +0 -0
- js/magentopycho/pirobox/css_pirobox/demo5/t_r.png +0 -0
- js/magentopycho/pirobox/js/jquery.min.js +154 -0
- js/magentopycho/pirobox/js/pirobox.js +335 -0
- js/magentopycho/pirobox/js/pirobox.min.js +8 -0
- package.xml +19 -0
app/code/local/MagentoPycho/All/Block/System/Config/Info.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @company GuruWebSoft-Guru In Web Solutions <www.guruwebsoft.com>
|
4 |
+
* @author Rajendra K Bhatta <rajen_k_bhtt@hotmail.com>
|
5 |
+
*
|
6 |
+
* @category MagentoPycho
|
7 |
+
* @package MagentoPycho_All
|
8 |
+
*/
|
9 |
+
class MagentoPycho_All_Block_System_Config_Info
|
10 |
+
extends Mage_Adminhtml_Block_Abstract
|
11 |
+
implements Varien_Data_Form_Element_Renderer_Interface
|
12 |
+
{
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Render fieldset html
|
16 |
+
*
|
17 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
18 |
+
* @return string
|
19 |
+
*/
|
20 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
21 |
+
{
|
22 |
+
$html = '<div style="background:url(\'http://www.guruwebsoft.com/magentopycho-logo.jpg\') no-repeat scroll 15px center #EAF0EE;border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 5px 5px 90px;">
|
23 |
+
<h4>About MagentoPycho</h4>
|
24 |
+
<p>Professional Web Developer / Freelancer with specialization in CMS + E-Commerce Solutions.<br />
|
25 |
+
View more extensions @ <a href="http://www.magentocommerce.com/magento-connect/developer/MagentoPycho" target="_blank">MagentoConnect</a><br />
|
26 |
+
<a href="http://www.magentocommerce.com/boards/member/messages/pm/163318/" target="_blank">Request a Quote / Hire Me</a><br />
|
27 |
+
skype me @ magentopycho</p>
|
28 |
+
</div>';
|
29 |
+
|
30 |
+
return $html;
|
31 |
+
}
|
32 |
+
}
|
app/code/local/MagentoPycho/All/Helper/Data.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @company GuruWebSoft-Guru In Web Solutions <www.guruwebsoft.com>
|
4 |
+
* @author Rajendra K Bhatta <rajen_k_bhtt@hotmail.com>
|
5 |
+
*
|
6 |
+
* @category MagentoPycho
|
7 |
+
* @package MagentoPycho_All
|
8 |
+
*/
|
9 |
+
class MagentoPycho_All_Helper_Data extends Mage_Core_Helper_Abstract{
|
10 |
+
|
11 |
+
}
|
app/code/local/MagentoPycho/All/etc/config.xml
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @company GuruWebSoft-Guru In Web Solutions <www.guruwebsoft.com>
|
5 |
+
* @author Rajendra K Bhatta <rajen_k_bhtt@hotmail.com>
|
6 |
+
*
|
7 |
+
* @category MagentoPycho
|
8 |
+
* @package MagentoPycho_All
|
9 |
+
*/
|
10 |
+
-->
|
11 |
+
<config>
|
12 |
+
<modules>
|
13 |
+
<MagentoPycho_All>
|
14 |
+
<version>0.1.0</version>
|
15 |
+
</MagentoPycho_All>
|
16 |
+
</modules>
|
17 |
+
|
18 |
+
<global>
|
19 |
+
<helpers>
|
20 |
+
<magepychoall>
|
21 |
+
<class>MagentoPycho_All_Helper</class>
|
22 |
+
</magepychoall>
|
23 |
+
</helpers>
|
24 |
+
<blocks>
|
25 |
+
<magepychoall>
|
26 |
+
<class>MagentoPycho_All_Block</class>
|
27 |
+
</magepychoall>
|
28 |
+
</blocks>
|
29 |
+
</global>
|
30 |
+
|
31 |
+
<adminhtml>
|
32 |
+
<acl>
|
33 |
+
<resources>
|
34 |
+
<all>
|
35 |
+
<title>Allow Everything</title>
|
36 |
+
</all>
|
37 |
+
<admin>
|
38 |
+
<children>
|
39 |
+
<system>
|
40 |
+
<children>
|
41 |
+
<config>
|
42 |
+
<children>
|
43 |
+
<magepychoall>
|
44 |
+
<title>MagentoPycho - All</title>
|
45 |
+
</magepychoall>
|
46 |
+
</children>
|
47 |
+
</config>
|
48 |
+
</children>
|
49 |
+
</system>
|
50 |
+
</children>
|
51 |
+
</admin>
|
52 |
+
</resources>
|
53 |
+
</acl>
|
54 |
+
</adminhtml>
|
55 |
+
</config>
|
app/code/local/MagentoPycho/All/etc/system.xml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @company GuruWebSoft-Guru In Web Solutions <www.guruwebsoft.com>
|
5 |
+
* @author Rajendra K Bhatta <rajen_k_bhtt@hotmail.com>
|
6 |
+
*
|
7 |
+
* @category MagentoPycho
|
8 |
+
* @package MagentoPycho_All
|
9 |
+
*/
|
10 |
+
-->
|
11 |
+
<config>
|
12 |
+
<tabs>
|
13 |
+
<magepychoall translate="label" module="magepychoall">
|
14 |
+
<label>MagentoPycho Extensions</label>
|
15 |
+
<sort_order>400</sort_order>
|
16 |
+
</magepychoall>
|
17 |
+
</tabs>
|
18 |
+
<sections>
|
19 |
+
<magepychoall translate="label" module="magepychoall">
|
20 |
+
<label>Info</label>
|
21 |
+
<tab>magepychoall</tab>
|
22 |
+
<frontend_type>text</frontend_type>
|
23 |
+
<sort_order>10</sort_order>
|
24 |
+
<show_in_default>1</show_in_default>
|
25 |
+
<show_in_website>1</show_in_website>
|
26 |
+
<show_in_store>1</show_in_store>
|
27 |
+
<groups>
|
28 |
+
<info>
|
29 |
+
<frontend_model>magepychoall/system_config_info</frontend_model>
|
30 |
+
<sort_order>0</sort_order>
|
31 |
+
<show_in_default>1</show_in_default>
|
32 |
+
<show_in_website>1</show_in_website>
|
33 |
+
<show_in_store>1</show_in_store>
|
34 |
+
</info>
|
35 |
+
</groups>
|
36 |
+
</magepychoall>
|
37 |
+
</sections>
|
38 |
+
</config>
|
app/code/local/MagentoPycho/Lightboxes/Block/Config/Fancybox/Info.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @company GuruWebSoft-Guru In Web Solutions <www.guruwebsoft.com>
|
4 |
+
* @author Rajendra K Bhatta <rajen_k_bhtt@hotmail.com>
|
5 |
+
*
|
6 |
+
* @category MagentoPycho
|
7 |
+
* @package MagentoPycho_Lightboxes
|
8 |
+
*/
|
9 |
+
class MagentoPycho_Lightboxes_Block_Config_Fancybox_Info
|
10 |
+
extends Mage_Adminhtml_Block_Abstract
|
11 |
+
implements Varien_Data_Form_Element_Renderer_Interface
|
12 |
+
{
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Render fieldset html
|
16 |
+
*
|
17 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
18 |
+
* @return string
|
19 |
+
*/
|
20 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
21 |
+
{
|
22 |
+
$html = '<div style="border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 10px 10px 10px;">
|
23 |
+
<h4>About FancyBox</h4>
|
24 |
+
<p>FancyBox is a tool for displaying images, html content and multi-media in a Mac-style "lightbox" that floats overtop of web page.<br />
|
25 |
+
For more details visit the links: <a href="http://fancybox.net/home" target="_blank">Homepage</a> |
|
26 |
+
<a href="http://fancybox.net/api" target="_blank">Configuration Options</a>
|
27 |
+
</p>
|
28 |
+
</div>
|
29 |
+
';
|
30 |
+
|
31 |
+
return $html;
|
32 |
+
}
|
33 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Block/Config/Lightboxclone/Info.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @company GuruWebSoft-Guru In Web Solutions <www.guruwebsoft.com>
|
4 |
+
* @author Rajendra K Bhatta <rajen_k_bhtt@hotmail.com>
|
5 |
+
*
|
6 |
+
* @category MagentoPycho
|
7 |
+
* @package MagentoPycho_Lightboxes
|
8 |
+
*/
|
9 |
+
class MagentoPycho_Lightboxes_Block_Config_Lightboxclone_Info
|
10 |
+
extends Mage_Adminhtml_Block_Abstract
|
11 |
+
implements Varien_Data_Form_Element_Renderer_Interface
|
12 |
+
{
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Render fieldset html
|
16 |
+
*
|
17 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
18 |
+
* @return string
|
19 |
+
*/
|
20 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
21 |
+
{
|
22 |
+
$html = '<div style="border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 10px 10px 10px;">
|
23 |
+
<h4>About LightboxClone</h4>
|
24 |
+
<p>jQuery lightBox plugin is simple, elegant, unobtrusive, no need extra markup and is used to overlay images on the current page through the power and flexibility of jQuery\'s selector.<br />
|
25 |
+
LightBox is a plugin for jQuery. It was inspired in Lightbox JS by Lokesh Dhakar.<br /><br />
|
26 |
+
Click <a href="http://leandrovieira.com/projects/jquery/lightbox/" target="_blank" >here</a> for more details
|
27 |
+
</p>
|
28 |
+
</div>
|
29 |
+
';
|
30 |
+
|
31 |
+
return $html;
|
32 |
+
}
|
33 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Block/Config/Pirobox/Info.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @company GuruWebSoft-Guru In Web Solutions <www.guruwebsoft.com>
|
4 |
+
* @author Rajendra K Bhatta <rajen_k_bhtt@hotmail.com>
|
5 |
+
*
|
6 |
+
* @category MagentoPycho
|
7 |
+
* @package MagentoPycho_Lightboxes
|
8 |
+
*/
|
9 |
+
class MagentoPycho_Lightboxes_Block_Config_Pirobox_Info
|
10 |
+
extends Mage_Adminhtml_Block_Abstract
|
11 |
+
implements Varien_Data_Form_Element_Renderer_Interface
|
12 |
+
{
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Render fieldset html
|
16 |
+
*
|
17 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
18 |
+
* @return string
|
19 |
+
*/
|
20 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
21 |
+
{
|
22 |
+
$html = '<div style="border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 10px 10px 10px;">
|
23 |
+
<h4>About PiroBox</h4>
|
24 |
+
<p>PiroBox is yet another cool jQuery LightBox plugin.<br /><br />
|
25 |
+
Click <a href="http://www.pirolab.it/pirobox" target="_blank" >here</a> for more details
|
26 |
+
</p>
|
27 |
+
</div>
|
28 |
+
';
|
29 |
+
|
30 |
+
return $html;
|
31 |
+
}
|
32 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Block/Lightboxes.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MagentoPycho_Lightboxes_Block_Lightboxes extends Mage_Core_Block_Template
|
3 |
+
{
|
4 |
+
|
5 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Block/Media.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MagentoPycho_Lightboxes_Block_Media extends Mage_Catalog_Block_Product_View_Media
|
3 |
+
{
|
4 |
+
public function getConfig($field, $group = 'option', $default = null){
|
5 |
+
return Mage::helper('lightboxes')->getConfig($field, $group, $default);
|
6 |
+
}
|
7 |
+
|
8 |
+
public function getMainImageSize()
|
9 |
+
{
|
10 |
+
return Mage::helper('lightboxes')->getMainImageSize();
|
11 |
+
}
|
12 |
+
|
13 |
+
public function getThumbnailImageSize()
|
14 |
+
{
|
15 |
+
return Mage::helper('lightboxes')->getThumbnailImageSize();
|
16 |
+
}
|
17 |
+
|
18 |
+
public function getPopupImageSize()
|
19 |
+
{
|
20 |
+
return Mage::helper('lightboxes')->getPopupImageSize();
|
21 |
+
}
|
22 |
+
|
23 |
+
public function getFancyboxJsConfig(){
|
24 |
+
return Mage::helper('lightboxes')->getFancyboxJsConfig();
|
25 |
+
}
|
26 |
+
|
27 |
+
public function getLightboxcloneJsConfig(){
|
28 |
+
return Mage::helper('lightboxes')->getLightboxcloneJsConfig();
|
29 |
+
}
|
30 |
+
|
31 |
+
public function getPiroboxJsConfig(){
|
32 |
+
return Mage::helper('lightboxes')->getPiroboxJsConfig();
|
33 |
+
}
|
34 |
+
|
35 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Helper/Data.php
ADDED
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class MagentoPycho_Lightboxes_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
public function getConfig($field, $group = 'option', $default = null){
|
6 |
+
$value = Mage::getStoreConfig('lightboxes/'.$group.'/'.$field);
|
7 |
+
if(!isset($value) or trim($value) == ''){
|
8 |
+
return $default;
|
9 |
+
}else{
|
10 |
+
return $value;
|
11 |
+
}
|
12 |
+
}
|
13 |
+
|
14 |
+
public function getMainImageSize()
|
15 |
+
{
|
16 |
+
list($main_width, $main_height) = explode('x', $this->getConfig('mainimage_size'));
|
17 |
+
|
18 |
+
$main_width = intval($main_width) > 0 ? intval($main_width) : 265;
|
19 |
+
$main_height = intval($main_height) > 0 ? intval($main_height) : 265;
|
20 |
+
|
21 |
+
return array($main_width, $main_height);
|
22 |
+
}
|
23 |
+
|
24 |
+
public function getThumbnailImageSize()
|
25 |
+
{
|
26 |
+
list($thu_width, $thu_height) = explode('x', $this->getConfig('thumbnail_size'));
|
27 |
+
|
28 |
+
$thu_width = intval($thu_width) > 0 ? intval($thu_width) : 57;
|
29 |
+
$thu_height = intval($thu_height) > 0 ? intval($thu_height) : 57;
|
30 |
+
|
31 |
+
return array($thu_width, $thu_height);
|
32 |
+
}
|
33 |
+
|
34 |
+
public function getPopupImageSize()
|
35 |
+
{
|
36 |
+
list($big_width, $big_height) = explode('x', $this->getConfig('popupimage_size'));
|
37 |
+
|
38 |
+
$big_width = intval($big_width) > 0 ? intval($big_width) : '';
|
39 |
+
$big_height = intval($big_height) > 0 ? intval($big_height) : '';
|
40 |
+
|
41 |
+
return array($big_width, $big_height);
|
42 |
+
}
|
43 |
+
|
44 |
+
public function getFancyboxJsConfig(){
|
45 |
+
$js_string = '';
|
46 |
+
if($this->getConfig('padding', 'fancybox')){
|
47 |
+
$js_string .= "'padding' : " . $this->getConfig('padding', 'fancybox') . "," . PHP_EOL;
|
48 |
+
}
|
49 |
+
if($this->getConfig('margin', 'fancybox')){
|
50 |
+
$js_string .= "'margin' : " . $this->getConfig('margin', 'fancybox') . "," . PHP_EOL;
|
51 |
+
}
|
52 |
+
if($this->getConfig('opacity', 'fancybox')){
|
53 |
+
$js_string .= "'opacity' : " . $this->getConfig('opacity', 'fancybox') . "," . PHP_EOL;
|
54 |
+
}
|
55 |
+
if($this->getConfig('modal', 'fancybox')){
|
56 |
+
$js_string .= "'modal' : " . $this->getConfig('modal', 'fancybox') . "," . PHP_EOL;
|
57 |
+
}
|
58 |
+
if($this->getConfig('cyclic', 'fancybox')){
|
59 |
+
$js_string .= "'cyclic' : " . $this->getConfig('cyclic', 'fancybox') . "," . PHP_EOL;
|
60 |
+
}
|
61 |
+
if($this->getConfig('scrolling', 'fancybox')){
|
62 |
+
$js_string .= "'scrolling' : '" . $this->getConfig('scrolling', 'fancybox') . "'," . PHP_EOL;
|
63 |
+
}
|
64 |
+
if($this->getConfig('autoScale', 'fancybox')){
|
65 |
+
$js_string .= "'autoScale' : " . $this->getConfig('autoScale', 'fancybox') . "," . PHP_EOL;
|
66 |
+
}
|
67 |
+
if($this->getConfig('centerOnScroll', 'fancybox')){
|
68 |
+
$js_string .= "'centerOnScroll' : " . $this->getConfig('centerOnScroll', 'fancybox') . "," . PHP_EOL;
|
69 |
+
}
|
70 |
+
if($this->getConfig('hideOnOverlayClick', 'fancybox')){
|
71 |
+
$js_string .= "'hideOnOverlayClick' : " . $this->getConfig('hideOnOverlayClick', 'fancybox') . "," . PHP_EOL;
|
72 |
+
}
|
73 |
+
if($this->getConfig('hideOnContentClick', 'fancybox')){
|
74 |
+
$js_string .= "'hideOnContentClick' : " . $this->getConfig('hideOnContentClick', 'fancybox') . "," . PHP_EOL;
|
75 |
+
}
|
76 |
+
if($this->getConfig('overlayShow', 'fancybox')){
|
77 |
+
$js_string .= "'overlayShow' : " . $this->getConfig('overlayShow', 'fancybox') . "," . PHP_EOL;
|
78 |
+
}
|
79 |
+
if($this->getConfig('overlayOpacity', 'fancybox')){
|
80 |
+
$js_string .= "'overlayOpacity' : " . $this->getConfig('overlayOpacity', 'fancybox') . "," . PHP_EOL;
|
81 |
+
}
|
82 |
+
if($this->getConfig('overlayColor', 'fancybox')){
|
83 |
+
$js_string .= "'overlayColor' : '" . $this->getConfig('overlayColor', 'fancybox') . "'," . PHP_EOL;
|
84 |
+
}
|
85 |
+
if($this->getConfig('titleShow', 'fancybox')){
|
86 |
+
$js_string .= "'titleShow' : " . $this->getConfig('titleShow', 'fancybox') . "," . PHP_EOL;
|
87 |
+
}
|
88 |
+
if($this->getConfig('titlePosition', 'fancybox')){
|
89 |
+
$js_string .= "'titlePosition' : '" . $this->getConfig('titlePosition', 'fancybox') . "'," . PHP_EOL;
|
90 |
+
}
|
91 |
+
if($this->getConfig('transitionIn', 'fancybox')){
|
92 |
+
$js_string .= "'transitionIn' : '" . $this->getConfig('transitionIn', 'fancybox') . "'," . PHP_EOL;
|
93 |
+
}
|
94 |
+
if($this->getConfig('transitionOut', 'fancybox')){
|
95 |
+
$js_string .= "'transitionOut' : '" . $this->getConfig('transitionOut', 'fancybox') . "'," . PHP_EOL;
|
96 |
+
}
|
97 |
+
if($this->getConfig('speedIn', 'fancybox')){
|
98 |
+
$js_string .= "'speedIn' : " . $this->getConfig('speedIn', 'fancybox') . "," . PHP_EOL;
|
99 |
+
}
|
100 |
+
if($this->getConfig('speedOut', 'fancybox')){
|
101 |
+
$js_string .= "'speedOut' : " . $this->getConfig('speedOut', 'fancybox') . "," . PHP_EOL;
|
102 |
+
}
|
103 |
+
if($this->getConfig('changeFade', 'fancybox')){
|
104 |
+
$js_string .= "'changeFade' : '" . $this->getConfig('changeFade', 'fancybox') . "'," . PHP_EOL;
|
105 |
+
}
|
106 |
+
if($this->getConfig('easingIn', 'fancybox')){
|
107 |
+
$js_string .= "'easingIn' : '" . $this->getConfig('easingIn', 'fancybox') . "'," . PHP_EOL;
|
108 |
+
}
|
109 |
+
if($this->getConfig('easingOut', 'fancybox')){
|
110 |
+
$js_string .= "'easingOut' : '" . $this->getConfig('easingOut', 'fancybox') . "'," . PHP_EOL;
|
111 |
+
}
|
112 |
+
if($this->getConfig('showCloseButton', 'fancybox')){
|
113 |
+
$js_string .= "'showCloseButton' : " . $this->getConfig('showCloseButton', 'fancybox') . "," . PHP_EOL;
|
114 |
+
}
|
115 |
+
if($this->getConfig('showNavArrows', 'fancybox')){
|
116 |
+
$js_string .= "'showNavArrows' : " . $this->getConfig('showNavArrows', 'fancybox') . "," . PHP_EOL;
|
117 |
+
}
|
118 |
+
if($this->getConfig('enableEscapeButton', 'fancybox')){
|
119 |
+
$js_string .= "'enableEscapeButton' : " . $this->getConfig('enableEscapeButton', 'fancybox') . "," . PHP_EOL;
|
120 |
+
}
|
121 |
+
return $js_string;
|
122 |
+
}
|
123 |
+
|
124 |
+
public function getLightboxcloneJsConfig(){
|
125 |
+
$js_string = '';
|
126 |
+
if($this->getConfig('overlayBgColor', 'lightboxclone')){
|
127 |
+
$js_string .= "'overlayBgColor' : '" . $this->getConfig('overlayBgColor', 'lightboxclone') . "'," . PHP_EOL;
|
128 |
+
}
|
129 |
+
if($this->getConfig('overlayOpacity', 'lightboxclone')){
|
130 |
+
$js_string .= "'overlayOpacity' : " . $this->getConfig('overlayOpacity', 'lightboxclone') . "," . PHP_EOL;
|
131 |
+
}
|
132 |
+
if($this->getConfig('containerBorderSize', 'lightboxclone')){
|
133 |
+
$js_string .= "'containerBorderSize' : " . $this->getConfig('containerBorderSize', 'lightboxclone') . "," . PHP_EOL;
|
134 |
+
}
|
135 |
+
if($this->getConfig('containerResizeSpeed', 'lightboxclone')){
|
136 |
+
$js_string .= "'containerResizeSpeed' : " . $this->getConfig('containerResizeSpeed', 'lightboxclone') . "," . PHP_EOL;
|
137 |
+
}
|
138 |
+
if($this->getConfig('containerResizeSpeed', 'lightboxclone')){
|
139 |
+
$js_string .= "'containerResizeSpeed' : " . $this->getConfig('containerResizeSpeed', 'lightboxclone') . "," . PHP_EOL;
|
140 |
+
}
|
141 |
+
if($this->getConfig('containerResizeSpeed', 'lightboxclone')){
|
142 |
+
$js_string .= "'containerResizeSpeed' : " . $this->getConfig('containerResizeSpeed', 'lightboxclone') . "," . PHP_EOL;
|
143 |
+
}
|
144 |
+
|
145 |
+
$js_string .= "'imageBlank' : '" . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . "magentopycho/jquery-lightbox-0.5/images/lightbox-blank.gif'," . PHP_EOL;
|
146 |
+
$js_string .= "'imageLoading' : '" . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . "magentopycho/jquery-lightbox-0.5/images/lightbox-ico-loading.gif'," . PHP_EOL;
|
147 |
+
$js_string .= "'imageBtnClose' : '" . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . "magentopycho/jquery-lightbox-0.5/images/lightbox-btn-close.gif'," . PHP_EOL;
|
148 |
+
$js_string .= "'imageBtnPrev' : '" . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . "magentopycho/jquery-lightbox-0.5/images/lightbox-btn-prev.gif'," . PHP_EOL;
|
149 |
+
$js_string .= "'imageBtnNext' : '" . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . "magentopycho/jquery-lightbox-0.5/images/lightbox-btn-next.gif'" . PHP_EOL;
|
150 |
+
|
151 |
+
return $js_string;
|
152 |
+
}
|
153 |
+
|
154 |
+
public function getPiroboxJsConfig(){
|
155 |
+
$js_string = '';
|
156 |
+
if($this->getConfig('my_speed', 'pirobox')){
|
157 |
+
$js_string .= "'my_speed' : " . $this->getConfig('my_speed', 'pirobox') . "," . PHP_EOL;
|
158 |
+
}
|
159 |
+
if($this->getConfig('bg_alpha', 'pirobox')){
|
160 |
+
$js_string .= "'bg_alpha' : " . $this->getConfig('bg_alpha', 'pirobox') . "," . PHP_EOL;
|
161 |
+
}
|
162 |
+
if($this->getConfig('slideShow', 'pirobox')){
|
163 |
+
$js_string .= "'slideShow' : " . $this->getConfig('slideShow', 'pirobox') . "," . PHP_EOL;
|
164 |
+
}
|
165 |
+
if($this->getConfig('slideSpeed', 'pirobox')){
|
166 |
+
$js_string .= "'slideSpeed' : " . $this->getConfig('slideSpeed', 'pirobox') . "," . PHP_EOL;
|
167 |
+
}
|
168 |
+
|
169 |
+
$js_string .= "close_all : '.piro_close,.piro_overlay'" . PHP_EOL;
|
170 |
+
|
171 |
+
return $js_string;
|
172 |
+
}
|
173 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Model/Config/Fancybox/Easings.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MagentoPycho_Lightboxes_Model_Config_Fancybox_Easings
|
3 |
+
{
|
4 |
+
public function toOptionArray()
|
5 |
+
{
|
6 |
+
return array(
|
7 |
+
'swing' => Mage::helper('lightboxes')->__('swing'),
|
8 |
+
'easeOutBack' => Mage::helper('lightboxes')->__('easeOutBack'),
|
9 |
+
'easeInBack' => Mage::helper('lightboxes')->__('easeInBack'),
|
10 |
+
);
|
11 |
+
}
|
12 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Model/Config/Fancybox/Opacities.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MagentoPycho_Lightboxes_Model_Config_Fancybox_Opacities
|
3 |
+
{
|
4 |
+
public function toOptionArray()
|
5 |
+
{
|
6 |
+
$range = range(0, 1, 0.1);
|
7 |
+
$array = array();
|
8 |
+
foreach($range as $val){
|
9 |
+
$array["$val"] = $val;
|
10 |
+
}
|
11 |
+
return $array;
|
12 |
+
}
|
13 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Model/Config/Fancybox/Scrollings.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MagentoPycho_Lightboxes_Model_Config_Fancybox_Scrollings
|
3 |
+
{
|
4 |
+
public function toOptionArray()
|
5 |
+
{
|
6 |
+
return array(
|
7 |
+
'auto' => Mage::helper('lightboxes')->__('auto'),
|
8 |
+
'yes' => Mage::helper('lightboxes')->__('yes'),
|
9 |
+
'no' => Mage::helper('lightboxes')->__('no'),
|
10 |
+
);
|
11 |
+
}
|
12 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Model/Config/Fancybox/Speeds.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MagentoPycho_Lightboxes_Model_Config_Fancybox_Speeds
|
3 |
+
{
|
4 |
+
public function toOptionArray()
|
5 |
+
{
|
6 |
+
return array(
|
7 |
+
'fast' => Mage::helper('lightboxes')->__('fast'),
|
8 |
+
);
|
9 |
+
}
|
10 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Model/Config/Fancybox/Titlepositions.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MagentoPycho_Lightboxes_Model_Config_Fancybox_Titlepositions
|
3 |
+
{
|
4 |
+
public function toOptionArray()
|
5 |
+
{
|
6 |
+
return array(
|
7 |
+
'outside' => Mage::helper('lightboxes')->__('outside'),
|
8 |
+
'inside' => Mage::helper('lightboxes')->__('inside'),
|
9 |
+
'over' => Mage::helper('lightboxes')->__('over'),
|
10 |
+
);
|
11 |
+
}
|
12 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Model/Config/Fancybox/Transitions.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MagentoPycho_Lightboxes_Model_Config_Fancybox_Transitions
|
3 |
+
{
|
4 |
+
public function toOptionArray()
|
5 |
+
{
|
6 |
+
return array(
|
7 |
+
'fade' => Mage::helper('lightboxes')->__('fade'),
|
8 |
+
'elastic' => Mage::helper('lightboxes')->__('elastic'),
|
9 |
+
'none' => Mage::helper('lightboxes')->__('none'),
|
10 |
+
);
|
11 |
+
}
|
12 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Model/Config/Lightboxclone/Opacities.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MagentoPycho_Lightboxes_Model_Config_Lightboxclone_Opacities
|
3 |
+
{
|
4 |
+
public function toOptionArray()
|
5 |
+
{
|
6 |
+
$range = range(0, 1, 0.1);
|
7 |
+
$array = array();
|
8 |
+
foreach($range as $val){
|
9 |
+
$array["$val"] = $val;
|
10 |
+
}
|
11 |
+
return $array;
|
12 |
+
}
|
13 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Model/Config/Lightboxtypes.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MagentoPycho_Lightboxes_Model_Config_Lightboxtypes
|
3 |
+
{
|
4 |
+
public function toOptionArray()
|
5 |
+
{
|
6 |
+
return array(
|
7 |
+
'fancybox' => Mage::helper('lightboxes')->__('FancyBox'),
|
8 |
+
'pirobox' => Mage::helper('lightboxes')->__('PiroBox'),
|
9 |
+
'lightboxclone' => Mage::helper('lightboxes')->__('Lightbox Clone'),
|
10 |
+
);
|
11 |
+
}
|
12 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Model/Config/Pirobox/Bgalphas.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MagentoPycho_Lightboxes_Model_Config_Pirobox_Bgalphas
|
3 |
+
{
|
4 |
+
public function toOptionArray()
|
5 |
+
{
|
6 |
+
$range = range(0, 1, 0.1);
|
7 |
+
$array = array();
|
8 |
+
foreach($range as $val){
|
9 |
+
$array["$val"] = $val;
|
10 |
+
}
|
11 |
+
return $array;
|
12 |
+
}
|
13 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Model/Config/Pirobox/Themes.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MagentoPycho_Lightboxes_Model_Config_Pirobox_Themes
|
3 |
+
{
|
4 |
+
public function toOptionArray()
|
5 |
+
{
|
6 |
+
return array(
|
7 |
+
'demo1' => Mage::helper('lightboxes')->__('double border corners white/black'),
|
8 |
+
'demo2' => Mage::helper('lightboxes')->__('black border corners + shadow'),
|
9 |
+
'demo3' => Mage::helper('lightboxes')->__('white border corners + shadow'),
|
10 |
+
'demo4' => Mage::helper('lightboxes')->__('shadow'),
|
11 |
+
'demo5' => Mage::helper('lightboxes')->__('double border corners black/white'),
|
12 |
+
);
|
13 |
+
}
|
14 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/Model/Lightboxes.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class MagentoPycho_Lightboxes_Model_Lightboxes extends Mage_Core_Model_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/controllers/IndexController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MagentoPycho_Lightboxes_IndexController extends Mage_Core_Controller_Front_Action
|
3 |
+
{
|
4 |
+
public function indexAction()
|
5 |
+
{
|
6 |
+
|
7 |
+
}
|
8 |
+
}
|
app/code/local/MagentoPycho/Lightboxes/etc/config.xml
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category MagentoPycho
|
5 |
+
* @package MagentoPycho_Lightboxes
|
6 |
+
* @author Rajendra K Bhatta <rajen_k_bhtt@hotmail.com>
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
+
<config>
|
11 |
+
<modules>
|
12 |
+
<MagentoPycho_Lightboxes>
|
13 |
+
<version>0.8.0</version>
|
14 |
+
</MagentoPycho_Lightboxes>
|
15 |
+
</modules>
|
16 |
+
<global>
|
17 |
+
<models>
|
18 |
+
<lightboxes>
|
19 |
+
<class>MagentoPycho_Lightboxes_Model</class>
|
20 |
+
</lightboxes>
|
21 |
+
</models>
|
22 |
+
<blocks>
|
23 |
+
<lightboxes>
|
24 |
+
<class>MagentoPycho_Lightboxes_Block</class>
|
25 |
+
</lightboxes>
|
26 |
+
<catalog>
|
27 |
+
<rewrite>
|
28 |
+
<product_view_media>MagentoPycho_Lightboxes_Block_Media</product_view_media>
|
29 |
+
</rewrite>
|
30 |
+
</catalog>
|
31 |
+
</blocks>
|
32 |
+
<helpers>
|
33 |
+
<lightboxes>
|
34 |
+
<class>MagentoPycho_Lightboxes_Helper</class>
|
35 |
+
</lightboxes>
|
36 |
+
</helpers>
|
37 |
+
</global>
|
38 |
+
<frontend>
|
39 |
+
<routers>
|
40 |
+
<lightboxes>
|
41 |
+
<use>standard</use>
|
42 |
+
<args>
|
43 |
+
<module>MagentoPycho_Lightboxes</module>
|
44 |
+
<frontName>lightboxes</frontName>
|
45 |
+
</args>
|
46 |
+
</lightboxes>
|
47 |
+
</routers>
|
48 |
+
<layout>
|
49 |
+
<updates>
|
50 |
+
<lightboxes>
|
51 |
+
<file>lightboxes.xml</file>
|
52 |
+
</lightboxes>
|
53 |
+
</updates>
|
54 |
+
</layout>
|
55 |
+
</frontend>
|
56 |
+
<adminhtml>
|
57 |
+
<acl>
|
58 |
+
<resources>
|
59 |
+
<admin>
|
60 |
+
<children>
|
61 |
+
<system>
|
62 |
+
<children>
|
63 |
+
<config>
|
64 |
+
<children>
|
65 |
+
<lightboxes>
|
66 |
+
<title>MagentoPycho Area</title>
|
67 |
+
</lightboxes>
|
68 |
+
</children>
|
69 |
+
</config>
|
70 |
+
</children>
|
71 |
+
</system>
|
72 |
+
</children>
|
73 |
+
</admin>
|
74 |
+
</resources>
|
75 |
+
</acl>
|
76 |
+
</adminhtml>
|
77 |
+
<default>
|
78 |
+
<lightboxes>
|
79 |
+
<option>
|
80 |
+
<active>1</active>
|
81 |
+
<include_jquery>1</include_jquery>
|
82 |
+
<lightbox_type>fancybox</lightbox_type>
|
83 |
+
<include_globally>0</include_globally>
|
84 |
+
</option>
|
85 |
+
<fancybox>
|
86 |
+
<padding>10</padding>
|
87 |
+
<margin>20</margin>
|
88 |
+
<scrolling>auto</scrolling>
|
89 |
+
<autoScale>1</autoScale>
|
90 |
+
<titlePosition>outside</titlePosition>
|
91 |
+
<transitionIn>elastic</transitionIn>
|
92 |
+
<transitionOut>elastic</transitionOut>
|
93 |
+
<!--<easingIn>easeOutBack</easingIn>
|
94 |
+
<easingOut>easeInBack</easingOut>-->
|
95 |
+
<hideOnOverlayClick>1</hideOnOverlayClick>
|
96 |
+
<overlayShow>1</overlayShow>
|
97 |
+
<overlayOpacity>0.3</overlayOpacity>
|
98 |
+
<overlayColor>#666</overlayColor>
|
99 |
+
<titleShow>1</titleShow>
|
100 |
+
<showCloseButton>1</showCloseButton>
|
101 |
+
<showNavArrows>1</showNavArrows>
|
102 |
+
<enableEscapeButton>1</enableEscapeButton>
|
103 |
+
</fancybox>
|
104 |
+
<lightboxclone>
|
105 |
+
<overlayBgColor>#000</overlayBgColor>
|
106 |
+
<overlayOpacity>0.8</overlayOpacity>
|
107 |
+
<containerBorderSize>10</containerBorderSize>
|
108 |
+
<containerResizeSpeed>400</containerResizeSpeed>
|
109 |
+
<txtImage>Image</txtImage>
|
110 |
+
<txtOf>of</txtOf>
|
111 |
+
</lightboxclone>
|
112 |
+
<pirobox>
|
113 |
+
<theme>demo4</theme>
|
114 |
+
<my_speed>300</my_speed>
|
115 |
+
<bg_alpha>0.5</bg_alpha>
|
116 |
+
<slideShow>1</slideShow>
|
117 |
+
<slideSpeed>3</slideSpeed>
|
118 |
+
</pirobox>
|
119 |
+
</lightboxes>
|
120 |
+
</default>
|
121 |
+
</config>
|
app/code/local/MagentoPycho/Lightboxes/etc/system.xml
ADDED
@@ -0,0 +1,492 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<sections>
|
4 |
+
<lightboxes module="lightboxes">
|
5 |
+
<label>jQuery LightBoxes</label>
|
6 |
+
<tab>magepychoall</tab>
|
7 |
+
<frontend_type>text</frontend_type>
|
8 |
+
<sort_order>20</sort_order>
|
9 |
+
<show_in_default>1</show_in_default>
|
10 |
+
<show_in_website>1</show_in_website>
|
11 |
+
<show_in_store>1</show_in_store>
|
12 |
+
<groups>
|
13 |
+
<option translate="label">
|
14 |
+
<label>jQuery LightBoxes - Configuration Options</label>
|
15 |
+
<frontend_type>text</frontend_type>
|
16 |
+
<sort_order>10</sort_order>
|
17 |
+
<show_in_default>1</show_in_default>
|
18 |
+
<show_in_website>1</show_in_website>
|
19 |
+
<show_in_store>1</show_in_store>
|
20 |
+
<fields>
|
21 |
+
<active translate="label">
|
22 |
+
<label>Enabled</label>
|
23 |
+
<frontend_type>select</frontend_type>
|
24 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
25 |
+
<sort_order>10</sort_order>
|
26 |
+
<show_in_default>1</show_in_default>
|
27 |
+
<show_in_website>1</show_in_website>
|
28 |
+
<show_in_store>1</show_in_store>
|
29 |
+
</active>
|
30 |
+
<include_jquery translate="label">
|
31 |
+
<label>Include jQuery file</label>
|
32 |
+
<frontend_type>select</frontend_type>
|
33 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
34 |
+
<sort_order>20</sort_order><show_in_default>1</show_in_default>
|
35 |
+
<show_in_website>1</show_in_website>
|
36 |
+
<show_in_store>1</show_in_store>
|
37 |
+
<comment><![CDATA[You can disable the jQuery inclusion if it's already included by some third party extensions like Mxperts-jQuery.]]></comment>
|
38 |
+
</include_jquery>
|
39 |
+
<include_globally translate="label">
|
40 |
+
<label>Include Lightbox files globally</label>
|
41 |
+
<frontend_type>select</frontend_type>
|
42 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
43 |
+
<sort_order>21</sort_order><show_in_default>1</show_in_default>
|
44 |
+
<show_in_website>1</show_in_website>
|
45 |
+
<show_in_store>1</show_in_store>
|
46 |
+
<comment><![CDATA[If 'Yes' option is selected, then it will include the lightbox files (js + css) so that it can be used outside of product description page also. Especially used for 3rd party modules.]]></comment>
|
47 |
+
</include_globally>
|
48 |
+
<lightbox_type translate="label">
|
49 |
+
<label>Lightbox Type</label>
|
50 |
+
<frontend_type>select</frontend_type>
|
51 |
+
<source_model>lightboxes/config_lightboxtypes</source_model>
|
52 |
+
<sort_order>30</sort_order><show_in_default>1</show_in_default>
|
53 |
+
<show_in_website>1</show_in_website>
|
54 |
+
<show_in_store>1</show_in_store>
|
55 |
+
</lightbox_type>
|
56 |
+
<mainimage_size translate="label">
|
57 |
+
<label>Main Image Size</label>
|
58 |
+
<frontend_type>text</frontend_type>
|
59 |
+
<sort_order>31</sort_order><show_in_default>1</show_in_default>
|
60 |
+
<show_in_website>1</show_in_website>
|
61 |
+
<show_in_store>1</show_in_store>
|
62 |
+
<comment><![CDATA[Size in [Width]x[Height] Format.]]></comment>
|
63 |
+
</mainimage_size>
|
64 |
+
<thumbnail_size translate="label">
|
65 |
+
<label>Thumbnail Size</label>
|
66 |
+
<frontend_type>text</frontend_type>
|
67 |
+
<sort_order>32</sort_order><show_in_default>1</show_in_default>
|
68 |
+
<show_in_website>1</show_in_website>
|
69 |
+
<show_in_store>1</show_in_store>
|
70 |
+
<comment><![CDATA[Size in [Width]x[Height] Format.]]></comment>
|
71 |
+
</thumbnail_size>
|
72 |
+
<popupimage_size translate="label">
|
73 |
+
<label>Popup Image Size</label>
|
74 |
+
<frontend_type>text</frontend_type>
|
75 |
+
<sort_order>33</sort_order><show_in_default>1</show_in_default>
|
76 |
+
<show_in_website>1</show_in_website>
|
77 |
+
<show_in_store>1</show_in_store>
|
78 |
+
<comment><![CDATA[Size in [Width]x[Height] Format.]]></comment>
|
79 |
+
</popupimage_size>
|
80 |
+
<disable_zoombar translate="label">
|
81 |
+
<label>Disable Zoom Bar</label>
|
82 |
+
<frontend_type>select</frontend_type>
|
83 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
84 |
+
<sort_order>34</sort_order><show_in_default>1</show_in_default>
|
85 |
+
<show_in_website>1</show_in_website>
|
86 |
+
<show_in_store>1</show_in_store>
|
87 |
+
<comment><![CDATA[This will hide the default Zoom bar and will give the main image the lightbox effect.]]></comment>
|
88 |
+
</disable_zoombar>
|
89 |
+
</fields>
|
90 |
+
</option>
|
91 |
+
<fancybox translate="label">
|
92 |
+
<label>FancyBox</label>
|
93 |
+
<frontend_type>text</frontend_type>
|
94 |
+
<sort_order>20</sort_order>
|
95 |
+
<show_in_default>1</show_in_default>
|
96 |
+
<show_in_website>1</show_in_website>
|
97 |
+
<show_in_store>1</show_in_store>
|
98 |
+
<fields>
|
99 |
+
<info>
|
100 |
+
<frontend_model>lightboxes/config_fancybox_info</frontend_model>
|
101 |
+
<sort_order>0</sort_order>
|
102 |
+
<show_in_default>1</show_in_default>
|
103 |
+
<show_in_website>1</show_in_website>
|
104 |
+
<show_in_store>1</show_in_store>
|
105 |
+
</info>
|
106 |
+
<padding translate="label">
|
107 |
+
<label>padding</label>
|
108 |
+
<frontend_type>text</frontend_type>
|
109 |
+
<sort_order>30</sort_order>
|
110 |
+
<show_in_default>1</show_in_default>
|
111 |
+
<show_in_website>1</show_in_website>
|
112 |
+
<show_in_store>1</show_in_store>
|
113 |
+
<comment><![CDATA[Space between FancyBox wrapper and content.]]></comment>
|
114 |
+
</padding>
|
115 |
+
<margin translate="label">
|
116 |
+
<label>margin</label>
|
117 |
+
<frontend_type>text</frontend_type>
|
118 |
+
<sort_order>40</sort_order>
|
119 |
+
<show_in_default>1</show_in_default>
|
120 |
+
<show_in_website>1</show_in_website>
|
121 |
+
<show_in_store>1</show_in_store>
|
122 |
+
<comment><![CDATA[Space between viewport and FancyBox wrapper.]]></comment>
|
123 |
+
</margin>
|
124 |
+
<opacity translate="label">
|
125 |
+
<label>opacity</label>
|
126 |
+
<frontend_type>select</frontend_type>
|
127 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
128 |
+
<sort_order>41</sort_order>
|
129 |
+
<show_in_default>1</show_in_default>
|
130 |
+
<show_in_website>1</show_in_website>
|
131 |
+
<show_in_store>1</show_in_store>
|
132 |
+
<comment><![CDATA[When true, transparency of content is changed for elastic transitions.]]></comment>
|
133 |
+
</opacity>
|
134 |
+
<modal translate="label">
|
135 |
+
<label>modal</label>
|
136 |
+
<frontend_type>select</frontend_type>
|
137 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
138 |
+
<sort_order>50</sort_order>
|
139 |
+
<show_in_default>1</show_in_default>
|
140 |
+
<show_in_website>1</show_in_website>
|
141 |
+
<show_in_store>1</show_in_store>
|
142 |
+
<comment><![CDATA[When true, 'overlayShow' is set to 'true' and 'hideOnOverlayClick', 'hideOnContentClick', 'enableEscapeButton', 'showCloseButton' are set to 'false'.]]></comment>
|
143 |
+
</modal>
|
144 |
+
<cyclic translate="label">
|
145 |
+
<label>cyclic</label>
|
146 |
+
<frontend_type>select</frontend_type>
|
147 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
148 |
+
<sort_order>60</sort_order>
|
149 |
+
<show_in_default>1</show_in_default>
|
150 |
+
<show_in_website>1</show_in_website>
|
151 |
+
<show_in_store>1</show_in_store>
|
152 |
+
<comment><![CDATA[When true, galleries will be cyclic, allowing you to keep pressing next/back.]]></comment>
|
153 |
+
</cyclic>
|
154 |
+
<scrolling translate="label">
|
155 |
+
<label>scrolling</label>
|
156 |
+
<frontend_type>select</frontend_type>
|
157 |
+
<source_model>lightboxes/config_fancybox_scrollings</source_model>
|
158 |
+
<sort_order>70</sort_order>
|
159 |
+
<show_in_default>1</show_in_default>
|
160 |
+
<show_in_website>1</show_in_website>
|
161 |
+
<show_in_store>1</show_in_store>
|
162 |
+
<comment><![CDATA[Set the overflow CSS property to create or hide scrollbars. Can be set to 'auto', 'yes', or 'no']]></comment>
|
163 |
+
</scrolling>
|
164 |
+
<autoScale translate="label">
|
165 |
+
<label>autoScale</label>
|
166 |
+
<frontend_type>select</frontend_type>
|
167 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
168 |
+
<sort_order>80</sort_order>
|
169 |
+
<show_in_default>1</show_in_default>
|
170 |
+
<show_in_website>1</show_in_website>
|
171 |
+
<show_in_store>1</show_in_store>
|
172 |
+
<comment><![CDATA[If true, FancyBox is scaled to fit in viewport]]></comment>
|
173 |
+
</autoScale>
|
174 |
+
<centerOnScroll translate="label">
|
175 |
+
<label>centerOnScroll</label>
|
176 |
+
<frontend_type>select</frontend_type>
|
177 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
178 |
+
<sort_order>90</sort_order>
|
179 |
+
<show_in_default>1</show_in_default>
|
180 |
+
<show_in_website>1</show_in_website>
|
181 |
+
<show_in_store>1</show_in_store>
|
182 |
+
<comment><![CDATA[When true, FancyBox is centered while scrolling page.]]></comment>
|
183 |
+
</centerOnScroll>
|
184 |
+
<hideOnOverlayClick translate="label">
|
185 |
+
<label>hideOnOverlayClick</label>
|
186 |
+
<frontend_type>select</frontend_type>
|
187 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
188 |
+
<sort_order>100</sort_order>
|
189 |
+
<show_in_default>1</show_in_default>
|
190 |
+
<show_in_website>1</show_in_website>
|
191 |
+
<show_in_store>1</show_in_store>
|
192 |
+
<comment><![CDATA[Toggle if clicking the overlay should close FancyBox]]></comment>
|
193 |
+
</hideOnOverlayClick>
|
194 |
+
<hideOnContentClick translate="label">
|
195 |
+
<label>hideOnContentClick</label>
|
196 |
+
<frontend_type>select</frontend_type>
|
197 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
198 |
+
<sort_order>110</sort_order>
|
199 |
+
<show_in_default>1</show_in_default>
|
200 |
+
<show_in_website>1</show_in_website>
|
201 |
+
<show_in_store>1</show_in_store>
|
202 |
+
<comment><![CDATA[Toggle if clicking the content should close FancyBox]]></comment>
|
203 |
+
</hideOnContentClick>
|
204 |
+
<overlayShow translate="label">
|
205 |
+
<label>overlayShow</label>
|
206 |
+
<frontend_type>select</frontend_type>
|
207 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
208 |
+
<sort_order>120</sort_order>
|
209 |
+
<show_in_default>1</show_in_default>
|
210 |
+
<show_in_website>1</show_in_website>
|
211 |
+
<show_in_store>1</show_in_store>
|
212 |
+
<comment><![CDATA[Toggle overlay]]></comment>
|
213 |
+
</overlayShow>
|
214 |
+
<overlayOpacity translate="label">
|
215 |
+
<label>overlayOpacity</label>
|
216 |
+
<frontend_type>select</frontend_type>
|
217 |
+
<source_model>lightboxes/config_fancybox_opacities</source_model>
|
218 |
+
<sort_order>130</sort_order>
|
219 |
+
<show_in_default>1</show_in_default>
|
220 |
+
<show_in_website>1</show_in_website>
|
221 |
+
<show_in_store>1</show_in_store>
|
222 |
+
<comment><![CDATA[Opacity of the overlay (from 0 to 1; default - 0.3)]]></comment>
|
223 |
+
</overlayOpacity>
|
224 |
+
<overlayColor translate="label">
|
225 |
+
<label>overlayColor</label>
|
226 |
+
<frontend_type>text</frontend_type>
|
227 |
+
<sort_order>140</sort_order>
|
228 |
+
<show_in_default>1</show_in_default>
|
229 |
+
<show_in_website>1</show_in_website>
|
230 |
+
<show_in_store>1</show_in_store>
|
231 |
+
<comment><![CDATA[Color of the overlay]]></comment>
|
232 |
+
</overlayColor>
|
233 |
+
<titleShow translate="label">
|
234 |
+
<label>titleShow</label>
|
235 |
+
<frontend_type>select</frontend_type>
|
236 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
237 |
+
<sort_order>150</sort_order>
|
238 |
+
<show_in_default>1</show_in_default>
|
239 |
+
<show_in_website>1</show_in_website>
|
240 |
+
<show_in_store>1</show_in_store>
|
241 |
+
<comment><![CDATA[Toggle title]]></comment>
|
242 |
+
</titleShow>
|
243 |
+
<titlePosition translate="label">
|
244 |
+
<label>titlePosition</label>
|
245 |
+
<frontend_type>select</frontend_type>
|
246 |
+
<source_model>lightboxes/config_fancybox_titlepositions</source_model>
|
247 |
+
<sort_order>160</sort_order>
|
248 |
+
<show_in_default>1</show_in_default>
|
249 |
+
<show_in_website>1</show_in_website>
|
250 |
+
<show_in_store>1</show_in_store>
|
251 |
+
<comment><![CDATA[The position of title. Can be set to 'outside', 'inside' or 'over']]></comment>
|
252 |
+
</titlePosition>
|
253 |
+
<transitionIn translate="label">
|
254 |
+
<label>transitionIn</label>
|
255 |
+
<frontend_type>select</frontend_type>
|
256 |
+
<source_model>lightboxes/config_fancybox_transitions</source_model>
|
257 |
+
<sort_order>170</sort_order>
|
258 |
+
<show_in_default>1</show_in_default>
|
259 |
+
<show_in_website>1</show_in_website>
|
260 |
+
<show_in_store>1</show_in_store>
|
261 |
+
<comment><![CDATA[The transition type. Can be set to 'elastic', 'fade' or 'none']]></comment>
|
262 |
+
</transitionIn>
|
263 |
+
<transitionOut translate="label">
|
264 |
+
<label>transitionOut</label>
|
265 |
+
<frontend_type>select</frontend_type>
|
266 |
+
<source_model>lightboxes/config_fancybox_transitions</source_model>
|
267 |
+
<sort_order>180</sort_order>
|
268 |
+
<show_in_default>1</show_in_default>
|
269 |
+
<show_in_website>1</show_in_website>
|
270 |
+
<show_in_store>1</show_in_store>
|
271 |
+
<comment><![CDATA[The transition type. Can be set to 'elastic', 'fade' or 'none']]></comment>
|
272 |
+
</transitionOut>
|
273 |
+
<speedIn translate="label">
|
274 |
+
<label>speedIn</label>
|
275 |
+
<frontend_type>text</frontend_type>
|
276 |
+
<sort_order>190</sort_order>
|
277 |
+
<show_in_default>1</show_in_default>
|
278 |
+
<show_in_website>1</show_in_website>
|
279 |
+
<show_in_store>1</show_in_store>
|
280 |
+
<comment><![CDATA[Speed of the fade and elastic transitions, in milliseconds]]></comment>
|
281 |
+
</speedIn>
|
282 |
+
<speedOut translate="label">
|
283 |
+
<label>speedOut</label>
|
284 |
+
<frontend_type>text</frontend_type>
|
285 |
+
<sort_order>200</sort_order>
|
286 |
+
<show_in_default>1</show_in_default>
|
287 |
+
<show_in_website>1</show_in_website>
|
288 |
+
<show_in_store>1</show_in_store>
|
289 |
+
<comment><![CDATA[Speed of the fade and elastic transitions, in milliseconds]]></comment>
|
290 |
+
</speedOut>
|
291 |
+
<changeFade translate="label">
|
292 |
+
<label>changeFade</label>
|
293 |
+
<frontend_type>select</frontend_type>
|
294 |
+
<source_model>lightboxes/config_fancybox_speeds</source_model>
|
295 |
+
<sort_order>210</sort_order>
|
296 |
+
<show_in_default>1</show_in_default>
|
297 |
+
<show_in_website>1</show_in_website>
|
298 |
+
<show_in_store>1</show_in_store>
|
299 |
+
<comment><![CDATA[Speed of the content fading while changing gallery items]]></comment>
|
300 |
+
</changeFade>
|
301 |
+
<easingIn translate="label">
|
302 |
+
<label>easingIn</label>
|
303 |
+
<frontend_type>select</frontend_type>
|
304 |
+
<source_model>lightboxes/config_fancybox_easings</source_model>
|
305 |
+
<sort_order>220</sort_order>
|
306 |
+
<show_in_default>1</show_in_default>
|
307 |
+
<show_in_website>1</show_in_website>
|
308 |
+
<show_in_store>1</show_in_store>
|
309 |
+
<comment><![CDATA[Easing used for elastic animations]]></comment>
|
310 |
+
</easingIn>
|
311 |
+
<easingOut translate="label">
|
312 |
+
<label>easingOut</label>
|
313 |
+
<frontend_type>select</frontend_type>
|
314 |
+
<source_model>lightboxes/config_fancybox_easings</source_model>
|
315 |
+
<sort_order>230</sort_order>
|
316 |
+
<show_in_default>1</show_in_default>
|
317 |
+
<show_in_website>1</show_in_website>
|
318 |
+
<show_in_store>1</show_in_store>
|
319 |
+
<comment><![CDATA[Easing used for elastic animations]]></comment>
|
320 |
+
</easingOut>
|
321 |
+
<showCloseButton translate="label">
|
322 |
+
<label>showCloseButton</label>
|
323 |
+
<frontend_type>select</frontend_type>
|
324 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
325 |
+
<sort_order>240</sort_order>
|
326 |
+
<show_in_default>1</show_in_default>
|
327 |
+
<show_in_website>1</show_in_website>
|
328 |
+
<show_in_store>1</show_in_store>
|
329 |
+
<comment><![CDATA[Toggle close button]]></comment>
|
330 |
+
</showCloseButton>
|
331 |
+
<showNavArrows translate="label">
|
332 |
+
<label>showNavArrows</label>
|
333 |
+
<frontend_type>select</frontend_type>
|
334 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
335 |
+
<sort_order>250</sort_order>
|
336 |
+
<show_in_default>1</show_in_default>
|
337 |
+
<show_in_website>1</show_in_website>
|
338 |
+
<show_in_store>1</show_in_store>
|
339 |
+
<comment><![CDATA[Toggle navigation arrows]]></comment>
|
340 |
+
</showNavArrows>
|
341 |
+
<enableEscapeButton translate="label">
|
342 |
+
<label>enableEscapeButton</label>
|
343 |
+
<frontend_type>select</frontend_type>
|
344 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
345 |
+
<sort_order>250</sort_order>
|
346 |
+
<show_in_default>1</show_in_default>
|
347 |
+
<show_in_website>1</show_in_website>
|
348 |
+
<show_in_store>1</show_in_store>
|
349 |
+
<comment><![CDATA[Toggle if pressing Esc button closes FancyBox]]></comment>
|
350 |
+
</enableEscapeButton>
|
351 |
+
</fields>
|
352 |
+
</fancybox>
|
353 |
+
<pirobox>
|
354 |
+
<label>PiroBox</label>
|
355 |
+
<frontend_type>text</frontend_type>
|
356 |
+
<sort_order>300</sort_order>
|
357 |
+
<show_in_default>1</show_in_default>
|
358 |
+
<show_in_website>1</show_in_website>
|
359 |
+
<show_in_store>1</show_in_store>
|
360 |
+
<fields>
|
361 |
+
<info>
|
362 |
+
<frontend_model>lightboxes/config_pirobox_info</frontend_model>
|
363 |
+
<sort_order>0</sort_order>
|
364 |
+
<show_in_default>1</show_in_default>
|
365 |
+
<show_in_website>1</show_in_website>
|
366 |
+
<show_in_store>1</show_in_store>
|
367 |
+
</info>
|
368 |
+
<theme translate="label">
|
369 |
+
<label>theme</label>
|
370 |
+
<frontend_type>select</frontend_type>
|
371 |
+
<source_model>lightboxes/config_pirobox_themes</source_model>
|
372 |
+
<sort_order>309</sort_order>
|
373 |
+
<show_in_default>1</show_in_default>
|
374 |
+
<show_in_website>1</show_in_website>
|
375 |
+
<show_in_store>1</show_in_store>
|
376 |
+
<comment><![CDATA[Available themes for PiroBox]]></comment>
|
377 |
+
</theme>
|
378 |
+
<my_speed translate="label">
|
379 |
+
<label>my_speed</label>
|
380 |
+
<frontend_type>text</frontend_type>
|
381 |
+
<sort_order>310</sort_order>
|
382 |
+
<show_in_default>1</show_in_default>
|
383 |
+
<show_in_website>1</show_in_website>
|
384 |
+
<show_in_store>1</show_in_store>
|
385 |
+
<comment><![CDATA[animation speed]]></comment>
|
386 |
+
</my_speed>
|
387 |
+
<bg_alpha translate="label">
|
388 |
+
<label>bg_alpha</label>
|
389 |
+
<frontend_type>select</frontend_type>
|
390 |
+
<source_model>lightboxes/config_pirobox_bgalphas</source_model>
|
391 |
+
<sort_order>320</sort_order>
|
392 |
+
<show_in_default>1</show_in_default>
|
393 |
+
<show_in_website>1</show_in_website>
|
394 |
+
<show_in_store>1</show_in_store>
|
395 |
+
<comment><![CDATA[background opacity]]></comment>
|
396 |
+
</bg_alpha>
|
397 |
+
<slideShow translate="label">
|
398 |
+
<label>slideShow</label>
|
399 |
+
<frontend_type>text</frontend_type>
|
400 |
+
<sort_order>330</sort_order>
|
401 |
+
<show_in_default>1</show_in_default>
|
402 |
+
<show_in_website>1</show_in_website>
|
403 |
+
<show_in_store>1</show_in_store>
|
404 |
+
<comment><![CDATA[true == slideshow on, false == slideshow off]]></comment>
|
405 |
+
</slideShow>
|
406 |
+
<slideSpeed translate="label">
|
407 |
+
<label>slideSpeed</label>
|
408 |
+
<frontend_type>text</frontend_type>
|
409 |
+
<sort_order>340</sort_order>
|
410 |
+
<show_in_default>1</show_in_default>
|
411 |
+
<show_in_website>1</show_in_website>
|
412 |
+
<show_in_store>1</show_in_store>
|
413 |
+
<comment><![CDATA[slideshow duration in seconds(3 to 6 Recommended)]]></comment>
|
414 |
+
</slideSpeed>
|
415 |
+
</fields>
|
416 |
+
</pirobox>
|
417 |
+
<lightboxclone>
|
418 |
+
<label>Lightbox Clone</label>
|
419 |
+
<frontend_type>text</frontend_type>
|
420 |
+
<sort_order>400</sort_order>
|
421 |
+
<show_in_default>1</show_in_default>
|
422 |
+
<show_in_website>1</show_in_website>
|
423 |
+
<show_in_store>1</show_in_store>
|
424 |
+
<fields>
|
425 |
+
<info>
|
426 |
+
<frontend_model>lightboxes/config_lightboxclone_info</frontend_model>
|
427 |
+
<sort_order>0</sort_order>
|
428 |
+
<show_in_default>1</show_in_default>
|
429 |
+
<show_in_website>1</show_in_website>
|
430 |
+
<show_in_store>1</show_in_store>
|
431 |
+
</info>
|
432 |
+
<overlayBgColor translate="label">
|
433 |
+
<label>overlayBgColor</label>
|
434 |
+
<frontend_type>text</frontend_type>
|
435 |
+
<sort_order>410</sort_order>
|
436 |
+
<show_in_default>1</show_in_default>
|
437 |
+
<show_in_website>1</show_in_website>
|
438 |
+
<show_in_store>1</show_in_store>
|
439 |
+
<comment><![CDATA[Used to define the overlay background color. #000 (black) is default.]]></comment>
|
440 |
+
</overlayBgColor>
|
441 |
+
<overlayOpacity translate="label">
|
442 |
+
<label>overlayOpacity</label>
|
443 |
+
<frontend_type>select</frontend_type>
|
444 |
+
<source_model>lightboxes/config_lightboxclone_opacities</source_model>
|
445 |
+
<sort_order>420</sort_order>
|
446 |
+
<show_in_default>1</show_in_default>
|
447 |
+
<show_in_website>1</show_in_website>
|
448 |
+
<show_in_store>1</show_in_store>
|
449 |
+
<comment><![CDATA[Used to define the overlay opacity. 0.8 is default.]]></comment>
|
450 |
+
</overlayOpacity>
|
451 |
+
<containerBorderSize translate="label">
|
452 |
+
<label>containerBorderSize</label>
|
453 |
+
<frontend_type>text</frontend_type>
|
454 |
+
<sort_order>430</sort_order>
|
455 |
+
<show_in_default>1</show_in_default>
|
456 |
+
<show_in_website>1</show_in_website>
|
457 |
+
<show_in_store>1</show_in_store>
|
458 |
+
<comment><![CDATA[The padding CSS information used in the container image box. 10 is default.]]></comment>
|
459 |
+
</containerBorderSize>
|
460 |
+
<containerResizeSpeed translate="label">
|
461 |
+
<label>containerResizeSpeed</label>
|
462 |
+
<frontend_type>text</frontend_type>
|
463 |
+
<sort_order>440</sort_order>
|
464 |
+
<show_in_default>1</show_in_default>
|
465 |
+
<show_in_website>1</show_in_website>
|
466 |
+
<show_in_store>1</show_in_store>
|
467 |
+
<comment><![CDATA[The duration of resize effect in the container image box. 400 is default.]]></comment>
|
468 |
+
</containerResizeSpeed>
|
469 |
+
<txtImage translate="label">
|
470 |
+
<label>txtImage</label>
|
471 |
+
<frontend_type>text</frontend_type>
|
472 |
+
<sort_order>450</sort_order>
|
473 |
+
<show_in_default>1</show_in_default>
|
474 |
+
<show_in_website>1</show_in_website>
|
475 |
+
<show_in_store>1</show_in_store>
|
476 |
+
<comment><![CDATA[Text "Image" used in the image caption.]]></comment>
|
477 |
+
</txtImage>
|
478 |
+
<txtOf translate="label">
|
479 |
+
<label>txtOf</label>
|
480 |
+
<frontend_type>text</frontend_type>
|
481 |
+
<sort_order>460</sort_order>
|
482 |
+
<show_in_default>1</show_in_default>
|
483 |
+
<show_in_website>1</show_in_website>
|
484 |
+
<show_in_store>1</show_in_store>
|
485 |
+
<comment><![CDATA[Text "of" used in the image caption.]]></comment>
|
486 |
+
</txtOf>
|
487 |
+
</fields>
|
488 |
+
</lightboxclone>
|
489 |
+
</groups>
|
490 |
+
</lightboxes>
|
491 |
+
</sections>
|
492 |
+
</config>
|
app/design/frontend/default/default/layout/lightboxes.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<block type="page/html_head" name="lightboxes_head" as="lightboxes_head" template="lightboxes/head.phtml" />
|
6 |
+
</reference>
|
7 |
+
</default>
|
8 |
+
<catalog_product_view>
|
9 |
+
<reference name="product.info.media">
|
10 |
+
<action method="setTemplate" ifconfig="lightboxes/option/active"><template>lightboxes/media.phtml</template></action>
|
11 |
+
</reference>
|
12 |
+
</catalog_product_view>
|
13 |
+
<review_product_list>
|
14 |
+
<reference name="product.info.media">
|
15 |
+
<action method="setTemplate" ifconfig="lightboxes/option/active"><template>lightboxes/media.phtml</template></action>
|
16 |
+
</reference>
|
17 |
+
</review_product_list>
|
18 |
+
</layout>
|
app/design/frontend/default/default/template/lightboxes/head.phtml
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* GuruWebSoft (www.guruwebsoft.com)
|
4 |
+
*
|
5 |
+
* @author MagentoPycho <rajen_k_bhtt@hotmail.com>
|
6 |
+
* @category Catalog/Product/View
|
7 |
+
* @package MagentoPycho_Lightboxes
|
8 |
+
*/
|
9 |
+
?>
|
10 |
+
<?php
|
11 |
+
if(Mage::helper('lightboxes')->getConfig('active')):
|
12 |
+
$moduleName = $this->getRequest()->getModuleName();
|
13 |
+
$controllerName = $this->getRequest()->getControllerName();
|
14 |
+
$actionName = $this->getRequest()->getActionName();
|
15 |
+
#echo $moduleName . '|' . $controllerName . '|' . $actionName;
|
16 |
+
if(Mage::helper('lightboxes')->getConfig('include_globally') || (in_array($moduleName, array('catalog', 'review')) && $controllerName == 'product' && in_array($actionName, array('view', 'list')))):
|
17 |
+
?>
|
18 |
+
<?php
|
19 |
+
//include jQuery file if enabled
|
20 |
+
if(Mage::helper('lightboxes')->getConfig('include_jquery')):
|
21 |
+
?>
|
22 |
+
<script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>magentopycho/jquery.min.js"></script>
|
23 |
+
<script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>magentopycho/no-conflict.js"></script>
|
24 |
+
<?php endif; ?>
|
25 |
+
<?php
|
26 |
+
if(Mage::helper('lightboxes')->getConfig('lightbox_type') == 'fancybox'):
|
27 |
+
$rel = 'fancybox';
|
28 |
+
?>
|
29 |
+
<!-- FancyBox -->
|
30 |
+
<script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>magentopycho/fancybox/jquery.easing-1.3.pack.js"></script>
|
31 |
+
<script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>magentopycho/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
|
32 |
+
<script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>magentopycho/fancybox/jquery.fancybox-1.3.2.pack.js"></script>
|
33 |
+
<link rel="stylesheet" type="text/css" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>magentopycho/fancybox/jquery.fancybox-1.3.2.css" media="screen" />
|
34 |
+
<!-- FancyBox -->
|
35 |
+
<?php
|
36 |
+
endif; //fancybox
|
37 |
+
?>
|
38 |
+
<?php
|
39 |
+
if(Mage::helper('lightboxes')->getConfig('lightbox_type') == 'lightboxclone'):
|
40 |
+
$rel = 'lightboxclone';
|
41 |
+
?>
|
42 |
+
<!-- Lightbox Clone -->
|
43 |
+
<script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>magentopycho/jquery-lightbox-0.5/js/jquery.lightbox-0.5.min.js"></script>
|
44 |
+
<link rel="stylesheet" type="text/css" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>magentopycho/jquery-lightbox-0.5/css/jquery.lightbox-0.5.css" media="screen" />
|
45 |
+
<!-- Lightbox Clone -->
|
46 |
+
<?php
|
47 |
+
endif; //lightboxclone
|
48 |
+
?>
|
49 |
+
<?php
|
50 |
+
if(Mage::helper('lightboxes')->getConfig('lightbox_type') == 'pirobox'):
|
51 |
+
$rel = '';
|
52 |
+
$class = 'pirobox';
|
53 |
+
$demo = Mage::helper('lightboxes')->getConfig('theme', 'pirobox');
|
54 |
+
?>
|
55 |
+
<!-- Pirobox -->
|
56 |
+
<link href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>magentopycho/pirobox/css_pirobox/<?php echo $demo; ?>/style.css" class="piro_style" media="screen" title="white" rel="stylesheet" type="text/css" />
|
57 |
+
<script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>magentopycho/pirobox/js/pirobox.min.js"></script>
|
58 |
+
<!-- Pirobox -->
|
59 |
+
<?php
|
60 |
+
endif; //pirobox
|
61 |
+
?>
|
62 |
+
<?php endif; ?>
|
63 |
+
<?php endif; //end active ?>
|
app/design/frontend/default/default/template/lightboxes/media.phtml
ADDED
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$rel = '';
|
3 |
+
$class = '';
|
4 |
+
$mainImageSize = $this->getMainImageSize();
|
5 |
+
$popUpImageSize = $this->getPopupImageSize();
|
6 |
+
$thumbnailSize = $this->getThumbnailImageSize();
|
7 |
+
if($this->getConfig('lightbox_type') == 'fancybox'):
|
8 |
+
$rel = 'fancybox';
|
9 |
+
?>
|
10 |
+
<!-- FancyBox -->
|
11 |
+
<script type="text/javascript">
|
12 |
+
jQuery(document).ready(function(){
|
13 |
+
jQuery("a[rel=<?php echo $rel; ?>]").fancybox({
|
14 |
+
<?php echo $this->getFancyboxJsConfig(); ?>
|
15 |
+
});
|
16 |
+
|
17 |
+
});
|
18 |
+
</script>
|
19 |
+
<!-- FancyBox -->
|
20 |
+
<?php
|
21 |
+
endif;
|
22 |
+
?>
|
23 |
+
|
24 |
+
<?php
|
25 |
+
if($this->getConfig('lightbox_type') == 'lightboxclone'):
|
26 |
+
$rel = 'lightboxclone';
|
27 |
+
?>
|
28 |
+
<!-- Lightbox Clone -->
|
29 |
+
<script type="text/javascript">
|
30 |
+
jQuery(document).ready(function(){
|
31 |
+
jQuery('a[rel=<?php echo $rel; ?>]').lightBox({
|
32 |
+
<?php echo $this->getLightboxcloneJsConfig(); ?>
|
33 |
+
});
|
34 |
+
|
35 |
+
});
|
36 |
+
</script>
|
37 |
+
<!-- Lightbox Clone -->
|
38 |
+
<?php
|
39 |
+
endif;
|
40 |
+
?>
|
41 |
+
|
42 |
+
<?php
|
43 |
+
if($this->getConfig('lightbox_type') == 'pirobox'):
|
44 |
+
$rel = '';
|
45 |
+
$class = 'pirobox';
|
46 |
+
$demo = $this->getConfig('theme', 'pirobox');
|
47 |
+
?>
|
48 |
+
<!-- Pirobox -->
|
49 |
+
<script type="text/javascript">
|
50 |
+
jQuery(document).ready(function(){
|
51 |
+
jQuery().piroBox({
|
52 |
+
<?php echo $this->getPiroboxJsConfig(); ?>
|
53 |
+
});
|
54 |
+
|
55 |
+
});
|
56 |
+
</script>
|
57 |
+
<!-- Pirobox -->
|
58 |
+
<?php
|
59 |
+
endif;
|
60 |
+
?>
|
61 |
+
|
62 |
+
|
63 |
+
<?php
|
64 |
+
$_product = $this->getProduct();
|
65 |
+
$_helper = $this->helper('catalog/output');
|
66 |
+
?>
|
67 |
+
<?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?>
|
68 |
+
|
69 |
+
<?php
|
70 |
+
//check if zoomer is disabled
|
71 |
+
if($this->getConfig('disable_zoombar')):
|
72 |
+
?>
|
73 |
+
<p class="product-image">
|
74 |
+
<?php
|
75 |
+
$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize($mainImageSize[0], $mainImageSize[1]).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
|
76 |
+
if(empty($popUpImageSize[0]) || empty($popUpImageSize[0])):
|
77 |
+
$popUpImage = $this->helper('catalog/image')->init($_product, 'image');
|
78 |
+
else:
|
79 |
+
$popUpImage = $this->helper('catalog/image')->init($_product, 'image')->resize($popUpImageSize[0], $popUpImageSize[1]);
|
80 |
+
endif;
|
81 |
+
|
82 |
+
?>
|
83 |
+
<a href="<?php echo $popUpImage; ?>" rel="<?php echo $rel; ?>" class="<?php echo $class; ?>" title="<?php echo $this->htmlEscape($this->getImageLabel()) ?>"><?php echo $_helper->productAttribute($_product, $_img, 'image'); ?></a>
|
84 |
+
</p>
|
85 |
+
<?php else: ?>
|
86 |
+
<p class="product-image product-image-zoom">
|
87 |
+
<?php
|
88 |
+
$_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
|
89 |
+
echo $_helper->productAttribute($_product, $_img, 'image');
|
90 |
+
?>
|
91 |
+
</p>
|
92 |
+
<p class="zoom-notice" id="track_hint"><?php echo $this->__('Double click on above image to view full picture') ?></p>
|
93 |
+
<div class="zoom">
|
94 |
+
<img id="zoom_out" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_out.gif') ?>" alt="<?php echo $this->__('Zoom Out') ?>" title="<?php echo $this->__('Zoom Out') ?>" class="btn-zoom-out" />
|
95 |
+
<div id="track">
|
96 |
+
<div id="handle"></div>
|
97 |
+
</div>
|
98 |
+
<img id="zoom_in" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_in.gif') ?>" alt="<?php echo $this->__('Zoom In') ?>" title="<?php echo $this->__('Zoom In') ?>" class="btn-zoom-in" />
|
99 |
+
</div>
|
100 |
+
<script type="text/javascript">
|
101 |
+
//<![CDATA[
|
102 |
+
Event.observe(window, 'load', function() {
|
103 |
+
product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint');
|
104 |
+
});
|
105 |
+
//]]>
|
106 |
+
</script>
|
107 |
+
<?php endif; ?>
|
108 |
+
|
109 |
+
<?php else: ?>
|
110 |
+
<p class="product-image">
|
111 |
+
<?php
|
112 |
+
$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
|
113 |
+
echo $_helper->productAttribute($_product, $_img, 'image');
|
114 |
+
?>
|
115 |
+
</p>
|
116 |
+
<?php endif; ?>
|
117 |
+
<?php if (count($this->getGalleryImages()) > 0):
|
118 |
+
?>
|
119 |
+
<div class="more-views">
|
120 |
+
<h2><?php echo $this->__('More Views') ?></h2>
|
121 |
+
<ul>
|
122 |
+
<?php foreach ($this->getGalleryImages() as $_image):
|
123 |
+
if(empty($popUpImageSize[0]) || empty($popUpImageSize[0])):
|
124 |
+
$popUpImage = $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile());
|
125 |
+
else:
|
126 |
+
$popUpImage = $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->resize($popUpImageSize[0], $popUpImageSize[1]);
|
127 |
+
endif;
|
128 |
+
?>
|
129 |
+
<li>
|
130 |
+
<a href="<?php echo $popUpImage; ?>" rel="<?php echo $rel; ?>" class="<?php echo $class; ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize($thumbnailSize[0], $thumbnailSize[1]); ?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
|
131 |
+
</li>
|
132 |
+
<?php endforeach; ?>
|
133 |
+
</ul>
|
134 |
+
</div>
|
135 |
+
<?php endif; ?>
|
app/etc/modules/MagentoPycho_All.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @company GuruWebSoft-Guru In Web Solutions <www.guruwebsoft.com>
|
5 |
+
* @author Rajendra K Bhatta <rajen_k_bhtt@hotmail.com>
|
6 |
+
*
|
7 |
+
* @category MagentoPycho
|
8 |
+
* @package MagentoPycho_All
|
9 |
+
*/
|
10 |
+
-->
|
11 |
+
<config>
|
12 |
+
<modules>
|
13 |
+
<MagentoPycho_All>
|
14 |
+
<active>true</active>
|
15 |
+
<codePool>local</codePool>
|
16 |
+
</MagentoPycho_All>
|
17 |
+
</modules>
|
18 |
+
</config>
|
app/etc/modules/MagentoPycho_Lightboxes.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @company GuruWebSoft-Guru In Web Solutions <www.guruwebsoft.com>
|
5 |
+
* @author Rajendra K Bhatta <rajen_k_bhtt@hotmail.com>
|
6 |
+
*
|
7 |
+
* @category MagentoPycho
|
8 |
+
* @package MagentoPycho_Lightboxes
|
9 |
+
*/
|
10 |
+
-->
|
11 |
+
<config>
|
12 |
+
<modules>
|
13 |
+
<MagentoPycho_Lightboxes>
|
14 |
+
<active>true</active>
|
15 |
+
<codePool>local</codePool>
|
16 |
+
</MagentoPycho_Lightboxes>
|
17 |
+
</modules>
|
18 |
+
</config>
|
js/magentopycho/fancybox/Thumbs.db
ADDED
Binary file
|
js/magentopycho/fancybox/blank.gif
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_close.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_loading.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_nav_left.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_nav_right.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_shadow_e.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_shadow_n.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_shadow_ne.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_shadow_nw.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_shadow_s.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_shadow_se.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_shadow_sw.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_shadow_w.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_title_left.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_title_main.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_title_over.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancy_title_right.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancybox-x.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancybox-y.png
ADDED
Binary file
|
js/magentopycho/fancybox/fancybox.png
ADDED
Binary file
|
js/magentopycho/fancybox/jquery.easing-1.3.pack.js
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
3 |
+
*
|
4 |
+
* Uses the built in easing capabilities added In jQuery 1.1
|
5 |
+
* to offer multiple easing options
|
6 |
+
*
|
7 |
+
* TERMS OF USE - jQuery Easing
|
8 |
+
*
|
9 |
+
* Open source under the BSD License.
|
10 |
+
*
|
11 |
+
* Copyright © 2008 George McGinley Smith
|
12 |
+
* All rights reserved.
|
13 |
+
*
|
14 |
+
* Redistribution and use in source and binary forms, with or without modification,
|
15 |
+
* are permitted provided that the following conditions are met:
|
16 |
+
*
|
17 |
+
* Redistributions of source code must retain the above copyright notice, this list of
|
18 |
+
* conditions and the following disclaimer.
|
19 |
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
20 |
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
21 |
+
* provided with the distribution.
|
22 |
+
*
|
23 |
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
24 |
+
* or promote products derived from this software without specific prior written permission.
|
25 |
+
*
|
26 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
27 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
28 |
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
29 |
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
30 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
31 |
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
32 |
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
33 |
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
34 |
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
35 |
+
*
|
36 |
+
*/
|
37 |
+
|
38 |
+
// t: current time, b: begInnIng value, c: change In value, d: duration
|
39 |
+
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))
|
40 |
+
|
41 |
+
/*
|
42 |
+
*
|
43 |
+
* TERMS OF USE - EASING EQUATIONS
|
44 |
+
*
|
45 |
+
* Open source under the BSD License.
|
46 |
+
*
|
47 |
+
* Copyright © 2001 Robert Penner
|
48 |
+
* All rights reserved.
|
49 |
+
*
|
50 |
+
* Redistribution and use in source and binary forms, with or without modification,
|
51 |
+
* are permitted provided that the following conditions are met:
|
52 |
+
*
|
53 |
+
* Redistributions of source code must retain the above copyright notice, this list of
|
54 |
+
* conditions and the following disclaimer.
|
55 |
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
56 |
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
57 |
+
* provided with the distribution.
|
58 |
+
*
|
59 |
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
60 |
+
* or promote products derived from this software without specific prior written permission.
|
61 |
+
*
|
62 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
63 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
64 |
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
65 |
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
66 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
67 |
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
68 |
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
69 |
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
70 |
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
71 |
+
*
|
72 |
+
*/
|
js/magentopycho/fancybox/jquery.fancybox-1.3.2.css
ADDED
@@ -0,0 +1,359 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* FancyBox - jQuery Plugin
|
3 |
+
* Simple and fancy lightbox alternative
|
4 |
+
*
|
5 |
+
* Examples and documentation at: http://fancybox.net
|
6 |
+
*
|
7 |
+
* Copyright (c) 2008 - 2010 Janis Skarnelis
|
8 |
+
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
|
9 |
+
*
|
10 |
+
* Version: 1.3.2 (20/10/2010)
|
11 |
+
* Requires: jQuery v1.3+
|
12 |
+
*
|
13 |
+
* Dual licensed under the MIT and GPL licenses:
|
14 |
+
* http://www.opensource.org/licenses/mit-license.php
|
15 |
+
* http://www.gnu.org/licenses/gpl.html
|
16 |
+
*/
|
17 |
+
|
18 |
+
#fancybox-loading {
|
19 |
+
position: fixed;
|
20 |
+
top: 50%;
|
21 |
+
left: 50%;
|
22 |
+
width: 40px;
|
23 |
+
height: 40px;
|
24 |
+
margin-top: -20px;
|
25 |
+
margin-left: -20px;
|
26 |
+
cursor: pointer;
|
27 |
+
overflow: hidden;
|
28 |
+
z-index: 1104;
|
29 |
+
display: none;
|
30 |
+
}
|
31 |
+
|
32 |
+
#fancybox-loading div {
|
33 |
+
position: absolute;
|
34 |
+
top: 0;
|
35 |
+
left: 0;
|
36 |
+
width: 40px;
|
37 |
+
height: 480px;
|
38 |
+
background-image: url('fancybox.png');
|
39 |
+
}
|
40 |
+
|
41 |
+
#fancybox-overlay {
|
42 |
+
position: absolute;
|
43 |
+
top: 0;
|
44 |
+
left: 0;
|
45 |
+
width: 100%;
|
46 |
+
height: 100%;
|
47 |
+
z-index: 1100;
|
48 |
+
display: none;
|
49 |
+
}
|
50 |
+
|
51 |
+
#fancybox-tmp {
|
52 |
+
padding: 0;
|
53 |
+
margin: 0;
|
54 |
+
border: 0;
|
55 |
+
overflow: auto;
|
56 |
+
display: none;
|
57 |
+
}
|
58 |
+
|
59 |
+
#fancybox-wrap {
|
60 |
+
position: absolute;
|
61 |
+
top: 0;
|
62 |
+
left: 0;
|
63 |
+
padding: 20px;
|
64 |
+
z-index: 1101;
|
65 |
+
outline: none;
|
66 |
+
display: none;
|
67 |
+
}
|
68 |
+
|
69 |
+
#fancybox-outer {
|
70 |
+
position: relative;
|
71 |
+
width: 100%;
|
72 |
+
height: 100%;
|
73 |
+
background: #fff;
|
74 |
+
}
|
75 |
+
|
76 |
+
#fancybox-content {
|
77 |
+
width: 0;
|
78 |
+
height: 0;
|
79 |
+
padding: 0;
|
80 |
+
outline: none;
|
81 |
+
position: relative;
|
82 |
+
overflow: hidden;
|
83 |
+
z-index: 1102;
|
84 |
+
border: 0px solid #fff;
|
85 |
+
}
|
86 |
+
|
87 |
+
#fancybox-hide-sel-frame {
|
88 |
+
position: absolute;
|
89 |
+
top: 0;
|
90 |
+
left: 0;
|
91 |
+
width: 100%;
|
92 |
+
height: 100%;
|
93 |
+
background: transparent;
|
94 |
+
z-index: 1101;
|
95 |
+
}
|
96 |
+
|
97 |
+
#fancybox-close {
|
98 |
+
position: absolute;
|
99 |
+
top: -15px;
|
100 |
+
right: -15px;
|
101 |
+
width: 30px;
|
102 |
+
height: 30px;
|
103 |
+
background: transparent url('fancybox.png') -40px 0px;
|
104 |
+
cursor: pointer;
|
105 |
+
z-index: 1103;
|
106 |
+
display: none;
|
107 |
+
}
|
108 |
+
|
109 |
+
#fancybox-error {
|
110 |
+
color: #444;
|
111 |
+
font: normal 12px/20px Arial;
|
112 |
+
padding: 14px;
|
113 |
+
margin: 0;
|
114 |
+
}
|
115 |
+
|
116 |
+
#fancybox-img {
|
117 |
+
width: 100%;
|
118 |
+
height: 100%;
|
119 |
+
padding: 0;
|
120 |
+
margin: 0;
|
121 |
+
border: none;
|
122 |
+
outline: none;
|
123 |
+
line-height: 0;
|
124 |
+
vertical-align: top;
|
125 |
+
}
|
126 |
+
|
127 |
+
#fancybox-frame {
|
128 |
+
width: 100%;
|
129 |
+
height: 100%;
|
130 |
+
border: none;
|
131 |
+
display: block;
|
132 |
+
}
|
133 |
+
|
134 |
+
#fancybox-left, #fancybox-right {
|
135 |
+
position: absolute;
|
136 |
+
bottom: 0px;
|
137 |
+
height: 100%;
|
138 |
+
width: 35%;
|
139 |
+
cursor: pointer;
|
140 |
+
outline: none;
|
141 |
+
background: transparent url('blank.gif');
|
142 |
+
z-index: 1102;
|
143 |
+
display: none;
|
144 |
+
}
|
145 |
+
|
146 |
+
#fancybox-left {
|
147 |
+
left: 0px;
|
148 |
+
}
|
149 |
+
|
150 |
+
#fancybox-right {
|
151 |
+
right: 0px;
|
152 |
+
}
|
153 |
+
|
154 |
+
#fancybox-left-ico, #fancybox-right-ico {
|
155 |
+
position: absolute;
|
156 |
+
top: 50%;
|
157 |
+
left: -9999px;
|
158 |
+
width: 30px;
|
159 |
+
height: 30px;
|
160 |
+
margin-top: -15px;
|
161 |
+
cursor: pointer;
|
162 |
+
z-index: 1102;
|
163 |
+
display: block;
|
164 |
+
}
|
165 |
+
|
166 |
+
#fancybox-left-ico {
|
167 |
+
background-image: url('fancybox.png');
|
168 |
+
background-position: -40px -30px;
|
169 |
+
}
|
170 |
+
|
171 |
+
#fancybox-right-ico {
|
172 |
+
background-image: url('fancybox.png');
|
173 |
+
background-position: -40px -60px;
|
174 |
+
}
|
175 |
+
|
176 |
+
#fancybox-left:hover, #fancybox-right:hover {
|
177 |
+
visibility: visible; /* IE6 */
|
178 |
+
}
|
179 |
+
|
180 |
+
#fancybox-left:hover span {
|
181 |
+
left: 20px;
|
182 |
+
}
|
183 |
+
|
184 |
+
#fancybox-right:hover span {
|
185 |
+
left: auto;
|
186 |
+
right: 20px;
|
187 |
+
}
|
188 |
+
|
189 |
+
.fancybox-bg {
|
190 |
+
position: absolute;
|
191 |
+
padding: 0;
|
192 |
+
margin: 0;
|
193 |
+
border: 0;
|
194 |
+
width: 20px;
|
195 |
+
height: 20px;
|
196 |
+
z-index: 1001;
|
197 |
+
}
|
198 |
+
|
199 |
+
#fancybox-bg-n {
|
200 |
+
top: -20px;
|
201 |
+
left: 0;
|
202 |
+
width: 100%;
|
203 |
+
background-image: url('fancybox-x.png');
|
204 |
+
}
|
205 |
+
|
206 |
+
#fancybox-bg-ne {
|
207 |
+
top: -20px;
|
208 |
+
right: -20px;
|
209 |
+
background-image: url('fancybox.png');
|
210 |
+
background-position: -40px -162px;
|
211 |
+
}
|
212 |
+
|
213 |
+
#fancybox-bg-e {
|
214 |
+
top: 0;
|
215 |
+
right: -20px;
|
216 |
+
height: 100%;
|
217 |
+
background-image: url('fancybox-y.png');
|
218 |
+
background-position: -20px 0px;
|
219 |
+
}
|
220 |
+
|
221 |
+
#fancybox-bg-se {
|
222 |
+
bottom: -20px;
|
223 |
+
right: -20px;
|
224 |
+
background-image: url('fancybox.png');
|
225 |
+
background-position: -40px -182px;
|
226 |
+
}
|
227 |
+
|
228 |
+
#fancybox-bg-s {
|
229 |
+
bottom: -20px;
|
230 |
+
left: 0;
|
231 |
+
width: 100%;
|
232 |
+
background-image: url('fancybox-x.png');
|
233 |
+
background-position: 0px -20px;
|
234 |
+
}
|
235 |
+
|
236 |
+
#fancybox-bg-sw {
|
237 |
+
bottom: -20px;
|
238 |
+
left: -20px;
|
239 |
+
background-image: url('fancybox.png');
|
240 |
+
background-position: -40px -142px;
|
241 |
+
}
|
242 |
+
|
243 |
+
#fancybox-bg-w {
|
244 |
+
top: 0;
|
245 |
+
left: -20px;
|
246 |
+
height: 100%;
|
247 |
+
background-image: url('fancybox-y.png');
|
248 |
+
}
|
249 |
+
|
250 |
+
#fancybox-bg-nw {
|
251 |
+
top: -20px;
|
252 |
+
left: -20px;
|
253 |
+
background-image: url('fancybox.png');
|
254 |
+
background-position: -40px -122px;
|
255 |
+
}
|
256 |
+
|
257 |
+
#fancybox-title {
|
258 |
+
font-family: Helvetica;
|
259 |
+
font-size: 12px;
|
260 |
+
z-index: 1102;
|
261 |
+
}
|
262 |
+
|
263 |
+
.fancybox-title-inside {
|
264 |
+
padding-bottom: 10px;
|
265 |
+
text-align: center;
|
266 |
+
color: #333;
|
267 |
+
background: #fff;
|
268 |
+
position: relative;
|
269 |
+
}
|
270 |
+
|
271 |
+
.fancybox-title-outside {
|
272 |
+
padding-top: 10px;
|
273 |
+
color: #fff;
|
274 |
+
}
|
275 |
+
|
276 |
+
.fancybox-title-over {
|
277 |
+
position: absolute;
|
278 |
+
bottom: 0;
|
279 |
+
left: 0;
|
280 |
+
color: #FFF;
|
281 |
+
text-align: left;
|
282 |
+
}
|
283 |
+
|
284 |
+
#fancybox-title-over {
|
285 |
+
padding: 10px;
|
286 |
+
background-image: url('fancy_title_over.png');
|
287 |
+
display: block;
|
288 |
+
}
|
289 |
+
|
290 |
+
.fancybox-title-float {
|
291 |
+
position: absolute;
|
292 |
+
left: 0;
|
293 |
+
bottom: -20px;
|
294 |
+
height: 32px;
|
295 |
+
}
|
296 |
+
|
297 |
+
#fancybox-title-float-wrap {
|
298 |
+
border: none;
|
299 |
+
border-collapse: collapse;
|
300 |
+
width: auto;
|
301 |
+
}
|
302 |
+
|
303 |
+
#fancybox-title-float-wrap td {
|
304 |
+
white-space: nowrap;
|
305 |
+
}
|
306 |
+
|
307 |
+
#fancybox-title-float-left {
|
308 |
+
padding-left: 15px;
|
309 |
+
background: url('fancybox.png') -40px -90px no-repeat;
|
310 |
+
}
|
311 |
+
|
312 |
+
#fancybox-title-float-main {
|
313 |
+
color: #FFF;
|
314 |
+
line-height: 29px;
|
315 |
+
font-weight: bold;
|
316 |
+
padding-bottom: 3px;
|
317 |
+
background: url('fancybox-x.png') 0px -40px;
|
318 |
+
}
|
319 |
+
|
320 |
+
#fancybox-title-float-right {
|
321 |
+
padding-left: 15px;
|
322 |
+
background: url('fancybox.png') -55px -90px no-repeat;
|
323 |
+
}
|
324 |
+
|
325 |
+
/* IE6 */
|
326 |
+
|
327 |
+
.fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale'); }
|
328 |
+
|
329 |
+
.fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale'); }
|
330 |
+
.fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale'); }
|
331 |
+
|
332 |
+
.fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
|
333 |
+
.fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale'); }
|
334 |
+
.fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); }
|
335 |
+
.fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); }
|
336 |
+
|
337 |
+
.fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {
|
338 |
+
height: expression(this.parentNode.clientHeight + "px");
|
339 |
+
}
|
340 |
+
|
341 |
+
#fancybox-loading.fancybox-ie6 {
|
342 |
+
position: absolute; margin-top: 0;
|
343 |
+
top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px');
|
344 |
+
}
|
345 |
+
|
346 |
+
#fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale'); }
|
347 |
+
|
348 |
+
/* IE6, IE7, IE8 */
|
349 |
+
|
350 |
+
.fancybox-ie .fancybox-bg { background: transparent !important; }
|
351 |
+
|
352 |
+
.fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale'); }
|
353 |
+
.fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale'); }
|
354 |
+
.fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale'); }
|
355 |
+
.fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale'); }
|
356 |
+
.fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
|
357 |
+
.fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
|
358 |
+
.fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
|
359 |
+
.fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
|
js/magentopycho/fancybox/jquery.fancybox-1.3.2.js
ADDED
@@ -0,0 +1,1136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* FancyBox - jQuery Plugin
|
3 |
+
* Simple and fancy lightbox alternative
|
4 |
+
*
|
5 |
+
* Examples and documentation at: http://fancybox.net
|
6 |
+
*
|
7 |
+
* Copyright (c) 2008 - 2010 Janis Skarnelis
|
8 |
+
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
|
9 |
+
*
|
10 |
+
* Version: 1.3.2 (20/10/2010)
|
11 |
+
* Requires: jQuery v1.3+
|
12 |
+
*
|
13 |
+
* Dual licensed under the MIT and GPL licenses:
|
14 |
+
* http://www.opensource.org/licenses/mit-license.php
|
15 |
+
* http://www.gnu.org/licenses/gpl.html
|
16 |
+
*/
|
17 |
+
|
18 |
+
;(function($) {
|
19 |
+
var tmp, loading, overlay, wrap, outer, content, close, title, nav_left, nav_right,
|
20 |
+
|
21 |
+
selectedIndex = 0, selectedOpts = {}, selectedArray = [], currentIndex = 0, currentOpts = {}, currentArray = [],
|
22 |
+
|
23 |
+
ajaxLoader = null, imgPreloader = new Image(), imgRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i, swfRegExp = /[^\.]\.(swf)\s*$/i,
|
24 |
+
|
25 |
+
loadingTimer, loadingFrame = 1,
|
26 |
+
|
27 |
+
titleHeight = 0, titleStr = '', start_pos, final_pos, busy = false, fx = $.extend($('<div/>')[0], { prop: 0 }),
|
28 |
+
|
29 |
+
isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHttpRequest,
|
30 |
+
|
31 |
+
/*
|
32 |
+
* Private methods
|
33 |
+
*/
|
34 |
+
|
35 |
+
_abort = function() {
|
36 |
+
loading.hide();
|
37 |
+
|
38 |
+
imgPreloader.onerror = imgPreloader.onload = null;
|
39 |
+
|
40 |
+
if (ajaxLoader) {
|
41 |
+
ajaxLoader.abort();
|
42 |
+
}
|
43 |
+
|
44 |
+
tmp.empty();
|
45 |
+
},
|
46 |
+
|
47 |
+
_error = function() {
|
48 |
+
if (false === selectedOpts.onError(selectedArray, selectedIndex, selectedOpts)) {
|
49 |
+
loading.hide();
|
50 |
+
busy = false;
|
51 |
+
return;
|
52 |
+
}
|
53 |
+
|
54 |
+
selectedOpts.titleShow = false;
|
55 |
+
|
56 |
+
selectedOpts.width = 'auto';
|
57 |
+
selectedOpts.height = 'auto';
|
58 |
+
|
59 |
+
tmp.html( '<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>' );
|
60 |
+
|
61 |
+
_process_inline();
|
62 |
+
},
|
63 |
+
|
64 |
+
_start = function() {
|
65 |
+
var obj = selectedArray[ selectedIndex ],
|
66 |
+
href,
|
67 |
+
type,
|
68 |
+
title,
|
69 |
+
str,
|
70 |
+
emb,
|
71 |
+
ret;
|
72 |
+
|
73 |
+
_abort();
|
74 |
+
|
75 |
+
selectedOpts = $.extend({}, $.fn.fancybox.defaults, (typeof $(obj).data('fancybox') == 'undefined' ? selectedOpts : $(obj).data('fancybox')));
|
76 |
+
|
77 |
+
ret = selectedOpts.onStart(selectedArray, selectedIndex, selectedOpts);
|
78 |
+
|
79 |
+
if (ret === false) {
|
80 |
+
busy = false;
|
81 |
+
return;
|
82 |
+
} else if (typeof ret == 'object') {
|
83 |
+
selectedOpts = $.extend(selectedOpts, ret);
|
84 |
+
}
|
85 |
+
|
86 |
+
title = selectedOpts.title || (obj.nodeName ? $(obj).attr('title') : obj.title) || '';
|
87 |
+
|
88 |
+
if (obj.nodeName && !selectedOpts.orig) {
|
89 |
+
selectedOpts.orig = $(obj).children("img:first").length ? $(obj).children("img:first") : $(obj);
|
90 |
+
}
|
91 |
+
|
92 |
+
if (title === '' && selectedOpts.orig && selectedOpts.titleFromAlt) {
|
93 |
+
title = selectedOpts.orig.attr('alt');
|
94 |
+
}
|
95 |
+
|
96 |
+
href = selectedOpts.href || (obj.nodeName ? $(obj).attr('href') : obj.href) || null;
|
97 |
+
|
98 |
+
if ((/^(?:javascript)/i).test(href) || href == '#') {
|
99 |
+
href = null;
|
100 |
+
}
|
101 |
+
|
102 |
+
if (selectedOpts.type) {
|
103 |
+
type = selectedOpts.type;
|
104 |
+
|
105 |
+
if (!href) {
|
106 |
+
href = selectedOpts.content;
|
107 |
+
}
|
108 |
+
|
109 |
+
} else if (selectedOpts.content) {
|
110 |
+
type = 'html';
|
111 |
+
|
112 |
+
} else if (href) {
|
113 |
+
if (href.match(imgRegExp)) {
|
114 |
+
type = 'image';
|
115 |
+
|
116 |
+
} else if (href.match(swfRegExp)) {
|
117 |
+
type = 'swf';
|
118 |
+
|
119 |
+
} else if ($(obj).hasClass("iframe")) {
|
120 |
+
type = 'iframe';
|
121 |
+
|
122 |
+
} else if (href.indexOf("#") === 0) {
|
123 |
+
type = 'inline';
|
124 |
+
|
125 |
+
} else {
|
126 |
+
type = 'ajax';
|
127 |
+
}
|
128 |
+
}
|
129 |
+
|
130 |
+
if (!type) {
|
131 |
+
_error();
|
132 |
+
return;
|
133 |
+
}
|
134 |
+
|
135 |
+
if (type == 'inline') {
|
136 |
+
obj = href.substr(href.indexOf("#"));
|
137 |
+
type = $(obj).length > 0 ? 'inline' : 'ajax';
|
138 |
+
}
|
139 |
+
|
140 |
+
selectedOpts.type = type;
|
141 |
+
selectedOpts.href = href;
|
142 |
+
selectedOpts.title = title;
|
143 |
+
|
144 |
+
if (selectedOpts.autoDimensions && selectedOpts.type !== 'iframe' && selectedOpts.type !== 'swf') {
|
145 |
+
selectedOpts.width = 'auto';
|
146 |
+
selectedOpts.height = 'auto';
|
147 |
+
}
|
148 |
+
|
149 |
+
if (selectedOpts.modal) {
|
150 |
+
selectedOpts.overlayShow = true;
|
151 |
+
selectedOpts.hideOnOverlayClick = false;
|
152 |
+
selectedOpts.hideOnContentClick = false;
|
153 |
+
selectedOpts.enableEscapeButton = false;
|
154 |
+
selectedOpts.showCloseButton = false;
|
155 |
+
}
|
156 |
+
|
157 |
+
selectedOpts.padding = parseInt(selectedOpts.padding, 10);
|
158 |
+
selectedOpts.margin = parseInt(selectedOpts.margin, 10);
|
159 |
+
|
160 |
+
tmp.css('padding', (selectedOpts.padding + selectedOpts.margin));
|
161 |
+
|
162 |
+
$('.fancybox-inline-tmp').unbind('fancybox-cancel').bind('fancybox-change', function() {
|
163 |
+
$(this).replaceWith(content.children());
|
164 |
+
});
|
165 |
+
|
166 |
+
switch (type) {
|
167 |
+
case 'html' :
|
168 |
+
tmp.html( selectedOpts.content );
|
169 |
+
_process_inline();
|
170 |
+
break;
|
171 |
+
|
172 |
+
case 'inline' :
|
173 |
+
if ( $(obj).parent().is('#fancybox-content') === true) {
|
174 |
+
busy = false;
|
175 |
+
return;
|
176 |
+
}
|
177 |
+
|
178 |
+
$('<div class="fancybox-inline-tmp" />')
|
179 |
+
.hide()
|
180 |
+
.insertBefore( $(obj) )
|
181 |
+
.bind('fancybox-cleanup', function() {
|
182 |
+
$(this).replaceWith(content.children());
|
183 |
+
}).bind('fancybox-cancel', function() {
|
184 |
+
$(this).replaceWith(tmp.children());
|
185 |
+
});
|
186 |
+
|
187 |
+
$(obj).appendTo(tmp);
|
188 |
+
|
189 |
+
_process_inline();
|
190 |
+
break;
|
191 |
+
|
192 |
+
case 'image':
|
193 |
+
busy = false;
|
194 |
+
|
195 |
+
$.fancybox.showActivity();
|
196 |
+
|
197 |
+
imgPreloader = new Image();
|
198 |
+
|
199 |
+
imgPreloader.onerror = function() {
|
200 |
+
_error();
|
201 |
+
};
|
202 |
+
|
203 |
+
imgPreloader.onload = function() {
|
204 |
+
busy = true;
|
205 |
+
|
206 |
+
imgPreloader.onerror = imgPreloader.onload = null;
|
207 |
+
|
208 |
+
_process_image();
|
209 |
+
};
|
210 |
+
|
211 |
+
imgPreloader.src = href;
|
212 |
+
break;
|
213 |
+
|
214 |
+
case 'swf':
|
215 |
+
str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"><param name="movie" value="' + href + '"></param>';
|
216 |
+
emb = '';
|
217 |
+
|
218 |
+
$.each(selectedOpts.swf, function(name, val) {
|
219 |
+
str += '<param name="' + name + '" value="' + val + '"></param>';
|
220 |
+
emb += ' ' + name + '="' + val + '"';
|
221 |
+
});
|
222 |
+
|
223 |
+
str += '<embed src="' + href + '" type="application/x-shockwave-flash" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"' + emb + '></embed></object>';
|
224 |
+
|
225 |
+
tmp.html(str);
|
226 |
+
|
227 |
+
_process_inline();
|
228 |
+
break;
|
229 |
+
|
230 |
+
case 'ajax':
|
231 |
+
busy = false;
|
232 |
+
|
233 |
+
$.fancybox.showActivity();
|
234 |
+
|
235 |
+
selectedOpts.ajax.win = selectedOpts.ajax.success;
|
236 |
+
|
237 |
+
ajaxLoader = $.ajax($.extend({}, selectedOpts.ajax, {
|
238 |
+
url : href,
|
239 |
+
data : selectedOpts.ajax.data || {},
|
240 |
+
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
241 |
+
if ( XMLHttpRequest.status > 0 ) {
|
242 |
+
_error();
|
243 |
+
}
|
244 |
+
},
|
245 |
+
success : function(data, textStatus, XMLHttpRequest) {
|
246 |
+
if ( XMLHttpRequest.status == 200 ) {
|
247 |
+
if ( typeof selectedOpts.ajax.win == 'function' ) {
|
248 |
+
ret = selectedOpts.ajax.win(href, data, textStatus, XMLHttpRequest);
|
249 |
+
|
250 |
+
if (ret === false) {
|
251 |
+
loading.hide();
|
252 |
+
return;
|
253 |
+
} else if (typeof ret == 'string' || typeof ret == 'object') {
|
254 |
+
data = ret;
|
255 |
+
}
|
256 |
+
}
|
257 |
+
|
258 |
+
tmp.html( data );
|
259 |
+
_process_inline();
|
260 |
+
}
|
261 |
+
}
|
262 |
+
}));
|
263 |
+
|
264 |
+
break;
|
265 |
+
|
266 |
+
case 'iframe' :
|
267 |
+
_show();
|
268 |
+
break;
|
269 |
+
}
|
270 |
+
},
|
271 |
+
|
272 |
+
_process_inline = function() {
|
273 |
+
tmp.width( selectedOpts.width );
|
274 |
+
tmp.height( selectedOpts.height );
|
275 |
+
|
276 |
+
if (selectedOpts.width == 'auto') {
|
277 |
+
selectedOpts.width = tmp.width();
|
278 |
+
}
|
279 |
+
|
280 |
+
if (selectedOpts.height == 'auto') {
|
281 |
+
selectedOpts.height = tmp.height();
|
282 |
+
}
|
283 |
+
|
284 |
+
_show();
|
285 |
+
},
|
286 |
+
|
287 |
+
_process_image = function() {
|
288 |
+
selectedOpts.width = imgPreloader.width;
|
289 |
+
selectedOpts.height = imgPreloader.height;
|
290 |
+
|
291 |
+
$("<img />").attr({
|
292 |
+
'id' : 'fancybox-img',
|
293 |
+
'src' : imgPreloader.src,
|
294 |
+
'alt' : selectedOpts.title
|
295 |
+
}).appendTo( tmp );
|
296 |
+
|
297 |
+
_show();
|
298 |
+
},
|
299 |
+
|
300 |
+
_show = function() {
|
301 |
+
var pos, equal;
|
302 |
+
|
303 |
+
loading.hide();
|
304 |
+
|
305 |
+
if (wrap.is(":visible") && false === currentOpts.onCleanup(currentArray, currentIndex, currentOpts)) {
|
306 |
+
$.event.trigger('fancybox-cancel');
|
307 |
+
|
308 |
+
busy = false;
|
309 |
+
return;
|
310 |
+
}
|
311 |
+
|
312 |
+
busy = true;
|
313 |
+
|
314 |
+
$(content.add( overlay )).unbind();
|
315 |
+
|
316 |
+
$(window).unbind("resize.fb scroll.fb");
|
317 |
+
$(document).unbind('keydown.fb');
|
318 |
+
|
319 |
+
if (wrap.is(":visible") && currentOpts.titlePosition !== 'outside') {
|
320 |
+
wrap.css('height', wrap.height());
|
321 |
+
}
|
322 |
+
|
323 |
+
currentArray = selectedArray;
|
324 |
+
currentIndex = selectedIndex;
|
325 |
+
currentOpts = selectedOpts;
|
326 |
+
|
327 |
+
if (currentOpts.overlayShow) {
|
328 |
+
overlay.css({
|
329 |
+
'background-color' : currentOpts.overlayColor,
|
330 |
+
'opacity' : currentOpts.overlayOpacity,
|
331 |
+
'cursor' : currentOpts.hideOnOverlayClick ? 'pointer' : 'auto',
|
332 |
+
'height' : $(document).height()
|
333 |
+
});
|
334 |
+
|
335 |
+
if (!overlay.is(':visible')) {
|
336 |
+
if (isIE6) {
|
337 |
+
$('select:not(#fancybox-tmp select)').filter(function() {
|
338 |
+
return this.style.visibility !== 'hidden';
|
339 |
+
}).css({'visibility' : 'hidden'}).one('fancybox-cleanup', function() {
|
340 |
+
this.style.visibility = 'inherit';
|
341 |
+
});
|
342 |
+
}
|
343 |
+
|
344 |
+
overlay.show();
|
345 |
+
}
|
346 |
+
} else {
|
347 |
+
overlay.hide();
|
348 |
+
}
|
349 |
+
|
350 |
+
content.get(0).scrollTop = 0;
|
351 |
+
content.get(0).scrollLeft = 0;
|
352 |
+
|
353 |
+
final_pos = _get_zoom_to();
|
354 |
+
|
355 |
+
_process_title();
|
356 |
+
|
357 |
+
if (wrap.is(":visible")) {
|
358 |
+
$( close.add( nav_left ).add( nav_right ) ).hide();
|
359 |
+
|
360 |
+
pos = wrap.position(),
|
361 |
+
|
362 |
+
start_pos = {
|
363 |
+
top : pos.top,
|
364 |
+
left : pos.left,
|
365 |
+
width : wrap.width(),
|
366 |
+
height : wrap.height()
|
367 |
+
};
|
368 |
+
|
369 |
+
equal = (start_pos.width == final_pos.width && start_pos.height == final_pos.height);
|
370 |
+
|
371 |
+
content.fadeTo(currentOpts.changeFade, 0.3, function() {
|
372 |
+
var finish_resizing = function() {
|
373 |
+
content.html( tmp.contents() ).fadeTo(currentOpts.changeFade, 1, _finish);
|
374 |
+
};
|
375 |
+
|
376 |
+
$.event.trigger('fancybox-change');
|
377 |
+
|
378 |
+
content
|
379 |
+
.empty()
|
380 |
+
.removeAttr('filter')
|
381 |
+
.css({
|
382 |
+
'border-width' : currentOpts.padding,
|
383 |
+
'width' : final_pos.width - currentOpts.padding * 2,
|
384 |
+
'height' : currentOpts.type == 'image' || currentOpts.type == 'swf' || currentOpts.type == 'iframe' ? final_pos.height - titleHeight - currentOpts.padding * 2 : 'auto'
|
385 |
+
});
|
386 |
+
|
387 |
+
if (equal) {
|
388 |
+
finish_resizing();
|
389 |
+
|
390 |
+
} else {
|
391 |
+
fx.prop = 0;
|
392 |
+
|
393 |
+
$(fx).animate({prop: 1}, {
|
394 |
+
duration : currentOpts.changeSpeed,
|
395 |
+
easing : currentOpts.easingChange,
|
396 |
+
step : _draw,
|
397 |
+
complete : finish_resizing
|
398 |
+
});
|
399 |
+
}
|
400 |
+
});
|
401 |
+
|
402 |
+
return;
|
403 |
+
}
|
404 |
+
|
405 |
+
wrap.removeAttr("style");
|
406 |
+
|
407 |
+
content.css('border-width', currentOpts.padding);
|
408 |
+
|
409 |
+
if (currentOpts.transitionIn == 'elastic') {
|
410 |
+
start_pos = _get_zoom_from();
|
411 |
+
|
412 |
+
content.html( tmp.contents() );
|
413 |
+
|
414 |
+
wrap.show();
|
415 |
+
|
416 |
+
if (currentOpts.opacity) {
|
417 |
+
final_pos.opacity = 0;
|
418 |
+
}
|
419 |
+
|
420 |
+
fx.prop = 0;
|
421 |
+
|
422 |
+
$(fx).animate({prop: 1}, {
|
423 |
+
duration : currentOpts.speedIn,
|
424 |
+
easing : currentOpts.easingIn,
|
425 |
+
step : _draw,
|
426 |
+
complete : _finish
|
427 |
+
});
|
428 |
+
|
429 |
+
return;
|
430 |
+
}
|
431 |
+
|
432 |
+
if (currentOpts.titlePosition == 'inside' && titleHeight > 0) {
|
433 |
+
title.show();
|
434 |
+
}
|
435 |
+
|
436 |
+
content
|
437 |
+
.css({
|
438 |
+
'width' : final_pos.width - currentOpts.padding * 2,
|
439 |
+
'height' : currentOpts.type == 'image' || currentOpts.type == 'swf' || currentOpts.type == 'iframe' ? final_pos.height - titleHeight - currentOpts.padding * 2 : 'auto'
|
440 |
+
})
|
441 |
+
.html( tmp.contents() );
|
442 |
+
|
443 |
+
wrap
|
444 |
+
.css(final_pos)
|
445 |
+
.fadeIn( currentOpts.transitionIn == 'none' ? 0 : currentOpts.fadeIn, _finish );
|
446 |
+
},
|
447 |
+
|
448 |
+
_format_title = function(title) {
|
449 |
+
if (title && title.length) {
|
450 |
+
if (currentOpts.titlePosition == 'float') {
|
451 |
+
return '<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">' + title + '</td><td id="fancybox-title-float-right"></td></tr></table>';
|
452 |
+
}
|
453 |
+
|
454 |
+
return '<div id="fancybox-title-' + currentOpts.titlePosition + '">' + title + '</div>';
|
455 |
+
}
|
456 |
+
|
457 |
+
return false;
|
458 |
+
},
|
459 |
+
|
460 |
+
_process_title = function() {
|
461 |
+
titleStr = currentOpts.title || '';
|
462 |
+
titleHeight = 0;
|
463 |
+
|
464 |
+
title
|
465 |
+
.empty()
|
466 |
+
.removeAttr('style')
|
467 |
+
.removeClass();
|
468 |
+
|
469 |
+
if (currentOpts.titleShow === false) {
|
470 |
+
title.hide();
|
471 |
+
return;
|
472 |
+
}
|
473 |
+
|
474 |
+
titleStr = $.isFunction(currentOpts.titleFormat) ? currentOpts.titleFormat(titleStr, currentArray, currentIndex, currentOpts) : _format_title(titleStr);
|
475 |
+
|
476 |
+
if (!titleStr || titleStr === '') {
|
477 |
+
title.hide();
|
478 |
+
return;
|
479 |
+
}
|
480 |
+
|
481 |
+
title
|
482 |
+
.addClass('fancybox-title-' + currentOpts.titlePosition)
|
483 |
+
.html( titleStr )
|
484 |
+
.appendTo( 'body' )
|
485 |
+
.show();
|
486 |
+
|
487 |
+
switch (currentOpts.titlePosition) {
|
488 |
+
case 'inside':
|
489 |
+
title
|
490 |
+
.css({
|
491 |
+
'width' : final_pos.width - (currentOpts.padding * 2),
|
492 |
+
'marginLeft' : currentOpts.padding,
|
493 |
+
'marginRight' : currentOpts.padding
|
494 |
+
});
|
495 |
+
|
496 |
+
titleHeight = title.outerHeight(true);
|
497 |
+
|
498 |
+
title.appendTo( outer );
|
499 |
+
|
500 |
+
final_pos.height += titleHeight;
|
501 |
+
break;
|
502 |
+
|
503 |
+
case 'over':
|
504 |
+
title
|
505 |
+
.css({
|
506 |
+
'marginLeft' : currentOpts.padding,
|
507 |
+
'width' : final_pos.width - (currentOpts.padding * 2),
|
508 |
+
'bottom' : currentOpts.padding
|
509 |
+
})
|
510 |
+
.appendTo( outer );
|
511 |
+
break;
|
512 |
+
|
513 |
+
case 'float':
|
514 |
+
title
|
515 |
+
.css('left', parseInt((title.width() - final_pos.width - 40)/ 2, 10) * -1)
|
516 |
+
.appendTo( wrap );
|
517 |
+
break;
|
518 |
+
|
519 |
+
default:
|
520 |
+
title
|
521 |
+
.css({
|
522 |
+
'width' : final_pos.width - (currentOpts.padding * 2),
|
523 |
+
'paddingLeft' : currentOpts.padding,
|
524 |
+
'paddingRight' : currentOpts.padding
|
525 |
+
})
|
526 |
+
.appendTo( wrap );
|
527 |
+
break;
|
528 |
+
}
|
529 |
+
|
530 |
+
title.hide();
|
531 |
+
},
|
532 |
+
|
533 |
+
_set_navigation = function() {
|
534 |
+
if (currentOpts.enableEscapeButton || currentOpts.enableKeyboardNav) {
|
535 |
+
$(document).bind('keydown.fb', function(e) {
|
536 |
+
if (e.keyCode == 27 && currentOpts.enableEscapeButton) {
|
537 |
+
e.preventDefault();
|
538 |
+
$.fancybox.close();
|
539 |
+
|
540 |
+
} else if ((e.keyCode == 37 || e.keyCode == 39) && currentOpts.enableKeyboardNav && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {
|
541 |
+
e.preventDefault();
|
542 |
+
$.fancybox[ e.keyCode == 37 ? 'prev' : 'next']();
|
543 |
+
}
|
544 |
+
});
|
545 |
+
}
|
546 |
+
|
547 |
+
if (!currentOpts.showNavArrows) {
|
548 |
+
nav_left.hide();
|
549 |
+
nav_right.hide();
|
550 |
+
return;
|
551 |
+
}
|
552 |
+
|
553 |
+
if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex !== 0) {
|
554 |
+
nav_left.show();
|
555 |
+
}
|
556 |
+
|
557 |
+
if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex != (currentArray.length -1)) {
|
558 |
+
nav_right.show();
|
559 |
+
}
|
560 |
+
},
|
561 |
+
|
562 |
+
_finish = function () {
|
563 |
+
if (!$.support.opacity) {
|
564 |
+
content.get(0).style.removeAttribute('filter');
|
565 |
+
wrap.get(0).style.removeAttribute('filter');
|
566 |
+
}
|
567 |
+
|
568 |
+
wrap.css('height', 'auto');
|
569 |
+
|
570 |
+
if (currentOpts.type !== 'image' && currentOpts.type !== 'swf' && currentOpts.type !== 'iframe') {
|
571 |
+
content.css('height', 'auto');
|
572 |
+
}
|
573 |
+
|
574 |
+
if (titleStr && titleStr.length) {
|
575 |
+
title.show();
|
576 |
+
}
|
577 |
+
|
578 |
+
if (currentOpts.showCloseButton) {
|
579 |
+
close.show();
|
580 |
+
}
|
581 |
+
|
582 |
+
_set_navigation();
|
583 |
+
|
584 |
+
if (currentOpts.hideOnContentClick) {
|
585 |
+
content.bind('click', $.fancybox.close);
|
586 |
+
}
|
587 |
+
|
588 |
+
if (currentOpts.hideOnOverlayClick) {
|
589 |
+
overlay.bind('click', $.fancybox.close);
|
590 |
+
}
|
591 |
+
|
592 |
+
$(window).bind("resize.fb", $.fancybox.resize);
|
593 |
+
|
594 |
+
if (currentOpts.centerOnScroll) {
|
595 |
+
$(window).bind("scroll.fb", $.fancybox.center);
|
596 |
+
}
|
597 |
+
|
598 |
+
if (currentOpts.type == 'iframe') {
|
599 |
+
$('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + ($.browser.msie ? 'allowtransparency="true""' : '') + ' scrolling="' + selectedOpts.scrolling + '" src="' + currentOpts.href + '"></iframe>').appendTo(content);
|
600 |
+
}
|
601 |
+
|
602 |
+
wrap.show();
|
603 |
+
|
604 |
+
busy = false;
|
605 |
+
|
606 |
+
$.fancybox.center();
|
607 |
+
|
608 |
+
currentOpts.onComplete(currentArray, currentIndex, currentOpts);
|
609 |
+
|
610 |
+
_preload_images();
|
611 |
+
},
|
612 |
+
|
613 |
+
_preload_images = function() {
|
614 |
+
var href,
|
615 |
+
objNext;
|
616 |
+
|
617 |
+
if ((currentArray.length -1) > currentIndex) {
|
618 |
+
href = currentArray[ currentIndex + 1 ].href;
|
619 |
+
|
620 |
+
if (typeof href !== 'undefined' && href.match(imgRegExp)) {
|
621 |
+
objNext = new Image();
|
622 |
+
objNext.src = href;
|
623 |
+
}
|
624 |
+
}
|
625 |
+
|
626 |
+
if (currentIndex > 0) {
|
627 |
+
href = currentArray[ currentIndex - 1 ].href;
|
628 |
+
|
629 |
+
if (typeof href !== 'undefined' && href.match(imgRegExp)) {
|
630 |
+
objNext = new Image();
|
631 |
+
objNext.src = href;
|
632 |
+
}
|
633 |
+
}
|
634 |
+
},
|
635 |
+
|
636 |
+
_draw = function(pos) {
|
637 |
+
var dim = {
|
638 |
+
width : parseInt(start_pos.width + (final_pos.width - start_pos.width) * pos, 10),
|
639 |
+
height : parseInt(start_pos.height + (final_pos.height - start_pos.height) * pos, 10),
|
640 |
+
|
641 |
+
top : parseInt(start_pos.top + (final_pos.top - start_pos.top) * pos, 10),
|
642 |
+
left : parseInt(start_pos.left + (final_pos.left - start_pos.left) * pos, 10)
|
643 |
+
};
|
644 |
+
|
645 |
+
if (typeof final_pos.opacity !== 'undefined') {
|
646 |
+
dim.opacity = pos < 0.5 ? 0.5 : pos;
|
647 |
+
}
|
648 |
+
|
649 |
+
wrap.css(dim);
|
650 |
+
|
651 |
+
content.css({
|
652 |
+
'width' : dim.width - currentOpts.padding * 2,
|
653 |
+
'height' : dim.height - (titleHeight * pos) - currentOpts.padding * 2
|
654 |
+
});
|
655 |
+
},
|
656 |
+
|
657 |
+
_get_viewport = function() {
|
658 |
+
return [
|
659 |
+
$(window).width() - (currentOpts.margin * 2),
|
660 |
+
$(window).height() - (currentOpts.margin * 2),
|
661 |
+
$(document).scrollLeft() + currentOpts.margin,
|
662 |
+
$(document).scrollTop() + currentOpts.margin
|
663 |
+
];
|
664 |
+
},
|
665 |
+
|
666 |
+
_get_zoom_to = function () {
|
667 |
+
var view = _get_viewport(),
|
668 |
+
to = {},
|
669 |
+
resize = currentOpts.autoScale,
|
670 |
+
double_padding = currentOpts.padding * 2,
|
671 |
+
ratio;
|
672 |
+
|
673 |
+
if (currentOpts.width.toString().indexOf('%') > -1) {
|
674 |
+
to.width = parseInt((view[0] * parseFloat(currentOpts.width)) / 100, 10);
|
675 |
+
} else {
|
676 |
+
to.width = currentOpts.width + double_padding;
|
677 |
+
}
|
678 |
+
|
679 |
+
if (currentOpts.height.toString().indexOf('%') > -1) {
|
680 |
+
to.height = parseInt((view[1] * parseFloat(currentOpts.height)) / 100, 10);
|
681 |
+
} else {
|
682 |
+
to.height = currentOpts.height + double_padding;
|
683 |
+
}
|
684 |
+
|
685 |
+
if (resize && (to.width > view[0] || to.height > view[1])) {
|
686 |
+
if (selectedOpts.type == 'image' || selectedOpts.type == 'swf') {
|
687 |
+
ratio = (currentOpts.width ) / (currentOpts.height );
|
688 |
+
|
689 |
+
if ((to.width ) > view[0]) {
|
690 |
+
to.width = view[0];
|
691 |
+
to.height = parseInt(((to.width - double_padding) / ratio) + double_padding, 10);
|
692 |
+
}
|
693 |
+
|
694 |
+
if ((to.height) > view[1]) {
|
695 |
+
to.height = view[1];
|
696 |
+
to.width = parseInt(((to.height - double_padding) * ratio) + double_padding, 10);
|
697 |
+
}
|
698 |
+
|
699 |
+
} else {
|
700 |
+
to.width = Math.min(to.width, view[0]);
|
701 |
+
to.height = Math.min(to.height, view[1]);
|
702 |
+
}
|
703 |
+
}
|
704 |
+
|
705 |
+
to.top = parseInt(Math.max(view[3] - 20, view[3] + ((view[1] - to.height - 40) * 0.5)), 10);
|
706 |
+
to.left = parseInt(Math.max(view[2] - 20, view[2] + ((view[0] - to.width - 40) * 0.5)), 10);
|
707 |
+
|
708 |
+
return to;
|
709 |
+
},
|
710 |
+
|
711 |
+
_get_obj_pos = function(obj) {
|
712 |
+
var pos = obj.offset();
|
713 |
+
|
714 |
+
pos.top += parseInt( obj.css('paddingTop'), 10 ) || 0;
|
715 |
+
pos.left += parseInt( obj.css('paddingLeft'), 10 ) || 0;
|
716 |
+
|
717 |
+
pos.top += parseInt( obj.css('border-top-width'), 10 ) || 0;
|
718 |
+
pos.left += parseInt( obj.css('border-left-width'), 10 ) || 0;
|
719 |
+
|
720 |
+
pos.width = obj.width();
|
721 |
+
pos.height = obj.height();
|
722 |
+
|
723 |
+
return pos;
|
724 |
+
},
|
725 |
+
|
726 |
+
_get_zoom_from = function() {
|
727 |
+
var orig = selectedOpts.orig ? $(selectedOpts.orig) : false,
|
728 |
+
from = {},
|
729 |
+
pos,
|
730 |
+
view;
|
731 |
+
|
732 |
+
if (orig && orig.length) {
|
733 |
+
pos = _get_obj_pos(orig);
|
734 |
+
|
735 |
+
from = {
|
736 |
+
width : pos.width + (currentOpts.padding * 2),
|
737 |
+
height : pos.height + (currentOpts.padding * 2),
|
738 |
+
top : pos.top - currentOpts.padding - 20,
|
739 |
+
left : pos.left - currentOpts.padding - 20
|
740 |
+
};
|
741 |
+
|
742 |
+
} else {
|
743 |
+
view = _get_viewport();
|
744 |
+
|
745 |
+
from = {
|
746 |
+
width : currentOpts.padding * 2,
|
747 |
+
height : currentOpts.padding * 2,
|
748 |
+
top : parseInt(view[3] + view[1] * 0.5, 10),
|
749 |
+
left : parseInt(view[2] + view[0] * 0.5, 10)
|
750 |
+
};
|
751 |
+
}
|
752 |
+
|
753 |
+
return from;
|
754 |
+
},
|
755 |
+
|
756 |
+
_animate_loading = function() {
|
757 |
+
if (!loading.is(':visible')){
|
758 |
+
clearInterval(loadingTimer);
|
759 |
+
return;
|
760 |
+
}
|
761 |
+
|
762 |
+
$('div', loading).css('top', (loadingFrame * -40) + 'px');
|
763 |
+
|
764 |
+
loadingFrame = (loadingFrame + 1) % 12;
|
765 |
+
};
|
766 |
+
|
767 |
+
/*
|
768 |
+
* Public methods
|
769 |
+
*/
|
770 |
+
|
771 |
+
$.fn.fancybox = function(options) {
|
772 |
+
if (!$(this).length) {
|
773 |
+
return this;
|
774 |
+
}
|
775 |
+
|
776 |
+
$(this)
|
777 |
+
.data('fancybox', $.extend({}, options, ($.metadata ? $(this).metadata() : {})))
|
778 |
+
.unbind('click.fb')
|
779 |
+
.bind('click.fb', function(e) {
|
780 |
+
e.preventDefault();
|
781 |
+
|
782 |
+
if (busy) {
|
783 |
+
return;
|
784 |
+
}
|
785 |
+
|
786 |
+
busy = true;
|
787 |
+
|
788 |
+
$(this).blur();
|
789 |
+
|
790 |
+
selectedArray = [];
|
791 |
+
selectedIndex = 0;
|
792 |
+
|
793 |
+
var rel = $(this).attr('rel') || '';
|
794 |
+
|
795 |
+
if (!rel || rel == '' || rel === 'nofollow') {
|
796 |
+
selectedArray.push(this);
|
797 |
+
|
798 |
+
} else {
|
799 |
+
selectedArray = $("a[rel=" + rel + "], area[rel=" + rel + "]");
|
800 |
+
selectedIndex = selectedArray.index( this );
|
801 |
+
}
|
802 |
+
|
803 |
+
_start();
|
804 |
+
|
805 |
+
return;
|
806 |
+
});
|
807 |
+
|
808 |
+
return this;
|
809 |
+
};
|
810 |
+
|
811 |
+
$.fancybox = function(obj) {
|
812 |
+
var opts;
|
813 |
+
|
814 |
+
if (busy) {
|
815 |
+
return;
|
816 |
+
}
|
817 |
+
|
818 |
+
busy = true;
|
819 |
+
opts = typeof arguments[1] !== 'undefined' ? arguments[1] : {};
|
820 |
+
|
821 |
+
selectedArray = [];
|
822 |
+
selectedIndex = parseInt(opts.index, 10) || 0;
|
823 |
+
|
824 |
+
if ($.isArray(obj)) {
|
825 |
+
for (var i = 0, j = obj.length; i < j; i++) {
|
826 |
+
if (typeof obj[i] == 'object') {
|
827 |
+
$(obj[i]).data('fancybox', $.extend({}, opts, obj[i]));
|
828 |
+
} else {
|
829 |
+
obj[i] = $({}).data('fancybox', $.extend({content : obj[i]}, opts));
|
830 |
+
}
|
831 |
+
}
|
832 |
+
|
833 |
+
selectedArray = jQuery.merge(selectedArray, obj);
|
834 |
+
|
835 |
+
} else {
|
836 |
+
if (typeof obj == 'object') {
|
837 |
+
$(obj).data('fancybox', $.extend({}, opts, obj));
|
838 |
+
} else {
|
839 |
+
obj = $({}).data('fancybox', $.extend({content : obj}, opts));
|
840 |
+
}
|
841 |
+
|
842 |
+
selectedArray.push(obj);
|
843 |
+
}
|
844 |
+
|
845 |
+
if (selectedIndex > selectedArray.length || selectedIndex < 0) {
|
846 |
+
selectedIndex = 0;
|
847 |
+
}
|
848 |
+
|
849 |
+
_start();
|
850 |
+
};
|
851 |
+
|
852 |
+
$.fancybox.showActivity = function() {
|
853 |
+
clearInterval(loadingTimer);
|
854 |
+
|
855 |
+
loading.show();
|
856 |
+
loadingTimer = setInterval(_animate_loading, 66);
|
857 |
+
};
|
858 |
+
|
859 |
+
$.fancybox.hideActivity = function() {
|
860 |
+
loading.hide();
|
861 |
+
};
|
862 |
+
|
863 |
+
$.fancybox.next = function() {
|
864 |
+
return $.fancybox.pos( currentIndex + 1);
|
865 |
+
};
|
866 |
+
|
867 |
+
$.fancybox.prev = function() {
|
868 |
+
return $.fancybox.pos( currentIndex - 1);
|
869 |
+
};
|
870 |
+
|
871 |
+
$.fancybox.pos = function(pos) {
|
872 |
+
if (busy) {
|
873 |
+
return;
|
874 |
+
}
|
875 |
+
|
876 |
+
pos = parseInt(pos);
|
877 |
+
|
878 |
+
selectedArray = currentArray;
|
879 |
+
|
880 |
+
if (pos > -1 && pos < currentArray.length) {
|
881 |
+
selectedIndex = pos;
|
882 |
+
_start();
|
883 |
+
|
884 |
+
} else if (currentOpts.cyclic && currentArray.length > 1) {
|
885 |
+
selectedIndex = pos >= currentArray.length ? 0 : currentArray.length - 1;
|
886 |
+
_start();
|
887 |
+
}
|
888 |
+
|
889 |
+
return;
|
890 |
+
};
|
891 |
+
|
892 |
+
$.fancybox.cancel = function() {
|
893 |
+
if (busy) {
|
894 |
+
return;
|
895 |
+
}
|
896 |
+
|
897 |
+
busy = true;
|
898 |
+
|
899 |
+
$.event.trigger('fancybox-cancel');
|
900 |
+
|
901 |
+
_abort();
|
902 |
+
|
903 |
+
selectedOpts.onCancel(selectedArray, selectedIndex, selectedOpts);
|
904 |
+
|
905 |
+
busy = false;
|
906 |
+
};
|
907 |
+
|
908 |
+
// Note: within an iframe use - parent.$.fancybox.close();
|
909 |
+
$.fancybox.close = function() {
|
910 |
+
if (busy || wrap.is(':hidden')) {
|
911 |
+
return;
|
912 |
+
}
|
913 |
+
|
914 |
+
busy = true;
|
915 |
+
|
916 |
+
if (currentOpts && false === currentOpts.onCleanup(currentArray, currentIndex, currentOpts)) {
|
917 |
+
busy = false;
|
918 |
+
return;
|
919 |
+
}
|
920 |
+
|
921 |
+
_abort();
|
922 |
+
|
923 |
+
$(close.add( nav_left ).add( nav_right )).hide();
|
924 |
+
|
925 |
+
$(content.add( overlay )).unbind();
|
926 |
+
|
927 |
+
$(window).unbind("resize.fb scroll.fb");
|
928 |
+
$(document).unbind('keydown.fb');
|
929 |
+
|
930 |
+
content.find('iframe').attr('src', isIE6 && /^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank');
|
931 |
+
|
932 |
+
if (currentOpts.titlePosition !== 'inside') {
|
933 |
+
title.empty();
|
934 |
+
}
|
935 |
+
|
936 |
+
wrap.stop();
|
937 |
+
|
938 |
+
function _cleanup() {
|
939 |
+
overlay.fadeOut('fast');
|
940 |
+
|
941 |
+
title.empty().hide();
|
942 |
+
wrap.hide();
|
943 |
+
|
944 |
+
$.event.trigger('fancybox-cleanup');
|
945 |
+
|
946 |
+
content.empty();
|
947 |
+
|
948 |
+
currentOpts.onClosed(currentArray, currentIndex, currentOpts);
|
949 |
+
|
950 |
+
currentArray = selectedOpts = [];
|
951 |
+
currentIndex = selectedIndex = 0;
|
952 |
+
currentOpts = selectedOpts = {};
|
953 |
+
|
954 |
+
busy = false;
|
955 |
+
}
|
956 |
+
|
957 |
+
if (currentOpts.transitionOut == 'elastic') {
|
958 |
+
start_pos = _get_zoom_from();
|
959 |
+
|
960 |
+
var pos = wrap.position();
|
961 |
+
|
962 |
+
final_pos = {
|
963 |
+
top : pos.top ,
|
964 |
+
left : pos.left,
|
965 |
+
width : wrap.width(),
|
966 |
+
height : wrap.height()
|
967 |
+
};
|
968 |
+
|
969 |
+
if (currentOpts.opacity) {
|
970 |
+
final_pos.opacity = 1;
|
971 |
+
}
|
972 |
+
|
973 |
+
title.empty().hide();
|
974 |
+
|
975 |
+
fx.prop = 1;
|
976 |
+
|
977 |
+
$(fx).animate({ prop: 0 }, {
|
978 |
+
duration : currentOpts.speedOut,
|
979 |
+
easing : currentOpts.easingOut,
|
980 |
+
step : _draw,
|
981 |
+
complete : _cleanup
|
982 |
+
});
|
983 |
+
|
984 |
+
} else {
|
985 |
+
wrap.fadeOut( currentOpts.transitionOut == 'none' ? 0 : currentOpts.speedOut, _cleanup);
|
986 |
+
}
|
987 |
+
};
|
988 |
+
|
989 |
+
$.fancybox.resize = function() {
|
990 |
+
if (overlay.is(':visible')) {
|
991 |
+
overlay.css('height', $(document).height());
|
992 |
+
}
|
993 |
+
|
994 |
+
$.fancybox.center(true);
|
995 |
+
};
|
996 |
+
|
997 |
+
$.fancybox.center = function() {
|
998 |
+
var view, align;
|
999 |
+
|
1000 |
+
if (busy) {
|
1001 |
+
return;
|
1002 |
+
}
|
1003 |
+
|
1004 |
+
align = arguments[0] === true ? 1 : 0;
|
1005 |
+
view = _get_viewport();
|
1006 |
+
|
1007 |
+
if (!align && (wrap.width() > view[0] || wrap.height() > view[1])) {
|
1008 |
+
return;
|
1009 |
+
}
|
1010 |
+
|
1011 |
+
wrap
|
1012 |
+
.stop()
|
1013 |
+
.animate({
|
1014 |
+
'top' : parseInt(Math.max(view[3] - 20, view[3] + ((view[1] - content.height() - 40) * 0.5) - currentOpts.padding)),
|
1015 |
+
'left' : parseInt(Math.max(view[2] - 20, view[2] + ((view[0] - content.width() - 40) * 0.5) - currentOpts.padding))
|
1016 |
+
}, typeof arguments[0] == 'number' ? arguments[0] : 200);
|
1017 |
+
};
|
1018 |
+
|
1019 |
+
$.fancybox.init = function() {
|
1020 |
+
if ($("#fancybox-wrap").length) {
|
1021 |
+
return;
|
1022 |
+
}
|
1023 |
+
|
1024 |
+
$('body').append(
|
1025 |
+
tmp = $('<div id="fancybox-tmp"></div>'),
|
1026 |
+
loading = $('<div id="fancybox-loading"><div></div></div>'),
|
1027 |
+
overlay = $('<div id="fancybox-overlay"></div>'),
|
1028 |
+
wrap = $('<div id="fancybox-wrap"></div>')
|
1029 |
+
);
|
1030 |
+
|
1031 |
+
outer = $('<div id="fancybox-outer"></div>')
|
1032 |
+
.append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>')
|
1033 |
+
.appendTo( wrap );
|
1034 |
+
|
1035 |
+
outer.append(
|
1036 |
+
content = $('<div id="fancybox-content"></div>'),
|
1037 |
+
close = $('<a id="fancybox-close"></a>'),
|
1038 |
+
title = $('<div id="fancybox-title"></div>'),
|
1039 |
+
|
1040 |
+
nav_left = $('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),
|
1041 |
+
nav_right = $('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')
|
1042 |
+
);
|
1043 |
+
|
1044 |
+
close.click($.fancybox.close);
|
1045 |
+
loading.click($.fancybox.cancel);
|
1046 |
+
|
1047 |
+
nav_left.click(function(e) {
|
1048 |
+
e.preventDefault();
|
1049 |
+
$.fancybox.prev();
|
1050 |
+
});
|
1051 |
+
|
1052 |
+
nav_right.click(function(e) {
|
1053 |
+
e.preventDefault();
|
1054 |
+
$.fancybox.next();
|
1055 |
+
});
|
1056 |
+
|
1057 |
+
if ($.fn.mousewheel) {
|
1058 |
+
wrap.bind('mousewheel.fb', function(e, delta) {
|
1059 |
+
e.preventDefault();
|
1060 |
+
|
1061 |
+
$.fancybox[ delta > 0 ? 'prev' : 'next']();
|
1062 |
+
});
|
1063 |
+
}
|
1064 |
+
|
1065 |
+
if (!$.support.opacity) {
|
1066 |
+
wrap.addClass('fancybox-ie');
|
1067 |
+
}
|
1068 |
+
|
1069 |
+
if (isIE6) {
|
1070 |
+
loading.addClass('fancybox-ie6');
|
1071 |
+
wrap.addClass('fancybox-ie6');
|
1072 |
+
|
1073 |
+
$('<iframe id="fancybox-hide-sel-frame" src="' + (/^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank' ) + '" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(outer);
|
1074 |
+
}
|
1075 |
+
};
|
1076 |
+
|
1077 |
+
$.fn.fancybox.defaults = {
|
1078 |
+
padding : 10,
|
1079 |
+
margin : 40,
|
1080 |
+
opacity : false,
|
1081 |
+
modal : false,
|
1082 |
+
cyclic : false,
|
1083 |
+
scrolling : 'auto', // 'auto', 'yes' or 'no'
|
1084 |
+
|
1085 |
+
width : 560,
|
1086 |
+
height : 340,
|
1087 |
+
|
1088 |
+
autoScale : true,
|
1089 |
+
autoDimensions : true,
|
1090 |
+
centerOnScroll : false,
|
1091 |
+
|
1092 |
+
ajax : {},
|
1093 |
+
swf : { wmode: 'transparent' },
|
1094 |
+
|
1095 |
+
hideOnOverlayClick : true,
|
1096 |
+
hideOnContentClick : false,
|
1097 |
+
|
1098 |
+
overlayShow : true,
|
1099 |
+
overlayOpacity : 0.7,
|
1100 |
+
overlayColor : '#777',
|
1101 |
+
|
1102 |
+
titleShow : true,
|
1103 |
+
titlePosition : 'float', // 'float', 'outside', 'inside' or 'over'
|
1104 |
+
titleFormat : null,
|
1105 |
+
titleFromAlt : false,
|
1106 |
+
|
1107 |
+
transitionIn : 'fade', // 'elastic', 'fade' or 'none'
|
1108 |
+
transitionOut : 'fade', // 'elastic', 'fade' or 'none'
|
1109 |
+
|
1110 |
+
speedIn : 300,
|
1111 |
+
speedOut : 300,
|
1112 |
+
|
1113 |
+
changeSpeed : 300,
|
1114 |
+
changeFade : 'fast',
|
1115 |
+
|
1116 |
+
easingIn : 'swing',
|
1117 |
+
easingOut : 'swing',
|
1118 |
+
|
1119 |
+
showCloseButton : true,
|
1120 |
+
showNavArrows : true,
|
1121 |
+
enableEscapeButton : true,
|
1122 |
+
enableKeyboardNav : true,
|
1123 |
+
|
1124 |
+
onStart : function(){},
|
1125 |
+
onCancel : function(){},
|
1126 |
+
onComplete : function(){},
|
1127 |
+
onCleanup : function(){},
|
1128 |
+
onClosed : function(){},
|
1129 |
+
onError : function(){}
|
1130 |
+
};
|
1131 |
+
|
1132 |
+
$(document).ready(function() {
|
1133 |
+
$.fancybox.init();
|
1134 |
+
});
|
1135 |
+
|
1136 |
+
})(jQuery);
|
js/magentopycho/fancybox/jquery.fancybox-1.3.2.pack.js
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* FancyBox - jQuery Plugin
|
3 |
+
* Simple and fancy lightbox alternative
|
4 |
+
*
|
5 |
+
* Examples and documentation at: http://fancybox.net
|
6 |
+
*
|
7 |
+
* Copyright (c) 2008 - 2010 Janis Skarnelis
|
8 |
+
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
|
9 |
+
*
|
10 |
+
* Version: 1.3.2 (20/10/2010)
|
11 |
+
* Requires: jQuery v1.3+
|
12 |
+
*
|
13 |
+
* Dual licensed under the MIT and GPL licenses:
|
14 |
+
* http://www.opensource.org/licenses/mit-license.php
|
15 |
+
* http://www.gnu.org/licenses/gpl.html
|
16 |
+
*/
|
17 |
+
|
18 |
+
;(function(a){var m,t,u,f,D,h,E,n,z,A,q=0,e={},o=[],p=0,c={},l=[],I=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,j,i=false,B=a.extend(a("<div/>")[0],{prop:0}),M=a.browser.msie&&a.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;I&&I.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();i=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');
|
19 |
+
F()}},H=function(){var b=o[q],d,g,k,C,P,w;N();e=a.extend({},a.fn.fancybox.defaults,typeof a(b).data("fancybox")=="undefined"?e:a(b).data("fancybox"));w=e.onStart(o,q,e);if(w===false)i=false;else{if(typeof w=="object")e=a.extend(e,w);k=e.title||(b.nodeName?a(b).attr("title"):b.title)||"";if(b.nodeName&&!e.orig)e.orig=a(b).children("img:first").length?a(b).children("img:first"):a(b);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");d=e.href||(b.nodeName?a(b).attr("href"):b.href)||null;if(/^(?:javascript)/i.test(d)||
|
20 |
+
d=="#")d=null;if(e.type){g=e.type;if(!d)d=e.content}else if(e.content)g="html";else if(d)g=d.match(J)?"image":d.match(W)?"swf":a(b).hasClass("iframe")?"iframe":d.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){b=d.substr(d.indexOf("#"));g=a(b).length>0?"inline":"ajax"}e.type=g;e.href=d;e.title=k;if(e.autoDimensions&&e.type!=="iframe"&&e.type!=="swf"){e.width="auto";e.height="auto"}if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=false;e.enableEscapeButton=false;
|
21 |
+
e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);a(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){a(this).replaceWith(h.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(a(b).parent().is("#fancybox-content")===true){i=false;break}a('<div class="fancybox-inline-tmp" />').hide().insertBefore(a(b)).bind("fancybox-cleanup",function(){a(this).replaceWith(h.children())}).bind("fancybox-cancel",
|
22 |
+
function(){a(this).replaceWith(m.children())});a(b).appendTo(m);F();break;case "image":i=false;a.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){i=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;a("<img />").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=d;break;case "swf":C='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+d+'"></param>';P="";
|
23 |
+
a.each(e.swf,function(x,G){C+='<param name="'+x+'" value="'+G+'"></param>';P+=" "+x+'="'+G+'"'});C+='<embed src="'+d+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>";m.html(C);F();break;case "ajax":i=false;a.fancybox.showActivity();e.ajax.win=e.ajax.success;I=a.ajax(a.extend({},e.ajax,{url:d,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,G,U){if(U.status==200){if(typeof e.ajax.win=="function"){w=e.ajax.win(d,x,G,
|
24 |
+
U);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case "iframe":Q()}}else O()}},F=function(){m.width(e.width);m.height(e.height);if(e.width=="auto")e.width=m.width();if(e.height=="auto")e.height=m.height();Q()},Q=function(){var b,d;t.hide();if(f.is(":visible")&&false===c.onCleanup(l,p,c)){a.event.trigger("fancybox-cancel");i=false}else{i=true;a(h.add(u)).unbind();a(window).unbind("resize.fb scroll.fb");a(document).unbind("keydown.fb");f.is(":visible")&&
|
25 |
+
c.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;c=e;if(c.overlayShow){u.css({"background-color":c.overlayColor,opacity:c.overlayOpacity,cursor:c.hideOnOverlayClick?"pointer":"auto",height:a(document).height()});if(!u.is(":visible")){M&&a("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();h.get(0).scrollTop=0;h.get(0).scrollLeft=
|
26 |
+
0;j=X();s=c.title||"";y=0;n.empty().removeAttr("style").removeClass();if(c.titleShow!==false){if(a.isFunction(c.titleFormat))b=c.titleFormat(s,l,p,c);else b=s&&s.length?c.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+s+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+c.titlePosition+'">'+s+"</div>":false;s=b;if(!(!s||s==="")){n.addClass("fancybox-title-"+
|
27 |
+
c.titlePosition).html(s).appendTo("body").show();switch(c.titlePosition){case "inside":n.css({width:j.width-c.padding*2,marginLeft:c.padding,marginRight:c.padding});y=n.outerHeight(true);n.appendTo(D);j.height+=y;break;case "over":n.css({marginLeft:c.padding,width:j.width-c.padding*2,bottom:c.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-j.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:j.width-c.padding*2,paddingLeft:c.padding,paddingRight:c.padding}).appendTo(f)}}}n.hide();
|
28 |
+
if(f.is(":visible")){a(E.add(z).add(A)).hide();b=f.position();r={top:b.top,left:b.left,width:f.width(),height:f.height()};d=r.width==j.width&&r.height==j.height;h.fadeTo(c.changeFade,0.3,function(){var g=function(){h.html(m.contents()).fadeTo(c.changeFade,1,R)};a.event.trigger("fancybox-change");h.empty().removeAttr("filter").css({"border-width":c.padding,width:j.width-c.padding*2,height:c.type=="image"||c.type=="swf"||c.type=="iframe"?j.height-y-c.padding*2:"auto"});if(d)g();else{B.prop=0;a(B).animate({prop:1},
|
29 |
+
{duration:c.changeSpeed,easing:c.easingChange,step:S,complete:g})}})}else{f.removeAttr("style");h.css("border-width",c.padding);if(c.transitionIn=="elastic"){r=V();h.html(m.contents());f.show();if(c.opacity)j.opacity=0;B.prop=0;a(B).animate({prop:1},{duration:c.speedIn,easing:c.easingIn,step:S,complete:R})}else{c.titlePosition=="inside"&&y>0&&n.show();h.css({width:j.width-c.padding*2,height:c.type=="image"||c.type=="swf"||c.type=="iframe"?j.height-y-c.padding*2:"auto"}).html(m.contents());f.css(j).fadeIn(c.transitionIn==
|
30 |
+
"none"?0:c.fadeIn,R)}}}},Y=function(){if(c.enableEscapeButton||c.enableKeyboardNav)a(document).bind("keydown.fb",function(b){if(b.keyCode==27&&c.enableEscapeButton){b.preventDefault();a.fancybox.close()}else if((b.keyCode==37||b.keyCode==39)&&c.enableKeyboardNav&&b.target.tagName!=="INPUT"&&b.target.tagName!=="TEXTAREA"&&b.target.tagName!=="SELECT"){b.preventDefault();a.fancybox[b.keyCode==37?"prev":"next"]()}});if(c.showNavArrows){if(c.cyclic&&l.length>1||p!==0)z.show();if(c.cyclic&&l.length>1||
|
31 |
+
p!=l.length-1)A.show()}else{z.hide();A.hide()}},R=function(){if(!a.support.opacity){h.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}f.css("height","auto");c.type!=="image"&&c.type!=="swf"&&c.type!=="iframe"&&h.css("height","auto");s&&s.length&&n.show();c.showCloseButton&&E.show();Y();c.hideOnContentClick&&h.bind("click",a.fancybox.close);c.hideOnOverlayClick&&u.bind("click",a.fancybox.close);a(window).bind("resize.fb",a.fancybox.resize);c.centerOnScroll&&a(window).bind("scroll.fb",
|
32 |
+
a.fancybox.center);if(c.type=="iframe")a('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(a.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+c.href+'"></iframe>').appendTo(h);f.show();i=false;a.fancybox.center();c.onComplete(l,p,c);var b,d;if(l.length-1>p){b=l[p+1].href;if(typeof b!=="undefined"&&b.match(J)){d=new Image;d.src=b}}if(p>0){b=l[p-1].href;if(typeof b!=="undefined"&&b.match(J)){d=new Image;d.src=b}}},
|
33 |
+
S=function(b){var d={width:parseInt(r.width+(j.width-r.width)*b,10),height:parseInt(r.height+(j.height-r.height)*b,10),top:parseInt(r.top+(j.top-r.top)*b,10),left:parseInt(r.left+(j.left-r.left)*b,10)};if(typeof j.opacity!=="undefined")d.opacity=b<0.5?0.5:b;f.css(d);h.css({width:d.width-c.padding*2,height:d.height-y*b-c.padding*2})},T=function(){return[a(window).width()-c.margin*2,a(window).height()-c.margin*2,a(document).scrollLeft()+c.margin,a(document).scrollTop()+c.margin]},X=function(){var b=
|
34 |
+
T(),d={},g=c.autoScale,k=c.padding*2;d.width=c.width.toString().indexOf("%")>-1?parseInt(b[0]*parseFloat(c.width)/100,10):c.width+k;d.height=c.height.toString().indexOf("%")>-1?parseInt(b[1]*parseFloat(c.height)/100,10):c.height+k;if(g&&(d.width>b[0]||d.height>b[1]))if(e.type=="image"||e.type=="swf"){g=c.width/c.height;if(d.width>b[0]){d.width=b[0];d.height=parseInt((d.width-k)/g+k,10)}if(d.height>b[1]){d.height=b[1];d.width=parseInt((d.height-k)*g+k,10)}}else{d.width=Math.min(d.width,b[0]);d.height=
|
35 |
+
Math.min(d.height,b[1])}d.top=parseInt(Math.max(b[3]-20,b[3]+(b[1]-d.height-40)*0.5),10);d.left=parseInt(Math.max(b[2]-20,b[2]+(b[0]-d.width-40)*0.5),10);return d},V=function(){var b=e.orig?a(e.orig):false,d={};if(b&&b.length){d=b.offset();d.top+=parseInt(b.css("paddingTop"),10)||0;d.left+=parseInt(b.css("paddingLeft"),10)||0;d.top+=parseInt(b.css("border-top-width"),10)||0;d.left+=parseInt(b.css("border-left-width"),10)||0;d.width=b.width();d.height=b.height();d={width:d.width+c.padding*2,height:d.height+
|
36 |
+
c.padding*2,top:d.top-c.padding-20,left:d.left-c.padding-20}}else{b=T();d={width:c.padding*2,height:c.padding*2,top:parseInt(b[3]+b[1]*0.5,10),left:parseInt(b[2]+b[0]*0.5,10)}}return d},Z=function(){if(t.is(":visible")){a("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};a.fn.fancybox=function(b){if(!a(this).length)return this;a(this).data("fancybox",a.extend({},b,a.metadata?a(this).metadata():{})).unbind("click.fb").bind("click.fb",function(d){d.preventDefault();if(!i){i=true;a(this).blur();
|
37 |
+
o=[];q=0;d=a(this).attr("rel")||"";if(!d||d==""||d==="nofollow")o.push(this);else{o=a("a[rel="+d+"], area[rel="+d+"]");q=o.index(this)}H()}});return this};a.fancybox=function(b,d){var g;if(!i){i=true;g=typeof d!=="undefined"?d:{};o=[];q=parseInt(g.index,10)||0;if(a.isArray(b)){for(var k=0,C=b.length;k<C;k++)if(typeof b[k]=="object")a(b[k]).data("fancybox",a.extend({},g,b[k]));else b[k]=a({}).data("fancybox",a.extend({content:b[k]},g));o=jQuery.merge(o,b)}else{if(typeof b=="object")a(b).data("fancybox",
|
38 |
+
a.extend({},g,b));else b=a({}).data("fancybox",a.extend({content:b},g));o.push(b)}if(q>o.length||q<0)q=0;H()}};a.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};a.fancybox.hideActivity=function(){t.hide()};a.fancybox.next=function(){return a.fancybox.pos(p+1)};a.fancybox.prev=function(){return a.fancybox.pos(p-1)};a.fancybox.pos=function(b){if(!i){b=parseInt(b);o=l;if(b>-1&&b<l.length){q=b;H()}else if(c.cyclic&&l.length>1){q=b>=l.length?0:l.length-1;H()}}};a.fancybox.cancel=
|
39 |
+
function(){if(!i){i=true;a.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);i=false}};a.fancybox.close=function(){function b(){u.fadeOut("fast");n.empty().hide();f.hide();a.event.trigger("fancybox-cleanup");h.empty();c.onClosed(l,p,c);l=e=[];p=q=0;c=e={};i=false}if(!(i||f.is(":hidden"))){i=true;if(c&&false===c.onCleanup(l,p,c))i=false;else{N();a(E.add(z).add(A)).hide();a(h.add(u)).unbind();a(window).unbind("resize.fb scroll.fb");a(document).unbind("keydown.fb");h.find("iframe").attr("src",M&&
|
40 |
+
/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");c.titlePosition!=="inside"&&n.empty();f.stop();if(c.transitionOut=="elastic"){r=V();var d=f.position();j={top:d.top,left:d.left,width:f.width(),height:f.height()};if(c.opacity)j.opacity=1;n.empty().hide();B.prop=1;a(B).animate({prop:0},{duration:c.speedOut,easing:c.easingOut,step:S,complete:b})}else f.fadeOut(c.transitionOut=="none"?0:c.speedOut,b)}}};a.fancybox.resize=function(){u.is(":visible")&&u.css("height",a(document).height());
|
41 |
+
a.fancybox.center(true)};a.fancybox.center=function(b){var d,g;if(!i){g=b===true?1:0;d=T();!g&&(f.width()>d[0]||f.height()>d[1])||f.stop().animate({top:parseInt(Math.max(d[3]-20,d[3]+(d[1]-h.height()-40)*0.5-c.padding)),left:parseInt(Math.max(d[2]-20,d[2]+(d[0]-h.width()-40)*0.5-c.padding))},typeof b=="number"?b:200)}};a.fancybox.init=function(){if(!a("#fancybox-wrap").length){a("body").append(m=a('<div id="fancybox-tmp"></div>'),t=a('<div id="fancybox-loading"><div></div></div>'),u=a('<div id="fancybox-overlay"></div>'),
|
42 |
+
f=a('<div id="fancybox-wrap"></div>'));D=a('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(f);
|
43 |
+
D.append(h=a('<div id="fancybox-content"></div>'),E=a('<a id="fancybox-close"></a>'),n=a('<div id="fancybox-title"></div>'),z=a('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=a('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));E.click(a.fancybox.close);t.click(a.fancybox.cancel);z.click(function(b){b.preventDefault();a.fancybox.prev()});A.click(function(b){b.preventDefault();a.fancybox.next()});
|
44 |
+
a.fn.mousewheel&&f.bind("mousewheel.fb",function(b,d){b.preventDefault();a.fancybox[d>0?"prev":"next"]()});a.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");a('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(D)}}};a.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,
|
45 |
+
scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,
|
46 |
+
enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};a(document).ready(function(){a.fancybox.init()})})(jQuery);
|
js/magentopycho/fancybox/jquery.mousewheel-3.0.4.pack.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
|
2 |
+
* Licensed under the MIT License (LICENSE.txt).
|
3 |
+
*
|
4 |
+
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
|
5 |
+
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
|
6 |
+
* Thanks to: Seamus Leahy for adding deltaX and deltaY
|
7 |
+
*
|
8 |
+
* Version: 3.0.4
|
9 |
+
*
|
10 |
+
* Requires: 1.2.2+
|
11 |
+
*/
|
12 |
+
|
13 |
+
(function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.apply(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=
|
14 |
+
f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
|
js/magentopycho/jquery-lightbox-0.5/css/jquery.lightbox-0.5.css
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jQuery lightBox plugin
|
3 |
+
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
|
4 |
+
* and adapted to me for use like a plugin from jQuery.
|
5 |
+
* @name jquery-lightbox-0.5.css
|
6 |
+
* @author Leandro Vieira Pinho - http://leandrovieira.com
|
7 |
+
* @version 0.5
|
8 |
+
* @date April 11, 2008
|
9 |
+
* @category jQuery plugin
|
10 |
+
* @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
|
11 |
+
* @license CCAttribution-ShareAlike 2.5 Brazil - http://creativecommons.org/licenses/by-sa/2.5/br/deed.en_US
|
12 |
+
* @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
|
13 |
+
*/
|
14 |
+
#jquery-overlay {
|
15 |
+
position: absolute;
|
16 |
+
top: 0;
|
17 |
+
left: 0;
|
18 |
+
z-index: 90;
|
19 |
+
width: 100%;
|
20 |
+
height: 500px;
|
21 |
+
}
|
22 |
+
#jquery-lightbox {
|
23 |
+
position: absolute;
|
24 |
+
top: 0;
|
25 |
+
left: 0;
|
26 |
+
width: 100%;
|
27 |
+
z-index: 100;
|
28 |
+
text-align: center;
|
29 |
+
line-height: 0;
|
30 |
+
}
|
31 |
+
#jquery-lightbox a img { border: none; }
|
32 |
+
#lightbox-container-image-box {
|
33 |
+
position: relative;
|
34 |
+
background-color: #fff;
|
35 |
+
width: 250px;
|
36 |
+
height: 250px;
|
37 |
+
margin: 0 auto;
|
38 |
+
}
|
39 |
+
#lightbox-container-image { padding: 10px; }
|
40 |
+
#lightbox-loading {
|
41 |
+
position: absolute;
|
42 |
+
top: 40%;
|
43 |
+
left: 0%;
|
44 |
+
height: 25%;
|
45 |
+
width: 100%;
|
46 |
+
text-align: center;
|
47 |
+
line-height: 0;
|
48 |
+
}
|
49 |
+
#lightbox-nav {
|
50 |
+
position: absolute;
|
51 |
+
top: 0;
|
52 |
+
left: 0;
|
53 |
+
height: 100%;
|
54 |
+
width: 100%;
|
55 |
+
z-index: 10;
|
56 |
+
}
|
57 |
+
#lightbox-container-image-box > #lightbox-nav { left: 0; }
|
58 |
+
#lightbox-nav a { outline: none;}
|
59 |
+
#lightbox-nav-btnPrev, #lightbox-nav-btnNext {
|
60 |
+
width: 49%;
|
61 |
+
height: 100%;
|
62 |
+
zoom: 1;
|
63 |
+
display: block;
|
64 |
+
}
|
65 |
+
#lightbox-nav-btnPrev {
|
66 |
+
left: 0;
|
67 |
+
float: left;
|
68 |
+
}
|
69 |
+
#lightbox-nav-btnNext {
|
70 |
+
right: 0;
|
71 |
+
float: right;
|
72 |
+
}
|
73 |
+
#lightbox-container-image-data-box {
|
74 |
+
font: 10px Verdana, Helvetica, sans-serif;
|
75 |
+
background-color: #fff;
|
76 |
+
margin: 0 auto;
|
77 |
+
line-height: 1.4em;
|
78 |
+
overflow: auto;
|
79 |
+
width: 100%;
|
80 |
+
padding: 0 10px 0;
|
81 |
+
}
|
82 |
+
#lightbox-container-image-data {
|
83 |
+
padding: 0 10px;
|
84 |
+
color: #666;
|
85 |
+
}
|
86 |
+
#lightbox-container-image-data #lightbox-image-details {
|
87 |
+
width: 70%;
|
88 |
+
float: left;
|
89 |
+
text-align: left;
|
90 |
+
}
|
91 |
+
#lightbox-image-details-caption { font-weight: bold; }
|
92 |
+
#lightbox-image-details-currentNumber {
|
93 |
+
display: block;
|
94 |
+
clear: left;
|
95 |
+
padding-bottom: 1.0em;
|
96 |
+
}
|
97 |
+
#lightbox-secNav-btnClose {
|
98 |
+
width: 66px;
|
99 |
+
float: right;
|
100 |
+
padding-bottom: 0.7em;
|
101 |
+
}
|
js/magentopycho/jquery-lightbox-0.5/images/lightbox-blank.gif
ADDED
Binary file
|
js/magentopycho/jquery-lightbox-0.5/images/lightbox-btn-close.gif
ADDED
Binary file
|
js/magentopycho/jquery-lightbox-0.5/images/lightbox-btn-next.gif
ADDED
Binary file
|
js/magentopycho/jquery-lightbox-0.5/images/lightbox-btn-prev.gif
ADDED
Binary file
|
js/magentopycho/jquery-lightbox-0.5/images/lightbox-ico-loading.gif
ADDED
Binary file
|
js/magentopycho/jquery-lightbox-0.5/js/jquery.js
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* jQuery 1.2.3 - New Wave Javascript
|
3 |
+
*
|
4 |
+
* Copyright (c) 2008 John Resig (jquery.com)
|
5 |
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
6 |
+
* and GPL (GPL-LICENSE.txt) licenses.
|
7 |
+
*
|
8 |
+
* $Date: 2008-02-06 00:21:25 -0500 (Wed, 06 Feb 2008) $
|
9 |
+
* $Rev: 4663 $
|
10 |
+
*/
|
11 |
+
(function(){if(window.jQuery)var _jQuery=window.jQuery;var jQuery=window.jQuery=function(selector,context){return new jQuery.prototype.init(selector,context);};if(window.$)var _$=window.$;window.$=jQuery;var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;var isSimple=/^.[^:#\[\.]*$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}else if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem)if(elem.id!=match[3])return jQuery().find(selector);else{this[0]=elem;this.length=1;return this;}else
|
12 |
+
selector=[];}}else
|
13 |
+
return new jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return new jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(selector.constructor==Array&&selector||(selector.jquery||selector.length&&selector!=window&&!selector.nodeType&&selector[0]!=undefined&&selector[0].nodeType)&&jQuery.makeArray(selector)||[selector]);},jquery:"1.2.3",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;this.each(function(i){if(this==elem)ret=i;});return ret;},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value==undefined)return this.length&&jQuery[type||"attr"](this[0],name)||undefined;else{options={};options[name]=value;}return this.each(function(i){for(name in options)jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!="object"&&text!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild)elem=elem.firstChild;return elem;}).append(this);return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1)this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1)this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else
|
14 |
+
return this.cloneNode(true);});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null;});if(events===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var events=jQuery.data(this,"events");for(var type in events)for(var handler in events[type])jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==String)if(isSimple.test(selector))return this.pushStack(jQuery.multiFilter(selector,this,true));else
|
15 |
+
selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return!selector?this:this.pushStack(jQuery.merge(this.get(),selector.constructor==String?jQuery(selector).get():selector.length!=undefined&&(!selector.nodeName||jQuery.nodeName(selector,"form"))?selector:[selector]));},is:function(selector){return selector?jQuery.multiFilter(selector,this).length>0:false;},hasClass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one)return value;values.push(value);}}return values;}else
|
16 |
+
return(this[0].value||"").replace(/\r/g,"");}return undefined;}return this.each(function(){if(this.nodeType!=1)return;if(value.constructor==Array&&/radio|checkbox/.test(this.type))this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=value.constructor==Array?value:[value];jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)this.selectedIndex=-1;}else
|
17 |
+
this.value=value;});},html:function(value){return value==undefined?(this.length?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value==null){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data==undefined&&this.length)data=jQuery.data(this[0],key);return data==null&&parts[1]?this.data(parts[0]):data;}else
|
18 |
+
return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)elems.reverse();}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script")){scripts=scripts.add(elem);}else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuery.prototype.init.prototype=jQuery.prototype;function evalScript(i,elem){if(elem.src)jQuery.ajax({url:elem.src,async:false,dataType:"script"});else
|
19 |
+
jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)elem.parentNode.removeChild(elem);}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function")target={};if(length==1){target=this;i=0;}for(;i<length;i++)if((options=arguments[i])!=null)for(var name in options){if(target===options[name])continue;if(deep&&options[name]&&typeof options[name]=="object"&&target[name]&&!options[name].nodeType)target[name]=jQuery.extend(target[name],options[name]);else if(options[name]!=undefined)target[name]=options[name];}return target;};var expando="jQuery"+(new Date()).getTime(),uuid=0,windowData={};var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i;jQuery.extend({noConflict:function(deep){window.$=_$;if(deep)window.jQuery=_jQuery;return jQuery;},isFunction:function(fn){return!!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/function/i.test(fn+"");},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie)script.text=data;else
|
20 |
+
script.appendChild(document.createTextNode(data));head.appendChild(script);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id)id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])jQuery.cache[id]={};if(data!=undefined)jQuery.cache[id][name]=data;return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id])break;if(!name)jQuery.removeData(elem);}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute)elem.removeAttribute(expando);}delete jQuery.cache[id];}},each:function(object,callback,args){if(args){if(object.length==undefined){for(var name in object)if(callback.apply(object[name],args)===false)break;}else
|
21 |
+
for(var i=0,length=object.length;i<length;i++)if(callback.apply(object[i],args)===false)break;}else{if(object.length==undefined){for(var name in object)if(callback.call(object[name],name,object[name])===false)break;}else
|
22 |
+
for(var i=0,length=object.length,value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}return object;},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value))value=value.call(elem,i);return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))elem.className+=(elem.className?" ":"")+className;});},remove:function(elem,classNames){if(elem.nodeType==1)elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className.has(classNames,className);}).join(" "):"";},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options)elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-=Math.round(padding+border);}if(jQuery(elem).is(":visible"))getWH();else
|
23 |
+
jQuery.swap(elem,props,getWH);return Math.max(0,val);}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret;function color(elem){if(!jQuery.browser.safari)return false;var ret=document.defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(elem.style,"opacity");return ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=elem.style.outline;elem.style.outline="0 solid black";elem.style.outline=save;}if(name.match(/float/i))name=styleFloat;if(!force&&elem.style&&elem.style[name])ret=elem.style[name];else if(document.defaultView&&document.defaultView.getComputedStyle){if(name.match(/float/i))name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var getComputedStyle=document.defaultView.getComputedStyle(elem,null);if(getComputedStyle&&!color(elem))ret=getComputedStyle.getPropertyValue(name);else{var swap=[],stack=[];for(var a=elem;a&&color(a);a=a.parentNode)stack.unshift(a);for(var i=0;i<stack.length;i++)if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block";}ret=name=="display"&&swap[stack.length-1]!=null?"none":(getComputedStyle&&getComputedStyle.getPropertyValue(name))||"";for(var i=0;i<swap.length;i++)if(swap[i]!=null)stack[i].style.display=swap[i];}if(name=="opacity"&&ret=="")ret="1";}else if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var style=elem.style.left,runtimeStyle=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;elem.style.left=ret||0;ret=elem.style.pixelLeft+"px";elem.style.left=style;elem.runtimeStyle.left=runtimeStyle;}}return ret;},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=='undefined')context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;jQuery.each(elems,function(i,elem){if(!elem)return;if(elem.constructor==Number)elem=elem.toString();if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j)if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)tbody[j].parentNode.removeChild(tbody[j]);if(/^\s/.test(elem))div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}elem=jQuery.makeArray(div.childNodes);}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))return;if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else
|
24 |
+
ret=jQuery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)return undefined;var fix=jQuery.isXMLDoc(elem)?{}:jQuery.props;if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(fix[name]){if(value!=undefined)elem[fix[name]]=value;return elem[fix[name]];}else if(jQuery.browser.msie&&name=="style")return jQuery.attr(elem.style,"cssText",value);else if(value==undefined&&jQuery.browser.msie&&jQuery.nodeName(elem,"form")&&(name=="action"||name=="method"))return elem.getAttributeNode(name).nodeValue;else if(elem.tagName){if(value!=undefined){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be changed";elem.setAttribute(name,""+value);}if(jQuery.browser.msie&&/href|src/.test(name)&&!jQuery.isXMLDoc(elem))return elem.getAttribute(name,2);return elem.getAttribute(name);}else{if(name=="opacity"&&jQuery.browser.msie){if(value!=undefined){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseFloat(value).toString()=="NaN"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100).toString():"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(value!=undefined)elem[name]=value;return elem[name];}},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(typeof array!="array")for(var i=0,length=array.length;i<length;i++)ret.push(array[i]);else
|
25 |
+
ret=array.slice(0);return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++)if(array[i]==elem)return i;return-1;},merge:function(first,second){if(jQuery.browser.msie){for(var i=0;second[i];i++)if(second[i].nodeType!=8)first.push(second[i]);}else
|
26 |
+
for(var i=0;second[i];i++)first.push(second[i]);return first;},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}return ret;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++)if(!inv&&callback(elems[i],i)||inv&&!callback(elems[i],i))ret.push(elems[i]);return ret;},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!==null&&value!=undefined){if(value.constructor!=Array)value=[value];ret=ret.concat(value);}}return ret;}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength",selectedIndex:"selectedIndex",defaultValue:"defaultValue",tagName:"tagName",nodeName:"nodeName"}});jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return jQuery.dir(elem,"parentNode");},next:function(elem){return jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string")ret=jQuery.multiFilter(selector,ret);return this.pushStack(jQuery.unique(ret));};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++)jQuery(args[i])[original](this);});};});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1)this.removeAttribute(name);},addClass:function(classNames){jQuery.className.add(this,classNames);},removeClass:function(classNames){jQuery.className.remove(this,classNames);},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode)this.parentNode.removeChild(this);}},empty:function(){jQuery(">*",this).remove();while(this.firstChild)this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return i<m[3]-0;},gt:function(a,i,m){return i>m[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return!a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},radio:function(a){return"radio"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a){return"file"==a.type;},password:function(a){return"password"==a.type;},submit:function(a){return"submit"==a.type;},image:function(a){return"image"==a.type;},reset:function(a){return"reset"==a.type;},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}return cur;},find:function(t,context){if(typeof t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false;var re=quickChild;var m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)for(var c=ret[i].firstChild;c;c=c.nextSibling)if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName))r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling)if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id])break;if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~")merge[id]=true;r.push(n);}if(m=="+")break;}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true;}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0])ret.shift();done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length);}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]];}else{re2=quickClass;m=re2.exec(t);}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2])oid=jQuery('[@id="'+m[2]+'"]',elem)[0];ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object")tag="param";r=jQuery.merge(r,ret[i].getElementsByTagName(tag));}if(m[1]==".")r=jQuery.classFilter(r,m[2]);if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++)if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break;}r=tmp;}ret=r;}t=t.replace(re2,"");}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t);}}if(t)ret=[];if(ret&&context==ret[0])ret.shift();done=jQuery.merge(done,ret);return done;},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass)tmp.push(r[i]);}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2]))z=jQuery.attr(a,m[2])||'';if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not)tmp.push(a);}r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling)if(n.nodeType==1)n.nodeIndex=c++;merge[id]=true;}var add=false;if(first==0){if(node.nodeIndex==last)add=true;}else if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}return{r:r,t:t};},dir:function(elem,dir){var matched=[];var cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)matched.push(cur);cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])if(cur.nodeType==1&&++num==result)break;return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&(!elem||n!=elem))r.push(n);}return r;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)return;if(jQuery.browser.msie&&elem.setInterval!=undefined)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=function(){return fn.apply(this,arguments);};handler.data=data;handler.guid=fn.guid;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){var val;if(typeof jQuery=="undefined"||jQuery.event.triggered)return val;val=jQuery.event.handle.apply(arguments.callee.elem,arguments);return val;});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,handle);}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else
|
27 |
+
for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener)elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}ret=null;delete events[type];}}});}for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data||[]);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3||elem.nodeType==8)return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event)data.unshift(this.fix({type:type,target:elem}));data[0].type=type;if(exclusive)data[0].exclusive=true;if(jQuery.isFunction(jQuery.data(elem,"handle")))val=jQuery.data(elem,"handle").apply(elem,data);if(!fn&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val;event=jQuery.event.fix(event||window.event||{});var parts=event.type.split(".");event.type=parts[0];var handlers=jQuery.data(this,"events")&&jQuery.data(this,"events")[event.type],args=Array.prototype.slice.call(arguments,1);args.unshift(event);for(var j in handlers){var handler=handlers[j];args[0].handler=handler;args[0].data=handler.data;if(!parts[1]&&!event.exclusive||handler.type==parts[1]){var ret=handler.apply(this,args);if(val!==false)val=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}}if(jQuery.browser.msie)event.target=event.preventDefault=event.stopPropagation=event.handler=event.data=null;return val;},fix:function(event){var originalEvent=event;event=jQuery.extend({},originalEvent);event.preventDefault=function(){if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true;};if(!event.target)event.target=event.srcElement||document;if(event.target.nodeType==3)event.target=originalEvent.target.parentNode;if(!event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinElement(event,this))return true;arguments[0].type="mouseenter";return jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinElement(event,this))return true;arguments[0].type="mouseleave";return jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){return this.each(function(){jQuery.event.add(this,type,function(event){jQuery(this).unbind(event);return(fn||data).apply(this,arguments);},fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){if(this[0])return jQuery.event.trigger(type,data,this[0],false,fn);return undefined;},toggle:function(){var args=arguments;return this.click(function(event){this.lastToggle=0==this.lastToggle?1:0;event.preventDefault();return args[this.lastToggle].apply(this,arguments)||false;});},hover:function(fnOver,fnOut){return this.bind('mouseenter',fnOver).bind('mouseleave',fnOut);},ready:function(fn){bindReady();if(jQuery.isReady)fn.call(document,jQuery);else
|
28 |
+
jQuery.readyList.push(function(){return fn.call(this,jQuery);});return this;}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.apply(document);});jQuery.readyList=null;}jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener&&!jQuery.browser.opera)document.addEventListener("DOMContentLoaded",jQuery.ready,false);if(jQuery.browser.msie&&window==top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}jQuery.ready();})();if(jQuery.browser.opera)document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady)return;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}jQuery.ready();},false);if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(numStyles===undefined)numStyles=jQuery("style, link[rel=stylesheet]").length;if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return;}jQuery.ready();})();}jQuery.event.add(window,"load",jQuery.ready);}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem)try{parent=parent.parentNode;}catch(error){parent=elem;}return parent==elem;};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind();});jQuery.fn.extend({load:function(url,params,callback){if(jQuery.isFunction(url))return this.bind("load",url);var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=(new Date).getTime();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){var jsonp,jsre=/=\?(&|$)/g,status,data;s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));if(s.data&&s.processData&&typeof s.data!="string")s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(s.type.toLowerCase()=="get"){if(!s.url.match(jsre))s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}else if(!s.data||!s.data.match(jsre))s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json";}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}if(head)head.removeChild(script);};}if(s.dataType=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&s.type.toLowerCase()=="get"){var ts=(new Date()).getTime();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&s.type.toLowerCase()=="get"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");if((!s.url.indexOf("http")||!s.url.indexOf("//"))&&s.dataType=="script"&&s.type.toLowerCase()=="get"){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset)script.charset=s.scriptCharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script);}};}head.appendChild(script);return undefined;}var requestDone=false;var xml=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();xml.open(s.type,s.url,s.async,s.username,s.password);try{if(s.data)xml.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)xml.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xml.setRequestHeader("X-Requested-With","XMLHttpRequest");xml.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend)s.beforeSend(xml);if(s.global)jQuery.event.trigger("ajaxSend",[xml,s]);var onreadystatechange=function(isTimeout){if(!requestDone&&xml&&(xml.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xml)&&"error"||s.ifModified&&jQuery.httpNotModified(xml,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xml,s.dataType);}catch(e){status="parsererror";}}if(status=="success"){var modRes;try{modRes=xml.getResponseHeader("Last-Modified");}catch(e){}if(s.ifModified&&modRes)jQuery.lastModified[s.url]=modRes;if(!jsonp)success();}else
|
29 |
+
jQuery.handleError(s,xml,status);complete();if(s.async)xml=null;}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)setTimeout(function(){if(xml){xml.abort();if(!requestDone)onreadystatechange("timeout");}},s.timeout);}try{xml.send(s.data);}catch(e){jQuery.handleError(s,xml,null,e);}if(!s.async)onreadystatechange();function success(){if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xml,s]);}function complete(){if(s.complete)s.complete(xml,status);if(s.global)jQuery.event.trigger("ajaxComplete",[xml,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");}return xml;},handleError:function(s,xml,status,e){if(s.error)s.error(xml,status,e);if(s.global)jQuery.event.trigger("ajaxError",[xml,s,e]);},active:0,httpSuccess:function(r){try{return!r.status&&location.protocol=="file:"||(r.status>=200&&r.status<300)||r.status==304||r.status==1223||jQuery.browser.safari&&r.status==undefined;}catch(e){}return false;},httpNotModified:function(xml,url){try{var xmlRes=xml.getResponseHeader("Last-Modified");return xml.status==304||xmlRes==jQuery.lastModified[url]||jQuery.browser.safari&&xml.status==undefined;}catch(e){}return false;},httpData:function(r,type){var ct=r.getResponseHeader("content-type");var xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0;var data=xml?r.responseXML:r.responseText;if(xml&&data.documentElement.tagName=="parsererror")throw"parsererror";if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery)jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});else
|
30 |
+
for(var j in a)if(a[j]&&a[j].constructor==Array)jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});else
|
31 |
+
s.push(encodeURIComponent(j)+"="+encodeURIComponent(a[j]));return s.join("&").replace(/%20/g,"+");}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none")this.style.display="block";elem.remove();}}).end();},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none";}).end();},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle(fn,fn2):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();});},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback);},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback);},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback);},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback);},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1)return false;var opt=jQuery.extend({},optall);var hidden=jQuery(this).is(":hidden"),self=this;for(var p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)return jQuery.isFunction(opt.complete)&&opt.complete.apply(this);if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}if(opt.overflow!=null)this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1])end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else
|
32 |
+
e.custom(start,val,"");}});return true;});},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx";}if(!type||(typeof type=="string"&&!fn))return queue(this[0],type);return this.each(function(){if(fn.constructor==Array)queue(this,type,fn);else{queue(this,type).push(fn);if(queue(this,type).length==1)fn.apply(this);}});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue)this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)if(timers[i].elem==this){if(gotoEnd)timers[i](true);timers.splice(i,1);}});if(!gotoEnd)this.dequeue();return this;}});var queue=function(elem,type,array){if(!elem)return undefined;type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array)q=jQuery.data(elem,type+"queue",array?jQuery.makeArray(array):[]);return q;};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length)q[0].apply(this);});};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:{slow:600,fast:200}[opt.duration])||400;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)jQuery(this).dequeue();if(jQuery.isFunction(opt.old))opt.old.apply(this);};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig)options.orig={};}});jQuery.fx.prototype={update:function(){if(this.options.step)this.options.step.apply(this.elem,[this.now,this]);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block";},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=(new Date()).getTime();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)if(!timers[i]())timers.splice(i--,1);if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height")this.elem.style[this.prop]="1px";jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=(new Date()).getTime();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")this.elem.style.display="block";}if(this.options.hide)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var p in this.options.curAnim)jQuery.attr(this.elem.style,p,this.options.orig[p]);}if(done&&jQuery.isFunction(this.options.complete))this.options.complete.apply(this.elem);return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.fx.step={scrollLeft:function(fx){fx.elem.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;}};jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),fixed=jQuery.css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)border(offsetParent);if(!fixed&&jQuery.css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(jQuery.css(parent,"display")))add(-parent.scrollLeft,-parent.scrollTop);if(mozilla&&jQuery.css(parent,"overflow")!="visible")border(parent);parent=parent.parentNode;}if((safari2&&(fixed||jQuery.css(offsetChild,"position")=="absolute"))||(mozilla&&jQuery.css(offsetChild,"position")!="absolute"))add(-doc.body.offsetLeft,-doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}results={top:top,left:left};}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true));}function add(l,t){left+=parseInt(l)||0;top+=parseInt(t)||0;}return results;};})();
|
js/magentopycho/jquery-lightbox-0.5/js/jquery.lightbox-0.5.js
ADDED
@@ -0,0 +1,472 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jQuery lightBox plugin
|
3 |
+
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
|
4 |
+
* and adapted to me for use like a plugin from jQuery.
|
5 |
+
* @name jquery-lightbox-0.5.js
|
6 |
+
* @author Leandro Vieira Pinho - http://leandrovieira.com
|
7 |
+
* @version 0.5
|
8 |
+
* @date April 11, 2008
|
9 |
+
* @category jQuery plugin
|
10 |
+
* @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
|
11 |
+
* @license CCAttribution-ShareAlike 2.5 Brazil - http://creativecommons.org/licenses/by-sa/2.5/br/deed.en_US
|
12 |
+
* @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
|
13 |
+
*/
|
14 |
+
|
15 |
+
// Offering a Custom Alias suport - More info: http://docs.jquery.com/Plugins/Authoring#Custom_Alias
|
16 |
+
(function($) {
|
17 |
+
/**
|
18 |
+
* $ is an alias to jQuery object
|
19 |
+
*
|
20 |
+
*/
|
21 |
+
$.fn.lightBox = function(settings) {
|
22 |
+
// Settings to configure the jQuery lightBox plugin how you like
|
23 |
+
settings = jQuery.extend({
|
24 |
+
// Configuration related to overlay
|
25 |
+
overlayBgColor: '#000', // (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color.
|
26 |
+
overlayOpacity: 0.8, // (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9
|
27 |
+
// Configuration related to navigation
|
28 |
+
fixedNavigation: false, // (boolean) Boolean that informs if the navigation (next and prev button) will be fixed or not in the interface.
|
29 |
+
// Configuration related to images
|
30 |
+
imageLoading: 'images/lightbox-ico-loading.gif', // (string) Path and the name of the loading icon
|
31 |
+
imageBtnPrev: 'images/lightbox-btn-prev.gif', // (string) Path and the name of the prev button image
|
32 |
+
imageBtnNext: 'images/lightbox-btn-next.gif', // (string) Path and the name of the next button image
|
33 |
+
imageBtnClose: 'images/lightbox-btn-close.gif', // (string) Path and the name of the close btn
|
34 |
+
imageBlank: 'images/lightbox-blank.gif', // (string) Path and the name of a blank image (one pixel)
|
35 |
+
// Configuration related to container image box
|
36 |
+
containerBorderSize: 10, // (integer) If you adjust the padding in the CSS for the container, #lightbox-container-image-box, you will need to update this value
|
37 |
+
containerResizeSpeed: 400, // (integer) Specify the resize duration of container image. These number are miliseconds. 400 is default.
|
38 |
+
// Configuration related to texts in caption. For example: Image 2 of 8. You can alter either "Image" and "of" texts.
|
39 |
+
txtImage: 'Image', // (string) Specify text "Image"
|
40 |
+
txtOf: 'of', // (string) Specify text "of"
|
41 |
+
// Configuration related to keyboard navigation
|
42 |
+
keyToClose: 'c', // (string) (c = close) Letter to close the jQuery lightBox interface. Beyond this letter, the letter X and the SCAPE key is used to.
|
43 |
+
keyToPrev: 'p', // (string) (p = previous) Letter to show the previous image
|
44 |
+
keyToNext: 'n', // (string) (n = next) Letter to show the next image.
|
45 |
+
// Don�t alter these variables in any way
|
46 |
+
imageArray: [],
|
47 |
+
activeImage: 0
|
48 |
+
},settings);
|
49 |
+
// Caching the jQuery object with all elements matched
|
50 |
+
var jQueryMatchedObj = this; // This, in this context, refer to jQuery object
|
51 |
+
/**
|
52 |
+
* Initializing the plugin calling the start function
|
53 |
+
*
|
54 |
+
* @return boolean false
|
55 |
+
*/
|
56 |
+
function _initialize() {
|
57 |
+
_start(this,jQueryMatchedObj); // This, in this context, refer to object (link) which the user have clicked
|
58 |
+
return false; // Avoid the browser following the link
|
59 |
+
}
|
60 |
+
/**
|
61 |
+
* Start the jQuery lightBox plugin
|
62 |
+
*
|
63 |
+
* @param object objClicked The object (link) whick the user have clicked
|
64 |
+
* @param object jQueryMatchedObj The jQuery object with all elements matched
|
65 |
+
*/
|
66 |
+
function _start(objClicked,jQueryMatchedObj) {
|
67 |
+
// Hime some elements to avoid conflict with overlay in IE. These elements appear above the overlay.
|
68 |
+
$('embed, object, select').css({ 'visibility' : 'hidden' });
|
69 |
+
// Call the function to create the markup structure; style some elements; assign events in some elements.
|
70 |
+
_set_interface();
|
71 |
+
// Unset total images in imageArray
|
72 |
+
settings.imageArray.length = 0;
|
73 |
+
// Unset image active information
|
74 |
+
settings.activeImage = 0;
|
75 |
+
// We have an image set? Or just an image? Let�s see it.
|
76 |
+
if ( jQueryMatchedObj.length == 1 ) {
|
77 |
+
settings.imageArray.push(new Array(objClicked.getAttribute('href'),objClicked.getAttribute('title')));
|
78 |
+
} else {
|
79 |
+
// Add an Array (as many as we have), with href and title atributes, inside the Array that storage the images references
|
80 |
+
for ( var i = 0; i < jQueryMatchedObj.length; i++ ) {
|
81 |
+
settings.imageArray.push(new Array(jQueryMatchedObj[i].getAttribute('href'),jQueryMatchedObj[i].getAttribute('title')));
|
82 |
+
}
|
83 |
+
}
|
84 |
+
while ( settings.imageArray[settings.activeImage][0] != objClicked.getAttribute('href') ) {
|
85 |
+
settings.activeImage++;
|
86 |
+
}
|
87 |
+
// Call the function that prepares image exibition
|
88 |
+
_set_image_to_view();
|
89 |
+
}
|
90 |
+
/**
|
91 |
+
* Create the jQuery lightBox plugin interface
|
92 |
+
*
|
93 |
+
* The HTML markup will be like that:
|
94 |
+
<div id="jquery-overlay"></div>
|
95 |
+
<div id="jquery-lightbox">
|
96 |
+
<div id="lightbox-container-image-box">
|
97 |
+
<div id="lightbox-container-image">
|
98 |
+
<img src="../fotos/XX.jpg" id="lightbox-image">
|
99 |
+
<div id="lightbox-nav">
|
100 |
+
<a href="#" id="lightbox-nav-btnPrev"></a>
|
101 |
+
<a href="#" id="lightbox-nav-btnNext"></a>
|
102 |
+
</div>
|
103 |
+
<div id="lightbox-loading">
|
104 |
+
<a href="#" id="lightbox-loading-link">
|
105 |
+
<img src="../images/lightbox-ico-loading.gif">
|
106 |
+
</a>
|
107 |
+
</div>
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
+
<div id="lightbox-container-image-data-box">
|
111 |
+
<div id="lightbox-container-image-data">
|
112 |
+
<div id="lightbox-image-details">
|
113 |
+
<span id="lightbox-image-details-caption"></span>
|
114 |
+
<span id="lightbox-image-details-currentNumber"></span>
|
115 |
+
</div>
|
116 |
+
<div id="lightbox-secNav">
|
117 |
+
<a href="#" id="lightbox-secNav-btnClose">
|
118 |
+
<img src="../images/lightbox-btn-close.gif">
|
119 |
+
</a>
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
*
|
125 |
+
*/
|
126 |
+
function _set_interface() {
|
127 |
+
// Apply the HTML markup into body tag
|
128 |
+
$('body').append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="' + settings.imageLoading + '"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="' + settings.imageBtnClose + '"></a></div></div></div></div>');
|
129 |
+
// Get page sizes
|
130 |
+
var arrPageSizes = ___getPageSize();
|
131 |
+
// Style overlay and show it
|
132 |
+
$('#jquery-overlay').css({
|
133 |
+
backgroundColor: settings.overlayBgColor,
|
134 |
+
opacity: settings.overlayOpacity,
|
135 |
+
width: arrPageSizes[0],
|
136 |
+
height: arrPageSizes[1]
|
137 |
+
}).fadeIn();
|
138 |
+
// Get page scroll
|
139 |
+
var arrPageScroll = ___getPageScroll();
|
140 |
+
// Calculate top and left offset for the jquery-lightbox div object and show it
|
141 |
+
$('#jquery-lightbox').css({
|
142 |
+
top: arrPageScroll[1] + (arrPageSizes[3] / 10),
|
143 |
+
left: arrPageScroll[0]
|
144 |
+
}).show();
|
145 |
+
// Assigning click events in elements to close overlay
|
146 |
+
$('#jquery-overlay,#jquery-lightbox').click(function() {
|
147 |
+
_finish();
|
148 |
+
});
|
149 |
+
// Assign the _finish function to lightbox-loading-link and lightbox-secNav-btnClose objects
|
150 |
+
$('#lightbox-loading-link,#lightbox-secNav-btnClose').click(function() {
|
151 |
+
_finish();
|
152 |
+
return false;
|
153 |
+
});
|
154 |
+
// If window was resized, calculate the new overlay dimensions
|
155 |
+
$(window).resize(function() {
|
156 |
+
// Get page sizes
|
157 |
+
var arrPageSizes = ___getPageSize();
|
158 |
+
// Style overlay and show it
|
159 |
+
$('#jquery-overlay').css({
|
160 |
+
width: arrPageSizes[0],
|
161 |
+
height: arrPageSizes[1]
|
162 |
+
});
|
163 |
+
// Get page scroll
|
164 |
+
var arrPageScroll = ___getPageScroll();
|
165 |
+
// Calculate top and left offset for the jquery-lightbox div object and show it
|
166 |
+
$('#jquery-lightbox').css({
|
167 |
+
top: arrPageScroll[1] + (arrPageSizes[3] / 10),
|
168 |
+
left: arrPageScroll[0]
|
169 |
+
});
|
170 |
+
});
|
171 |
+
}
|
172 |
+
/**
|
173 |
+
* Prepares image exibition; doing a image�s preloader to calculate it�s size
|
174 |
+
*
|
175 |
+
*/
|
176 |
+
function _set_image_to_view() { // show the loading
|
177 |
+
// Show the loading
|
178 |
+
$('#lightbox-loading').show();
|
179 |
+
if ( settings.fixedNavigation ) {
|
180 |
+
$('#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber').hide();
|
181 |
+
} else {
|
182 |
+
// Hide some elements
|
183 |
+
$('#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber').hide();
|
184 |
+
}
|
185 |
+
// Image preload process
|
186 |
+
var objImagePreloader = new Image();
|
187 |
+
objImagePreloader.onload = function() {
|
188 |
+
$('#lightbox-image').attr('src',settings.imageArray[settings.activeImage][0]);
|
189 |
+
// Perfomance an effect in the image container resizing it
|
190 |
+
_resize_container_image_box(objImagePreloader.width,objImagePreloader.height);
|
191 |
+
// clear onLoad, IE behaves irratically with animated gifs otherwise
|
192 |
+
objImagePreloader.onload=function(){};
|
193 |
+
};
|
194 |
+
objImagePreloader.src = settings.imageArray[settings.activeImage][0];
|
195 |
+
};
|
196 |
+
/**
|
197 |
+
* Perfomance an effect in the image container resizing it
|
198 |
+
*
|
199 |
+
* @param integer intImageWidth The image�s width that will be showed
|
200 |
+
* @param integer intImageHeight The image�s height that will be showed
|
201 |
+
*/
|
202 |
+
function _resize_container_image_box(intImageWidth,intImageHeight) {
|
203 |
+
// Get current width and height
|
204 |
+
var intCurrentWidth = $('#lightbox-container-image-box').width();
|
205 |
+
var intCurrentHeight = $('#lightbox-container-image-box').height();
|
206 |
+
// Get the width and height of the selected image plus the padding
|
207 |
+
var intWidth = (intImageWidth + (settings.containerBorderSize * 2)); // Plus the image�s width and the left and right padding value
|
208 |
+
var intHeight = (intImageHeight + (settings.containerBorderSize * 2)); // Plus the image�s height and the left and right padding value
|
209 |
+
// Diferences
|
210 |
+
var intDiffW = intCurrentWidth - intWidth;
|
211 |
+
var intDiffH = intCurrentHeight - intHeight;
|
212 |
+
// Perfomance the effect
|
213 |
+
$('#lightbox-container-image-box').animate({ width: intWidth, height: intHeight },settings.containerResizeSpeed,function() { _show_image(); });
|
214 |
+
if ( ( intDiffW == 0 ) && ( intDiffH == 0 ) ) {
|
215 |
+
if ( $.browser.msie ) {
|
216 |
+
___pause(250);
|
217 |
+
} else {
|
218 |
+
___pause(100);
|
219 |
+
}
|
220 |
+
}
|
221 |
+
$('#lightbox-container-image-data-box').css({ width: intImageWidth });
|
222 |
+
$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({ height: intImageHeight + (settings.containerBorderSize * 2) });
|
223 |
+
};
|
224 |
+
/**
|
225 |
+
* Show the prepared image
|
226 |
+
*
|
227 |
+
*/
|
228 |
+
function _show_image() {
|
229 |
+
$('#lightbox-loading').hide();
|
230 |
+
$('#lightbox-image').fadeIn(function() {
|
231 |
+
_show_image_data();
|
232 |
+
_set_navigation();
|
233 |
+
});
|
234 |
+
_preload_neighbor_images();
|
235 |
+
};
|
236 |
+
/**
|
237 |
+
* Show the image information
|
238 |
+
*
|
239 |
+
*/
|
240 |
+
function _show_image_data() {
|
241 |
+
$('#lightbox-container-image-data-box').slideDown('fast');
|
242 |
+
$('#lightbox-image-details-caption').hide();
|
243 |
+
if ( settings.imageArray[settings.activeImage][1] ) {
|
244 |
+
$('#lightbox-image-details-caption').html(settings.imageArray[settings.activeImage][1]).show();
|
245 |
+
}
|
246 |
+
// If we have a image set, display 'Image X of X'
|
247 |
+
if ( settings.imageArray.length > 1 ) {
|
248 |
+
$('#lightbox-image-details-currentNumber').html(settings.txtImage + ' ' + ( settings.activeImage + 1 ) + ' ' + settings.txtOf + ' ' + settings.imageArray.length).show();
|
249 |
+
}
|
250 |
+
}
|
251 |
+
/**
|
252 |
+
* Display the button navigations
|
253 |
+
*
|
254 |
+
*/
|
255 |
+
function _set_navigation() {
|
256 |
+
$('#lightbox-nav').show();
|
257 |
+
|
258 |
+
// Instead to define this configuration in CSS file, we define here. And it�s need to IE. Just.
|
259 |
+
$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({ 'background' : 'transparent url(' + settings.imageBlank + ') no-repeat' });
|
260 |
+
|
261 |
+
// Show the prev button, if not the first image in set
|
262 |
+
if ( settings.activeImage != 0 ) {
|
263 |
+
if ( settings.fixedNavigation ) {
|
264 |
+
$('#lightbox-nav-btnPrev').css({ 'background' : 'url(' + settings.imageBtnPrev + ') left 15% no-repeat' })
|
265 |
+
.unbind()
|
266 |
+
.bind('click',function() {
|
267 |
+
settings.activeImage = settings.activeImage - 1;
|
268 |
+
_set_image_to_view();
|
269 |
+
return false;
|
270 |
+
});
|
271 |
+
} else {
|
272 |
+
// Show the images button for Next buttons
|
273 |
+
$('#lightbox-nav-btnPrev').unbind().hover(function() {
|
274 |
+
$(this).css({ 'background' : 'url(' + settings.imageBtnPrev + ') left 15% no-repeat' });
|
275 |
+
},function() {
|
276 |
+
$(this).css({ 'background' : 'transparent url(' + settings.imageBlank + ') no-repeat' });
|
277 |
+
}).show().bind('click',function() {
|
278 |
+
settings.activeImage = settings.activeImage - 1;
|
279 |
+
_set_image_to_view();
|
280 |
+
return false;
|
281 |
+
});
|
282 |
+
}
|
283 |
+
}
|
284 |
+
|
285 |
+
// Show the next button, if not the last image in set
|
286 |
+
if ( settings.activeImage != ( settings.imageArray.length -1 ) ) {
|
287 |
+
if ( settings.fixedNavigation ) {
|
288 |
+
$('#lightbox-nav-btnNext').css({ 'background' : 'url(' + settings.imageBtnNext + ') right 15% no-repeat' })
|
289 |
+
.unbind()
|
290 |
+
.bind('click',function() {
|
291 |
+
settings.activeImage = settings.activeImage + 1;
|
292 |
+
_set_image_to_view();
|
293 |
+
return false;
|
294 |
+
});
|
295 |
+
} else {
|
296 |
+
// Show the images button for Next buttons
|
297 |
+
$('#lightbox-nav-btnNext').unbind().hover(function() {
|
298 |
+
$(this).css({ 'background' : 'url(' + settings.imageBtnNext + ') right 15% no-repeat' });
|
299 |
+
},function() {
|
300 |
+
$(this).css({ 'background' : 'transparent url(' + settings.imageBlank + ') no-repeat' });
|
301 |
+
}).show().bind('click',function() {
|
302 |
+
settings.activeImage = settings.activeImage + 1;
|
303 |
+
_set_image_to_view();
|
304 |
+
return false;
|
305 |
+
});
|
306 |
+
}
|
307 |
+
}
|
308 |
+
// Enable keyboard navigation
|
309 |
+
_enable_keyboard_navigation();
|
310 |
+
}
|
311 |
+
/**
|
312 |
+
* Enable a support to keyboard navigation
|
313 |
+
*
|
314 |
+
*/
|
315 |
+
function _enable_keyboard_navigation() {
|
316 |
+
$(document).keydown(function(objEvent) {
|
317 |
+
_keyboard_action(objEvent);
|
318 |
+
});
|
319 |
+
}
|
320 |
+
/**
|
321 |
+
* Disable the support to keyboard navigation
|
322 |
+
*
|
323 |
+
*/
|
324 |
+
function _disable_keyboard_navigation() {
|
325 |
+
$(document).unbind();
|
326 |
+
}
|
327 |
+
/**
|
328 |
+
* Perform the keyboard actions
|
329 |
+
*
|
330 |
+
*/
|
331 |
+
function _keyboard_action(objEvent) {
|
332 |
+
// To ie
|
333 |
+
if ( objEvent == null ) {
|
334 |
+
keycode = event.keyCode;
|
335 |
+
escapeKey = 27;
|
336 |
+
// To Mozilla
|
337 |
+
} else {
|
338 |
+
keycode = objEvent.keyCode;
|
339 |
+
escapeKey = objEvent.DOM_VK_ESCAPE;
|
340 |
+
}
|
341 |
+
// Get the key in lower case form
|
342 |
+
key = String.fromCharCode(keycode).toLowerCase();
|
343 |
+
// Verify the keys to close the ligthBox
|
344 |
+
if ( ( key == settings.keyToClose ) || ( key == 'x' ) || ( keycode == escapeKey ) ) {
|
345 |
+
_finish();
|
346 |
+
}
|
347 |
+
// Verify the key to show the previous image
|
348 |
+
if ( ( key == settings.keyToPrev ) || ( keycode == 37 ) ) {
|
349 |
+
// If we�re not showing the first image, call the previous
|
350 |
+
if ( settings.activeImage != 0 ) {
|
351 |
+
settings.activeImage = settings.activeImage - 1;
|
352 |
+
_set_image_to_view();
|
353 |
+
_disable_keyboard_navigation();
|
354 |
+
}
|
355 |
+
}
|
356 |
+
// Verify the key to show the next image
|
357 |
+
if ( ( key == settings.keyToNext ) || ( keycode == 39 ) ) {
|
358 |
+
// If we�re not showing the last image, call the next
|
359 |
+
if ( settings.activeImage != ( settings.imageArray.length - 1 ) ) {
|
360 |
+
settings.activeImage = settings.activeImage + 1;
|
361 |
+
_set_image_to_view();
|
362 |
+
_disable_keyboard_navigation();
|
363 |
+
}
|
364 |
+
}
|
365 |
+
}
|
366 |
+
/**
|
367 |
+
* Preload prev and next images being showed
|
368 |
+
*
|
369 |
+
*/
|
370 |
+
function _preload_neighbor_images() {
|
371 |
+
if ( (settings.imageArray.length -1) > settings.activeImage ) {
|
372 |
+
objNext = new Image();
|
373 |
+
objNext.src = settings.imageArray[settings.activeImage + 1][0];
|
374 |
+
}
|
375 |
+
if ( settings.activeImage > 0 ) {
|
376 |
+
objPrev = new Image();
|
377 |
+
objPrev.src = settings.imageArray[settings.activeImage -1][0];
|
378 |
+
}
|
379 |
+
}
|
380 |
+
/**
|
381 |
+
* Remove jQuery lightBox plugin HTML markup
|
382 |
+
*
|
383 |
+
*/
|
384 |
+
function _finish() {
|
385 |
+
$('#jquery-lightbox').remove();
|
386 |
+
$('#jquery-overlay').fadeOut(function() { $('#jquery-overlay').remove(); });
|
387 |
+
// Show some elements to avoid conflict with overlay in IE. These elements appear above the overlay.
|
388 |
+
$('embed, object, select').css({ 'visibility' : 'visible' });
|
389 |
+
}
|
390 |
+
/**
|
391 |
+
/ THIRD FUNCTION
|
392 |
+
* getPageSize() by quirksmode.com
|
393 |
+
*
|
394 |
+
* @return Array Return an array with page width, height and window width, height
|
395 |
+
*/
|
396 |
+
function ___getPageSize() {
|
397 |
+
var xScroll, yScroll;
|
398 |
+
if (window.innerHeight && window.scrollMaxY) {
|
399 |
+
xScroll = window.innerWidth + window.scrollMaxX;
|
400 |
+
yScroll = window.innerHeight + window.scrollMaxY;
|
401 |
+
} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
|
402 |
+
xScroll = document.body.scrollWidth;
|
403 |
+
yScroll = document.body.scrollHeight;
|
404 |
+
} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
|
405 |
+
xScroll = document.body.offsetWidth;
|
406 |
+
yScroll = document.body.offsetHeight;
|
407 |
+
}
|
408 |
+
var windowWidth, windowHeight;
|
409 |
+
if (self.innerHeight) { // all except Explorer
|
410 |
+
if(document.documentElement.clientWidth){
|
411 |
+
windowWidth = document.documentElement.clientWidth;
|
412 |
+
} else {
|
413 |
+
windowWidth = self.innerWidth;
|
414 |
+
}
|
415 |
+
windowHeight = self.innerHeight;
|
416 |
+
} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
|
417 |
+
windowWidth = document.documentElement.clientWidth;
|
418 |
+
windowHeight = document.documentElement.clientHeight;
|
419 |
+
} else if (document.body) { // other Explorers
|
420 |
+
windowWidth = document.body.clientWidth;
|
421 |
+
windowHeight = document.body.clientHeight;
|
422 |
+
}
|
423 |
+
// for small pages with total height less then height of the viewport
|
424 |
+
if(yScroll < windowHeight){
|
425 |
+
pageHeight = windowHeight;
|
426 |
+
} else {
|
427 |
+
pageHeight = yScroll;
|
428 |
+
}
|
429 |
+
// for small pages with total width less then width of the viewport
|
430 |
+
if(xScroll < windowWidth){
|
431 |
+
pageWidth = xScroll;
|
432 |
+
} else {
|
433 |
+
pageWidth = windowWidth;
|
434 |
+
}
|
435 |
+
arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight);
|
436 |
+
return arrayPageSize;
|
437 |
+
};
|
438 |
+
/**
|
439 |
+
/ THIRD FUNCTION
|
440 |
+
* getPageScroll() by quirksmode.com
|
441 |
+
*
|
442 |
+
* @return Array Return an array with x,y page scroll values.
|
443 |
+
*/
|
444 |
+
function ___getPageScroll() {
|
445 |
+
var xScroll, yScroll;
|
446 |
+
if (self.pageYOffset) {
|
447 |
+
yScroll = self.pageYOffset;
|
448 |
+
xScroll = self.pageXOffset;
|
449 |
+
} else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict
|
450 |
+
yScroll = document.documentElement.scrollTop;
|
451 |
+
xScroll = document.documentElement.scrollLeft;
|
452 |
+
} else if (document.body) {// all other Explorers
|
453 |
+
yScroll = document.body.scrollTop;
|
454 |
+
xScroll = document.body.scrollLeft;
|
455 |
+
}
|
456 |
+
arrayPageScroll = new Array(xScroll,yScroll);
|
457 |
+
return arrayPageScroll;
|
458 |
+
};
|
459 |
+
/**
|
460 |
+
* Stop the code execution from a escified time in milisecond
|
461 |
+
*
|
462 |
+
*/
|
463 |
+
function ___pause(ms) {
|
464 |
+
var date = new Date();
|
465 |
+
curDate = null;
|
466 |
+
do { var curDate = new Date(); }
|
467 |
+
while ( curDate - date < ms);
|
468 |
+
};
|
469 |
+
// Return the jQuery object for chaining. The unbind method is used to avoid click conflict when the plugin is called more than once
|
470 |
+
return this.unbind('click').click(_initialize);
|
471 |
+
};
|
472 |
+
})(jQuery); // Call and execute the function immediately passing the jQuery object
|
js/magentopycho/jquery-lightbox-0.5/js/jquery.lightbox-0.5.min.js
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jQuery lightBox plugin
|
3 |
+
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
|
4 |
+
* and adapted to me for use like a plugin from jQuery.
|
5 |
+
* @name jquery-lightbox-0.5.js
|
6 |
+
* @author Leandro Vieira Pinho - http://leandrovieira.com
|
7 |
+
* @version 0.5
|
8 |
+
* @date April 11, 2008
|
9 |
+
* @category jQuery plugin
|
10 |
+
* @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
|
11 |
+
* @license CCAttribution-ShareAlike 2.5 Brazil - http://creativecommons.org/licenses/by-sa/2.5/br/deed.en_US
|
12 |
+
* @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
|
13 |
+
*/
|
14 |
+
(function($){$.fn.lightBox=function(settings){settings=jQuery.extend({overlayBgColor:'#000',overlayOpacity:0.8,fixedNavigation:false,imageLoading:'images/lightbox-ico-loading.gif',imageBtnPrev:'images/lightbox-btn-prev.gif',imageBtnNext:'images/lightbox-btn-next.gif',imageBtnClose:'images/lightbox-btn-close.gif',imageBlank:'images/lightbox-blank.gif',containerBorderSize:10,containerResizeSpeed:400,txtImage:'Image',txtOf:'of',keyToClose:'c',keyToPrev:'p',keyToNext:'n',imageArray:[],activeImage:0},settings);var jQueryMatchedObj=this;function _initialize(){_start(this,jQueryMatchedObj);return false;}
|
15 |
+
function _start(objClicked,jQueryMatchedObj){$('embed, object, select').css({'visibility':'hidden'});_set_interface();settings.imageArray.length=0;settings.activeImage=0;if(jQueryMatchedObj.length==1){settings.imageArray.push(new Array(objClicked.getAttribute('href'),objClicked.getAttribute('title')));}else{for(var i=0;i<jQueryMatchedObj.length;i++){settings.imageArray.push(new Array(jQueryMatchedObj[i].getAttribute('href'),jQueryMatchedObj[i].getAttribute('title')));}}
|
16 |
+
while(settings.imageArray[settings.activeImage][0]!=objClicked.getAttribute('href')){settings.activeImage++;}
|
17 |
+
_set_image_to_view();}
|
18 |
+
function _set_interface(){$('body').append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+settings.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+settings.imageBtnClose+'"></a></div></div></div></div>');var arrPageSizes=___getPageSize();$('#jquery-overlay').css({backgroundColor:settings.overlayBgColor,opacity:settings.overlayOpacity,width:arrPageSizes[0],height:arrPageSizes[1]}).fadeIn();var arrPageScroll=___getPageScroll();$('#jquery-lightbox').css({top:arrPageScroll[1]+(arrPageSizes[3]/10),left:arrPageScroll[0]}).show();$('#jquery-overlay,#jquery-lightbox').click(function(){_finish();});$('#lightbox-loading-link,#lightbox-secNav-btnClose').click(function(){_finish();return false;});$(window).resize(function(){var arrPageSizes=___getPageSize();$('#jquery-overlay').css({width:arrPageSizes[0],height:arrPageSizes[1]});var arrPageScroll=___getPageScroll();$('#jquery-lightbox').css({top:arrPageScroll[1]+(arrPageSizes[3]/10),left:arrPageScroll[0]});});}
|
19 |
+
function _set_image_to_view(){$('#lightbox-loading').show();if(settings.fixedNavigation){$('#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber').hide();}else{$('#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber').hide();}
|
20 |
+
var objImagePreloader=new Image();objImagePreloader.onload=function(){$('#lightbox-image').attr('src',settings.imageArray[settings.activeImage][0]);_resize_container_image_box(objImagePreloader.width,objImagePreloader.height);objImagePreloader.onload=function(){};};objImagePreloader.src=settings.imageArray[settings.activeImage][0];};function _resize_container_image_box(intImageWidth,intImageHeight){var intCurrentWidth=$('#lightbox-container-image-box').width();var intCurrentHeight=$('#lightbox-container-image-box').height();var intWidth=(intImageWidth+(settings.containerBorderSize*2));var intHeight=(intImageHeight+(settings.containerBorderSize*2));var intDiffW=intCurrentWidth-intWidth;var intDiffH=intCurrentHeight-intHeight;$('#lightbox-container-image-box').animate({width:intWidth,height:intHeight},settings.containerResizeSpeed,function(){_show_image();});if((intDiffW==0)&&(intDiffH==0)){if($.browser.msie){___pause(250);}else{___pause(100);}}
|
21 |
+
$('#lightbox-container-image-data-box').css({width:intImageWidth});$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({height:intImageHeight+(settings.containerBorderSize*2)});};function _show_image(){$('#lightbox-loading').hide();$('#lightbox-image').fadeIn(function(){_show_image_data();_set_navigation();});_preload_neighbor_images();};function _show_image_data(){$('#lightbox-container-image-data-box').slideDown('fast');$('#lightbox-image-details-caption').hide();if(settings.imageArray[settings.activeImage][1]){$('#lightbox-image-details-caption').html(settings.imageArray[settings.activeImage][1]).show();}
|
22 |
+
if(settings.imageArray.length>1){$('#lightbox-image-details-currentNumber').html(settings.txtImage+' '+(settings.activeImage+1)+' '+settings.txtOf+' '+settings.imageArray.length).show();}}
|
23 |
+
function _set_navigation(){$('#lightbox-nav').show();$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({'background':'transparent url('+settings.imageBlank+') no-repeat'});if(settings.activeImage!=0){if(settings.fixedNavigation){$('#lightbox-nav-btnPrev').css({'background':'url('+settings.imageBtnPrev+') left 15% no-repeat'}).unbind().bind('click',function(){settings.activeImage=settings.activeImage-1;_set_image_to_view();return false;});}else{$('#lightbox-nav-btnPrev').unbind().hover(function(){$(this).css({'background':'url('+settings.imageBtnPrev+') left 15% no-repeat'});},function(){$(this).css({'background':'transparent url('+settings.imageBlank+') no-repeat'});}).show().bind('click',function(){settings.activeImage=settings.activeImage-1;_set_image_to_view();return false;});}}
|
24 |
+
if(settings.activeImage!=(settings.imageArray.length-1)){if(settings.fixedNavigation){$('#lightbox-nav-btnNext').css({'background':'url('+settings.imageBtnNext+') right 15% no-repeat'}).unbind().bind('click',function(){settings.activeImage=settings.activeImage+1;_set_image_to_view();return false;});}else{$('#lightbox-nav-btnNext').unbind().hover(function(){$(this).css({'background':'url('+settings.imageBtnNext+') right 15% no-repeat'});},function(){$(this).css({'background':'transparent url('+settings.imageBlank+') no-repeat'});}).show().bind('click',function(){settings.activeImage=settings.activeImage+1;_set_image_to_view();return false;});}}
|
25 |
+
_enable_keyboard_navigation();}
|
26 |
+
function _enable_keyboard_navigation(){$(document).keydown(function(objEvent){_keyboard_action(objEvent);});}
|
27 |
+
function _disable_keyboard_navigation(){$(document).unbind();}
|
28 |
+
function _keyboard_action(objEvent){if(objEvent==null){keycode=event.keyCode;escapeKey=27;}else{keycode=objEvent.keyCode;escapeKey=objEvent.DOM_VK_ESCAPE;}
|
29 |
+
key=String.fromCharCode(keycode).toLowerCase();if((key==settings.keyToClose)||(key=='x')||(keycode==escapeKey)){_finish();}
|
30 |
+
if((key==settings.keyToPrev)||(keycode==37)){if(settings.activeImage!=0){settings.activeImage=settings.activeImage-1;_set_image_to_view();_disable_keyboard_navigation();}}
|
31 |
+
if((key==settings.keyToNext)||(keycode==39)){if(settings.activeImage!=(settings.imageArray.length-1)){settings.activeImage=settings.activeImage+1;_set_image_to_view();_disable_keyboard_navigation();}}}
|
32 |
+
function _preload_neighbor_images(){if((settings.imageArray.length-1)>settings.activeImage){objNext=new Image();objNext.src=settings.imageArray[settings.activeImage+1][0];}
|
33 |
+
if(settings.activeImage>0){objPrev=new Image();objPrev.src=settings.imageArray[settings.activeImage-1][0];}}
|
34 |
+
function _finish(){$('#jquery-lightbox').remove();$('#jquery-overlay').fadeOut(function(){$('#jquery-overlay').remove();});$('embed, object, select').css({'visibility':'visible'});}
|
35 |
+
function ___getPageSize(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
|
36 |
+
var windowWidth,windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;}else{windowWidth=self.innerWidth;}
|
37 |
+
windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
|
38 |
+
if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}
|
39 |
+
if(xScroll<windowWidth){pageWidth=xScroll;}else{pageWidth=windowWidth;}
|
40 |
+
arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight);return arrayPageSize;};function ___getPageScroll(){var xScroll,yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset;}else if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft;}else if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft;}
|
41 |
+
arrayPageScroll=new Array(xScroll,yScroll);return arrayPageScroll;};function ___pause(ms){var date=new Date();curDate=null;do{var curDate=new Date();}
|
42 |
+
while(curDate-date<ms);};return this.unbind('click').click(_initialize);};})(jQuery);
|
js/magentopycho/jquery-lightbox-0.5/js/jquery.lightbox-0.5.pack.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jQuery lightBox plugin
|
3 |
+
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
|
4 |
+
* and adapted to me for use like a plugin from jQuery.
|
5 |
+
* @name jquery-lightbox-0.5.js
|
6 |
+
* @author Leandro Vieira Pinho - http://leandrovieira.com
|
7 |
+
* @version 0.5
|
8 |
+
* @date April 11, 2008
|
9 |
+
* @category jQuery plugin
|
10 |
+
* @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
|
11 |
+
* @license CCAttribution-ShareAlike 2.5 Brazil - http://creativecommons.org/licenses/by-sa/2.5/br/deed.en_US
|
12 |
+
* @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
|
13 |
+
*/
|
14 |
+
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(6($){$.2N.3g=6(4){4=23.2H({2B:\'#34\',2g:0.8,1d:F,1M:\'18/5-33-Y.16\',1v:\'18/5-1u-2Q.16\',1E:\'18/5-1u-2L.16\',1W:\'18/5-1u-2I.16\',19:\'18/5-2F.16\',1f:10,2A:3d,2s:\'1j\',2o:\'32\',2j:\'c\',2f:\'p\',2d:\'n\',h:[],9:0},4);f I=N;6 20(){1X(N,I);u F}6 1X(1e,I){$(\'1U, 1S, 1R\').l({\'1Q\':\'2E\'});1O();4.h.B=0;4.9=0;7(I.B==1){4.h.1J(v 1m(1e.17(\'J\'),1e.17(\'2v\')))}j{36(f i=0;i<I.B;i++){4.h.1J(v 1m(I[i].17(\'J\'),I[i].17(\'2v\')))}}2n(4.h[4.9][0]!=1e.17(\'J\')){4.9++}D()}6 1O(){$(\'m\').31(\'<e g="q-13"></e><e g="q-5"><e g="5-s-b-w"><e g="5-s-b"><1w g="5-b"><e 2V="" g="5-k"><a J="#" g="5-k-V"></a><a J="#" g="5-k-X"></a></e><e g="5-Y"><a J="#" g="5-Y-29"><1w W="\'+4.1M+\'"></a></e></e></e><e g="5-s-b-T-w"><e g="5-s-b-T"><e g="5-b-A"><1i g="5-b-A-1t"></1i><1i g="5-b-A-1g"></1i></e><e g="5-1s"><a J="#" g="5-1s-22"><1w W="\'+4.1W+\'"></a></e></e></e></e>\');f z=1D();$(\'#q-13\').l({2K:4.2B,2J:4.2g,S:z[0],P:z[1]}).1V();f R=1p();$(\'#q-5\').l({1T:R[1]+(z[3]/10),1c:R[0]}).E();$(\'#q-13,#q-5\').C(6(){1a()});$(\'#5-Y-29,#5-1s-22\').C(6(){1a();u F});$(G).2G(6(){f z=1D();$(\'#q-13\').l({S:z[0],P:z[1]});f R=1p();$(\'#q-5\').l({1T:R[1]+(z[3]/10),1c:R[0]})})}6 D(){$(\'#5-Y\').E();7(4.1d){$(\'#5-b,#5-s-b-T-w,#5-b-A-1g\').1b()}j{$(\'#5-b,#5-k,#5-k-V,#5-k-X,#5-s-b-T-w,#5-b-A-1g\').1b()}f Q=v 1j();Q.1P=6(){$(\'#5-b\').2D(\'W\',4.h[4.9][0]);1N(Q.S,Q.P);Q.1P=6(){}};Q.W=4.h[4.9][0]};6 1N(1o,1r){f 1L=$(\'#5-s-b-w\').S();f 1K=$(\'#5-s-b-w\').P();f 1n=(1o+(4.1f*2));f 1y=(1r+(4.1f*2));f 1I=1L-1n;f 2z=1K-1y;$(\'#5-s-b-w\').3f({S:1n,P:1y},4.2A,6(){2y()});7((1I==0)&&(2z==0)){7($.3e.3c){1H(3b)}j{1H(3a)}}$(\'#5-s-b-T-w\').l({S:1o});$(\'#5-k-V,#5-k-X\').l({P:1r+(4.1f*2)})};6 2y(){$(\'#5-Y\').1b();$(\'#5-b\').1V(6(){2u();2t()});2r()};6 2u(){$(\'#5-s-b-T-w\').38(\'35\');$(\'#5-b-A-1t\').1b();7(4.h[4.9][1]){$(\'#5-b-A-1t\').2p(4.h[4.9][1]).E()}7(4.h.B>1){$(\'#5-b-A-1g\').2p(4.2s+\' \'+(4.9+1)+\' \'+4.2o+\' \'+4.h.B).E()}}6 2t(){$(\'#5-k\').E();$(\'#5-k-V,#5-k-X\').l({\'K\':\'1C M(\'+4.19+\') L-O\'});7(4.9!=0){7(4.1d){$(\'#5-k-V\').l({\'K\':\'M(\'+4.1v+\') 1c 15% L-O\'}).11().1k(\'C\',6(){4.9=4.9-1;D();u F})}j{$(\'#5-k-V\').11().2m(6(){$(N).l({\'K\':\'M(\'+4.1v+\') 1c 15% L-O\'})},6(){$(N).l({\'K\':\'1C M(\'+4.19+\') L-O\'})}).E().1k(\'C\',6(){4.9=4.9-1;D();u F})}}7(4.9!=(4.h.B-1)){7(4.1d){$(\'#5-k-X\').l({\'K\':\'M(\'+4.1E+\') 2l 15% L-O\'}).11().1k(\'C\',6(){4.9=4.9+1;D();u F})}j{$(\'#5-k-X\').11().2m(6(){$(N).l({\'K\':\'M(\'+4.1E+\') 2l 15% L-O\'})},6(){$(N).l({\'K\':\'1C M(\'+4.19+\') L-O\'})}).E().1k(\'C\',6(){4.9=4.9+1;D();u F})}}2k()}6 2k(){$(d).30(6(12){2i(12)})}6 1G(){$(d).11()}6 2i(12){7(12==2h){U=2Z.2e;1x=27}j{U=12.2e;1x=12.2Y}14=2X.2W(U).2U();7((14==4.2j)||(14==\'x\')||(U==1x)){1a()}7((14==4.2f)||(U==37)){7(4.9!=0){4.9=4.9-1;D();1G()}}7((14==4.2d)||(U==39)){7(4.9!=(4.h.B-1)){4.9=4.9+1;D();1G()}}}6 2r(){7((4.h.B-1)>4.9){2c=v 1j();2c.W=4.h[4.9+1][0]}7(4.9>0){2b=v 1j();2b.W=4.h[4.9-1][0]}}6 1a(){$(\'#q-5\').2a();$(\'#q-13\').2T(6(){$(\'#q-13\').2a()});$(\'1U, 1S, 1R\').l({\'1Q\':\'2S\'})}6 1D(){f o,r;7(G.1h&&G.28){o=G.26+G.2R;r=G.1h+G.28}j 7(d.m.25>d.m.24){o=d.m.2P;r=d.m.25}j{o=d.m.2O;r=d.m.24}f y,H;7(Z.1h){7(d.t.1l){y=d.t.1l}j{y=Z.26}H=Z.1h}j 7(d.t&&d.t.1A){y=d.t.1l;H=d.t.1A}j 7(d.m){y=d.m.1l;H=d.m.1A}7(r<H){1z=H}j{1z=r}7(o<y){1B=o}j{1B=y}21=v 1m(1B,1z,y,H);u 21};6 1p(){f o,r;7(Z.1Z){r=Z.1Z;o=Z.2M}j 7(d.t&&d.t.1F){r=d.t.1F;o=d.t.1Y}j 7(d.m){r=d.m.1F;o=d.m.1Y}2q=v 1m(o,r);u 2q};6 1H(2C){f 2x=v 2w();1q=2h;3h{f 1q=v 2w()}2n(1q-2x<2C)};u N.11(\'C\').C(20)}})(23);',62,204,'||||settings|lightbox|function|if||activeImage||image||document|div|var|id|imageArray||else|nav|css|body||xScroll||jquery|yScroll|container|documentElement|return|new|box||windowWidth|arrPageSizes|details|length|click|_set_image_to_view|show|false|window|windowHeight|jQueryMatchedObj|href|background|no|url|this|repeat|height|objImagePreloader|arrPageScroll|width|data|keycode|btnPrev|src|btnNext|loading|self||unbind|objEvent|overlay|key||gif|getAttribute|images|imageBlank|_finish|hide|left|fixedNavigation|objClicked|containerBorderSize|currentNumber|innerHeight|span|Image|bind|clientWidth|Array|intWidth|intImageWidth|___getPageScroll|curDate|intImageHeight|secNav|caption|btn|imageBtnPrev|img|escapeKey|intHeight|pageHeight|clientHeight|pageWidth|transparent|___getPageSize|imageBtnNext|scrollTop|_disable_keyboard_navigation|___pause|intDiffW|push|intCurrentHeight|intCurrentWidth|imageLoading|_resize_container_image_box|_set_interface|onload|visibility|select|object|top|embed|fadeIn|imageBtnClose|_start|scrollLeft|pageYOffset|_initialize|arrayPageSize|btnClose|jQuery|offsetHeight|scrollHeight|innerWidth||scrollMaxY|link|remove|objPrev|objNext|keyToNext|keyCode|keyToPrev|overlayOpacity|null|_keyboard_action|keyToClose|_enable_keyboard_navigation|right|hover|while|txtOf|html|arrayPageScroll|_preload_neighbor_images|txtImage|_set_navigation|_show_image_data|title|Date|date|_show_image|intDiffH|containerResizeSpeed|overlayBgColor|ms|attr|hidden|blank|resize|extend|close|opacity|backgroundColor|next|pageXOffset|fn|offsetWidth|scrollWidth|prev|scrollMaxX|visible|fadeOut|toLowerCase|style|fromCharCode|String|DOM_VK_ESCAPE|event|keydown|append|of|ico|000|fast|for||slideDown||100|250|msie|400|browser|animate|lightBox|do'.split('|'),0,{}))
|
js/magentopycho/jquery.min.js
ADDED
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jQuery JavaScript Library v1.4.3
|
3 |
+
* http://jquery.com/
|
4 |
+
*
|
5 |
+
* Copyright 2010, John Resig
|
6 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
7 |
+
* http://jquery.org/license
|
8 |
+
*
|
9 |
+
* Includes Sizzle.js
|
10 |
+
* http://sizzlejs.com/
|
11 |
+
* Copyright 2010, The Dojo Foundation
|
12 |
+
* Released under the MIT, BSD, and GPL Licenses.
|
13 |
+
*
|
14 |
+
* Date: Thu Oct 14 23:10:06 2010 -0400
|
15 |
+
*/
|
16 |
+
(function(E,A){function U(){return false}function ba(){return true}function ja(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ga(a){var b,d,e=[],f=[],h,k,l,n,s,v,B,D;k=c.data(this,this.nodeType?"events":"__events__");if(typeof k==="function")k=k.events;if(!(a.liveFired===this||!k||!k.live||a.button&&a.type==="click")){if(a.namespace)D=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var H=k.live.slice(0);for(n=0;n<H.length;n++){k=H[n];k.origType.replace(X,
|
17 |
+
"")===a.type?f.push(k.selector):H.splice(n--,1)}f=c(a.target).closest(f,a.currentTarget);s=0;for(v=f.length;s<v;s++){B=f[s];for(n=0;n<H.length;n++){k=H[n];if(B.selector===k.selector&&(!D||D.test(k.namespace))){l=B.elem;h=null;if(k.preType==="mouseenter"||k.preType==="mouseleave"){a.type=k.preType;h=c(a.relatedTarget).closest(k.selector)[0]}if(!h||h!==l)e.push({elem:l,handleObj:k,level:B.level})}}}s=0;for(v=e.length;s<v;s++){f=e[s];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;
|
18 |
+
a.handleObj=f.handleObj;D=f.handleObj.origHandler.apply(f.elem,arguments);if(D===false||a.isPropagationStopped()){d=f.level;if(D===false)b=false}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(Ha,"`").replace(Ia,"&")}function ka(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Ja.test(b))return c.filter(b,
|
19 |
+
e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function la(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var k in e[h])c.event.add(this,h,e[h][k],e[h][k].data)}}})}function Ka(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}
|
20 |
+
function ma(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?La:Ma,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a,"margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function ca(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Na.test(a)?e(a,h):ca(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?
|
21 |
+
e(a,""):c.each(b,function(f,h){ca(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(na.concat.apply([],na.slice(0,b)),function(){d[this]=a});return d}function oa(a){if(!da[a]){var b=c("<"+a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";da[a]=d}return da[a]}function ea(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var u=E.document,c=function(){function a(){if(!b.isReady){try{u.documentElement.doScroll("left")}catch(i){setTimeout(a,
|
22 |
+
1);return}b.ready()}}var b=function(i,r){return new b.fn.init(i,r)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,k=/\S/,l=/^\s+/,n=/\s+$/,s=/\W/,v=/\d/,B=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,D=/^[\],:{}\s]*$/,H=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,G=/(?:^|:|,)(?:\s*\[)+/g,M=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,j=/(msie) ([\w.]+)/,o=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,
|
23 |
+
q=[],t,x=Object.prototype.toString,C=Object.prototype.hasOwnProperty,P=Array.prototype.push,N=Array.prototype.slice,R=String.prototype.trim,Q=Array.prototype.indexOf,L={};b.fn=b.prototype={init:function(i,r){var y,z,F;if(!i)return this;if(i.nodeType){this.context=this[0]=i;this.length=1;return this}if(i==="body"&&!r&&u.body){this.context=u;this[0]=u.body;this.selector="body";this.length=1;return this}if(typeof i==="string")if((y=h.exec(i))&&(y[1]||!r))if(y[1]){F=r?r.ownerDocument||r:u;if(z=B.exec(i))if(b.isPlainObject(r)){i=
|
24 |
+
[u.createElement(z[1])];b.fn.attr.call(i,r,true)}else i=[F.createElement(z[1])];else{z=b.buildFragment([y[1]],[F]);i=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this,i)}else{if((z=u.getElementById(y[2]))&&z.parentNode){if(z.id!==y[2])return f.find(i);this.length=1;this[0]=z}this.context=u;this.selector=i;return this}else if(!r&&!s.test(i)){this.selector=i;this.context=u;i=u.getElementsByTagName(i);return b.merge(this,i)}else return!r||r.jquery?(r||f).find(i):b(r).find(i);
|
25 |
+
else if(b.isFunction(i))return f.ready(i);if(i.selector!==A){this.selector=i.selector;this.context=i.context}return b.makeArray(i,this)},selector:"",jquery:"1.4.3",length:0,size:function(){return this.length},toArray:function(){return N.call(this,0)},get:function(i){return i==null?this.toArray():i<0?this.slice(i)[0]:this[i]},pushStack:function(i,r,y){var z=b();b.isArray(i)?P.apply(z,i):b.merge(z,i);z.prevObject=this;z.context=this.context;if(r==="find")z.selector=this.selector+(this.selector?" ":
|
26 |
+
"")+y;else if(r)z.selector=this.selector+"."+r+"("+y+")";return z},each:function(i,r){return b.each(this,i,r)},ready:function(i){b.bindReady();if(b.isReady)i.call(u,b);else q&&q.push(i);return this},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(i){return this.pushStack(b.map(this,function(r,y){return i.call(r,
|
27 |
+
y,r)}))},end:function(){return this.prevObject||b(null)},push:P,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var i=arguments[0]||{},r=1,y=arguments.length,z=false,F,I,K,J,fa;if(typeof i==="boolean"){z=i;i=arguments[1]||{};r=2}if(typeof i!=="object"&&!b.isFunction(i))i={};if(y===r){i=this;--r}for(;r<y;r++)if((F=arguments[r])!=null)for(I in F){K=i[I];J=F[I];if(i!==J)if(z&&J&&(b.isPlainObject(J)||(fa=b.isArray(J)))){if(fa){fa=false;clone=K&&b.isArray(K)?K:[]}else clone=
|
28 |
+
K&&b.isPlainObject(K)?K:{};i[I]=b.extend(z,clone,J)}else if(J!==A)i[I]=J}return i};b.extend({noConflict:function(i){E.$=e;if(i)E.jQuery=d;return b},isReady:false,readyWait:1,ready:function(i){i===true&&b.readyWait--;if(!b.readyWait||i!==true&&!b.isReady){if(!u.body)return setTimeout(b.ready,1);b.isReady=true;if(!(i!==true&&--b.readyWait>0)){if(q){for(var r=0;i=q[r++];)i.call(u,b);q=null}b.fn.triggerHandler&&b(u).triggerHandler("ready")}}},bindReady:function(){if(!p){p=true;if(u.readyState==="complete")return setTimeout(b.ready,
|
29 |
+
1);if(u.addEventListener){u.addEventListener("DOMContentLoaded",t,false);E.addEventListener("load",b.ready,false)}else if(u.attachEvent){u.attachEvent("onreadystatechange",t);E.attachEvent("onload",b.ready);var i=false;try{i=E.frameElement==null}catch(r){}u.documentElement.doScroll&&i&&a()}}},isFunction:function(i){return b.type(i)==="function"},isArray:Array.isArray||function(i){return b.type(i)==="array"},isWindow:function(i){return i&&typeof i==="object"&&"setInterval"in i},isNaN:function(i){return i==
|
30 |
+
null||!v.test(i)||isNaN(i)},type:function(i){return i==null?String(i):L[x.call(i)]||"object"},isPlainObject:function(i){if(!i||b.type(i)!=="object"||i.nodeType||b.isWindow(i))return false;if(i.constructor&&!C.call(i,"constructor")&&!C.call(i.constructor.prototype,"isPrototypeOf"))return false;for(var r in i);return r===A||C.call(i,r)},isEmptyObject:function(i){for(var r in i)return false;return true},error:function(i){throw i;},parseJSON:function(i){if(typeof i!=="string"||!i)return null;i=b.trim(i);
|
31 |
+
if(D.test(i.replace(H,"@").replace(w,"]").replace(G,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(i):(new Function("return "+i))();else b.error("Invalid JSON: "+i)},noop:function(){},globalEval:function(i){if(i&&k.test(i)){var r=u.getElementsByTagName("head")[0]||u.documentElement,y=u.createElement("script");y.type="text/javascript";if(b.support.scriptEval)y.appendChild(u.createTextNode(i));else y.text=i;r.insertBefore(y,r.firstChild);r.removeChild(y)}},nodeName:function(i,r){return i.nodeName&&i.nodeName.toUpperCase()===
|
32 |
+
r.toUpperCase()},each:function(i,r,y){var z,F=0,I=i.length,K=I===A||b.isFunction(i);if(y)if(K)for(z in i){if(r.apply(i[z],y)===false)break}else for(;F<I;){if(r.apply(i[F++],y)===false)break}else if(K)for(z in i){if(r.call(i[z],z,i[z])===false)break}else for(y=i[0];F<I&&r.call(y,F,y)!==false;y=i[++F]);return i},trim:R?function(i){return i==null?"":R.call(i)}:function(i){return i==null?"":i.toString().replace(l,"").replace(n,"")},makeArray:function(i,r){var y=r||[];if(i!=null){var z=b.type(i);i.length==
|
33 |
+
null||z==="string"||z==="function"||z==="regexp"||b.isWindow(i)?P.call(y,i):b.merge(y,i)}return y},inArray:function(i,r){if(r.indexOf)return r.indexOf(i);for(var y=0,z=r.length;y<z;y++)if(r[y]===i)return y;return-1},merge:function(i,r){var y=i.length,z=0;if(typeof r.length==="number")for(var F=r.length;z<F;z++)i[y++]=r[z];else for(;r[z]!==A;)i[y++]=r[z++];i.length=y;return i},grep:function(i,r,y){var z=[],F;y=!!y;for(var I=0,K=i.length;I<K;I++){F=!!r(i[I],I);y!==F&&z.push(i[I])}return z},map:function(i,
|
34 |
+
r,y){for(var z=[],F,I=0,K=i.length;I<K;I++){F=r(i[I],I,y);if(F!=null)z[z.length]=F}return z.concat.apply([],z)},guid:1,proxy:function(i,r,y){if(arguments.length===2)if(typeof r==="string"){y=i;i=y[r];r=A}else if(r&&!b.isFunction(r)){y=r;r=A}if(!r&&i)r=function(){return i.apply(y||this,arguments)};if(i)r.guid=i.guid=i.guid||r.guid||b.guid++;return r},access:function(i,r,y,z,F,I){var K=i.length;if(typeof r==="object"){for(var J in r)b.access(i,J,r[J],z,F,y);return i}if(y!==A){z=!I&&z&&b.isFunction(y);
|
35 |
+
for(J=0;J<K;J++)F(i[J],r,z?y.call(i[J],J,F(i[J],r)):y,I);return i}return K?F(i[0],r):A},now:function(){return(new Date).getTime()},uaMatch:function(i){i=i.toLowerCase();i=M.exec(i)||g.exec(i)||j.exec(i)||i.indexOf("compatible")<0&&o.exec(i)||[];return{browser:i[1]||"",version:i[2]||"0"}},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(i,r){L["[object "+r+"]"]=r.toLowerCase()});m=b.uaMatch(m);if(m.browser){b.browser[m.browser]=true;b.browser.version=
|
36 |
+
m.version}if(b.browser.webkit)b.browser.safari=true;if(Q)b.inArray=function(i,r){return Q.call(r,i)};if(!/\s/.test("\u00a0")){l=/^[\s\xA0]+/;n=/[\s\xA0]+$/}f=b(u);if(u.addEventListener)t=function(){u.removeEventListener("DOMContentLoaded",t,false);b.ready()};else if(u.attachEvent)t=function(){if(u.readyState==="complete"){u.detachEvent("onreadystatechange",t);b.ready()}};return E.jQuery=E.$=b}();(function(){c.support={};var a=u.documentElement,b=u.createElement("script"),d=u.createElement("div"),
|
37 |
+
e="script"+c.now();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],k=u.createElement("select"),l=k.appendChild(u.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),
|
38 |
+
hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:l.selected,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};k.disabled=true;c.support.optDisabled=!l.disabled;b.type="text/javascript";try{b.appendChild(u.createTextNode("window."+e+"=1;"))}catch(n){}a.insertBefore(b,
|
39 |
+
a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function s(){c.support.noCloneEvent=false;d.detachEvent("onclick",s)});d.cloneNode(true).fireEvent("onclick")}d=u.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=u.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var s=u.createElement("div");
|
40 |
+
s.style.width=s.style.paddingLeft="1px";u.body.appendChild(s);c.boxModel=c.support.boxModel=s.offsetWidth===2;if("zoom"in s.style){s.style.display="inline";s.style.zoom=1;c.support.inlineBlockNeedsLayout=s.offsetWidth===2;s.style.display="";s.innerHTML="<div style='width:4px;'></div>";c.support.shrinkWrapBlocks=s.offsetWidth!==2}s.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var v=s.getElementsByTagName("td");c.support.reliableHiddenOffsets=v[0].offsetHeight===
|
41 |
+
0;v[0].style.display="";v[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&v[0].offsetHeight===0;s.innerHTML="";u.body.removeChild(s).style.display="none"});a=function(s){var v=u.createElement("div");s="on"+s;var B=s in v;if(!B){v.setAttribute(s,"return;");B=typeof v[s]==="function"}return B};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",
|
42 |
+
cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var pa={},Oa=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?pa:a;var e=a.nodeType,f=e?a[c.expando]:null,h=c.cache;if(!(e&&!f&&typeof b==="string"&&d===A)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=
|
43 |
+
c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==A)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?pa:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando);else if(d)delete f[e];else for(var k in a)delete a[k]}},acceptData:function(a){if(a.nodeName){var b=
|
44 |
+
c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){if(typeof a==="undefined")return this.length?c.data(this[0]):null;else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===A){var e=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(e===A&&this.length){e=c.data(this[0],a);if(e===A&&this[0].nodeType===1){e=this[0].getAttribute("data-"+a);if(typeof e===
|
45 |
+
"string")try{e=e==="true"?true:e==="false"?false:e==="null"?null:!c.isNaN(e)?parseFloat(e):Oa.test(e)?c.parseJSON(e):e}catch(f){}else e=A}}return e===A&&d[1]?this.data(d[0]):e}else return this.each(function(){var h=c(this),k=[d[0],b];h.triggerHandler("setData"+d[1]+"!",k);c.data(this,a,b);h.triggerHandler("changeData"+d[1]+"!",k)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=c.data(a,b);if(!d)return e||
|
46 |
+
[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===A)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,
|
47 |
+
a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var qa=/[\n\t]/g,ga=/\s+/,Pa=/\r/g,Qa=/^(?:href|src|style)$/,Ra=/^(?:button|input)$/i,Sa=/^(?:button|input|object|select|textarea)$/i,Ta=/^a(?:rea)?$/i,ra=/^(?:radio|checkbox)$/i;c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,
|
48 |
+
a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(s){var v=c(this);v.addClass(a.call(this,s,v.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ga),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1)if(f.className){for(var h=" "+f.className+" ",k=f.className,l=0,n=b.length;l<n;l++)if(h.indexOf(" "+b[l]+" ")<0)k+=" "+b[l];f.className=c.trim(k)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(n){var s=
|
49 |
+
c(this);s.removeClass(a.call(this,n,s.attr("class")))});if(a&&typeof a==="string"||a===A)for(var b=(a||"").split(ga),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var h=(" "+f.className+" ").replace(qa," "),k=0,l=b.length;k<l;k++)h=h.replace(" "+b[k]+" "," ");f.className=c.trim(h)}else f.className=""}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var h=c(this);h.toggleClass(a.call(this,
|
50 |
+
f,h.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,h=0,k=c(this),l=b,n=a.split(ga);f=n[h++];){l=e?l:!k.hasClass(f);k[l?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(qa," ").indexOf(a)>-1)return true;return false},
|
51 |
+
val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one";if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h<e;h++){var k=f[h];if(k.selected&&(c.support.optDisabled?!k.disabled:k.getAttribute("disabled")===null)&&(!k.parentNode.disabled||!c.nodeName(k.parentNode,"optgroup"))){a=c(k).val();if(b)return a;d.push(a)}}return d}if(ra.test(b.type)&&
|
52 |
+
!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Pa,"")}return A}var l=c.isFunction(a);return this.each(function(n){var s=c(this),v=a;if(this.nodeType===1){if(l)v=a.call(this,n,s.val());if(v==null)v="";else if(typeof v==="number")v+="";else if(c.isArray(v))v=c.map(v,function(D){return D==null?"":D+""});if(c.isArray(v)&&ra.test(this.type))this.checked=c.inArray(s.val(),v)>=0;else if(c.nodeName(this,"select")){var B=c.makeArray(v);c("option",this).each(function(){this.selected=
|
53 |
+
c.inArray(c(this).val(),B)>=0});if(!B.length)this.selectedIndex=-1}else this.value=v}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return A;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==A;b=e&&c.props[b]||b;if(a.nodeType===1){var h=Qa.test(b);if((b in a||a[b]!==A)&&e&&!h){if(f){b==="type"&&Ra.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");
|
54 |
+
if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Sa.test(a.nodeName)||Ta.test(a.nodeName)&&a.href?0:A;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return A;a=!c.support.hrefNormalized&&e&&
|
55 |
+
h?a.getAttribute(b,2):a.getAttribute(b);return a===null?A:a}}});var X=/\.(.*)$/,ha=/^(?:textarea|input|select)$/i,Ha=/\./g,Ia=/ /g,Ua=/[^\w\s.|`]/g,Va=function(a){return a.replace(Ua,"\\$&")},sa={focusin:0,focusout:0};c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var k=a.nodeType?"events":"__events__",l=h[k],n=h.handle;if(typeof l===
|
56 |
+
"function"){n=l.handle;l=l.events}else if(!l){a.nodeType||(h[k]=h=function(){});h.events=l={}}if(!n)h.handle=n=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(n.elem,arguments):A};n.elem=a;b=b.split(" ");for(var s=0,v;k=b[s++];){h=f?c.extend({},f):{handler:d,data:e};if(k.indexOf(".")>-1){v=k.split(".");k=v.shift();h.namespace=v.slice(0).sort().join(".")}else{v=[];h.namespace=""}h.type=k;if(!h.guid)h.guid=d.guid;var B=l[k],D=c.event.special[k]||{};if(!B){B=l[k]=[];
|
57 |
+
if(!D.setup||D.setup.call(a,e,v,n)===false)if(a.addEventListener)a.addEventListener(k,n,false);else a.attachEvent&&a.attachEvent("on"+k,n)}if(D.add){D.add.call(a,h);if(!h.handler.guid)h.handler.guid=d.guid}B.push(h);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,k=0,l,n,s,v,B,D,H=a.nodeType?"events":"__events__",w=c.data(a),G=w&&w[H];if(w&&G){if(typeof G==="function"){w=G;G=G.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||
|
58 |
+
typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in G)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[k++];){v=f;l=f.indexOf(".")<0;n=[];if(!l){n=f.split(".");f=n.shift();s=RegExp("(^|\\.)"+c.map(n.slice(0).sort(),Va).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(B=G[f])if(d){v=c.event.special[f]||{};for(h=e||0;h<B.length;h++){D=B[h];if(d.guid===D.guid){if(l||s.test(D.namespace)){e==null&&B.splice(h--,1);v.remove&&v.remove.call(a,D)}if(e!=null)break}}if(B.length===0||e!=null&&B.length===1){if(!v.teardown||
|
59 |
+
v.teardown.call(a,n)===false)c.removeEvent(a,f,w.handle);delete G[f]}}else for(h=0;h<B.length;h++){D=B[h];if(l||s.test(D.namespace)){c.event.remove(a,v,D.handler,h);B.splice(h--,1)}}}if(c.isEmptyObject(G)){if(b=w.handle)b.elem=null;delete w.events;delete w.handle;if(typeof w==="function")c.removeData(a,H);else c.isEmptyObject(w)&&c.removeData(a)}}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a=typeof a==="object"?a[c.expando]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=
|
60 |
+
f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return A;a.result=A;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===
|
61 |
+
false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){e=a.target;var k,l=f.replace(X,""),n=c.nodeName(e,"a")&&l==="click",s=c.event.special[l]||{};if((!s._default||s._default.call(d,a)===false)&&!n&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[l]){if(k=e["on"+l])e["on"+l]=null;c.event.triggered=true;e[l]()}}catch(v){}if(k)e["on"+l]=k;c.event.triggered=false}}},handle:function(a){var b,d,e;
|
62 |
+
d=[];var f,h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var k=d.length;f<k;f++){var l=d[f];if(b||e.test(l.namespace)){a.handler=l.handler;a.data=
|
63 |
+
l.data;a.handleObj=l;l=l.handler.apply(this,h);if(l!==A){a.result=l;if(l===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
|
64 |
+
fix:function(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||u;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=u.documentElement;d=u.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
|
65 |
+
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==A)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,Y(a.origType,a.selector),c.extend({},a,{handler:Ga,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
|
66 |
+
Y(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=u.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=
|
67 |
+
c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ba;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=ba;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ba;this.stopPropagation()},isDefaultPrevented:U,isPropagationStopped:U,isImmediatePropagationStopped:U};
|
68 |
+
var ta=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},ua=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?ua:ta,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?ua:ta)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
|
69 |
+
"form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length){a.liveFired=A;return ja("submit",this,arguments)}});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13){a.liveFired=A;return ja("submit",this,arguments)}})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var V,
|
70 |
+
va=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Z=function(a,b){var d=a.target,e,f;if(!(!ha.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=va(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===A||f===e))if(e!=null||f){a.type="change";a.liveFired=
|
71 |
+
A;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Z.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Z.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",va(a))}},setup:function(){if(this.type===
|
72 |
+
"file")return false;for(var a in V)c.event.add(this,a+".specialChange",V[a]);return ha.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ha.test(this.nodeName)}};V=c.event.special.change.filters;V.focus=V.beforeactivate}u.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){sa[b]++===0&&u.addEventListener(a,d,true)},teardown:function(){--sa[b]===
|
73 |
+
0&&u.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=A}var k=b==="one"?c.proxy(f,function(n){c(this).unbind(n,k);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var l=this.length;h<l;h++)c.event.add(this[h],d,k,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,
|
74 |
+
a[d]);else{d=0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,e){return this.live(b,d,e,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=c.Event(a);d.preventDefault();d.stopPropagation();c.event.trigger(d,b,this[0]);return d.result}},toggle:function(a){for(var b=arguments,d=
|
75 |
+
1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var wa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,h){var k,l=0,n,s,v=h||this.selector;h=h?this:c(this.context);if(typeof d===
|
76 |
+
"object"&&!d.preventDefault){for(k in d)h[b](k,e,d[k],v);return this}if(c.isFunction(e)){f=e;e=A}for(d=(d||"").split(" ");(k=d[l++])!=null;){n=X.exec(k);s="";if(n){s=n[0];k=k.replace(X,"")}if(k==="hover")d.push("mouseenter"+s,"mouseleave"+s);else{n=k;if(k==="focus"||k==="blur"){d.push(wa[k]+s);k+=s}else k=(wa[k]||k)+s;if(b==="live"){s=0;for(var B=h.length;s<B;s++)c.event.add(h[s],"live."+Y(k,v),{data:e,selector:v,handler:f,origType:k,origHandler:f,preType:n})}else h.unbind("live."+Y(k,v),f)}}return this}});
|
77 |
+
c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=function(d,e){if(e==null){e=d;d=null}return arguments.length>0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});E.attachEvent&&!E.addEventListener&&c(E).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});
|
78 |
+
(function(){function a(g,j,o,m,p,q){p=0;for(var t=m.length;p<t;p++){var x=m[p];if(x){x=x[g];for(var C=false;x;){if(x.sizcache===o){C=m[x.sizset];break}if(x.nodeType===1&&!q){x.sizcache=o;x.sizset=p}if(x.nodeName.toLowerCase()===j){C=x;break}x=x[g]}m[p]=C}}}function b(g,j,o,m,p,q){p=0;for(var t=m.length;p<t;p++){var x=m[p];if(x){x=x[g];for(var C=false;x;){if(x.sizcache===o){C=m[x.sizset];break}if(x.nodeType===1){if(!q){x.sizcache=o;x.sizset=p}if(typeof j!=="string"){if(x===j){C=true;break}}else if(l.filter(j,
|
79 |
+
[x]).length>0){C=x;break}}x=x[g]}m[p]=C}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,k=true;[0,0].sort(function(){k=false;return 0});var l=function(g,j,o,m){o=o||[];var p=j=j||u;if(j.nodeType!==1&&j.nodeType!==9)return[];if(!g||typeof g!=="string")return o;var q=[],t,x,C,P,N=true,R=l.isXML(j),Q=g,L;do{d.exec("");if(t=d.exec(Q)){Q=t[3];q.push(t[1]);if(t[2]){P=t[3];
|
80 |
+
break}}}while(t);if(q.length>1&&s.exec(g))if(q.length===2&&n.relative[q[0]])x=M(q[0]+q[1],j);else for(x=n.relative[q[0]]?[j]:l(q.shift(),j);q.length;){g=q.shift();if(n.relative[g])g+=q.shift();x=M(g,x)}else{if(!m&&q.length>1&&j.nodeType===9&&!R&&n.match.ID.test(q[0])&&!n.match.ID.test(q[q.length-1])){t=l.find(q.shift(),j,R);j=t.expr?l.filter(t.expr,t.set)[0]:t.set[0]}if(j){t=m?{expr:q.pop(),set:D(m)}:l.find(q.pop(),q.length===1&&(q[0]==="~"||q[0]==="+")&&j.parentNode?j.parentNode:j,R);x=t.expr?l.filter(t.expr,
|
81 |
+
t.set):t.set;if(q.length>0)C=D(x);else N=false;for(;q.length;){t=L=q.pop();if(n.relative[L])t=q.pop();else L="";if(t==null)t=j;n.relative[L](C,t,R)}}else C=[]}C||(C=x);C||l.error(L||g);if(f.call(C)==="[object Array]")if(N)if(j&&j.nodeType===1)for(g=0;C[g]!=null;g++){if(C[g]&&(C[g]===true||C[g].nodeType===1&&l.contains(j,C[g])))o.push(x[g])}else for(g=0;C[g]!=null;g++)C[g]&&C[g].nodeType===1&&o.push(x[g]);else o.push.apply(o,C);else D(C,o);if(P){l(P,p,o,m);l.uniqueSort(o)}return o};l.uniqueSort=function(g){if(w){h=
|
82 |
+
k;g.sort(w);if(h)for(var j=1;j<g.length;j++)g[j]===g[j-1]&&g.splice(j--,1)}return g};l.matches=function(g,j){return l(g,null,null,j)};l.matchesSelector=function(g,j){return l(j,null,null,[g]).length>0};l.find=function(g,j,o){var m;if(!g)return[];for(var p=0,q=n.order.length;p<q;p++){var t=n.order[p],x;if(x=n.leftMatch[t].exec(g)){var C=x[1];x.splice(1,1);if(C.substr(C.length-1)!=="\\"){x[1]=(x[1]||"").replace(/\\/g,"");m=n.find[t](x,j,o);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=j.getElementsByTagName("*"));
|
83 |
+
return{set:m,expr:g}};l.filter=function(g,j,o,m){for(var p=g,q=[],t=j,x,C,P=j&&j[0]&&l.isXML(j[0]);g&&j.length;){for(var N in n.filter)if((x=n.leftMatch[N].exec(g))!=null&&x[2]){var R=n.filter[N],Q,L;L=x[1];C=false;x.splice(1,1);if(L.substr(L.length-1)!=="\\"){if(t===q)q=[];if(n.preFilter[N])if(x=n.preFilter[N](x,t,o,q,m,P)){if(x===true)continue}else C=Q=true;if(x)for(var i=0;(L=t[i])!=null;i++)if(L){Q=R(L,x,i,t);var r=m^!!Q;if(o&&Q!=null)if(r)C=true;else t[i]=false;else if(r){q.push(L);C=true}}if(Q!==
|
84 |
+
A){o||(t=q);g=g.replace(n.match[N],"");if(!C)return[];break}}}if(g===p)if(C==null)l.error(g);else break;p=g}return t};l.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=l.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,
|
85 |
+
POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},relative:{"+":function(g,j){var o=typeof j==="string",m=o&&!/\W/.test(j);o=o&&!m;if(m)j=j.toLowerCase();m=0;for(var p=g.length,q;m<p;m++)if(q=g[m]){for(;(q=q.previousSibling)&&q.nodeType!==1;);g[m]=o||q&&q.nodeName.toLowerCase()===
|
86 |
+
j?q||false:q===j}o&&l.filter(j,g,true)},">":function(g,j){var o=typeof j==="string",m,p=0,q=g.length;if(o&&!/\W/.test(j))for(j=j.toLowerCase();p<q;p++){if(m=g[p]){o=m.parentNode;g[p]=o.nodeName.toLowerCase()===j?o:false}}else{for(;p<q;p++)if(m=g[p])g[p]=o?m.parentNode:m.parentNode===j;o&&l.filter(j,g,true)}},"":function(g,j,o){var m=e++,p=b,q;if(typeof j==="string"&&!/\W/.test(j)){q=j=j.toLowerCase();p=a}p("parentNode",j,m,g,q,o)},"~":function(g,j,o){var m=e++,p=b,q;if(typeof j==="string"&&!/\W/.test(j)){q=
|
87 |
+
j=j.toLowerCase();p=a}p("previousSibling",j,m,g,q,o)}},find:{ID:function(g,j,o){if(typeof j.getElementById!=="undefined"&&!o)return(g=j.getElementById(g[1]))&&g.parentNode?[g]:[]},NAME:function(g,j){if(typeof j.getElementsByName!=="undefined"){for(var o=[],m=j.getElementsByName(g[1]),p=0,q=m.length;p<q;p++)m[p].getAttribute("name")===g[1]&&o.push(m[p]);return o.length===0?null:o}},TAG:function(g,j){return j.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,j,o,m,p,q){g=" "+g[1].replace(/\\/g,
|
88 |
+
"")+" ";if(q)return g;q=0;for(var t;(t=j[q])!=null;q++)if(t)if(p^(t.className&&(" "+t.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))o||m.push(t);else if(o)j[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var j=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=j[1]+(j[2]||1)-0;g[3]=j[3]-0}g[0]=e++;return g},ATTR:function(g,j,o,
|
89 |
+
m,p,q){j=g[1].replace(/\\/g,"");if(!q&&n.attrMap[j])g[1]=n.attrMap[j];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,j,o,m,p){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=l(g[3],null,null,j);else{g=l.filter(g[3],j,o,true^p);o||m.push.apply(m,g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===
|
90 |
+
true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,j,o){return!!l(o[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===
|
91 |
+
g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,j){return j===0},last:function(g,j,o,m){return j===m.length-1},even:function(g,j){return j%2===0},odd:function(g,j){return j%2===1},lt:function(g,j,o){return j<o[3]-0},gt:function(g,j,o){return j>o[3]-0},nth:function(g,j,o){return o[3]-
|
92 |
+
0===j},eq:function(g,j,o){return o[3]-0===j}},filter:{PSEUDO:function(g,j,o,m){var p=j[1],q=n.filters[p];if(q)return q(g,o,j,m);else if(p==="contains")return(g.textContent||g.innerText||l.getText([g])||"").indexOf(j[3])>=0;else if(p==="not"){j=j[3];o=0;for(m=j.length;o<m;o++)if(j[o]===g)return false;return true}else l.error("Syntax error, unrecognized expression: "+p)},CHILD:function(g,j){var o=j[1],m=g;switch(o){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(o===
|
93 |
+
"first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":o=j[2];var p=j[3];if(o===1&&p===0)return true;var q=j[0],t=g.parentNode;if(t&&(t.sizcache!==q||!g.nodeIndex)){var x=0;for(m=t.firstChild;m;m=m.nextSibling)if(m.nodeType===1)m.nodeIndex=++x;t.sizcache=q}m=g.nodeIndex-p;return o===0?m===0:m%o===0&&m/o>=0}},ID:function(g,j){return g.nodeType===1&&g.getAttribute("id")===j},TAG:function(g,j){return j==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===
|
94 |
+
j},CLASS:function(g,j){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(j)>-1},ATTR:function(g,j){var o=j[1];o=n.attrHandle[o]?n.attrHandle[o](g):g[o]!=null?g[o]:g.getAttribute(o);var m=o+"",p=j[2],q=j[4];return o==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&o!==false:p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":false},POS:function(g,j,o,m){var p=n.setFilters[j[2]];
|
95 |
+
if(p)return p(g,o,j,m)}}},s=n.match.POS,v=function(g,j){return"\\"+(j-0+1)},B;for(B in n.match){n.match[B]=RegExp(n.match[B].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[B]=RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[B].source.replace(/\\(\d+)/g,v))}var D=function(g,j){g=Array.prototype.slice.call(g,0);if(j){j.push.apply(j,g);return j}return g};try{Array.prototype.slice.call(u.documentElement.childNodes,0)}catch(H){D=function(g,j){var o=j||[],m=0;if(f.call(g)==="[object Array]")Array.prototype.push.apply(o,
|
96 |
+
g);else if(typeof g.length==="number")for(var p=g.length;m<p;m++)o.push(g[m]);else for(;g[m];m++)o.push(g[m]);return o}}var w,G;if(u.documentElement.compareDocumentPosition)w=function(g,j){if(g===j){h=true;return 0}if(!g.compareDocumentPosition||!j.compareDocumentPosition)return g.compareDocumentPosition?-1:1;return g.compareDocumentPosition(j)&4?-1:1};else{w=function(g,j){var o=[],m=[],p=g.parentNode,q=j.parentNode,t=p;if(g===j){h=true;return 0}else if(p===q)return G(g,j);else if(p){if(!q)return 1}else return-1;
|
97 |
+
for(;t;){o.unshift(t);t=t.parentNode}for(t=q;t;){m.unshift(t);t=t.parentNode}p=o.length;q=m.length;for(t=0;t<p&&t<q;t++)if(o[t]!==m[t])return G(o[t],m[t]);return t===p?G(g,m[t],-1):G(o[t],j,1)};G=function(g,j,o){if(g===j)return o;for(g=g.nextSibling;g;){if(g===j)return-1;g=g.nextSibling}return 1}}l.getText=function(g){for(var j="",o,m=0;g[m];m++){o=g[m];if(o.nodeType===3||o.nodeType===4)j+=o.nodeValue;else if(o.nodeType!==8)j+=l.getText(o.childNodes)}return j};(function(){var g=u.createElement("div"),
|
98 |
+
j="script"+(new Date).getTime();g.innerHTML="<a name='"+j+"'/>";var o=u.documentElement;o.insertBefore(g,o.firstChild);if(u.getElementById(j)){n.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:A:[]};n.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}o.removeChild(g);
|
99 |
+
o=g=null})();(function(){var g=u.createElement("div");g.appendChild(u.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(j,o){var m=o.getElementsByTagName(j[1]);if(j[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(j){return j.getAttribute("href",2)};g=null})();u.querySelectorAll&&
|
100 |
+
function(){var g=l,j=u.createElement("div");j.innerHTML="<p class='TEST'></p>";if(!(j.querySelectorAll&&j.querySelectorAll(".TEST").length===0)){l=function(m,p,q,t){p=p||u;if(!t&&!l.isXML(p))if(p.nodeType===9)try{return D(p.querySelectorAll(m),q)}catch(x){}else if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var C=p.id,P=p.id="__sizzle__";try{return D(p.querySelectorAll("#"+P+" "+m),q)}catch(N){}finally{if(C)p.id=C;else p.removeAttribute("id")}}return g(m,p,q,t)};for(var o in g)l[o]=g[o];
|
101 |
+
j=null}}();(function(){var g=u.documentElement,j=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,o=false;try{j.call(u.documentElement,":sizzle")}catch(m){o=true}if(j)l.matchesSelector=function(p,q){try{if(o||!n.match.PSEUDO.test(q))return j.call(p,q)}catch(t){}return l(q,null,null,[p]).length>0}})();(function(){var g=u.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===
|
102 |
+
0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(j,o,m){if(typeof o.getElementsByClassName!=="undefined"&&!m)return o.getElementsByClassName(j[1])};g=null}}})();l.contains=u.documentElement.contains?function(g,j){return g!==j&&(g.contains?g.contains(j):true)}:function(g,j){return!!(g.compareDocumentPosition(j)&16)};l.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var M=function(g,
|
103 |
+
j){for(var o=[],m="",p,q=j.nodeType?[j]:j;p=n.match.PSEUDO.exec(g);){m+=p[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;p=0;for(var t=q.length;p<t;p++)l(g,q[p],o);return l.filter(m,o)};c.find=l;c.expr=l.selectors;c.expr[":"]=c.expr.filters;c.unique=l.uniqueSort;c.text=l.getText;c.isXMLDoc=l.isXML;c.contains=l.contains})();var Wa=/Until$/,Xa=/^(?:parents|prevUntil|prevAll)/,Ya=/,/,Ja=/^.[^:#\[\.,]*$/,Za=Array.prototype.slice,$a=c.expr.match.POS;c.fn.extend({find:function(a){for(var b=this.pushStack("",
|
104 |
+
"find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var h=d;h<b.length;h++)for(var k=0;k<d;k++)if(b[k]===b[h]){b.splice(h--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(ka(this,a,false),"not",a)},filter:function(a){return this.pushStack(ka(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,
|
105 |
+
b){var d=[],e,f,h=this[0];if(c.isArray(a)){var k={},l,n=1;if(h&&a.length){e=0;for(f=a.length;e<f;e++){l=a[e];k[l]||(k[l]=c.expr.match.POS.test(l)?c(l,b||this.context):l)}for(;h&&h.ownerDocument&&h!==b;){for(l in k){e=k[l];if(e.jquery?e.index(h)>-1:c(h).is(e))d.push({selector:l,elem:h,level:n})}h=h.parentNode;n++}}return d}k=$a.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e<f;e++)for(h=this[e];h;)if(k?k.index(h)>-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||
|
106 |
+
!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context):c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});
|
107 |
+
c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",
|
108 |
+
d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Wa.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||Ya.test(e))&&Xa.test(a))f=f.reverse();return this.pushStack(f,a,Za.call(arguments).join(","))}});
|
109 |
+
c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===A||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var xa=/ jQuery\d+="(?:\d+|null)"/g,
|
110 |
+
$=/^\s+/,ya=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,za=/<([\w:]+)/,ab=/<tbody/i,bb=/<|&#?\w+;/,Aa=/<(?:script|object|embed|option|style)/i,Ba=/checked\s*(?:[^=]|=\s*.checked.)/i,cb=/\=([^="'>\s]+\/)>/g,O={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],
|
111 |
+
area:[1,"<map>","</map>"],_default:[0,"",""]};O.optgroup=O.option;O.tbody=O.tfoot=O.colgroup=O.caption=O.thead;O.th=O.td;if(!c.support.htmlSerialize)O._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==A)return this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,
|
112 |
+
d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},
|
113 |
+
unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=
|
114 |
+
c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));
|
115 |
+
c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(xa,"").replace(cb,'="$1">').replace($,
|
116 |
+
"")],e)[0]}else return this.cloneNode(true)});if(a===true){la(this,b);la(this.find("*"),b.find("*"))}return b},html:function(a){if(a===A)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(xa,""):null;else if(typeof a==="string"&&!Aa.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!O[(za.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ya,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?
|
117 |
+
this.each(function(f){var h=c(this);h.html(a.call(this,f,h.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),e=d.html();d.replaceWith(a.call(this,b,e))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,
|
118 |
+
true)},domManip:function(a,b,d){var e,f,h=a[0],k=[],l;if(!c.support.checkClone&&arguments.length===3&&typeof h==="string"&&Ba.test(h))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(h))return this.each(function(s){var v=c(this);a[0]=h.call(this,s,b?v.html():A);v.domManip(a,b,d)});if(this[0]){e=h&&h.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,k);l=e.fragment;if(f=l.childNodes.length===1?l=l.firstChild:
|
119 |
+
l.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var n=this.length;f<n;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):this[f]:this[f],f>0||e.cacheable||this.length>1?l.cloneNode(true):l)}k.length&&c.each(k,Ka)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:u;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===u&&!Aa.test(a[0])&&(c.support.checkClone||
|
120 |
+
!Ba.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=
|
121 |
+
d.length;f<h;f++){var k=(f>0?this.clone(true):this).get();c(d[f])[b](k);e=e.concat(k)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||u;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||u;for(var f=[],h=0,k;(k=a[h])!=null;h++){if(typeof k==="number")k+="";if(k){if(typeof k==="string"&&!bb.test(k))k=b.createTextNode(k);else if(typeof k==="string"){k=k.replace(ya,"<$1></$2>");var l=(za.exec(k)||["",""])[1].toLowerCase(),n=O[l]||O._default,
|
122 |
+
s=n[0],v=b.createElement("div");for(v.innerHTML=n[1]+k+n[2];s--;)v=v.lastChild;if(!c.support.tbody){s=ab.test(k);l=l==="table"&&!s?v.firstChild&&v.firstChild.childNodes:n[1]==="<table>"&&!s?v.childNodes:[];for(n=l.length-1;n>=0;--n)c.nodeName(l[n],"tbody")&&!l[n].childNodes.length&&l[n].parentNode.removeChild(l[n])}!c.support.leadingWhitespace&&$.test(k)&&v.insertBefore(b.createTextNode($.exec(k)[0]),v.firstChild);k=v.childNodes}if(k.nodeType)f.push(k);else f=c.merge(f,k)}}if(d)for(h=0;f[h];h++)if(e&&
|
123 |
+
c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script"))));d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,k=0,l;(l=a[k])!=null;k++)if(!(l.nodeName&&c.noData[l.nodeName.toLowerCase()]))if(d=l[c.expando]){if((b=e[d])&&b.events)for(var n in b.events)f[n]?
|
124 |
+
c.event.remove(l,n):c.removeEvent(l,n,b.handle);if(h)delete l[c.expando];else l.removeAttribute&&l.removeAttribute(c.expando);delete e[d]}}});var Ca=/alpha\([^)]*\)/i,db=/opacity=([^)]*)/,eb=/-([a-z])/ig,fb=/([A-Z])/g,Da=/^-?\d+(?:px)?$/i,gb=/^-?\d/,hb={position:"absolute",visibility:"hidden",display:"block"},La=["Left","Right"],Ma=["Top","Bottom"],W,ib=u.defaultView&&u.defaultView.getComputedStyle,jb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===A)return this;
|
125 |
+
return c.access(this,a,b,true,function(d,e,f){return f!==A?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=W(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),k=a.style,l=c.cssHooks[h];b=c.cssProps[h]||
|
126 |
+
h;if(d!==A){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!l||!("set"in l)||(d=l.set(a,d))!==A)try{k[b]=d}catch(n){}}}else{if(l&&"get"in l&&(f=l.get(a,false,e))!==A)return f;return k[b]}}},css:function(a,b,d){var e,f=c.camelCase(b),h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==A)return e;else if(W)return W(a,b,f)},swap:function(a,b,d){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=
|
127 |
+
e[f]},camelCase:function(a){return a.replace(eb,jb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=ma(d,b,f);else c.swap(d,hb,function(){h=ma(d,b,f)});return h+"px"}},set:function(d,e){if(Da.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return db.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":
|
128 |
+
b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f=d.filter||"";d.filter=Ca.test(f)?f.replace(Ca,e):d.filter+" "+e}};if(ib)W=function(a,b,d){var e;d=d.replace(fb,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return A;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};else if(u.documentElement.currentStyle)W=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],
|
129 |
+
h=a.style;if(!Da.test(f)&&gb.test(f)){d=h.left;e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e}return f};if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var kb=c.now(),lb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
|
130 |
+
mb=/^(?:select|textarea)/i,nb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ob=/^(?:GET|HEAD|DELETE)$/,Na=/\[\]$/,T=/\=\?(&|$)/,ia=/\?/,pb=/([?&])_=[^&]*/,qb=/^(\w+:)?\/\/([^\/?#]+)/,rb=/%20/g,sb=/#.*$/,Ea=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ea)return Ea.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=
|
131 |
+
b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(k,l){if(l==="success"||l==="notmodified")h.html(f?c("<div>").append(k.responseText.replace(lb,"")).find(f):k.responseText);d&&h.each(d,[k.responseText,l,k])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&
|
132 |
+
!this.disabled&&(this.checked||mb.test(this.nodeName)||nb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})},
|
133 |
+
getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new E.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",
|
134 |
+
script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),k=ob.test(h);b.url=b.url.replace(sb,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(h==="GET")T.test(b.url)||(b.url+=(ia.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||
|
135 |
+
!T.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&(b.data&&T.test(b.data)||T.test(b.url))){d=b.jsonpCallback||"jsonp"+kb++;if(b.data)b.data=(b.data+"").replace(T,"="+d+"$1");b.url=b.url.replace(T,"="+d+"$1");b.dataType="script";var l=E[d];E[d]=function(m){f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);if(c.isFunction(l))l(m);else{E[d]=A;try{delete E[d]}catch(p){}}v&&v.removeChild(B)}}if(b.dataType==="script"&&b.cache===null)b.cache=
|
136 |
+
false;if(b.cache===false&&h==="GET"){var n=c.now(),s=b.url.replace(pb,"$1_="+n);b.url=s+(s===b.url?(ia.test(b.url)?"&":"?")+"_="+n:"")}if(b.data&&h==="GET")b.url+=(ia.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");n=(n=qb.exec(b.url))&&(n[1]&&n[1]!==location.protocol||n[2]!==location.host);if(b.dataType==="script"&&h==="GET"&&n){var v=u.getElementsByTagName("head")[0]||u.documentElement,B=u.createElement("script");if(b.scriptCharset)B.charset=b.scriptCharset;B.src=
|
137 |
+
b.url;if(!d){var D=false;B.onload=B.onreadystatechange=function(){if(!D&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){D=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);B.onload=B.onreadystatechange=null;v&&B.parentNode&&v.removeChild(B)}}}v.insertBefore(B,v.firstChild);return A}var H=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!k||a&&a.contentType)w.setRequestHeader("Content-Type",
|
138 |
+
b.contentType);if(b.ifModified){c.lastModified[b.url]&&w.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);c.etag[b.url]&&w.setRequestHeader("If-None-Match",c.etag[b.url])}n||w.setRequestHeader("X-Requested-With","XMLHttpRequest");w.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(G){}if(b.beforeSend&&b.beforeSend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");w.abort();return false}b.global&&
|
139 |
+
c.triggerGlobal(b,"ajaxSend",[w,b]);var M=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){H||c.handleComplete(b,w,e,f);H=true;if(w)w.onreadystatechange=c.noop}else if(!H&&w&&(w.readyState===4||m==="timeout")){H=true;w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpSuccess(w)?"error":b.ifModified&&c.httpNotModified(w,b.url)?"notmodified":"success";var p;if(e==="success")try{f=c.httpData(w,b.dataType,b)}catch(q){e="parsererror";p=q}if(e==="success"||e==="notmodified")d||
|
140 |
+
c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&g.call&&g.call(w);M("abort")}}catch(j){}b.async&&b.timeout>0&&setTimeout(function(){w&&!H&&M("timeout")},b.timeout);try{w.send(k||b.data==null?null:b.data)}catch(o){c.handleError(b,w,null,o);c.handleComplete(b,w,e,f)}b.async||M();return w}},param:function(a,b){var d=[],e=function(h,k){k=c.isFunction(k)?k():k;d[d.length]=encodeURIComponent(h)+
|
141 |
+
"="+encodeURIComponent(k)};if(b===A)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)ca(f,a[f],b,e);return d.join("&").replace(rb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess",[b,a])},handleComplete:function(a,
|
142 |
+
b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),e=a.getResponseHeader("Etag");
|
143 |
+
if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a}});if(E.ActiveXObject)c.ajaxSettings.xhr=
|
144 |
+
function(){if(E.location.protocol!=="file:")try{return new E.XMLHttpRequest}catch(a){}try{return new E.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};c.support.ajax=!!c.ajaxSettings.xhr();var da={},tb=/^(?:toggle|show|hide)$/,ub=/^([+\-]=)?([\d+.\-]+)(.*)$/,aa,na=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(S("show",3),a,b,d);else{a=
|
145 |
+
0;for(b=this.length;a<b;a++){if(!c.data(this[a],"olddisplay")&&this[a].style.display==="none")this[a].style.display="";this[a].style.display===""&&c.css(this[a],"display")==="none"&&c.data(this[a],"olddisplay",oa(this[a].nodeName))}for(a=0;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b,d){if(a||a===0)return this.animate(S("hide",3),a,b,d);else{a=0;for(b=this.length;a<b;a++){d=c.css(this[a],"display");d!=="none"&&c.data(this[a],"olddisplay",d)}for(a=
|
146 |
+
0;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||e?this.each(function(){var f=e?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(S("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,d,e){var f=c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(f.complete);
|
147 |
+
return this[f.queue===false?"each":"queue"](function(){var h=c.extend({},f),k,l=this.nodeType===1,n=l&&c(this).is(":hidden"),s=this;for(k in a){var v=c.camelCase(k);if(k!==v){a[v]=a[k];delete a[k];k=v}if(a[k]==="hide"&&n||a[k]==="show"&&!n)return h.complete.call(this);if(l&&(k==="height"||k==="width")){h.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")==="none")if(c.support.inlineBlockNeedsLayout)if(oa(this.nodeName)===
|
148 |
+
"inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(c.isArray(a[k])){(h.specialEasing=h.specialEasing||{})[k]=a[k][1];a[k]=a[k][0]}}if(h.overflow!=null)this.style.overflow="hidden";h.curAnim=c.extend({},a);c.each(a,function(B,D){var H=new c.fx(s,h,B);if(tb.test(D))H[D==="toggle"?n?"show":"hide":D](a);else{var w=ub.exec(D),G=H.cur(true)||0;if(w){var M=parseFloat(w[2]),g=w[3]||"px";if(g!=="px"){c.style(s,B,(M||1)+g);
|
149 |
+
G=(M||1)/H.cur(true)*G;c.style(s,B,G+g)}if(w[1])M=(w[1]==="-="?-1:1)*M+G;H.custom(G,M,g)}else H.custom(G,D,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var e=d.length-1;e>=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b,
|
150 |
+
d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*
|
151 |
+
Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function e(h){return f.step(h)}
|
152 |
+
this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var f=this;a=c.fx;e.elem=this.elem;if(e()&&c.timers.push(e)&&!aa)aa=setInterval(a.tick,a.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;
|
153 |
+
this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(l,n){f.style["overflow"+n]=h.overflow[l]})}this.options.hide&&c(this.elem).hide();if(this.options.hide||
|
154 |
+
this.options.show)for(var k in this.options.curAnim)c.style(this.elem,k,this.options.orig[k]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=
|
155 |
+
c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(aa);aa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===
|
156 |
+
b.elem}).length};var vb=/^t(?:able|d|h)$/i,Fa=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in u.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(k){c.offset.setOffset(this,a,k)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,h=f.documentElement;if(!d||!c.contains(h,b))return d||{top:0,left:0};b=f.body;f=ea(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&
|
157 |
+
h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(s){c.offset.setOffset(this,a,s)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,e=b.ownerDocument,f,h=e.documentElement,k=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;
|
158 |
+
for(var l=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==k&&b!==h;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;f=e?e.getComputedStyle(b,null):b.currentStyle;l-=b.scrollTop;n-=b.scrollLeft;if(b===d){l+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&vb.test(b.nodeName))){l+=parseFloat(f.borderTopWidth)||0;n+=parseFloat(f.borderLeftWidth)||0}d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&f.overflow!=="visible"){l+=
|
159 |
+
parseFloat(f.borderTopWidth)||0;n+=parseFloat(f.borderLeftWidth)||0}f=f}if(f.position==="relative"||f.position==="static"){l+=k.offsetTop;n+=k.offsetLeft}if(c.offset.supportsFixedPosition&&f.position==="fixed"){l+=Math.max(h.scrollTop,k.scrollTop);n+=Math.max(h.scrollLeft,k.scrollLeft)}return{top:l,left:n}};c.offset={initialize:function(){var a=u.body,b=u.createElement("div"),d,e,f,h=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",
|
160 |
+
height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=
|
161 |
+
f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.css(a,
|
162 |
+
"marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),h=f.offset(),k=c.css(a,"top"),l=c.css(a,"left"),n=e==="absolute"&&c.inArray("auto",[k,l])>-1;e={};var s={};if(n)s=f.position();k=n?s.top:parseInt(k,10)||0;l=n?s.left:parseInt(l,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+k;if(b.left!=null)e.left=b.left-h.left+l;"using"in b?b.using.call(a,
|
163 |
+
e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Fa.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||u.body;a&&!Fa.test(a.nodeName)&&
|
164 |
+
c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==A)return this.each(function(){if(h=ea(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=ea(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();
|
165 |
+
c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(h){var k=c(this);k[d](e.call(this,h,k[d]()))});return c.isWindow(f)?f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b]:f.nodeType===9?Math.max(f.documentElement["client"+
|
166 |
+
b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]):e===A?parseFloat(c.css(f,d)):this.css(d,typeof e==="string"?e:e+"px")}})})(window);
|
js/magentopycho/no-conflict.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
jQuery.noConflict();
|
js/magentopycho/pirobox/css_pirobox/css.css
ADDED
@@ -0,0 +1,457 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
body{
|
2 |
+
background:white;
|
3 |
+
margin:0;
|
4 |
+
padding:0;
|
5 |
+
font-family:Trebuchet MS,Arial;
|
6 |
+
font-size:80%;
|
7 |
+
|
8 |
+
|
9 |
+
}
|
10 |
+
img{
|
11 |
+
margin:0;
|
12 |
+
padding:0;
|
13 |
+
border:none;
|
14 |
+
}
|
15 |
+
|
16 |
+
h1{
|
17 |
+
padding:0;
|
18 |
+
margin:0;
|
19 |
+
text-indent:-999em;
|
20 |
+
}
|
21 |
+
.logo {
|
22 |
+
position:absolute;
|
23 |
+
left:0;
|
24 |
+
top:68px;
|
25 |
+
background: url(logo.jpg) center no-repeat;
|
26 |
+
height:133px;
|
27 |
+
width:100%;
|
28 |
+
display:block;
|
29 |
+
}
|
30 |
+
.logo a{
|
31 |
+
position:absolute;
|
32 |
+
left:50%;
|
33 |
+
top:0;
|
34 |
+
height:133px;
|
35 |
+
width:300px;
|
36 |
+
margin:0 0 0 -151px;
|
37 |
+
background:none;
|
38 |
+
display:block;
|
39 |
+
}
|
40 |
+
|
41 |
+
/*h2,h3,h4{text-shadow: 0px 0 4px #222; }*/
|
42 |
+
|
43 |
+
h2{
|
44 |
+
float:left;
|
45 |
+
margin:5px 0 5px 20px!important;
|
46 |
+
margin:5px 0 5px 15px;
|
47 |
+
padding:0 10px 5px 7px;
|
48 |
+
width:840px;
|
49 |
+
font-weight:normal;
|
50 |
+
font-size:18px;
|
51 |
+
color:#666;
|
52 |
+
background: url(shad_bg.jpg) left bottom no-repeat;
|
53 |
+
}
|
54 |
+
h3{
|
55 |
+
float:left;
|
56 |
+
width:840px;
|
57 |
+
font-weight:normal;
|
58 |
+
font-size:16px;
|
59 |
+
color:#666;
|
60 |
+
margin:5px 0 5px 20px!important;
|
61 |
+
margin:5px 0 5px 15px;
|
62 |
+
padding:0 10px 5px 7px;
|
63 |
+
background: url(shad_bg.jpg) left bottom no-repeat;
|
64 |
+
}
|
65 |
+
h4{
|
66 |
+
margin:0;
|
67 |
+
padding:0;
|
68 |
+
|
69 |
+
}
|
70 |
+
a{ color:#cc0505; font-weight:700; text-decoration:none; outline:none;}
|
71 |
+
a:hover{color:#777;text-decoration:none;outline:none;}
|
72 |
+
.main{
|
73 |
+
background:#fff url(bg.jpg) center repeat-y;
|
74 |
+
position:absolute;
|
75 |
+
width:100%;
|
76 |
+
}
|
77 |
+
.main_content{
|
78 |
+
margin:0 auto;
|
79 |
+
padding:198px 0 0 0!important;
|
80 |
+
padding:198px 0 0 0;
|
81 |
+
width:900px;
|
82 |
+
display:block;
|
83 |
+
}
|
84 |
+
.main_content_demo{
|
85 |
+
margin:0 auto;
|
86 |
+
padding:0;
|
87 |
+
width:900px;
|
88 |
+
display:block;
|
89 |
+
}
|
90 |
+
.header{
|
91 |
+
position:absolute;
|
92 |
+
left:50%;
|
93 |
+
top:0;
|
94 |
+
margin:0 0 0 -455px;
|
95 |
+
width:910px;
|
96 |
+
height:68px;
|
97 |
+
background:url(header.jpg) center top no-repeat;
|
98 |
+
display:block;
|
99 |
+
}
|
100 |
+
.switch_ul{
|
101 |
+
float:left;
|
102 |
+
width:524px;
|
103 |
+
height:68px;
|
104 |
+
display:block;
|
105 |
+
margin:0 0 0 191px!important;
|
106 |
+
margin:0 0 0 96px;
|
107 |
+
display:block;
|
108 |
+
background:url(header_ul.jpg) center top no-repeat;
|
109 |
+
}
|
110 |
+
.switch_ul li {
|
111 |
+
float:left;
|
112 |
+
}
|
113 |
+
.switch_ul li a{
|
114 |
+
float:left;
|
115 |
+
line-height:64px;
|
116 |
+
width:131px;
|
117 |
+
height:68px;
|
118 |
+
display:block;
|
119 |
+
font-size:14px;
|
120 |
+
text-align:center;
|
121 |
+
color:#666;
|
122 |
+
text-transform:uppercase;
|
123 |
+
font-weight:normal;
|
124 |
+
letter-spacing:1px;
|
125 |
+
}
|
126 |
+
.switch_ul li a:hover{
|
127 |
+
color:#999;
|
128 |
+
|
129 |
+
}
|
130 |
+
.switch_ul li.home a:hover{
|
131 |
+
background:url(header_h.jpg) 1px 0 no-repeat;
|
132 |
+
}
|
133 |
+
.switch_ul li.download a:hover{
|
134 |
+
background:url(header_h.jpg) -130px 0 no-repeat;
|
135 |
+
}
|
136 |
+
.switch_ul li.contact a:hover{
|
137 |
+
background:url(header_h.jpg) -261px 0 no-repeat;
|
138 |
+
}
|
139 |
+
.switch_ul li.pirobox_1 a:hover{
|
140 |
+
background:url(header_h.jpg) -392px 0 no-repeat;
|
141 |
+
}
|
142 |
+
|
143 |
+
.description{
|
144 |
+
float:left;
|
145 |
+
font-size:12px;
|
146 |
+
width:850px;
|
147 |
+
border-left:1px solid #ccc;
|
148 |
+
margin:5px 0 5px 15px!important;
|
149 |
+
margin:5px 0 5px 10px;
|
150 |
+
padding:5px;
|
151 |
+
}
|
152 |
+
.details{
|
153 |
+
float:left;
|
154 |
+
margin:5px 0 5px 20px!important;
|
155 |
+
margin:5px 0 5px 15px;
|
156 |
+
width:850px;
|
157 |
+
background: url(li.jpg) repeat-y;
|
158 |
+
|
159 |
+
}
|
160 |
+
.details li{
|
161 |
+
margin:0;
|
162 |
+
padding: 4px 3px 2px 15px;
|
163 |
+
background: url(li_descr.jpg) center left no-repeat;
|
164 |
+
border-bottom:2px solid white;
|
165 |
+
}
|
166 |
+
.code{
|
167 |
+
float:left;
|
168 |
+
margin:15px 0 10px 28px!important;
|
169 |
+
margin:15px 0 10px 14px;
|
170 |
+
width:832px;
|
171 |
+
background: url(code.jpg) left bottom no-repeat;
|
172 |
+
padding:10px 0 10px 10px;
|
173 |
+
font-size:12px;
|
174 |
+
display:block;
|
175 |
+
border-top:1px solid #ededed;
|
176 |
+
}
|
177 |
+
|
178 |
+
a.active_switch ,a:hover.active_switch{
|
179 |
+
color:black;
|
180 |
+
text-decoration:line-through;
|
181 |
+
cursor:default;
|
182 |
+
}
|
183 |
+
.highlites{
|
184 |
+
color:red;
|
185 |
+
font-size:11px;
|
186 |
+
}
|
187 |
+
.expl{
|
188 |
+
float:left;
|
189 |
+
width:820px;
|
190 |
+
margin:5px 0 5px 20px!important;
|
191 |
+
margin:5px 0 5px 15px;
|
192 |
+
padding:5px;
|
193 |
+
color:black;
|
194 |
+
font-weight:300;
|
195 |
+
font-size:11px;
|
196 |
+
background: url(li.jpg) repeat-y;
|
197 |
+
border-left:2px solid #ccc;
|
198 |
+
}
|
199 |
+
.select{
|
200 |
+
position:absolute;
|
201 |
+
width:132px;
|
202 |
+
text-align:center;
|
203 |
+
left:50%;
|
204 |
+
top:0;
|
205 |
+
margin:640px 0 0 270px;
|
206 |
+
color:#999;
|
207 |
+
display:block!important;
|
208 |
+
display:none;
|
209 |
+
}
|
210 |
+
.down_arr{
|
211 |
+
position:absolute;
|
212 |
+
width:20px;
|
213 |
+
height:20px;
|
214 |
+
right:7px;
|
215 |
+
top:3px;
|
216 |
+
cursor:pointer;
|
217 |
+
}
|
218 |
+
.select_down{
|
219 |
+
float:left;
|
220 |
+
width:132px;
|
221 |
+
height:23px;
|
222 |
+
background:url(select.png) center bottom no-repeat;
|
223 |
+
text-align:left;
|
224 |
+
line-height:21px;
|
225 |
+
text-indent:20px;
|
226 |
+
|
227 |
+
}
|
228 |
+
.select_up{
|
229 |
+
float:left;
|
230 |
+
width:132px;
|
231 |
+
height:23px;
|
232 |
+
background:url(select_up.jpg) center bottom no-repeat;
|
233 |
+
text-align:left;
|
234 |
+
line-height:21px;
|
235 |
+
text-indent:20px;
|
236 |
+
}
|
237 |
+
.select dd{
|
238 |
+
float:left;
|
239 |
+
width:132px;
|
240 |
+
height:20px;
|
241 |
+
background:url(bg_select_li.jpg) center bottom;
|
242 |
+
font-size:11px;
|
243 |
+
display:block;
|
244 |
+
|
245 |
+
|
246 |
+
}
|
247 |
+
.select dd.last{
|
248 |
+
float:left;
|
249 |
+
width:132px;
|
250 |
+
height:11px;
|
251 |
+
background:url(last.jpg) center bottom no-repeat;
|
252 |
+
}
|
253 |
+
.top a{
|
254 |
+
position:fixed!important;
|
255 |
+
position:absolute;
|
256 |
+
left:50%;
|
257 |
+
margin:0 0 0 422px;
|
258 |
+
bottom:10px;
|
259 |
+
width:23px;
|
260 |
+
height:14px;
|
261 |
+
display:block;
|
262 |
+
background:#444;
|
263 |
+
text-align:center;
|
264 |
+
color:white;
|
265 |
+
font-size:10px;
|
266 |
+
padding:2px;
|
267 |
+
}
|
268 |
+
|
269 |
+
.contact_form {
|
270 |
+
width:840px;
|
271 |
+
float:left;
|
272 |
+
margin:10px 0 20px 20px!important;
|
273 |
+
margin:5px 0 10px 10px;
|
274 |
+
}
|
275 |
+
.contact_form ul {
|
276 |
+
}
|
277 |
+
.contact_form li {
|
278 |
+
margin:0;
|
279 |
+
padding:0;
|
280 |
+
text-transform:none;
|
281 |
+
}
|
282 |
+
.contact_form legend {
|
283 |
+
border:none;
|
284 |
+
text-transform:uppercase;
|
285 |
+
color:#999;
|
286 |
+
font-size:16px;
|
287 |
+
}
|
288 |
+
.contact_form fieldset {
|
289 |
+
border:1px solid #ededed;
|
290 |
+
margin:0;
|
291 |
+
padding:8px;
|
292 |
+
}
|
293 |
+
.input {
|
294 |
+
width:410px;
|
295 |
+
background: url(form.jpg) bottom;
|
296 |
+
color:#999;
|
297 |
+
border:1px solid #ccc;
|
298 |
+
font-family:Trebuchet MS,Arial;
|
299 |
+
font-size:16px;
|
300 |
+
margin:10px 0 0 0;
|
301 |
+
padding:5px 0 5px 4px;
|
302 |
+
}
|
303 |
+
.textarea {
|
304 |
+
width:830px;
|
305 |
+
margin:10px 0 0 0;
|
306 |
+
height:150px;
|
307 |
+
border:1px solid #ccc;
|
308 |
+
background: url(form.jpg) bottom;
|
309 |
+
color:#999;
|
310 |
+
font-family:Trebuchet MS,Arial;
|
311 |
+
font-size:16px;
|
312 |
+
padding:5px 0 0 4px;
|
313 |
+
}
|
314 |
+
#load_img {
|
315 |
+
display: none;
|
316 |
+
line-height: 26px;
|
317 |
+
}
|
318 |
+
|
319 |
+
.error {
|
320 |
+
border:1px solid #999;
|
321 |
+
color:black;
|
322 |
+
}
|
323 |
+
#result{
|
324 |
+
margin:0 0 0 10px;
|
325 |
+
}
|
326 |
+
.fail {
|
327 |
+
color: red;
|
328 |
+
font-size:16px;
|
329 |
+
}
|
330 |
+
|
331 |
+
.success {
|
332 |
+
color: black;
|
333 |
+
font-size:16px;
|
334 |
+
|
335 |
+
}
|
336 |
+
.submitbutton{
|
337 |
+
float:left;
|
338 |
+
width:400px;
|
339 |
+
}
|
340 |
+
.submit {
|
341 |
+
width:160px;
|
342 |
+
background: url(form.jpg) bottom;
|
343 |
+
border:1px solid #ccc;
|
344 |
+
color:#999;
|
345 |
+
font-family:Trebuchet MS,Arial;
|
346 |
+
font-size:14px;
|
347 |
+
padding:4px;
|
348 |
+
margin:10px 0 0 0;
|
349 |
+
}
|
350 |
+
.required{
|
351 |
+
|
352 |
+
position:absolute;
|
353 |
+
width:90px;
|
354 |
+
height:16px;
|
355 |
+
background:#333;
|
356 |
+
color:white;
|
357 |
+
display:block;
|
358 |
+
padding:0 0 1px 0;
|
359 |
+
font-size:12px;
|
360 |
+
margin:13px 0 0 -95px;
|
361 |
+
display:none;
|
362 |
+
text-align:center;
|
363 |
+
}
|
364 |
+
/*::::::::::::::COMMENTS:::::::::::::::*/
|
365 |
+
.numero_comm{
|
366 |
+
float:left;
|
367 |
+
color:#999;
|
368 |
+
position:relative;
|
369 |
+
background:url(date.jpg) no-repeat;
|
370 |
+
height:24px;
|
371 |
+
line-height:24px;
|
372 |
+
width:28px;
|
373 |
+
text-align:center;
|
374 |
+
font-size:14px;
|
375 |
+
font-weight:normal;
|
376 |
+
margin:10px 0 -10px 15px!important;
|
377 |
+
margin:10px 0 -10px 8px;
|
378 |
+
padding:0;
|
379 |
+
}
|
380 |
+
.numero_my_comm{
|
381 |
+
float:left;
|
382 |
+
color:#000;
|
383 |
+
position:relative;
|
384 |
+
background:url(mydate.jpg) no-repeat;
|
385 |
+
height:24px;
|
386 |
+
line-height:24px;
|
387 |
+
width:28px;
|
388 |
+
text-align:center;
|
389 |
+
font-size:14px;
|
390 |
+
font-weight:normal;
|
391 |
+
margin:10px 0 -10px 15px!important;
|
392 |
+
margin:10px 0 -10px 8px;
|
393 |
+
padding:0;
|
394 |
+
}
|
395 |
+
.data{
|
396 |
+
font-size:10px;
|
397 |
+
padding:0;
|
398 |
+
color:#b6b6b6;
|
399 |
+
}
|
400 |
+
.mydata{
|
401 |
+
font-size:10px;
|
402 |
+
padding:0;
|
403 |
+
color:#222;
|
404 |
+
}
|
405 |
+
.viewmessage{
|
406 |
+
float:left;
|
407 |
+
width:840px;
|
408 |
+
margin:0 0 10px 20px!important;
|
409 |
+
margin:0 0 10px 13px;
|
410 |
+
border:1px solid #ccc;
|
411 |
+
background: url(form.jpg) bottom;
|
412 |
+
color:#999;
|
413 |
+
padding:12px 5px 5px 5px;
|
414 |
+
}
|
415 |
+
.viewmessage pre{
|
416 |
+
font-family:Trebuchet MS,Arial;
|
417 |
+
font-size:12px;
|
418 |
+
width:840px;
|
419 |
+
display:block;
|
420 |
+
overflow:auto;
|
421 |
+
white-space: pre-wrap; /* css-3 */
|
422 |
+
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
|
423 |
+
white-space: -pre-wrap; /* Opera 4-6 */
|
424 |
+
white-space: -o-pre-wrap; /* Opera 7 */
|
425 |
+
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
426 |
+
}
|
427 |
+
.viewmymessage{
|
428 |
+
float:left;
|
429 |
+
width:840px;
|
430 |
+
margin:0 0 10px 20px!important;
|
431 |
+
margin:0 0 10px 13px;
|
432 |
+
border:1px solid #adacad;
|
433 |
+
background: url(myform.jpg) bottom;
|
434 |
+
color:#000;
|
435 |
+
padding:12px 5px 5px 5px;
|
436 |
+
}
|
437 |
+
.viewmymessage pre{
|
438 |
+
font-family:Trebuchet MS,Arial;
|
439 |
+
font-size:12px;
|
440 |
+
width:840px;
|
441 |
+
display:block;
|
442 |
+
overflow:auto;
|
443 |
+
white-space: pre-wrap; /* css-3 */
|
444 |
+
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
|
445 |
+
white-space: -pre-wrap; /* Opera 4-6 */
|
446 |
+
white-space: -o-pre-wrap; /* Opera 7 */
|
447 |
+
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
448 |
+
}
|
449 |
+
|
450 |
+
.demo a{ float:left; margin:0; padding:0; margin:5px 0px 5px 19px!important; margin:5px 10px 5px 10px; display:block; border:3px solid #efefef;}
|
451 |
+
.demo a:hover{ border:3px solid #fff}
|
452 |
+
.demo a img{ float:left; margin:0; padding:0; margin:0; background:url(bg_tms.jpg) no-repeat;}
|
453 |
+
ul,li,dl,dt,dd{
|
454 |
+
list-style-type:none;
|
455 |
+
margin:0;
|
456 |
+
padding:0;
|
457 |
+
}
|
js/magentopycho/pirobox/css_pirobox/demo1/ajax-loader.gif
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/b_c.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/b_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/b_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/c_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/c_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/close_btn.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/close_btn_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/link_out.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/link_out_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/next.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/next_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/pause.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/pause_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/play.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/play_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/prev.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/prev_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/style.css
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*::::: PIROBOX RULES::::::::*/
|
2 |
+
.piro_overlay { position: fixed; _position: absolute; top: 0; left: 0; width: 100%; height: 100%; background:#fff; display: none; z-index:99997; }
|
3 |
+
|
4 |
+
.loading span{position:absolute;top:50%;left:50%;margin-top:-15px;margin-left:-15px;width:30px;height:30px;display:block;z-index:100008; background:none }
|
5 |
+
.loading span span{position:absolute; display:block; width:30px;height:30px; z-index:100009;background: url(ajax-loader.gif) center center no-repeat!important;background: url(ajax-loader.gif) center center no-repeat;}
|
6 |
+
|
7 |
+
.caption{position:absolute;bottom:0;left:0;margin:0;display:block; padding:0px; cursor:text; background:#222;}
|
8 |
+
.piro_nav{position:absolute;bottom:0;left:50%;margin:0;display:block; padding:0; background:none;}
|
9 |
+
.caption p{ display:block; margin:0;padding:4px 28px 4px 38px; text-align:center; font-weight:normal; background:black; color:white; font-size:12px;}
|
10 |
+
|
11 |
+
a.piro_close{position:absolute;top:20px;right:20px;height:35px;width:35px;background:url(close_btn.png) no-repeat;cursor:pointer;z-index:100006;}
|
12 |
+
a:hover.piro_close{background:url(close_btn_h.png) no-repeat;}
|
13 |
+
|
14 |
+
a.piro_next{position:absolute;top:50%;width:35px; height:35px;right:20px;text-indent:-999em;outline:none; display:block; margin:-18px 0 0 0;background:url(next.png) center right no-repeat; border:none; cursor:pointer;z-index:1000000001}
|
15 |
+
a:hover.piro_next{background:url(next_h.png) center right no-repeat;}
|
16 |
+
|
17 |
+
a.piro_prev{position:absolute;top:50%;width:35px; height:35px;left:20px; text-indent:-999em; outline:none;display:block;margin:-18px 0 0 0;background: url(prev.png) center left no-repeat;border:none; cursor:pointer; z-index:1000000000}
|
18 |
+
a:hover.piro_prev{background:url(prev_h.png) center left no-repeat;}
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
.pirobox_content {position:absolute; top:50%; left: 50%; padding:0; width: 800px; height: 600px; margin:-300px 0 0 -400px; display:block; z-index:99998;font-family:Trebuchet MS,Arial;}
|
23 |
+
.pirobox_content table,tbody,tr,th,td{margin:0;padding:0;border:none;}
|
24 |
+
.pirobox_content img{ margin:0; padding:0; border:none;}
|
25 |
+
|
26 |
+
.t_l{background:url(t_l.png) no-repeat; width:20px; height:20px;}
|
27 |
+
.t_r{background: url(t_r.png) no-repeat; width:20px; height:20px;}
|
28 |
+
.t_c{height:20px; background:url(t_c.png) repeat-x;}
|
29 |
+
|
30 |
+
.c_l{width:20px; background: url(c_l.png) repeat-y;}
|
31 |
+
.c_c{background:white; margin:0; padding:0;}
|
32 |
+
.c_c div{width:760px; height:560px; margin:0; padding:0 0 0px 0;}
|
33 |
+
.c_r{width:20px; background: url(c_r.png) repeat-y;}
|
34 |
+
|
35 |
+
.b_c{height:20px; background:url(b_c.png) repeat-x;}
|
36 |
+
.b_l{background:url(b_l.png) no-repeat; width:20px; height:20px;}
|
37 |
+
.b_r{background:url(b_r.png) no-repeat; width:20px; height:20px;}
|
38 |
+
|
39 |
+
/*.t_l{background:#000; width:10px; height:10px;}
|
40 |
+
.t_r{background:#000; width:10px; height:10px;}
|
41 |
+
.t_c{height:10px; background:#000;}
|
42 |
+
|
43 |
+
.c_l{width:10px; background:#000;}
|
44 |
+
.c_c{background:#000; margin:0; padding:0;}
|
45 |
+
.c_c div{width:380px; height:180px; margin:0; padding:0;}
|
46 |
+
.c_r{width:10px; background: #000;}
|
47 |
+
|
48 |
+
.b_c{height:10px; background:#000;}
|
49 |
+
.b_l{background:#000; width:10px; height:10px;}
|
50 |
+
.b_r{background:#000; width:10px; height:10px;}
|
51 |
+
*/
|
52 |
+
.box_img{ position:absolute; z-index:99995; background: url(img_bg.png);width: 100%; top:30px; left:30px; height: 100%; padding:0;}
|
53 |
+
.err_mess{ position:absolute;bottom:20px; color:white; padding:0; margin:0 0 0 20px; display:block;}
|
54 |
+
.err_mess a{color:red; font-weight:700;}
|
55 |
+
.number{position:absolute;margin-left:3px;height:18px;width:30px; padding:3px;left:0;color:#666;bottom:1px; font-size:11px;}
|
56 |
+
a.link_to {position:absolute;margin-right:6px;height:20px;width:20px;right:0;color:#999;bottom:3px; background:url(link_out.png) no-repeat; text-indent:-999em;}
|
57 |
+
a:hover.link_to { background:url(link_out_h.png) no-repeat;}
|
58 |
+
a.play{position:absolute;top:20px!important;top:20px;left:20px!important;left:20px;width:40px; height:40px; margin:0; outline:none; display:block;background:url(play.png) no-repeat; text-indent:-999em; border:none;cursor:pointer;}
|
59 |
+
a:hover.play{background:url(play_h.png) no-repeat;}
|
60 |
+
a.stop{position:absolute;top:20px!important;top:20px;left:20px!important;left:20px;;width:40px; height:40px; margin:0; outline:none; display:block;background:url(pause.png) no-repeat;text-indent:-999em; border:none;cursor:pointer;}
|
61 |
+
a:hover.stop{background:url(pause_h.png) no-repeat;}
|
js/magentopycho/pirobox/css_pirobox/demo1/t_c.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/t_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo1/t_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/ajax-loader.gif
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/b_c.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/b_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/b_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/c_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/c_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/close_btn.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/close_btn_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/link_out.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/link_out_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/next.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/next_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/pause.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/pause_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/play.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/play_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/prev.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/prev_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/style.css
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*::::: PIROBOX RULES::::::::*/
|
2 |
+
.piro_overlay { position: fixed; _position: absolute; top: 0; left: 0; width: 100%; height: 100%; background:#fff; display: none; z-index:99997; }
|
3 |
+
|
4 |
+
.loading span{position:absolute;top:50%;left:50%;margin-top:-15px;margin-left:-15px;width:30px;height:30px;display:block;z-index:100008; background:none }
|
5 |
+
.loading span span{position:absolute; display:block; width:30px;height:30px; z-index:100009;background: url(ajax-loader.gif) center center no-repeat!important;background: url(ajax-loader.gif) center center no-repeat;}
|
6 |
+
|
7 |
+
.caption{position:absolute;bottom:0;left:0;margin:0;display:block; padding:0px; cursor:text; background:#222;}
|
8 |
+
.piro_nav{position:absolute;bottom:0;left:50%;margin:0;display:block; padding:0; background:none;}
|
9 |
+
.caption p{ display:block; margin:0;padding:4px 28px 4px 38px; text-align:center; font-weight:normal; background:black; color:white; font-size:12px;}
|
10 |
+
|
11 |
+
a.piro_close{position:absolute;top:20px;right:20px;height:35px;width:35px;background:url(close_btn.png) no-repeat;cursor:pointer;z-index:100006;}
|
12 |
+
a:hover.piro_close{background:url(close_btn_h.png) no-repeat;}
|
13 |
+
|
14 |
+
a.piro_next{position:absolute;top:50%;width:35px; height:35px;right:20px;text-indent:-999em;outline:none; display:block; margin:-18px 0 0 0;background:url(next.png) center right no-repeat; border:none; cursor:pointer;z-index:1000000001}
|
15 |
+
a:hover.piro_next{background:url(next_h.png) center right no-repeat;}
|
16 |
+
|
17 |
+
a.piro_prev{position:absolute;top:50%;width:35px; height:35px;left:20px; text-indent:-999em; outline:none;display:block;margin:-18px 0 0 0;background: url(prev.png) center left no-repeat;border:none; cursor:pointer; z-index:1000000000}
|
18 |
+
a:hover.piro_prev{background:url(prev_h.png) center left no-repeat;}
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
.pirobox_content {position:absolute; top:50%; left: 50%; padding:0; width: 800px; height: 600px; margin:-300px 0 0 -400px; display:block; z-index:99998;font-family:Trebuchet MS,Arial;}
|
23 |
+
.pirobox_content table,tbody,tr,th,td{margin:0;padding:0;border:none;}
|
24 |
+
.pirobox_content img{ margin:0; padding:0; border:none;}
|
25 |
+
|
26 |
+
.t_l{background:url(t_l.png) no-repeat; width:20px; height:20px;}
|
27 |
+
.t_r{background: url(t_r.png) no-repeat; width:20px; height:20px;}
|
28 |
+
.t_c{height:20px; background:url(t_c.png) repeat-x;}
|
29 |
+
|
30 |
+
.c_l{width:20px; background: url(c_l.png) repeat-y;}
|
31 |
+
.c_c{background:black; margin:0; padding:0;}
|
32 |
+
.c_c div{width:760px; height:560px; margin:0; padding:0 0 0px 0;}
|
33 |
+
.c_r{width:20px; background: url(c_r.png) repeat-y;}
|
34 |
+
|
35 |
+
.b_c{height:20px; background:url(b_c.png) repeat-x;}
|
36 |
+
.b_l{background:url(b_l.png) no-repeat; width:20px; height:20px;}
|
37 |
+
.b_r{background:url(b_r.png) no-repeat; width:20px; height:20px;}
|
38 |
+
|
39 |
+
/*.t_l{background:#000; width:10px; height:10px;}
|
40 |
+
.t_r{background:#000; width:10px; height:10px;}
|
41 |
+
.t_c{height:10px; background:#000;}
|
42 |
+
|
43 |
+
.c_l{width:10px; background:#000;}
|
44 |
+
.c_c{background:#000; margin:0; padding:0;}
|
45 |
+
.c_c div{width:380px; height:180px; margin:0; padding:0;}
|
46 |
+
.c_r{width:10px; background: #000;}
|
47 |
+
|
48 |
+
.b_c{height:10px; background:#000;}
|
49 |
+
.b_l{background:#000; width:10px; height:10px;}
|
50 |
+
.b_r{background:#000; width:10px; height:10px;}
|
51 |
+
*/
|
52 |
+
.box_img{ position:absolute; z-index:99995; background: url(img_bg.png);width: 100%; top:30px; left:30px; height: 100%; padding:0;}
|
53 |
+
.err_mess{ position:absolute;bottom:20px; color:white; padding:0; margin:0 0 0 20px; display:block;}
|
54 |
+
.err_mess a{color:red; font-weight:700;}
|
55 |
+
.number{position:absolute;margin-left:3px;height:18px;width:30px; padding:3px;left:0;color:#666;bottom:1px; font-size:11px;}
|
56 |
+
a.link_to {position:absolute;margin-right:6px;height:20px;width:20px;right:0;color:#999;bottom:3px; background:url(link_out.png) no-repeat; text-indent:-999em;}
|
57 |
+
a:hover.link_to { background:url(link_out_h.png) no-repeat;}
|
58 |
+
a.play{position:absolute;top:20px!important;top:20px;left:20px!important;left:20px;width:40px; height:40px; margin:0; outline:none; display:block;background:url(play.png) no-repeat; text-indent:-999em; border:none;cursor:pointer;}
|
59 |
+
a:hover.play{background:url(play_h.png) no-repeat;}
|
60 |
+
a.stop{position:absolute;top:20px!important;top:20px;left:20px!important;left:20px;;width:40px; height:40px; margin:0; outline:none; display:block;background:url(pause.png) no-repeat;text-indent:-999em; border:none;cursor:pointer;}
|
61 |
+
a:hover.stop{background:url(pause_h.png) no-repeat;}
|
js/magentopycho/pirobox/css_pirobox/demo2/t_c.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/t_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo2/t_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/ajax-loader.gif
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/b_c.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/b_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/b_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/c_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/c_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/close_btn.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/close_btn_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/link_out.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/link_out_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/next.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/next_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/pause.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/pause_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/play.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/play_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/prev.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/prev_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/style.css
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*::::: PIROBOX RULES::::::::*/
|
2 |
+
.piro_overlay { position: fixed; _position: absolute; top: 0; left: 0; width: 100%; height: 100%; background:#fff; display: none; z-index:99997; }
|
3 |
+
|
4 |
+
.loading span{position:absolute;top:50%;left:50%;margin-top:-15px;margin-left:-15px;width:30px;height:30px;display:block;z-index:100008; background:none }
|
5 |
+
.loading span span{position:absolute; display:block; width:30px;height:30px; z-index:100009;background: url(ajax-loader.gif) center center no-repeat!important;background: url(ajax-loader.gif) center center no-repeat;}
|
6 |
+
|
7 |
+
.caption{position:absolute;bottom:0;left:0;margin:0;display:block; padding:0px; cursor:text; background:#222;}
|
8 |
+
.piro_nav{position:absolute;bottom:0;left:50%;margin:0;display:block; padding:0; background:none;}
|
9 |
+
.caption p{ display:block; margin:0;padding:4px 28px 4px 38px; text-align:center; font-weight:normal; background:black; color:white; font-size:12px;}
|
10 |
+
|
11 |
+
a.piro_close{position:absolute;top:20px;right:20px;height:35px;width:35px;background:url(close_btn.png) no-repeat;cursor:pointer;z-index:100006;}
|
12 |
+
a:hover.piro_close{background:url(close_btn_h.png) no-repeat;}
|
13 |
+
|
14 |
+
a.piro_next{position:absolute;top:50%;width:35px; height:35px;right:20px;text-indent:-999em;outline:none; display:block; margin:-18px 0 0 0;background:url(next.png) center right no-repeat; border:none; cursor:pointer;z-index:1000000001}
|
15 |
+
a:hover.piro_next{background:url(next_h.png) center right no-repeat;}
|
16 |
+
|
17 |
+
a.piro_prev{position:absolute;top:50%;width:35px; height:35px;left:20px; text-indent:-999em; outline:none;display:block;margin:-18px 0 0 0;background: url(prev.png) center left no-repeat;border:none; cursor:pointer; z-index:1000000000}
|
18 |
+
a:hover.piro_prev{background:url(prev_h.png) center left no-repeat;}
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
.pirobox_content {position:absolute; top:50%; left: 50%; padding:0; width: 800px; height: 600px; margin:-300px 0 0 -400px; display:block; z-index:99998;font-family:Trebuchet MS,Arial;}
|
23 |
+
.pirobox_content table,tbody,tr,th,td{margin:0;padding:0;border:none;}
|
24 |
+
.pirobox_content img{ margin:0; padding:0; border:none;}
|
25 |
+
|
26 |
+
.t_l{background:url(t_l.png) no-repeat; width:20px; height:20px;}
|
27 |
+
.t_r{background: url(t_r.png) no-repeat; width:20px; height:20px;}
|
28 |
+
.t_c{height:20px; background:url(t_c.png) repeat-x;}
|
29 |
+
|
30 |
+
.c_l{width:20px; background: url(c_l.png) repeat-y;}
|
31 |
+
.c_c{background:white; margin:0; padding:0;}
|
32 |
+
.c_c div{width:760px; height:560px; margin:0; padding:0 0 0px 0;}
|
33 |
+
.c_r{width:20px; background: url(c_r.png) repeat-y;}
|
34 |
+
|
35 |
+
.b_c{height:20px; background:url(b_c.png) repeat-x;}
|
36 |
+
.b_l{background:url(b_l.png) no-repeat; width:20px; height:20px;}
|
37 |
+
.b_r{background:url(b_r.png) no-repeat; width:20px; height:20px;}
|
38 |
+
|
39 |
+
/*.t_l{background:#000; width:10px; height:10px;}
|
40 |
+
.t_r{background:#000; width:10px; height:10px;}
|
41 |
+
.t_c{height:10px; background:#000;}
|
42 |
+
|
43 |
+
.c_l{width:10px; background:#000;}
|
44 |
+
.c_c{background:#000; margin:0; padding:0;}
|
45 |
+
.c_c div{width:380px; height:180px; margin:0; padding:0;}
|
46 |
+
.c_r{width:10px; background: #000;}
|
47 |
+
|
48 |
+
.b_c{height:10px; background:#000;}
|
49 |
+
.b_l{background:#000; width:10px; height:10px;}
|
50 |
+
.b_r{background:#000; width:10px; height:10px;}
|
51 |
+
*/
|
52 |
+
.box_img{ position:absolute; z-index:99995; background: url(img_bg.png);width: 100%; top:30px; left:30px; height: 100%; padding:0;}
|
53 |
+
.err_mess{ position:absolute;bottom:20px; color:white; padding:0; margin:0 0 0 20px; display:block;}
|
54 |
+
.err_mess a{color:red; font-weight:700;}
|
55 |
+
.number{position:absolute;margin-left:3px;height:18px;width:30px; padding:3px;left:0;color:#666;bottom:1px; font-size:11px;}
|
56 |
+
a.link_to {position:absolute;margin-right:6px;height:20px;width:20px;right:0;color:#999;bottom:3px; background:url(link_out.png) no-repeat; text-indent:-999em;}
|
57 |
+
a:hover.link_to { background:url(link_out_h.png) no-repeat;}
|
58 |
+
a.play{position:absolute;top:20px!important;top:20px;left:20px!important;left:20px;width:40px; height:40px; margin:0; outline:none; display:block;background:url(play.png) no-repeat; text-indent:-999em; border:none;cursor:pointer;}
|
59 |
+
a:hover.play{background:url(play_h.png) no-repeat;}
|
60 |
+
a.stop{position:absolute;top:20px!important;top:20px;left:20px!important;left:20px;;width:40px; height:40px; margin:0; outline:none; display:block;background:url(pause.png) no-repeat;text-indent:-999em; border:none;cursor:pointer;}
|
61 |
+
a:hover.stop{background:url(pause_h.png) no-repeat;}
|
js/magentopycho/pirobox/css_pirobox/demo3/t_c.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/t_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo3/t_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/ajax-loader.gif
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/b_c.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/b_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/b_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/c_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/c_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/close_btn.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/close_btn_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/link_out.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/link_out_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/next.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/next_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/pause.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/pause_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/play.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/play_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/prev.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/prev_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/style.css
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*::::: PIROBOX RULES::::::::*/
|
2 |
+
.piro_overlay { position: fixed; _position: absolute; top: 0; left: 0; width: 100%; height: 100%; background:#fff; display: none; z-index:99997; }
|
3 |
+
|
4 |
+
.loading span{position:absolute;top:50%;left:50%;margin-top:-15px;margin-left:-15px;width:30px;height:30px;display:block;z-index:100008; background:none }
|
5 |
+
.loading span span{position:absolute; display:block; width:30px;height:30px; z-index:100009;background: url(ajax-loader.gif) center center no-repeat!important;background: url(ajax-loader.gif) center center no-repeat;}
|
6 |
+
|
7 |
+
.caption{position:absolute;bottom:0;left:0;margin:0;display:block; padding:0px; cursor:text; background:#222;}
|
8 |
+
.piro_nav{position:absolute;bottom:0;left:50%;margin:0;display:block; padding:0; background:none;}
|
9 |
+
.caption p{ display:block; margin:0;padding:4px 28px 4px 38px; text-align:center; font-weight:normal; background:black; color:white; font-size:12px;}
|
10 |
+
|
11 |
+
a.piro_close{position:absolute;top:20px;right:20px;height:35px;width:35px;background:url(close_btn.png) no-repeat;cursor:pointer;z-index:100006;}
|
12 |
+
a:hover.piro_close{background:url(close_btn_h.png) no-repeat;}
|
13 |
+
|
14 |
+
a.piro_next{position:absolute;top:50%;width:35px; height:35px;right:20px;text-indent:-999em;outline:none; display:block; margin:-18px 0 0 0;background:url(next.png) center right no-repeat; border:none; cursor:pointer;z-index:1000000001}
|
15 |
+
a:hover.piro_next{background:url(next_h.png) center right no-repeat;}
|
16 |
+
|
17 |
+
a.piro_prev{position:absolute;top:50%;width:35px; height:35px;left:20px; text-indent:-999em; outline:none;display:block;margin:-18px 0 0 0;background: url(prev.png) center left no-repeat;border:none; cursor:pointer; z-index:1000000000}
|
18 |
+
a:hover.piro_prev{background:url(prev_h.png) center left no-repeat;}
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
.pirobox_content {position:absolute; top:50%; left: 50%; padding:0; width: 800px; height: 600px; margin:-300px 0 0 -400px; display:block; z-index:99998;font-family:Trebuchet MS,Arial;}
|
23 |
+
.pirobox_content table,tbody,tr,th,td{margin:0;padding:0;border:none;}
|
24 |
+
.pirobox_content img{ margin:0; padding:0; border:none;}
|
25 |
+
|
26 |
+
.t_l{background:url(t_l.png) no-repeat; width:20px; height:20px;}
|
27 |
+
.t_r{background: url(t_r.png) no-repeat; width:20px; height:20px;}
|
28 |
+
.t_c{height:20px; background:url(t_c.png) repeat-x;}
|
29 |
+
|
30 |
+
.c_l{width:20px; background: url(c_l.png) repeat-y;}
|
31 |
+
.c_c{background:white; margin:0; padding:0;}
|
32 |
+
.c_c div{width:760px; height:560px; margin:0; padding:0 0 0px 0; overflow:hidden;}
|
33 |
+
.c_r{width:20px; background: url(c_r.png) repeat-y;}
|
34 |
+
|
35 |
+
.b_c{height:20px; background:url(b_c.png) repeat-x;}
|
36 |
+
.b_l{background:url(b_l.png) no-repeat; width:20px; height:20px;}
|
37 |
+
.b_r{background:url(b_r.png) no-repeat; width:20px; height:20px;}
|
38 |
+
|
39 |
+
/*.t_l{background:#000; width:10px; height:10px;}
|
40 |
+
.t_r{background:#000; width:10px; height:10px;}
|
41 |
+
.t_c{height:10px; background:#000;}
|
42 |
+
|
43 |
+
.c_l{width:10px; background:#000;}
|
44 |
+
.c_c{background:#000; margin:0; padding:0;}
|
45 |
+
.c_c div{width:380px; height:180px; margin:0; padding:0;}
|
46 |
+
.c_r{width:10px; background: #000;}
|
47 |
+
|
48 |
+
.b_c{height:10px; background:#000;}
|
49 |
+
.b_l{background:#000; width:10px; height:10px;}
|
50 |
+
.b_r{background:#000; width:10px; height:10px;}
|
51 |
+
*/
|
52 |
+
.box_img{ position:absolute; z-index:99995; background: url(img_bg.png);width: 100%; top:30px; left:30px; height: 100%; padding:0;}
|
53 |
+
.err_mess{ position:absolute;bottom:20px; color:black; padding:0; margin:0 0 0 20px; display:block;}
|
54 |
+
.err_mess a{color:red; font-weight:700;}
|
55 |
+
.number{position:absolute;margin-left:3px;height:18px;width:30px; padding:3px;left:0;color:#666;bottom:1px; font-size:11px;}
|
56 |
+
a.link_to {position:absolute;margin-right:6px;height:20px;width:20px;right:0;color:#999;bottom:3px; background:url(link_out.png) no-repeat; text-indent:-999em;}
|
57 |
+
a:hover.link_to { background:url(link_out_h.png) no-repeat;}
|
58 |
+
a.play{position:absolute;top:20px!important;top:20px;left:20px!important;left:20px;width:40px; height:40px; margin:0; outline:none; display:block;background:url(play.png) no-repeat; text-indent:-999em; border:none;cursor:pointer;}
|
59 |
+
a:hover.play{background:url(play_h.png) no-repeat;}
|
60 |
+
a.stop{position:absolute;top:20px!important;top:20px;left:20px!important;left:20px;;width:40px; height:40px; margin:0; outline:none; display:block;background:url(pause.png) no-repeat;text-indent:-999em; border:none;cursor:pointer;}
|
61 |
+
a:hover.stop{background:url(pause_h.png) no-repeat;}
|
js/magentopycho/pirobox/css_pirobox/demo4/t_c.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/t_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo4/t_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/ajax-loader.gif
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/b_c.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/b_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/b_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/c_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/c_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/close_btn.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/close_btn_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/link_out.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/link_out_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/next.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/next_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/pause.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/pause_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/play.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/play_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/prev.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/prev_h.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/style.css
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*::::: PIROBOX RULES::::::::*/
|
2 |
+
.piro_overlay { position: fixed; _position: absolute; top: 0; left: 0; width: 100%; height: 100%; background:#000; display: none; z-index:99997; }
|
3 |
+
|
4 |
+
.loading span{position:absolute;top:50%;left:50%;margin-top:-15px;margin-left:-15px;width:30px;height:30px;display:block;z-index:100008; background:none }
|
5 |
+
.loading span span{position:absolute; display:block; width:30px;height:30px; z-index:100009;background: url(ajax-loader.gif) center center no-repeat!important;background: url(ajax-loader.gif) center center no-repeat;}
|
6 |
+
|
7 |
+
.caption{position:absolute;bottom:0;left:0;margin:0;display:block; padding:0px; cursor:text; background:#222;}
|
8 |
+
.piro_nav{position:absolute;bottom:0;left:50%;margin:0;display:block; padding:0; background:none;}
|
9 |
+
.caption p{ display:block; margin:0;padding:4px 28px 4px 38px; text-align:center; font-weight:normal; background:black; color:white; font-size:12px;}
|
10 |
+
|
11 |
+
a.piro_close{position:absolute;top:20px;right:20px;height:35px;width:35px;background:url(close_btn.png) no-repeat;cursor:pointer;z-index:100006;}
|
12 |
+
a:hover.piro_close{background:url(close_btn_h.png) no-repeat;}
|
13 |
+
|
14 |
+
a.piro_next{position:absolute;top:50%;width:35px; height:35px;right:20px;text-indent:-999em;outline:none; display:block; margin:-18px 0 0 0;background:url(next.png) center right no-repeat; border:none; cursor:pointer;z-index:1000000001}
|
15 |
+
a:hover.piro_next{background:url(next_h.png) center right no-repeat;}
|
16 |
+
|
17 |
+
a.piro_prev{position:absolute;top:50%;width:35px; height:35px;left:20px; text-indent:-999em; outline:none;display:block;margin:-18px 0 0 0;background: url(prev.png) center left no-repeat;border:none; cursor:pointer; z-index:1000000000}
|
18 |
+
a:hover.piro_prev{background:url(prev_h.png) center left no-repeat;}
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
.pirobox_content {position:absolute; top:50%; left: 50%; padding:0; width: 800px; height: 600px; margin:-300px 0 0 -400px; display:block; z-index:99998;font-family:Trebuchet MS,Arial;}
|
23 |
+
.pirobox_content table,tbody,tr,th,td{margin:0;padding:0;border:none;}
|
24 |
+
.pirobox_content img{ margin:0; padding:0; border:none;}
|
25 |
+
|
26 |
+
.t_l{background:url(t_l.png) no-repeat; width:20px; height:20px;}
|
27 |
+
.t_r{background: url(t_r.png) no-repeat; width:20px; height:20px;}
|
28 |
+
.t_c{height:20px; background:url(t_c.png) repeat-x;}
|
29 |
+
|
30 |
+
.c_l{width:20px; background: url(c_l.png) repeat-y;}
|
31 |
+
.c_c{background:black; margin:0; padding:0;}
|
32 |
+
.c_c div{width:760px; height:560px; margin:0; padding:0 0 0px 0;}
|
33 |
+
.c_r{width:20px; background: url(c_r.png) repeat-y;}
|
34 |
+
|
35 |
+
.b_c{height:20px; background:url(b_c.png) repeat-x;}
|
36 |
+
.b_l{background:url(b_l.png) no-repeat; width:20px; height:20px;}
|
37 |
+
.b_r{background:url(b_r.png) no-repeat; width:20px; height:20px;}
|
38 |
+
|
39 |
+
/*.t_l{background:#000; width:10px; height:10px;}
|
40 |
+
.t_r{background:#000; width:10px; height:10px;}
|
41 |
+
.t_c{height:10px; background:#000;}
|
42 |
+
|
43 |
+
.c_l{width:10px; background:#000;}
|
44 |
+
.c_c{background:#000; margin:0; padding:0;}
|
45 |
+
.c_c div{width:380px; height:180px; margin:0; padding:0;}
|
46 |
+
.c_r{width:10px; background: #000;}
|
47 |
+
|
48 |
+
.b_c{height:10px; background:#000;}
|
49 |
+
.b_l{background:#000; width:10px; height:10px;}
|
50 |
+
.b_r{background:#000; width:10px; height:10px;}
|
51 |
+
*/
|
52 |
+
.box_img{ position:absolute; z-index:99995; background: url(img_bg.png);width: 100%; top:30px; left:30px; height: 100%; padding:0;}
|
53 |
+
.err_mess{ position:absolute;bottom:20px; color:white; padding:0; margin:0 0 0 20px; display:block;}
|
54 |
+
.err_mess a{color:red; font-weight:700;}
|
55 |
+
.number{position:absolute;margin-left:3px;height:18px;width:30px; padding:3px;left:0;color:#666;bottom:1px; font-size:11px;}
|
56 |
+
a.link_to {position:absolute;margin-right:6px;height:20px;width:20px;right:0;color:#999;bottom:3px; background:url(link_out.png) no-repeat; text-indent:-999em;}
|
57 |
+
a:hover.link_to { background:url(link_out_h.png) no-repeat;}
|
58 |
+
a.play{position:absolute;top:20px!important;top:20px;left:20px!important;left:20px;width:40px; height:40px; margin:0; outline:none; display:block;background:url(play.png) no-repeat; text-indent:-999em; border:none;cursor:pointer;}
|
59 |
+
a:hover.play{background:url(play_h.png) no-repeat;}
|
60 |
+
a.stop{position:absolute;top:20px!important;top:20px;left:20px!important;left:20px;;width:40px; height:40px; margin:0; outline:none; display:block;background:url(pause.png) no-repeat;text-indent:-999em; border:none;cursor:pointer;}
|
61 |
+
a:hover.stop{background:url(pause_h.png) no-repeat;}
|
js/magentopycho/pirobox/css_pirobox/demo5/t_c.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/t_l.png
ADDED
Binary file
|
js/magentopycho/pirobox/css_pirobox/demo5/t_r.png
ADDED
Binary file
|
js/magentopycho/pirobox/js/jquery.min.js
ADDED
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jQuery JavaScript Library v1.4.2
|
3 |
+
* http://jquery.com/
|
4 |
+
*
|
5 |
+
* Copyright 2010, John Resig
|
6 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
7 |
+
* http://jquery.org/license
|
8 |
+
*
|
9 |
+
* Includes Sizzle.js
|
10 |
+
* http://sizzlejs.com/
|
11 |
+
* Copyright 2010, The Dojo Foundation
|
12 |
+
* Released under the MIT, BSD, and GPL Licenses.
|
13 |
+
*
|
14 |
+
* Date: Sat Feb 13 22:33:48 2010 -0500
|
15 |
+
*/
|
16 |
+
(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
|
17 |
+
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
|
18 |
+
j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
|
19 |
+
"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=
|
20 |
+
true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,
|
21 |
+
Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&
|
22 |
+
(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,
|
23 |
+
a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
|
24 |
+
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
|
25 |
+
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
|
26 |
+
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
|
27 |
+
L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,
|
28 |
+
"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+
|
29 |
+
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
|
30 |
+
d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
|
31 |
+
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
|
32 |
+
!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=
|
33 |
+
true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
|
34 |
+
var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,
|
35 |
+
parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=
|
36 |
+
false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=
|
37 |
+
s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,
|
38 |
+
applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];
|
39 |
+
else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,
|
40 |
+
a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===
|
41 |
+
w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,
|
42 |
+
cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ",
|
43 |
+
i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" ",
|
44 |
+
" ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=
|
45 |
+
this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=
|
46 |
+
e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=
|
47 |
+
c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");
|
48 |
+
a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,
|
49 |
+
function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");
|
50 |
+
k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),
|
51 |
+
C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!=
|
52 |
+
null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=
|
53 |
+
e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&&
|
54 |
+
f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;
|
55 |
+
if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
|
56 |
+
fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
|
57 |
+
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
|
58 |
+
"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
|
59 |
+
a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
|
60 |
+
isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit=
|
61 |
+
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
|
62 |
+
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
|
63 |
+
e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
|
64 |
+
"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,
|
65 |
+
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
|
66 |
+
!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
|
67 |
+
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
|
68 |
+
u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
|
69 |
+
function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];
|
70 |
+
if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(k.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
|
71 |
+
e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift();
|
72 |
+
t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D||
|
73 |
+
g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
|
74 |
+
for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
|
75 |
+
1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
|
76 |
+
CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},
|
77 |
+
relative:{"+":function(g,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h}l&&k.filter(h,g,true)},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]=
|
78 |
+
l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[];
|
79 |
+
h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},
|
80 |
+
CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,
|
81 |
+
g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},
|
82 |
+
text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},
|
83 |
+
setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
|
84 |
+
h[3];l=0;for(m=h.length;l<m;l++)if(h[l]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l==="first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":l=h[2];var q=h[3];if(l===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=
|
85 |
+
m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/l>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m===
|
86 |
+
"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,
|
87 |
+
h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l<m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||
|
88 |
+
!h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m=
|
89 |
+
h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&
|
90 |
+
q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML="<a href='#'></a>";
|
91 |
+
if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
|
92 |
+
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:
|
93 |
+
function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
|
94 |
+
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
|
95 |
+
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
|
96 |
+
{},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
|
97 |
+
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",
|
98 |
+
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
|
99 |
+
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
|
100 |
+
1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
|
101 |
+
a:b+"></"+d+">"},F={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
|
102 |
+
c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
|
103 |
+
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
|
104 |
+
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
|
105 |
+
this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
|
106 |
+
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
|
107 |
+
""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
|
108 |
+
this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
|
109 |
+
u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
|
110 |
+
1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);
|
111 |
+
return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",
|
112 |
+
""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]==="<table>"&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e=
|
113 |
+
c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]?
|
114 |
+
c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja=
|
115 |
+
function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=
|
116 |
+
Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,
|
117 |
+
"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=
|
118 |
+
a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=
|
119 |
+
a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!==
|
120 |
+
"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this},
|
121 |
+
serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
|
122 |
+
function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,
|
123 |
+
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&&
|
124 |
+
e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)?
|
125 |
+
"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===
|
126 |
+
false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B=
|
127 |
+
false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",
|
128 |
+
c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||
|
129 |
+
d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x);
|
130 |
+
g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===
|
131 |
+
1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b===
|
132 |
+
"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;
|
133 |
+
if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");
|
134 |
+
this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],
|
135 |
+
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
|
136 |
+
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[i]==="show"&&!o)return j.complete.call(this);if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing=
|
137 |
+
j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u==="toggle"?o?"show":"hide":u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]==="-="?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);
|
138 |
+
this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration===
|
139 |
+
"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||
|
140 |
+
c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;
|
141 |
+
this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
|
142 |
+
this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,
|
143 |
+
e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||
|
144 |
+
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
|
145 |
+
function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=
|
146 |
+
this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle;
|
147 |
+
k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&&
|
148 |
+
f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
|
149 |
+
a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);
|
150 |
+
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,
|
151 |
+
d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-
|
152 |
+
f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":
|
153 |
+
"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in
|
154 |
+
e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);
|
js/magentopycho/pirobox/js/pirobox.js
ADDED
@@ -0,0 +1,335 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Name: piroBox v.1.2.2
|
3 |
+
* Date: May 2010
|
4 |
+
* Autor: Diego Valobra (http://www.pirolab.it),(http://www.diegovalobra.com)
|
5 |
+
* Version: 1.2.2
|
6 |
+
* Licence: CC-BY-SA http://creativecommons.org/licenses/by-sa/2.5/it/
|
7 |
+
**/
|
8 |
+
|
9 |
+
(function($) {
|
10 |
+
$.fn.piroBox = function(opt) {
|
11 |
+
opt = jQuery.extend({
|
12 |
+
my_speed : null,
|
13 |
+
close_speed : 300,
|
14 |
+
bg_alpha : 0.5,
|
15 |
+
close_all : '.piro_close,.piro_overlay',
|
16 |
+
slideShow : null,
|
17 |
+
slideSpeed : null
|
18 |
+
}, opt);
|
19 |
+
|
20 |
+
function start_pirobox() {
|
21 |
+
var corners =
|
22 |
+
'<tr>'+
|
23 |
+
'<td colspan="3" class="pirobox_up"></td>'+
|
24 |
+
'</tr>'+
|
25 |
+
'<tr>'+
|
26 |
+
'<td class="t_l"></td>'+
|
27 |
+
'<td class="t_c"></td>'+
|
28 |
+
'<td class="t_r"></td>'+
|
29 |
+
'</tr>'+
|
30 |
+
'<tr>'+
|
31 |
+
'<td class="c_l"></td>'+
|
32 |
+
'<td class="c_c"><span><span></span></span><div></div></td>'+
|
33 |
+
'<td class="c_r"></td>'+
|
34 |
+
'</tr>'+
|
35 |
+
'<tr>'+
|
36 |
+
'<td class="b_l"></td>'+
|
37 |
+
'<td class="b_c"></td>'+
|
38 |
+
'<td class="b_r"></td>'+
|
39 |
+
'</tr>'+
|
40 |
+
'<tr>'+
|
41 |
+
'<td colspan="3" class="pirobox_down"></td>'+
|
42 |
+
'</tr>';
|
43 |
+
var window_height = $(document).height();
|
44 |
+
var bg_overlay = $(jQuery('<div class="piro_overlay"></div>').hide().css({'opacity':+opt.bg_alpha,'height':window_height+'px'}));
|
45 |
+
var main_cont = $(jQuery('<table class="pirobox_content" cellpadding="0" cellspacing="0"></table>'));
|
46 |
+
var caption = $(jQuery('<div class="caption"></div>'));
|
47 |
+
var piro_nav = $(jQuery('<div class="piro_nav"></div>'));
|
48 |
+
var piro_close = $(jQuery('<a href="#close" class="piro_close" title="close"></a>'));
|
49 |
+
var piro_play = $(jQuery('<a href="#play" class="play" title="play slideshow"></a>'));
|
50 |
+
var piro_stop = $(jQuery('<a href="#stop" class="stop" title="stop slideshow"></a>'));
|
51 |
+
var piro_prev = $(jQuery('<a href="#prev" class="piro_prev" title="previous image"></a>'));
|
52 |
+
var piro_next = $(jQuery('<a href="#next" class="piro_next" title="next image"></a>'));
|
53 |
+
$('body').append(bg_overlay).append(main_cont);
|
54 |
+
main_cont.append(corners);
|
55 |
+
$('.pirobox_up').append(piro_close);
|
56 |
+
$('.pirobox_down').append(piro_nav);
|
57 |
+
$('.pirobox_down').append(piro_play);
|
58 |
+
piro_play.hide();
|
59 |
+
$('.pirobox_down').append(piro_prev).append(piro_next);
|
60 |
+
piro_nav.append(caption);
|
61 |
+
var my_nav_w = piro_prev.width();
|
62 |
+
main_cont.hide();
|
63 |
+
var my_gall_classes = $("a[class^='pirobox']");
|
64 |
+
var map = new Object();
|
65 |
+
for (var i=0; i<my_gall_classes.length; i++) {
|
66 |
+
var it=$(my_gall_classes[i])
|
67 |
+
map['a.'+it.attr('class')]=0;
|
68 |
+
}
|
69 |
+
var gall_settings = new Array();
|
70 |
+
for (var key in map) {
|
71 |
+
gall_settings.push(key);
|
72 |
+
}
|
73 |
+
for (var i=0; i<gall_settings.length; i++) {
|
74 |
+
$(gall_settings[i]).each(function(rel){this.rel = rel+1 + " of " + $(gall_settings[i]).length;});
|
75 |
+
var add_first = $(gall_settings[i]+':first').addClass('first');
|
76 |
+
var add_last = $(gall_settings[i]+':last').addClass('last');
|
77 |
+
}
|
78 |
+
$(my_gall_classes).each(function(rev){this.rev = rev+0});
|
79 |
+
var imgCache = $(my_gall_classes).each(function(){this.href});
|
80 |
+
var hidden = $('body').append('<div id="imgCache" style="display:none"></div').children('#imgCache');
|
81 |
+
$.each(imgCache, function (i,val) {
|
82 |
+
$('<div/>').css({'background':'url('+val+')'/*,'width':'600px','height':'200px'*/}).appendTo(hidden);
|
83 |
+
});
|
84 |
+
var piro_gallery = $(my_gall_classes);
|
85 |
+
$.fn.fixPNG = function() {
|
86 |
+
return this.each(function () {
|
87 |
+
var image = $(this).css('backgroundImage');
|
88 |
+
if (image.match(/^url\(["']?(.*\.png)["']?\)$/i)) {
|
89 |
+
image = RegExp.$1;
|
90 |
+
$(this).css({
|
91 |
+
'backgroundImage': 'none',
|
92 |
+
'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=" + ($(this).css('backgroundRepeat') == 'no-repeat' ? 'crop' : 'scale') + ", src='" + image + "')"
|
93 |
+
}).each(function () {
|
94 |
+
var position = $(this).css('position');
|
95 |
+
if (position != 'absolute' && position != 'relative')
|
96 |
+
$(this).css('position', 'relative');
|
97 |
+
});
|
98 |
+
}
|
99 |
+
});
|
100 |
+
};
|
101 |
+
$.browser.msie6 =($.browser.msie && /MSIE 6\.0/i.test(window.navigator.userAgent));
|
102 |
+
if( $.browser.msie6 && !/MSIE 8\.0/i.test(window.navigator.userAgent)) {
|
103 |
+
$('.t_l,.t_c,.t_r,.c_l,.c_r,.b_l,.b_c,.b_r,a.piro_next, a.piro_prev,a.piro_prev_out,a.piro_next_out,.c_c,.piro_close,a.play,a.stop').fixPNG();
|
104 |
+
var ie_w_h = $(document).height();
|
105 |
+
bg_overlay.css('height',ie_w_h+ 'px');
|
106 |
+
}
|
107 |
+
if( $.browser.msie) {
|
108 |
+
opt.close_speed = 0;
|
109 |
+
}
|
110 |
+
$(window).resize(function(){
|
111 |
+
var new_w_bg = $(document).height();
|
112 |
+
bg_overlay.css({'visibility':'visible','height':+ new_w_bg +'px'});
|
113 |
+
});
|
114 |
+
piro_prev.add(piro_next).bind('click',function(c) {
|
115 |
+
c.preventDefault();
|
116 |
+
var image_count = parseInt($(piro_gallery).filter('.item').attr('rev'));
|
117 |
+
var start = $(this).is('.piro_prev_out,.piro_prev') ? $(piro_gallery).eq(image_count - 1) : $(piro_gallery).eq(image_count + 1);
|
118 |
+
if(!start.size()) {
|
119 |
+
start = $(this).is('.piro_prev_out,.piro_prev') ? $(piro_gallery).eq($(piro_gallery).size() - 1) : $(piro_gallery).eq(0);
|
120 |
+
}
|
121 |
+
start.click();
|
122 |
+
piro_close.add(caption).add(piro_next).add(piro_prev).css('visibility','hidden');
|
123 |
+
});
|
124 |
+
$(piro_gallery).each(function(array) {
|
125 |
+
var item = $(this);
|
126 |
+
item.unbind();
|
127 |
+
item.bind('click',function(c) {
|
128 |
+
c.preventDefault();
|
129 |
+
piro_open(item.attr('href'));
|
130 |
+
var this_url = item.attr('href');
|
131 |
+
//var descr = item.children('span').html();
|
132 |
+
var descr = item.attr('title');
|
133 |
+
var number = item.attr('rel');
|
134 |
+
if( descr == ""){
|
135 |
+
caption.html('<p>'+ this_url+'<em class="number">' + number + '</em><a href='+ this_url +' class="link_to" target="_blank" title="Open Image in a new window"></a></p>');
|
136 |
+
}else{
|
137 |
+
caption.html('<p>'+ descr+'<em class="number">' + number + '</em><a href='+ this_url +' class="link_to" target="_blank" title="Open Image in a new window"></a></p>');
|
138 |
+
}
|
139 |
+
if(item.is('.last')){
|
140 |
+
$('.number').css('text-decoration','underline');
|
141 |
+
|
142 |
+
}else{
|
143 |
+
$('.number').css('text-decoration','none');
|
144 |
+
}
|
145 |
+
if(item.is('.first')){
|
146 |
+
piro_prev.hide();
|
147 |
+
piro_next.show();
|
148 |
+
}else{
|
149 |
+
piro_next.add(piro_prev).show();
|
150 |
+
}
|
151 |
+
if(item.is('.last')){
|
152 |
+
piro_prev.show();
|
153 |
+
piro_next.hide();
|
154 |
+
piro_play.css('width','0');
|
155 |
+
}else{
|
156 |
+
piro_play.css('width','40px');
|
157 |
+
}
|
158 |
+
if(item.is('.last') && item.is('.first') ){
|
159 |
+
piro_prev.add(piro_next).hide();
|
160 |
+
$('.number').hide();
|
161 |
+
piro_play.remove();
|
162 |
+
}
|
163 |
+
$(piro_gallery).filter('.item').removeClass('item');
|
164 |
+
item.addClass('item');
|
165 |
+
$('.c_c').removeClass('unique');
|
166 |
+
});
|
167 |
+
});
|
168 |
+
var piro_open = function(my_url) {
|
169 |
+
piro_play.add(piro_stop).hide();
|
170 |
+
piro_close.add(caption).add(piro_next).add(piro_prev).css('visibility','hidden');
|
171 |
+
if(main_cont.is(':visible')) {
|
172 |
+
$('.c_c div').children().fadeOut(300, function() {
|
173 |
+
$('.c_c div').children().remove();
|
174 |
+
load_img(my_url);
|
175 |
+
});
|
176 |
+
} else {
|
177 |
+
$('.c_c div').children().remove();
|
178 |
+
main_cont.show();
|
179 |
+
bg_overlay.fadeIn(300,function(){
|
180 |
+
load_img(my_url);
|
181 |
+
});
|
182 |
+
}
|
183 |
+
}
|
184 |
+
var load_img = function(my_url) {
|
185 |
+
if(main_cont.is('.loading')) {return;}
|
186 |
+
main_cont.addClass('loading');
|
187 |
+
var img = new Image();
|
188 |
+
img.onerror = function (){
|
189 |
+
var main_cont_h = $(main_cont).height();
|
190 |
+
main_cont.css({marginTop : parseInt($(document).scrollTop())-(main_cont_h/1.9)});
|
191 |
+
$('.c_c div').append('<p class="err_mess">There seems to be an Error: <a href="#close" class="close_pirobox">Close Pirobox</a></p>');
|
192 |
+
$('.close_pirobox').bind('click',function(c) {
|
193 |
+
c.preventDefault();
|
194 |
+
piro_close.add(bg_overlay).add(main_cont).add(caption).add(piro_next).add(piro_prev).hide(0,function(){ img.src = '';});
|
195 |
+
main_cont.removeClass('loading');
|
196 |
+
});
|
197 |
+
}
|
198 |
+
img.onload = function() {
|
199 |
+
var imgH = img.height;
|
200 |
+
var imgW = img.width;
|
201 |
+
var main_cont_h = $(main_cont).height();
|
202 |
+
var w_H = $(window).height();
|
203 |
+
var w_W = $(window).width();
|
204 |
+
$(img).height(imgH).width(imgW).hide();
|
205 |
+
$('.c_c div').animate({height:imgH+'px',width:imgW+'px'},opt.my_speed);
|
206 |
+
var fix = imgH/w_H*2.3;
|
207 |
+
if(w_H < imgH){h_fix = fix;}else{h_fix = 2;}
|
208 |
+
main_cont.animate({
|
209 |
+
height : (imgH+40) + 'px' ,
|
210 |
+
width : (imgW+40) + 'px' ,
|
211 |
+
marginLeft : '-' +((imgW)/2+20) +'px',
|
212 |
+
marginTop : parseInt($(document).scrollTop())-(imgH/h_fix)},opt.my_speed, function(){
|
213 |
+
$('.piro_nav,.caption').css({width:(imgW)+'px','margin-bottom':'10px'});
|
214 |
+
$('.piro_nav').css('margin-left','-'+(imgW)/2+'px');
|
215 |
+
var caption_height = caption.height();
|
216 |
+
$('.c_c div').append(img);
|
217 |
+
piro_close.css('display','block');
|
218 |
+
piro_next.add(piro_prev).add(piro_close).css('visibility','visible');
|
219 |
+
caption.css({'visibility':'visible','display':'block','opacity':'0.8','overflow':'hidden'});
|
220 |
+
main_cont.hover(function(){
|
221 |
+
caption.stop().fadeTo(200,0.8);},
|
222 |
+
function(){caption.stop().fadeTo(200,0);
|
223 |
+
});
|
224 |
+
$(img).fadeIn(300);
|
225 |
+
main_cont.removeClass('loading');
|
226 |
+
if(opt.slideShow === true){
|
227 |
+
piro_play.add(piro_stop).show();
|
228 |
+
}else{
|
229 |
+
piro_play.add(piro_stop).hide();
|
230 |
+
}
|
231 |
+
});
|
232 |
+
}
|
233 |
+
img.src = my_url;
|
234 |
+
$('html').bind("keyup", function (c) {
|
235 |
+
if(c.keyCode == 27) {
|
236 |
+
c.preventDefault();
|
237 |
+
if($(img).is(':visible') || $('.c_c>div>p>a').is('.close_pirobox')){
|
238 |
+
$(piro_gallery).removeClass('slideshow').removeClass('item');
|
239 |
+
piro_close.add(bg_overlay).add(main_cont).add(caption).add(piro_next).add(piro_prev).hide(0,function(){ img.src = '';});
|
240 |
+
main_cont.removeClass('loading');
|
241 |
+
clearTimeout(timer);
|
242 |
+
$(piro_gallery).children().removeAttr('class');
|
243 |
+
$('.stop').remove();
|
244 |
+
$('.c_c').append(piro_play);
|
245 |
+
$('.sc_menu').css('display','none');
|
246 |
+
$('ul.sc_menu li a').removeClass('img_active').css('opacity','0.4');
|
247 |
+
piro_next.add(piro_prev).show().css({'top':'50%'});
|
248 |
+
$(piro_gallery).children().fadeTo(100,1);
|
249 |
+
}
|
250 |
+
}
|
251 |
+
});
|
252 |
+
$('html').bind("keyup" ,function(e) {
|
253 |
+
if ($('.item').is('.first')){
|
254 |
+
}else if(e.keyCode == 37){
|
255 |
+
e.preventDefault();
|
256 |
+
if($(img).is(':visible')){
|
257 |
+
clearTimeout(timer);
|
258 |
+
$(piro_gallery).children().removeAttr('class');
|
259 |
+
$('.stop').remove();
|
260 |
+
$('.c_c').append(piro_play);
|
261 |
+
piro_prev.click();
|
262 |
+
}
|
263 |
+
}
|
264 |
+
});
|
265 |
+
$('html').bind("keyup" ,function(z) {
|
266 |
+
if ($('.item').is('.last')){
|
267 |
+
}else if(z.keyCode == 39){
|
268 |
+
z.preventDefault();
|
269 |
+
if($(img).is(':visible')){
|
270 |
+
clearTimeout(timer);
|
271 |
+
$(piro_gallery).children().removeAttr('class');
|
272 |
+
$('.stop').remove();
|
273 |
+
$('.c_c').append(piro_play);
|
274 |
+
piro_next.click();
|
275 |
+
//alert('click')
|
276 |
+
}
|
277 |
+
}
|
278 |
+
});
|
279 |
+
var win_h = $(window).height();
|
280 |
+
piro_stop.bind('click',function(x){
|
281 |
+
x.preventDefault();
|
282 |
+
clearTimeout(timer);
|
283 |
+
$(piro_gallery).removeClass('slideshow');
|
284 |
+
$('.stop').remove();
|
285 |
+
$('.pirobox_down').append(piro_play);
|
286 |
+
piro_next.add(piro_prev).css('width',my_nav_w+'px');
|
287 |
+
});
|
288 |
+
piro_play.bind('click',function(w){
|
289 |
+
w.preventDefault();
|
290 |
+
clearTimeout(timer);
|
291 |
+
if($(img).is(':visible')){
|
292 |
+
$(piro_gallery).addClass('slideshow');
|
293 |
+
$('.play').remove();
|
294 |
+
$('.pirobox_down').append(piro_stop);
|
295 |
+
}
|
296 |
+
piro_next.add(piro_prev).css({'width':'0px'});
|
297 |
+
return slideshow();
|
298 |
+
});
|
299 |
+
$(opt.close_all).bind('click',function(c) {
|
300 |
+
$(piro_gallery).removeClass('slideshow');
|
301 |
+
clearTimeout(timer);
|
302 |
+
if($(img).is(':visible')){
|
303 |
+
c.preventDefault();
|
304 |
+
piro_close.add(bg_overlay).add(main_cont).add(caption).add(piro_next).add(piro_prev).hide(0,function(){ img.src = '';});
|
305 |
+
main_cont.removeClass('loading');
|
306 |
+
$(piro_gallery).removeClass('slideshow');
|
307 |
+
piro_next.add(piro_prev).css('width',my_nav_w+'px').hide();
|
308 |
+
$('.stop').remove();
|
309 |
+
$('.pirobox_down').append(piro_play);
|
310 |
+
piro_play.hide();
|
311 |
+
}
|
312 |
+
});
|
313 |
+
if(opt.slideShow === true){
|
314 |
+
function slideshow(){
|
315 |
+
if( $(piro_gallery).filter('.item').is('.last')){
|
316 |
+
clearTimeout(timer);
|
317 |
+
$(piro_gallery).removeClass('slideshow');
|
318 |
+
$('.stop').remove();
|
319 |
+
$('.pirobox_down').append(piro_play);
|
320 |
+
piro_next.add(piro_prev).css('width',my_nav_w+'px');
|
321 |
+
} else if($(piro_gallery).is('.slideshow' ) && $(img).is(':visible')){
|
322 |
+
clearTimeout(timer);
|
323 |
+
piro_next.click();
|
324 |
+
}
|
325 |
+
}
|
326 |
+
var timer = setInterval(slideshow,opt.slideSpeed*1000 );
|
327 |
+
}
|
328 |
+
|
329 |
+
|
330 |
+
}
|
331 |
+
}
|
332 |
+
|
333 |
+
start_pirobox();
|
334 |
+
}
|
335 |
+
})(jQuery);
|
js/magentopycho/pirobox/js/pirobox.min.js
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Name: piroBox v.1.2.2
|
3 |
+
* Date: May 2010
|
4 |
+
* Autor: Diego Valobra (http://www.pirolab.it),(http://www.diegovalobra.com)
|
5 |
+
* Version: 1.2.2
|
6 |
+
* Licence: CC-BY-SA http://creativecommons.org/licenses/by-sa/2.5/it/
|
7 |
+
**/
|
8 |
+
(function($){$.fn.piroBox=function(opt){opt=jQuery.extend({my_speed:null,close_speed:300,bg_alpha:0.5,close_all:".piro_close,.piro_overlay",slideShow:null,slideSpeed:null},opt);function start_pirobox(){var corners="<tr>"+'<td colspan="3" class="pirobox_up"></td>'+"</tr>"+"<tr>"+'<td class="t_l"></td>'+'<td class="t_c"></td>'+'<td class="t_r"></td>'+"</tr>"+"<tr>"+'<td class="c_l"></td>'+'<td class="c_c"><span><span></span></span><div></div></td>'+'<td class="c_r"></td>'+"</tr>"+"<tr>"+'<td class="b_l"></td>'+'<td class="b_c"></td>'+'<td class="b_r"></td>'+"</tr>"+"<tr>"+'<td colspan="3" class="pirobox_down"></td>'+"</tr>";var window_height=$(document).height();var bg_overlay=$(jQuery('<div class="piro_overlay"></div>').hide().css({"opacity":+opt.bg_alpha,"height":window_height+"px"}));var main_cont=$(jQuery('<table class="pirobox_content" cellpadding="0" cellspacing="0"></table>'));var caption=$(jQuery('<div class="caption"></div>'));var piro_nav=$(jQuery('<div class="piro_nav"></div>'));var piro_close=$(jQuery('<a href="#close" class="piro_close" title="close"></a>'));var piro_play=$(jQuery('<a href="#play" class="play" title="play slideshow"></a>'));var piro_stop=$(jQuery('<a href="#stop" class="stop" title="stop slideshow"></a>'));var piro_prev=$(jQuery('<a href="#prev" class="piro_prev" title="previous image"></a>'));var piro_next=$(jQuery('<a href="#next" class="piro_next" title="next image"></a>'));$("body").append(bg_overlay).append(main_cont);main_cont.append(corners);$(".pirobox_up").append(piro_close);$(".pirobox_down").append(piro_nav);$(".pirobox_down").append(piro_play);piro_play.hide();$(".pirobox_down").append(piro_prev).append(piro_next);piro_nav.append(caption);var my_nav_w=piro_prev.width();main_cont.hide();var my_gall_classes=$("a[class^='pirobox']");var map=new Object();for(var i=0;i<my_gall_classes.length;i++){var it=$(my_gall_classes[i]);map["a."+it.attr("class")]=0;}var gall_settings=new Array();for(var key in map){gall_settings.push(key);}for(var i=0;i<gall_settings.length;i++){$(gall_settings[i]).each(function(rel){this.rel=rel+1+" of "+$(gall_settings[i]).length;});var add_first=$(gall_settings[i]+":first").addClass("first");var add_last=$(gall_settings[i]+":last").addClass("last");}$(my_gall_classes).each(function(rev){this.rev=rev+0;});var imgCache=$(my_gall_classes).each(function(){this.href;});var hidden=$("body").append('<div id="imgCache" style="display:none"></div').children("#imgCache");$.each(imgCache,function(i,val){$("<div/>").css({"background":"url("+val+")"}).appendTo(hidden);});var piro_gallery=$(my_gall_classes);$.fn.fixPNG=function(){return this.each(function(){var image=$(this).css("backgroundImage");if(image.match(/^url\(["']?(.*\.png)["']?\)$/i)){image=RegExp.$1;$(this).css({"backgroundImage":"none","filter":"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod="+($(this).css("backgroundRepeat")=="no-repeat"?"crop":"scale")+", src='"+image+"')"}).each(function(){var position=$(this).css("position");if(position!="absolute"&&position!="relative"){$(this).css("position","relative");}});}});};$.browser.msie6=($.browser.msie&&/MSIE 6\.0/i.test(window.navigator.userAgent));if($.browser.msie6&&!/MSIE 8\.0/i.test(window.navigator.userAgent)){$(".t_l,.t_c,.t_r,.c_l,.c_r,.b_l,.b_c,.b_r,a.piro_next, a.piro_prev,a.piro_prev_out,a.piro_next_out,.c_c,.piro_close,a.play,a.stop").fixPNG();var ie_w_h=$(document).height();bg_overlay.css("height",ie_w_h+"px");}if($.browser.msie){opt.close_speed=0;}$(window).resize(function(){var new_w_bg=$(document).height();bg_overlay.css({"visibility":"visible","height":+new_w_bg+"px"});});piro_prev.add(piro_next).bind("click",function(c){c.preventDefault();var image_count=parseInt($(piro_gallery).filter(".item").attr("rev"));var start=$(this).is(".piro_prev_out,.piro_prev")?$(piro_gallery).eq(image_count-1):$(piro_gallery).eq(image_count+1);if(!start.size()){start=$(this).is(".piro_prev_out,.piro_prev")?$(piro_gallery).eq($(piro_gallery).size()-1):$(piro_gallery).eq(0);}start.click();piro_close.add(caption).add(piro_next).add(piro_prev).css("visibility","hidden");});$(piro_gallery).each(function(array){var item=$(this);item.unbind();item.bind("click",function(c){c.preventDefault();piro_open(item.attr("href"));var this_url=item.attr("href");var descr=item.attr("title");var number=item.attr("rel");if(descr==""){caption.html("<p>"+this_url+'<em class="number">'+number+"</em><a href="+this_url+' class="link_to" target="_blank" title="Open Image in a new window"></a></p>');}else{caption.html("<p>"+descr+'<em class="number">'+number+"</em><a href="+this_url+' class="link_to" target="_blank" title="Open Image in a new window"></a></p>');}if(item.is(".last")){$(".number").css("text-decoration","underline");}else{$(".number").css("text-decoration","none");}if(item.is(".first")){piro_prev.hide();piro_next.show();}else{piro_next.add(piro_prev).show();}if(item.is(".last")){piro_prev.show();piro_next.hide();piro_play.css("width","0");}else{piro_play.css("width","40px");}if(item.is(".last")&&item.is(".first")){piro_prev.add(piro_next).hide();$(".number").hide();piro_play.remove();}$(piro_gallery).filter(".item").removeClass("item");item.addClass("item");$(".c_c").removeClass("unique");});});var piro_open=function(my_url){piro_play.add(piro_stop).hide();piro_close.add(caption).add(piro_next).add(piro_prev).css("visibility","hidden");if(main_cont.is(":visible")){$(".c_c div").children().fadeOut(300,function(){$(".c_c div").children().remove();load_img(my_url);});}else{$(".c_c div").children().remove();main_cont.show();bg_overlay.fadeIn(300,function(){load_img(my_url);});}};var load_img=function(my_url){if(main_cont.is(".loading")){return;}main_cont.addClass("loading");var img=new Image();img.onerror=function(){var main_cont_h=$(main_cont).height();main_cont.css({marginTop:parseInt($(document).scrollTop())-(main_cont_h/1.9)});$(".c_c div").append('<p class="err_mess">There seems to be an Error: <a href="#close" class="close_pirobox">Close Pirobox</a></p>');$(".close_pirobox").bind("click",function(c){c.preventDefault();piro_close.add(bg_overlay).add(main_cont).add(caption).add(piro_next).add(piro_prev).hide(0,function(){img.src="";});main_cont.removeClass("loading");});};img.onload=function(){var imgH=img.height;var imgW=img.width;var main_cont_h=$(main_cont).height();var w_H=$(window).height();var w_W=$(window).width();$(img).height(imgH).width(imgW).hide();$(".c_c div").animate({height:imgH+"px",width:imgW+"px"},opt.my_speed);var fix=imgH/w_H*2.3;if(w_H<imgH){h_fix=fix;}else{h_fix=2;}main_cont.animate({height:(imgH+40)+"px",width:(imgW+40)+"px",marginLeft:"-"+((imgW)/2+20)+"px",marginTop:parseInt($(document).scrollTop())-(imgH/h_fix)},opt.my_speed,function(){$(".piro_nav,.caption").css({width:(imgW)+"px","margin-bottom":"10px"});$(".piro_nav").css("margin-left","-"+(imgW)/2+"px");var caption_height=caption.height();$(".c_c div").append(img);piro_close.css("display","block");piro_next.add(piro_prev).add(piro_close).css("visibility","visible");caption.css({"visibility":"visible","display":"block","opacity":"0.8","overflow":"hidden"});main_cont.hover(function(){caption.stop().fadeTo(200,0.8);},function(){caption.stop().fadeTo(200,0);});$(img).fadeIn(300);main_cont.removeClass("loading");if(opt.slideShow===true){piro_play.add(piro_stop).show();}else{piro_play.add(piro_stop).hide();}});};img.src=my_url;$("html").bind("keyup",function(c){if(c.keyCode==27){c.preventDefault();if($(img).is(":visible")||$(".c_c>div>p>a").is(".close_pirobox")){$(piro_gallery).removeClass("slideshow").removeClass("item");piro_close.add(bg_overlay).add(main_cont).add(caption).add(piro_next).add(piro_prev).hide(0,function(){img.src="";});main_cont.removeClass("loading");clearTimeout(timer);$(piro_gallery).children().removeAttr("class");$(".stop").remove();$(".c_c").append(piro_play);$(".sc_menu").css("display","none");$("ul.sc_menu li a").removeClass("img_active").css("opacity","0.4");piro_next.add(piro_prev).show().css({"top":"50%"});$(piro_gallery).children().fadeTo(100,1);}}});$("html").bind("keyup",function(e){if($(".item").is(".first")){}else{if(e.keyCode==37){e.preventDefault();if($(img).is(":visible")){clearTimeout(timer);$(piro_gallery).children().removeAttr("class");$(".stop").remove();$(".c_c").append(piro_play);piro_prev.click();}}}});$("html").bind("keyup",function(z){if($(".item").is(".last")){}else{if(z.keyCode==39){z.preventDefault();if($(img).is(":visible")){clearTimeout(timer);$(piro_gallery).children().removeAttr("class");$(".stop").remove();$(".c_c").append(piro_play);piro_next.click();}}}});var win_h=$(window).height();piro_stop.bind("click",function(x){x.preventDefault();clearTimeout(timer);$(piro_gallery).removeClass("slideshow");$(".stop").remove();$(".pirobox_down").append(piro_play);piro_next.add(piro_prev).css("width",my_nav_w+"px");});piro_play.bind("click",function(w){w.preventDefault();clearTimeout(timer);if($(img).is(":visible")){$(piro_gallery).addClass("slideshow");$(".play").remove();$(".pirobox_down").append(piro_stop);}piro_next.add(piro_prev).css({"width":"0px"});return slideshow();});$(opt.close_all).bind("click",function(c){$(piro_gallery).removeClass("slideshow");clearTimeout(timer);if($(img).is(":visible")){c.preventDefault();piro_close.add(bg_overlay).add(main_cont).add(caption).add(piro_next).add(piro_prev).hide(0,function(){img.src="";});main_cont.removeClass("loading");$(piro_gallery).removeClass("slideshow");piro_next.add(piro_prev).css("width",my_nav_w+"px").hide();$(".stop").remove();$(".pirobox_down").append(piro_play);piro_play.hide();}});if(opt.slideShow===true){function slideshow(){if($(piro_gallery).filter(".item").is(".last")){clearTimeout(timer);$(piro_gallery).removeClass("slideshow");$(".stop").remove();$(".pirobox_down").append(piro_play);piro_next.add(piro_prev).css("width",my_nav_w+"px");}else{if($(piro_gallery).is(".slideshow")&&$(img).is(":visible")){clearTimeout(timer);piro_next.click();}}}var timer=setInterval(slideshow,opt.slideSpeed*1000);}};}start_pirobox();};})(jQuery);
|
package.xml
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Mpycho_Jquery_Lightboxes</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>OSL v3.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>jQuery lightboxes is the collection of jQuery Lightbox for Magento Media Gallery. Moreover consider it as an one stop search for jQuery Lightbox for magento. Currently it includes the FancyBox, PiroBox, Lightbox Clone etc. Still more to come in newer versions.</summary>
|
10 |
+
<description>jQuery lightboxes is the collection of jQuery Lightbox for Magento Media Gallery. Moreover consider it as an one stop search for jQuery Lightbox for magento. Currently it includes the FancyBox, PiroBox, Lightbox Clone etc. Still more to come in newer versions.</description>
|
11 |
+
<notes>- Fixed the warning issues due to split() function
|
12 |
+
- Fixed the Extension taking over the default configuration page.</notes>
|
13 |
+
<authors><author><name>PHPycho</name><user>auto-converted</user><email>rajen_k_bhtt@hotmail.com</email></author></authors>
|
14 |
+
<date>2010-11-29</date>
|
15 |
+
<time>08:44:05</time>
|
16 |
+
<contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="lightboxes.xml" hash="19458cfbaa06a68bc2d25d2ecc0918f8"/></dir><dir name="template"><dir name="lightboxes"><file name="head.phtml" hash="6f0c639ba8cb4aed57957b228ef684f1"/><file name="media.phtml" hash="2df43dff2d18996ac4ef7b766aa7bc59"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="magentopycho"><file name="jquery.min.js" hash="e4958bd2e32d9fcd6115a585ed17a9cc"/><file name="no-conflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><dir name="fancybox"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="11e57e492ee0311540967cc7a1e6e3e2"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="jquery.easing-1.3.pack.js" hash="def257dbb0ab805c4996fd8abb1a6b49"/><file name="jquery.fancybox-1.3.2.css" hash="62b6a82e326429e9576c34b81c57c1c9"/><file name="jquery.fancybox-1.3.2.js" hash="9781051f683af9738fb200df1eb376f6"/><file name="jquery.fancybox-1.3.2.pack.js" hash="e495aaf910d87698081e0e2db53fca87"/><file name="jquery.mousewheel-3.0.4.pack.js" hash="3b0a821567b463e70bcc1e90ed2bc9b6"/><file name="Thumbs.db" hash="5dd66d89b9e7a196d476c3ac8f9081cf"/></dir><dir name="jquery-lightbox-0.5"><dir name="css"><file name="jquery.lightbox-0.5.css" hash="79ec543bbe42f8852aac14381b9ffff8"/></dir><dir name="images"><file name="lightbox-blank.gif" hash="fc94fb0c3ed8a8f909dbc7630a0987ff"/><file name="lightbox-btn-close.gif" hash="2c38ae5be85141bf8867c9523f4bc357"/><file name="lightbox-btn-next.gif" hash="23414965ebe526012e473c1d4d65d4e7"/><file name="lightbox-btn-prev.gif" hash="5a9118de4ef6226473190d6e82f6d80d"/><file name="lightbox-ico-loading.gif" hash="b5fe8df97005341f898e2cf84e68de01"/></dir><dir name="js"><file name="jquery.js" hash="bb122b33d64d02a106bf2230b2d41af0"/><file name="jquery.lightbox-0.5.js" hash="2f6bedebc6fde0a3f34626cc8815b344"/><file name="jquery.lightbox-0.5.min.js" hash="21c9812998af15acf69da2f91bb02363"/><file name="jquery.lightbox-0.5.pack.js" hash="f5360c03d8a989499f3e161672747dfe"/></dir></dir><dir name="pirobox"><dir name="css_pirobox"><file name="css.css" hash="dd10f3849827f49e3cde3c1e12194e56"/><dir name="demo1"><file name="ajax-loader.gif" hash="4b3afb84b2b71ef56df09997a350bd04"/><file name="b_c.png" hash="75fffb4a12279cd88466b1edb1418e4b"/><file name="b_l.png" hash="9518ae468feb7eed08c954b5d117127b"/><file name="b_r.png" hash="2672ab4e75f3d109a2d478a7545caa87"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><file name="c_l.png" hash="47e9b270c4fa90d0f230162483a78ff9"/><file name="c_r.png" hash="c859f115cde4306a39b4a8f6cee2f627"/><file name="link_out.png" hash="5cce437fb7ccb4145fce1d495862e3f3"/><file name="link_out_h.png" hash="b98ee6456aced423b5ad266d8501a05e"/><file name="next.png" hash="6dca0c5b7774178a861e8908f2dad537"/><file name="next_h.png" hash="159b2561e2f8465562f416bd580e6573"/><file name="pause.png" hash="50f67f2adb72c7f225cc689980c836dd"/><file name="pause_h.png" hash="88e0f004cc98f725e0609d46113d0665"/><file name="play.png" hash="ddc4c1038e3199b5dba07d26611f9b91"/><file name="play_h.png" hash="b19fd09b6be349ab794fddb6df53bbdf"/><file name="prev.png" hash="4d08111967598b1b7742c579238b4316"/><file name="prev_h.png" hash="81858baaa2bba9d35ad1bb4d14031965"/><file name="style.css" hash="8b4150f440aff866d29bdec6bfe4258a"/><file name="t_c.png" hash="3bea2d7b1c8160fbab212860eb219692"/><file name="t_l.png" hash="7143f9b78fa8f6328661bd519f4769b3"/><file name="t_r.png" hash="417e9123fb088a6eb3cb207a7c443095"/></dir><dir name="demo2"><file name="ajax-loader.gif" hash="af774cf54767cacc9acc77db73484e34"/><file name="b_c.png" hash="a100f7ca0c8b76491f892b83cc7b9676"/><file name="b_l.png" hash="b0dffe5a74c2a6b94140f3b51504a1df"/><file name="b_r.png" hash="fadeb0442e51de7d5ec3bd787924bd91"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><file name="c_l.png" hash="41c77a81ecf1df77eddb9f83d7f6ea83"/><file name="c_r.png" hash="882771577ec629f4aaaf9fa30a332b74"/><file name="link_out.png" hash="5cce437fb7ccb4145fce1d495862e3f3"/><file name="link_out_h.png" hash="b98ee6456aced423b5ad266d8501a05e"/><file name="next.png" hash="6dca0c5b7774178a861e8908f2dad537"/><file name="next_h.png" hash="159b2561e2f8465562f416bd580e6573"/><file name="pause.png" hash="50f67f2adb72c7f225cc689980c836dd"/><file name="pause_h.png" hash="88e0f004cc98f725e0609d46113d0665"/><file name="play.png" hash="ddc4c1038e3199b5dba07d26611f9b91"/><file name="play_h.png" hash="b19fd09b6be349ab794fddb6df53bbdf"/><file name="prev.png" hash="4d08111967598b1b7742c579238b4316"/><file name="prev_h.png" hash="81858baaa2bba9d35ad1bb4d14031965"/><file name="style.css" hash="1d55524a537a29b99e34a952a2b49053"/><file name="t_c.png" hash="e02ae5a542eb15e1b5a1e02133ee1ff2"/><file name="t_l.png" hash="ddf448039c434026d1d695072228bdd1"/><file name="t_r.png" hash="9c6fa0da64a9c33d36d440dbf452038b"/></dir><dir name="demo3"><file name="ajax-loader.gif" hash="4b3afb84b2b71ef56df09997a350bd04"/><file name="b_c.png" hash="7a4ff9b52f473cbcf5745c8c5e3f8f75"/><file name="b_l.png" hash="72460dd7277d197cc84d70d73fa51340"/><file name="b_r.png" hash="f67db5dc36cdc55580cae2b4c4e17e2a"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><file name="c_l.png" hash="d303eaa0cf6efa163c3e11089f7a1dfa"/><file name="c_r.png" hash="87d1bdc4346f93c62a89162971f35451"/><file name="link_out.png" hash="5cce437fb7ccb4145fce1d495862e3f3"/><file name="link_out_h.png" hash="b98ee6456aced423b5ad266d8501a05e"/><file name="next.png" hash="6dca0c5b7774178a861e8908f2dad537"/><file name="next_h.png" hash="159b2561e2f8465562f416bd580e6573"/><file name="pause.png" hash="50f67f2adb72c7f225cc689980c836dd"/><file name="pause_h.png" hash="88e0f004cc98f725e0609d46113d0665"/><file name="play.png" hash="ddc4c1038e3199b5dba07d26611f9b91"/><file name="play_h.png" hash="b19fd09b6be349ab794fddb6df53bbdf"/><file name="prev.png" hash="4d08111967598b1b7742c579238b4316"/><file name="prev_h.png" hash="81858baaa2bba9d35ad1bb4d14031965"/><file name="style.css" hash="8b4150f440aff866d29bdec6bfe4258a"/><file name="t_c.png" hash="aa60fb983774de76695adaec30baf512"/><file name="t_l.png" hash="1c25f414977f0e15707734455f72f7f9"/><file name="t_r.png" hash="a8b83ef6aa89eb16066b57c56af36718"/></dir><dir name="demo4"><file name="ajax-loader.gif" hash="4b3afb84b2b71ef56df09997a350bd04"/><file name="b_c.png" hash="f263d200d69176a0daf9491bbf0880b0"/><file name="b_l.png" hash="073e0d4113b9d0d6ea87f89f2917f37b"/><file name="b_r.png" hash="01daf2ada396f0b9c3194fa2eadb0812"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><file name="c_l.png" hash="dfbb93a992ade9d582cc11bd3b1ca524"/><file name="c_r.png" hash="1ea958d53920f49c077b6257b7d6d32c"/><file name="link_out.png" hash="5cce437fb7ccb4145fce1d495862e3f3"/><file name="link_out_h.png" hash="b98ee6456aced423b5ad266d8501a05e"/><file name="next.png" hash="6dca0c5b7774178a861e8908f2dad537"/><file name="next_h.png" hash="159b2561e2f8465562f416bd580e6573"/><file name="pause.png" hash="50f67f2adb72c7f225cc689980c836dd"/><file name="pause_h.png" hash="88e0f004cc98f725e0609d46113d0665"/><file name="play.png" hash="ddc4c1038e3199b5dba07d26611f9b91"/><file name="play_h.png" hash="b19fd09b6be349ab794fddb6df53bbdf"/><file name="prev.png" hash="4d08111967598b1b7742c579238b4316"/><file name="prev_h.png" hash="81858baaa2bba9d35ad1bb4d14031965"/><file name="style.css" hash="80bda63c8e2974ffcc0ac491109b08c4"/><file name="t_c.png" hash="844528ba3b95ebcc9338f2e1e526e2c4"/><file name="t_l.png" hash="306cae75bb51ae4832230abb909af9e1"/><file name="t_r.png" hash="84b88cc2fbe66c14db818486a4a0b214"/></dir><dir name="demo5"><file name="ajax-loader.gif" hash="af774cf54767cacc9acc77db73484e34"/><file name="b_c.png" hash="cd8cceedf279afbfb18047a93d41f01e"/><file name="b_l.png" hash="22fa6a4e821a4eec6bd69bf5aeee86bf"/><file name="b_r.png" hash="66a431c64512a5f97af8e4518c25652e"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><file name="c_l.png" hash="d87b25d657460807de2496133c265c1b"/><file name="c_r.png" hash="3d5eb49f2f508f103dd5d28980104bc0"/><file name="link_out.png" hash="5cce437fb7ccb4145fce1d495862e3f3"/><file name="link_out_h.png" hash="b98ee6456aced423b5ad266d8501a05e"/><file name="next.png" hash="6dca0c5b7774178a861e8908f2dad537"/><file name="next_h.png" hash="159b2561e2f8465562f416bd580e6573"/><file name="pause.png" hash="50f67f2adb72c7f225cc689980c836dd"/><file name="pause_h.png" hash="88e0f004cc98f725e0609d46113d0665"/><file name="play.png" hash="ddc4c1038e3199b5dba07d26611f9b91"/><file name="play_h.png" hash="b19fd09b6be349ab794fddb6df53bbdf"/><file name="prev.png" hash="4d08111967598b1b7742c579238b4316"/><file name="prev_h.png" hash="81858baaa2bba9d35ad1bb4d14031965"/><file name="style.css" hash="0c9432e34442a9e3fc88710684c5b119"/><file name="t_c.png" hash="2f05b3634e8c9a9039505867303ddb17"/><file name="t_l.png" hash="d5bd1e97e4a0e6880fccc9445da0a502"/><file name="t_r.png" hash="50a453d9c0e05fadb13e01034e7d3394"/></dir></dir><dir name="js"><file name="jquery.min.js" hash="65b352e1ba79f0e2a3b1e014bc2571af"/><file name="pirobox.js" hash="3828d78e783ea55198766e07a17f9b4c"/><file name="pirobox.min.js" hash="4564fa27b424a05b7dc6ae0be5f68b60"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="MagentoPycho"><dir name="All"><dir name="Block"><dir name="System"><dir name="Config"><file name="Info.php" hash="e6914d79f7c4277b4933c872d7580237"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="cafaf7b9c9d1a8cd9a4b7300e322bdb1"/><file name="system.xml" hash="c91dd320e9433dcbd9597b8624f7afaf"/></dir><dir name="Helper"><file name="Data.php" hash="576c0537873a3fc2480596e1b78143ca"/></dir></dir><dir name="Lightboxes"><dir name="Block"><file name="Lightboxes.php" hash="68cab0cd56d8e2e789bfc22ea1933d60"/><file name="Media.php" hash="6f7f5aeef2800ff469208259bf2cfe4a"/><dir name="Config"><dir name="Fancybox"><file name="Info.php" hash="af22b11a1b7f57ec61e943f3088df827"/></dir><dir name="Lightboxclone"><file name="Info.php" hash="e4d024cb32e90f7eac21d9f37f921d54"/></dir><dir name="Pirobox"><file name="Info.php" hash="c10051a6b55f83a36d907033c2a0a335"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="9db82c6d3f848a8dc4e87016878deb35"/></dir><dir name="etc"><file name="config.xml" hash="4115961307298cd4678aa2559673dde8"/><file name="system.xml" hash="4b2cb56cadb3fb7f327e8587b883917e"/></dir><dir name="Helper"><file name="Data.php" hash="2a62255f8cd42921e2f2f7b9401e37fe"/></dir><dir name="Model"><file name="Lightboxes.php" hash="c92ca82b6ec33c33b5802751260c28da"/><dir name="Config"><file name="Lightboxtypes.php" hash="b3f3222ac6a0fadf0c909c361ada7824"/><dir name="Fancybox"><file name="Easings.php" hash="33e4b5570250063ad4ff5c344cccb995"/><file name="Opacities.php" hash="f62c0bdbf452cd11f41b91653814a24a"/><file name="Scrollings.php" hash="5ec0e8c86faf64ab2694a039e289f4aa"/><file name="Speeds.php" hash="5565683f25290e8c52642a0a5a2ad9e7"/><file name="Titlepositions.php" hash="241cc96f69e00c88f49003996bd47c8d"/><file name="Transitions.php" hash="f784353fe4bd85c9d3ffd15e6b902f0a"/></dir><dir name="Lightboxclone"><file name="Opacities.php" hash="c3797d2a68b7338e50d1499e6b498fd8"/></dir><dir name="Pirobox"><file name="Bgalphas.php" hash="7204b69e57dfe38145e66c1f6d675a8b"/><file name="Themes.php" hash="0f73cfb2646e30c3c3893e729461cf34"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MagentoPycho_All.xml" hash="08ef49c26bf700e076b16ef77048ca23"/><file name="MagentoPycho_Lightboxes.xml" hash="9f1f3f5fcec3b99c1ed8c1da285b333d"/></dir></target></contents>
|
17 |
+
<compatible/>
|
18 |
+
<dependencies/>
|
19 |
+
</package>
|