$(document).ready(function() {
	
	//slideshow home
	$('#banner').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		random: 1,
		speed: 2500,
		timeout: 5500
	});
	
	//ajoute la transparence pour le png
	$(document).pngFix();
		

	$("h3").hover(
		function() {
			$(this).animate({borderLeftWidth:"3px"}, 50);
		},
		function() {
			$(this).animate({borderLeftWidth:"0px"}, 50);
		}
	);
	
	$(".redTitle a").hover(
		function() {
			$(this).animate({borderLeftWidth:"3px"}, 50);
		},
		function() {
			$(this).animate({borderLeftWidth:"0px"}, 50);
		}
	);
	
	$(".pagination a").hover(
		function() {
			$(this).animate({borderBottomWidth:"2px"}, 50);
		},
		function() {
			$(this).animate({borderBottomWidth:"0px"}, 50);
		}
	);
	
	$("#linkBlock a").hover(
		function() {
			$(this).animate({paddingLeft:"40px"}, 170);
		},
		function() {
			$(this).animate({paddingLeft:"33px"}, 170);
		}
	);
	
		
	//ajoute le light box sur les lien ayant la class lightBox
	$(".photos a").lightBox({
		imageBtnClose	:	'',
		fixedNavigation	:	true,
		imageBtnPrev	:	'/template/images/lightbox/lightbox-btn-prev.gif',
		imageBtnNext	:	'/template/images/lightbox/lightbox-btn-next.gif'
	});
	
	//player video
	var parameters =
		{	id: "1"
		,	src: "../videos/Clip_GTE_2011.flv"
		,	autoPlay: "true"
		,   width: "550"
		,   height: "303"
		,	autoHideControlBar: "true"
		,	controlBarPosition: "bottom"
		,	backgroundColor: "#000000"
		};
	    		
	// Embed the player SWF:
	swfobject.embedSWF
		( "template/flash/StrobeMediaPlayback.swf"
		, "player"
		, parameters["width"], parameters["height"]
		, "10.0.0"
		, {}
		, parameters
		, { allowFullScreen: "true" }
		, { name: "StrobeMediaPlayback" }
		);
});

