/* =====================================================================
*
*    utility.js
*
* =================================================================== */

jQuery.extend(jQuery.easing,
{
	easeInQuart: function (x, t, b, c, d)
	{
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d)
	{
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d)
	{
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	}
});

var Util = function()
{	
	var init = function()
	{
		$(document).ready(function()
		{
			$('a[href^="#"]').click(function()
			{
				var ty = $($(this).attr("href")).position().top;
				
				$('html,body').animate({scrollTop: ty}, 1000, 'easeInOutQuint');

				return false;
			});
		});
	}();
	
	
	return{
		
	}
}();


/** =====================================================================
*
* Btn effect
*
* =================================================================== */


$(document).ready(function()
{
	$('.link1').hover(function()
	{
		$(this).stop();
        $(this).fadeTo(200, .7);
    },
    function()
	{
        $(this).fadeTo(300, 1.0);
    });
	
});




