<?php
//  @copyright	Copyright (C) 2008 - 2009 IceTheme. All Rights Reserved
//  @license	Copyrighted Commercial Software 
//  @author     IceTheme (icetheme.com)

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

?>



<?php if ($this->countModules('mainmenu + othermenu + vm_cart') or $this->params->get('gotop')) : ?>
<script type="text/javascript" >
	window.addEvent('domready', function() {			
		
		// MainMenu
		<?php if ($this->countModules('mainmenu')) { ?>
		var MainMenu = new IceMenu({
			id: '<?php echo $mainnav_id ?>',
			subMenusContainerId:'MainMenuSub',
			effect: '<?php echo $mainnav_effect ?>',
			duration: <?php echo $mainnav_duration ?>,
			physics: Fx.Transitions.<?php echo $mainnav_transition ?>,
			hideDelay: <?php echo $mainnav_delay ?>,
			orientation: '<?php echo $mainnav_orientation ?>',
			direction:{	x: '<?php echo $mainnav_direction_x ?>',	y: '<?php echo $mainnav_direction_y ?>' },
			opacity: <?php echo $mainnav_opacity ?>
		});
		<?php } ?>
		
		// OtherMenu 
		<?php if ($this->countModules('othermenu')) { ?>
		var OtherMenu = new IceMenu({
			id: '<?php echo $othermenu_id ?>',
			subMenusContainerId:'OtherMenuSub',
			effect: '<?php echo $othermenu_effect ?>',
			duration: <?php echo $othermenu_duration ?>,
			physics: Fx.Transitions.<?php echo $othermenu_transition ?>,
			hideDelay: <?php echo $othermenu_delay ?>,
			orientation: '<?php echo $othermenu_orientation ?>',
			direction:{	x: '<?php echo $othermenu_direction_x ?>',	y: '<?php echo $othermenu_direction_y ?>' },
			opacity: <?php echo $othermenu_opacity ?>
		});
		<?php } ?> 
		
		<?php if($this->params->get('gotop')) { ?>
		new SmoothScroll({ duration:<?php echo $gotop_duration ?>, transition: Fx.Transitions.<?php echo $gotop_transition ?>  }, window); 
		<?php } ?> 
	
	
	});		
</script>
<?php endif; ?>  


