$(document).ready(function() {

$('#splash').after('<div class="splash_nav">').cycle({ 
	    fx:      'fade', 
	    speed:    300, 
	    timeout:  5000,
		cleartype:  1,
		pager : '.splash_nav'

	});




	$('#header ul li').hover(
						
	                 function() {
	                         $(this).css({ backgroundPosition: '0px -42px'});
							 $(this).css({ padding: '10px 0 0 0' });
							 var link = $(this).children();
							 $(link).css({ color: '#FFF'});
	                 },
	                 function() {
	                         $(this).css({ backgroundPosition: '0px 0px'});
							 $(this).css({ padding: '6px 0 0 0' });
							 var link = $(this).children();
							 $(link).css({ color: '#787024'});
	                 }
	 );

	$('#slider img #one').click(function(){
		$('.tab_offres').click({ backgroundPosition: '460px 0px'});
		}
	);
	$('#slider img #multi').click(function(){
		$('.tab_offres').css({ backgroundPosition: '580px 0px'});
		}
	);
	$('#slider img #community').click(function(){
		$('.tab_offres').css({ backgroundPosition: '700px 0px'});
		}
	);
	
	

$('#slider').cycle({ 
    fx:     'scrollHorz', 
    speed:  500, 
    next:   '#next',
	prev:'#previous', 
    timeout: 0 
});


$('.splasher').ifixpng(); 

$('#backhome').click(function(){
	window.open("http://www.talkspirit.fr", '_self')
	});


});

