/*
 * jQuery Color Animations
 * Author: Osiris Ltd - http://osiris-studio.org
 * Released under the MIT and GPL licenses.
 */

function link_in(o)
{
	///$('a').stop();
	///$('a').css('color', 'rgb(0, 0, 0)');

	///if ($(o).css('color') != 'rgb(0, 0, 0)') return;
	$(o).stop();
	$(o).animate( { color: 'red' }, 300).animate( { color: 'blue' }, 700);//.animate( { color: 'black' }, 1000);
}

function link_out(o)
{
	//if ($(o).css('color') != 'rgb(0, 0, 255)') return;
	$(o).stop();
	$(o).animate( { color: 'black' }, 1000);
}

$(document).ready(function(){
	$('a').bind("mouseover", function(o){
		link_in(this);
	});

	$('a').bind("mouseout", function(e){
		link_out(this);
	});
});