Your IP : 216.73.216.218


Current Path : /home/antonen/chenglong.lt/components/com_phocagallery/views/detail/tmpl/
Upload File :
Current File : /home/antonen/chenglong.lt/components/com_phocagallery/views/detail/tmpl/default_slideshowjs.php

<?php
/*
 * @package Joomla
 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 *
 * @component Phoca Gallery
 * @copyright Copyright (C) Jan Pavelka www.phoca.cz
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */

defined('_JEXEC') or die('Restricted access');
$document			= JFactory::getDocument();
//$document->addScript(JURI::base(true).'/components/com_phocagallery/assets/jquery/jquery-1.6.4.min.js');
JHtml::_('jquery.framework', false);// Load it here because of own nonConflict method (nonconflict is set below)
$document->addScript(JURI::base(true).'/components/com_phocagallery/assets/fadeslideshow/fadeslideshow.js');

if($this->tmpl['responsive'] == 1) {
	$iW = '\'100%\'';
	$iH = '\'100%\''; // DOES NOT WORK IN FADESLIDESHOW
	//$iH = $this->tmpl['largeheight'];
} else {
	$iW = $this->tmpl['largewidth'];
	$iH = $this->tmpl['largeheight'];
}

?><script type="text/javascript">
/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
var phocagallery=new fadeSlideShow({
	wrapperid: "phocaGallerySlideshowC",
	dimensions: [<?php echo $iW; ?>, <?php echo $iH; ?>],
	imagearray: [<?php echo $this->item->slideshowfiles ;?>],
	displaymode: {type:'auto', pause: <?php echo $this->tmpl['slideshow_pause'] ?>, cycles:0, wraparound:false, randomize: <?php echo $this->tmpl['slideshowrandom'] ?>},
	persist: false,
	fadeduration: <?php echo $this->tmpl['slideshow_delay'] ?>,
	descreveal: "<?php echo $this->tmpl['slideshow_description'] ?>",
	togglerid: "",
})
</script>