// JavaScript Document

$(document).ready(function(){
	(function()
	{
		$("#pagetop a").each(function(){
			
			$(this).attr("title",$(this).text());
		
		});
	})();
	
	$("#pagetop").bind("click",gotoPageTop);
	
	function gotoPageTop()
	{
		var t = $(this).offset().top / 3;
		
		if( t == 0 )
			return;
		else if( t <= 400 )
			e = null;
		else
			e = "easeInOutCubic";
			
		$($.browser.safari ? "body" : "html").animate({scrollTop:0},t,e);
		
		return false;
	}

});


