/* Mata de Jonc */

	/*jQuery*/
	jQuery(document).ready(function() {
		
		/* jCarousel - Photo Carrusel */
		/* http://sorgalla.com/jcarousel */	
		/* http://sorgalla.com/projects/jcarousel/#Configuration */
		
		// Autoscrolling
		function mycarousel_initCallback(carousel)
		{
			// Disable autoscrolling if the user clicks the prev or next button.
			carousel.buttonNext.bind('click', function() {
				carousel.startAuto(0);
			});
		
			carousel.buttonPrev.bind('click', function() {
				carousel.startAuto(0);
			});
		
			// Pause autoscrolling if the user moves with the cursor over the clip.
			carousel.clip.hover(function() {
				carousel.stopAuto();
			}, function() {
				carousel.startAuto();
			});
		};
		
		jQuery(document).ready(function() {
			jQuery('#mycarousel').jcarousel({
				
				// Specifies how many seconds to periodically autoscroll the content. If set to 0 (default) then autoscrolling is turned off. 
				auto: 5, 
				
				// The speed of the scroll animation as string in jQuery terms ("slow" or "fast") or milliseconds as integer (See jQuery Documentation). If set to 0, animation is turned off.
				animation: 'slow', 
				
				// Specifies whether to wrap at the first/last item (or both) and jump back to the start/end. Options are "first", "last", "both" or "circular" as string. If set to null, wrapping is turned off (default).
				wrap: 'circular', 
				
				// Call 'Autoscrolling'
				initCallback: mycarousel_initCallback
			});
		});
	
		/* Superfish - Navegation Menu */
		/* http://users.tpg.com.au/j_birch/plugins/superfish/ */		
		jQuery('ul.sf-menu').superfish();
		
		
	});
	
	
