$(document).ready(function()
{
	// Chercher le titre de la photo
	var titrePhoto = $('div#caracteristiques h2').text();
	
	// Ajouter une class au paragaphe contenant la photo
	$('p#photo').addClass('curseur_main');
	// Ajouter un attribut title sur l'image, pour afficher une infobulle uniquement lorsque JS est activé
	$('p#photo img').attr('title', 'Plus d\'informations sur ' + titrePhoto);
	
	// Gestion des effets d'ancre
	$('p#photo img').click(function()
	{
		$.scrollTo('div#informations', 1750, {offset: 180}, {easing:'swing'});
		
		return false;
	});
	
	$('p#photo img').hover(function()
	{
		$(this).css('border', '1px solid black');
	}, function()
	{
		$(this).css('border', '1px solid #323232');
	});
	
	$('a#ancre_remonter').click(function()
	{
		$.scrollTo('div#en_tete', 1750, {easing:'swing'});
		
		return false;
	});
});
