// Solidaris JavaScript
	$(document).ready(function()
		{
			// Fading banner
			$("#bigBannerBox").cycle(
				{
					fx: 'fade',				// choose your transition type, ex: fade, scrollUp, shuffle, etc...
					timeout: 5000,
					speed: 2000,			// speed of the transition (any valid fx speed value)
					easing: null
				});

			// Sliding news
			$("#newsBox").cycle(
				{
					fx: 'blindX',			// choose your transition type, ex: fade, scrollUp, shuffle, etc...
					timeout: 5000,
//					speed: null,			// speed of the transition (any valid fx speed value)
					speedIn: 1000,			// speed of the 'in' transition
					speedOut: 800,			// speed of the 'out' transition
					sync: 0,				// true if in/out transitions should occur simultaneously
					next: '.nextnews',
					pause: 1,
	    			easeIn: 'easeOutQuint',	// easing for "in" transition
					easeOut: 'easeInQuad'	// easing for "out" transition
				});


			// Animating links in navigation band
//			$("#logoBox").hover(
			$("#movimento li").hover(
				function()
					{
						$(this).stop().animate({left: "-=50px"}, {queue: true, duration: 1000, easing: "easeOutQuint"});
					},
				function()
					{
						$(this).stop().animate({left: "+=50px"}, {queue: true, duration: 800, easing: "easeOutQuint"});
						$(this).stop().animate({left: "0px"}, {queue: true, duration: 800});
					});


			// Display person photo on name hovering
			$("ul#teamList li").hover(
					function()
						{
							var currentId = $(this).attr('id');
							currentId = currentId.replace("l", "m");
							$("#"+currentId).fadeIn(500);
						},
					function()
						{
							var currentId = $(this).attr('id');
							currentId = currentId.replace("l", "m");
							$("#"+currentId).fadeOut(500);
						});


			// Accordion
			$(function()
				{
					$("#accordion").accordion(
						{
							animated: 'easeInOutQuad',
							autoHeight: false,
							navigation: true
						});
				});






			// Activate prettyPhoto with a handler
			$("a[rel^='prettyPhoto']").prettyPhoto(
				{													// prettyPhoto Lightbox
					animationSpeed: 'normal', 						/* fast/slow/normal */
					default_width: 200,
					default_height: 200,
					opacity: 0.50, 									/* Value between 0 and 1 */
					showTitle: true, 								/* true/false */
					counter_separator_label: '/', 					/* The separator for the gallery counter 1 "of" 2 */
					theme: 'light_square' 							/* light_rounded / dark_rounded / light_square / dark_square / facebook */
				});
		});
