$(document).ready(function(){

	//un hash est ajouté à la fin des url par le plugin
	$('#contenu a.removeHash').each(function()
	{
		$(this).attr('rel', $(this).attr('href'));
	});

	$.localScroll.defaults.axis = 'xy';
	$("#nav2").localScroll({
		target: '#sections', // could be a selector or a jQuery object too.
		updatelinks: false
		,onAfter: removeHash
	});

	$("[id^=pagination0]").each(function(i){
		var i = i+1;
		$(this).localScroll({
			target: "#gallerylist0"+i // could be a selector or a jQuery object too.
			,onAfter: removeHash
		});
	});
	
	$("[id^=pagination-vertical0]").each(function(i){
		var i = i+1;
		$(this).localScroll({
			target: "#content-vertical0"+i, // could be a selector or a jQuery object too.
			axis: 'y'
			,onAfter: removeHash
		});
	});
	
	/*
	$("a.link").easyTooltip({ // Portfolio > recherche
		useElement: "next",
		clickRemove: true
	});
	*/
	removeHash();	
});

//retirer hash ajouté par le plugin
function removeHash()
{
	$('#contenu a.removeHash').each(function()
	{
		$(this).attr('href', $(this).attr('rel'));
	});
}
