window.addEvent("domready", function ()
{
	$$("a.link").each(function (item)
	{
		var fx = new Fx.Styles(item,
		{
			wait: false,
			duration: 300
		});
		item.addEvent("mouseout", function ()
		{
			fx.start(
			{
				color: "#444444"
			});
		});
		item.addEvent("mouseover", function ()
		{
			fx.start(
			{
				color: "#e2a81e"
			});
		});
	});
	
	new Tips($$(".tips"),
	{
		initialize: function ()
		{
			this.fx = new Fx.Style(this.toolTip, "opacity",
			{
				duration: 500,
				wait: false
			}).set(0);
		},
		
		onShow: function (toolTip)
		{
			this.fx.start(1);
		},
		
		onHide: function (toolTip)
		{
			this.fx.start(0);
		}
	});
});
