function windowhcc(fichier) {
  ff=window.open(fichier,"popup",
               "resizable=yes, width=760,height=500,left=200,top=200,scrollbars=yes,menubar=yes,location=yes,status=yes,directories=yes,toolbar=1NonNonNonNonNonNonNon'") }

$(document).ready(function() {

   rotation();

});

function rotation() {

	$('#pack a').css({opacity: 0.0});
	$('#pack a:first').css({opacity: 1.0}); 
	$('#pack .texte').css({opacity: 0.7}); 
	$('#pack .texte').css({width: $('#pack a').find('img').css('width')});
	$('#pack .contenu').html($('#pack a:first').find('span').text()).animate({opacity: 1.5}, 800);
	$('.news').hide();
	setInterval('photo()',10000);

}

function photo() {

	var current = ($('#pack a.show')?  $('#pack a.show') : $('#pack a:first'));
	var next = ((current.next().length) ? ((current.next().hasClass('texte'))? $('#pack a:first') :current.next()) : $('#pack a:first'));
	var texte = next.find('span').text();
	
 	 next.css({opacity: 0.0})
 	.addClass('show')
 	.animate({opacity: 1.0}, 1000);
 	 current.animate({opacity: 0.0}, 1000)
	.removeClass('show');
	
	$('#pack .texte').animate({opacity: 0.7},70 ).animate({height: '70px'},500 );

	$('#pack .contenu').html(texte);


}


               
