/*******
	***	Anchor Slider by Cedric Dugas   ***
	*** Http://www.position-absolute.com ***	
*****/
		


$j(document).ready(function() {
	$j("a.button").anchorAnimate()
});

jQuery.fn.anchorAnimate = function(settings) {

 	settings = jQuery.extend({
		speed : 500
	}, settings);	
	
	return this.each(function(){
		var caller = this
		$j(caller).click(function (event) {	
			event.preventDefault()
			var locationHref = window.location.href
			var elementClick = $j(caller).attr("href")
			
			var destination = $j(elementClick).offset().top;
			$j("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, settings.speed, function() {
				window.location.hash = elementClick
			});
		  	<!--return false;-->
		})
	})
}

  
    var $j = jQuery.noConflict();    
