Mpycho_Jquery_Lightboxes - Version 1.2.0

Version Notes

Version 1.1.0 - 1.2.0
- Tested for Magento Version 1.6.2.0
- Upgraded jQuery Version (local + Google CDN) to 1.7.1
- Added Option to include Main Image to lightbox gallery of More Views
- Added Option to change the label for ‘More Views’
- Upgraded FancyBox to version 1.3.4
- Changed the default settings of FancyBox so that it looks even more sexier
- Added new Lightbox Type: PiroBox Extended (advanced form of Pirobox)
- Added new Lightbox Type: prettyPhoto
- Code Refinement

Download this release

Release Info

Developer Magento Core Team
Extension Mpycho_Jquery_Lightboxes
Version 1.2.0
Comparing to
See all releases


Code changes from version 1.1.0 to 1.2.0

Files changed (122) hide show
  1. app/code/local/MagentoPycho/Lightboxes/Block/Config/Fancybox/Info.php +1 -1
  2. app/code/local/MagentoPycho/Lightboxes/Block/Config/Lightboxclone/Info.php +1 -1
  3. app/code/local/MagentoPycho/Lightboxes/Block/Config/Mainimagesize.php +27 -0
  4. app/code/local/MagentoPycho/Lightboxes/Block/Config/Pirobox/Info.php +2 -2
  5. app/code/local/MagentoPycho/Lightboxes/Block/Config/Piroboxextended/Info.php +32 -0
  6. app/code/local/MagentoPycho/Lightboxes/Block/Config/Popupimagesize.php +27 -0
  7. app/code/local/MagentoPycho/Lightboxes/Block/Config/Prettyphoto/Info.php +32 -0
  8. app/code/local/MagentoPycho/Lightboxes/Block/Config/Thumbnailsize.php +27 -0
  9. app/code/local/MagentoPycho/Lightboxes/Block/Media.php +0 -45
  10. app/code/local/MagentoPycho/Lightboxes/Helper/Data.php +123 -4
  11. app/code/local/MagentoPycho/Lightboxes/Model/Config/Jquerytypes.php +2 -2
  12. app/code/local/MagentoPycho/Lightboxes/Model/Config/Lightboxtypes.php +5 -3
  13. app/code/local/MagentoPycho/Lightboxes/Model/Config/Piroboxextended/Bgalphas.php +20 -0
  14. app/code/local/MagentoPycho/Lightboxes/Model/Config/Piroboxextended/Speed.php +20 -0
  15. app/code/local/MagentoPycho/Lightboxes/Model/Config/Piroboxextended/Themes.php +18 -0
  16. app/code/local/MagentoPycho/Lightboxes/Model/Config/Prettyphoto/Animationspeed.php +19 -0
  17. app/code/local/MagentoPycho/Lightboxes/Model/Config/Prettyphoto/Opacity.php +20 -0
  18. app/code/local/MagentoPycho/Lightboxes/Model/Config/Prettyphoto/Theme.php +22 -0
  19. app/code/local/MagentoPycho/Lightboxes/Model/Config/Prettyphoto/Wmode.php +18 -0
  20. app/code/local/MagentoPycho/Lightboxes/etc/config.xml +35 -10
  21. app/code/local/MagentoPycho/Lightboxes/etc/system.xml +285 -11
  22. app/design/frontend/default/default/template/lightboxes/head.phtml +4 -4
  23. app/design/frontend/default/default/template/lightboxes/jquery_inclusion.phtml +3 -3
  24. app/design/frontend/default/default/template/lightboxes/lightboxes_inclusion.phtml +25 -2
  25. app/design/frontend/default/default/template/lightboxes/lightboxes_initialization.phtml +33 -4
  26. app/design/frontend/default/default/template/lightboxes/media.phtml +17 -3
  27. js/lightboxes/fancybox/Thumbs.db +0 -0
  28. js/lightboxes/fancybox/jquery.fancybox-1.3.2.pack.js +0 -46
  29. js/lightboxes/fancybox/{jquery.fancybox-1.3.2.css → jquery.fancybox-1.3.4.css} +6 -6
  30. js/lightboxes/fancybox/{jquery.fancybox-1.3.2.js → jquery.fancybox-1.3.4.js} +46 -26
  31. js/lightboxes/fancybox/jquery.fancybox-1.3.4.pack.js +46 -0
  32. js/lightboxes/jQuery/1.7.1/jquery.min.js +4 -0
  33. js/lightboxes/pirobox_extended/css_pirobox/style_1/bottom_nav.png +0 -0
  34. js/lightboxes/pirobox_extended/css_pirobox/style_1/caption.png +0 -0
  35. js/lightboxes/pirobox_extended/css_pirobox/style_1/close.png +0 -0
  36. js/lightboxes/pirobox_extended/css_pirobox/style_1/loadinfo.gif +0 -0
  37. js/lightboxes/pirobox_extended/css_pirobox/style_1/new_skin.png +0 -0
  38. js/lightboxes/pirobox_extended/css_pirobox/style_1/new_skin_left.png +0 -0
  39. js/lightboxes/pirobox_extended/css_pirobox/style_1/new_skin_top.png +0 -0
  40. js/lightboxes/pirobox_extended/css_pirobox/style_1/next.png +0 -0
  41. js/lightboxes/pirobox_extended/css_pirobox/style_1/prev.png +0 -0
  42. js/lightboxes/pirobox_extended/css_pirobox/style_1/style.css +44 -0
  43. js/lightboxes/pirobox_extended/css_pirobox/style_2/bottom_nav.png +0 -0
  44. js/lightboxes/pirobox_extended/css_pirobox/style_2/caption.png +0 -0
  45. js/lightboxes/pirobox_extended/css_pirobox/style_2/close.png +0 -0
  46. js/lightboxes/pirobox_extended/css_pirobox/style_2/loadinfo.gif +0 -0
  47. js/lightboxes/pirobox_extended/css_pirobox/style_2/new_skin.png +0 -0
  48. js/lightboxes/pirobox_extended/css_pirobox/style_2/new_skin_left.png +0 -0
  49. js/lightboxes/pirobox_extended/css_pirobox/style_2/new_skin_top.png +0 -0
  50. js/lightboxes/pirobox_extended/css_pirobox/style_2/next.png +0 -0
  51. js/lightboxes/pirobox_extended/css_pirobox/style_2/prev.png +0 -0
  52. js/lightboxes/pirobox_extended/css_pirobox/style_2/style.css +43 -0
  53. js/lightboxes/pirobox_extended/demo.html +104 -0
  54. js/lightboxes/pirobox_extended/demo2.html +104 -0
  55. js/lightboxes/pirobox_extended/js/error.jpg +0 -0
  56. js/lightboxes/pirobox_extended/js/jquery-ui-1.8.2.custom.min.js +254 -0
  57. js/lightboxes/pirobox_extended/js/jquery.min.js +167 -0
  58. js/lightboxes/pirobox_extended/js/pirobox_extended.js +381 -0
  59. js/lightboxes/pirobox_extended/js/pirobox_extended_min.js +33 -0
  60. js/lightboxes/prettyPhoto/README +21 -0
  61. js/lightboxes/prettyPhoto/css/prettyPhoto.css +525 -0
  62. js/lightboxes/prettyPhoto/images/.DS_Store +0 -0
  63. js/lightboxes/prettyPhoto/images/fullscreen/.DS_Store +0 -0
  64. js/lightboxes/prettyPhoto/images/fullscreen/1.jpg +0 -0
  65. js/lightboxes/prettyPhoto/images/fullscreen/2.jpg +0 -0
  66. js/lightboxes/prettyPhoto/images/fullscreen/3.jpg +0 -0
  67. js/lightboxes/prettyPhoto/images/fullscreen/4.jpg +0 -0
  68. js/lightboxes/prettyPhoto/images/fullscreen/5.jpg +0 -0
  69. js/lightboxes/prettyPhoto/images/fullscreen/6.jpg +0 -0
  70. js/lightboxes/prettyPhoto/images/fullscreen/high.gif +0 -0
  71. js/lightboxes/prettyPhoto/images/fullscreen/huge.gif +0 -0
  72. js/lightboxes/prettyPhoto/images/fullscreen/wide.gif +0 -0
  73. js/lightboxes/prettyPhoto/images/prettyPhoto/dark_rounded/btnNext.png +0 -0
  74. js/lightboxes/prettyPhoto/images/prettyPhoto/dark_rounded/btnPrevious.png +0 -0
  75. js/lightboxes/prettyPhoto/images/prettyPhoto/dark_rounded/contentPattern.png +0 -0
  76. js/lightboxes/prettyPhoto/images/prettyPhoto/dark_rounded/default_thumbnail.gif +0 -0
  77. js/lightboxes/prettyPhoto/images/prettyPhoto/dark_rounded/loader.gif +0 -0
  78. js/lightboxes/prettyPhoto/images/prettyPhoto/dark_rounded/sprite.png +0 -0
  79. js/lightboxes/prettyPhoto/images/prettyPhoto/dark_square/btnNext.png +0 -0
  80. js/lightboxes/prettyPhoto/images/prettyPhoto/dark_square/btnPrevious.png +0 -0
  81. js/lightboxes/prettyPhoto/images/prettyPhoto/dark_square/contentPattern.png +0 -0
  82. js/lightboxes/prettyPhoto/images/prettyPhoto/dark_square/default_thumbnail.gif +0 -0
  83. js/lightboxes/prettyPhoto/images/prettyPhoto/dark_square/loader.gif +0 -0
  84. js/lightboxes/prettyPhoto/images/prettyPhoto/dark_square/sprite.png +0 -0
  85. js/lightboxes/prettyPhoto/images/prettyPhoto/default/default_thumb.png +0 -0
  86. js/lightboxes/prettyPhoto/images/prettyPhoto/default/loader.gif +0 -0
  87. js/lightboxes/prettyPhoto/images/prettyPhoto/default/sprite.png +0 -0
  88. js/lightboxes/prettyPhoto/images/prettyPhoto/default/sprite_next.png +0 -0
  89. js/lightboxes/prettyPhoto/images/prettyPhoto/default/sprite_prev.png +0 -0
  90. js/lightboxes/prettyPhoto/images/prettyPhoto/default/sprite_x.png +0 -0
  91. js/lightboxes/prettyPhoto/images/prettyPhoto/default/sprite_y.png +0 -0
  92. js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/btnNext.png +0 -0
  93. js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/btnPrevious.png +0 -0
  94. js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/contentPatternBottom.png +0 -0
  95. js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/contentPatternLeft.png +0 -0
  96. js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/contentPatternRight.png +0 -0
  97. js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/contentPatternTop.png +0 -0
  98. js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/default_thumbnail.gif +0 -0
  99. js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/loader.gif +0 -0
  100. js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/sprite.png +0 -0
  101. js/lightboxes/prettyPhoto/images/prettyPhoto/light_rounded/btnNext.png +0 -0
  102. js/lightboxes/prettyPhoto/images/prettyPhoto/light_rounded/btnPrevious.png +0 -0
  103. js/lightboxes/prettyPhoto/images/prettyPhoto/light_rounded/default_thumbnail.gif +0 -0
  104. js/lightboxes/prettyPhoto/images/prettyPhoto/light_rounded/loader.gif +0 -0
  105. js/lightboxes/prettyPhoto/images/prettyPhoto/light_rounded/sprite.png +0 -0
  106. js/lightboxes/prettyPhoto/images/prettyPhoto/light_square/btnNext.png +0 -0
  107. js/lightboxes/prettyPhoto/images/prettyPhoto/light_square/btnPrevious.png +0 -0
  108. js/lightboxes/prettyPhoto/images/prettyPhoto/light_square/default_thumbnail.gif +0 -0
  109. js/lightboxes/prettyPhoto/images/prettyPhoto/light_square/loader.gif +0 -0
  110. js/lightboxes/prettyPhoto/images/prettyPhoto/light_square/sprite.png +0 -0
  111. js/lightboxes/prettyPhoto/images/thumbnails/flash-logo.png +0 -0
  112. js/lightboxes/prettyPhoto/images/thumbnails/quicktime-logo.gif +0 -0
  113. js/lightboxes/prettyPhoto/images/thumbnails/t_1.jpg +0 -0
  114. js/lightboxes/prettyPhoto/images/thumbnails/t_2.jpg +0 -0
  115. js/lightboxes/prettyPhoto/images/thumbnails/t_3.jpg +0 -0
  116. js/lightboxes/prettyPhoto/images/thumbnails/t_4.jpg +0 -0
  117. js/lightboxes/prettyPhoto/images/thumbnails/t_5.jpg +0 -0
  118. js/lightboxes/prettyPhoto/index.html +236 -0
  119. js/lightboxes/prettyPhoto/js/jquery.prettyPhoto.js +905 -0
  120. js/lightboxes/prettyPhoto/js/jquery.prettyPhoto.min.js +81 -0
  121. js/lightboxes/prettyPhoto/xhr_response.html +5 -0
  122. package.xml +14 -8
app/code/local/MagentoPycho/Lightboxes/Block/Config/Fancybox/Info.php CHANGED
@@ -20,7 +20,7 @@ class MagentoPycho_Lightboxes_Block_Config_Fancybox_Info
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>
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 (1.3.4)</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>
app/code/local/MagentoPycho/Lightboxes/Block/Config/Lightboxclone/Info.php CHANGED
@@ -20,7 +20,7 @@ class MagentoPycho_Lightboxes_Block_Config_Lightboxclone_Info
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
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 (0.5)</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
app/code/local/MagentoPycho/Lightboxes/Block/Config/Mainimagesize.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MagentoPycho
4
+ * @package MagentoPycho_Lightboxes
5
+ * @author magepsycho@gmail.com
6
+ * @website http://www.magepsycho.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ class MagentoPycho_Lightboxes_Block_Config_Mainimagesize extends Mage_Adminhtml_Block_System_Config_Form_Field
10
+ {
11
+
12
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
13
+ {
14
+ $element->setStyle('width:70px;')
15
+ ->setName($element->getName() . '[]');
16
+
17
+ if ($element->getValue()) {
18
+ $values = explode(',', $element->getValue());
19
+ } else {
20
+ $values = array();
21
+ }
22
+
23
+ $from = $element->setValue(isset($values[0]) ? $values[0] : 265)->getElementHtml();
24
+ $to = $element->setValue(isset($values[1]) ? $values[1] : 265)->getElementHtml();
25
+ return $from.' '.Mage::helper('lightboxes')->__(' x '). ' '.$to ;
26
+ }
27
+ }
app/code/local/MagentoPycho/Lightboxes/Block/Config/Pirobox/Info.php CHANGED
@@ -20,9 +20,9 @@ class MagentoPycho_Lightboxes_Block_Config_Pirobox_Info
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
  ';
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 (1.2.2)</h4>
24
  <p>PiroBox is yet another cool jQuery LightBox plugin.<br /><br />
25
+ Currently it\'s further development is carried under the name of <strong>PiroBox Extended</strong>.
26
  </p>
27
  </div>
28
  ';
app/code/local/MagentoPycho/Lightboxes/Block/Config/Piroboxextended/Info.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MagentoPycho
4
+ * @package MagentoPycho_Lightboxes
5
+ * @author magepsycho@gmail.com
6
+ * @website http://www.magepsycho.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ class MagentoPycho_Lightboxes_Block_Config_Piroboxextended_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 Extended (1.0)</h4>
24
+ <p>PiroBox Extended is advanced form of PiroBox (1.2.2) which has the ability to open any type of file, from inLine content to swf files, likewise, from simple images to pdf files.<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/Config/Popupimagesize.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MagentoPycho
4
+ * @package MagentoPycho_Lightboxes
5
+ * @author magepsycho@gmail.com
6
+ * @website http://www.magepsycho.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ class MagentoPycho_Lightboxes_Block_Config_Popupimagesize extends Mage_Adminhtml_Block_System_Config_Form_Field
10
+ {
11
+
12
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
13
+ {
14
+ $element->setStyle('width:70px;')
15
+ ->setName($element->getName() . '[]');
16
+
17
+ if ($element->getValue()) {
18
+ $values = explode(',', $element->getValue());
19
+ } else {
20
+ $values = array();
21
+ }
22
+
23
+ $from = $element->setValue(isset($values[0]) ? $values[0] : '')->getElementHtml();
24
+ $to = $element->setValue(isset($values[1]) ? $values[1] : '')->getElementHtml();
25
+ return $from.' '.Mage::helper('lightboxes')->__(' x '). ' '.$to ;
26
+ }
27
+ }
app/code/local/MagentoPycho/Lightboxes/Block/Config/Prettyphoto/Info.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MagentoPycho
4
+ * @package MagentoPycho_Lightboxes
5
+ * @author magepsycho@gmail.com
6
+ * @website http://www.magepsycho.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ class MagentoPycho_Lightboxes_Block_Config_Prettyphoto_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 prettyPhoto (3.1.3)</h4>
24
+ <p>prettyPhoto is a jQuery lightbox clone. Not only does it support images, it also support for videos, flash, YouTube, iframes and ajax. It’s a full blown media lightbox.<br />
25
+ Click here for more details: <a href="http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/" target="_blank" >Homepage</a> | <a href="http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/documentation/" target="_blank">Documentation</a>
26
+ </p>
27
+ </div>
28
+ ';
29
+
30
+ return $html;
31
+ }
32
+ }
app/code/local/MagentoPycho/Lightboxes/Block/Config/Thumbnailsize.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MagentoPycho
4
+ * @package MagentoPycho_Lightboxes
5
+ * @author magepsycho@gmail.com
6
+ * @website http://www.magepsycho.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ class MagentoPycho_Lightboxes_Block_Config_Thumbnailsize extends Mage_Adminhtml_Block_System_Config_Form_Field
10
+ {
11
+
12
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
13
+ {
14
+ $element->setStyle('width:70px;')
15
+ ->setName($element->getName() . '[]');
16
+
17
+ if ($element->getValue()) {
18
+ $values = explode(',', $element->getValue());
19
+ } else {
20
+ $values = array();
21
+ }
22
+
23
+ $from = $element->setValue(isset($values[0]) ? $values[0] : 57)->getElementHtml();
24
+ $to = $element->setValue(isset($values[1]) ? $values[1] : 57)->getElementHtml();
25
+ return $from.' '.Mage::helper('lightboxes')->__(' x '). ' '.$to ;
26
+ }
27
+ }
app/code/local/MagentoPycho/Lightboxes/Block/Media.php DELETED
@@ -1,45 +0,0 @@
1
- <?php
2
- /**
3
- * @category MagentoPycho
4
- * @package MagentoPycho_Lightboxes
5
- * @author magepsycho@gmail.com
6
- * @website http://www.magepsycho.com
7
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
- */
9
- /**
10
- * @depracted from 1.0.4
11
- */
12
- class MagentoPycho_Lightboxes_Block_Media extends Mage_Catalog_Block_Product_View_Media
13
- {
14
- public function getConfig($field, $group = 'option', $default = null){
15
- return Mage::helper('lightboxes')->getConfig($field, $group, $default);
16
- }
17
-
18
- public function getMainImageSize()
19
- {
20
- return Mage::helper('lightboxes')->getMainImageSize();
21
- }
22
-
23
- public function getThumbnailImageSize()
24
- {
25
- return Mage::helper('lightboxes')->getThumbnailImageSize();
26
- }
27
-
28
- public function getPopupImageSize()
29
- {
30
- return Mage::helper('lightboxes')->getPopupImageSize();
31
- }
32
-
33
- public function getFancyboxJsConfig(){
34
- return Mage::helper('lightboxes')->getFancyboxJsConfig();
35
- }
36
-
37
- public function getLightboxcloneJsConfig(){
38
- return Mage::helper('lightboxes')->getLightboxcloneJsConfig();
39
- }
40
-
41
- public function getPiroboxJsConfig(){
42
- return Mage::helper('lightboxes')->getPiroboxJsConfig();
43
- }
44
-
45
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MagentoPycho/Lightboxes/Helper/Data.php CHANGED
@@ -17,13 +17,27 @@ class MagentoPycho_Lightboxes_Helper_Data extends Mage_Core_Helper_Abstract
17
  }
18
  }
19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  public function getLightboxUrl(){
21
  return Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . 'lightboxes';
22
  }
23
 
24
  public function getMainImageSize()
25
  {
26
- list($main_width, $main_height) = explode('x', $this->getConfig('mainimage_size', 'option', '265x265'));
27
 
28
  $main_width = intval($main_width) > 0 ? intval($main_width) : 265;
29
  $main_height = intval($main_height) > 0 ? intval($main_height) : 265;
@@ -33,7 +47,7 @@ class MagentoPycho_Lightboxes_Helper_Data extends Mage_Core_Helper_Abstract
33
 
34
  public function getThumbnailImageSize()
35
  {
36
- list($thu_width, $thu_height) = explode('x', $this->getConfig('thumbnail_size', 'option', '57x57'));
37
 
38
  $thu_width = intval($thu_width) > 0 ? intval($thu_width) : 57;
39
  $thu_height = intval($thu_height) > 0 ? intval($thu_height) : 57;
@@ -43,7 +57,7 @@ class MagentoPycho_Lightboxes_Helper_Data extends Mage_Core_Helper_Abstract
43
 
44
  public function getPopupImageSize()
45
  {
46
- $sizes = explode('x', $this->getConfig('popupimage_size', 'option'));
47
 
48
  $big_width = isset($sizes[0]) ? $sizes[0] : '';
49
  $big_height = isset($sizes[1]) ? $sizes[1] : '';
@@ -66,6 +80,12 @@ class MagentoPycho_Lightboxes_Helper_Data extends Mage_Core_Helper_Abstract
66
  case 'pirobox':
67
  $rel = 'pirobox';
68
  break;
 
 
 
 
 
 
69
  default:
70
  $rel = '';
71
  break;
@@ -76,6 +96,34 @@ class MagentoPycho_Lightboxes_Helper_Data extends Mage_Core_Helper_Abstract
76
  return $rel;
77
  }
78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  public function getFancyboxJsConfig(){
80
  $js_string = '';
81
  if($this->getConfig('padding', 'fancybox')){
@@ -204,7 +252,78 @@ class MagentoPycho_Lightboxes_Helper_Data extends Mage_Core_Helper_Abstract
204
  }
205
 
206
  $js_string .= "close_all : '.piro_close,.piro_overlay'" . PHP_EOL;
207
- $js_string = rtrim($js_string, ",".PHP_EOL).PHP_EOL;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
208
 
209
  return $js_string;
210
  }
17
  }
18
  }
19
 
20
+ public function log($data){
21
+ if(!$this->getConfig('enable_log')){
22
+ return;
23
+ }
24
+ if(is_array($data) || is_object($data)){
25
+ $data = print_r($data, true);
26
+ }
27
+ Mage::log($data, null, 'lightboxes.log');
28
+ }
29
+
30
+ public function isActive(){
31
+ return $this->getConfig('active');
32
+ }
33
+
34
  public function getLightboxUrl(){
35
  return Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . 'lightboxes';
36
  }
37
 
38
  public function getMainImageSize()
39
  {
40
+ list($main_width, $main_height) = explode(',', $this->getConfig('mainimage_size', 'option', '265,265'));
41
 
42
  $main_width = intval($main_width) > 0 ? intval($main_width) : 265;
43
  $main_height = intval($main_height) > 0 ? intval($main_height) : 265;
47
 
48
  public function getThumbnailImageSize()
49
  {
50
+ list($thu_width, $thu_height) = explode(',', $this->getConfig('thumbnail_size', 'option', '57,57'));
51
 
52
  $thu_width = intval($thu_width) > 0 ? intval($thu_width) : 57;
53
  $thu_height = intval($thu_height) > 0 ? intval($thu_height) : 57;
57
 
58
  public function getPopupImageSize()
59
  {
60
+ $sizes = explode(',', $this->getConfig('popupimage_size', 'option'));
61
 
62
  $big_width = isset($sizes[0]) ? $sizes[0] : '';
63
  $big_height = isset($sizes[1]) ? $sizes[1] : '';
80
  case 'pirobox':
81
  $rel = 'pirobox';
82
  break;
83
+ case 'piroboxextended':
84
+ $rel = 'gallery';
85
+ break;
86
+ case 'prettyphoto':
87
+ $rel = 'prettyPhoto[media_gallery]';
88
+ break;
89
  default:
90
  $rel = '';
91
  break;
96
  return $rel;
97
  }
98
 
99
+ public function getLightboxClass($lightboxType, $default = ''){
100
+ $class = '';
101
+ switch($lightboxType){
102
+ case 'fancybox':
103
+ $class = '';
104
+ break;
105
+ case 'lightboxclone':
106
+ $class = '';
107
+ break;
108
+ case 'pirobox':
109
+ $class = 'pirobox';
110
+ break;
111
+ case 'piroboxextended':
112
+ $class = 'pirobox_gall';
113
+ break;
114
+ case 'prettyphoto':
115
+ $class = '';
116
+ break;
117
+ default:
118
+ $class = '';
119
+ break;
120
+ }
121
+ if(!empty($default)){
122
+ $class .= $default;
123
+ }
124
+ return $class;
125
+ }
126
+
127
  public function getFancyboxJsConfig(){
128
  $js_string = '';
129
  if($this->getConfig('padding', 'fancybox')){
252
  }
253
 
254
  $js_string .= "close_all : '.piro_close,.piro_overlay'" . PHP_EOL;
255
+ $js_string = rtrim($js_string, ",".PHP_EOL).PHP_EOL;
256
+
257
+ return $js_string;
258
+ }
259
+
260
+ public function getPiroboxExtendedJsConfig(){
261
+ $js_string = '';
262
+ if($piro_speed = $this->getConfig('piro_speed', 'piroboxextended')){
263
+ $js_string .= "piro_speed : " . $piro_speed . "," . PHP_EOL;
264
+ }
265
+ if($this->getConfig('bg_alpha', 'piroboxextended') != ''){
266
+ $js_string .= "bg_alpha : " . $this->getConfig('bg_alpha', 'piroboxextended') . "," . PHP_EOL;
267
+ }
268
+ if($this->getConfig('piro_scroll', 'piroboxextended') != ''){
269
+ $js_string .= "piro_scroll : " . $this->getConfig('piro_scroll', 'piroboxextended') . "," . PHP_EOL;
270
+ }
271
+
272
+ $js_string = rtrim($js_string, ",".PHP_EOL).PHP_EOL;
273
+
274
+ return $js_string;
275
+ }
276
+
277
+ public function getPrettyphotoJsConfig(){
278
+ $js_string = '';
279
+ if($this->getConfig('animation_speed', 'prettyphoto') != ''){
280
+ $js_string .= "animation_speed : '" . $this->getConfig('animation_speed', 'prettyphoto') . "'," . PHP_EOL;
281
+ }
282
+ if($this->getConfig('slideshow', 'prettyphoto') != ''){
283
+ $js_string .= "slideshow : " . $this->getConfig('slideshow', 'prettyphoto') . "," . PHP_EOL;
284
+ }
285
+ if($this->getConfig('autoplay_slideshow', 'prettyphoto') != ''){
286
+ $js_string .= "autoplay_slideshow : " . $this->getConfig('autoplay_slideshow', 'prettyphoto') . "," . PHP_EOL;
287
+ }
288
+ if($this->getConfig('opacity', 'prettyphoto') != ''){
289
+ $js_string .= "opacity : " . $this->getConfig('opacity', 'prettyphoto') . "," . PHP_EOL;
290
+ }
291
+ if($this->getConfig('show_title', 'prettyphoto') != ''){
292
+ $js_string .= "show_title : " . $this->getConfig('show_title', 'prettyphoto') . "," . PHP_EOL;
293
+ }
294
+ if($this->getConfig('allow_resize', 'prettyphoto') != ''){
295
+ $js_string .= "allow_resize : " . $this->getConfig('allow_resize', 'prettyphoto') . "," . PHP_EOL;
296
+ }
297
+ if($this->getConfig('default_width', 'prettyphoto') != ''){
298
+ $js_string .= "default_width : " . $this->getConfig('default_width', 'prettyphoto') . "," . PHP_EOL;
299
+ }
300
+ if($this->getConfig('default_height', 'prettyphoto') != ''){
301
+ $js_string .= "default_height : " . $this->getConfig('default_height', 'prettyphoto') . "," . PHP_EOL;
302
+ }
303
+ if($this->getConfig('counter_separator_label', 'prettyphoto') != ''){
304
+ $js_string .= "counter_separator_label : '" . $this->getConfig('counter_separator_label', 'prettyphoto') . "'," . PHP_EOL;
305
+ }
306
+ if($this->getConfig('theme', 'prettyphoto') != ''){
307
+ $js_string .= "theme : '" . $this->getConfig('theme', 'prettyphoto') . "'," . PHP_EOL;
308
+ }
309
+ if($this->getConfig('horizontal_padding', 'prettyphoto') != ''){
310
+ $js_string .= "horizontal_padding : " . $this->getConfig('horizontal_padding', 'prettyphoto') . "," . PHP_EOL;
311
+ }
312
+ if($this->getConfig('hideflash', 'prettyphoto') != ''){
313
+ $js_string .= "hideflash : " . $this->getConfig('hideflash', 'prettyphoto') . "," . PHP_EOL;
314
+ }
315
+ if($this->getConfig('modal', 'prettyphoto') != ''){
316
+ $js_string .= "modal : " . $this->getConfig('modal', 'prettyphoto') . "," . PHP_EOL;
317
+ }
318
+ if($this->getConfig('overlay_gallery', 'prettyphoto') != ''){
319
+ $js_string .= "overlay_gallery : " . $this->getConfig('overlay_gallery', 'prettyphoto') . "," . PHP_EOL;
320
+ }
321
+ if(!$this->getConfig('social_tools', 'prettyphoto')){
322
+ $js_string .= "social_tools : " . $this->getConfig('social_tools', 'prettyphoto') . "," . PHP_EOL;
323
+ }
324
+
325
+
326
+ $js_string = rtrim($js_string, ",".PHP_EOL).PHP_EOL;
327
 
328
  return $js_string;
329
  }
app/code/local/MagentoPycho/Lightboxes/Model/Config/Jquerytypes.php CHANGED
@@ -11,8 +11,8 @@ class MagentoPycho_Lightboxes_Model_Config_jquerytypes
11
  public function toOptionArray()
12
  {
13
  return array(
14
- 'local' => Mage::helper('lightboxes')->__('Local'),
15
- 'google' => Mage::helper('lightboxes')->__('Google CDN'),
16
  );
17
  }
18
  }
11
  public function toOptionArray()
12
  {
13
  return array(
14
+ 'local' => Mage::helper('lightboxes')->__('Local (Version 1.7.1)'),
15
+ 'google' => Mage::helper('lightboxes')->__('Google CDN (Version 1.7.1)'),
16
  );
17
  }
18
  }
app/code/local/MagentoPycho/Lightboxes/Model/Config/Lightboxtypes.php CHANGED
@@ -11,9 +11,11 @@ class MagentoPycho_Lightboxes_Model_Config_Lightboxtypes
11
  public function toOptionArray()
12
  {
13
  return array(
14
- 'fancybox' => Mage::helper('lightboxes')->__('FancyBox'),
15
- 'pirobox' => Mage::helper('lightboxes')->__('PiroBox'),
16
- 'lightboxclone' => Mage::helper('lightboxes')->__('Lightbox Clone'),
 
 
17
  );
18
  }
19
  }
11
  public function toOptionArray()
12
  {
13
  return array(
14
+ 'fancybox' => Mage::helper('lightboxes')->__('FancyBox'),
15
+ 'pirobox' => Mage::helper('lightboxes')->__('PiroBox'),
16
+ 'piroboxextended' => Mage::helper('lightboxes')->__('PiroBox Extended'),
17
+ 'prettyphoto' => Mage::helper('lightboxes')->__('prettyPhoto'),
18
+ 'lightboxclone' => Mage::helper('lightboxes')->__('Lightbox Clone'),
19
  );
20
  }
21
  }
app/code/local/MagentoPycho/Lightboxes/Model/Config/Piroboxextended/Bgalphas.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MagentoPycho
4
+ * @package MagentoPycho_Lightboxes
5
+ * @author magepsycho@gmail.com
6
+ * @website http://www.magepsycho.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ class MagentoPycho_Lightboxes_Model_Config_Piroboxextended_Bgalphas
10
+ {
11
+ public function toOptionArray()
12
+ {
13
+ $range = range(0, 1, 0.1);
14
+ $array = array();
15
+ foreach($range as $val){
16
+ $array["$val"] = $val;
17
+ }
18
+ return $array;
19
+ }
20
+ }
app/code/local/MagentoPycho/Lightboxes/Model/Config/Piroboxextended/Speed.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MagentoPycho
4
+ * @package MagentoPycho_Lightboxes
5
+ * @author magepsycho@gmail.com
6
+ * @website http://www.magepsycho.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ class MagentoPycho_Lightboxes_Model_Config_Piroboxextended_Speed
10
+ {
11
+ public function toOptionArray()
12
+ {
13
+ $range = range(500, 1000, 100);
14
+ $array = array();
15
+ foreach($range as $val){
16
+ $array[$val] = $val;
17
+ }
18
+ return $array;
19
+ }
20
+ }
app/code/local/MagentoPycho/Lightboxes/Model/Config/Piroboxextended/Themes.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MagentoPycho
4
+ * @package MagentoPycho_Lightboxes
5
+ * @author magepsycho@gmail.com
6
+ * @website http://www.magepsycho.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ class MagentoPycho_Lightboxes_Model_Config_Piroboxextended_Themes
10
+ {
11
+ public function toOptionArray()
12
+ {
13
+ return array(
14
+ 'style_1' => Mage::helper('lightboxes')->__('Style 1'),
15
+ 'style_2' => Mage::helper('lightboxes')->__('Style 2'),
16
+ );
17
+ }
18
+ }
app/code/local/MagentoPycho/Lightboxes/Model/Config/Prettyphoto/Animationspeed.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MagentoPycho
4
+ * @package MagentoPycho_Lightboxes
5
+ * @author magepsycho@gmail.com
6
+ * @website http://www.magepsycho.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ class MagentoPycho_Lightboxes_Model_Config_Prettyphoto_Animationspeed
10
+ {
11
+ public function toOptionArray()
12
+ {
13
+ return array(
14
+ 'fast' => Mage::helper('lightboxes')->__('fast'),
15
+ 'slow' => Mage::helper('lightboxes')->__('slow'),
16
+ 'normal' => Mage::helper('lightboxes')->__('normal'),
17
+ );
18
+ }
19
+ }
app/code/local/MagentoPycho/Lightboxes/Model/Config/Prettyphoto/Opacity.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MagentoPycho
4
+ * @package MagentoPycho_Lightboxes
5
+ * @author magepsycho@gmail.com
6
+ * @website http://www.magepsycho.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ class MagentoPycho_Lightboxes_Model_Config_Prettyphoto_Opacity
10
+ {
11
+ public function toOptionArray()
12
+ {
13
+ $range = range(0, 1, 0.1);
14
+ $array = array();
15
+ foreach($range as $val){
16
+ $array["$val"] = $val;
17
+ }
18
+ return $array;
19
+ }
20
+ }
app/code/local/MagentoPycho/Lightboxes/Model/Config/Prettyphoto/Theme.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MagentoPycho
4
+ * @package MagentoPycho_Lightboxes
5
+ * @author magepsycho@gmail.com
6
+ * @website http://www.magepsycho.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ class MagentoPycho_Lightboxes_Model_Config_Prettyphoto_Theme
10
+ {
11
+ public function toOptionArray()
12
+ {
13
+ return array(
14
+ 'pp_default' => Mage::helper('lightboxes')->__('pp_default'),
15
+ 'light_rounded' => Mage::helper('lightboxes')->__('light_rounded'),
16
+ 'dark_rounded' => Mage::helper('lightboxes')->__('dark_rounded'),
17
+ 'light_square' => Mage::helper('lightboxes')->__('light_square'),
18
+ 'dark_square' => Mage::helper('lightboxes')->__('dark_square'),
19
+ 'facebook' => Mage::helper('lightboxes')->__('facebook'),
20
+ );
21
+ }
22
+ }
app/code/local/MagentoPycho/Lightboxes/Model/Config/Prettyphoto/Wmode.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MagentoPycho
4
+ * @package MagentoPycho_Lightboxes
5
+ * @author magepsycho@gmail.com
6
+ * @website http://www.magepsycho.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ class MagentoPycho_Lightboxes_Model_Config_Prettyphoto_Wmode
10
+ {
11
+ public function toOptionArray()
12
+ {
13
+ return array(
14
+ 'opaque' => Mage::helper('lightboxes')->__('opaque'),
15
+ 'transparent' => Mage::helper('lightboxes')->__('transparent'),
16
+ );
17
+ }
18
+ }
app/code/local/MagentoPycho/Lightboxes/etc/config.xml CHANGED
@@ -11,7 +11,7 @@
11
  <config>
12
  <modules>
13
  <MagentoPycho_Lightboxes>
14
- <version>1.1.0</version>
15
  </MagentoPycho_Lightboxes>
16
  </modules>
17
  <global>
@@ -24,11 +24,6 @@
24
  <lightboxes>
25
  <class>MagentoPycho_Lightboxes_Block</class>
26
  </lightboxes>
27
- <!--<catalog>
28
- <rewrite>
29
- <product_view_media>MagentoPycho_Lightboxes_Block_Media</product_view_media>
30
- </rewrite>
31
- </catalog>-->
32
  </blocks>
33
  <helpers>
34
  <lightboxes>
@@ -82,10 +77,12 @@
82
  <lightboxes>
83
  <option>
84
  <active>1</active>
 
85
  <include_jquery>1</include_jquery>
86
  <lightbox_type>fancybox</lightbox_type>
87
- <include_globally>0</include_globally>
88
  <disable_zoombar>1</disable_zoombar>
 
 
89
  </option>
90
  <lightboxes_confliction>
91
  <include_jquery>1</include_jquery>
@@ -93,10 +90,12 @@
93
  <include_jquery_in>head</include_jquery_in>
94
  <include_lighboxes_in>head</include_lighboxes_in>
95
  <include_initialization_in>media</include_initialization_in>
 
96
  </lightboxes_confliction>
97
  <fancybox>
98
  <padding>10</padding>
99
- <margin>20</margin>
 
100
  <scrolling>auto</scrolling>
101
  <autoScale>1</autoScale>
102
  <titlePosition>outside</titlePosition>
@@ -106,9 +105,12 @@
106
  <easingOut>easeInBack</easingOut>-->
107
  <hideOnOverlayClick>1</hideOnOverlayClick>
108
  <overlayShow>1</overlayShow>
109
- <overlayOpacity>0.3</overlayOpacity>
110
- <overlayColor>#666</overlayColor>
111
  <titleShow>1</titleShow>
 
 
 
112
  <showCloseButton>1</showCloseButton>
113
  <showNavArrows>1</showNavArrows>
114
  <enableEscapeButton>1</enableEscapeButton>
@@ -128,6 +130,29 @@
128
  <slideShow>1</slideShow>
129
  <slideSpeed>3</slideSpeed>
130
  </pirobox>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  </lightboxes>
132
  </default>
133
  </config>
11
  <config>
12
  <modules>
13
  <MagentoPycho_Lightboxes>
14
+ <version>1.2.0</version>
15
  </MagentoPycho_Lightboxes>
16
  </modules>
17
  <global>
24
  <lightboxes>
25
  <class>MagentoPycho_Lightboxes_Block</class>
26
  </lightboxes>
 
 
 
 
 
27
  </blocks>
28
  <helpers>
29
  <lightboxes>
77
  <lightboxes>
78
  <option>
79
  <active>1</active>
80
+ <enable_log>1</enable_log>
81
  <include_jquery>1</include_jquery>
82
  <lightbox_type>fancybox</lightbox_type>
 
83
  <disable_zoombar>1</disable_zoombar>
84
+ <include_mainimage_in_lightbox>1</include_mainimage_in_lightbox>
85
+ <more_views_label>More Views</more_views_label>
86
  </option>
87
  <lightboxes_confliction>
88
  <include_jquery>1</include_jquery>
90
  <include_jquery_in>head</include_jquery_in>
91
  <include_lighboxes_in>head</include_lighboxes_in>
92
  <include_initialization_in>media</include_initialization_in>
93
+ <include_globally>0</include_globally>
94
  </lightboxes_confliction>
95
  <fancybox>
96
  <padding>10</padding>
97
+ <margin>40</margin>
98
+ <opacity>1</opacity>
99
  <scrolling>auto</scrolling>
100
  <autoScale>1</autoScale>
101
  <titlePosition>outside</titlePosition>
105
  <easingOut>easeInBack</easingOut>-->
106
  <hideOnOverlayClick>1</hideOnOverlayClick>
107
  <overlayShow>1</overlayShow>
108
+ <overlayOpacity>0.7</overlayOpacity>
109
+ <overlayColor>#777</overlayColor>
110
  <titleShow>1</titleShow>
111
+ <speedIn>500</speedIn>
112
+ <speedOut>500</speedOut>
113
+ <changeSpeed>300</changeSpeed>
114
  <showCloseButton>1</showCloseButton>
115
  <showNavArrows>1</showNavArrows>
116
  <enableEscapeButton>1</enableEscapeButton>
130
  <slideShow>1</slideShow>
131
  <slideSpeed>3</slideSpeed>
132
  </pirobox>
133
+ <piroboxextended>
134
+ <style>style_1</style>
135
+ <piro_speed>700</piro_speed>
136
+ <bg_alpha>0.5</bg_alpha>
137
+ <piro_scroll>1</piro_scroll>
138
+ </piroboxextended>
139
+ <prettyphoto>
140
+ <animation_speed>fast</animation_speed>
141
+ <slideshow>5000</slideshow>
142
+ <autoplay_slideshow>0</autoplay_slideshow>
143
+ <opacity>0.8</opacity>
144
+ <show_title>1</show_title>
145
+ <allow_resize>1</allow_resize>
146
+ <default_width>500</default_width>
147
+ <default_height>344</default_height>
148
+ <counter_separator_label>/</counter_separator_label>
149
+ <theme>pp_default</theme>
150
+ <horizontal_padding>20</horizontal_padding>
151
+ <hideflash>0</hideflash>
152
+ <modal>0</modal>
153
+ <overlay_gallery>1</overlay_gallery>
154
+ <social_tools>0</social_tools>
155
+ </prettyphoto>
156
  </lightboxes>
157
  </default>
158
  </config>
app/code/local/MagentoPycho/Lightboxes/etc/system.xml CHANGED
@@ -64,7 +64,8 @@
64
  <label>Lightbox Type</label>
65
  <frontend_type>select</frontend_type>
66
  <source_model>lightboxes/config_lightboxtypes</source_model>
67
- <sort_order>30</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[You can customize the settings of selected Lightbox Type from the below tabs.]]></comment>
@@ -72,36 +73,61 @@
72
  <mainimage_size translate="label">
73
  <label>Main Image Size</label>
74
  <frontend_type>text</frontend_type>
75
- <sort_order>31</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. Example: 265x265]]></comment>
79
  </mainimage_size>
80
  <thumbnail_size translate="label">
81
  <label>Thumbnail Size</label>
82
  <frontend_type>text</frontend_type>
83
- <sort_order>32</sort_order><show_in_default>1</show_in_default>
 
 
84
  <show_in_website>1</show_in_website>
85
  <show_in_store>1</show_in_store>
86
- <comment><![CDATA[Size in [Width]x[Height] Format. Example: 57x57]]></comment>
87
  </thumbnail_size>
88
  <popupimage_size translate="label">
89
  <label>Popup Image Size</label>
90
  <frontend_type>text</frontend_type>
91
- <sort_order>33</sort_order><show_in_default>1</show_in_default>
 
 
92
  <show_in_website>1</show_in_website>
93
  <show_in_store>1</show_in_store>
94
- <comment><![CDATA[Size in [Width]x[Height] Format. Example: 800x600]]></comment>
95
  </popupimage_size>
96
- <disable_zoombar translate="label">
97
  <label>Disable Zoom Bar</label>
98
  <frontend_type>select</frontend_type>
99
  <source_model>adminhtml/system_config_source_yesno</source_model>
100
- <sort_order>34</sort_order><show_in_default>1</show_in_default>
 
101
  <show_in_website>1</show_in_website>
102
  <show_in_store>1</show_in_store>
103
  <comment><![CDATA[This will hide the default Zoom bar and will give main image the lightbox effect.]]></comment>
104
  </disable_zoombar>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  </fields>
106
  </option>
107
 
@@ -137,7 +163,7 @@
137
  <show_in_website>1</show_in_website>
138
  <show_in_store>1</show_in_store>
139
  <depends><include_jquery>1</include_jquery></depends>
140
- <comment><![CDATA[You can use Google CDN if your site goes live as this will decrease the load time for jQuery. If you are using Google CDN option when you are in localhost, make sure to check the internet connection. <br />Default: Local]]></comment>
141
  </include_jquery_from>
142
  <include_jquery_in translate="label">
143
  <label>Include jQuery file in</label>
@@ -395,6 +421,15 @@
395
  <show_in_store>1</show_in_store>
396
  <comment><![CDATA[Speed of the fade and elastic transitions, in milliseconds]]></comment>
397
  </speedOut>
 
 
 
 
 
 
 
 
 
398
  <changeFade translate="label">
399
  <label>changeFade</label>
400
  <frontend_type>select</frontend_type>
@@ -521,10 +556,249 @@
521
  </slideSpeed>
522
  </fields>
523
  </pirobox>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
524
  <lightboxclone>
525
  <label>Lightbox Clone</label>
526
  <frontend_type>text</frontend_type>
527
- <sort_order>400</sort_order>
528
  <show_in_default>1</show_in_default>
529
  <show_in_website>1</show_in_website>
530
  <show_in_store>1</show_in_store>
64
  <label>Lightbox Type</label>
65
  <frontend_type>select</frontend_type>
66
  <source_model>lightboxes/config_lightboxtypes</source_model>
67
+ <sort_order>20</sort_order>
68
+ <show_in_default>1</show_in_default>
69
  <show_in_website>1</show_in_website>
70
  <show_in_store>1</show_in_store>
71
  <comment><![CDATA[You can customize the settings of selected Lightbox Type from the below tabs.]]></comment>
73
  <mainimage_size translate="label">
74
  <label>Main Image Size</label>
75
  <frontend_type>text</frontend_type>
76
+ <frontend_model>lightboxes/config_mainimagesize</frontend_model>
77
+ <sort_order>30</sort_order>
78
+ <show_in_default>1</show_in_default>
79
  <show_in_website>1</show_in_website>
80
  <show_in_store>1</show_in_store>
81
+ <comment><![CDATA[Size in [Width]x[Height] Format. Default: 265x265]]></comment>
82
  </mainimage_size>
83
  <thumbnail_size translate="label">
84
  <label>Thumbnail Size</label>
85
  <frontend_type>text</frontend_type>
86
+ <frontend_model>lightboxes/config_thumbnailsize</frontend_model>
87
+ <sort_order>40</sort_order>
88
+ <show_in_default>1</show_in_default>
89
  <show_in_website>1</show_in_website>
90
  <show_in_store>1</show_in_store>
91
+ <comment><![CDATA[Size in [Width]x[Height] Format. Default: 57x57]]></comment>
92
  </thumbnail_size>
93
  <popupimage_size translate="label">
94
  <label>Popup Image Size</label>
95
  <frontend_type>text</frontend_type>
96
+ <frontend_model>lightboxes/config_popupimagesize</frontend_model>
97
+ <sort_order>50</sort_order>
98
+ <show_in_default>1</show_in_default>
99
  <show_in_website>1</show_in_website>
100
  <show_in_store>1</show_in_store>
101
+ <comment><![CDATA[Size in [Width]x[Height] Format. Example: 800x600<br/><strong>Note:</strong> If left empty Popup Image will take the full size.]]></comment>
102
  </popupimage_size>
103
+ <disable_zoombar translate="label">
104
  <label>Disable Zoom Bar</label>
105
  <frontend_type>select</frontend_type>
106
  <source_model>adminhtml/system_config_source_yesno</source_model>
107
+ <sort_order>70</sort_order>
108
+ <show_in_default>1</show_in_default>
109
  <show_in_website>1</show_in_website>
110
  <show_in_store>1</show_in_store>
111
  <comment><![CDATA[This will hide the default Zoom bar and will give main image the lightbox effect.]]></comment>
112
  </disable_zoombar>
113
+ <include_mainimage_in_lightbox>
114
+ <label>Include Main Image In 'More Views' Lightbox Gallery</label>
115
+ <frontend_type>select</frontend_type>
116
+ <source_model>adminhtml/system_config_source_yesno</source_model>
117
+ <sort_order>80</sort_order>
118
+ <show_in_default>1</show_in_default>
119
+ <show_in_website>1</show_in_website>
120
+ <show_in_store>1</show_in_store>
121
+ <comment><![CDATA[This will include main image in 'More Views' lightbox gallery view.]]></comment>
122
+ </include_mainimage_in_lightbox>
123
+ <more_views_label translate="label">
124
+ <label>More Views Label</label>
125
+ <frontend_type>text</frontend_type>
126
+ <sort_order>90</sort_order>
127
+ <show_in_default>1</show_in_default>
128
+ <show_in_website>1</show_in_website>
129
+ <show_in_store>1</show_in_store>
130
+ </more_views_label>
131
  </fields>
132
  </option>
133
 
163
  <show_in_website>1</show_in_website>
164
  <show_in_store>1</show_in_store>
165
  <depends><include_jquery>1</include_jquery></depends>
166
+ <comment><![CDATA[You can use Google CDN if your site goes live as this will decrease the load time for jQuery. If you are using Google CDN option in localhost, make sure to check the internet connection else you will get some javascript error. <br />Default: Local (Version 1.7.1)]]></comment>
167
  </include_jquery_from>
168
  <include_jquery_in translate="label">
169
  <label>Include jQuery file in</label>
421
  <show_in_store>1</show_in_store>
422
  <comment><![CDATA[Speed of the fade and elastic transitions, in milliseconds]]></comment>
423
  </speedOut>
424
+ <changeSpeed>
425
+ <label>changeSpeed</label>
426
+ <frontend_type>text</frontend_type>
427
+ <sort_order>205</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
+ <comment><![CDATA[Speed of resizing when changing gallery items, in milliseconds]]></comment>
432
+ </changeSpeed>
433
  <changeFade translate="label">
434
  <label>changeFade</label>
435
  <frontend_type>select</frontend_type>
556
  </slideSpeed>
557
  </fields>
558
  </pirobox>
559
+ <piroboxextended>
560
+ <label>PiroBox Extended</label>
561
+ <frontend_type>text</frontend_type>
562
+ <sort_order>400</sort_order>
563
+ <show_in_default>1</show_in_default>
564
+ <show_in_website>1</show_in_website>
565
+ <show_in_store>1</show_in_store>
566
+ <fields>
567
+ <info>
568
+ <frontend_model>lightboxes/config_piroboxextended_info</frontend_model>
569
+ <sort_order>0</sort_order>
570
+ <show_in_default>1</show_in_default>
571
+ <show_in_website>1</show_in_website>
572
+ <show_in_store>1</show_in_store>
573
+ </info>
574
+ <style translate="label">
575
+ <label>style</label>
576
+ <frontend_type>select</frontend_type>
577
+ <source_model>lightboxes/config_piroboxextended_themes</source_model>
578
+ <sort_order>10</sort_order>
579
+ <show_in_default>1</show_in_default>
580
+ <show_in_website>1</show_in_website>
581
+ <show_in_store>1</show_in_store>
582
+ <comment><![CDATA[Available styles for PiroBox Extended]]></comment>
583
+ </style>
584
+ <piro_speed translate="label">
585
+ <label>piro_speed</label>
586
+ <frontend_type>select</frontend_type>
587
+ <source_model>lightboxes/config_piroboxextended_speed</source_model>
588
+ <sort_order>20</sort_order>
589
+ <show_in_default>1</show_in_default>
590
+ <show_in_website>1</show_in_website>
591
+ <show_in_store>1</show_in_store>
592
+ <comment><![CDATA[Select Pirobox speed, from 500 to 1000 (700 recommended)]]></comment>
593
+ </piro_speed>
594
+ <bg_alpha translate="label">
595
+ <label>bg_alpha</label>
596
+ <frontend_type>select</frontend_type>
597
+ <source_model>lightboxes/config_piroboxextended_bgalphas</source_model>
598
+ <sort_order>30</sort_order>
599
+ <show_in_default>1</show_in_default>
600
+ <show_in_website>1</show_in_website>
601
+ <show_in_store>1</show_in_store>
602
+ <comment><![CDATA[background overlay opacity, from 0 to 1.]]></comment>
603
+ </bg_alpha>
604
+ <piro_scroll translate="label">
605
+ <label>piro_scroll</label>
606
+ <frontend_type>select</frontend_type>
607
+ <source_model>adminhtml/system_config_source_yesno</source_model>
608
+ <sort_order>40</sort_order>
609
+ <show_in_default>1</show_in_default>
610
+ <show_in_website>1</show_in_website>
611
+ <show_in_store>1</show_in_store>
612
+ <comment><![CDATA[pirobox always positioned at the center of the page]]></comment>
613
+ </piro_scroll>
614
+ </fields>
615
+ </piroboxextended>
616
+ <prettyphoto>
617
+ <label>prettyPhoto</label>
618
+ <frontend_type>text</frontend_type>
619
+ <sort_order>500</sort_order>
620
+ <show_in_default>1</show_in_default>
621
+ <show_in_website>1</show_in_website>
622
+ <show_in_store>1</show_in_store>
623
+ <fields>
624
+ <info>
625
+ <frontend_model>lightboxes/config_prettyphoto_info</frontend_model>
626
+ <sort_order>0</sort_order>
627
+ <show_in_default>1</show_in_default>
628
+ <show_in_website>1</show_in_website>
629
+ <show_in_store>1</show_in_store>
630
+ </info>
631
+ <theme translate="label">
632
+ <label>theme</label>
633
+ <frontend_type>select</frontend_type>
634
+ <source_model>lightboxes/config_prettyphoto_theme</source_model>
635
+ <sort_order>5</sort_order>
636
+ <show_in_default>1</show_in_default>
637
+ <show_in_website>1</show_in_website>
638
+ <show_in_store>1</show_in_store>
639
+ <comment><![CDATA[Available themes for prettyPhoto]]></comment>
640
+ </theme>
641
+ <animation_speed translate="label">
642
+ <label>animation_speed</label>
643
+ <frontend_type>select</frontend_type>
644
+ <source_model>lightboxes/config_prettyphoto_animationspeed</source_model>
645
+ <sort_order>10</sort_order>
646
+ <show_in_default>1</show_in_default>
647
+ <show_in_website>1</show_in_website>
648
+ <show_in_store>1</show_in_store>
649
+ <comment><![CDATA[fast/slow/normal]]></comment>
650
+ </animation_speed>
651
+ <slideshow translate="label">
652
+ <label>slideshow</label>
653
+ <frontend_type>text</frontend_type>
654
+ <sort_order>20</sort_order>
655
+ <show_in_default>1</show_in_default>
656
+ <show_in_website>1</show_in_website>
657
+ <show_in_store>1</show_in_store>
658
+ <comment><![CDATA[0 OR interval time in ms]]></comment>
659
+ </slideshow>
660
+ <autoplay_slideshow translate="label">
661
+ <label>autoplay_slideshow</label>
662
+ <frontend_type>select</frontend_type>
663
+ <source_model>adminhtml/system_config_source_yesno</source_model>
664
+ <sort_order>30</sort_order>
665
+ <show_in_default>1</show_in_default>
666
+ <show_in_website>1</show_in_website>
667
+ <show_in_store>1</show_in_store>
668
+ <comment><![CDATA[]]></comment>
669
+ </autoplay_slideshow>
670
+ <opacity translate="label">
671
+ <label>opacity</label>
672
+ <frontend_type>select</frontend_type>
673
+ <source_model>lightboxes/config_prettyphoto_opacity</source_model>
674
+ <sort_order>40</sort_order>
675
+ <show_in_default>1</show_in_default>
676
+ <show_in_website>1</show_in_website>
677
+ <show_in_store>1</show_in_store>
678
+ <comment><![CDATA[Value between 0 and 1]]></comment>
679
+ </opacity>
680
+ <show_title translate="label">
681
+ <label>show_title</label>
682
+ <frontend_type>select</frontend_type>
683
+ <source_model>adminhtml/system_config_source_yesno</source_model>
684
+ <sort_order>50</sort_order>
685
+ <show_in_default>1</show_in_default>
686
+ <show_in_website>1</show_in_website>
687
+ <show_in_store>1</show_in_store>
688
+ <comment><![CDATA[]]></comment>
689
+ </show_title>
690
+ <allow_resize translate="label">
691
+ <label>allow_resize</label>
692
+ <frontend_type>select</frontend_type>
693
+ <source_model>adminhtml/system_config_source_yesno</source_model>
694
+ <sort_order>60</sort_order>
695
+ <show_in_default>1</show_in_default>
696
+ <show_in_website>1</show_in_website>
697
+ <show_in_store>1</show_in_store>
698
+ <comment><![CDATA[Resize the photos bigger than viewport. true/false]]></comment>
699
+ </allow_resize>
700
+ <default_width translate="label">
701
+ <label>default_width</label>
702
+ <frontend_type>text</frontend_type>
703
+ <sort_order>70</sort_order>
704
+ <show_in_default>1</show_in_default>
705
+ <show_in_website>1</show_in_website>
706
+ <show_in_store>1</show_in_store>
707
+ <comment><![CDATA[]]></comment>
708
+ </default_width>
709
+ <default_height translate="label">
710
+ <label>default_height</label>
711
+ <frontend_type>text</frontend_type>
712
+ <sort_order>80</sort_order>
713
+ <show_in_default>1</show_in_default>
714
+ <show_in_website>1</show_in_website>
715
+ <show_in_store>1</show_in_store>
716
+ <comment><![CDATA[]]></comment>
717
+ </default_height>
718
+ <counter_separator_label translate="label">
719
+ <label>counter_separator_label</label>
720
+ <frontend_type>text</frontend_type>
721
+ <sort_order>90</sort_order>
722
+ <show_in_default>1</show_in_default>
723
+ <show_in_website>1</show_in_website>
724
+ <show_in_store>1</show_in_store>
725
+ <comment><![CDATA[The separator for the gallery counter 1 "of" 2]]></comment>
726
+ </counter_separator_label>
727
+ <horizontal_padding translate="label">
728
+ <label>horizontal_padding</label>
729
+ <frontend_type>text</frontend_type>
730
+ <sort_order>100</sort_order>
731
+ <show_in_default>1</show_in_default>
732
+ <show_in_website>1</show_in_website>
733
+ <show_in_store>1</show_in_store>
734
+ <comment><![CDATA[The padding on each side of the picture]]></comment>
735
+ </horizontal_padding>
736
+ <hideflash translate="label">
737
+ <label>hideflash</label>
738
+ <frontend_type>select</frontend_type>
739
+ <source_model>adminhtml/system_config_source_yesno</source_model>
740
+ <sort_order>110</sort_order>
741
+ <show_in_default>1</show_in_default>
742
+ <show_in_website>1</show_in_website>
743
+ <show_in_store>1</show_in_store>
744
+ <comment><![CDATA[Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto]]></comment>
745
+ </hideflash>
746
+ <!--<wmode translate="label">
747
+ <label>wmode</label>
748
+ <frontend_type>select</frontend_type>
749
+ <source_model>lightboxes/config_prettyphoto_wmode</source_model>
750
+ <sort_order>80</sort_order>
751
+ <show_in_default>1</show_in_default>
752
+ <show_in_website>1</show_in_website>
753
+ <show_in_store>1</show_in_store>
754
+ <comment><![CDATA[Set the flash wmode attribute]]></comment>
755
+ </wmode>
756
+ <autoplay translate="label">
757
+ <label>autoplay</label>
758
+ <frontend_type>select</frontend_type>
759
+ <source_model>adminhtml/system_config_source_yesno</source_model>
760
+ <sort_order>80</sort_order>
761
+ <show_in_default>1</show_in_default>
762
+ <show_in_website>1</show_in_website>
763
+ <show_in_store>1</show_in_store>
764
+ <comment><![CDATA[Automatically start videos: True/False]]></comment>
765
+ </autoplay>-->
766
+ <modal translate="label">
767
+ <label>modal</label>
768
+ <frontend_type>select</frontend_type>
769
+ <source_model>adminhtml/system_config_source_yesno</source_model>
770
+ <sort_order>120</sort_order>
771
+ <show_in_default>1</show_in_default>
772
+ <show_in_website>1</show_in_website>
773
+ <show_in_store>1</show_in_store>
774
+ <comment><![CDATA[If set to true, only the close button will close the window]]></comment>
775
+ </modal>
776
+ <overlay_gallery translate="label">
777
+ <label>overlay_gallery</label>
778
+ <frontend_type>select</frontend_type>
779
+ <source_model>adminhtml/system_config_source_yesno</source_model>
780
+ <sort_order>130</sort_order>
781
+ <show_in_default>1</show_in_default>
782
+ <show_in_website>1</show_in_website>
783
+ <show_in_store>1</show_in_store>
784
+ <comment><![CDATA[If set to true, a gallery will overlay the fullscreen image on mouse over]]></comment>
785
+ </overlay_gallery>
786
+ <social_tools translate="label">
787
+ <label>social_tools</label>
788
+ <frontend_type>select</frontend_type>
789
+ <source_model>adminhtml/system_config_source_yesno</source_model>
790
+ <sort_order>140</sort_order>
791
+ <show_in_default>1</show_in_default>
792
+ <show_in_website>1</show_in_website>
793
+ <show_in_store>1</show_in_store>
794
+ <comment><![CDATA[If set to false, will hide the social tool (twitter/facebook) from lightbox]]></comment>
795
+ </social_tools>
796
+ </fields>
797
+ </prettyphoto>
798
  <lightboxclone>
799
  <label>Lightbox Clone</label>
800
  <frontend_type>text</frontend_type>
801
+ <sort_order>600</sort_order>
802
  <show_in_default>1</show_in_default>
803
  <show_in_website>1</show_in_website>
804
  <show_in_store>1</show_in_store>
app/design/frontend/default/default/template/lightboxes/head.phtml CHANGED
@@ -1,10 +1,10 @@
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
1
  <?php
2
  /**
3
+ * @category MagentoPycho
 
 
 
4
  * @package MagentoPycho_Lightboxes
5
+ * @author magepsycho@gmail.com
6
+ * @website http://www.magepsycho.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
  */
9
  ?>
10
  <?php
app/design/frontend/default/default/template/lightboxes/jquery_inclusion.phtml CHANGED
@@ -2,8 +2,8 @@
2
  $helper = Mage::helper('lightboxes');
3
  ?>
4
  <?php if($helper->getConfig('include_jquery_from', 'lightboxes_confliction') == 'local') :?>
5
- <script type="text/javascript" src="<?php echo $helper->getLightboxUrl(); ?>/jQuery/1.4.3/jquery.min.js"></script>
6
  <?php else: ?>
7
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
8
  <?php endif; ?>
9
- <script type="text/javascript" src="<?php echo $helper->getLightboxUrl(); ?>/no-conflict.js"></script>
2
  $helper = Mage::helper('lightboxes');
3
  ?>
4
  <?php if($helper->getConfig('include_jquery_from', 'lightboxes_confliction') == 'local') :?>
5
+ <script type="text/javascript" src="<?php echo $helper->getLightboxUrl(); ?>/jQuery/1.7.1/jquery.min.js"></script>
6
  <?php else: ?>
7
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
8
  <?php endif; ?>
9
+ <script type="text/javascript" src="<?php echo $helper->getLightboxUrl(); ?>/no-conflict.js"></script>
app/design/frontend/default/default/template/lightboxes/lightboxes_inclusion.phtml CHANGED
@@ -5,8 +5,8 @@ if($helper->getConfig('lightbox_type') == 'fancybox'):
5
  <!-- FancyBox -->
6
  <script type="text/javascript" src="<?php echo $helper->getLightboxUrl(); ?>/fancybox/jquery.easing-1.3.pack.js"></script>
7
  <script type="text/javascript" src="<?php echo $helper->getLightboxUrl(); ?>/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
8
- <script type="text/javascript" src="<?php echo $helper->getLightboxUrl(); ?>/fancybox/jquery.fancybox-1.3.2.pack.js"></script>
9
- <link rel="stylesheet" type="text/css" href="<?php echo $helper->getLightboxUrl(); ?>/fancybox/jquery.fancybox-1.3.2.css" media="screen" />
10
  <!-- FancyBox -->
11
  <?php
12
  endif; //fancybox
@@ -31,4 +31,27 @@ endif; //fancybox
31
  <!-- Pirobox -->
32
  <?php
33
  endif; //pirobox
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  ?>
5
  <!-- FancyBox -->
6
  <script type="text/javascript" src="<?php echo $helper->getLightboxUrl(); ?>/fancybox/jquery.easing-1.3.pack.js"></script>
7
  <script type="text/javascript" src="<?php echo $helper->getLightboxUrl(); ?>/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
8
+ <script type="text/javascript" src="<?php echo $helper->getLightboxUrl(); ?>/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
9
+ <link rel="stylesheet" type="text/css" href="<?php echo $helper->getLightboxUrl(); ?>/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
10
  <!-- FancyBox -->
11
  <?php
12
  endif; //fancybox
31
  <!-- Pirobox -->
32
  <?php
33
  endif; //pirobox
34
+ ?>
35
+ <?php
36
+ if($helper->getConfig('lightbox_type') == 'piroboxextended'):
37
+ $style = $helper->getConfig('style', 'piroboxextended');
38
+ ?>
39
+ <!-- Pirobox Extended -->
40
+ <link rel="stylesheet" type="text/css" href="<?php echo $helper->getLightboxUrl(); ?>/pirobox_extended/css_pirobox/<?php echo $style; ?>/style.css" />
41
+ <script type="text/javascript" src="<?php echo $helper->getLightboxUrl(); ?>/pirobox_extended/js/jquery-ui-1.8.2.custom.min.js"></script>
42
+ <script type="text/javascript" src="<?php echo $helper->getLightboxUrl(); ?>/pirobox_extended/js/pirobox_extended_min.js"></script>
43
+ <!-- Pirobox -->
44
+ <?php
45
+ endif; //piroboxextended
46
+ ?>
47
+ <?php
48
+ if($helper->getConfig('lightbox_type') == 'prettyphoto'):
49
+ $theme = $helper->getConfig('theme', 'prettyphoto');
50
+ ?>
51
+ <!-- Pirobox Extended -->
52
+ <link rel="stylesheet" href="<?php echo $helper->getLightboxUrl(); ?>/prettyPhoto/css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
53
+ <script src="<?php echo $helper->getLightboxUrl(); ?>/prettyPhoto/js/jquery.prettyPhoto.min.js" type="text/javascript" charset="utf-8"></script>
54
+ <!-- Pirobox -->
55
+ <?php
56
+ endif; //piroboxextended
57
  ?>
app/design/frontend/default/default/template/lightboxes/lightboxes_initialization.phtml CHANGED
@@ -13,7 +13,7 @@ if($helper->getConfig('lightbox_type') == 'fancybox'):
13
 
14
  });
15
  </script>
16
- <!-- FancyBox -->
17
  <?php
18
  endif;
19
  ?>
@@ -34,14 +34,13 @@ endif;
34
 
35
  });
36
  </script>
37
- <!-- Lightbox Clone -->
38
  <?php
39
  endif;
40
  ?>
41
 
42
  <?php
43
  if($helper->getConfig('lightbox_type') == 'pirobox'):
44
- $demo = $helper->getConfig('theme', 'pirobox');
45
  ?>
46
  <!-- Pirobox -->
47
  <script type="text/javascript">
@@ -52,7 +51,37 @@ endif;
52
 
53
  });
54
  </script>
55
- <!-- Pirobox -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  <?php
57
  endif;
58
  ?>
13
 
14
  });
15
  </script>
16
+ <!-- //FancyBox -->
17
  <?php
18
  endif;
19
  ?>
34
 
35
  });
36
  </script>
37
+ <!-- //Lightbox Clone -->
38
  <?php
39
  endif;
40
  ?>
41
 
42
  <?php
43
  if($helper->getConfig('lightbox_type') == 'pirobox'):
 
44
  ?>
45
  <!-- Pirobox -->
46
  <script type="text/javascript">
51
 
52
  });
53
  </script>
54
+ <!-- //Pirobox -->
55
+ <?php
56
+ endif;
57
+ ?>
58
+ <?php
59
+ if($helper->getConfig('lightbox_type') == 'piroboxextended'):
60
+ ?>
61
+ <!-- PiroboxExtended -->
62
+ <script type="text/javascript">
63
+ jQuery(document).ready(function(){
64
+ jQuery().piroBox_ext({
65
+ <?php echo $helper->getPiroboxExtendedJsConfig(); ?>
66
+ });
67
+ });
68
+ </script>
69
+ <!-- //PiroboxExtended -->
70
+ <?php
71
+ endif;
72
+ ?>
73
+ <?php
74
+ if($helper->getConfig('lightbox_type') == 'prettyphoto'):
75
+ ?>
76
+ <!-- prettyPhoto -->
77
+ <script type="text/javascript">
78
+ jQuery(document).ready(function(){
79
+ jQuery("a[rel^='prettyPhoto']").prettyPhoto({
80
+ <?php echo $helper->getPrettyphotoJsConfig(); ?>
81
+ });
82
+ });
83
+ </script>
84
+ <!-- //prettyPhoto -->
85
  <?php
86
  endif;
87
  ?>
app/design/frontend/default/default/template/lightboxes/media.phtml CHANGED
@@ -1,10 +1,24 @@
1
  <?php
2
  $helper = Mage::helper('lightboxes');
3
  $rel = $helper->getLightboxRel($helper->getConfig('lightbox_type'));
4
- $class = $helper->getLightboxRel($helper->getConfig('lightbox_type'));
5
  $mainImageSize = $helper->getMainImageSize();
6
  $popUpImageSize = $helper->getPopupImageSize();
7
  $thumbnailSize = $helper->getThumbnailImageSize();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  ?>
9
  <!-- jQuery LightBoxes -->
10
  <?php if($helper->getConfig('include_jquery', 'lightboxes_confliction') && $helper->getConfig('include_jquery_in', 'lightboxes_confliction') == 'media'): ?>
@@ -39,7 +53,7 @@ if($helper->getConfig('disable_zoombar')):
39
  endif;
40
 
41
  ?>
42
- <a href="<?php echo $popUpImage; ?>" rel="<?php echo $rel; ?>-main" class="<?php echo $class; ?>-main" title="<?php echo $this->htmlEscape($this->getImageLabel()) ?>"><?php echo $_helper->productAttribute($_product, $_img, 'image'); ?></a>
43
  </p>
44
  <?php else: ?>
45
  <p class="product-image product-image-zoom">
@@ -76,7 +90,7 @@ if($helper->getConfig('disable_zoombar')):
76
  <?php if (count($this->getGalleryImages()) > 0):
77
  ?>
78
  <div class="more-views">
79
- <h2><?php echo $this->__('More Views') ?></h2>
80
  <ul>
81
  <?php foreach ($this->getGalleryImages() as $_image):
82
  if(empty($popUpImageSize[0]) || empty($popUpImageSize[0])):
1
  <?php
2
  $helper = Mage::helper('lightboxes');
3
  $rel = $helper->getLightboxRel($helper->getConfig('lightbox_type'));
4
+ $class = $helper->getLightboxClass($helper->getConfig('lightbox_type'));
5
  $mainImageSize = $helper->getMainImageSize();
6
  $popUpImageSize = $helper->getPopupImageSize();
7
  $thumbnailSize = $helper->getThumbnailImageSize();
8
+ $includeMainImage = $helper->getConfig('include_mainimage_in_lightbox');
9
+
10
+ $mainImageRel = $rel;
11
+ $mainImageClass = $class;
12
+ if($helper->getConfig('lightbox_type') == 'piroboxextended' && !$includeMainImage){
13
+ $mainImageRel = 'single';
14
+ $mainImageClass = 'pirobox';
15
+ }elseif($helper->getConfig('lightbox_type') == 'prettyphoto' && !$includeMainImage){
16
+ $mainImageRel = 'prettyPhoto';
17
+ $mainImageClass = '';
18
+ }elseif(!in_array($helper->getConfig('lightbox_type'),array('piroboxextended', 'prettyphoto')) && !$includeMainImage){
19
+ $mainImageRel = $rel . '-main';
20
+ $mainImageClass = $class . '-main';
21
+ }
22
  ?>
23
  <!-- jQuery LightBoxes -->
24
  <?php if($helper->getConfig('include_jquery', 'lightboxes_confliction') && $helper->getConfig('include_jquery_in', 'lightboxes_confliction') == 'media'): ?>
53
  endif;
54
 
55
  ?>
56
+ <a href="<?php echo $popUpImage; ?>" rel="<?php echo $mainImageRel; ?>" class="<?php echo $mainImageClass; ?>" title="<?php echo $this->htmlEscape($this->getImageLabel()) ?>"><?php echo $_helper->productAttribute($_product, $_img, 'image'); ?></a>
57
  </p>
58
  <?php else: ?>
59
  <p class="product-image product-image-zoom">
90
  <?php if (count($this->getGalleryImages()) > 0):
91
  ?>
92
  <div class="more-views">
93
+ <h2><?php echo $helper->getConfig('more_views_label') ?></h2>
94
  <ul>
95
  <?php foreach ($this->getGalleryImages() as $_image):
96
  if(empty($popUpImageSize[0]) || empty($popUpImageSize[0])):
js/lightboxes/fancybox/Thumbs.db DELETED
Binary file
js/lightboxes/fancybox/jquery.fancybox-1.3.2.pack.js DELETED
@@ -1,46 +0,0 @@
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/lightboxes/fancybox/{jquery.fancybox-1.3.2.css → jquery.fancybox-1.3.4.css} RENAMED
@@ -7,7 +7,7 @@
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:
@@ -43,7 +43,6 @@
43
  top: 0;
44
  left: 0;
45
  width: 100%;
46
- height: 100%;
47
  z-index: 1100;
48
  display: none;
49
  }
@@ -174,7 +173,7 @@
174
  }
175
 
176
  #fancybox-left:hover, #fancybox-right:hover {
177
- visibility: visible; /* IE6 */
178
  }
179
 
180
  #fancybox-left:hover span {
@@ -301,11 +300,12 @@
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
 
@@ -313,12 +313,12 @@
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
 
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.4 (11/11/2010)
11
  * Requires: jQuery v1.3+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
43
  top: 0;
44
  left: 0;
45
  width: 100%;
 
46
  z-index: 1100;
47
  display: none;
48
  }
173
  }
174
 
175
  #fancybox-left:hover, #fancybox-right:hover {
176
+ visibility: visible; /* IE6 */
177
  }
178
 
179
  #fancybox-left:hover span {
300
  }
301
 
302
  #fancybox-title-float-wrap td {
303
+ border: none;
304
  white-space: nowrap;
305
  }
306
 
307
  #fancybox-title-float-left {
308
+ padding: 0 0 0 15px;
309
  background: url('fancybox.png') -40px -90px no-repeat;
310
  }
311
 
313
  color: #FFF;
314
  line-height: 29px;
315
  font-weight: bold;
316
+ padding: 0 0 3px 0;
317
  background: url('fancybox-x.png') 0px -40px;
318
  }
319
 
320
  #fancybox-title-float-right {
321
+ padding: 0 0 0 15px;
322
  background: url('fancybox.png') -55px -90px no-repeat;
323
  }
324
 
js/lightboxes/fancybox/{jquery.fancybox-1.3.2.js → jquery.fancybox-1.3.4.js} RENAMED
@@ -3,11 +3,11 @@
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:
@@ -141,9 +141,13 @@
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) {
@@ -212,6 +216,8 @@
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
 
@@ -243,7 +249,8 @@
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
 
@@ -263,24 +270,36 @@
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
 
@@ -347,9 +366,6 @@
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();
@@ -381,7 +397,7 @@
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) {
@@ -436,13 +452,13 @@
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) {
@@ -565,12 +581,12 @@
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
  }
@@ -580,7 +596,7 @@
580
  }
581
 
582
  _set_navigation();
583
-
584
  if (currentOpts.hideOnContentClick) {
585
  content.bind('click', $.fancybox.close);
586
  }
@@ -1056,9 +1072,13 @@
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
 
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.4 (11/11/2010)
11
  * Requires: jQuery v1.3+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
141
  selectedOpts.href = href;
142
  selectedOpts.title = title;
143
 
144
+ if (selectedOpts.autoDimensions) {
145
+ if (selectedOpts.type == 'html' || selectedOpts.type == 'inline' || selectedOpts.type == 'ajax') {
146
+ selectedOpts.width = 'auto';
147
+ selectedOpts.height = 'auto';
148
+ } else {
149
+ selectedOpts.autoDimensions = false;
150
+ }
151
  }
152
 
153
  if (selectedOpts.modal) {
216
  break;
217
 
218
  case 'swf':
219
+ selectedOpts.scrolling = 'no';
220
+
221
  str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"><param name="movie" value="' + href + '"></param>';
222
  emb = '';
223
 
249
  }
250
  },
251
  success : function(data, textStatus, XMLHttpRequest) {
252
+ var o = typeof XMLHttpRequest == 'object' ? XMLHttpRequest : ajaxLoader;
253
+ if (o.status == 200) {
254
  if ( typeof selectedOpts.ajax.win == 'function' ) {
255
  ret = selectedOpts.ajax.win(href, data, textStatus, XMLHttpRequest);
256
 
270
 
271
  break;
272
 
273
+ case 'iframe':
274
  _show();
275
  break;
276
  }
277
  },
278
 
279
  _process_inline = function() {
280
+ var
281
+ w = selectedOpts.width,
282
+ h = selectedOpts.height;
283
 
284
+ if (w.toString().indexOf('%') > -1) {
285
+ w = parseInt( ($(window).width() - (selectedOpts.margin * 2)) * parseFloat(w) / 100, 10) + 'px';
286
+
287
+ } else {
288
+ w = w == 'auto' ? 'auto' : w + 'px';
289
  }
290
 
291
+ if (h.toString().indexOf('%') > -1) {
292
+ h = parseInt( ($(window).height() - (selectedOpts.margin * 2)) * parseFloat(h) / 100, 10) + 'px';
293
+
294
+ } else {
295
+ h = h == 'auto' ? 'auto' : h + 'px';
296
  }
297
 
298
+ tmp.wrapInner('<div style="width:' + w + ';height:' + h + ';overflow: ' + (selectedOpts.scrolling == 'auto' ? 'auto' : (selectedOpts.scrolling == 'yes' ? 'scroll' : 'hidden')) + ';position:relative;"></div>');
299
+
300
+ selectedOpts.width = tmp.width();
301
+ selectedOpts.height = tmp.height();
302
+
303
  _show();
304
  },
305
 
366
  overlay.hide();
367
  }
368
 
 
 
 
369
  final_pos = _get_zoom_to();
370
 
371
  _process_title();
397
  .css({
398
  'border-width' : currentOpts.padding,
399
  'width' : final_pos.width - currentOpts.padding * 2,
400
+ 'height' : selectedOpts.autoDimensions ? 'auto' : final_pos.height - titleHeight - currentOpts.padding * 2
401
  });
402
 
403
  if (equal) {
452
  content
453
  .css({
454
  'width' : final_pos.width - currentOpts.padding * 2,
455
+ 'height' : selectedOpts.autoDimensions ? 'auto' : final_pos.height - titleHeight - currentOpts.padding * 2
456
  })
457
  .html( tmp.contents() );
458
 
459
  wrap
460
  .css(final_pos)
461
+ .fadeIn( currentOpts.transitionIn == 'none' ? 0 : currentOpts.speedIn, _finish );
462
  },
463
 
464
  _format_title = function(title) {
581
  wrap.get(0).style.removeAttribute('filter');
582
  }
583
 
584
+ if (selectedOpts.autoDimensions) {
 
 
585
  content.css('height', 'auto');
586
  }
587
 
588
+ wrap.css('height', 'auto');
589
+
590
  if (titleStr && titleStr.length) {
591
  title.show();
592
  }
596
  }
597
 
598
  _set_navigation();
599
+
600
  if (currentOpts.hideOnContentClick) {
601
  content.bind('click', $.fancybox.close);
602
  }
1072
 
1073
  if ($.fn.mousewheel) {
1074
  wrap.bind('mousewheel.fb', function(e, delta) {
1075
+ if (busy) {
1076
+ e.preventDefault();
1077
 
1078
+ } else if ($(e.target).get(0).clientHeight == 0 || $(e.target).get(0).scrollHeight === $(e.target).get(0).clientHeight) {
1079
+ e.preventDefault();
1080
+ $.fancybox[ delta > 0 ? 'prev' : 'next']();
1081
+ }
1082
  });
1083
  }
1084
 
js/lightboxes/fancybox/jquery.fancybox-1.3.4.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.4 (11/11/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(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=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()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||
20
+ c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=
21
+ false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",
22
+ function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("<img />").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case "swf":e.scrolling="no";C='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+
23
+ '"></param>';P="";b.each(e.swf,function(x,H){C+='<param name="'+x+'" value="'+H+'"></param>';P+=" "+x+'="'+H+'"'});C+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>";m.html(C);F();break;case "ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win==
24
+ "function"){w=e.ajax.win(c,x,H,R);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(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('<div style="width:'+a+";height:"+c+
25
+ ";overflow: "+(e.scrolling=="auto"?"auto":e.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,
26
+ opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("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();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?
27
+ d.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-'+d.titlePosition+'">'+s+"</div>":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case "inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});
28
+ y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case "over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==
29
+ i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());
30
+ f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==
31
+ 37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");
32
+ s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(b.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+d.href+'"></iframe>').appendTo(j);
33
+ f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);
34
+ j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type==
35
+ "image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),
36
+ 10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};
37
+ b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=
38
+ 0,C=a.length;k<C;k++)if(typeof a[k]=="object")b(a[k]).data("fancybox",b.extend({},g,a[k]));else a[k]=b({}).data("fancybox",b.extend({content:a[k]},g));o=jQuery.merge(o,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},g,a));else a=b({}).data("fancybox",b.extend({content:a},g));o.push(a)}if(q>o.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+
39
+ 1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a<l.length){q=a;I()}else if(d.cyclic&&l.length>1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=
40
+ true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;
41
+ b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5-
42
+ d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),t=b('<div id="fancybox-loading"><div></div></div>'),u=b('<div id="fancybox-overlay"></div>'),f=b('<div id="fancybox-wrap"></div>'));D=b('<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(j=b('<div id="fancybox-content"></div>'),E=b('<a id="fancybox-close"></a>'),n=b('<div id="fancybox-title"></div>'),z=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});
44
+ b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('<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)}}};
45
+ b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,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",
46
+ easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery);
js/lightboxes/jQuery/1.7.1/jquery.min.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ /*! jQuery v1.7.1 jquery.com | jquery.org/license */
2
+ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function cb(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function ca(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bE.test(a)?d(a,e):ca(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)ca(a+"["+e+"]",b[e],c,d);else d(a,b)}function b_(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function b$(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bT,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=b$(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=b$(a,c,d,e,"*",g));return l}function bZ(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bP),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bC(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bx:by,g=0,h=e.length;if(d>0){if(c!=="border")for(;g<h;g++)c||(d-=parseFloat(f.css(a,"padding"+e[g]))||0),c==="margin"?d+=parseFloat(f.css(a,c+e[g]))||0:d-=parseFloat(f.css(a,"border"+e[g]+"Width"))||0;return d+"px"}d=bz(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0;if(c)for(;g<h;g++)d+=parseFloat(f.css(a,"padding"+e[g]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+e[g]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+e[g]))||0);return d+"px"}function bp(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c+(i[c][d].namespace?".":"")+i[c][d].namespace,i[c][d],i[c][d].data)}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+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(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?m(g):h==="function"&&(!a.unique||!o.has(g))&&c.push(g)},n=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,l=j||0,j=0,k=c.length;for(;c&&l<k;l++)if(c[l].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}i=!1,c&&(a.once?e===!0?o.disable():c=[]:d&&d.length&&(e=d.shift(),o.fireWith(e[0],e[1])))},o={add:function(){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){i&&f<=k&&(k--,f<=l&&l--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&o.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(i?a.once||d.push([b,c]):(!a.once||!e)&&n(b,c));return this},fire:function(){o.fireWith(this,arguments);return this},fired:function(){return!!e}};return o};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p,q=c.createElement("div"),r=c.documentElement;q.setAttribute("className","t"),q.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="<div "+n+"><div></div></div>"+"<table "+n+" cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="<div style='width:4px;'></div>",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h=null;if(typeof a=="undefined"){if(this.length){h=f.data(this[0]);if(this[0].nodeType===1&&!f._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var i=0,j=e.length;i<j;i++)g=e[i].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),l(this[0],g,h[g]));f._data(this[0],"parsedAttrs",!0)}}return h}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split("."),d[1]=d[1]?"."+d[1]:"";if(c===b){h=this.triggerHandler("getData"+d[1]+"!",[d[0]]),h===b&&this.length&&(h=f.data(this[0],a),h=l(this[0],a,h));return h===b&&d[1]?this.data(d[0]):h}return this.each(function(){var b=f(this),e=[d[0],c];b.triggerHandler("setData"+d[1]+"!",e),f.data(this,a,c),b.triggerHandler("changeData"+d[1]+"!",e)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise()}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h<g;h++)e=d[h],e&&(c=f.propFix[e]||e,f.attr(a,e,""),a.removeAttribute(v?e:c),u.test(e)&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};
3
+ f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=[],j,k,l,m,n,o,p,q,r,s,t;g[0]=c,c.delegateTarget=this;if(e&&!c.target.disabled&&(!c.button||c.type!=="click")){m=f(this),m.context=this.ownerDocument||this;for(l=c.target;l!=this;l=l.parentNode||this){o={},q=[],m[0]=l;for(j=0;j<e;j++)r=d[j],s=r.selector,o[s]===b&&(o[s]=r.quick?H(l,r.quick):m.is(s)),o[s]&&q.push(r);q.length&&i.push({elem:l,matches:q})}}d.length>e&&i.push({elem:this,matches:d.slice(e)});for(j=0;j<i.length&&!c.isPropagationStopped();j++){p=i[j],c.currentTarget=p.elem;for(k=0;k<p.matches.length&&!c.isImmediatePropagationStopped();k++){r=p.matches[k];if(h||!c.namespace&&!r.namespace||c.namespace_re&&c.namespace_re.test(r.namespace))c.data=r.data,c.handleObj=r,n=((f.event.special[r.origType]||{}).handle||r.handler).apply(p.elem,g),n!==b&&(c.result=n,n===!1&&(c.preventDefault(),c.stopPropagation()))}}return c.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0)}),d._submit_attached=!0)})},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on.call(this,a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.type+"."+e.namespace:e.type,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function")d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e+=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.POS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={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,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function()
4
+ {for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bp)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bn(k[i]);else bn(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||be.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bq=/alpha\([^)]*\)/i,br=/opacity=([^)]*)/,bs=/([A-Z]|^ms)/g,bt=/^-?\d+(?:px)?$/i,bu=/^-?\d/,bv=/^([\-+])=([\-+.\de]+)/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Left","Right"],by=["Top","Bottom"],bz,bA,bB;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bz(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bv.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bz)return bz(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return bC(a,b,d);f.swap(a,bw,function(){e=bC(a,b,d)});return e}},set:function(a,b){if(!bt.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cv(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cu("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cu("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cv(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cn.test(h)?(o=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),o?(f._data(this,"toggle"+i,o==="show"?"hide":"show"),j[o]()):j[h]()):(k=co.exec(h),l=j.cur(),k?(m=parseFloat(k[2]),n=k[3]||(f.cssNumber[i]?"":"px"),n!=="px"&&(f.style(this,i,(m||1)+n),l=(m||1)/j.cur()*l,f.style(this,i,l+n)),k[1]&&(m=(k[1]==="-="?-1:1)*m+l),j.custom(l,m,n)):j.custom(l,h,""));return!0}var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=cr||cs(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){e.options.hide&&f._data(e.elem,"fxshow"+e.prop)===b&&f._data(e.elem,"fxshow"+e.prop,e.start)},h()&&f.timers.push(h)&&!cp&&(cp=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cr||cs(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cp),cp=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(["width","height"],function(a,b){f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cy(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.support.fixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!cw.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.support.fixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cy(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j)?j:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);
js/lightboxes/pirobox_extended/css_pirobox/style_1/bottom_nav.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_1/caption.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_1/close.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_1/loadinfo.gif ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_1/new_skin.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_1/new_skin_left.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_1/new_skin_top.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_1/next.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_1/prev.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_1/style.css ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *{
2
+ margin:0;
3
+ padding:0;
4
+ }
5
+ .piro_html {position:absolute; top:0; left:0; padding:0; width:500px; height: 500px; margin:0; display:block; padding:0; z-index:150001; padding:0; }
6
+ .piro_html table,.piro_html tbody,.piro_html tr,.piro_html th,.piro_html td{margin:0;padding:0;border:none;}
7
+ .piro_html img{ margin:0; padding:0; border:none;}
8
+
9
+ .piro_html .h_t_l{ width:10px; height:10px; background: url(caption.png);}
10
+ .piro_html .h_t_r{ width:10px; height:10px; background: url(caption.png);}
11
+ .piro_html .h_t_c{ cursor:move; height:10px;background: url(caption.png);}
12
+
13
+ .piro_html .h_c_l{width:10px; background: url(caption.png); }
14
+ .piro_html .h_c_c{background: url(caption.png);margin:0; padding:0;}
15
+ .piro_html .h_c_c .div_reg{ background: url(caption.png); width:480px; overflow:hidden; height:480px; margin:0; padding:0; }
16
+ .piro_html .h_c_c .div_reg img{ cursor:move;}
17
+ .piro_html .h_c_r{width:10px; background: url(caption.png);}
18
+
19
+ .piro_html .h_b_c{ cursor:move; height:10px;background: url(caption.png);}
20
+ .piro_html .h_b_l{ width:10px; height:10px;background: url(caption.png);}
21
+ .piro_html .h_b_r{ width:10px; height:10px;background: url(caption.png);}
22
+
23
+ .piro_overlay{position:fixed; top:0; left:0; width:100%; height:100%; z-index:150000;background:#fff;display:none; cursor:pointer;}
24
+ .piro_loader{position:absolute;top:50%;left:50%;margin:-59px 0 0 -59px;width:118px;height:118px;display:block;z-index:150005; cursor:pointer; }
25
+ .piro_loader span{position:absolute;top:50%;left:50%;margin-top:-36px;margin-left:-36px;width:72px;height:72px;display:block;z-index:150009; background: url(loadinfo.gif) center top no-repeat; }
26
+ .piro_title{position:fixed; background: url(bg_title.png) bottom repeat-x;top:0;left:0;width:100%; text-align:center;display:block; padding:6px 0 10px 0; color:white; z-index:150000; font-size:18px; display:none;}
27
+ .btn_info{position:absolute;bottom:-7px;right:-7px;width:25px; height:25px;margin:0;display:block; padding:0px; color:black; cursor:pointer; background: url(b_w/info.png) no-repeat; z-index:1500440}
28
+ .caption{position:absolute;bottom:10px;left:10px;margin:0;display:block; padding:0px; color:black; cursor:text; background: url(caption.png); z-index:150018}
29
+ .caption p{ display:block; margin:0;padding:7px 5px; text-align:center; font-weight:normal; font-size:14px; color:white; z-index:150019; color:white;}
30
+
31
+ .nav_container{position:absolute; bottom:-20px; right:0; height:20px; width:60px; background: url(caption.png); z-index:1500190000000;}
32
+ .piro_close{position:absolute;right:20px;height:20px;width:20px;background: transparent url(close.png) no-repeat center center;cursor:pointer;margin:0 0 0 0;z-index:150022;display:none;}
33
+ a.piro_next{position:absolute;width:20px; right:0px; height:20px;text-indent:-999em;outline:none; display:block; margin:0;background:url(next.png) center right no-repeat; border:none; cursor:pointer;z-index:150023}
34
+ a:hover.piro_next{background:url(next.png) center right no-repeat;}
35
+ .piro_next_fake{position:absolute;width:20px; right:0px; height:20px;outline:none; text-indent:-999em; display:none; margin:0;background: url(next.png) center right no-repeat; border:none; cursor:auto;z-index:150020}
36
+ .piro_prev_fake{position:absolute;width:20px; right:40px; height:20px;outline:none; text-indent:-999em; display:none; margin:0;background: url(prev.png) center right no-repeat; border:none; cursor:auto;z-index:150020}
37
+
38
+ a.piro_prev{position:absolute;width:20px; right:40px; height:20px; text-indent:-999em; outline:none;display:block;margin:0;background: url(prev.png) center left no-repeat;border:none; cursor:pointer; z-index:150024}
39
+ a:hover.piro_prev{background:url(prev.png) center left no-repeat;}
40
+ a.close_pirobox{color:#bb0f05;}
41
+
42
+
43
+
44
+
js/lightboxes/pirobox_extended/css_pirobox/style_2/bottom_nav.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_2/caption.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_2/close.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_2/loadinfo.gif ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_2/new_skin.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_2/new_skin_left.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_2/new_skin_top.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_2/next.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_2/prev.png ADDED
Binary file
js/lightboxes/pirobox_extended/css_pirobox/style_2/style.css ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *{
2
+ margin:0;
3
+ padding:0;
4
+ }
5
+ .piro_html {position:absolute; top:0; left:0; padding:0; width:500px; height: 500px; margin:0; display:block; padding:0; z-index:150001; padding:0; }
6
+ .piro_html table,.piro_html tbody,.piro_html tr,.piro_html th,.piro_html td{margin:0;padding:0;border:none;}
7
+ .piro_html img{ margin:0; padding:0; border:none;}
8
+
9
+ .piro_html .h_t_l{ width:10px; height:10px; background: url(new_skin.png) top left no-repeat;}
10
+ .piro_html .h_t_r{ width:10px; height:10px; background: url(new_skin.png) top right no-repeat;}
11
+ .piro_html .h_t_c{ cursor:move; height:10px;background: url(new_skin_top.png) top repeat-x;}
12
+
13
+ .piro_html .h_c_l{width:10px; background: url(new_skin_left.png) left repeat-y; }
14
+ .piro_html .h_c_c{background: url(caption.png);margin:0; padding:0;}
15
+ .piro_html .h_c_c .div_reg{ background: url(caption.png); width:480px; overflow:hidden; height:480px; margin:0; padding:0; }
16
+ .piro_html .h_c_c .div_reg img{ cursor:move;}
17
+ .piro_html .h_c_r{width:10px; background: url(new_skin_left.png) right repeat-y;}
18
+
19
+ .piro_html .h_b_c{ cursor:move; height:10px;background: url(new_skin_top.png) bottom repeat-x;}
20
+ .piro_html .h_b_l{ width:10px; height:10px;background: url(new_skin.png) bottom left no-repeat;}
21
+ .piro_html .h_b_r{ width:10px; height:10px;background: url(new_skin.png) bottom right no-repeat;}
22
+
23
+ .piro_overlay{position:fixed; top:0; left:0; width:100%; height:100%; z-index:150000;background:#fff;display:none; cursor:pointer;}
24
+ .piro_loader{position:absolute;top:50%;left:50%;margin:-59px 0 0 -59px;width:118px;height:118px;display:block;z-index:150005; cursor:pointer; }
25
+ .piro_loader span{position:absolute;top:50%;left:50%;margin-top:-36px;margin-left:-36px;width:72px;height:72px;display:block;z-index:150009; background: url(loadinfo.gif) center top no-repeat; }
26
+ .piro_title{position:fixed; background: url(bg_title.png) bottom repeat-x;top:0;left:0;width:100%; text-align:center;display:block; padding:6px 0 10px 0; color:white; z-index:150000; font-size:18px; display:none;}
27
+ .btn_info{position:absolute;bottom:-7px;right:-7px;width:25px; height:25px;margin:0;display:block; padding:0px; color:black; cursor:pointer; background: url(b_w/info.png) no-repeat; z-index:1500440}
28
+ .caption{position:absolute;bottom:10px;left:10px;margin:0;display:block; padding:0px; color:black; cursor:text; background: url(caption.png); z-index:150018}
29
+ .caption p{ display:block; margin:0;padding:7px 5px; text-align:center; font-weight:normal; font-size:14px; color:white; z-index:150019; color:white;}
30
+
31
+ .nav_container{position:absolute; right:5px; bottom:-20px; height:25px; width:60px; background: url(bottom_nav.png) bottom; z-index:1500190000000;}
32
+ .piro_close{position:absolute;right:20px; top:0;height:20px;width:20px;background: transparent url(close.png) no-repeat center center;cursor:pointer;margin:0 0 0 0;z-index:150022;display:none;}
33
+ a.piro_next{position:absolute;width:20px; top:0; right:0px; height:20px;text-indent:-999em;outline:none; display:block; margin:0;background:url(next.png) center right no-repeat; border:none; cursor:pointer;z-index:150023}
34
+ a:hover.piro_next{background:url(next.png) center right no-repeat;}
35
+ .piro_next_fake{position:absolute;width:20px; top:0;right:0px; height:20px;outline:none; text-indent:-999em; display:none; margin:0;background: url(next.png) center right no-repeat; border:none; cursor:auto;z-index:150020}
36
+ .piro_prev_fake{position:absolute;width:20px; top:0;right:40px; height:20px;outline:none; text-indent:-999em; display:none; margin:0;background: url(prev.png) center right no-repeat; border:none; cursor:auto;z-index:150020}
37
+
38
+ a.piro_prev{position:absolute;width:20px; right:40px; top:0; height:20px; text-indent:-999em; outline:none;display:block;margin:0;background: url(prev.png) center left no-repeat;border:none; cursor:pointer; z-index:150024}
39
+ a:hover.piro_prev{background:url(prev.png) center left no-repeat;}
40
+ a.close_pirobox{color:#bb0f05;}
41
+
42
+
43
+
js/lightboxes/pirobox_extended/demo.html ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <title>Pirobox Extended</title>
6
+ <link href="css_pirobox/style_1/style.css" rel="stylesheet" type="text/css" />
7
+ <link rel="stylesheet" type="text/css" href="css/css.css"/>
8
+ <link rel="stylesheet" type="text/css" href="content/css/default.css"/>
9
+ <link rel="stylesheet" type="text/css" href="css/sansation/stylesheet.css"/>
10
+ <script type="text/javascript" src="js/jquery.min.js"></script>
11
+ <script type="text/javascript" src="js/jquery-ui-1.8.2.custom.min.js"></script>
12
+ <script type="text/javascript" src="js/pirobox_extended.js"></script>
13
+ <script type="text/javascript">
14
+ $(document).ready(function() {
15
+ $().piroBox_ext({
16
+ piro_speed : 700,
17
+ bg_alpha : 0.5,
18
+ piro_scroll : true // pirobox always positioned at the center of the page
19
+ });
20
+ });
21
+ </script>
22
+ </head>
23
+ <body>
24
+ <div class="logo"><a href="http://www.pirolab.it/pirobox/" title="go to pirobox page">back to pirobox page</a></div>
25
+ <div class="box_main_nav"></div>
26
+ <div class="box_main">
27
+
28
+ <div class="box_left">
29
+ <h2 class="my_title">PIROBOX EXTENDED <span class="span_f_c">V.1.0</span> style 1</h2>
30
+ <h2 class="my_title">Image gallery</h2>
31
+ <div class="demo">
32
+ <ul>
33
+ <li>
34
+ <a href="img/26.jpg" rel="gallery" class="pirobox_gall" title="Curious kitten.">
35
+ <img src="img/26s.jpg" />
36
+ </a>
37
+ </li>
38
+ <li><a href="img/27.jpg" rel="gallery" class="pirobox_gall" title="Lights"><img src="img/27s.jpg" /></a></li>
39
+ <li><a href="img/29.jpg" rel="gallery" class="pirobox_gall" title="Sun salutation."><img src="img/29s.jpg" /></a></li>
40
+ <li><a href="img/30.jpg" rel="gallery" class="pirobox_gall" title="Bonfire"><img src="img/30s.jpg" /></a></li>
41
+ </ul></div>
42
+ <h2 class="my_title">Single image</h2>
43
+ <div class="demo">
44
+ <a href="img/32.jpg" rel="single" class="pirobox" title="Me and my friend Niko" style="margin:0 10px 0 0;"><img src="img/32s.jpg" /></a>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
45
+ <h2 class="my_title">URL image error</h2>
46
+ <div class="demo">
47
+ <a href="img/fòòflglnnb.jpg" rel="single" class="pirobox" title="Io e Niko" style="margin:0 10px 0 0;"><img src="img/13s.jpg" /></a>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
48
+ </div>
49
+ <h2 class="my_title">Mixed gallery</h2>
50
+ <h2 class="my_title"> <a href="#inline" rel="inline-800-250" class="pirobox_gall1" title="Inline content">► <span class="span_f_c">Inline content </span><b style="font-size:12px;">Open </b><span style="font-size:10px;">(800x250px)</span></a> </h2>
51
+ <div id="inline" style="display:none; background:white;">
52
+ <h2 class="h2">Inline content</h2>
53
+ <p style="padding:20px;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
54
+ </div>
55
+ <h2 class="my_title"> <a href="content/login.html" title="Login form" rel="content-310-260" class="pirobox_gall1">► <span class="span_f_c">HTML Content </span><b style="font-size:12px;">Open </b><span style="font-size:10px;">(310x260px)</span></a></h2>
56
+
57
+ <h2 class="my_title"> <a href="img/13.jpg" title="Lisbona" rel="gallery" class="pirobox_gall1">► <span class="span_f_c">Image </span><b style="font-size:12px;">Open </b><span style="font-size:10px;">(Image size)</span></a></h2>
58
+
59
+ <h2 class="my_title"><a href="http://www.youtube-nocookie.com/v/Bkjv9SscotY&amp;hl=it_IT&amp;fs=1?rel=0" rel="iframe-640-505" class="pirobox_gall1" title="You tube ">► <span class="span_f_c">You Tube</span> <b style="font-size:12px;"> Open </b><span style="font-size:10px;"> (640x505px)</span></a></h2>
60
+
61
+ <h2 class="my_title"><a href="http://www.jquery.com" rel="iframe-full-full" class="pirobox_gall1" title="jQuery website">►<span class="span_f_c">jQuery </span><b style="font-size:12px;"> Open </b> <span style="font-size:10px;">(full screen)</span></a></h2>
62
+
63
+ <h2 class="my_title"><a href="http://player.vimeo.com/video/18361415" class="pirobox_gall1" rel="iframe-900-350" title="Intro">►<span class="span_f_c">Vimeo </span><b style="font-size:12px;"> Open </b><span style="font-size:10px;">(900x350px)</span></a></h2>
64
+
65
+ <h2 class="my_title"><a href="intro_ants.swf" class="pirobox_gall1" rel="iframe-900-350" title="Intro">►<span class="span_f_c">SWF </span><b style="font-size:12px;"> Open </b><span style="font-size:10px;">(900x350px)</span></a></h2>
66
+ </div>
67
+ <div class="box_right">
68
+ <h2 class="my_title">jQuery plugins I like</h2>
69
+ <ul class="list">
70
+ <li><a href="http://leandrovieira.com/projects/jquery/lightbox/">Lightbox <span class="span_f_c">By Leandro Viera</span></a></li>
71
+ <li><a href="http://demos.flesler.com/jquery/scrollTo/">ScrollTo <span class="span_f_c">By Ariel Flesler</span></a></li>
72
+ <li><a href="http://www.malsup.com/jquery/cycle/">Cycle <span class="span_f_c">By Mike Alsup</span></a></li>
73
+ <li><a href="http://dev.herr-schuessler.de/jquery/popeye/">Popey <span class="span_f_c">By Christoph Schüßler</span></a></li>
74
+ <li><a href="http://colorpowered.com/colorbox/">Colorbox <span class="span_f_c">By Jack Moore</span></a></li>
75
+ <li><a href="http://galleria.aino.se/">Galleria <span class="span_f_c">By Aino</span></a></li>
76
+ <li><a href="http://workshop.rs/projects/coin-slider/">Coin Slider <span class="span_f_c">By Ivan Lazarevic</span></a></li>
77
+ </ul>
78
+ <h2 class="my_title">Usefull Links</h2>
79
+ <ul class="list">
80
+ <li><a href="http://jquery.com/">jQuery</a></li>
81
+ <li><a href="http://jqueryui.com/">jQuery UI</a></li>
82
+ <li><a href="http://www.1stwebdesigner.com/">1st Webdesigner</a></li>
83
+ <li><a href="http://blog.insicdesigns.com/">Insicdesigns</a></li>
84
+ <li><a href="http://line25.com/">Line 25</a></li>
85
+ <li><a href="http://blueprintds.com/">Blueprint Design Studio<span class="span_f_c"></span></a></li>
86
+ <li><a href="http://graphicalerts.com/">Graphic Alerts</a></li>
87
+ <li><a href="http://planetozh.com/projects/lightbox-clones/">The Lightbox Clones Matrix</a></li>
88
+ <li><a href="http://mayramoretti.com.br/blog/">Top Of Your Mind</a></li>
89
+ <li><a href="http://www.ajaxlines.com/">Ajax Lines</a></li>
90
+ <li><a href="http://www.webdesignshock.com/">Web Design Shock</a></li>
91
+ <li><a href="http://www.ajaxrain.com/">Ajax Rain</a></li>
92
+ <li><a href="http://www.jquerylabs.com/">jQuery Labs</a></li>
93
+ <li><a href="http://www.designyourway.net/blog/">Design Your Way</a></li>
94
+ <li><a href="http://www.dreamcss.com/">DreamCss</a></li>
95
+ <li><a href="http://blog.webair.it/">Blog Web Air</a></li>
96
+ <li><a href="http://www.tomstardust.com/">Tom Stardust</a></li>
97
+ </ul>
98
+ <p style="padding:10px;">&nbsp;</p>
99
+ </div>
100
+ <div style="clear:both;"></div>
101
+ <div class="footer">info : diegovalobra@gmail.com - credits to <a href="http://www.pirolab.it">pirolab.it</a></div>
102
+ </div>
103
+ </body>
104
+ </html>
js/lightboxes/pirobox_extended/demo2.html ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <title>Pirobox Extended</title>
6
+ <link href="css_pirobox/style_2/style.css" rel="stylesheet" type="text/css" />
7
+ <link rel="stylesheet" type="text/css" href="css/css.css"/>
8
+ <link rel="stylesheet" type="text/css" href="content/css/default.css"/>
9
+ <link rel="stylesheet" type="text/css" href="css/sansation/stylesheet.css"/>
10
+ <script type="text/javascript" src="js/jquery.min.js"></script>
11
+ <script type="text/javascript" src="js/jquery-ui-1.8.2.custom.min.js"></script>
12
+ <script type="text/javascript" src="js/pirobox_extended.js"></script>
13
+ <script type="text/javascript">
14
+ $(document).ready(function() {
15
+ $().piroBox_ext({
16
+ piro_speed : 700,
17
+ bg_alpha : 0.5,
18
+ piro_scroll : true // pirobox always positioned at the center of the page
19
+ });
20
+ });
21
+ </script>
22
+ </head>
23
+ <body>
24
+ <div class="logo"><a href="http://www.pirolab.it/pirobox/" title="go to pirobox page">back to pirobox page</a></div>
25
+ <div class="box_main_nav"></div>
26
+ <div class="box_main">
27
+
28
+ <div class="box_left">
29
+ <h2 class="my_title">PIROBOX EXTENDED <span class="span_f_c">V.1.0</span> style 1</h2>
30
+ <h2 class="my_title">Image gallery</h2>
31
+ <div class="demo">
32
+ <ul>
33
+ <li>
34
+ <a href="img/26.jpg" rel="gallery" class="pirobox_gall" title="Curious kitten.">
35
+ <img src="img/26s.jpg" />
36
+ </a>
37
+ </li>
38
+ <li><a href="img/27.jpg" rel="gallery" class="pirobox_gall" title="Lights"><img src="img/27s.jpg" /></a></li>
39
+ <li><a href="img/29.jpg" rel="gallery" class="pirobox_gall" title="Sun salutation."><img src="img/29s.jpg" /></a></li>
40
+ <li><a href="img/30.jpg" rel="gallery" class="pirobox_gall" title="Bonfire"><img src="img/30s.jpg" /></a></li>
41
+ </ul></div>
42
+ <h2 class="my_title">Single image</h2>
43
+ <div class="demo">
44
+ <a href="img/32.jpg" rel="single" class="pirobox" title="Me and my friend Niko" style="margin:0 10px 0 0;"><img src="img/32s.jpg" /></a>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
45
+ <h2 class="my_title">URL image error</h2>
46
+ <div class="demo">
47
+ <a href="img/fòòflglnnb.jpg" rel="single" class="pirobox" title="Io e Niko" style="margin:0 10px 0 0;"><img src="img/13s.jpg" /></a>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
48
+ </div>
49
+ <h2 class="my_title">Mixed gallery</h2>
50
+ <h2 class="my_title"> <a href="#inline" rel="inline-800-250" class="pirobox_gall1" title="Inline content">► <span class="span_f_c">Inline content </span><b style="font-size:12px;">Open </b><span style="font-size:10px;">(800x250px)</span></a> </h2>
51
+ <div id="inline" style="display:none; background:white;">
52
+ <h2 class="h2">Inline content</h2>
53
+ <p style="padding:20px;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
54
+ </div>
55
+ <h2 class="my_title"> <a href="content/login.html" title="Login form" rel="content-310-260" class="pirobox_gall1">► <span class="span_f_c">HTML Content </span><b style="font-size:12px;">Open </b><span style="font-size:10px;">(310x260px)</span></a></h2>
56
+
57
+ <h2 class="my_title"> <a href="img/13.jpg" title="Lisbona" rel="gallery" class="pirobox_gall1">► <span class="span_f_c">Image </span><b style="font-size:12px;">Open </b><span style="font-size:10px;">(Image size)</span></a></h2>
58
+
59
+ <h2 class="my_title"><a href="http://www.youtube-nocookie.com/v/Bkjv9SscotY&amp;hl=it_IT&amp;fs=1?rel=0" rel="iframe-640-505" class="pirobox_gall1" title="You tube ">► <span class="span_f_c">You Tube</span> <b style="font-size:12px;"> Open </b><span style="font-size:10px;"> (640x505px)</span></a></h2>
60
+
61
+ <h2 class="my_title"><a href="http://www.jquery.com" rel="iframe-full-full" class="pirobox_gall1" title="jQuery website">►<span class="span_f_c">jQuery </span><b style="font-size:12px;"> Open </b> <span style="font-size:10px;">(full screen)</span></a></h2>
62
+
63
+ <h2 class="my_title"><a href="http://player.vimeo.com/video/18361415" class="pirobox_gall1" rel="iframe-900-350" title="Intro">►<span class="span_f_c">Vimeo </span><b style="font-size:12px;"> Open </b><span style="font-size:10px;">(900x350px)</span></a></h2>
64
+
65
+ <h2 class="my_title"><a href="intro_ants.swf" class="pirobox_gall1" rel="iframe-900-350" title="Intro">►<span class="span_f_c">SWF </span><b style="font-size:12px;"> Open </b><span style="font-size:10px;">(900x350px)</span></a></h2>
66
+ </div>
67
+ <div class="box_right">
68
+ <h2 class="my_title">jQuery plugins I like</h2>
69
+ <ul class="list">
70
+ <li><a href="http://leandrovieira.com/projects/jquery/lightbox/">Lightbox <span class="span_f_c">By Leandro Viera</span></a></li>
71
+ <li><a href="http://demos.flesler.com/jquery/scrollTo/">ScrollTo <span class="span_f_c">By Ariel Flesler</span></a></li>
72
+ <li><a href="http://www.malsup.com/jquery/cycle/">Cycle <span class="span_f_c">By Mike Alsup</span></a></li>
73
+ <li><a href="http://dev.herr-schuessler.de/jquery/popeye/">Popey <span class="span_f_c">By Christoph Schüßler</span></a></li>
74
+ <li><a href="http://colorpowered.com/colorbox/">Colorbox <span class="span_f_c">By Jack Moore</span></a></li>
75
+ <li><a href="http://galleria.aino.se/">Galleria <span class="span_f_c">By Aino</span></a></li>
76
+ <li><a href="http://workshop.rs/projects/coin-slider/">Coin Slider <span class="span_f_c">By Ivan Lazarevic</span></a></li>
77
+ </ul>
78
+ <h2 class="my_title">Usefull Links</h2>
79
+ <ul class="list">
80
+ <li><a href="http://jquery.com/">jQuery</a></li>
81
+ <li><a href="http://jqueryui.com/">jQuery UI</a></li>
82
+ <li><a href="http://www.1stwebdesigner.com/">1st Webdesigner</a></li>
83
+ <li><a href="http://blog.insicdesigns.com/">Insicdesigns</a></li>
84
+ <li><a href="http://line25.com/">Line 25</a></li>
85
+ <li><a href="http://blueprintds.com/">Blueprint Design Studio<span class="span_f_c"></span></a></li>
86
+ <li><a href="http://graphicalerts.com/">Graphic Alerts</a></li>
87
+ <li><a href="http://planetozh.com/projects/lightbox-clones/">The Lightbox Clones Matrix</a></li>
88
+ <li><a href="http://mayramoretti.com.br/blog/">Top Of Your Mind</a></li>
89
+ <li><a href="http://www.ajaxlines.com/">Ajax Lines</a></li>
90
+ <li><a href="http://www.webdesignshock.com/">Web Design Shock</a></li>
91
+ <li><a href="http://www.ajaxrain.com/">Ajax Rain</a></li>
92
+ <li><a href="http://www.jquerylabs.com/">jQuery Labs</a></li>
93
+ <li><a href="http://www.designyourway.net/blog/">Design Your Way</a></li>
94
+ <li><a href="http://www.dreamcss.com/">DreamCss</a></li>
95
+ <li><a href="http://blog.webair.it/">Blog Web Air</a></li>
96
+ <li><a href="http://www.tomstardust.com/">Tom Stardust</a></li>
97
+ </ul>
98
+ <p style="padding:10px;">&nbsp;</p>
99
+ </div>
100
+ <div style="clear:both;"></div>
101
+ <div class="footer">info : diegovalobra@gmail.com - credits to <a href="http://www.pirolab.it">pirolab.it</a></div>
102
+ </div>
103
+ </body>
104
+ </html>
js/lightboxes/pirobox_extended/js/error.jpg ADDED
Binary file
js/lightboxes/pirobox_extended/js/jquery-ui-1.8.2.custom.min.js ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * jQuery UI 1.8.2
3
+ *
4
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
5
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
6
+ * and GPL (GPL-LICENSE.txt) licenses.
7
+ *
8
+ * http://docs.jquery.com/UI
9
+ */
10
+ (function(c){c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.2",plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==
11
+ "hidden")return false;b=b&&b=="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,f,g){return c.ui.isOverAxis(a,d,f)&&c.ui.isOverAxis(b,e,g)},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,
12
+ NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect",
13
+ "none")},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",
14
+ 1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==undefined)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b=="absolute"||b=="relative"||b=="fixed"){b=parseInt(a.css("zIndex"));if(!isNaN(b)&&b!=0)return b}a=a.parent()}}return 0}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");return(/input|select|textarea|button|object/.test(b)?
15
+ !a.disabled:"a"==b||"area"==b?a.href||!isNaN(d):!isNaN(d))&&!c(a)["area"==b?"parents":"closest"](":hidden").length},tabbable:function(a){var b=c.attr(a,"tabindex");return(isNaN(b)||b>=0)&&c(a).is(":focusable")}})}})(jQuery);
16
+ ;/*!
17
+ * jQuery UI Widget 1.8.2
18
+ *
19
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
20
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
21
+ * and GPL (GPL-LICENSE.txt) licenses.
22
+ *
23
+ * http://docs.jquery.com/UI/Widget
24
+ */
25
+ (function(b){var j=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add(this).each(function(){b(this).triggerHandler("remove")});return j.call(b(this),a,c)})};b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend({},c.options);b[e][a].prototype=
26
+ b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.substring(0,1)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==undefined){h=i;return false}}):this.each(function(){var g=
27
+ b.data(this,a);if(g){d&&g.option(d);g._init()}else b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){this.element=b(c).data(this.widgetName,this);this.options=b.extend(true,{},this.options,b.metadata&&b.metadata.get(c)[this.widgetName],a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();
28
+ this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a,e=this;if(arguments.length===0)return b.extend({},e.options);if(typeof a==="string"){if(c===undefined)return this.options[a];d={};d[a]=c}b.each(d,function(f,
29
+ h){e._setOption(f,h)});return e},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=
30
+ b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
31
+ ;/*!
32
+ * jQuery UI Mouse 1.8.2
33
+ *
34
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
35
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
36
+ * and GPL (GPL-LICENSE.txt) licenses.
37
+ *
38
+ * http://docs.jquery.com/UI/Mouse
39
+ *
40
+ * Depends:
41
+ * jquery.ui.widget.js
42
+ */
43
+ (function(c){c.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(a){a.originalEvent=a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&
44
+ this._mouseUp(a);this._mouseDownEvent=a;var b=this,e=a.which==1,f=typeof this.options.cancel=="string"?c(a.target).parents().add(a.target).filter(this.options.cancel).length:false;if(!e||f||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){b.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();
45
+ return true}}this._mouseMoveDelegate=function(d){return b._mouseMove(d)};this._mouseUpDelegate=function(d){return b._mouseUp(d)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.browser.safari||a.preventDefault();return a.originalEvent.mouseHandled=true}},_mouseMove:function(a){if(c.browser.msie&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&
46
+ this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=a.target==this._mouseDownEvent.target;this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-
47
+ a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
48
+ ;/*
49
+ * jQuery UI Position 1.8.2
50
+ *
51
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
52
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
53
+ * and GPL (GPL-LICENSE.txt) licenses.
54
+ *
55
+ * http://docs.jquery.com/UI/Position
56
+ */
57
+ (function(c){c.ui=c.ui||{};var m=/left|center|right/,n=/top|center|bottom/,p=c.fn.position,q=c.fn.offset;c.fn.position=function(a){if(!a||!a.of)return p.apply(this,arguments);a=c.extend({},a);var b=c(a.of),d=(a.collision||"flip").split(" "),e=a.offset?a.offset.split(" "):[0,0],g,h,i;if(a.of.nodeType===9){g=b.width();h=b.height();i={top:0,left:0}}else if(a.of.scrollTo&&a.of.document){g=b.width();h=b.height();i={top:b.scrollTop(),left:b.scrollLeft()}}else if(a.of.preventDefault){a.at="left top";g=h=
58
+ 0;i={top:a.of.pageY,left:a.of.pageX}}else{g=b.outerWidth();h=b.outerHeight();i=b.offset()}c.each(["my","at"],function(){var f=(a[this]||"").split(" ");if(f.length===1)f=m.test(f[0])?f.concat(["center"]):n.test(f[0])?["center"].concat(f):["center","center"];f[0]=m.test(f[0])?f[0]:"center";f[1]=n.test(f[1])?f[1]:"center";a[this]=f});if(d.length===1)d[1]=d[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(a.at[0]==="right")i.left+=g;else if(a.at[0]==="center")i.left+=
59
+ g/2;if(a.at[1]==="bottom")i.top+=h;else if(a.at[1]==="center")i.top+=h/2;i.left+=e[0];i.top+=e[1];return this.each(function(){var f=c(this),k=f.outerWidth(),l=f.outerHeight(),j=c.extend({},i);if(a.my[0]==="right")j.left-=k;else if(a.my[0]==="center")j.left-=k/2;if(a.my[1]==="bottom")j.top-=l;else if(a.my[1]==="center")j.top-=l/2;j.left=parseInt(j.left);j.top=parseInt(j.top);c.each(["left","top"],function(o,r){c.ui.position[d[o]]&&c.ui.position[d[o]][r](j,{targetWidth:g,targetHeight:h,elemWidth:k,
60
+ elemHeight:l,offset:e,my:a.my,at:a.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(j,{using:a.using}))})};c.ui.position={fit:{left:function(a,b){var d=c(window);b=a.left+b.elemWidth-d.width()-d.scrollLeft();a.left=b>0?a.left-b:Math.max(0,a.left)},top:function(a,b){var d=c(window);b=a.top+b.elemHeight-d.height()-d.scrollTop();a.top=b>0?a.top-b:Math.max(0,a.top)}},flip:{left:function(a,b){if(b.at[0]!=="center"){var d=c(window);d=a.left+b.elemWidth-d.width()-d.scrollLeft();var e=b.my[0]==="left"?
61
+ -b.elemWidth:b.my[0]==="right"?b.elemWidth:0,g=-2*b.offset[0];a.left+=a.left<0?e+b.targetWidth+g:d>0?e-b.targetWidth+g:0}},top:function(a,b){if(b.at[1]!=="center"){var d=c(window);d=a.top+b.elemHeight-d.height()-d.scrollTop();var e=b.my[1]==="top"?-b.elemHeight:b.my[1]==="bottom"?b.elemHeight:0,g=b.at[1]==="top"?b.targetHeight:-b.targetHeight,h=-2*b.offset[1];a.top+=a.top<0?e+b.targetHeight+h:d>0?e+g+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(a,b){if(/static/.test(c.curCSS(a,"position")))a.style.position=
62
+ "relative";var d=c(a),e=d.offset(),g=parseInt(c.curCSS(a,"top",true),10)||0,h=parseInt(c.curCSS(a,"left",true),10)||0;e={top:b.top-e.top+g,left:b.left-e.left+h};"using"in b?b.using.call(a,e):d.css(e)};c.fn.offset=function(a){var b=this[0];if(!b||!b.ownerDocument)return null;if(a)return this.each(function(){c.offset.setOffset(this,a)});return q.call(this)}}})(jQuery);
63
+ ;/*
64
+ * jQuery UI Draggable 1.8.2
65
+ *
66
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
67
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
68
+ * and GPL (GPL-LICENSE.txt) licenses.
69
+ *
70
+ * http://docs.jquery.com/UI/Draggables
71
+ *
72
+ * Depends:
73
+ * jquery.ui.core.js
74
+ * jquery.ui.mouse.js
75
+ * jquery.ui.widget.js
76
+ */
77
+ (function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
78
+ "original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var b=
79
+ this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;return true},_mouseStart:function(a){var b=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
80
+ this.margins.top,left:this.offset.left-this.margins.left};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();
81
+ d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true},_mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
82
+ this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b=false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,
83
+ b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",a)!==false&&c._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle||!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
84
+ a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone():this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||
85
+ 0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
86
+ this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-
87
+ (parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment==
88
+ "parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&
89
+ a.containment.constructor!=Array){var b=d(a.containment)[0];if(b){a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),
90
+ 10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
91
+ this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
92
+ f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])e=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+
93
+ this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])e=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;e=this.originalPageX+
94
+ Math.round((e-this.originalPageX)/b.grid[0])*b.grid[0];e=this.containment?!(e-this.offset.click.left<this.containment[0]||e-this.offset.click.left>this.containment[2])?e:!(e-this.offset.click.left<this.containment[0])?e-b.grid[0]:e+b.grid[0]:e}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop()),left:e-this.offset.click.left-
95
+ this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,b,c){c=c||this._uiHash();d.ui.plugin.call(this,a,[b,c]);if(a=="drag")this.positionAbs=
96
+ this._convertPositionTo("absolute");return d.Widget.prototype._trigger.call(this,a,b,c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});d.extend(d.ui.draggable,{version:"1.8.2"});d.ui.plugin.add("draggable","connectToSortable",{start:function(a,b){var c=d(this).data("draggable"),f=c.options,e=d.extend({},b,{item:c.element});c.sortables=[];d(f.connectToSortable).each(function(){var g=d.data(this,"sortable");
97
+ if(g&&!g.options.disabled){c.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",a,e)}})},stop:function(a,b){var c=d(this).data("draggable"),f=d.extend({},b,{item:c.element});d.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(a);this.instance.options.helper=this.instance.options._helper;
98
+ c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",a,f)}})},drag:function(a,b){var c=d(this).data("draggable"),f=this;d.each(c.sortables,function(){this.instance.positionAbs=c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=
99
+ 1;this.instance.currentItem=d(f).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return b.helper[0]};a.target=this.instance.currentItem[0];this.instance._mouseCapture(a,true);this.instance._mouseStart(a,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;
100
+ this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top;c._trigger("toSortable",a);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&this.instance._mouseDrag(a)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",a,this.instance._uiHash(this.instance));this.instance._mouseStop(a,true);this.instance.options.helper=
101
+ this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();c._trigger("fromSortable",a);c.dropped=false}})}});d.ui.plugin.add("draggable","cursor",{start:function(){var a=d("body"),b=d(this).data("draggable").options;if(a.css("cursor"))b._cursor=a.css("cursor");a.css("cursor",b.cursor)},stop:function(){var a=d(this).data("draggable").options;a._cursor&&d("body").css("cursor",a._cursor)}});d.ui.plugin.add("draggable","iframeFix",{start:function(){var a=
102
+ d(this).data("draggable").options;d(a.iframeFix===true?"iframe":a.iframeFix).each(function(){d('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")})},stop:function(){d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});d.ui.plugin.add("draggable","opacity",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;
103
+ if(a.css("opacity"))b._opacity=a.css("opacity");a.css("opacity",b.opacity)},stop:function(a,b){a=d(this).data("draggable").options;a._opacity&&d(b.helper).css("opacity",a._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var b=d(this).data("draggable"),c=b.options,f=false;if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!=
104
+ "HTML"){if(!c.axis||c.axis!="x")if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop+c.scrollSpeed;else if(a.pageY-b.overflowOffset.top<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop-c.scrollSpeed;if(!c.axis||c.axis!="y")if(b.overflowOffset.left+b.scrollParent[0].offsetWidth-a.pageX<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft+c.scrollSpeed;else if(a.pageX-
105
+ b.overflowOffset.left<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(a.pageY-d(document).scrollTop()<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()-c.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(a.pageX-d(document).scrollLeft()<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()-
106
+ c.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()+c.scrollSpeed)}f!==false&&d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(b,a)}});d.ui.plugin.add("draggable","snap",{start:function(){var a=d(this).data("draggable"),b=a.options;a.snapElements=[];d(b.snap.constructor!=String?b.snap.items||":data(draggable)":b.snap).each(function(){var c=d(this),f=c.offset();this!=a.element[0]&&a.snapElements.push({item:this,
107
+ width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},drag:function(a,b){for(var c=d(this).data("draggable"),f=c.options,e=f.snapTolerance,g=b.offset.left,n=g+c.helperProportions.width,m=b.offset.top,o=m+c.helperProportions.height,h=c.snapElements.length-1;h>=0;h--){var i=c.snapElements[h].left,k=i+c.snapElements[h].width,j=c.snapElements[h].top,l=j+c.snapElements[h].height;if(i-e<g&&g<k+e&&j-e<m&&m<l+e||i-e<g&&g<k+e&&j-e<o&&o<l+e||i-e<n&&n<k+e&&j-e<m&&m<l+e||i-e<n&&n<k+e&&j-e<o&&
108
+ o<l+e){if(f.snapMode!="inner"){var p=Math.abs(j-o)<=e,q=Math.abs(l-m)<=e,r=Math.abs(i-n)<=e,s=Math.abs(k-g)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:j-c.helperProportions.height,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:l,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:i-c.helperProportions.width}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:k}).left-c.margins.left}var t=
109
+ p||q||r||s;if(f.snapMode!="outer"){p=Math.abs(j-m)<=e;q=Math.abs(l-o)<=e;r=Math.abs(i-g)<=e;s=Math.abs(k-n)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:j,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:l-c.helperProportions.height,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:i}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:k-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[h].snapping&&
110
+ (p||q||r||s||t))c.options.snap.snap&&c.options.snap.snap.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[h].item}));c.snapElements[h].snapping=p||q||r||s||t}else{c.snapElements[h].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[h].item}));c.snapElements[h].snapping=false}}}});d.ui.plugin.add("draggable","stack",{start:function(){var a=d(this).data("draggable").options;a=d.makeArray(d(a.stack)).sort(function(c,f){return(parseInt(d(c).css("zIndex"),
111
+ 10)||0)-(parseInt(d(f).css("zIndex"),10)||0)});if(a.length){var b=parseInt(a[0].style.zIndex)||0;d(a).each(function(c){this.style.zIndex=b+c});this[0].style.zIndex=b+a.length}}});d.ui.plugin.add("draggable","zIndex",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("zIndex"))b._zIndex=a.css("zIndex");a.css("zIndex",b.zIndex)},stop:function(a,b){a=d(this).data("draggable").options;a._zIndex&&d(b.helper).css("zIndex",a._zIndex)}})})(jQuery);
112
+ ;/*
113
+ * jQuery UI Resizable 1.8.2
114
+ *
115
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
116
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
117
+ * and GPL (GPL-LICENSE.txt) licenses.
118
+ *
119
+ * http://docs.jquery.com/UI/Resizables
120
+ *
121
+ * Depends:
122
+ * jquery.ui.core.js
123
+ * jquery.ui.mouse.js
124
+ * jquery.ui.widget.js
125
+ */
126
+ (function(d){d.widget("ui.resizable",d.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var b=this,a=this.options;this.element.addClass("ui-resizable");d.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,
127
+ _proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&d.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(d('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
128
+ top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
129
+ this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=a.handles||(!d(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
130
+ nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles={};for(var e=0;e<c.length;e++){var g=d.trim(c[e]),f=d('<div title="resize image" class="ui-resizable-handle '+("ui-resizable-"+g)+'"></div>');/sw|se|ne|nw/.test(g)&&f.css({zIndex:'150000000'});"se"==g&&f.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[g]=".ui-resizable-"+g;this.element.append(f)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor==
131
+ String)this.handles[i]=d(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=d(this.handles[i],this.element),l=0;l=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,l);this._proportionallyResize()}d(this.handles[i])}};this._renderAxis(this.element);this._handles=d(".ui-resizable-handle",this.element).disableSelection();
132
+ this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();d(this.element).addClass("ui-resizable-autohide").hover(function(){d(this).removeClass("ui-resizable-autohide");b._handles.show()},function(){if(!b.resizing){d(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(c){d(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
133
+ if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a=false;for(var c in this.handles)if(d(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(),
134
+ e=this.element;this.resizing=true;this.documentScroll={top:d(document).scrollTop(),left:d(document).scrollLeft()};if(e.is(".ui-draggable")||/absolute/.test(e.css("position")))e.css({position:"absolute",top:c.top,left:c.left});d.browser.opera&&/relative/.test(e.css("position"))&&e.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();c=m(this.helper.css("left"));var g=m(this.helper.css("top"));if(a.containment){c+=d(a.containment).scrollLeft()||0;g+=d(a.containment).scrollTop()||0}this.offset=
135
+ this.helper.offset();this.position={left:c,top:g};this.size=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalSize=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalPosition={left:c,top:g};this.sizeDiff={width:e.outerWidth()-e.width(),height:e.outerHeight()-e.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio:
136
+ this.originalSize.width/this.originalSize.height||1;a=d(".ui-resizable-"+this.axis).css("cursor");d("body").css("cursor",a=="auto"?this.axis+"-resize":a);e.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,e=this._change[this.axis];if(!e)return false;c=e.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize",
137
+ b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(c);this._trigger("resize",b,this.ui());return false},_mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var e=this._proportionallyResizeElements,g=e.length&&/textarea/i.test(e[0].nodeName);e=g&&d.ui.hasScroll(e[0],"left")?0:c.sizeDiff.height;
138
+ g={width:c.size.width-(g?0:c.sizeDiff.width),height:c.size.height-e};e=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var f=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(d.extend(g,{top:f,left:e}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}d("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",
139
+ b);this._helper&&this.helper.remove();return false},_updateCache:function(b){this.offset=this.helper.offset();if(k(b.left))this.position.left=b.left;if(k(b.top))this.position.top=b.top;if(k(b.height))this.size.height=b.height;if(k(b.width))this.size.width=b.width},_updateRatio:function(b){var a=this.position,c=this.size,e=this.axis;if(b.height)b.width=c.height*this.aspectRatio;else if(b.width)b.height=c.width/this.aspectRatio;if(e=="sw"){b.left=a.left+(c.width-b.width);b.top=null}if(e=="nw"){b.top=
140
+ a.top+(c.height-b.height);b.left=a.left+(c.width-b.width)}return b},_respectSize:function(b){var a=this.options,c=this.axis,e=k(b.width)&&a.maxWidth&&a.maxWidth<b.width,g=k(b.height)&&a.maxHeight&&a.maxHeight<b.height,f=k(b.width)&&a.minWidth&&a.minWidth>b.width,h=k(b.height)&&a.minHeight&&a.minHeight>b.height;if(f)b.width=a.minWidth;if(h)b.height=a.minHeight;if(e)b.width=a.maxWidth;if(g)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,
141
+ l=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(f&&l)b.left=i-a.minWidth;if(e&&l)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(g&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left=null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a<this._proportionallyResizeElements.length;a++){var c=this._proportionallyResizeElements[a];if(!this.borderDif){var e=[c.css("borderTopWidth"),
142
+ c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],g=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];this.borderDif=d.map(e,function(f,h){f=parseInt(f,10)||0;h=parseInt(g[h],10)||0;return f+h})}d.browser.msie&&(d(b).is(":hidden")||d(b).parents(":hidden").length)||c.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=this.options;this.elementOffset=
143
+ this.element.offset();if(this._helper){this.helper=this.helper||d('<div style="overflow:hidden;"></div>');var a=d.browser.msie&&d.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+
144
+ a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+c}},se:function(b,a,c){return d.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return d.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return d.extend(this._change.n.apply(this,
145
+ arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return d.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){d.ui.plugin.call(this,b,[a,this.ui()]);b!="resize"&&this._trigger(b,a,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});d.extend(d.ui.resizable,
146
+ {version:"1.8.2"});d.ui.plugin.add("resizable","alsoResize",{start:function(){var b=d(this).data("resizable").options,a=function(c){d(c).each(function(){d(this).data("resizable-alsoresize",{width:parseInt(d(this).width(),10),height:parseInt(d(this).height(),10),left:parseInt(d(this).css("left"),10),top:parseInt(d(this).css("top"),10)})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];a(b.alsoResize)}else d.each(b.alsoResize,function(c){a(c)});
147
+ else a(b.alsoResize)},resize:function(){var b=d(this).data("resizable"),a=b.options,c=b.originalSize,e=b.originalPosition,g={height:b.size.height-c.height||0,width:b.size.width-c.width||0,top:b.position.top-e.top||0,left:b.position.left-e.left||0},f=function(h,i){d(h).each(function(){var j=d(this),l=d(this).data("resizable-alsoresize"),p={};d.each((i&&i.length?i:["width","height","top","left"])||["width","height","top","left"],function(n,o){if((n=(l[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(/relative/.test(j.css("position"))&&
148
+ d.browser.opera){b._revertToRelativePosition=true;j.css({position:"absolute",top:"auto",left:"auto"})}j.css(p)})};typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?d.each(a.alsoResize,function(h,i){f(h,i)}):f(a.alsoResize)},stop:function(){var b=d(this).data("resizable");if(b._revertToRelativePosition&&d.browser.opera){b._revertToRelativePosition=false;el.css({position:"relative"})}d(this).removeData("resizable-alsoresize-start")}});d.ui.plugin.add("resizable","animate",{stop:function(b){var a=
149
+ d(this).data("resizable"),c=a.options,e=a._proportionallyResizeElements,g=e.length&&/textarea/i.test(e[0].nodeName),f=g&&d.ui.hasScroll(e[0],"left")?0:a.sizeDiff.height;g={width:a.size.width-(g?0:a.sizeDiff.width),height:a.size.height-f};f=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(d.extend(g,h&&f?{top:h,left:f}:{}),{duration:c.animateDuration,easing:c.animateEasing,
150
+ step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};e&&e.length&&d(e[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate("resize",b)}})}});d.ui.plugin.add("resizable","containment",{start:function(){var b=d(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof d?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement=
151
+ d(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:d(document),left:0,top:0,width:d(document).width(),height:d(document).height()||document.body.parentNode.scrollHeight}}else{var e=d(a),g=[];d(["Top","Right","Left","Bottom"]).each(function(i,j){g[i]=m(e.css("padding"+j))});b.containerOffset=e.offset();b.containerPosition=e.position();b.containerSize={height:e.innerHeight()-g[3],width:e.innerWidth()-g[1]};c=b.containerOffset;
152
+ var f=b.containerSize.height,h=b.containerSize.width;h=d.ui.hasScroll(a,"left")?a.scrollWidth:h;f=d.ui.hasScroll(a)?a.scrollHeight:f;b.parentData={element:a,left:c.left,top:c.top,width:h,height:f}}}},resize:function(b){var a=d(this).data("resizable"),c=a.options,e=a.containerOffset,g=a.position;b=a._aspectRatio||b.shiftKey;var f={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))f=e;if(g.left<(a._helper?e.left:0)){a.size.width+=a._helper?a.position.left-e.left:
153
+ a.position.left-f.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?e.left:0}if(g.top<(a._helper?e.top:0)){a.size.height+=a._helper?a.position.top-e.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?e.top:0}a.offset.left=a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-f.left:a.offset.left-f.left)+a.sizeDiff.width);e=Math.abs((a._helper?a.offset.top-f.top:a.offset.top-
154
+ e.top)+a.sizeDiff.height);g=a.containerElement.get(0)==a.element.parent().get(0);f=/relative|absolute/.test(a.containerElement.css("position"));if(g&&f)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=a.size.width/a.aspectRatio}if(e+a.size.height>=a.parentData.height){a.size.height=a.parentData.height-e;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=d(this).data("resizable"),a=b.options,c=b.containerOffset,e=b.containerPosition,
155
+ g=b.containerElement,f=d(b.helper),h=f.offset(),i=f.outerWidth()-b.sizeDiff.width;f=f.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(g.css("position"))&&d(this).css({left:h.left-e.left-c.left,width:i,height:f});b._helper&&!a.animate&&/static/.test(g.css("position"))&&d(this).css({left:h.left-e.left-c.left,width:i,height:f})}});d.ui.plugin.add("resizable","ghost",{start:function(){var b=d(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,
156
+ display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=d(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=d(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});d.ui.plugin.add("resizable","grid",{resize:function(){var b=
157
+ d(this).data("resizable"),a=b.options,c=b.size,e=b.originalSize,g=b.originalPosition,f=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-e.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-e.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(f)){b.size.width=e.width+h;b.size.height=e.height+a}else if(/^(ne)$/.test(f)){b.size.width=e.width+h;b.size.height=e.height+a;b.position.top=g.top-a}else{if(/^(sw)$/.test(f)){b.size.width=e.width+h;b.size.height=
158
+ e.height+a}else{b.size.width=e.width+h;b.size.height=e.height+a;b.position.top=g.top-a}b.position.left=g.left-h}}});var m=function(b){return parseInt(b,10)||0},k=function(b){return!isNaN(parseInt(b,10))}})(jQuery);
159
+ ;/*
160
+ * jQuery UI Effects 1.8.2
161
+ *
162
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
163
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
164
+ * and GPL (GPL-LICENSE.txt) licenses.
165
+ *
166
+ * http://docs.jquery.com/UI/Effects/
167
+ */
168
+ jQuery.effects||function(f){function k(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1],
169
+ 16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return l.transparent;return l[f.trim(c).toLowerCase()]}function q(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return k(b)}function m(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
170
+ a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function n(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in r||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function s(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function j(c,a,b,d){if(typeof c=="object"){d=
171
+ a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(f.isFunction(b)){d=b;b=null}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:f.fx.speeds[b]||f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=q(b.elem,a);b.end=k(b.end);b.colorInit=
172
+ true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var l={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,
173
+ 183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,
174
+ 165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},o=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b,d){if(f.isFunction(b)){d=b;b=null}return this.each(function(){var e=f(this),g=e.attr("style")||" ",h=n(m.call(this)),p,t=e.attr("className");f.each(o,function(u,
175
+ i){c[i]&&e[i+"Class"](c[i])});p=n(m.call(this));e.attr("className",t);e.animate(s(h,p),a,b,function(){f.each(o,function(u,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments)})})};f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?
176
+ f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===undefined?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.2",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==
177
+ null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b=0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();
178
+ var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=f("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});
179
+ c.css({position:"relative",top:0,left:0})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=j.apply(this,arguments);a={options:a[1],duration:a[2],callback:a[3]};var b=f.effects[c];return b&&!f.fx.off?b.call(this,a):this},_show:f.fn.show,show:function(c){if(!c||
180
+ typeof c=="number"||f.fx.speeds[c])return this._show.apply(this,arguments);else{var a=j.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(!c||typeof c=="number"||f.fx.speeds[c])return this._hide.apply(this,arguments);else{var a=j.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(!c||typeof c=="number"||f.fx.speeds[c]||typeof c=="boolean"||f.isFunction(c))return this.__toggle.apply(this,
181
+ arguments);else{var a=j.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,
182
+ a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+
183
+ b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,
184
+ 10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*
185
+ a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,
186
+ a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e/2)==2)return b+d;g||(g=e*0.3*1.5);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return h*Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,e,g){if(g==undefined)g=1.70158;return d*(a/=e)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g==undefined)g=1.70158;return d*((a=a/e-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,
187
+ a,b,d,e,g){if(g==undefined)g=1.70158;if((a/=e/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,d,e){return d-f.easing.easeOutBounce(c,e-a,0,d,e)+b},easeOutBounce:function(c,a,b,d,e){return(a/=e)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,a,b,d,e){if(a<e/2)return f.easing.easeInBounce(c,a*2,0,
188
+ d,e)*0.5+b;return f.easing.easeOutBounce(c,a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery);
189
+ ;/*
190
+ * jQuery UI Effects Blind 1.8.2
191
+ *
192
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
193
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
194
+ * and GPL (GPL-LICENSE.txt) licenses.
195
+ *
196
+ * http://docs.jquery.com/UI/Effects/Blind
197
+ *
198
+ * Depends:
199
+ * jquery.effects.core.js
200
+ */
201
+ (function(b){b.effects.blind=function(c){return this.queue(function(){var a=b(this),g=["position","top","left"],f=b.effects.setMode(a,c.options.mode||"hide"),d=c.options.direction||"vertical";b.effects.save(a,g);a.show();var e=b.effects.createWrapper(a).css({overflow:"hidden"}),h=d=="vertical"?"height":"width";d=d=="vertical"?e.height():e.width();f=="show"&&e.css(h,0);var i={};i[h]=f=="show"?d:0;e.animate(i,c.duration,c.options.easing,function(){f=="hide"&&a.hide();b.effects.restore(a,g);b.effects.removeWrapper(a);
202
+ c.callback&&c.callback.apply(a[0],arguments);a.dequeue()})})}})(jQuery);
203
+ ;
204
+
205
+ /*
206
+ * jQuery UI Effects Slide 1.8.4
207
+ *
208
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
209
+ * Dual licensed under the MIT or GPL Version 2 licenses.
210
+ * http://jquery.org/license
211
+ *
212
+ * http://docs.jquery.com/UI/Effects/Slide
213
+ *
214
+ * Depends:
215
+ * jquery.effects.core.js
216
+ */
217
+ (function( $, undefined ) {
218
+
219
+ $.effects.slide = function(o) {
220
+
221
+ return this.queue(function() {
222
+
223
+ // Create element
224
+ var el = $(this), props = ['position','top','left'];
225
+
226
+ // Set options
227
+ var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
228
+ var direction = o.options.direction || 'left'; // Default Direction
229
+
230
+ // Adjust
231
+ $.effects.save(el, props); el.show(); // Save & Show
232
+ $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
233
+ var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
234
+ var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
235
+ var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) : el.outerWidth({margin:true}));
236
+ if (mode == 'show') el.css(ref, motion == 'pos' ? -distance : distance); // Shift
237
+
238
+ // Animation
239
+ var animation = {};
240
+ animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance;
241
+
242
+ // Animate
243
+ el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
244
+ if(mode == 'hide') el.hide(); // Hide
245
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
246
+ if(o.callback) o.callback.apply(this, arguments); // Callback
247
+ el.dequeue();
248
+ }});
249
+
250
+ });
251
+
252
+ };
253
+
254
+ })(jQuery);
js/lightboxes/pirobox_extended/js/jquery.min.js ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * jQuery JavaScript Library v1.4.4
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 Nov 11 19:04:53 2010 -0500
15
+ */
16
+ (function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h=
17
+ h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var J=h.live.slice(0);for(k=0;k<J.length;k++){h=J[k];h.origType.replace(X,"")===a.type?f.push(h.selector):J.splice(k--,1)}f=c(a.target).closest(f,a.currentTarget);o=0;for(x=f.length;o<x;o++){r=f[o];for(k=0;k<J.length;k++){h=J[k];if(r.selector===h.selector&&(!A||A.test(h.namespace))){l=r.elem;e=null;if(h.preType==="mouseenter"||
18
+ h.preType==="mouseleave"){a.type=h.preType;e=c(a.relatedTarget).closest(h.selector)[0]}if(!e||e!==l)C.push({elem:l,handleObj:h,level:r.level})}}}o=0;for(x=C.length;o<x;o++){f=C[o];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La,
19
+ "`").replace(Ma,"&")}function ma(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(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(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,
20
+ e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(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 oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a,
21
+ "margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+
22
+ a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,
23
+ C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};b.fn=b.prototype={init:function(j,
24
+ s){var v,z,H;if(!j)return this;if(j.nodeType){this.context=this[0]=j;this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;this.selector="body";this.length=1;return this}if(typeof j==="string")if((v=h.exec(j))&&(v[1]||!s))if(v[1]){H=s?s.ownerDocument||s:t;if(z=A.exec(j))if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)}else j=[H.createElement(z[1])];else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this,
25
+ j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2])return f.find(j);this.length=1;this[0]=z}this.context=t;this.selector=j;return this}else if(!s&&!x.test(j)){this.selector=j;this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else return!s||s.jquery?(s||f).find(j):b(s).find(j);else if(b.isFunction(j))return f.ready(j);if(j.selector!==B){this.selector=j.selector;this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},
26
+ toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j===
27
+ -1?this.slice(j):this.slice(j,+j+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(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false;
28
+ if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K<Q;K++)if((j=arguments[K])!=null)for(s in j){v=G[s];z=j[s];if(G!==z)if(ga&&z&&(b.isPlainObject(z)||(H=b.isArray(z)))){if(H){H=false;v=v&&b.isArray(v)?v:[]}else v=v&&b.isPlainObject(v)?v:{};G[s]=b.extend(ga,v,z)}else if(z!==B)G[s]=z}return G};b.extend({noConflict:function(j){E.$=e;if(j)E.jQuery=d;return b},isReady:false,readyWait:1,ready:function(j){j===true&&b.readyWait--;
29
+ if(!b.readyWait||j!==true&&!b.isReady){if(!t.body)return setTimeout(b.ready,1);b.isReady=true;if(!(j!==true&&--b.readyWait>0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);E.addEventListener("load",b.ready,false)}else if(t.attachEvent){t.attachEvent("onreadystatechange",u);E.attachEvent("onload",
30
+ b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"},isWindow:function(j){return j&&typeof j==="object"&&"setInterval"in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j))return false;if(j.constructor&&
31
+ !F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&&
32
+ l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H<G;){if(s.apply(j[H++],v)===false)break}else if(K)for(z in j){if(s.call(j[z],
33
+ z,j[z])===false)break}else for(v=j[0];H<G&&s.call(v,H,v)!==false;v=j[++H]);return j},trim:O?function(j){return j==null?"":O.call(j)}:function(j){return j==null?"":j.toString().replace(k,"").replace(o,"")},makeArray:function(j,s){var v=s||[];if(j!=null){var z=b.type(j);j.length==null||z==="string"||z==="function"||z==="regexp"||b.isWindow(j)?M.call(v,j):b.merge(v,j)}return v},inArray:function(j,s){if(s.indexOf)return s.indexOf(j);for(var v=0,z=s.length;v<z;v++)if(s[v]===j)return v;return-1},merge:function(j,
34
+ s){var v=j.length,z=0;if(typeof s.length==="number")for(var H=s.length;z<H;z++)j[v++]=s[z];else for(;s[z]!==B;)j[v++]=s[z++];j.length=v;return j},grep:function(j,s,v){var z=[],H;v=!!v;for(var G=0,K=j.length;G<K;G++){H=!!s(j[G],G);v!==H&&z.push(j[G])}return z},map:function(j,s,v){for(var z=[],H,G=0,K=j.length;G<K;G++){H=s(j[G],G,v);if(H!=null)z[z.length]=H}return z.concat.apply([],z)},guid:1,proxy:function(j,s,v){if(arguments.length===2)if(typeof s==="string"){v=j;j=v[s];s=B}else if(s&&!b.isFunction(s)){v=
35
+ s;s=B}if(!s&&j)s=function(){return j.apply(v||this,arguments)};if(j)s.guid=j.guid=j.guid||s.guid||b.guid++;return s},access:function(j,s,v,z,H,G){var K=j.length;if(typeof s==="object"){for(var Q in s)b.access(j,Q,s[Q],z,H,v);return j}if(v!==B){z=!G&&z&&b.isFunction(v);for(Q=0;Q<K;Q++)H(j[Q],s,z?v.call(j[Q],Q,H(j[Q],s)):v,G);return j}return K?H(j[0],s):B},now:function(){return(new Date).getTime()},uaMatch:function(j){j=j.toLowerCase();j=L.exec(j)||g.exec(j)||i.exec(j)||j.indexOf("compatible")<0&&n.exec(j)||
36
+ [];return{browser:j[1]||"",version:j[2]||"0"}},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(j,s){R["[object "+s+"]"]=s.toLowerCase()});m=b.uaMatch(m);if(m.browser){b.browser[m.browser]=true;b.browser.version=m.version}if(b.browser.webkit)b.browser.safari=true;if(D)b.inArray=function(j,s){return D.call(s,j)};if(!/\s/.test("\u00a0")){k=/^[\s\xA0]+/;o=/[\s\xA0]+$/}f=b(t);if(t.addEventListener)u=function(){t.removeEventListener("DOMContentLoaded",u,
37
+ false);b.ready()};else if(t.attachEvent)u=function(){if(t.readyState==="complete"){t.detachEvent("onreadystatechange",u);b.ready()}};return E.jQuery=E.$=b}();(function(){c.support={};var a=t.documentElement,b=t.createElement("script"),d=t.createElement("div"),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],l=t.createElement("select"),
38
+ k=l.appendChild(t.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")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false,
39
+ scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent=
40
+ false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=t.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom"in r.style){r.style.display="inline";r.style.zoom=
41
+ 1;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";r.innerHTML="<div style='width:4px;'></div>";c.support.shrinkWrapBlocks=r.offsetWidth!==2}r.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;r.innerHTML="";t.body.removeChild(r).style.display=
42
+ "none"});a=function(r){var A=t.createElement("div");r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;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?ra:a;var e=a.nodeType,f=e?a[c.expando]:null,h=
43
+ c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==B)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra: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);
44
+ else if(d)delete f[e];else for(var l in a)delete a[l]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,l=e.length;h<l;h++){f=e[h].name;if(f.indexOf("data-")===0){f=f.substr(5);ka(this[0],f,d[f])}}}return d}else if(typeof a==="object")return this.each(function(){c.data(this,
45
+ a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(b===B){d=this.triggerHandler("getData"+k[1]+"!",[k[0]]);if(d===B&&this.length){d=c.data(this[0],a);d=ka(this[0],a,d)}return d===B&&k[1]?this.data(k[0]):d}else return this.each(function(){var o=c(this),x=[k[0],b];o.triggerHandler("setData"+k[1]+"!",x);c.data(this,a,b);o.triggerHandler("changeData"+k[1]+"!",x)})},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=
46
+ c.data(a,b);if(!d)return e||[];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===B)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 sa=/[\n\t]/g,ha=/\s+/,Sa=/\r/g,Ta=/^(?:href|src|style)$/,Ua=/^(?:button|input)$/i,Va=/^(?:button|input|object|select|textarea)$/i,Wa=/^a(?:rea)?$/i,ta=/^(?:radio|checkbox)$/i;c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",
48
+ colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};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,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(x){var r=c(this);r.addClass(a.call(this,x,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===
49
+ 1)if(f.className){for(var h=" "+f.className+" ",l=f.className,k=0,o=b.length;k<o;k++)if(h.indexOf(" "+b[k]+" ")<0)l+=" "+b[k];f.className=c.trim(l)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(o){var x=c(this);x.removeClass(a.call(this,o,x.attr("class")))});if(a&&typeof a==="string"||a===B)for(var b=(a||"").split(ha),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(sa," "),
50
+ l=0,k=b.length;l<k;l++)h=h.replace(" "+b[l]+" "," ");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,f,h.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,h=0,l=c(this),k=b,o=a.split(ha);f=o[h++];){k=e?k:!l.hasClass(f);l[k?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,
51
+ "__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(sa," ").indexOf(a)>-1)return true;return false},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";
52
+ if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h<e;h++){var l=f[h];if(l.selected&&(c.support.optDisabled?!l.disabled:l.getAttribute("disabled")===null)&&(!l.parentNode.disabled||!c.nodeName(l.parentNode,"optgroup"))){a=c(l).val();if(b)return a;d.push(a)}}return d}if(ta.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Sa,"")}return B}var k=c.isFunction(a);return this.each(function(o){var x=c(this),r=a;if(this.nodeType===1){if(k)r=
53
+ a.call(this,o,x.val());if(r==null)r="";else if(typeof r==="number")r+="";else if(c.isArray(r))r=c.map(r,function(C){return C==null?"":C+""});if(c.isArray(r)&&ta.test(this.type))this.checked=c.inArray(x.val(),r)>=0;else if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.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},
54
+ attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");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"))&&
55
+ b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B;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 B;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")},ua={focusin:0,focusout:0};
56
+ 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;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,
57
+ arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid=
58
+ d.guid}A.push(h);c.event.global[l]=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,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");f=o.shift();x=RegExp("(^|\\.)"+
59
+ c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){r=c.event.special[f]||{};for(h=e||0;h<A.length;h++){C=A[h];if(d.guid===C.guid){if(k||x.test(C.namespace)){e==null&&A.splice(h--,1);r.remove&&r.remove.call(a,C)}if(e!=null)break}}if(A.length===0||e!=null&&A.length===1){if(!r.teardown||r.teardown.call(a,o)===false)c.removeEvent(a,f,w.handle);delete I[f]}}else for(h=0;h<A.length;h++){C=A[h];if(k||x.test(C.namespace)){c.event.remove(a,r,C.handler,h);A.splice(h--,1)}}}if(c.isEmptyObject(I)){if(b=
60
+ w.handle)b.elem=null;delete w.events;delete w.handle;if(typeof w==="function")c.removeData(a,J);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=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===
61
+ 8)return B;a.result=B;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)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k===
62
+ "click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var 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("(^|\\.)"+
63
+ 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 l=d.length;f<l;f++){var k=d[f];if(b||e.test(k.namespace)){a.handler=k.handler;a.data=k.data;a.handleObj=k;k=k.handler.apply(this,h);if(k!==B){a.result=k;if(k===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||t;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=t.documentElement;d=t.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!==B)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:Ka,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=t.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=ca;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=ca;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ca;this.stopPropagation()},isDefaultPrevented:U,isPropagationStopped:U,isImmediatePropagationStopped:U};
68
+ var va=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){}},wa=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?wa:va,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?wa:va)}}});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=B;return la("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=B;return la("submit",this,arguments)}})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var V,
70
+ xa=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(!(!ia.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=xa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===B||f===e))if(e!=null||f){a.type="change";a.liveFired=
71
+ B;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",xa(a))}},setup:function(){if(this.type===
72
+ "file")return false;for(var a in V)c.event.add(this,a+".specialChange",V[a]);return ia.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ia.test(this.nodeName)}};V=c.event.special.change.filters;V.focus=V.beforeactivate}t.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(){ua[b]++===0&&t.addEventListener(a,d,true)},teardown:function(){--ua[b]===
73
+ 0&&t.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=B}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var k=this.length;h<k;h++)c.event.add(this[h],d,l,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 ya={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,h){var l,k=0,o,x,r=h||this.selector;h=h?this:c(this.context);if(typeof d===
76
+ "object"&&!d.preventDefault){for(l in d)h[b](l,e,d[l],r);return this}if(c.isFunction(e)){f=e;e=B}for(d=(d||"").split(" ");(l=d[k++])!=null;){o=X.exec(l);x="";if(o){x=o[0];l=l.replace(X,"")}if(l==="hover")d.push("mouseenter"+x,"mouseleave"+x);else{o=l;if(l==="focus"||l==="blur"){d.push(ya[l]+x);l+=x}else l=(ya[l]||l)+x;if(b==="live"){x=0;for(var A=h.length;x<A;x++)c.event.add(h[x],"live."+Y(l,r),{data:e,selector:r,handler:f,origType:l,origHandler:f,preType:o})}else h.unbind("live."+Y(l,r),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,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1&&!q){y.sizcache=n;y.sizset=p}if(y.nodeName.toLowerCase()===i){F=y;break}y=y[g]}m[p]=F}}}function b(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1){if(!q){y.sizcache=n;y.sizset=p}if(typeof i!=="string"){if(y===i){F=true;break}}else if(k.filter(i,
79
+ [y]).length>0){F=y;break}}y=y[g]}m[p]=F}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,l=true;[0,0].sort(function(){l=false;return 0});var k=function(g,i,n,m){n=n||[];var p=i=i||t;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!g||typeof g!=="string")return n;var q,u,y,F,M,N=true,O=k.isXML(i),D=[],R=g;do{d.exec("");if(q=d.exec(R)){R=q[3];D.push(q[1]);if(q[2]){F=q[3];
80
+ break}}}while(q);if(D.length>1&&x.exec(g))if(D.length===2&&o.relative[D[0]])u=L(D[0]+D[1],i);else for(u=o.relative[D[0]]?[i]:k(D.shift(),i);D.length;){g=D.shift();if(o.relative[g])g+=D.shift();u=L(g,u)}else{if(!m&&D.length>1&&i.nodeType===9&&!O&&o.match.ID.test(D[0])&&!o.match.ID.test(D[D.length-1])){q=k.find(D.shift(),i,O);i=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]}if(i){q=m?{expr:D.pop(),set:C(m)}:k.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&i.parentNode?i.parentNode:i,O);u=q.expr?k.filter(q.expr,
81
+ q.set):q.set;if(D.length>0)y=C(u);else N=false;for(;D.length;){q=M=D.pop();if(o.relative[M])q=D.pop();else M="";if(q==null)q=i;o.relative[M](y,q,O)}}else y=[]}y||(y=u);y||k.error(M||g);if(f.call(y)==="[object Array]")if(N)if(i&&i.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&k.contains(i,y[g])))n.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&n.push(u[g]);else n.push.apply(n,y);else C(y,n);if(F){k(F,p,n,m);k.uniqueSort(n)}return n};k.uniqueSort=function(g){if(w){h=
82
+ l;g.sort(w);if(h)for(var i=1;i<g.length;i++)g[i]===g[i-1]&&g.splice(i--,1)}return g};k.matches=function(g,i){return k(g,null,null,i)};k.matchesSelector=function(g,i){return k(i,null,null,[g]).length>0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p<q;p++){var u,y=o.order[p];if(u=o.leftMatch[y].exec(g)){var F=u[1];u.splice(1,1);if(F.substr(F.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");m=o.find[y](u,i,n);if(m!=null){g=g.replace(o.match[y],"");break}}}}m||(m=i.getElementsByTagName("*"));
83
+ return{set:m,expr:g}};k.filter=function(g,i,n,m){for(var p,q,u=g,y=[],F=i,M=i&&i[0]&&k.isXML(i[0]);g&&i.length;){for(var N in o.filter)if((p=o.leftMatch[N].exec(g))!=null&&p[2]){var O,D,R=o.filter[N];D=p[1];q=false;p.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(F===y)y=[];if(o.preFilter[N])if(p=o.preFilter[N](p,F,n,y,m,M)){if(p===true)continue}else q=O=true;if(p)for(var j=0;(D=F[j])!=null;j++)if(D){O=R(D,p,j,F);var s=m^!!O;if(n&&O!=null)if(s)q=true;else F[j]=false;else if(s){y.push(D);q=true}}if(O!==
84
+ B){n||(F=y);g=g.replace(o.match[N],"");if(!q)return[];break}}}if(g===u)if(q==null)k.error(g);else break;u=g}return F};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var o=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\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,i){var n=typeof i==="string",m=n&&!/\W/.test(i);n=n&&!m;if(m)i=i.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]=n||q&&q.nodeName.toLowerCase()===
86
+ i?q||false:q===i}n&&k.filter(i,g,true)},">":function(g,i){var n,m=typeof i==="string",p=0,q=g.length;if(m&&!/\W/.test(i))for(i=i.toLowerCase();p<q;p++){if(n=g[p]){n=n.parentNode;g[p]=n.nodeName.toLowerCase()===i?n:false}}else{for(;p<q;p++)if(n=g[p])g[p]=m?n.parentNode:n.parentNode===i;m&&k.filter(i,g,true)}},"":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=i=i.toLowerCase();q=a}q("parentNode",i,p,g,m,n)},"~":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=
87
+ i=i.toLowerCase();q=a}q("previousSibling",i,p,g,m,n)}},find:{ID:function(g,i,n){if(typeof i.getElementById!=="undefined"&&!n)return(g=i.getElementById(g[1]))&&g.parentNode?[g]:[]},NAME:function(g,i){if(typeof i.getElementsByName!=="undefined"){for(var n=[],m=i.getElementsByName(g[1]),p=0,q=m.length;p<q;p++)m[p].getAttribute("name")===g[1]&&n.push(m[p]);return n.length===0?null:n}},TAG:function(g,i){return i.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,i,n,m,p,q){g=" "+g[1].replace(/\\/g,
88
+ "")+" ";if(q)return g;q=0;for(var u;(u=i[q])!=null;q++)if(u)if(p^(u.className&&(" "+u.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))n||m.push(u);else if(n)i[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 i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n,
89
+ m,p,q){i=g[1].replace(/\\/g,"");if(!q&&o.attrMap[i])g[1]=o.attrMap[i];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,i,n,m,p){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,i);else{g=k.filter(g[3],i,n,true^p);n||m.push.apply(m,g);return false}else if(o.match.POS.test(g[0])||o.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,i,n){return!!k(n[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,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return i<n[3]-0},gt:function(g,i,n){return i>n[3]-0},nth:function(g,i,n){return n[3]-
92
+ 0===i},eq:function(g,i,n){return n[3]-0===i}},filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];if(q)return q(g,n,i,m);else if(p==="contains")return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0;else if(p==="not"){i=i[3];n=0;for(m=i.length;n<m;n++)if(i[n]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+p)},CHILD:function(g,i){var n=i[1],m=g;switch(n){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(n===
93
+ "first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":n=i[2];var p=i[3];if(n===1&&p===0)return true;var q=i[0],u=g.parentNode;if(u&&(u.sizcache!==q||!g.nodeIndex)){var y=0;for(m=u.firstChild;m;m=m.nextSibling)if(m.nodeType===1)m.nodeIndex=++y;u.sizcache=q}m=g.nodeIndex-p;return n===0?m===0:m%n===0&&m/n>=0}},ID:function(g,i){return g.nodeType===1&&g.getAttribute("id")===i},TAG:function(g,i){return i==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===
94
+ i},CLASS:function(g,i){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(g,i){var n=i[1];n=o.attrHandle[n]?o.attrHandle[n](g):g[n]!=null?g[n]:g.getAttribute(n);var m=n+"",p=i[2],q=i[4];return n==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&n!==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,i,n,m){var p=o.setFilters[i[2]];
95
+ if(p)return p(g,n,i,m)}}},x=o.match.POS,r=function(g,i){return"\\"+(i-0+1)},A;for(A in o.match){o.match[A]=RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,r))}var C=function(g,i){g=Array.prototype.slice.call(g,0);if(i){i.push.apply(i,g);return i}return g};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){C=function(g,i){var n=0,m=i||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(m,
96
+ g);else if(typeof g.length==="number")for(var p=g.length;n<p;n++)m.push(g[n]);else for(;g[n];n++)m.push(g[n]);return m}}var w,I;if(t.documentElement.compareDocumentPosition)w=function(g,i){if(g===i){h=true;return 0}if(!g.compareDocumentPosition||!i.compareDocumentPosition)return g.compareDocumentPosition?-1:1;return g.compareDocumentPosition(i)&4?-1:1};else{w=function(g,i){var n,m,p=[],q=[];n=g.parentNode;m=i.parentNode;var u=n;if(g===i){h=true;return 0}else if(n===m)return I(g,i);else if(n){if(!m)return 1}else return-1;
97
+ for(;u;){p.unshift(u);u=u.parentNode}for(u=m;u;){q.unshift(u);u=u.parentNode}n=p.length;m=q.length;for(u=0;u<n&&u<m;u++)if(p[u]!==q[u])return I(p[u],q[u]);return u===n?I(g,q[u],-1):I(p[u],i,1)};I=function(g,i,n){if(g===i)return n;for(g=g.nextSibling;g;){if(g===i)return-1;g=g.nextSibling}return 1}}k.getText=function(g){for(var i="",n,m=0;g[m];m++){n=g[m];if(n.nodeType===3||n.nodeType===4)i+=n.nodeValue;else if(n.nodeType!==8)i+=k.getText(n.childNodes)}return i};(function(){var g=t.createElement("div"),
98
+ i="script"+(new Date).getTime(),n=t.documentElement;g.innerHTML="<a name='"+i+"'/>";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.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]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g);
99
+ n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[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")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&&
100
+ function(){var g=k,i=t.createElement("div");i.innerHTML="<p class='TEST'></p>";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(m,p,q,u){p=p||t;m=m.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u&&!k.isXML(p))if(p.nodeType===9)try{return C(p.querySelectorAll(m),q)}catch(y){}else if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var F=p.getAttribute("id"),M=F||"__sizzle__";F||p.setAttribute("id",M);try{return C(p.querySelectorAll("#"+M+" "+m),q)}catch(N){}finally{F||
101
+ p.removeAttribute("id")}}return g(m,p,q,u)};for(var n in g)k[n]=g[n];i=null}}();(function(){var g=t.documentElement,i=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,n=false;try{i.call(t.documentElement,"[test!='']:sizzle")}catch(m){n=true}if(i)k.matchesSelector=function(p,q){q=q.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(p))try{if(n||!o.match.PSEUDO.test(q)&&!/!=/.test(q))return i.call(p,q)}catch(u){}return k(q,null,null,[p]).length>0}})();(function(){var g=
102
+ t.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){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition?
103
+ function(g,i){return!!(g.compareDocumentPosition(i)&16)}:function(){return false};k.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var L=function(g,i){for(var n,m=[],p="",q=i.nodeType?[i]:i;n=o.match.PSEUDO.exec(g);){p+=n[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;n=0;for(var u=q.length;n<u;n++)k(g,q[n],m);return k.filter(p,m)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=k.getText;c.isXMLDoc=k.isXML;
104
+ c.contains=k.contains})();var Za=/Until$/,$a=/^(?:parents|prevUntil|prevAll)/,ab=/,/,Na=/^.[^:#\[\.,]*$/,bb=Array.prototype.slice,cb=c.expr.match.POS;c.fn.extend({find:function(a){for(var b=this.pushStack("","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 l=0;l<d;l++)if(b[l]===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})},
105
+ not:function(a){return this.pushStack(ma(this,a,false),"not",a)},filter:function(a){return this.pushStack(ma(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var l,k={},o=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:o})}h=
106
+ h.parentNode;o++}}return d}l=cb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e<f;e++)for(h=this[e];h;)if(l?l.index(h)>-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!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):
107
+ 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)}});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,
108
+ 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")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,
109
+ b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Za.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||ab.test(e))&&$a.test(a))f=f.reverse();return this.pushStack(f,a,bb.call(arguments).join(","))}});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===B||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&
110
+ 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 za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,db=/<tbody/i,eb=/<|&#?\w+;/,Ca=/<(?:script|object|embed|option|style)/i,Da=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/\=([^="'>\s]+\/)>/g,P={option:[1,
111
+ "<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,"",""]};P.optgroup=P.option;P.tbody=P.tfoot=P.colgroup=P.caption=P.thead;P.th=P.td;if(!c.support.htmlSerialize)P._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
112
+ c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==B)return this.empty().append((this[0]&&this[0].ownerDocument||t).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},
113
+ 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)})},
114
+ 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,
115
+ 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("*"));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);
116
+ 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(za,"").replace(fb,'="$1">').replace($,"")],e)[0]}else return this.cloneNode(true)});if(a===true){na(this,b);na(this.find("*"),b.find("*"))}return b},html:function(a){if(a===B)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(za,""):null;
117
+ else if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$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)?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=
118
+ 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,true)},domManip:function(a,b,d){var e,f,h,l=a[0],k=[];if(!c.support.checkClone&&arguments.length===3&&typeof l==="string"&&Da.test(l))return this.each(function(){c(this).domManip(a,
119
+ b,d,true)});if(c.isFunction(l))return this.each(function(x){var r=c(this);a[0]=l.call(this,x,b?r.html():B);r.domManip(a,b,d)});if(this[0]){e=l&&l.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,k);h=e.fragment;if(f=h.childNodes.length===1?h=h.firstChild:h.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var o=this.length;f<o;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):
120
+ this[f]:this[f],f>0||e.cacheable||this.length>1?h.cloneNode(true):h)}k.length&&c.each(k,Oa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:t;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===t&&!Ca.test(a[0])&&(c.support.checkClone||!Da.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",
121
+ 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=d.length;f<h;f++){var l=(f>0?this.clone(true):this).get();c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||t;if(typeof b.createElement==="undefined")b=b.ownerDocument||
122
+ b[0]&&b[0].ownerDocument||t;for(var f=[],h=0,l;(l=a[h])!=null;h++){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!eb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Aa,"<$1></$2>");var k=(Ba.exec(l)||["",""])[1].toLowerCase(),o=P[k]||P._default,x=o[0],r=b.createElement("div");for(r.innerHTML=o[1]+l+o[2];x--;)r=r.lastChild;if(!c.support.tbody){x=db.test(l);k=k==="table"&&!x?r.firstChild&&r.firstChild.childNodes:o[1]==="<table>"&&!x?r.childNodes:[];for(o=k.length-
123
+ 1;o>=0;--o)c.nodeName(k[o],"tbody")&&!k[o].childNodes.length&&k[o].parentNode.removeChild(k[o])}!c.support.leadingWhitespace&&$.test(l)&&r.insertBefore(b.createTextNode($.exec(l)[0]),r.firstChild);l=r.childNodes}if(l.nodeType)f.push(l);else f=c.merge(f,l)}}if(d)for(h=0;f[h];h++)if(e&&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"))));
124
+ d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,k;(k=a[l])!=null;l++)if(!(k.nodeName&&c.noData[k.nodeName.toLowerCase()]))if(d=k[c.expando]){if((b=e[d])&&b.events)for(var o in b.events)f[o]?c.event.remove(k,o):c.removeEvent(k,o,b.handle);if(h)delete k[c.expando];else k.removeAttribute&&k.removeAttribute(c.expando);delete e[d]}}});var Ea=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,Fa=/^-?\d+(?:px)?$/i,
125
+ jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},Pa=["Left","Right"],Qa=["Top","Bottom"],W,Ga,aa,lb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===B)return this;return c.access(this,a,b,true,function(d,e,f){return f!==B?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,
126
+ 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),l=a.style,k=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==B){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!k||!("set"in k)||(d=k.set(a,d))!==B)try{l[b]=d}catch(o){}}}else{if(k&&"get"in k&&(f=k.get(a,false,e))!==B)return f;return l[b]}}},css:function(a,b,d){var e,f=c.camelCase(b),
127
+ h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==B)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]=e[f]},camelCase:function(a){return a.replace(hb,lb)}});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=oa(d,b,f);else c.swap(d,kb,function(){h=oa(d,b,f)});if(h<=0){h=W(d,b,b);if(h==="0px"&&aa)h=aa(d,b,b);
128
+ if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(Fa.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 gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f=
129
+ d.filter||"";d.filter=Ea.test(f)?f.replace(Ea,e):d.filter+" "+e}};if(t.defaultView&&t.defaultView.getComputedStyle)Ga=function(a,b,d){var e;d=d.replace(ib,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return B;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};if(t.documentElement.currentStyle)aa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(!Fa.test(f)&&jb.test(f)){d=h.left;
130
+ 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===""?"auto":f};W=Ga||aa;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 mb=c.now(),nb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
131
+ ob=/^(?:select|textarea)/i,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,Ra=/\[\]$/,T=/\=\?(&|$)/,ja=/\?/,rb=/([?&])_=[^&]*/,sb=/^(\w+:)?\/\/([^\/?#]+)/,tb=/%20/g,ub=/#.*$/,Ha=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ha)return Ha.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=b;b=null}else if(typeof b===
132
+ "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(l,k){if(k==="success"||k==="notmodified")h.html(f?c("<div>").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});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&&
133
+ !this.disabled&&(this.checked||ob.test(this.nodeName)||pb.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})},
134
+ 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",
135
+ 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(),l=qb.test(h);b.url=b.url.replace(ub,"");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+=(ja.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||
136
+ !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"+mb++;if(b.data)b.data=(b.data+"").replace(T,"="+d+"$1");b.url=b.url.replace(T,"="+d+"$1");b.dataType="script";var k=E[d];E[d]=function(m){if(c.isFunction(k))k(m);else{E[d]=B;try{delete E[d]}catch(p){}}f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);r&&r.removeChild(A)}}if(b.dataType==="script"&&b.cache===null)b.cache=
137
+ false;if(b.cache===false&&l){var o=c.now(),x=b.url.replace(rb,"$1_="+o);b.url=x+(x===b.url?(ja.test(b.url)?"&":"?")+"_="+o:"")}if(b.data&&l)b.url+=(ja.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");o=(o=sb.exec(b.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);if(b.dataType==="script"&&h==="GET"&&o){var r=t.getElementsByTagName("head")[0]||t.documentElement,A=t.createElement("script");if(b.scriptCharset)A.charset=b.scriptCharset;
138
+ A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=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&&!l||a&&a.contentType)w.setRequestHeader("Content-Type",
139
+ 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])}o||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(I){}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&&
140
+ c.triggerGlobal(b,"ajaxSend",[w,b]);var L=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){J||c.handleComplete(b,w,e,f);J=true;if(w)w.onreadystatechange=c.noop}else if(!J&&w&&(w.readyState===4||m==="timeout")){J=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||
141
+ 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&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]=
142
+ encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B)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)da(f,a[f],b,e);return d.join("&").replace(tb,"+")}});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",
143
+ [b,a])},handleComplete:function(a,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"),
144
+ e=a.getResponseHeader("Etag");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}});
145
+ if(E.ActiveXObject)c.ajaxSettings.xhr=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 ea={},vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ba,pa=[["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",
146
+ 3),a,b,d);else{d=0;for(var e=this.length;d<e;d++){a=this[d];b=a.style.display;if(!c.data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&c.css(a,"display")==="none"&&c.data(a,"olddisplay",qa(a.nodeName))}for(d=0;d<e;d++){a=this[d];b=a.style.display;if(b===""||b==="none")a.style.display=c.data(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",
147
+ d)}for(a=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,
148
+ d,e);if(c.isEmptyObject(a))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var h=c.extend({},f),l,k=this.nodeType===1,o=k&&c(this).is(":hidden"),x=this;for(l in a){var r=c.camelCase(l);if(l!==r){a[r]=a[l];delete a[l];l=r}if(a[l]==="hide"&&o||a[l]==="show"&&!o)return h.complete.call(this);if(k&&(l==="height"||l==="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(qa(this.nodeName)===
149
+ "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[l])){(h.specialEasing=h.specialEasing||{})[l]=a[l][1];a[l]=a[l][0]}}if(h.overflow!=null)this.style.overflow="hidden";h.curAnim=c.extend({},a);c.each(a,function(A,C){var J=new c.fx(x,h,A);if(vb.test(C))J[C==="toggle"?o?"show":"hide":C](a);else{var w=wb.exec(C),I=J.cur()||0;if(w){var L=parseFloat(w[2]),g=w[3]||"px";if(g!=="px"){c.style(x,A,(L||1)+g);I=(L||
150
+ 1)/J.cur()*I;c.style(x,A,I+g)}if(w[1])L=(w[1]==="-="?-1:1)*L+I;J.custom(I,L,g)}else J.custom(I,C,"")}});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"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b,
151
+ 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*
152
+ 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(l){return f.step(l)}
153
+ var f=this,h=c.fx;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;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(h.tick,h.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;
154
+ 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(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();if(this.options.hide||
155
+ this.options.show)for(var l in this.options.curAnim)c.style(this.elem,l,this.options.orig[l]);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=
156
+ c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(ba);ba=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===
157
+ b.elem}).length};var xb=/^t(?:able|d|h)$/i,Ia=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in t.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(l){c.offset.setOffset(this,a,l)});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=fa(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&
158
+ 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(x){c.offset.setOffset(this,a,x)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,f=b.ownerDocument,h=f.documentElement,l=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;
159
+ for(var k=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==l&&b!==h;){if(c.offset.supportsFixedPosition&&d.position==="fixed")break;d=f?f.getComputedStyle(b,null):b.currentStyle;k-=b.scrollTop;o-=b.scrollLeft;if(b===e){k+=b.offsetTop;o+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&xb.test(b.nodeName))){k+=parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){k+=
160
+ parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}d=d}if(d.position==="relative"||d.position==="static"){k+=l.offsetTop;o+=l.offsetLeft}if(c.offset.supportsFixedPosition&&d.position==="fixed"){k+=Math.max(h.scrollTop,l.scrollTop);o+=Math.max(h.scrollLeft,l.scrollLeft)}return{top:k,left:o}};c.offset={initialize:function(){var a=t.body,b=t.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",
161
+ 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=
162
+ 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,
163
+ "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(),l=c.css(a,"top"),k=c.css(a,"left"),o=e==="absolute"&&c.inArray("auto",[l,k])>-1;e={};var x={};if(o)x=f.position();l=o?x.top:parseInt(l,10)||0;k=o?x.left:parseInt(k,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+l;if(b.left!=null)e.left=b.left-h.left+k;"using"in b?b.using.call(a,
164
+ 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=Ia.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||t.body;a&&!Ia.test(a.nodeName)&&
165
+ 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!==B)return this.each(function(){if(h=fa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=fa(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();
166
+ 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(l){var k=c(this);k[d](e.call(this,l,k[d]()))});if(c.isWindow(f))return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b];else if(f.nodeType===9)return Math.max(f.documentElement["client"+
167
+ b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===B){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}})})(window);
js/lightboxes/pirobox_extended/js/pirobox_extended.js ADDED
@@ -0,0 +1,381 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Name: PiroBox Extended v.1.0
3
+ * Date: Gen 2011
4
+ * Autor: Diego Valobra (http://www.pirolab.it),(http://www.diegovalobra.com)
5
+ * Version: 1.0
6
+ * Licence: CC-BY-SA http://creativecommons.org/licenses/by-sa/3/it/
7
+ **/
8
+
9
+ (function($) {
10
+ $.fn.piroBox_ext = function(opt) {
11
+ opt = jQuery.extend({
12
+ piro_speed : 700,
13
+ bg_alpha : 0.9,
14
+ piro_scroll : true
15
+ }, opt);
16
+ $.fn.piroFadeIn = function(speed, callback) {
17
+ $(this).fadeIn(speed, function() {
18
+ if(jQuery.browser.msie)
19
+ $(this).get(0).style.removeAttribute('filter');
20
+ if(callback != undefined)
21
+ callback();
22
+ });
23
+ };
24
+ $.fn.piroFadeOut = function(speed, callback) {
25
+ $(this).fadeOut(speed, function() {
26
+ if(jQuery.browser.msie)
27
+ $(this).get(0).style.removeAttribute('filter');
28
+ if(callback != undefined)
29
+ callback();
30
+ });
31
+ };
32
+ var my_gall_obj = $('a[class*="pirobox"]');
33
+ var map = new Object();
34
+ for (var i=0; i<my_gall_obj.length; i++) {
35
+ var it=$(my_gall_obj[i]);
36
+ map['a.'+ it.attr('class').match(/^pirobox_gall\w*/)]=0;
37
+ }
38
+ var gall_settings = new Array();
39
+ for (var key in map) {
40
+ gall_settings.push(key);
41
+ }
42
+ for (var i=0; i<gall_settings.length; i++) {
43
+ $(gall_settings[i]+':first').addClass('first');
44
+ $(gall_settings[i]+':last').addClass('last');
45
+ }
46
+ var piro_gallery = $(my_gall_obj);
47
+ $('a[class*="pirobox_gall"]').each(function(rev){this.rev = rev+0});
48
+ var struct =(
49
+ '<div class="piro_overlay"></div>'+
50
+ '<table class="piro_html" cellpadding="0" cellspacing="0">'+
51
+ '<tr>'+
52
+ '<td class="h_t_l"></td>'+
53
+ '<td class="h_t_c" title="drag me!!"></td>'+
54
+ '<td class="h_t_r"></td>'+
55
+ '</tr>'+
56
+ '<tr>'+
57
+ '<td class="h_c_l"></td>'+
58
+ '<td class="h_c_c">'+
59
+ '<div class="piro_loader" title="close"><span></span></div>'+
60
+ '<div class="resize">'+
61
+ '<div class="nav_container">'+
62
+ '<a href="#prev" class="piro_prev" title="previous"></a>'+
63
+ '<a href="#next" class="piro_next" title="next"></a>'+
64
+ '<div class="piro_prev_fake">prev</div>'+
65
+ '<div class="piro_next_fake">next</div>'+
66
+ '<div class="piro_close" title="close"></div>'+
67
+ '</div>'+
68
+ '<div class="caption"></div>'+
69
+ '<div class="div_reg"></div>'+
70
+ '</div>'+
71
+ '</td>'+
72
+ '<td class="h_c_r"></td>'+
73
+ '</tr>'+
74
+ '<tr>'+
75
+ '<td class="h_b_l"></td>'+
76
+ '<td class="h_b_c"></td>'+
77
+ '<td class="h_b_r"></td>'+
78
+ '</tr>'+
79
+ '</table>'
80
+ );
81
+ $('body').append(struct);
82
+ var wrapper = $('.piro_html'),
83
+ piro_capt = $('.caption'),
84
+ piro_bg = $('.piro_overlay'),
85
+ piro_next = $('.piro_next'),
86
+ piro_prev = $('.piro_prev'),
87
+ piro_next_fake = $('.piro_next_fake'),
88
+ piro_prev_fake = $('.piro_prev_fake'),
89
+ piro_close = $('.piro_close'),
90
+ div_reg = $('.div_reg'),
91
+ piro_loader = $('.piro_loader'),
92
+ resize = $('.resize'),
93
+ btn_info = $('.btn_info');
94
+ var rz_img =0.95; /*::::: ADAPT IMAGE TO BROWSER WINDOW SIZE :::::*/
95
+ if ( $.browser.msie ) {
96
+ wrapper.draggable({ handle:'.h_t_c,.h_b_c,.div_reg img'});
97
+ }else{
98
+ wrapper.draggable({ handle:'.h_t_c,.h_b_c,.div_reg img',opacity: 0.80});
99
+ }
100
+ var y = $(window).height();
101
+ var x = $(window).width();
102
+ $('.nav_container').hide();
103
+ wrapper.css({left: ((x/2)-(250))+ 'px',top: parseInt($(document).scrollTop())+(100)});
104
+ $(wrapper).add(piro_capt).add(piro_bg).hide();
105
+ piro_bg.css({'opacity':opt.bg_alpha});
106
+ $(piro_prev).add(piro_next).bind('click',function(c) {
107
+ $('.nav_container').hide();
108
+ c.preventDefault();
109
+ piro_next.add(piro_prev).hide();
110
+ var obj_count = parseInt($('a[class*="pirobox_gall"]').filter('.item').attr('rev'));
111
+ var start = $(this).is('.piro_prev') ? $('a[class*="pirobox_gall"]').eq(obj_count - 1) : $('a[class*="pirobox_gall"]').eq(obj_count + 1);
112
+ start.click();
113
+ });
114
+ $('html').bind('keyup', function (c) {
115
+ if(c.keyCode == 27) {
116
+ c.preventDefault();
117
+ if($(piro_close).is(':visible')){close_all();}
118
+ }
119
+ });
120
+ $('html').bind('keyup' ,function(e) {
121
+ if ($('.item').is('.first')){
122
+ }else if(e.keyCode == 37){
123
+ e.preventDefault();
124
+ if($(piro_close).is(':visible')){piro_prev.click();}
125
+ }
126
+ });
127
+ $('html').bind('keyup' ,function(z) {
128
+ if ($('.item').is('.last')){
129
+ }else if(z.keyCode == 39){
130
+ z.preventDefault();
131
+ if($(piro_close).is(':visible')){piro_next.click();}
132
+ }
133
+ });
134
+ $(window).resize(function(){
135
+ var new_y = $(window).height();
136
+ var new_x = $(window).width();
137
+ var new_h = wrapper.height();
138
+ var new_w = wrapper.width();
139
+ wrapper.css({
140
+ left: ((new_x/2)-(new_w/2))+ 'px',
141
+ top: parseInt($(document).scrollTop())+(new_y-new_h)/2
142
+ });
143
+ });
144
+ function scrollIt (){
145
+ $(window).scroll(function(){
146
+ var new_y = $(window).height();
147
+ var new_x = $(window).width();
148
+ var new_h = wrapper.height();
149
+ var new_w = wrapper.width();
150
+ wrapper.css({
151
+ left: ((new_x/2)-(new_w/2))+ 'px',
152
+ top: parseInt($(document).scrollTop())+(new_y-new_h)/2
153
+ });
154
+ });
155
+ }
156
+ if(opt.piro_scroll == true){
157
+ scrollIt()
158
+ }
159
+ $(piro_gallery).each(function(){
160
+
161
+ var descr = $(this).attr('title');
162
+ var params = $(this).attr('rel').split('-');
163
+ var p_link = $(this).attr('href');
164
+ $(this).unbind();
165
+ $(this).bind('click', function(e) {
166
+ piro_bg.css({'opacity':opt.bg_alpha});
167
+ e.preventDefault();
168
+ piro_next.add(piro_prev).hide().css('visibility','hidden');
169
+ $(piro_gallery).filter('.item').removeClass('item');
170
+ $(this).addClass('item');
171
+ open_all();
172
+ if($(this).is('.first')){
173
+ piro_prev.hide();
174
+ piro_next.show();
175
+ piro_prev_fake.show().css({'opacity':0.5,'visibility':'hidden'});
176
+ }else{
177
+ piro_next.add(piro_prev).show();
178
+ piro_next_fake.add(piro_prev_fake).hide();
179
+ }
180
+ if($(this).is('.last')){
181
+ piro_prev.show();
182
+ piro_next_fake.show().css({'opacity':0.5,'visibility':'hidden'});
183
+ piro_next.hide();
184
+ }
185
+ if($(this).is('.pirobox')){
186
+ piro_next.add(piro_prev).hide();
187
+ }
188
+
189
+ });
190
+
191
+ function open_all(){
192
+ wrapper.add(piro_bg).add(div_reg).add(piro_loader).show();
193
+ function animate_html(){
194
+ if(params[1] == 'full' && params[2] == 'full'){
195
+ params[2] = $(window).height()-70;
196
+ params[1] = $(window).width()-55;
197
+ }
198
+ var y = $(window).height();
199
+ var x = $(window).width();
200
+ piro_close.hide();
201
+ div_reg.add(resize).animate({
202
+ 'height':+ (params[2]) +'px',
203
+ 'width':+ (params [1])+'px'
204
+ },opt.piro_speed).css('visibility','visible');
205
+
206
+ wrapper.animate({
207
+ height:+ (params[2])+20 +'px',
208
+ width:+ (params[1]) +20+'px',
209
+ left: ((x/2)-((params[1])/2+10))+ 'px',
210
+ top: parseInt($(document).scrollTop())+(y-params[2])/2-10
211
+ },opt.piro_speed ,function(){
212
+ piro_next.add(piro_prev).css({'height':'20px','width':'20px'});
213
+ piro_next.add(piro_prev).add(piro_prev_fake).add(piro_next_fake).css('visibility','visible');
214
+ $('.nav_container').show();
215
+ piro_close.show();
216
+ });
217
+ }
218
+ function animate_image (){
219
+ var img = new Image();
220
+ img.onerror = function (){
221
+ piro_capt.html('');
222
+ img.src = "http://www.pirolab.it/pirobox/js/error.jpg";
223
+ }
224
+ img.onload = function() {
225
+ piro_capt.add(btn_info).hide();
226
+ var y = $(window).height();
227
+ var x = $(window).width();
228
+ var imgH = img.height;
229
+ var imgW = img.width;
230
+
231
+ //var rz_img =1.203; /*::::: ORIGINAL SIZE :::::*/
232
+ if(imgH+20 > y || imgW+20 > x){
233
+ var _x = (imgW + 20)/x;
234
+ var _y = (imgH + 20)/y;
235
+ if ( _y > _x ){
236
+ imgW = Math.round(img.width* (rz_img/_y));
237
+ imgH = Math.round(img.height* (rz_img/_y));
238
+ }else{
239
+ imgW = Math.round(img.width * (rz_img/_x));
240
+ imgH = Math.round(img.height * (rz_img/_x));
241
+ }
242
+ }else{
243
+ imgH = img.height;
244
+ imgW = img.width;
245
+ }
246
+
247
+ var y = $(window).height();
248
+ var x = $(window).width();
249
+ $(img).height(imgH).width(imgW).hide();
250
+
251
+ $(img).fadeOut(300,function(){});
252
+ $('.div_reg img').remove();
253
+ $('.div_reg').html('');
254
+ div_reg.append(img).show();
255
+ $(img).addClass('immagine');
256
+
257
+ div_reg.add(resize).animate({height:imgH+'px',width:imgW+'px'},opt.piro_speed);
258
+ wrapper.animate({
259
+ height : (imgH+20) + 'px' ,
260
+ width : (imgW+20) + 'px' ,
261
+ left: ((x/2)-((imgW+20)/2)) + 'px',
262
+ top: parseInt($(document).scrollTop())+(y-imgH)/2-20
263
+ },opt.piro_speed, function(){
264
+ var cap_w = resize.width();
265
+ piro_capt.css({width:cap_w+'px'});
266
+ piro_loader.hide();
267
+ $(img).fadeIn(300,function(){
268
+ piro_close.add(btn_info).show();
269
+ piro_capt.slideDown(200);
270
+ piro_next.add(piro_prev).css({'height':'20px','width':'20px'});
271
+ piro_next.add(piro_prev).add(piro_prev_fake).add(piro_next_fake).css('visibility','visible');
272
+ $('.nav_container').show();
273
+ resize.resize(function(){
274
+ NimgW = img.width;//1.50;
275
+ NimgH = img.heigh;//1.50;
276
+ piro_capt.css({width:(NimgW)+'px'});
277
+ });
278
+ });
279
+ });
280
+ }
281
+
282
+ img.src = p_link;
283
+ piro_loader.click(function(){
284
+ img.src = 'about:blank';
285
+ });
286
+ }
287
+
288
+ switch (params[0]) {
289
+
290
+ case 'iframe':
291
+ div_reg.html('').css('overflow','hidden');
292
+ resize.css('overflow','hidden');
293
+ piro_close.add(btn_info).add(piro_capt).hide();
294
+ animate_html();
295
+ div_reg.piroFadeIn(300,function(){
296
+ div_reg.append(
297
+ '<iframe id="my_frame" class="my_frame" src="'+p_link+'" frameborder="0" allowtransparency="true" scrolling="auto" align="top"></iframe>'
298
+ );
299
+ $('.my_frame').css({'height':+ (params[2]) +'px','width':+ (params [1])+'px'});
300
+ piro_loader.hide();
301
+ });
302
+ break;
303
+
304
+ case 'content':
305
+ div_reg.html('').css('overflow','auto');
306
+ resize.css('overflow','auto');
307
+ $('.my_frame').remove();
308
+ piro_close.add(btn_info).add(piro_capt).hide();
309
+ animate_html()
310
+ div_reg.piroFadeIn(300,function(){
311
+ div_reg.load(p_link);
312
+ piro_loader.hide();
313
+ });
314
+ break;
315
+
316
+ case 'inline':
317
+ div_reg.html('').css('overflow','auto');
318
+ resize.css('overflow','auto');
319
+ $('.my_frame').remove();
320
+ piro_close.add(btn_info).add(piro_capt).hide();
321
+ animate_html()
322
+ div_reg.piroFadeIn(300,function(){
323
+ $(p_link).clone(true).appendTo(div_reg).piroFadeIn(300);
324
+ piro_loader.hide();
325
+ });
326
+ break
327
+
328
+ case 'gallery':
329
+ div_reg.css('overflow','hidden');
330
+ resize.css('overflow','hidden');
331
+ $('.my_frame').remove();
332
+ piro_close.add(btn_info).add(piro_capt).hide();
333
+ if(descr == ""){
334
+ piro_capt.html('');
335
+ }else{
336
+ piro_capt.html('<p>' + descr + '</p>');
337
+ }
338
+ animate_image();
339
+ break;
340
+
341
+ case 'single':
342
+ piro_close.add(btn_info).add(piro_capt).hide();
343
+ div_reg.html('').css('overflow','hidden');
344
+ resize.css('overflow','hidden');
345
+ $('.my_frame').remove();
346
+ if(descr == ""){
347
+ piro_capt.html('');
348
+ }else{
349
+ piro_capt.html('<p>' + descr + '</p>');
350
+ }
351
+ animate_image();
352
+ break
353
+ }
354
+ }
355
+ });
356
+ $('.immagine').live('click',function(){
357
+ piro_capt.slideToggle(200);
358
+ });
359
+
360
+ function close_all (){
361
+ if($('.piro_close').is(':visible')){
362
+ $('.my_frame').remove();
363
+ wrapper.add(div_reg).add(resize).stop();
364
+ var ie_sucks = wrapper;
365
+ if ( $.browser.msie ) {
366
+ ie_sucks = div_reg.add(piro_bg);
367
+ $('.div_reg img').remove();
368
+ }else{
369
+ ie_sucks = wrapper.add(piro_bg);
370
+ }
371
+ ie_sucks.piroFadeOut(200,function(){
372
+ div_reg.html('');
373
+ piro_loader.add(piro_capt).add(btn_info).hide();
374
+ $('.nav_container').hide();
375
+ piro_bg.add(wrapper).hide().css('visibility','visible');
376
+ });
377
+ }
378
+ }
379
+ piro_close.add(piro_loader).add(piro_bg).bind('click',function(y){y.preventDefault(); close_all(); });
380
+ }
381
+ })(jQuery);
js/lightboxes/pirobox_extended/js/pirobox_extended_min.js ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Name: PiroBox Extended v.1.0
3
+ * Date: Gen 2011
4
+ * Autor: Diego Valobra (http://www.pirolab.it),(http://www.diegovalobra.com)
5
+ * Version: 1.0
6
+ * Licence: CC-BY-SA http://creativecommons.org/licenses/by-sa/3/it/
7
+ **/
8
+ (function($){$.fn.piroBox_ext=function(opt){opt=jQuery.extend({piro_speed:700,bg_alpha:0.9,piro_scroll:true},opt);$.fn.piroFadeIn=function(speed,callback){$(this).fadeIn(speed,function(){if(jQuery.browser.msie)
9
+ $(this).get(0).style.removeAttribute('filter');if(callback!=undefined)
10
+ callback();});};$.fn.piroFadeOut=function(speed,callback){$(this).fadeOut(speed,function(){if(jQuery.browser.msie)
11
+ $(this).get(0).style.removeAttribute('filter');if(callback!=undefined)
12
+ callback();});};var my_gall_obj=$('a[class*="pirobox"]');var map=new Object();for(var i=0;i<my_gall_obj.length;i++){var it=$(my_gall_obj[i]);map['a.'+it.attr('class').match(/^pirobox_gall\w*/)]=0;}
13
+ var gall_settings=new Array();for(var key in map){gall_settings.push(key);}
14
+ for(var i=0;i<gall_settings.length;i++){$(gall_settings[i]+':first').addClass('first');$(gall_settings[i]+':last').addClass('last');}
15
+ var piro_gallery=$(my_gall_obj);$('a[class*="pirobox_gall"]').each(function(rev){this.rev=rev+0});var struct=('<div class="piro_overlay"></div>'+'<table class="piro_html" cellpadding="0" cellspacing="0">'+'<tr>'+'<td class="h_t_l"></td>'+'<td class="h_t_c" title="drag me!!"></td>'+'<td class="h_t_r"></td>'+'</tr>'+'<tr>'+'<td class="h_c_l"></td>'+'<td class="h_c_c">'+'<div class="piro_loader" title="close"><span></span></div>'+'<div class="resize">'+'<div class="nav_container">'+'<a href="#prev" class="piro_prev" title="previous"></a>'+'<a href="#next" class="piro_next" title="next"></a>'+'<div class="piro_prev_fake">prev</div>'+'<div class="piro_next_fake">next</div>'+'<div class="piro_close" title="close"></div>'+'</div>'+'<div class="caption"></div>'+'<div class="div_reg"></div>'+'</div>'+'</td>'+'<td class="h_c_r"></td>'+'</tr>'+'<tr>'+'<td class="h_b_l"></td>'+'<td class="h_b_c"></td>'+'<td class="h_b_r"></td>'+'</tr>'+'</table>');$('body').append(struct);var wrapper=$('.piro_html'),piro_capt=$('.caption'),piro_bg=$('.piro_overlay'),piro_next=$('.piro_next'),piro_prev=$('.piro_prev'),piro_next_fake=$('.piro_next_fake'),piro_prev_fake=$('.piro_prev_fake'),piro_close=$('.piro_close'),div_reg=$('.div_reg'),piro_loader=$('.piro_loader'),resize=$('.resize'),btn_info=$('.btn_info');var rz_img=0.95;if($.browser.msie){wrapper.draggable({handle:'.h_t_c,.h_b_c,.div_reg img'});}else{wrapper.draggable({handle:'.h_t_c,.h_b_c,.div_reg img',opacity:0.80});}
16
+ var y=$(window).height();var x=$(window).width();$('.nav_container').hide();wrapper.css({left:((x/2)-(250))+'px',top:parseInt($(document).scrollTop())+(100)});$(wrapper).add(piro_capt).add(piro_bg).hide();piro_bg.css({'opacity':opt.bg_alpha});$(piro_prev).add(piro_next).bind('click',function(c){$('.nav_container').hide();c.preventDefault();piro_next.add(piro_prev).hide();var obj_count=parseInt($('a[class*="pirobox_gall"]').filter('.item').attr('rev'));var start=$(this).is('.piro_prev')?$('a[class*="pirobox_gall"]').eq(obj_count-1):$('a[class*="pirobox_gall"]').eq(obj_count+1);start.click();});$('html').bind('keyup',function(c){if(c.keyCode==27){c.preventDefault();if($(piro_close).is(':visible')){close_all();}}});$('html').bind('keyup',function(e){if($('.item').is('.first')){}else if(e.keyCode==37){e.preventDefault();if($(piro_close).is(':visible')){piro_prev.click();}}});$('html').bind('keyup',function(z){if($('.item').is('.last')){}else if(z.keyCode==39){z.preventDefault();if($(piro_close).is(':visible')){piro_next.click();}}});$(window).resize(function(){var new_y=$(window).height();var new_x=$(window).width();var new_h=wrapper.height();var new_w=wrapper.width();wrapper.css({left:((new_x/2)-(new_w/2))+'px',top:parseInt($(document).scrollTop())+(new_y-new_h)/2});});function scrollIt(){$(window).scroll(function(){var new_y=$(window).height();var new_x=$(window).width();var new_h=wrapper.height();var new_w=wrapper.width();wrapper.css({left:((new_x/2)-(new_w/2))+'px',top:parseInt($(document).scrollTop())+(new_y-new_h)/2});});}
17
+ if(opt.piro_scroll==true){scrollIt()}
18
+ $(piro_gallery).each(function(){var descr=$(this).attr('title');var params=$(this).attr('rel').split('-');var p_link=$(this).attr('href');$(this).unbind();$(this).bind('click',function(e){piro_bg.css({'opacity':opt.bg_alpha});e.preventDefault();piro_next.add(piro_prev).hide().css('visibility','hidden');$(piro_gallery).filter('.item').removeClass('item');$(this).addClass('item');open_all();if($(this).is('.first')){piro_prev.hide();piro_next.show();piro_prev_fake.show().css({'opacity':0.5,'visibility':'hidden'});}else{piro_next.add(piro_prev).show();piro_next_fake.add(piro_prev_fake).hide();}
19
+ if($(this).is('.last')){piro_prev.show();piro_next_fake.show().css({'opacity':0.5,'visibility':'hidden'});piro_next.hide();}
20
+ if($(this).is('.pirobox')){piro_next.add(piro_prev).hide();}});function open_all(){wrapper.add(piro_bg).add(div_reg).add(piro_loader).show();function animate_html(){if(params[1]=='full'&&params[2]=='full'){params[2]=$(window).height()-70;params[1]=$(window).width()-55;}
21
+ var y=$(window).height();var x=$(window).width();piro_close.hide();div_reg.add(resize).animate({'height':+(params[2])+'px','width':+(params[1])+'px'},opt.piro_speed).css('visibility','visible');wrapper.animate({height:+(params[2])+20+'px',width:+(params[1])+20+'px',left:((x/2)-((params[1])/2+10))+'px',top:parseInt($(document).scrollTop())+(y-params[2])/2-10},opt.piro_speed,function(){piro_next.add(piro_prev).css({'height':'20px','width':'20px'});piro_next.add(piro_prev).add(piro_prev_fake).add(piro_next_fake).css('visibility','visible');$('.nav_container').show();piro_close.show();});}
22
+ function animate_image(){var img=new Image();img.onerror=function(){piro_capt.html('');img.src="http://www.pirolab.it/pirobox/js/error.jpg";}
23
+ img.onload=function(){piro_capt.add(btn_info).hide();var y=$(window).height();var x=$(window).width();var imgH=img.height;var imgW=img.width;if(imgH+20>y||imgW+20>x){var _x=(imgW+20)/x;var _y=(imgH+20)/y;if(_y>_x){imgW=Math.round(img.width*(rz_img/_y));imgH=Math.round(img.height*(rz_img/_y));}else{imgW=Math.round(img.width*(rz_img/_x));imgH=Math.round(img.height*(rz_img/_x));}}else{imgH=img.height;imgW=img.width;}
24
+ var y=$(window).height();var x=$(window).width();$(img).height(imgH).width(imgW).hide();$(img).fadeOut(300,function(){});$('.div_reg img').remove();$('.div_reg').html('');div_reg.append(img).show();$(img).addClass('immagine');div_reg.add(resize).animate({height:imgH+'px',width:imgW+'px'},opt.piro_speed);wrapper.animate({height:(imgH+20)+'px',width:(imgW+20)+'px',left:((x/2)-((imgW+20)/2))+'px',top:parseInt($(document).scrollTop())+(y-imgH)/2-20},opt.piro_speed,function(){var cap_w=resize.width();piro_capt.css({width:cap_w+'px'});piro_loader.hide();$(img).fadeIn(300,function(){piro_close.add(btn_info).show();piro_capt.slideDown(200);piro_next.add(piro_prev).css({'height':'20px','width':'20px'});piro_next.add(piro_prev).add(piro_prev_fake).add(piro_next_fake).css('visibility','visible');$('.nav_container').show();resize.resize(function(){NimgW=img.width;NimgH=img.heigh;piro_capt.css({width:(NimgW)+'px'});});});});}
25
+ img.src=p_link;piro_loader.click(function(){img.src='about:blank';});}
26
+ switch(params[0]){case'iframe':div_reg.html('').css('overflow','hidden');resize.css('overflow','hidden');piro_close.add(btn_info).add(piro_capt).hide();animate_html();div_reg.piroFadeIn(300,function(){div_reg.append('<iframe id="my_frame" class="my_frame" src="'+p_link+'" frameborder="0" allowtransparency="true" scrolling="auto" align="top"></iframe>');$('.my_frame').css({'height':+(params[2])+'px','width':+(params[1])+'px'});piro_loader.hide();});break;case'content':div_reg.html('').css('overflow','auto');resize.css('overflow','auto');$('.my_frame').remove();piro_close.add(btn_info).add(piro_capt).hide();animate_html()
27
+ div_reg.piroFadeIn(300,function(){div_reg.load(p_link);piro_loader.hide();});break;case'inline':div_reg.html('').css('overflow','auto');resize.css('overflow','auto');$('.my_frame').remove();piro_close.add(btn_info).add(piro_capt).hide();animate_html()
28
+ div_reg.piroFadeIn(300,function(){$(p_link).clone(true).appendTo(div_reg).piroFadeIn(300);piro_loader.hide();});break
29
+ case'gallery':div_reg.css('overflow','hidden');resize.css('overflow','hidden');$('.my_frame').remove();piro_close.add(btn_info).add(piro_capt).hide();if(descr==""){piro_capt.html('');}else{piro_capt.html('<p>'+descr+'</p>');}
30
+ animate_image();break;case'single':piro_close.add(btn_info).add(piro_capt).hide();div_reg.html('').css('overflow','hidden');resize.css('overflow','hidden');$('.my_frame').remove();if(descr==""){piro_capt.html('');}else{piro_capt.html('<p>'+descr+'</p>');}
31
+ animate_image();break}}});$('.immagine').live('click',function(){piro_capt.slideToggle(200);});function close_all(){if($('.piro_close').is(':visible')){$('.my_frame').remove();wrapper.add(div_reg).add(resize).stop();var ie_sucks=wrapper;if($.browser.msie){ie_sucks=div_reg.add(piro_bg);$('.div_reg img').remove();}else{ie_sucks=wrapper.add(piro_bg);}
32
+ ie_sucks.piroFadeOut(200,function(){div_reg.html('');piro_loader.add(piro_capt).add(btn_info).hide();$('.nav_container').hide();piro_bg.add(wrapper).hide().css('visibility','visible');});}}
33
+ piro_close.add(piro_loader).add(piro_bg).bind('click',function(y){y.preventDefault();close_all();});}})(jQuery);
js/lightboxes/prettyPhoto/README ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ prettyPhoto v3.1.3
2
+ © Copyright, Stephane Caron
3
+ http://www.no-margin-for-errors.com
4
+
5
+
6
+ ============================= Released under =============================
7
+ http://creativecommons.org/licenses/by/2.5/
8
+
9
+
10
+ ============================ More information ============================
11
+ http://www.no-margin-for-errors.com/projects/prettyPhoto/
12
+
13
+
14
+ ============================== Description ===============================
15
+
16
+ prettyPhoto is a jQuery based lightbox clone. Not only does it support images,
17
+ it also add support for videos, flash, YouTube, iFrame. It's a full blown
18
+ media modal box.
19
+
20
+ Please refer to http://www.no-margin-for-errors.com/projects/prettyPhoto/
21
+ for all the details on how to use.
js/lightboxes/prettyPhoto/css/prettyPhoto.css ADDED
@@ -0,0 +1,525 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ------------------------------------------------------------------------
2
+ This you can edit.
3
+ ------------------------------------------------------------------------- */
4
+
5
+ /* ----------------------------------
6
+ Default Theme
7
+ ----------------------------------- */
8
+
9
+ div.pp_default .pp_top,
10
+ div.pp_default .pp_top .pp_middle,
11
+ div.pp_default .pp_top .pp_left,
12
+ div.pp_default .pp_top .pp_right,
13
+ div.pp_default .pp_bottom,
14
+ div.pp_default .pp_bottom .pp_left,
15
+ div.pp_default .pp_bottom .pp_middle,
16
+ div.pp_default .pp_bottom .pp_right { height: 13px; }
17
+
18
+ div.pp_default .pp_top .pp_left { background: url(../images/prettyPhoto/default/sprite.png) -78px -93px no-repeat; } /* Top left corner */
19
+ div.pp_default .pp_top .pp_middle { background: url(../images/prettyPhoto/default/sprite_x.png) top left repeat-x; } /* Top pattern/color */
20
+ div.pp_default .pp_top .pp_right { background: url(../images/prettyPhoto/default/sprite.png) -112px -93px no-repeat; } /* Top right corner */
21
+
22
+ div.pp_default .pp_content .ppt { color: #f8f8f8; }
23
+ div.pp_default .pp_content_container .pp_left { background: url(../images/prettyPhoto/default/sprite_y.png) -7px 0 repeat-y; padding-left: 13px; }
24
+ div.pp_default .pp_content_container .pp_right { background: url(../images/prettyPhoto/default/sprite_y.png) top right repeat-y; padding-right: 13px; }
25
+ div.pp_default .pp_content { background-color: #fff; } /* Content background */
26
+ div.pp_default .pp_next:hover { background: url(../images/prettyPhoto/default/sprite_next.png) center right no-repeat; cursor: pointer; } /* Next button */
27
+ div.pp_default .pp_previous:hover { background: url(../images/prettyPhoto/default/sprite_prev.png) center left no-repeat; cursor: pointer; } /* Previous button */
28
+ div.pp_default .pp_expand { background: url(../images/prettyPhoto/default/sprite.png) 0 -29px no-repeat; cursor: pointer; width: 28px; height: 28px; } /* Expand button */
29
+ div.pp_default .pp_expand:hover { background: url(../images/prettyPhoto/default/sprite.png) 0 -56px no-repeat; cursor: pointer; } /* Expand button hover */
30
+ div.pp_default .pp_contract { background: url(../images/prettyPhoto/default/sprite.png) 0 -84px no-repeat; cursor: pointer; width: 28px; height: 28px; } /* Contract button */
31
+ div.pp_default .pp_contract:hover { background: url(../images/prettyPhoto/default/sprite.png) 0 -113px no-repeat; cursor: pointer; } /* Contract button hover */
32
+ div.pp_default .pp_close { width: 30px; height: 30px; background: url(../images/prettyPhoto/default/sprite.png) 2px 1px no-repeat; cursor: pointer; } /* Close button */
33
+ div.pp_default #pp_full_res .pp_inline { color: #000; }
34
+ div.pp_default .pp_gallery ul li a { background: url(../images/prettyPhoto/default/default_thumb.png) center center #f8f8f8; border:1px solid #aaa; }
35
+ div.pp_default .pp_gallery ul li a:hover,
36
+ div.pp_default .pp_gallery ul li.selected a { border-color: #fff; }
37
+ div.pp_default .pp_social { margin-top: 7px; }
38
+
39
+ div.pp_default .pp_gallery a.pp_arrow_previous,
40
+ div.pp_default .pp_gallery a.pp_arrow_next { position: static; left: auto; }
41
+ div.pp_default .pp_nav .pp_play,
42
+ div.pp_default .pp_nav .pp_pause { background: url(../images/prettyPhoto/default/sprite.png) -51px 1px no-repeat; height:30px; width:30px; }
43
+ div.pp_default .pp_nav .pp_pause { background-position: -51px -29px; }
44
+ div.pp_default .pp_details { position: relative; }
45
+ div.pp_default a.pp_arrow_previous,
46
+ div.pp_default a.pp_arrow_next { background: url(../images/prettyPhoto/default/sprite.png) -31px -3px no-repeat; height: 20px; margin: 4px 0 0 0; width: 20px; }
47
+ div.pp_default a.pp_arrow_next { left: 52px; background-position: -82px -3px; } /* The next arrow in the bottom nav */
48
+ div.pp_default .pp_content_container .pp_details { margin-top: 5px; }
49
+ div.pp_default .pp_nav { clear: none; height: 30px; width: 110px; position: relative; }
50
+ div.pp_default .pp_nav .currentTextHolder{ font-family: Georgia; font-style: italic; color:#999; font-size: 11px; left: 75px; line-height: 25px; margin: 0; padding: 0 0 0 10px; position: absolute; top: 2px; }
51
+
52
+ div.pp_default .pp_close:hover, div.pp_default .pp_nav .pp_play:hover, div.pp_default .pp_nav .pp_pause:hover, div.pp_default .pp_arrow_next:hover, div.pp_default .pp_arrow_previous:hover { opacity:0.7; }
53
+
54
+ div.pp_default .pp_description{ font-size: 11px; font-weight: bold; line-height: 14px; margin: 5px 50px 5px 0; }
55
+
56
+ div.pp_default .pp_bottom .pp_left { background: url(../images/prettyPhoto/default/sprite.png) -78px -127px no-repeat; } /* Bottom left corner */
57
+ div.pp_default .pp_bottom .pp_middle { background: url(../images/prettyPhoto/default/sprite_x.png) bottom left repeat-x; } /* Bottom pattern/color */
58
+ div.pp_default .pp_bottom .pp_right { background: url(../images/prettyPhoto/default/sprite.png) -112px -127px no-repeat; } /* Bottom right corner */
59
+
60
+ div.pp_default .pp_loaderIcon { background: url(../images/prettyPhoto/default/loader.gif) center center no-repeat; } /* Loader icon */
61
+
62
+
63
+ /* ----------------------------------
64
+ Light Rounded Theme
65
+ ----------------------------------- */
66
+
67
+
68
+ div.light_rounded .pp_top .pp_left { background: url(../images/prettyPhoto/light_rounded/sprite.png) -88px -53px no-repeat; } /* Top left corner */
69
+ div.light_rounded .pp_top .pp_middle { background: #fff; } /* Top pattern/color */
70
+ div.light_rounded .pp_top .pp_right { background: url(../images/prettyPhoto/light_rounded/sprite.png) -110px -53px no-repeat; } /* Top right corner */
71
+
72
+ div.light_rounded .pp_content .ppt { color: #000; }
73
+ div.light_rounded .pp_content_container .pp_left,
74
+ div.light_rounded .pp_content_container .pp_right { background: #fff; }
75
+ div.light_rounded .pp_content { background-color: #fff; } /* Content background */
76
+ div.light_rounded .pp_next:hover { background: url(../images/prettyPhoto/light_rounded/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
77
+ div.light_rounded .pp_previous:hover { background: url(../images/prettyPhoto/light_rounded/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
78
+ div.light_rounded .pp_expand { background: url(../images/prettyPhoto/light_rounded/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
79
+ div.light_rounded .pp_expand:hover { background: url(../images/prettyPhoto/light_rounded/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
80
+ div.light_rounded .pp_contract { background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
81
+ div.light_rounded .pp_contract:hover { background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
82
+ div.light_rounded .pp_close { width: 75px; height: 22px; background: url(../images/prettyPhoto/light_rounded/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
83
+ div.light_rounded .pp_details { position: relative; }
84
+ div.light_rounded .pp_description { margin-right: 85px; }
85
+ div.light_rounded #pp_full_res .pp_inline { color: #000; }
86
+ div.light_rounded .pp_gallery a.pp_arrow_previous,
87
+ div.light_rounded .pp_gallery a.pp_arrow_next { margin-top: 12px !important; }
88
+ div.light_rounded .pp_nav .pp_play { background: url(../images/prettyPhoto/light_rounded/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; }
89
+ div.light_rounded .pp_nav .pp_pause { background: url(../images/prettyPhoto/light_rounded/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; }
90
+
91
+ div.light_rounded .pp_arrow_previous { background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */
92
+ div.light_rounded .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; }
93
+ div.light_rounded .pp_arrow_next { background: url(../images/prettyPhoto/light_rounded/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */
94
+ div.light_rounded .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; }
95
+
96
+ div.light_rounded .pp_bottom .pp_left { background: url(../images/prettyPhoto/light_rounded/sprite.png) -88px -80px no-repeat; } /* Bottom left corner */
97
+ div.light_rounded .pp_bottom .pp_middle { background: #fff; } /* Bottom pattern/color */
98
+ div.light_rounded .pp_bottom .pp_right { background: url(../images/prettyPhoto/light_rounded/sprite.png) -110px -80px no-repeat; } /* Bottom right corner */
99
+
100
+ div.light_rounded .pp_loaderIcon { background: url(../images/prettyPhoto/light_rounded/loader.gif) center center no-repeat; } /* Loader icon */
101
+
102
+ /* ----------------------------------
103
+ Dark Rounded Theme
104
+ ----------------------------------- */
105
+
106
+ div.dark_rounded .pp_top .pp_left { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -53px no-repeat; } /* Top left corner */
107
+ div.dark_rounded .pp_top .pp_middle { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat; } /* Top pattern/color */
108
+ div.dark_rounded .pp_top .pp_right { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -53px no-repeat; } /* Top right corner */
109
+
110
+ div.dark_rounded .pp_content_container .pp_left { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat-y; } /* Left Content background */
111
+ div.dark_rounded .pp_content_container .pp_right { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top right repeat-y; } /* Right Content background */
112
+ div.dark_rounded .pp_content { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat; } /* Content background */
113
+ div.dark_rounded .pp_next:hover { background: url(../images/prettyPhoto/dark_rounded/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
114
+ div.dark_rounded .pp_previous:hover { background: url(../images/prettyPhoto/dark_rounded/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
115
+ div.dark_rounded .pp_expand { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
116
+ div.dark_rounded .pp_expand:hover { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
117
+ div.dark_rounded .pp_contract { background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
118
+ div.dark_rounded .pp_contract:hover { background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
119
+ div.dark_rounded .pp_close { width: 75px; height: 22px; background: url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
120
+ div.dark_rounded .pp_details { position: relative; }
121
+ div.dark_rounded .pp_description { margin-right: 85px; }
122
+ div.dark_rounded .currentTextHolder { color: #c4c4c4; }
123
+ div.dark_rounded .pp_description { color: #fff; }
124
+ div.dark_rounded #pp_full_res .pp_inline { color: #fff; }
125
+ div.dark_rounded .pp_gallery a.pp_arrow_previous,
126
+ div.dark_rounded .pp_gallery a.pp_arrow_next { margin-top: 12px !important; }
127
+ div.dark_rounded .pp_nav .pp_play { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; }
128
+ div.dark_rounded .pp_nav .pp_pause { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; }
129
+
130
+ div.dark_rounded .pp_arrow_previous { background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */
131
+ div.dark_rounded .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; }
132
+ div.dark_rounded .pp_arrow_next { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */
133
+ div.dark_rounded .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; }
134
+
135
+ div.dark_rounded .pp_bottom .pp_left { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -80px no-repeat; } /* Bottom left corner */
136
+ div.dark_rounded .pp_bottom .pp_middle { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat; } /* Bottom pattern/color */
137
+ div.dark_rounded .pp_bottom .pp_right { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -80px no-repeat; } /* Bottom right corner */
138
+
139
+ div.dark_rounded .pp_loaderIcon { background: url(../images/prettyPhoto/dark_rounded/loader.gif) center center no-repeat; } /* Loader icon */
140
+
141
+
142
+ /* ----------------------------------
143
+ Dark Square Theme
144
+ ----------------------------------- */
145
+
146
+ div.dark_square .pp_left ,
147
+ div.dark_square .pp_middle,
148
+ div.dark_square .pp_right,
149
+ div.dark_square .pp_content { background: #000; }
150
+
151
+ div.dark_square .currentTextHolder { color: #c4c4c4; }
152
+ div.dark_square .pp_description { color: #fff; }
153
+ div.dark_square .pp_loaderIcon { background: url(../images/prettyPhoto/dark_square/loader.gif) center center no-repeat; } /* Loader icon */
154
+
155
+ div.dark_square .pp_expand { background: url(../images/prettyPhoto/dark_square/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
156
+ div.dark_square .pp_expand:hover { background: url(../images/prettyPhoto/dark_square/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
157
+ div.dark_square .pp_contract { background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
158
+ div.dark_square .pp_contract:hover { background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
159
+ div.dark_square .pp_close { width: 75px; height: 22px; background: url(../images/prettyPhoto/dark_square/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
160
+ div.dark_square .pp_details { position: relative; }
161
+ div.dark_square .pp_description { margin: 0 85px 0 0; }
162
+ div.dark_square #pp_full_res .pp_inline { color: #fff; }
163
+ div.dark_square .pp_gallery a.pp_arrow_previous,
164
+ div.dark_square .pp_gallery a.pp_arrow_next { margin-top: 12px !important; }
165
+ div.dark_square .pp_nav { clear: none; }
166
+ div.dark_square .pp_nav .pp_play { background: url(../images/prettyPhoto/dark_square/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; }
167
+ div.dark_square .pp_nav .pp_pause { background: url(../images/prettyPhoto/dark_square/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; }
168
+
169
+ div.dark_square .pp_arrow_previous { background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */
170
+ div.dark_square .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; }
171
+ div.dark_square .pp_arrow_next { background: url(../images/prettyPhoto/dark_square/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */
172
+ div.dark_square .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; }
173
+
174
+ div.dark_square .pp_next:hover { background: url(../images/prettyPhoto/dark_square/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
175
+ div.dark_square .pp_previous:hover { background: url(../images/prettyPhoto/dark_square/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
176
+
177
+
178
+ /* ----------------------------------
179
+ Light Square Theme
180
+ ----------------------------------- */
181
+
182
+ div.light_square .pp_left ,
183
+ div.light_square .pp_middle,
184
+ div.light_square .pp_right,
185
+ div.light_square .pp_content { background: #fff; }
186
+
187
+ div.light_square .pp_content .ppt { color: #000; }
188
+ div.light_square .pp_expand { background: url(../images/prettyPhoto/light_square/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
189
+ div.light_square .pp_expand:hover { background: url(../images/prettyPhoto/light_square/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
190
+ div.light_square .pp_contract { background: url(../images/prettyPhoto/light_square/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
191
+ div.light_square .pp_contract:hover { background: url(../images/prettyPhoto/light_square/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
192
+ div.light_square .pp_close { width: 75px; height: 22px; background: url(../images/prettyPhoto/light_square/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
193
+ div.light_square .pp_details { position: relative; }
194
+ div.light_square .pp_description { margin-right: 85px; }
195
+ div.light_square #pp_full_res .pp_inline { color: #000; }
196
+ div.light_square .pp_gallery a.pp_arrow_previous,
197
+ div.light_square .pp_gallery a.pp_arrow_next { margin-top: 12px !important; }
198
+ div.light_square .pp_nav .pp_play { background: url(../images/prettyPhoto/light_square/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; }
199
+ div.light_square .pp_nav .pp_pause { background: url(../images/prettyPhoto/light_square/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; }
200
+
201
+ div.light_square .pp_arrow_previous { background: url(../images/prettyPhoto/light_square/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */
202
+ div.light_square .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; }
203
+ div.light_square .pp_arrow_next { background: url(../images/prettyPhoto/light_square/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */
204
+ div.light_square .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; }
205
+
206
+ div.light_square .pp_next:hover { background: url(../images/prettyPhoto/light_square/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
207
+ div.light_square .pp_previous:hover { background: url(../images/prettyPhoto/light_square/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
208
+
209
+ div.light_square .pp_loaderIcon { background: url(../images/prettyPhoto/light_rounded/loader.gif) center center no-repeat; } /* Loader icon */
210
+
211
+
212
+ /* ----------------------------------
213
+ Facebook style Theme
214
+ ----------------------------------- */
215
+
216
+ div.facebook .pp_top .pp_left { background: url(../images/prettyPhoto/facebook/sprite.png) -88px -53px no-repeat; } /* Top left corner */
217
+ div.facebook .pp_top .pp_middle { background: url(../images/prettyPhoto/facebook/contentPatternTop.png) top left repeat-x; } /* Top pattern/color */
218
+ div.facebook .pp_top .pp_right { background: url(../images/prettyPhoto/facebook/sprite.png) -110px -53px no-repeat; } /* Top right corner */
219
+
220
+ div.facebook .pp_content .ppt { color: #000; }
221
+ div.facebook .pp_content_container .pp_left { background: url(../images/prettyPhoto/facebook/contentPatternLeft.png) top left repeat-y; } /* Content background */
222
+ div.facebook .pp_content_container .pp_right { background: url(../images/prettyPhoto/facebook/contentPatternRight.png) top right repeat-y; } /* Content background */
223
+ div.facebook .pp_content { background: #fff; } /* Content background */
224
+ div.facebook .pp_expand { background: url(../images/prettyPhoto/facebook/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
225
+ div.facebook .pp_expand:hover { background: url(../images/prettyPhoto/facebook/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
226
+ div.facebook .pp_contract { background: url(../images/prettyPhoto/facebook/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
227
+ div.facebook .pp_contract:hover { background: url(../images/prettyPhoto/facebook/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
228
+ div.facebook .pp_close { width: 22px; height: 22px; background: url(../images/prettyPhoto/facebook/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
229
+ div.facebook .pp_details { position: relative; }
230
+ div.facebook .pp_description { margin: 0 37px 0 0; }
231
+ div.facebook #pp_full_res .pp_inline { color: #000; }
232
+ div.facebook .pp_loaderIcon { background: url(../images/prettyPhoto/facebook/loader.gif) center center no-repeat; } /* Loader icon */
233
+
234
+ div.facebook .pp_arrow_previous { background: url(../images/prettyPhoto/facebook/sprite.png) 0 -71px no-repeat; height: 22px; margin-top: 0; width: 22px; } /* The previous arrow in the bottom nav */
235
+ div.facebook .pp_arrow_previous.disabled { background-position: 0 -96px; cursor: default; }
236
+ div.facebook .pp_arrow_next { background: url(../images/prettyPhoto/facebook/sprite.png) -32px -71px no-repeat; height: 22px; margin-top: 0; width: 22px; } /* The next arrow in the bottom nav */
237
+ div.facebook .pp_arrow_next.disabled { background-position: -32px -96px; cursor: default; }
238
+ div.facebook .pp_nav { margin-top: 0; }
239
+ div.facebook .pp_nav p { font-size: 15px; padding: 0 3px 0 4px; }
240
+ div.facebook .pp_nav .pp_play { background: url(../images/prettyPhoto/facebook/sprite.png) -1px -123px no-repeat; height: 22px; width: 22px; }
241
+ div.facebook .pp_nav .pp_pause { background: url(../images/prettyPhoto/facebook/sprite.png) -32px -123px no-repeat; height: 22px; width: 22px; }
242
+
243
+ div.facebook .pp_next:hover { background: url(../images/prettyPhoto/facebook/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
244
+ div.facebook .pp_previous:hover { background: url(../images/prettyPhoto/facebook/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
245
+
246
+ div.facebook .pp_bottom .pp_left { background: url(../images/prettyPhoto/facebook/sprite.png) -88px -80px no-repeat; } /* Bottom left corner */
247
+ div.facebook .pp_bottom .pp_middle { background: url(../images/prettyPhoto/facebook/contentPatternBottom.png) top left repeat-x; } /* Bottom pattern/color */
248
+ div.facebook .pp_bottom .pp_right { background: url(../images/prettyPhoto/facebook/sprite.png) -110px -80px no-repeat; } /* Bottom right corner */
249
+
250
+
251
+ /* ------------------------------------------------------------------------
252
+ DO NOT CHANGE
253
+ ------------------------------------------------------------------------- */
254
+
255
+ div.pp_pic_holder a:focus { outline:none; }
256
+
257
+ div.pp_overlay {
258
+ background: #000;
259
+ display: none;
260
+ left: 0;
261
+ position: absolute;
262
+ top: 0;
263
+ width: 100%;
264
+ z-index: 9500;
265
+ }
266
+
267
+ div.pp_pic_holder {
268
+ display: none;
269
+ position: absolute;
270
+ width: 100px;
271
+ z-index: 10000;
272
+ }
273
+
274
+
275
+ .pp_top {
276
+ height: 20px;
277
+ position: relative;
278
+ }
279
+ * html .pp_top { padding: 0 20px; }
280
+
281
+ .pp_top .pp_left {
282
+ height: 20px;
283
+ left: 0;
284
+ position: absolute;
285
+ width: 20px;
286
+ }
287
+ .pp_top .pp_middle {
288
+ height: 20px;
289
+ left: 20px;
290
+ position: absolute;
291
+ right: 20px;
292
+ }
293
+ * html .pp_top .pp_middle {
294
+ left: 0;
295
+ position: static;
296
+ }
297
+
298
+ .pp_top .pp_right {
299
+ height: 20px;
300
+ left: auto;
301
+ position: absolute;
302
+ right: 0;
303
+ top: 0;
304
+ width: 20px;
305
+ }
306
+
307
+ .pp_content { height: 40px; min-width: 40px; }
308
+ * html .pp_content { width: 40px; }
309
+
310
+ .pp_fade { display: none; }
311
+
312
+ .pp_content_container {
313
+ position: relative;
314
+ text-align: left;
315
+ width: 100%;
316
+ }
317
+
318
+ .pp_content_container .pp_left { padding-left: 20px; }
319
+ .pp_content_container .pp_right { padding-right: 20px; }
320
+
321
+ .pp_content_container .pp_details {
322
+ float: left;
323
+ margin: 10px 0 2px 0;
324
+ }
325
+ .pp_description {
326
+ display: none;
327
+ margin: 0;
328
+ }
329
+
330
+ .pp_social { float: left; margin: 0; }
331
+ .pp_social .facebook { float: left; margin-left: 5px; width: 55px; overflow: hidden; }
332
+ .pp_social .twitter { float: left; }
333
+
334
+ .pp_nav {
335
+ clear: right;
336
+ float: left;
337
+ margin: 3px 10px 0 0;
338
+ }
339
+
340
+ .pp_nav p {
341
+ float: left;
342
+ margin: 2px 4px;
343
+ white-space: nowrap;
344
+ }
345
+
346
+ .pp_nav .pp_play,
347
+ .pp_nav .pp_pause {
348
+ float: left;
349
+ margin-right: 4px;
350
+ text-indent: -10000px;
351
+ }
352
+
353
+ a.pp_arrow_previous,
354
+ a.pp_arrow_next {
355
+ display: block;
356
+ float: left;
357
+ height: 15px;
358
+ margin-top: 3px;
359
+ overflow: hidden;
360
+ text-indent: -10000px;
361
+ width: 14px;
362
+ }
363
+
364
+ .pp_hoverContainer {
365
+ position: absolute;
366
+ top: 0;
367
+ width: 100%;
368
+ z-index: 2000;
369
+ }
370
+
371
+ .pp_gallery {
372
+ display: none;
373
+ left: 50%;
374
+ margin-top: -50px;
375
+ position: absolute;
376
+ z-index: 10000;
377
+ }
378
+
379
+ .pp_gallery div {
380
+ float: left;
381
+ overflow: hidden;
382
+ position: relative;
383
+ }
384
+
385
+ .pp_gallery ul {
386
+ float: left;
387
+ height: 35px;
388
+ margin: 0 0 0 5px;
389
+ padding: 0;
390
+ position: relative;
391
+ white-space: nowrap;
392
+ }
393
+
394
+ .pp_gallery ul a {
395
+ border: 1px #000 solid;
396
+ border: 1px rgba(0,0,0,0.5) solid;
397
+ display: block;
398
+ float: left;
399
+ height: 33px;
400
+ overflow: hidden;
401
+ }
402
+
403
+ .pp_gallery ul a:hover,
404
+ .pp_gallery li.selected a { border-color: #fff; }
405
+
406
+ .pp_gallery ul a img { border: 0; }
407
+
408
+ .pp_gallery li {
409
+ display: block;
410
+ float: left;
411
+ margin: 0 5px 0 0;
412
+ padding: 0;
413
+ }
414
+
415
+ .pp_gallery li.default a {
416
+ background: url(../images/prettyPhoto/facebook/default_thumbnail.gif) 0 0 no-repeat;
417
+ display: block;
418
+ height: 33px;
419
+ width: 50px;
420
+ }
421
+
422
+ .pp_gallery li.default a img { display: none; }
423
+
424
+ .pp_gallery .pp_arrow_previous,
425
+ .pp_gallery .pp_arrow_next {
426
+ margin-top: 7px !important;
427
+ }
428
+
429
+ a.pp_next {
430
+ background: url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;
431
+ display: block;
432
+ float: right;
433
+ height: 100%;
434
+ text-indent: -10000px;
435
+ width: 49%;
436
+ }
437
+
438
+ a.pp_previous {
439
+ background: url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;
440
+ display: block;
441
+ float: left;
442
+ height: 100%;
443
+ text-indent: -10000px;
444
+ width: 49%;
445
+ }
446
+
447
+ a.pp_expand,
448
+ a.pp_contract {
449
+ cursor: pointer;
450
+ display: none;
451
+ height: 20px;
452
+ position: absolute;
453
+ right: 30px;
454
+ text-indent: -10000px;
455
+ top: 10px;
456
+ width: 20px;
457
+ z-index: 20000;
458
+ }
459
+
460
+ a.pp_close {
461
+ position: absolute; right: 0; top: 0;
462
+ display: block;
463
+ line-height:22px;
464
+ text-indent: -10000px;
465
+ }
466
+
467
+ .pp_bottom {
468
+ height: 20px;
469
+ position: relative;
470
+ }
471
+ * html .pp_bottom { padding: 0 20px; }
472
+
473
+ .pp_bottom .pp_left {
474
+ height: 20px;
475
+ left: 0;
476
+ position: absolute;
477
+ width: 20px;
478
+ }
479
+ .pp_bottom .pp_middle {
480
+ height: 20px;
481
+ left: 20px;
482
+ position: absolute;
483
+ right: 20px;
484
+ }
485
+ * html .pp_bottom .pp_middle {
486
+ left: 0;
487
+ position: static;
488
+ }
489
+
490
+ .pp_bottom .pp_right {
491
+ height: 20px;
492
+ left: auto;
493
+ position: absolute;
494
+ right: 0;
495
+ top: 0;
496
+ width: 20px;
497
+ }
498
+
499
+ .pp_loaderIcon {
500
+ display: block;
501
+ height: 24px;
502
+ left: 50%;
503
+ margin: -12px 0 0 -12px;
504
+ position: absolute;
505
+ top: 50%;
506
+ width: 24px;
507
+ }
508
+
509
+ #pp_full_res {
510
+ line-height: 1 !important;
511
+ }
512
+
513
+ #pp_full_res .pp_inline {
514
+ text-align: left;
515
+ }
516
+
517
+ #pp_full_res .pp_inline p { margin: 0 0 15px 0; }
518
+
519
+ div.ppt {
520
+ color: #fff;
521
+ display: none;
522
+ font-size: 17px;
523
+ margin: 0 0 5px 15px;
524
+ z-index: 9999;
525
+ }
js/lightboxes/prettyPhoto/images/.DS_Store ADDED
Binary file
js/lightboxes/prettyPhoto/images/fullscreen/.DS_Store ADDED
Binary file
js/lightboxes/prettyPhoto/images/fullscreen/1.jpg ADDED
Binary file
js/lightboxes/prettyPhoto/images/fullscreen/2.jpg ADDED
Binary file
js/lightboxes/prettyPhoto/images/fullscreen/3.jpg ADDED
Binary file
js/lightboxes/prettyPhoto/images/fullscreen/4.jpg ADDED
Binary file
js/lightboxes/prettyPhoto/images/fullscreen/5.jpg ADDED
Binary file
js/lightboxes/prettyPhoto/images/fullscreen/6.jpg ADDED
Binary file
js/lightboxes/prettyPhoto/images/fullscreen/high.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/fullscreen/huge.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/fullscreen/wide.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/dark_rounded/btnNext.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/dark_rounded/btnPrevious.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/dark_rounded/contentPattern.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/dark_rounded/default_thumbnail.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/dark_rounded/loader.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/dark_rounded/sprite.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/dark_square/btnNext.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/dark_square/btnPrevious.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/dark_square/contentPattern.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/dark_square/default_thumbnail.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/dark_square/loader.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/dark_square/sprite.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/default/default_thumb.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/default/loader.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/default/sprite.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/default/sprite_next.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/default/sprite_prev.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/default/sprite_x.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/default/sprite_y.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/btnNext.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/btnPrevious.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/contentPatternBottom.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/contentPatternLeft.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/contentPatternRight.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/contentPatternTop.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/default_thumbnail.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/loader.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/facebook/sprite.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/light_rounded/btnNext.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/light_rounded/btnPrevious.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/light_rounded/default_thumbnail.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/light_rounded/loader.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/light_rounded/sprite.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/light_square/btnNext.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/light_square/btnPrevious.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/light_square/default_thumbnail.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/light_square/loader.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/prettyPhoto/light_square/sprite.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/thumbnails/flash-logo.png ADDED
Binary file
js/lightboxes/prettyPhoto/images/thumbnails/quicktime-logo.gif ADDED
Binary file
js/lightboxes/prettyPhoto/images/thumbnails/t_1.jpg ADDED
Binary file
js/lightboxes/prettyPhoto/images/thumbnails/t_2.jpg ADDED
Binary file
js/lightboxes/prettyPhoto/images/thumbnails/t_3.jpg ADDED
Binary file
js/lightboxes/prettyPhoto/images/thumbnails/t_4.jpg ADDED
Binary file
js/lightboxes/prettyPhoto/images/thumbnails/t_5.jpg ADDED
Binary file
js/lightboxes/prettyPhoto/index.html ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>jQuery lightbox clone - prettyPhoto - by Stephane Caron</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <script src="js/jquery-1.6.1.min.js" type="text/javascript"></script>
7
+ <!--script src="js/jquery.lint.js" type="text/javascript" charset="utf-8"></script-->
8
+ <link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
9
+ <script src="js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
10
+
11
+ <style type="text/css" media="screen">
12
+ * { margin: 0; padding: 0; }
13
+
14
+ body {
15
+ background: #282828;
16
+ font: 62.5%/1.2 Arial, Verdana, Sans-Serif;
17
+ padding: 0 20px;
18
+ }
19
+
20
+ h1 { font-family: Georgia; font-style: italic; margin-bottom: 10px; }
21
+
22
+ h2 {
23
+ font-family: Georgia;
24
+ font-style: italic;
25
+ margin: 25px 0 5px 0;
26
+ }
27
+
28
+ p { font-size: 1.2em; }
29
+
30
+ ul li { display: inline; }
31
+
32
+ .wide {
33
+ border-bottom: 1px #000 solid;
34
+ width: 4000px;
35
+ }
36
+
37
+ .fleft { float: left; margin: 0 20px 0 0; }
38
+
39
+ .cboth { clear: both; }
40
+
41
+ #main {
42
+ background: #fff;
43
+ margin: 0 auto;
44
+ padding: 30px;
45
+ width: 1000px;
46
+ }
47
+ </style>
48
+ </head>
49
+ <body>
50
+ <div id="main">
51
+ <h1>prettyPhoto</h1>
52
+
53
+ <p>This page has been made for testing purpose only. It covers all the basic things you can handle in prettyPhoto.</p>
54
+
55
+ <p>For complete documentation, please refer to the official website: <a href="http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/">http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/</a></p>
56
+
57
+ <h2>Gallery</h2>
58
+ <ul class="gallery clearfix">
59
+ <li><a href="images/fullscreen/1.JPG?lol=lol" rel="prettyPhoto[gallery1]" title="You can add caption to pictures. You can add caption to pictures. You can add caption to pictures."><img src="images/thumbnails/t_1.jpg" width="60" height="60" alt="Red round shape" /></a></li>
60
+ <li><a href="images/fullscreen/2.jpg" rel="prettyPhoto[gallery1]"><img src="images/thumbnails/t_2.jpg" width="60" height="60" alt="Nice building" /></a></li>
61
+ <li><a href="images/fullscreen/3.jpg" rel="prettyPhoto[gallery1]"><img src="images/thumbnails/t_3.jpg" width="60" height="60" alt="Fire!" /></a></li>
62
+ <li><a href="images/fullscreen/4.jpg" rel="prettyPhoto[gallery1]"><img src="images/thumbnails/t_4.jpg" width="60" height="60" alt="Rock climbing" /></a></li>
63
+ <li><a href="images/fullscreen/5.jpg" rel="prettyPhoto[gallery1]"><img src="images/thumbnails/t_5.jpg" width="60" height="60" alt="Fly kite, fly!" /></a></li>
64
+ <li><a href="images/fullscreen/6.jpg" rel="prettyPhoto[gallery1]"><img src="images/thumbnails/t_2.jpg" width="60" height="60" alt="Nice building" /></a></li>
65
+ </ul>
66
+
67
+ <h2>Gallery 2</h2>
68
+ <ul class="gallery clearfix">
69
+ <li><a href="images/fullscreen/3.jpg" rel="prettyPhoto[gallery2]" title="How is the description on that one? How is the description on that one? How is the description on that one? "><img src="images/thumbnails/t_3.jpg" width="60" height="60" alt="This is a pretty long title" /></a></li>
70
+ <li><a href="images/fullscreen/4.jpg" rel="prettyPhoto[gallery2]" title="Description on a single line."><img src="images/thumbnails/t_4.jpg" width="60" height="60" alt="" /></a></li>
71
+ <li><a href="images/fullscreen/5.jpg" rel="prettyPhoto[gallery2]"><img src="images/thumbnails/t_5.jpg" width="60" height="60" alt="" /></a></li>
72
+ <li><a href="images/fullscreen/1.jpg" rel="prettyPhoto[gallery2]"><img src="images/thumbnails/t_1.jpg" width="60" height="60" alt="" /></a></li>
73
+ <li><a href="images/fullscreen/2.jpg" rel="prettyPhoto[gallery2]"><img src="images/thumbnails/t_2.jpg" width="60" height="60" alt="" /></a></li>
74
+ </ul>
75
+
76
+ <h2>API Call</h2>
77
+ <script type="text/javascript" charset="utf-8">
78
+ api_gallery=['images/fullscreen/1.JPG','images/fullscreen/2.jpg','images/fullscreen/3.JPG'];
79
+ api_titles=['API Call Image 1','API Call Image 2','API Call Image 3'];
80
+ api_descriptions=['Description 1','Description 2','Description 3'];
81
+ </script>
82
+ <p><a href="#" onclick="$.prettyPhoto.open(api_gallery,api_titles,api_descriptions); return false">API call</a></p>
83
+
84
+ <h2>Picture alone</h2>
85
+ <ul class="gallery clearfix">
86
+ <li><a href="images/fullscreen/2.jpg" rel="prettyPhoto" title="&lt;a href=&#x27;http://www.google.ca&#x27; target=&#x27;_blank&#x27; &gt;This will open Google.com in a new window&lt;/a&gt;"><img src="images/thumbnails/t_2.jpg" width="60" height="60" alt="Picture alone 1" /></a></li>
87
+ </ul>
88
+ <div class="fleft">
89
+ <h2>Flash</h2>
90
+ <ul class="gallery clearfix">
91
+ <li><a href="http://www.adobe.com/products/flashplayer/include/marquee/design.swf?width=792&amp;height=294" rel="prettyPhoto[flash]" title="Flash 10 demo"><img src="images/thumbnails/flash-logo.png" width="60" alt="Flash 10 demo" /></a></li>
92
+ </ul>
93
+ </div>
94
+ <div class="fleft">
95
+ <h2>YouTube</h2>
96
+ <ul class="gallery clearfix">
97
+ <li><a href="http://www.youtube.com/watch?v=kh29_SERH0Y?rel=0" rel="prettyPhoto" title="YouTube demo"><img src="images/thumbnails/flash-logo.png" width="60" alt="" /></a></li>
98
+ <li><a href="http://youtu.be/kh29_SERH0Y?rel=0" rel="prettyPhoto" title="YouTube demo"><img src="images/thumbnails/flash-logo.png" width="60" alt="" /></a></li>
99
+ </ul>
100
+ </div>
101
+ <div class="fleft">
102
+ <h2>Vimeo</h2>
103
+ <ul class="gallery clearfix">
104
+ <li><a href="http://vimeo.com/7874398&width=700" rel="prettyPhoto" title="Vimeo video"><img src="images/thumbnails/flash-logo.png" width="60" alt="VIMEO!" /></a></li>
105
+ </ul>
106
+ </div>
107
+
108
+ <br class="cboth" />
109
+
110
+ <h2>Movies (.mov)</h2>
111
+ <ul class="gallery clearfix">
112
+ <li><a href="http://trailers.apple.com/movies/disney/tronlegacy/tronlegacy-tsr1_r640s.mov?width=640&height=272" rel="prettyPhoto[movies]" title="Tron!"><img src="images/thumbnails/quicktime-logo.gif" alt="Tron teaser" width="60" /></a></li>
113
+ <li><a href="http://trailers.apple.com/movies/sony_pictures/karatekid/karatekid-tlr3_r640s.mov?width=640&height=304" rel="prettyPhoto[movies]" title="The Karate Kid"><img src="images/thumbnails/quicktime-logo.gif" alt="The Karate Kid" width="60" /></a></li>
114
+ <li><a href="http://trailers.apple.com/movies/paramount/shutterisland/shutterisland-tvspot1_r640s.mov?width=640&height=272" rel="prettyPhoto[movies]" title="Shutter Island"><img src="images/thumbnails/quicktime-logo.gif" alt="Shutter Island" width="60" /></a></li>
115
+ </ul>
116
+
117
+ <h2>Movies (.mov) alone</h2>
118
+ <ul class="gallery clearfix">
119
+ <li><a href="http://trailers.apple.com/movies/disney/tronlegacy/tronlegacy-tsr1_r640s.mov?width=640&height=272" rel="prettyPhoto" title="Tron!"><img src="images/thumbnails/quicktime-logo.gif" alt="Tron teaser" width="60" /></a></li>
120
+ </ul>
121
+
122
+ <h2>Unusual sizes</h2>
123
+ <ul class="gallery clearfix">
124
+ <li><a href="images/fullscreen/wide.gif" rel="prettyPhoto[unusual]">Wide image (3000 x 1500)</a></li>
125
+ <li><a href="images/fullscreen/high.gif" rel="prettyPhoto[unusual]">High image (1500 x 3000)</a></li>
126
+ <li><a href="images/fullscreen/huge.gif" rel="prettyPhoto[unusual]">Huge image (3000 x 3000)</a></li>
127
+ </ul>
128
+
129
+ <h2>Iframe</h2>
130
+ <ul class="gallery clearfix">
131
+ <li><a href="http://www.google.com/search?ie=UTF-8&amp;oe=UTF-8&amp;q=prettyphoto&amp;iframe=true&amp;width=100%&amp;height=100%" rel="prettyPhoto[iframe]">Google.ca</a></li>
132
+ <li><a href="http://www.facebook.com?iframe=true&amp;width=600&amp;height=300" rel="prettyPhoto[iframe]">Facebook</a></li>
133
+ <li><a href="http://nmfe.co?iframe=true&amp;width=300&amp;height=200" rel="prettyPhoto[iframe]">My site</a></li>
134
+ </ul>
135
+
136
+ <h2>AJAX</h2>
137
+ <ul class="gallery clearfix">
138
+ <li><a href="xhr_response.html?ajax=true&amp;width=400&amp;height=160" rel="prettyPhoto[ajax]">Sample AJAX</a></li>
139
+ </ul>
140
+
141
+ <h2>Mixed gallery</h2>
142
+ <ul class="gallery clearfix">
143
+ <li><a href="http://www.google.ca?iframe=true&amp;width=1000&amp;height=500" rel="prettyPhoto[mixed]">Google.ca</a></li>
144
+ <li><a href="http://trailers.apple.com/movies/disney/tronlegacy/tronlegacy-tsr1_r640s.mov?width=640&height=272" rel="prettyPhoto[mixed]" title="Tron!"><img src="images/thumbnails/quicktime-logo.gif" alt="Tron teaser" width="60" /></a></li>
145
+ <li><a href="images/fullscreen/5.jpg" rel="prettyPhoto[mixed]"><img src="images/thumbnails/t_5.jpg" width="60" height="60" alt="" /></a></li>
146
+ <li><a href="http://www.adobe.com/products/flashplayer/include/marquee/design.swf?width=792&amp;height=294" rel="prettyPhoto[mixed]" title="Flash 10 demo"><img src="images/thumbnails/flash-logo.png" width="60" alt="Flash 10 demo" /></a></li>
147
+ </ul>
148
+
149
+ <h2>Inline content</h2>
150
+ <ul class="gallery clearfix">
151
+ <li><a href="#inline_demo" rel="prettyPhoto[inline]">Inline content 1</a></li>
152
+ <li><a href="#inline_demo2" rel="prettyPhoto[inline]">Inline content 2</a></li>
153
+ <li><a href="#inline_demo3" rel="prettyPhoto[inline]">Inline content 3</a></li>
154
+ </ul>
155
+ <div id="inline_demo" style="display:none;">
156
+ <p><a href="http://www.google.ca?iframe=true&amp;width=1000&amp;height=500">Google.ca</a></p>
157
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
158
+ </div>
159
+ <div id="inline_demo2" style="display:none;">
160
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
161
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
162
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
163
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
164
+ </div>
165
+ <div id="inline_demo3" style="display:none;">
166
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
167
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
168
+ <p><img src="images/fullscreen/2.jpg" /></p>
169
+ </div>
170
+
171
+ <h2>Custom content</h2>
172
+ <ul id="custom_content" class="gallery clearfix">
173
+ <li><a href="#?custom=true&width=260&height=270" rel="prettyPhoto">Google Maps</a></li>
174
+ <li><a href="#?custom=true&width=260&height=400" rel="prettyPhoto">Ads</a></li>
175
+ </ul>
176
+
177
+ <br /><br />
178
+
179
+ <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/_HOMoTqEASY&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="opaque"></param><embed src="http://www.youtube.com/v/_HOMoTqEASY&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344" wmode="opaque"></embed></object>
180
+ <iframe title="YouTube video player" width="425" height="344" src="http://www.youtube.com/embed/_HOMoTqEASY" frameborder="0" allowfullscreen></iframe>
181
+
182
+ <script type="text/javascript" charset="utf-8">
183
+ $(document).ready(function(){
184
+ $("area[rel^='prettyPhoto']").prettyPhoto();
185
+
186
+ $(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'light_square',slideshow:3000, autoplay_slideshow: true});
187
+ $(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true});
188
+
189
+ $("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({
190
+ custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
191
+ changepicturecallback: function(){ initialize(); }
192
+ });
193
+
194
+ $("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({
195
+ custom_markup: '<div id="bsap_1259344" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div><div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>',
196
+ changepicturecallback: function(){ _bsap.exec(); }
197
+ });
198
+ });
199
+ </script>
200
+
201
+ <!-- Google Maps Code -->
202
+ <script type="text/javascript"
203
+ src="http://maps.google.com/maps/api/js?sensor=true">
204
+ </script>
205
+ <script type="text/javascript">
206
+ function initialize() {
207
+ var latlng = new google.maps.LatLng(-34.397, 150.644);
208
+ var myOptions = {
209
+ zoom: 8,
210
+ center: latlng,
211
+ mapTypeId: google.maps.MapTypeId.ROADMAP
212
+ };
213
+ var map = new google.maps.Map(document.getElementById("map_canvas"),
214
+ myOptions);
215
+ }
216
+
217
+ </script>
218
+ <!-- END Google Maps Code -->
219
+
220
+ <!-- BuySellAds.com Ad Code -->
221
+ <style type="text/css" media="screen">
222
+ .bsap a { float: left; }
223
+ </style>
224
+ <script type="text/javascript">
225
+ (function(){
226
+ var bsa = document.createElement('script');
227
+ bsa.type = 'text/javascript';
228
+ bsa.async = true;
229
+ bsa.src = '//s3.buysellads.com/ac/bsa.js';
230
+ (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
231
+ })();
232
+ </script>
233
+ <!-- END BuySellAds.com Ad Code -->
234
+ </div>
235
+ </body>
236
+ </html>
js/lightboxes/prettyPhoto/js/jquery.prettyPhoto.js ADDED
@@ -0,0 +1,905 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ------------------------------------------------------------------------
2
+ Class: prettyPhoto
3
+ Use: Lightbox clone for jQuery
4
+ Author: Stephane Caron (http://www.no-margin-for-errors.com)
5
+ Version: 3.1.3
6
+ ------------------------------------------------------------------------- */
7
+ (function($) {
8
+ $.prettyPhoto = {version: '3.1.3'};
9
+
10
+ $.fn.prettyPhoto = function(pp_settings) {
11
+ pp_settings = jQuery.extend({
12
+ animation_speed: 'fast', /* fast/slow/normal */
13
+ slideshow: 5000, /* false OR interval time in ms */
14
+ autoplay_slideshow: false, /* true/false */
15
+ opacity: 0.80, /* Value between 0 and 1 */
16
+ show_title: true, /* true/false */
17
+ allow_resize: true, /* Resize the photos bigger than viewport. true/false */
18
+ default_width: 500,
19
+ default_height: 344,
20
+ counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
21
+ theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
22
+ horizontal_padding: 20, /* The padding on each side of the picture */
23
+ hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
24
+ wmode: 'opaque', /* Set the flash wmode attribute */
25
+ autoplay: true, /* Automatically start videos: True/False */
26
+ modal: false, /* If set to true, only the close button will close the window */
27
+ deeplinking: true, /* Allow prettyPhoto to update the url to enable deeplinking. */
28
+ overlay_gallery: true, /* If set to true, a gallery will overlay the fullscreen image on mouse over */
29
+ keyboard_shortcuts: true, /* Set to false if you open forms inside prettyPhoto */
30
+ changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
31
+ callback: function(){}, /* Called when prettyPhoto is closed */
32
+ ie6_fallback: true,
33
+ markup: '<div class="pp_pic_holder"> \
34
+ <div class="ppt">&nbsp;</div> \
35
+ <div class="pp_top"> \
36
+ <div class="pp_left"></div> \
37
+ <div class="pp_middle"></div> \
38
+ <div class="pp_right"></div> \
39
+ </div> \
40
+ <div class="pp_content_container"> \
41
+ <div class="pp_left"> \
42
+ <div class="pp_right"> \
43
+ <div class="pp_content"> \
44
+ <div class="pp_loaderIcon"></div> \
45
+ <div class="pp_fade"> \
46
+ <a href="#" class="pp_expand" title="Expand the image">Expand</a> \
47
+ <div class="pp_hoverContainer"> \
48
+ <a class="pp_next" href="#">next</a> \
49
+ <a class="pp_previous" href="#">previous</a> \
50
+ </div> \
51
+ <div id="pp_full_res"></div> \
52
+ <div class="pp_details"> \
53
+ <div class="pp_nav"> \
54
+ <a href="#" class="pp_arrow_previous">Previous</a> \
55
+ <p class="currentTextHolder">0/0</p> \
56
+ <a href="#" class="pp_arrow_next">Next</a> \
57
+ </div> \
58
+ <p class="pp_description"></p> \
59
+ <div class="pp_social">{pp_social}</div> \
60
+ <a class="pp_close" href="#">Close</a> \
61
+ </div> \
62
+ </div> \
63
+ </div> \
64
+ </div> \
65
+ </div> \
66
+ </div> \
67
+ <div class="pp_bottom"> \
68
+ <div class="pp_left"></div> \
69
+ <div class="pp_middle"></div> \
70
+ <div class="pp_right"></div> \
71
+ </div> \
72
+ </div> \
73
+ <div class="pp_overlay"></div>',
74
+ gallery_markup: '<div class="pp_gallery"> \
75
+ <a href="#" class="pp_arrow_previous">Previous</a> \
76
+ <div> \
77
+ <ul> \
78
+ {gallery} \
79
+ </ul> \
80
+ </div> \
81
+ <a href="#" class="pp_arrow_next">Next</a> \
82
+ </div>',
83
+ image_markup: '<img id="fullResImage" src="{path}" />',
84
+ flash_markup: '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',
85
+ quicktime_markup: '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',
86
+ iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',
87
+ inline_markup: '<div class="pp_inline">{content}</div>',
88
+ custom_markup: '',
89
+ social_tools: '<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>' /* html or false to disable */
90
+ }, pp_settings);
91
+
92
+ // Global variables accessible only by prettyPhoto
93
+ var matchedObjects = this, percentBased = false, pp_dimensions, pp_open,
94
+
95
+ // prettyPhoto container specific
96
+ pp_contentHeight, pp_contentWidth, pp_containerHeight, pp_containerWidth,
97
+
98
+ // Window size
99
+ windowHeight = $(window).height(), windowWidth = $(window).width(),
100
+
101
+ // Global elements
102
+ pp_slideshow;
103
+
104
+ doresize = true, scroll_pos = _get_scroll();
105
+
106
+ // Window/Keyboard events
107
+ $(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){ _center_overlay(); _resize_overlay(); });
108
+
109
+ if(pp_settings.keyboard_shortcuts) {
110
+ $(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){
111
+ if(typeof $pp_pic_holder != 'undefined'){
112
+ if($pp_pic_holder.is(':visible')){
113
+ switch(e.keyCode){
114
+ case 37:
115
+ $.prettyPhoto.changePage('previous');
116
+ e.preventDefault();
117
+ break;
118
+ case 39:
119
+ $.prettyPhoto.changePage('next');
120
+ e.preventDefault();
121
+ break;
122
+ case 27:
123
+ if(!settings.modal)
124
+ $.prettyPhoto.close();
125
+ e.preventDefault();
126
+ break;
127
+ };
128
+ // return false;
129
+ };
130
+ };
131
+ });
132
+ };
133
+
134
+ /**
135
+ * Initialize prettyPhoto.
136
+ */
137
+ $.prettyPhoto.initialize = function() {
138
+
139
+ settings = pp_settings;
140
+
141
+ if(settings.theme == 'pp_default') settings.horizontal_padding = 16;
142
+ if(settings.ie6_fallback && $.browser.msie && parseInt($.browser.version) == 6) settings.theme = "light_square"; // Fallback to a supported theme for IE6
143
+
144
+ // Find out if the picture is part of a set
145
+ theRel = $(this).attr('rel');
146
+ galleryRegExp = /\[(?:.*)\]/;
147
+ isSet = (galleryRegExp.exec(theRel)) ? true : false;
148
+
149
+ // Put the SRCs, TITLEs, ALTs into an array.
150
+ pp_images = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr('rel').indexOf(theRel) != -1) return $(n).attr('href'); }) : $.makeArray($(this).attr('href'));
151
+ pp_titles = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr('rel').indexOf(theRel) != -1) return ($(n).find('img').attr('alt')) ? $(n).find('img').attr('alt') : ""; }) : $.makeArray($(this).find('img').attr('alt'));
152
+ pp_descriptions = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr('rel').indexOf(theRel) != -1) return ($(n).attr('title')) ? $(n).attr('title') : ""; }) : $.makeArray($(this).attr('title'));
153
+
154
+ if(pp_images.length > 30) settings.overlay_gallery = false;
155
+
156
+ set_position = jQuery.inArray($(this).attr('href'), pp_images); // Define where in the array the clicked item is positionned
157
+ rel_index = (isSet) ? set_position : $("a[rel^='"+theRel+"']").index($(this));
158
+
159
+ _build_overlay(this); // Build the overlay {this} being the caller
160
+
161
+ if(settings.allow_resize)
162
+ $(window).bind('scroll.prettyphoto',function(){ _center_overlay(); });
163
+
164
+
165
+ $.prettyPhoto.open();
166
+
167
+ return false;
168
+ }
169
+
170
+
171
+ /**
172
+ * Opens the prettyPhoto modal box.
173
+ * @param image {String,Array} Full path to the image to be open, can also be an array containing full images paths.
174
+ * @param title {String,Array} The title to be displayed with the picture, can also be an array containing all the titles.
175
+ * @param description {String,Array} The description to be displayed with the picture, can also be an array containing all the descriptions.
176
+ */
177
+ $.prettyPhoto.open = function(event) {
178
+ if(typeof settings == "undefined"){ // Means it's an API call, need to manually get the settings and set the variables
179
+ settings = pp_settings;
180
+ if($.browser.msie && $.browser.version == 6) settings.theme = "light_square"; // Fallback to a supported theme for IE6
181
+ pp_images = $.makeArray(arguments[0]);
182
+ pp_titles = (arguments[1]) ? $.makeArray(arguments[1]) : $.makeArray("");
183
+ pp_descriptions = (arguments[2]) ? $.makeArray(arguments[2]) : $.makeArray("");
184
+ isSet = (pp_images.length > 1) ? true : false;
185
+ set_position = 0;
186
+ _build_overlay(event.target); // Build the overlay {this} being the caller
187
+ }
188
+
189
+ if($.browser.msie && $.browser.version == 6) $('select').css('visibility','hidden'); // To fix the bug with IE select boxes
190
+
191
+ if(settings.hideflash) $('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden'); // Hide the flash
192
+
193
+ _checkPosition($(pp_images).size()); // Hide the next/previous links if on first or last images.
194
+
195
+ $('.pp_loaderIcon').show();
196
+
197
+ if(settings.deeplinking)
198
+ setHashtag();
199
+
200
+ // Rebuild Facebook Like Button with updated href
201
+ if(settings.social_tools){
202
+ facebook_like_link = settings.social_tools.replace('{location_href}', encodeURIComponent(location.href));
203
+ $pp_pic_holder.find('.pp_social').html(facebook_like_link);
204
+ }
205
+
206
+ // Fade the content in
207
+ if($ppt.is(':hidden')) $ppt.css('opacity',0).show();
208
+ $pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);
209
+
210
+ // Display the current position
211
+ $pp_pic_holder.find('.currentTextHolder').text((set_position+1) + settings.counter_separator_label + $(pp_images).size());
212
+
213
+ // Set the description
214
+ if(pp_descriptions[set_position] != ""){
215
+ $pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));
216
+ }else{
217
+ $pp_pic_holder.find('.pp_description').hide();
218
+ }
219
+
220
+ // Get the dimensions
221
+ movie_width = ( parseFloat(getParam('width',pp_images[set_position])) ) ? getParam('width',pp_images[set_position]) : settings.default_width.toString();
222
+ movie_height = ( parseFloat(getParam('height',pp_images[set_position])) ) ? getParam('height',pp_images[set_position]) : settings.default_height.toString();
223
+
224
+ // If the size is % based, calculate according to window dimensions
225
+ percentBased=false;
226
+ if(movie_height.indexOf('%') != -1) { movie_height = parseFloat(($(window).height() * parseFloat(movie_height) / 100) - 150); percentBased = true; }
227
+ if(movie_width.indexOf('%') != -1) { movie_width = parseFloat(($(window).width() * parseFloat(movie_width) / 100) - 150); percentBased = true; }
228
+
229
+ // Fade the holder
230
+ $pp_pic_holder.fadeIn(function(){
231
+ // Set the title
232
+ (settings.show_title && pp_titles[set_position] != "" && typeof pp_titles[set_position] != "undefined") ? $ppt.html(unescape(pp_titles[set_position])) : $ppt.html('&nbsp;');
233
+
234
+ imgPreloader = "";
235
+ skipInjection = false;
236
+
237
+ // Inject the proper content
238
+ switch(_getFileType(pp_images[set_position])){
239
+ case 'image':
240
+ imgPreloader = new Image();
241
+
242
+ // Preload the neighbour images
243
+ nextImage = new Image();
244
+ if(isSet && set_position < $(pp_images).size() -1) nextImage.src = pp_images[set_position + 1];
245
+ prevImage = new Image();
246
+ if(isSet && pp_images[set_position - 1]) prevImage.src = pp_images[set_position - 1];
247
+
248
+ $pp_pic_holder.find('#pp_full_res')[0].innerHTML = settings.image_markup.replace(/{path}/g,pp_images[set_position]);
249
+
250
+ imgPreloader.onload = function(){
251
+ // Fit item to viewport
252
+ pp_dimensions = _fitToViewport(imgPreloader.width,imgPreloader.height);
253
+
254
+ _showContent();
255
+ };
256
+
257
+ imgPreloader.onerror = function(){
258
+ alert('Image cannot be loaded. Make sure the path is correct and image exist.');
259
+ $.prettyPhoto.close();
260
+ };
261
+
262
+ imgPreloader.src = pp_images[set_position];
263
+ break;
264
+
265
+ case 'youtube':
266
+ pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport
267
+
268
+ // Regular youtube link
269
+ movie_id = getParam('v',pp_images[set_position]);
270
+
271
+ // youtu.be link
272
+ if(movie_id == ""){
273
+ movie_id = pp_images[set_position].split('youtu.be/');
274
+ movie_id = movie_id[1];
275
+ if(movie_id.indexOf('?') > 0)
276
+ movie_id = movie_id.substr(0,movie_id.indexOf('?')); // Strip anything after the ?
277
+
278
+ if(movie_id.indexOf('&') > 0)
279
+ movie_id = movie_id.substr(0,movie_id.indexOf('&')); // Strip anything after the &
280
+ }
281
+
282
+ movie = 'http://www.youtube.com/embed/'+movie_id;
283
+ (getParam('rel',pp_images[set_position])) ? movie+="?rel="+getParam('rel',pp_images[set_position]) : movie+="?rel=1";
284
+
285
+ if(settings.autoplay) movie += "&autoplay=1";
286
+
287
+ toInject = settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);
288
+ break;
289
+
290
+ case 'vimeo':
291
+ pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport
292
+
293
+ movie_id = pp_images[set_position];
294
+ var regExp = /http:\/\/(www\.)?vimeo.com\/(\d+)/;
295
+ var match = movie_id.match(regExp);
296
+
297
+ movie = 'http://player.vimeo.com/video/'+ match[2] +'?title=0&amp;byline=0&amp;portrait=0';
298
+ if(settings.autoplay) movie += "&autoplay=1;";
299
+
300
+ vimeo_width = pp_dimensions['width'] + '/embed/?moog_width='+ pp_dimensions['width'];
301
+
302
+ toInject = settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,movie);
303
+ break;
304
+
305
+ case 'quicktime':
306
+ pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport
307
+ pp_dimensions['height']+=15; pp_dimensions['contentHeight']+=15; pp_dimensions['containerHeight']+=15; // Add space for the control bar
308
+
309
+ toInject = settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);
310
+ break;
311
+
312
+ case 'flash':
313
+ pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport
314
+
315
+ flash_vars = pp_images[set_position];
316
+ flash_vars = flash_vars.substring(pp_images[set_position].indexOf('flashvars') + 10,pp_images[set_position].length);
317
+
318
+ filename = pp_images[set_position];
319
+ filename = filename.substring(0,filename.indexOf('?'));
320
+
321
+ toInject = settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);
322
+ break;
323
+
324
+ case 'iframe':
325
+ pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport
326
+
327
+ frame_url = pp_images[set_position];
328
+ frame_url = frame_url.substr(0,frame_url.indexOf('iframe')-1);
329
+
330
+ toInject = settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,frame_url);
331
+ break;
332
+
333
+ case 'ajax':
334
+ doresize = false; // Make sure the dimensions are not resized.
335
+ pp_dimensions = _fitToViewport(movie_width,movie_height);
336
+ doresize = true; // Reset the dimensions
337
+
338
+ skipInjection = true;
339
+ $.get(pp_images[set_position],function(responseHTML){
340
+ toInject = settings.inline_markup.replace(/{content}/g,responseHTML);
341
+ $pp_pic_holder.find('#pp_full_res')[0].innerHTML = toInject;
342
+ _showContent();
343
+ });
344
+
345
+ break;
346
+
347
+ case 'custom':
348
+ pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport
349
+
350
+ toInject = settings.custom_markup;
351
+ break;
352
+
353
+ case 'inline':
354
+ // to get the item height clone it, apply default width, wrap it in the prettyPhoto containers , then delete
355
+ myClone = $(pp_images[set_position]).clone().append('<br clear="all" />').css({'width':settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo($('body')).show();
356
+ doresize = false; // Make sure the dimensions are not resized.
357
+ pp_dimensions = _fitToViewport($(myClone).width(),$(myClone).height());
358
+ doresize = true; // Reset the dimensions
359
+ $(myClone).remove();
360
+ toInject = settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html());
361
+ break;
362
+ };
363
+
364
+ if(!imgPreloader && !skipInjection){
365
+ $pp_pic_holder.find('#pp_full_res')[0].innerHTML = toInject;
366
+
367
+ // Show content
368
+ _showContent();
369
+ };
370
+ });
371
+
372
+ return false;
373
+ };
374
+
375
+
376
+ /**
377
+ * Change page in the prettyPhoto modal box
378
+ * @param direction {String} Direction of the paging, previous or next.
379
+ */
380
+ $.prettyPhoto.changePage = function(direction){
381
+ currentGalleryPage = 0;
382
+
383
+ if(direction == 'previous') {
384
+ set_position--;
385
+ if (set_position < 0) set_position = $(pp_images).size()-1;
386
+ }else if(direction == 'next'){
387
+ set_position++;
388
+ if(set_position > $(pp_images).size()-1) set_position = 0;
389
+ }else{
390
+ set_position=direction;
391
+ };
392
+
393
+ rel_index = set_position;
394
+
395
+ if(!doresize) doresize = true; // Allow the resizing of the images
396
+ $('.pp_contract').removeClass('pp_contract').addClass('pp_expand');
397
+
398
+ _hideContent(function(){ $.prettyPhoto.open(); });
399
+ };
400
+
401
+
402
+ /**
403
+ * Change gallery page in the prettyPhoto modal box
404
+ * @param direction {String} Direction of the paging, previous or next.
405
+ */
406
+ $.prettyPhoto.changeGalleryPage = function(direction){
407
+ if(direction=='next'){
408
+ currentGalleryPage ++;
409
+
410
+ if(currentGalleryPage > totalPage) currentGalleryPage = 0;
411
+ }else if(direction=='previous'){
412
+ currentGalleryPage --;
413
+
414
+ if(currentGalleryPage < 0) currentGalleryPage = totalPage;
415
+ }else{
416
+ currentGalleryPage = direction;
417
+ };
418
+
419
+ slide_speed = (direction == 'next' || direction == 'previous') ? settings.animation_speed : 0;
420
+
421
+ slide_to = currentGalleryPage * (itemsPerPage * itemWidth);
422
+
423
+ $pp_gallery.find('ul').animate({left:-slide_to},slide_speed);
424
+ };
425
+
426
+
427
+ /**
428
+ * Start the slideshow...
429
+ */
430
+ $.prettyPhoto.startSlideshow = function(){
431
+ if(typeof pp_slideshow == 'undefined'){
432
+ $pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){
433
+ $.prettyPhoto.stopSlideshow();
434
+ return false;
435
+ });
436
+ pp_slideshow = setInterval($.prettyPhoto.startSlideshow,settings.slideshow);
437
+ }else{
438
+ $.prettyPhoto.changePage('next');
439
+ };
440
+ }
441
+
442
+
443
+ /**
444
+ * Stop the slideshow...
445
+ */
446
+ $.prettyPhoto.stopSlideshow = function(){
447
+ $pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){
448
+ $.prettyPhoto.startSlideshow();
449
+ return false;
450
+ });
451
+ clearInterval(pp_slideshow);
452
+ pp_slideshow=undefined;
453
+ }
454
+
455
+
456
+ /**
457
+ * Closes prettyPhoto.
458
+ */
459
+ $.prettyPhoto.close = function(){
460
+ if($pp_overlay.is(":animated")) return;
461
+
462
+ $.prettyPhoto.stopSlideshow();
463
+
464
+ $pp_pic_holder.stop().find('object,embed').css('visibility','hidden');
465
+
466
+ $('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){ $(this).remove(); });
467
+
468
+ $pp_overlay.fadeOut(settings.animation_speed, function(){
469
+ if($.browser.msie && $.browser.version == 6) $('select').css('visibility','visible'); // To fix the bug with IE select boxes
470
+
471
+ if(settings.hideflash) $('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible'); // Show the flash
472
+
473
+ $(this).remove(); // No more need for the prettyPhoto markup
474
+
475
+ $(window).unbind('scroll.prettyphoto');
476
+
477
+ clearHashtag();
478
+
479
+ settings.callback();
480
+
481
+ doresize = true;
482
+
483
+ pp_open = false;
484
+
485
+ delete settings;
486
+ });
487
+ };
488
+
489
+ /**
490
+ * Set the proper sizes on the containers and animate the content in.
491
+ */
492
+ function _showContent(){
493
+ $('.pp_loaderIcon').hide();
494
+
495
+ // Calculate the opened top position of the pic holder
496
+ projectedTop = scroll_pos['scrollTop'] + ((windowHeight/2) - (pp_dimensions['containerHeight']/2));
497
+ if(projectedTop < 0) projectedTop = 0;
498
+
499
+ $ppt.fadeTo(settings.animation_speed,1);
500
+
501
+ // Resize the content holder
502
+ $pp_pic_holder.find('.pp_content')
503
+ .animate({
504
+ height:pp_dimensions['contentHeight'],
505
+ width:pp_dimensions['contentWidth']
506
+ },settings.animation_speed);
507
+
508
+ // Resize picture the holder
509
+ $pp_pic_holder.animate({
510
+ 'top': projectedTop,
511
+ 'left': (windowWidth/2) - (pp_dimensions['containerWidth']/2),
512
+ width:pp_dimensions['containerWidth']
513
+ },settings.animation_speed,function(){
514
+ $pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']);
515
+
516
+ $pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed); // Fade the new content
517
+
518
+ // Show the nav
519
+ if(isSet && _getFileType(pp_images[set_position])=="image") { $pp_pic_holder.find('.pp_hoverContainer').show(); }else{ $pp_pic_holder.find('.pp_hoverContainer').hide(); }
520
+
521
+ if(pp_dimensions['resized']){ // Fade the resizing link if the image is resized
522
+ $('a.pp_expand,a.pp_contract').show();
523
+ }else{
524
+ $('a.pp_expand').hide();
525
+ }
526
+
527
+ if(settings.autoplay_slideshow && !pp_slideshow && !pp_open) $.prettyPhoto.startSlideshow();
528
+
529
+ settings.changepicturecallback(); // Callback!
530
+
531
+ pp_open = true;
532
+ });
533
+
534
+ _insert_gallery();
535
+ };
536
+
537
+ /**
538
+ * Hide the content...DUH!
539
+ */
540
+ function _hideContent(callback){
541
+ // Fade out the current picture
542
+ $pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');
543
+ $pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){
544
+ $('.pp_loaderIcon').show();
545
+
546
+ callback();
547
+ });
548
+ };
549
+
550
+ /**
551
+ * Check the item position in the gallery array, hide or show the navigation links
552
+ * @param setCount {integer} The total number of items in the set
553
+ */
554
+ function _checkPosition(setCount){
555
+ (setCount > 1) ? $('.pp_nav').show() : $('.pp_nav').hide(); // Hide the bottom nav if it's not a set.
556
+ };
557
+
558
+ /**
559
+ * Resize the item dimensions if it's bigger than the viewport
560
+ * @param width {integer} Width of the item to be opened
561
+ * @param height {integer} Height of the item to be opened
562
+ * @return An array containin the "fitted" dimensions
563
+ */
564
+ function _fitToViewport(width,height){
565
+ resized = false;
566
+
567
+ _getDimensions(width,height);
568
+
569
+ // Define them in case there's no resize needed
570
+ imageWidth = width, imageHeight = height;
571
+
572
+ if( ((pp_containerWidth > windowWidth) || (pp_containerHeight > windowHeight)) && doresize && settings.allow_resize && !percentBased) {
573
+ resized = true, fitting = false;
574
+
575
+ while (!fitting){
576
+ if((pp_containerWidth > windowWidth)){
577
+ imageWidth = (windowWidth - 200);
578
+ imageHeight = (height/width) * imageWidth;
579
+ }else if((pp_containerHeight > windowHeight)){
580
+ imageHeight = (windowHeight - 200);
581
+ imageWidth = (width/height) * imageHeight;
582
+ }else{
583
+ fitting = true;
584
+ };
585
+
586
+ pp_containerHeight = imageHeight, pp_containerWidth = imageWidth;
587
+ };
588
+
589
+ _getDimensions(imageWidth,imageHeight);
590
+
591
+ if((pp_containerWidth > windowWidth) || (pp_containerHeight > windowHeight)){
592
+ _fitToViewport(pp_containerWidth,pp_containerHeight)
593
+ };
594
+ };
595
+
596
+ return {
597
+ width:Math.floor(imageWidth),
598
+ height:Math.floor(imageHeight),
599
+ containerHeight:Math.floor(pp_containerHeight),
600
+ containerWidth:Math.floor(pp_containerWidth) + (settings.horizontal_padding * 2),
601
+ contentHeight:Math.floor(pp_contentHeight),
602
+ contentWidth:Math.floor(pp_contentWidth),
603
+ resized:resized
604
+ };
605
+ };
606
+
607
+ /**
608
+ * Get the containers dimensions according to the item size
609
+ * @param width {integer} Width of the item to be opened
610
+ * @param height {integer} Height of the item to be opened
611
+ */
612
+ function _getDimensions(width,height){
613
+ width = parseFloat(width);
614
+ height = parseFloat(height);
615
+
616
+ // Get the details height, to do so, I need to clone it since it's invisible
617
+ $pp_details = $pp_pic_holder.find('.pp_details');
618
+ $pp_details.width(width);
619
+ detailsHeight = parseFloat($pp_details.css('marginTop')) + parseFloat($pp_details.css('marginBottom'));
620
+
621
+ $pp_details = $pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({
622
+ 'position':'absolute',
623
+ 'top':-10000
624
+ });
625
+ detailsHeight += $pp_details.height();
626
+ detailsHeight = (detailsHeight <= 34) ? 36 : detailsHeight; // Min-height for the details
627
+ if($.browser.msie && $.browser.version==7) detailsHeight+=8;
628
+ $pp_details.remove();
629
+
630
+ // Get the titles height, to do so, I need to clone it since it's invisible
631
+ $pp_title = $pp_pic_holder.find('.ppt');
632
+ $pp_title.width(width);
633
+ titleHeight = parseFloat($pp_title.css('marginTop')) + parseFloat($pp_title.css('marginBottom'));
634
+ $pp_title = $pp_title.clone().appendTo($('body')).css({
635
+ 'position':'absolute',
636
+ 'top':-10000
637
+ });
638
+ titleHeight += $pp_title.height();
639
+ $pp_title.remove();
640
+
641
+ // Get the container size, to resize the holder to the right dimensions
642
+ pp_contentHeight = height + detailsHeight;
643
+ pp_contentWidth = width;
644
+ pp_containerHeight = pp_contentHeight + titleHeight + $pp_pic_holder.find('.pp_top').height() + $pp_pic_holder.find('.pp_bottom').height();
645
+ pp_containerWidth = width;
646
+ }
647
+
648
+ function _getFileType(itemSrc){
649
+ if (itemSrc.match(/youtube\.com\/watch/i) || itemSrc.match(/youtu\.be/i)) {
650
+ return 'youtube';
651
+ }else if (itemSrc.match(/vimeo\.com/i)) {
652
+ return 'vimeo';
653
+ }else if(itemSrc.match(/\b.mov\b/i)){
654
+ return 'quicktime';
655
+ }else if(itemSrc.match(/\b.swf\b/i)){
656
+ return 'flash';
657
+ }else if(itemSrc.match(/\biframe=true\b/i)){
658
+ return 'iframe';
659
+ }else if(itemSrc.match(/\bajax=true\b/i)){
660
+ return 'ajax';
661
+ }else if(itemSrc.match(/\bcustom=true\b/i)){
662
+ return 'custom';
663
+ }else if(itemSrc.substr(0,1) == '#'){
664
+ return 'inline';
665
+ }else{
666
+ return 'image';
667
+ };
668
+ };
669
+
670
+ function _center_overlay(){
671
+ if(doresize && typeof $pp_pic_holder != 'undefined') {
672
+ scroll_pos = _get_scroll();
673
+ contentHeight = $pp_pic_holder.height(), contentwidth = $pp_pic_holder.width();
674
+
675
+ projectedTop = (windowHeight/2) + scroll_pos['scrollTop'] - (contentHeight/2);
676
+ if(projectedTop < 0) projectedTop = 0;
677
+
678
+ if(contentHeight > windowHeight)
679
+ return;
680
+
681
+ $pp_pic_holder.css({
682
+ 'top': projectedTop,
683
+ 'left': (windowWidth/2) + scroll_pos['scrollLeft'] - (contentwidth/2)
684
+ });
685
+ };
686
+ };
687
+
688
+ function _get_scroll(){
689
+ if (self.pageYOffset) {
690
+ return {scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};
691
+ } else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict
692
+ return {scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};
693
+ } else if (document.body) {// all other Explorers
694
+ return {scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft};
695
+ };
696
+ };
697
+
698
+ function _resize_overlay() {
699
+ windowHeight = $(window).height(), windowWidth = $(window).width();
700
+
701
+ if(typeof $pp_overlay != "undefined") $pp_overlay.height($(document).height()).width(windowWidth);
702
+ };
703
+
704
+ function _insert_gallery(){
705
+ if(isSet && settings.overlay_gallery && _getFileType(pp_images[set_position])=="image" && (settings.ie6_fallback && !($.browser.msie && parseInt($.browser.version) == 6))) {
706
+ itemWidth = 52+5; // 52 beign the thumb width, 5 being the right margin.
707
+ navWidth = (settings.theme == "facebook" || settings.theme == "pp_default") ? 50 : 30; // Define the arrow width depending on the theme
708
+
709
+ itemsPerPage = Math.floor((pp_dimensions['containerWidth'] - 100 - navWidth) / itemWidth);
710
+ itemsPerPage = (itemsPerPage < pp_images.length) ? itemsPerPage : pp_images.length;
711
+ totalPage = Math.ceil(pp_images.length / itemsPerPage) - 1;
712
+
713
+ // Hide the nav in the case there's no need for links
714
+ if(totalPage == 0){
715
+ navWidth = 0; // No nav means no width!
716
+ $pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').hide();
717
+ }else{
718
+ $pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').show();
719
+ };
720
+
721
+ galleryWidth = itemsPerPage * itemWidth;
722
+ fullGalleryWidth = pp_images.length * itemWidth;
723
+
724
+ // Set the proper width to the gallery items
725
+ $pp_gallery
726
+ .css('margin-left',-((galleryWidth/2) + (navWidth/2)))
727
+ .find('div:first').width(galleryWidth+5)
728
+ .find('ul').width(fullGalleryWidth)
729
+ .find('li.selected').removeClass('selected');
730
+
731
+ goToPage = (Math.floor(set_position/itemsPerPage) < totalPage) ? Math.floor(set_position/itemsPerPage) : totalPage;
732
+
733
+ $.prettyPhoto.changeGalleryPage(goToPage);
734
+
735
+ $pp_gallery_li.filter(':eq('+set_position+')').addClass('selected');
736
+ }else{
737
+ $pp_pic_holder.find('.pp_content').unbind('mouseenter mouseleave');
738
+ // $pp_gallery.hide();
739
+ }
740
+ }
741
+
742
+ function _build_overlay(caller){
743
+ // Inject Social Tool markup into General markup
744
+ if(settings.social_tools)
745
+ facebook_like_link = settings.social_tools.replace('{location_href}', encodeURIComponent(location.href));
746
+
747
+ settings.markup=settings.markup.replace('{pp_social}',(settings.social_tools)?facebook_like_link:'');
748
+
749
+ $('body').append(settings.markup); // Inject the markup
750
+
751
+ $pp_pic_holder = $('.pp_pic_holder') , $ppt = $('.ppt'), $pp_overlay = $('div.pp_overlay'); // Set my global selectors
752
+
753
+ // Inject the inline gallery!
754
+ if(isSet && settings.overlay_gallery) {
755
+ currentGalleryPage = 0;
756
+ toInject = "";
757
+ for (var i=0; i < pp_images.length; i++) {
758
+ if(!pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)){
759
+ classname = 'default';
760
+ img_src = '';
761
+ }else{
762
+ classname = '';
763
+ img_src = pp_images[i];
764
+ }
765
+ toInject += "<li class='"+classname+"'><a href='#'><img src='" + img_src + "' width='50' alt='' /></a></li>";
766
+ };
767
+
768
+ toInject = settings.gallery_markup.replace(/{gallery}/g,toInject);
769
+
770
+ $pp_pic_holder.find('#pp_full_res').after(toInject);
771
+
772
+ $pp_gallery = $('.pp_pic_holder .pp_gallery'), $pp_gallery_li = $pp_gallery.find('li'); // Set the gallery selectors
773
+
774
+ $pp_gallery.find('.pp_arrow_next').click(function(){
775
+ $.prettyPhoto.changeGalleryPage('next');
776
+ $.prettyPhoto.stopSlideshow();
777
+ return false;
778
+ });
779
+
780
+ $pp_gallery.find('.pp_arrow_previous').click(function(){
781
+ $.prettyPhoto.changeGalleryPage('previous');
782
+ $.prettyPhoto.stopSlideshow();
783
+ return false;
784
+ });
785
+
786
+ $pp_pic_holder.find('.pp_content').hover(
787
+ function(){
788
+ $pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();
789
+ },
790
+ function(){
791
+ $pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();
792
+ });
793
+
794
+ itemWidth = 52+5; // 52 beign the thumb width, 5 being the right margin.
795
+ $pp_gallery_li.each(function(i){
796
+ $(this)
797
+ .find('a')
798
+ .click(function(){
799
+ $.prettyPhoto.changePage(i);
800
+ $.prettyPhoto.stopSlideshow();
801
+ return false;
802
+ });
803
+ });
804
+ };
805
+
806
+
807
+ // Inject the play/pause if it's a slideshow
808
+ if(settings.slideshow){
809
+ $pp_pic_holder.find('.pp_nav').prepend('<a href="#" class="pp_play">Play</a>')
810
+ $pp_pic_holder.find('.pp_nav .pp_play').click(function(){
811
+ $.prettyPhoto.startSlideshow();
812
+ return false;
813
+ });
814
+ }
815
+
816
+ $pp_pic_holder.attr('class','pp_pic_holder ' + settings.theme); // Set the proper theme
817
+
818
+ $pp_overlay
819
+ .css({
820
+ 'opacity':0,
821
+ 'height':$(document).height(),
822
+ 'width':$(window).width()
823
+ })
824
+ .bind('click',function(){
825
+ if(!settings.modal) $.prettyPhoto.close();
826
+ });
827
+
828
+ $('a.pp_close').bind('click',function(){ $.prettyPhoto.close(); return false; });
829
+
830
+ $('a.pp_expand').bind('click',function(e){
831
+ // Expand the image
832
+ if($(this).hasClass('pp_expand')){
833
+ $(this).removeClass('pp_expand').addClass('pp_contract');
834
+ doresize = false;
835
+ }else{
836
+ $(this).removeClass('pp_contract').addClass('pp_expand');
837
+ doresize = true;
838
+ };
839
+
840
+ _hideContent(function(){ $.prettyPhoto.open(); });
841
+
842
+ return false;
843
+ });
844
+
845
+ $pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){
846
+ $.prettyPhoto.changePage('previous');
847
+ $.prettyPhoto.stopSlideshow();
848
+ return false;
849
+ });
850
+
851
+ $pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){
852
+ $.prettyPhoto.changePage('next');
853
+ $.prettyPhoto.stopSlideshow();
854
+ return false;
855
+ });
856
+
857
+ _center_overlay(); // Center it
858
+ };
859
+
860
+ if(!pp_alreadyInitialized && getHashtag()){
861
+ pp_alreadyInitialized = true;
862
+
863
+ // Grab the rel index to trigger the click on the correct element
864
+ hashIndex = getHashtag();
865
+ hashRel = hashIndex;
866
+ hashIndex = hashIndex.substring(hashIndex.indexOf('/')+1,hashIndex.length-1);
867
+ hashRel = hashRel.substring(0,hashRel.indexOf('/'));
868
+
869
+ // Little timeout to make sure all the prettyPhoto initialize scripts has been run.
870
+ // Useful in the event the page contain several init scripts.
871
+ setTimeout(function(){ $("a[rel^='"+hashRel+"']:eq("+hashIndex+")").trigger('click'); },50);
872
+ }
873
+
874
+ return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize); // Return the jQuery object for chaining. The unbind method is used to avoid click conflict when the plugin is called more than once
875
+ };
876
+
877
+ function getHashtag(){
878
+ url = location.href;
879
+ hashtag = (url.indexOf('#!') != -1) ? decodeURI(url.substring(url.indexOf('#!')+2,url.length)) : false;
880
+ return hashtag;
881
+ };
882
+
883
+ function setHashtag(){
884
+ if(typeof theRel == 'undefined') return; // theRel is set on normal calls, it's impossible to deeplink using the API
885
+ location.hash = '!' + theRel + '/'+rel_index+'/';
886
+ };
887
+
888
+ function clearHashtag(){
889
+ // Clear the hashtag only if it was set by prettyPhoto
890
+ url = location.href;
891
+ hashtag = (url.indexOf('#!prettyPhoto')) ? true : false;
892
+ if(hashtag) location.hash = "!prettyPhoto";
893
+ }
894
+
895
+ function getParam(name,url){
896
+ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
897
+ var regexS = "[\\?&]"+name+"=([^&#]*)";
898
+ var regex = new RegExp( regexS );
899
+ var results = regex.exec( url );
900
+ return ( results == null ) ? "" : results[1];
901
+ }
902
+
903
+ })(jQuery);
904
+
905
+ var pp_alreadyInitialized = false; // Used for the deep linking to make sure not to call the same function several times.
js/lightboxes/prettyPhoto/js/jquery.prettyPhoto.min.js ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ------------------------------------------------------------------------
2
+ Class: prettyPhoto
3
+ Use: Lightbox clone for jQuery
4
+ Author: Stephane Caron (http://www.no-margin-for-errors.com)
5
+ Version: 3.1.3
6
+ ------------------------------------------------------------------------- */
7
+
8
+ (function($){$.prettyPhoto={version:'3.1.3'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({animation_speed:'fast',slideshow:5000,autoplay_slideshow:false,opacity:0.80,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:'/',theme:'pp_default',horizontal_padding:20,hideflash:false,wmode:'opaque',autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'<div class="pp_pic_holder"> \
9
+ <div class="ppt">&nbsp;</div> \
10
+ <div class="pp_top"> \
11
+ <div class="pp_left"></div> \
12
+ <div class="pp_middle"></div> \
13
+ <div class="pp_right"></div> \
14
+ </div> \
15
+ <div class="pp_content_container"> \
16
+ <div class="pp_left"> \
17
+ <div class="pp_right"> \
18
+ <div class="pp_content"> \
19
+ <div class="pp_loaderIcon"></div> \
20
+ <div class="pp_fade"> \
21
+ <a href="#" class="pp_expand" title="Expand the image">Expand</a> \
22
+ <div class="pp_hoverContainer"> \
23
+ <a class="pp_next" href="#">next</a> \
24
+ <a class="pp_previous" href="#">previous</a> \
25
+ </div> \
26
+ <div id="pp_full_res"></div> \
27
+ <div class="pp_details"> \
28
+ <div class="pp_nav"> \
29
+ <a href="#" class="pp_arrow_previous">Previous</a> \
30
+ <p class="currentTextHolder">0/0</p> \
31
+ <a href="#" class="pp_arrow_next">Next</a> \
32
+ </div> \
33
+ <p class="pp_description"></p> \
34
+ <div class="pp_social">{pp_social}</div> \
35
+ <a class="pp_close" href="#">Close</a> \
36
+ </div> \
37
+ </div> \
38
+ </div> \
39
+ </div> \
40
+ </div> \
41
+ </div> \
42
+ <div class="pp_bottom"> \
43
+ <div class="pp_left"></div> \
44
+ <div class="pp_middle"></div> \
45
+ <div class="pp_right"></div> \
46
+ </div> \
47
+ </div> \
48
+ <div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"> \
49
+ <a href="#" class="pp_arrow_previous">Previous</a> \
50
+ <div> \
51
+ <ul> \
52
+ {gallery} \
53
+ </ul> \
54
+ </div> \
55
+ <a href="#" class="pp_arrow_next">Next</a> \
56
+ </div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:'',social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'},pp_settings);var matchedObjects=this,percentBased=false,pp_dimensions,pp_open,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,windowHeight=$(window).height(),windowWidth=$(window).width(),pp_slideshow;doresize=true,scroll_pos=_get_scroll();$(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){_center_overlay();_resize_overlay();});if(pp_settings.keyboard_shortcuts){$(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){if(typeof $pp_pic_holder!='undefined'){if($pp_pic_holder.is(':visible')){switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');e.preventDefault();break;case 39:$.prettyPhoto.changePage('next');e.preventDefault();break;case 27:if(!settings.modal)
57
+ $.prettyPhoto.close();e.preventDefault();break;};};};});};$.prettyPhoto.initialize=function(){settings=pp_settings;if(settings.theme=='pp_default')settings.horizontal_padding=16;if(settings.ie6_fallback&&$.browser.msie&&parseInt($.browser.version)==6)settings.theme="light_square";theRel=$(this).attr('rel');galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return $(n).attr('href');}):$.makeArray($(this).attr('href'));pp_titles=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).find('img').attr('alt'))?$(n).find('img').attr('alt'):"";}):$.makeArray($(this).find('img').attr('alt'));pp_descriptions=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).attr('title'))?$(n).attr('title'):"";}):$.makeArray($(this).attr('title'));if(pp_images.length>30)settings.overlay_gallery=false;set_position=jQuery.inArray($(this).attr('href'),pp_images);rel_index=(isSet)?set_position:$("a[rel^='"+theRel+"']").index($(this));_build_overlay(this);if(settings.allow_resize)
58
+ $(window).bind('scroll.prettyphoto',function(){_center_overlay();});$.prettyPhoto.open();return false;}
59
+ $.prettyPhoto.open=function(event){if(typeof settings=="undefined"){settings=pp_settings;if($.browser.msie&&$.browser.version==6)settings.theme="light_square";pp_images=$.makeArray(arguments[0]);pp_titles=(arguments[1])?$.makeArray(arguments[1]):$.makeArray("");pp_descriptions=(arguments[2])?$.makeArray(arguments[2]):$.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=0;_build_overlay(event.target);}
60
+ if($.browser.msie&&$.browser.version==6)$('select').css('visibility','hidden');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden');_checkPosition($(pp_images).size());$('.pp_loaderIcon').show();if(settings.deeplinking)
61
+ setHashtag();if(settings.social_tools){facebook_like_link=settings.social_tools.replace('{location_href}',encodeURIComponent(location.href));$pp_pic_holder.find('.pp_social').html(facebook_like_link);}
62
+ if($ppt.is(':hidden'))$ppt.css('opacity',0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find('.currentTextHolder').text((set_position+1)+settings.counter_separator_label+$(pp_images).size());if(pp_descriptions[set_position]!=""){$pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));}else{$pp_pic_holder.find('.pp_description').hide();}
63
+ movie_width=(parseFloat(getParam('width',pp_images[set_position])))?getParam('width',pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(getParam('height',pp_images[set_position])))?getParam('height',pp_images[set_position]):settings.default_height.toString();percentBased=false;if(movie_height.indexOf('%')!=-1){movie_height=parseFloat(($(window).height()*parseFloat(movie_height)/100)-150);percentBased=true;}
64
+ if(movie_width.indexOf('%')!=-1){movie_width=parseFloat(($(window).width()*parseFloat(movie_width)/100)-150);percentBased=true;}
65
+ $pp_pic_holder.fadeIn(function(){(settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined")?$ppt.html(unescape(pp_titles[set_position])):$ppt.html('&nbsp;');imgPreloader="";skipInjection=false;switch(_getFileType(pp_images[set_position])){case'image':imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position<$(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image();if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find('#pp_full_res')[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){pp_dimensions=_fitToViewport(imgPreloader.width,imgPreloader.height);_showContent();};imgPreloader.onerror=function(){alert('Image cannot be loaded. Make sure the path is correct and image exist.');$.prettyPhoto.close();};imgPreloader.src=pp_images[set_position];break;case'youtube':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=getParam('v',pp_images[set_position]);if(movie_id==""){movie_id=pp_images[set_position].split('youtu.be/');movie_id=movie_id[1];if(movie_id.indexOf('?')>0)
66
+ movie_id=movie_id.substr(0,movie_id.indexOf('?'));if(movie_id.indexOf('&')>0)
67
+ movie_id=movie_id.substr(0,movie_id.indexOf('&'));}
68
+ movie='http://www.youtube.com/embed/'+movie_id;(getParam('rel',pp_images[set_position]))?movie+="?rel="+getParam('rel',pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case'vimeo':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=pp_images[set_position];var regExp=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var match=movie_id.match(regExp);movie='http://player.vimeo.com/video/'+match[2]+'?title=0&amp;byline=0&amp;portrait=0';if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=pp_dimensions['width']+'/embed/?moog_width='+pp_dimensions['width'];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,movie);break;case'quicktime':pp_dimensions=_fitToViewport(movie_width,movie_height);pp_dimensions['height']+=15;pp_dimensions['contentHeight']+=15;pp_dimensions['containerHeight']+=15;toInject=settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case'flash':pp_dimensions=_fitToViewport(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf('flashvars')+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf('?'));toInject=settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);break;case'iframe':pp_dimensions=_fitToViewport(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf('iframe')-1);toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,frame_url);break;case'ajax':doresize=false;pp_dimensions=_fitToViewport(movie_width,movie_height);doresize=true;skipInjection=true;$.get(pp_images[set_position],function(responseHTML){toInject=settings.inline_markup.replace(/{content}/g,responseHTML);$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();});break;case'custom':pp_dimensions=_fitToViewport(movie_width,movie_height);toInject=settings.custom_markup;break;case'inline':myClone=$(pp_images[set_position]).clone().append('<br clear="all" />').css({'width':settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo($('body')).show();doresize=false;pp_dimensions=_fitToViewport($(myClone).width(),$(myClone).height());doresize=true;$(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html());break;};if(!imgPreloader&&!skipInjection){$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();};});return false;};$.prettyPhoto.changePage=function(direction){currentGalleryPage=0;if(direction=='previous'){set_position--;if(set_position<0)set_position=$(pp_images).size()-1;}else if(direction=='next'){set_position++;if(set_position>$(pp_images).size()-1)set_position=0;}else{set_position=direction;};rel_index=set_position;if(!doresize)doresize=true;$('.pp_contract').removeClass('pp_contract').addClass('pp_expand');_hideContent(function(){$.prettyPhoto.open();});};$.prettyPhoto.changeGalleryPage=function(direction){if(direction=='next'){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0;}else if(direction=='previous'){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage;}else{currentGalleryPage=direction;};slide_speed=(direction=='next'||direction=='previous')?settings.animation_speed:0;slide_to=currentGalleryPage*(itemsPerPage*itemWidth);$pp_gallery.find('ul').animate({left:-slide_to},slide_speed);};$.prettyPhoto.startSlideshow=function(){if(typeof pp_slideshow=='undefined'){$pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){$.prettyPhoto.stopSlideshow();return false;});pp_slideshow=setInterval($.prettyPhoto.startSlideshow,settings.slideshow);}else{$.prettyPhoto.changePage('next');};}
69
+ $.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});clearInterval(pp_slideshow);pp_slideshow=undefined;}
70
+ $.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;$.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){$(this).remove();});$pp_overlay.fadeOut(settings.animation_speed,function(){if($.browser.msie&&$.browser.version==6)$('select').css('visibility','visible');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible');$(this).remove();$(window).unbind('scroll.prettyphoto');clearHashtag();settings.callback();doresize=true;pp_open=false;delete settings;});};function _showContent(){$('.pp_loaderIcon').hide();projectedTop=scroll_pos['scrollTop']+((windowHeight/2)-(pp_dimensions['containerHeight']/2));if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find('.pp_content').animate({height:pp_dimensions['contentHeight'],width:pp_dimensions['contentWidth']},settings.animation_speed);$pp_pic_holder.animate({'top':projectedTop,'left':(windowWidth/2)-(pp_dimensions['containerWidth']/2),width:pp_dimensions['containerWidth']},settings.animation_speed,function(){$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']);$pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed);if(isSet&&_getFileType(pp_images[set_position])=="image"){$pp_pic_holder.find('.pp_hoverContainer').show();}else{$pp_pic_holder.find('.pp_hoverContainer').hide();}
71
+ if(pp_dimensions['resized']){$('a.pp_expand,a.pp_contract').show();}else{$('a.pp_expand').hide();}
72
+ if(settings.autoplay_slideshow&&!pp_slideshow&&!pp_open)$.prettyPhoto.startSlideshow();settings.changepicturecallback();pp_open=true;});_insert_gallery();};function _hideContent(callback){$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');$pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){$('.pp_loaderIcon').show();callback();});};function _checkPosition(setCount){(setCount>1)?$('.pp_nav').show():$('.pp_nav').hide();};function _fitToViewport(width,height){resized=false;_getDimensions(width,height);imageWidth=width,imageHeight=height;if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allow_resize&&!percentBased){resized=true,fitting=false;while(!fitting){if((pp_containerWidth>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(height/width)*imageWidth;}else if((pp_containerHeight>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(width/height)*imageHeight;}else{fitting=true;};pp_containerHeight=imageHeight,pp_containerWidth=imageWidth;};_getDimensions(imageWidth,imageHeight);if((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight)){_fitToViewport(pp_containerWidth,pp_containerHeight)};};return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(pp_containerHeight),containerWidth:Math.floor(pp_containerWidth)+(settings.horizontal_padding*2),contentHeight:Math.floor(pp_contentHeight),contentWidth:Math.floor(pp_contentWidth),resized:resized};};function _getDimensions(width,height){width=parseFloat(width);height=parseFloat(height);$pp_details=$pp_pic_holder.find('.pp_details');$pp_details.width(width);detailsHeight=parseFloat($pp_details.css('marginTop'))+parseFloat($pp_details.css('marginBottom'));$pp_details=$pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({'position':'absolute','top':-10000});detailsHeight+=$pp_details.height();detailsHeight=(detailsHeight<=34)?36:detailsHeight;if($.browser.msie&&$.browser.version==7)detailsHeight+=8;$pp_details.remove();$pp_title=$pp_pic_holder.find('.ppt');$pp_title.width(width);titleHeight=parseFloat($pp_title.css('marginTop'))+parseFloat($pp_title.css('marginBottom'));$pp_title=$pp_title.clone().appendTo($('body')).css({'position':'absolute','top':-10000});titleHeight+=$pp_title.height();$pp_title.remove();pp_contentHeight=height+detailsHeight;pp_contentWidth=width;pp_containerHeight=pp_contentHeight+titleHeight+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width;}
73
+ function _getFileType(itemSrc){if(itemSrc.match(/youtube\.com\/watch/i)||itemSrc.match(/youtu\.be/i)){return'youtube';}else if(itemSrc.match(/vimeo\.com/i)){return'vimeo';}else if(itemSrc.match(/\b.mov\b/i)){return'quicktime';}else if(itemSrc.match(/\b.swf\b/i)){return'flash';}else if(itemSrc.match(/\biframe=true\b/i)){return'iframe';}else if(itemSrc.match(/\bajax=true\b/i)){return'ajax';}else if(itemSrc.match(/\bcustom=true\b/i)){return'custom';}else if(itemSrc.substr(0,1)=='#'){return'inline';}else{return'image';};};function _center_overlay(){if(doresize&&typeof $pp_pic_holder!='undefined'){scroll_pos=_get_scroll();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(windowHeight/2)+scroll_pos['scrollTop']-(contentHeight/2);if(projectedTop<0)projectedTop=0;if(contentHeight>windowHeight)
74
+ return;$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+scroll_pos['scrollLeft']-(contentwidth/2)});};};function _get_scroll(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};}else if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft};};};function _resize_overlay(){windowHeight=$(window).height(),windowWidth=$(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height($(document).height()).width(windowWidth);};function _insert_gallery(){if(isSet&&settings.overlay_gallery&&_getFileType(pp_images[set_position])=="image"&&(settings.ie6_fallback&&!($.browser.msie&&parseInt($.browser.version)==6))){itemWidth=52+5;navWidth=(settings.theme=="facebook"||settings.theme=="pp_default")?50:30;itemsPerPage=Math.floor((pp_dimensions['containerWidth']-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage<pp_images.length)?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').hide();}else{$pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').show();};galleryWidth=itemsPerPage*itemWidth;fullGalleryWidth=pp_images.length*itemWidth;$pp_gallery.css('margin-left',-((galleryWidth/2)+(navWidth/2))).find('div:first').width(galleryWidth+5).find('ul').width(fullGalleryWidth).find('li.selected').removeClass('selected');goToPage=(Math.floor(set_position/itemsPerPage)<totalPage)?Math.floor(set_position/itemsPerPage):totalPage;$.prettyPhoto.changeGalleryPage(goToPage);$pp_gallery_li.filter(':eq('+set_position+')').addClass('selected');}else{$pp_pic_holder.find('.pp_content').unbind('mouseenter mouseleave');}}
75
+ function _build_overlay(caller){if(settings.social_tools)
76
+ facebook_like_link=settings.social_tools.replace('{location_href}',encodeURIComponent(location.href));settings.markup=settings.markup.replace('{pp_social}',(settings.social_tools)?facebook_like_link:'');$('body').append(settings.markup);$pp_pic_holder=$('.pp_pic_holder'),$ppt=$('.ppt'),$pp_overlay=$('div.pp_overlay');if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var i=0;i<pp_images.length;i++){if(!pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)){classname='default';img_src='';}else{classname='';img_src=pp_images[i];}
77
+ toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>";};toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find('#pp_full_res').after(toInject);$pp_gallery=$('.pp_pic_holder .pp_gallery'),$pp_gallery_li=$pp_gallery.find('li');$pp_gallery.find('.pp_arrow_next').click(function(){$.prettyPhoto.changeGalleryPage('next');$.prettyPhoto.stopSlideshow();return false;});$pp_gallery.find('.pp_arrow_previous').click(function(){$.prettyPhoto.changeGalleryPage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_content').hover(function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();},function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();});itemWidth=52+5;$pp_gallery_li.each(function(i){$(this).find('a').click(function(){$.prettyPhoto.changePage(i);$.prettyPhoto.stopSlideshow();return false;});});};if(settings.slideshow){$pp_pic_holder.find('.pp_nav').prepend('<a href="#" class="pp_play">Play</a>')
78
+ $pp_pic_holder.find('.pp_nav .pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});}
79
+ $pp_pic_holder.attr('class','pp_pic_holder '+settings.theme);$pp_overlay.css({'opacity':0,'height':$(document).height(),'width':$(window).width()}).bind('click',function(){if(!settings.modal)$.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});$('a.pp_expand').bind('click',function(e){if($(this).hasClass('pp_expand')){$(this).removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$(this).removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent(function(){$.prettyPhoto.open();});return false;});$pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');$.prettyPhoto.stopSlideshow();return false;});_center_overlay();};if(!pp_alreadyInitialized&&getHashtag()){pp_alreadyInitialized=true;hashIndex=getHashtag();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf('/')+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf('/'));setTimeout(function(){$("a[rel^='"+hashRel+"']:eq("+hashIndex+")").trigger('click');},50);}
80
+ return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize);};function getHashtag(){url=location.href;hashtag=(url.indexOf('#!')!=-1)?decodeURI(url.substring(url.indexOf('#!')+2,url.length)):false;return hashtag;};function setHashtag(){if(typeof theRel=='undefined')return;location.hash='!'+theRel+'/'+rel_index+'/';};function clearHashtag(){url=location.href;hashtag=(url.indexOf('#!prettyPhoto'))?true:false;if(hashtag)location.hash="!prettyPhoto";}
81
+ function getParam(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);return(results==null)?"":results[1];}})(jQuery);var pp_alreadyInitialized=false;
js/lightboxes/prettyPhoto/xhr_response.html ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <h1>This is an XHR Response</h1>
2
+ <div id="my_content">
3
+ <p>This is sample content brought in.</p>
4
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
5
+ </div>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mpycho_Jquery_Lightboxes</name>
4
- <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -9,14 +9,20 @@
9
  <summary>jQuery lightboxes is the collection/implementation of jQuery Lightbox for Magento Media Gallery</summary>
10
  <description>jQuery lightboxes is the collection/implementation of jQuery Lightbox for Magento Media Gallery. Moreover consider it as an one stop search for jQuery Lightbox for magento.&#xD;
11
  Currently it includes the FancyBox, PiroBox and Lightbox Clone one. Still more to come in newer versions.</description>
12
- <notes>Version 1.0.3 - 1.1.0&#xD;
13
- - Code refinement.&#xD;
14
- - Fixing of popup image size so that it could take the full size when no size is mentioned.&#xD;
15
- - Separated the jquery inclusion, lightbox inclusion</notes>
 
 
 
 
 
 
16
  <authors><author><name>MagePsycho</name><user>auto-converted</user><email>rajen_k_bhtt@hotmail.com</email></author></authors>
17
- <date>2011-10-24</date>
18
- <time>14:53:08</time>
19
- <contents><target name="magelocal"><dir name="MagentoPycho"><dir name="Lightboxes"><dir name="Block"><dir name="Config"><dir name="Fancybox"><file name="Info.php" hash="bef83b61cb09194b48ed06def55cf29e"/></dir><dir name="Lightboxclone"><file name="Info.php" hash="4fd81a582008fd5a2ba3dfbcc1d8031c"/></dir><dir name="Lightboxes"><file name="Confliction.php" hash="389e8099c7ec58543ade0f0a0e545dc9"/></dir><dir name="Pirobox"><file name="Info.php" hash="ad15c2f8bf20092c2c01cb803f7651b7"/></dir></dir><dir name="System"><dir name="Config"><file name="Info.php" hash="7d5985f92831f66c1a11e7e883074435"/></dir></dir><file name="Lightboxes.php" hash="3e228c2ed74603a3c2827b619d3e900d"/><file name="Media.php" hash="3c99da27fbd88f31e73bfe07ed540c40"/></dir><dir name="Helper"><file name="Data.php" hash="20048d8a2a138ff96522713a4d22cd25"/></dir><dir name="Model"><dir name="Config"><dir name="Fancybox"><file name="Easings.php" hash="9ab1ca369c71d98bf2d1cf10f30638ba"/><file name="Opacities.php" hash="3268daa65a3a6655142ce316162fade0"/><file name="Scrollings.php" hash="6d9af6d0e7553b8acb9fcf6952b3dcac"/><file name="Speeds.php" hash="9760c7dee890b9efaa4da6d9abe0046d"/><file name="Titlepositions.php" hash="ef92418f4990b6ed8b23ac6c1109d17a"/><file name="Transitions.php" hash="b49cb8600c061f08285833ccafb935a4"/></dir><dir name="Lightboxclone"><file name="Opacities.php" hash="3f6c032d447f92d26aaffdfb3d92ceff"/></dir><dir name="Pirobox"><file name="Bgalphas.php" hash="93012d23890ba0b90ee70ca7279f4a0c"/><file name="Themes.php" hash="022c743b0c09f9a8c843f920785531fb"/></dir><file name="Inclusiontypes.php" hash="83482867f82c0fd9688c2acb81ee701d"/><file name="Jquerytypes.php" hash="f699c7332c0c7ddfd3a8b2e85a339b2e"/><file name="Lightboxtypes.php" hash="bcdc24fddc0b754e4c44a2a0db7cb1f5"/></dir><file name="Lightboxes.php" hash="8acc4715ff262e6511e25a31d7988c1b"/></dir><dir name="controllers"><file name="IndexController.php" hash="3b1b2d0b3d9d312b5401e55487d10020"/></dir><dir name="etc"><file name="adminhtml.xml" hash="822babae1508e248aa5c6098f8f54a3b"/><file name="config.xml" hash="f15e894c3147e93e49957eb1aed917ff"/><file name="system.xml" hash="85cd8eb76c9848f71cd0cfb4d4b715c2"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="lightboxes.xml" hash="ef76a1040aebfd58f7b1b3e9d44dabbf"/></dir><dir name="template"><dir name="lightboxes"><file name="head.phtml" hash="68ec84686244aa2956c29c7f40a00beb"/><file name="jquery_inclusion.phtml" hash="4d76fca7dd17af03892e926deeee31f5"/><file name="lightboxes_inclusion.phtml" hash="3bc8b2e532bb2cc824c3ee3d71412b54"/><file name="lightboxes_initialization.phtml" hash="1ff7d2de29cea69e70392246083edf7e"/><file name="media.phtml" hash="658c1b154ed20126f6820df7d0ed0092"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="lightboxes"><dir name="fancybox"><file name="Thumbs.db" hash="5dd66d89b9e7a196d476c3ac8f9081cf"/><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><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="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="11e57e492ee0311540967cc7a1e6e3e2"/><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"/></dir><dir name="jQuery"><dir name="1.4.3"><file name="jquery.min.js" hash="e4958bd2e32d9fcd6115a585ed17a9cc"/></dir></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"><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="c_l.png" hash="47e9b270c4fa90d0f230162483a78ff9"/><file name="c_r.png" hash="c859f115cde4306a39b4a8f6cee2f627"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><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="c_l.png" hash="41c77a81ecf1df77eddb9f83d7f6ea83"/><file name="c_r.png" hash="882771577ec629f4aaaf9fa30a332b74"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><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="c_l.png" hash="d303eaa0cf6efa163c3e11089f7a1dfa"/><file name="c_r.png" hash="87d1bdc4346f93c62a89162971f35451"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><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="c_l.png" hash="dfbb93a992ade9d582cc11bd3b1ca524"/><file name="c_r.png" hash="1ea958d53920f49c077b6257b7d6d32c"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><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="c_l.png" hash="d87b25d657460807de2496133c265c1b"/><file name="c_r.png" hash="3d5eb49f2f508f103dd5d28980104bc0"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><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><file name="css.css" hash="dd10f3849827f49e3cde3c1e12194e56"/></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><file name="no-conflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MagentoPycho_Lightboxes.xml" hash="4fe2e4bc8867ccd8219e17bb72a18ee8"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies/>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mpycho_Jquery_Lightboxes</name>
4
+ <version>1.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
9
  <summary>jQuery lightboxes is the collection/implementation of jQuery Lightbox for Magento Media Gallery</summary>
10
  <description>jQuery lightboxes is the collection/implementation of jQuery Lightbox for Magento Media Gallery. Moreover consider it as an one stop search for jQuery Lightbox for magento.&#xD;
11
  Currently it includes the FancyBox, PiroBox and Lightbox Clone one. Still more to come in newer versions.</description>
12
+ <notes>Version 1.1.0 - 1.2.0&#xD;
13
+ - Tested for Magento Version 1.6.2.0&#xD;
14
+ - Upgraded jQuery Version (local + Google CDN) to 1.7.1&#xD;
15
+ - Added Option to include Main Image to lightbox gallery of More Views&#xD;
16
+ - Added Option to change the label for &#x2018;More Views&#x2019;&#xD;
17
+ - Upgraded FancyBox to version 1.3.4&#xD;
18
+ - Changed the default settings of FancyBox so that it looks even more sexier&#xD;
19
+ - Added new Lightbox Type: PiroBox Extended (advanced form of Pirobox)&#xD;
20
+ - Added new Lightbox Type: prettyPhoto&#xD;
21
+ - Code Refinement</notes>
22
  <authors><author><name>MagePsycho</name><user>auto-converted</user><email>rajen_k_bhtt@hotmail.com</email></author></authors>
23
+ <date>2012-02-28</date>
24
+ <time>14:01:52</time>
25
+ <contents><target name="magelocal"><dir name="MagentoPycho"><dir name="Lightboxes"><dir name="Block"><dir name="Config"><dir name="Fancybox"><file name="Info.php" hash="ab4e26a91155cf025c1ef89dac504c07"/></dir><dir name="Lightboxclone"><file name="Info.php" hash="8434d13fec3d08a8326baa7b433bdcfa"/></dir><dir name="Lightboxes"><file name="Confliction.php" hash="389e8099c7ec58543ade0f0a0e545dc9"/></dir><dir name="Pirobox"><file name="Info.php" hash="7fac3f99736ab243be5895c5b233f5a2"/></dir><dir name="Piroboxextended"><file name="Info.php" hash="f2b38c42eedd8bea7d0fb15faa05fca5"/></dir><dir name="Prettyphoto"><file name="Info.php" hash="2f3773717ebddbcd72fa416d2bbe5cc0"/></dir><file name="Mainimagesize.php" hash="8dddf4b51552252ea21903056b12f3e3"/><file name="Popupimagesize.php" hash="b38782051312ab0f4999e0706745c12d"/><file name="Thumbnailsize.php" hash="dd445971d191ca93f2483a0533a1e47d"/></dir><dir name="System"><dir name="Config"><file name="Info.php" hash="7d5985f92831f66c1a11e7e883074435"/></dir></dir><file name="Lightboxes.php" hash="3e228c2ed74603a3c2827b619d3e900d"/></dir><dir name="Helper"><file name="Data.php" hash="0279db1bc788eda2bfc04d284b199d30"/></dir><dir name="Model"><dir name="Config"><dir name="Fancybox"><file name="Easings.php" hash="9ab1ca369c71d98bf2d1cf10f30638ba"/><file name="Opacities.php" hash="3268daa65a3a6655142ce316162fade0"/><file name="Scrollings.php" hash="6d9af6d0e7553b8acb9fcf6952b3dcac"/><file name="Speeds.php" hash="9760c7dee890b9efaa4da6d9abe0046d"/><file name="Titlepositions.php" hash="ef92418f4990b6ed8b23ac6c1109d17a"/><file name="Transitions.php" hash="b49cb8600c061f08285833ccafb935a4"/></dir><dir name="Lightboxclone"><file name="Opacities.php" hash="3f6c032d447f92d26aaffdfb3d92ceff"/></dir><dir name="Pirobox"><file name="Bgalphas.php" hash="93012d23890ba0b90ee70ca7279f4a0c"/><file name="Themes.php" hash="022c743b0c09f9a8c843f920785531fb"/></dir><dir name="Piroboxextended"><file name="Bgalphas.php" hash="00cd5a9b4926c4cd225348d5605c350f"/><file name="Speed.php" hash="02f8c5b9fdf61ce4a810659808dda07c"/><file name="Themes.php" hash="ee5bc6dfd8cc78e1910601eced9b55e4"/></dir><dir name="Prettyphoto"><file name="Animationspeed.php" hash="ac0b0a8babc775a0d4bf9ea3ae61b5b1"/><file name="Opacity.php" hash="3f9581bc6b64f3fcc25307dab66af07d"/><file name="Theme.php" hash="48bd7e37fed66eedca0338d0def17662"/><file name="Wmode.php" hash="5f9c694bc0a9f194faed2921b421e1e9"/></dir><file name="Inclusiontypes.php" hash="83482867f82c0fd9688c2acb81ee701d"/><file name="Jquerytypes.php" hash="4da74c8ce188acfee6bd762cde145a10"/><file name="Lightboxtypes.php" hash="3ded8c42177b9dd2d1ffd9249f03139c"/></dir><file name="Lightboxes.php" hash="8acc4715ff262e6511e25a31d7988c1b"/></dir><dir name="controllers"><file name="IndexController.php" hash="3b1b2d0b3d9d312b5401e55487d10020"/></dir><dir name="etc"><file name="adminhtml.xml" hash="822babae1508e248aa5c6098f8f54a3b"/><file name="config.xml" hash="3017071083f91fa3bd17a9d0379117cb"/><file name="system.xml" hash="38ef3f896806c3fc7c79d5fef113c36a"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="lightboxes.xml" hash="ef76a1040aebfd58f7b1b3e9d44dabbf"/></dir><dir name="template"><dir name="lightboxes"><file name="head.phtml" hash="008a7e1358d8fff22b265278ee3ad063"/><file name="jquery_inclusion.phtml" hash="3e5c9cdd58c4684ab6fb2f76e7d75329"/><file name="lightboxes_inclusion.phtml" hash="763a9e5ec3098606073ea23e67e0505c"/><file name="lightboxes_initialization.phtml" hash="40fba2a163287fbe21ea7d2d361ddeb9"/><file name="media.phtml" hash="3cae182656443a1a37705c1010f43c85"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="lightboxes"><dir name="fancybox"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><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="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="11e57e492ee0311540967cc7a1e6e3e2"/><file name="jquery.easing-1.3.pack.js" hash="def257dbb0ab805c4996fd8abb1a6b49"/><file name="jquery.fancybox-1.3.4.css" hash="4638ce99ef00cf62bfb22d230f9924b8"/><file name="jquery.fancybox-1.3.4.js" hash="e7fc2f8a70f0a9f966207c3f71130721"/><file name="jquery.fancybox-1.3.4.pack.js" hash="8bc36a08c46719377528d962966ce37c"/><file name="jquery.mousewheel-3.0.4.pack.js" hash="3b0a821567b463e70bcc1e90ed2bc9b6"/></dir><dir name="jQuery"><dir name="1.4.3"><file name="jquery.min.js" hash="e4958bd2e32d9fcd6115a585ed17a9cc"/></dir><dir name="1.7.1"><file name="jquery.min.js" hash="ddb84c1587287b2df08966081ef063bf"/></dir></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"><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="c_l.png" hash="47e9b270c4fa90d0f230162483a78ff9"/><file name="c_r.png" hash="c859f115cde4306a39b4a8f6cee2f627"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><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="c_l.png" hash="41c77a81ecf1df77eddb9f83d7f6ea83"/><file name="c_r.png" hash="882771577ec629f4aaaf9fa30a332b74"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><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="c_l.png" hash="d303eaa0cf6efa163c3e11089f7a1dfa"/><file name="c_r.png" hash="87d1bdc4346f93c62a89162971f35451"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><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="c_l.png" hash="dfbb93a992ade9d582cc11bd3b1ca524"/><file name="c_r.png" hash="1ea958d53920f49c077b6257b7d6d32c"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><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="c_l.png" hash="d87b25d657460807de2496133c265c1b"/><file name="c_r.png" hash="3d5eb49f2f508f103dd5d28980104bc0"/><file name="close_btn.png" hash="92b5b87de803f837f0b87abbc903fb87"/><file name="close_btn_h.png" hash="183ddc1e93f12ad62a81db361905e5b0"/><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><file name="css.css" hash="dd10f3849827f49e3cde3c1e12194e56"/></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 name="pirobox_extended"><dir name="css_pirobox"><dir name="style_1"><file name="bottom_nav.png" hash="0bfe9c5fdde2327a53c20dbaf5ae65fa"/><file name="caption.png" hash="8e312b37a7a9e33db6088251918ff28b"/><file name="close.png" hash="727fdb93b60ac1966dca47a7d7a72369"/><file name="loadinfo.gif" hash="66c1026d570b265736fc352f8cd7d0fa"/><file name="new_skin.png" hash="85951dc87297f8c25a22375556287462"/><file name="new_skin_left.png" hash="29174d3ed71d960f11dab01779b153b0"/><file name="new_skin_top.png" hash="768259c71d41c0a60a7c0dfd24432bd6"/><file name="next.png" hash="d6b45c614af490704a6f8900ec25e27a"/><file name="prev.png" hash="7493f35d86f183ae87bd2cf72ccb90fa"/><file name="style.css" hash="97b1d92ec2b7bcee61754045c9d696b5"/></dir><dir name="style_2"><file name="bottom_nav.png" hash="0bfe9c5fdde2327a53c20dbaf5ae65fa"/><file name="caption.png" hash="8e312b37a7a9e33db6088251918ff28b"/><file name="close.png" hash="727fdb93b60ac1966dca47a7d7a72369"/><file name="loadinfo.gif" hash="66c1026d570b265736fc352f8cd7d0fa"/><file name="new_skin.png" hash="85951dc87297f8c25a22375556287462"/><file name="new_skin_left.png" hash="29174d3ed71d960f11dab01779b153b0"/><file name="new_skin_top.png" hash="768259c71d41c0a60a7c0dfd24432bd6"/><file name="next.png" hash="d6b45c614af490704a6f8900ec25e27a"/><file name="prev.png" hash="7493f35d86f183ae87bd2cf72ccb90fa"/><file name="style.css" hash="52ca22c3421dab8138128ecac907aa76"/></dir></dir><dir name="js"><file name="error.jpg" hash="264b137218db88a6af0ef5c22aba21b9"/><file name="jquery-ui-1.8.2.custom.min.js" hash="24326c20fe684d81b81ffb14aee46954"/><file name="jquery.min.js" hash="b76fc63a9c3fc4293fb90990818dd100"/><file name="pirobox_extended.js" hash="93a9695a6dbbc1429466529eb08dc6d2"/><file name="pirobox_extended_min.js" hash="8a01583a1b5f493b37d439fbc0b0d318"/></dir><file name="demo.html" hash="b68fd51c1bc93f3f0cd9b9d0df44f2b4"/><file name="demo2.html" hash="38c12aa90e86bc5e5524a28381931f36"/></dir><dir name="prettyPhoto"><dir name="css"><file name="prettyPhoto.css" hash="d20fd38e678f8ce9e9157df28741580a"/></dir><dir name="images"><dir name="fullscreen"><file name="1.jpg" hash="97a4a51963e7d00fdc6ca64b0d8c971b"/><file name="2.jpg" hash="89871ea85c1e362c30105886ab3db492"/><file name="3.jpg" hash="f62cb0f94ef0137326bd62bd6e6f7ed8"/><file name="4.jpg" hash="81a96cbb5727b5057a1287dc30392003"/><file name="5.jpg" hash="4f129ad4cef4f417a19e85b035410b46"/><file name="6.jpg" hash="7f08d7ef81868f49a8e8f7a05920799b"/><file name="high.gif" hash="aaad68f6d6f12679cb8b84c4f0866a8c"/><file name="huge.gif" hash="1fcab4f05d2356941d538a56761c6ee1"/><file name="wide.gif" hash="3c30573861d17719420067dcd403ddc3"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="prettyPhoto"><dir name="dark_rounded"><file name="btnNext.png" hash="0a89018b6e4a1492623ca2b608b606ff"/><file name="btnPrevious.png" hash="9ad8565740908ecab23ff67990e590cc"/><file name="contentPattern.png" hash="2f2d883ab9986e7eaa9f1cba98e2bbaf"/><file name="default_thumbnail.gif" hash="ed52db277173876860b62071785a2177"/><file name="loader.gif" hash="4297900ae2d9d0c4eb00d1c15462fb19"/><file name="sprite.png" hash="272462d6f733a5f1723ea87916afa4f1"/></dir><dir name="dark_square"><file name="btnNext.png" hash="0a89018b6e4a1492623ca2b608b606ff"/><file name="btnPrevious.png" hash="9ad8565740908ecab23ff67990e590cc"/><file name="contentPattern.png" hash="6660e3acf8523be8de932abe1e075370"/><file name="default_thumbnail.gif" hash="ed52db277173876860b62071785a2177"/><file name="loader.gif" hash="4297900ae2d9d0c4eb00d1c15462fb19"/><file name="sprite.png" hash="6b25600839837ed891e1d2f17ba01c28"/></dir><dir name="default"><file name="default_thumb.png" hash="8a3e7c798030574d519d3d167a5e6d5d"/><file name="loader.gif" hash="8393c5f7e394698f751ee6a11fff3dc7"/><file name="sprite.png" hash="f814686dca4830164d3f8d2c949b42cf"/><file name="sprite_next.png" hash="b903c8c15dff677b7b3dfd042fe8d860"/><file name="sprite_prev.png" hash="bf55ea7dede2004166dc4024c5b5528c"/><file name="sprite_x.png" hash="26b97559a5225bf3cc3e1634950bcb84"/><file name="sprite_y.png" hash="096e04fbfb474c46cf17a9a878b3d221"/></dir><dir name="facebook"><file name="btnNext.png" hash="b8d4bf8440aae57321064ecaf2efea7e"/><file name="btnPrevious.png" hash="b251170307bcb724ac5b4e97482dc6ed"/><file name="contentPatternBottom.png" hash="a6fab9b4551a6274d71703b610eb6abd"/><file name="contentPatternLeft.png" hash="3b7f995669ad8cbf24acccb8f1d70f4d"/><file name="contentPatternRight.png" hash="74bfb933f639e76971ca5db1ae612011"/><file name="contentPatternTop.png" hash="c2e5c4ec6fc9ee4e49c79ff7e18c9695"/><file name="default_thumbnail.gif" hash="ed52db277173876860b62071785a2177"/><file name="loader.gif" hash="df46993044576f83f2c2cc1a64e18f31"/><file name="sprite.png" hash="a157ef765ce8288984373a7eba6b9a23"/></dir><dir name="light_rounded"><file name="btnNext.png" hash="0a89018b6e4a1492623ca2b608b606ff"/><file name="btnPrevious.png" hash="9ad8565740908ecab23ff67990e590cc"/><file name="default_thumbnail.gif" hash="ed52db277173876860b62071785a2177"/><file name="loader.gif" hash="df46993044576f83f2c2cc1a64e18f31"/><file name="sprite.png" hash="45b32c620cfb4a677f9b8c4360a8d3c4"/></dir><dir name="light_square"><file name="btnNext.png" hash="0a89018b6e4a1492623ca2b608b606ff"/><file name="btnPrevious.png" hash="9ad8565740908ecab23ff67990e590cc"/><file name="default_thumbnail.gif" hash="ed52db277173876860b62071785a2177"/><file name="loader.gif" hash="df46993044576f83f2c2cc1a64e18f31"/><file name="sprite.png" hash="6b25600839837ed891e1d2f17ba01c28"/></dir></dir><dir name="thumbnails"><file name="flash-logo.png" hash="84308dc65ccd1ef6f2fd06c942790e2b"/><file name="quicktime-logo.gif" hash="c0bd48e2273d6398f7209b36b498c876"/><file name="t_1.jpg" hash="d185e9cd39358651d53ce76cb6c46cf8"/><file name="t_2.jpg" hash="a98ec51fae545d4fb92bdf89817e1a06"/><file name="t_3.jpg" hash="dc7105fbf87aa26c0c82797358cfaf82"/><file name="t_4.jpg" hash="0ef1f2247ff1117fcb97f691234e37b9"/><file name="t_5.jpg" hash="ec98f305a581b70763e478c24d0abcf0"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="js"><file name="jquery.prettyPhoto.js" hash="c69d18089247b21ea3bb18c9e174496e"/><file name="jquery.prettyPhoto.min.js" hash="5e79ae6c86daa6dd93298f38e5037c24"/></dir><file name="README" hash="a213fb0b9541642880b2357b1ad41784"/><file name="index.html" hash="0a07c6edb0b954ed08d17434dc6c6b5a"/><file name="xhr_response.html" hash="9a2ad756883e66fdc9364700bf128834"/></dir><file name="no-conflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MagentoPycho_Lightboxes.xml" hash="4fe2e4bc8867ccd8219e17bb72a18ee8"/></dir></target></contents>
26
  <compatible/>
27
  <dependencies/>
28
  </package>