
jQuery.fn.dwFadingLinks = function(settings) {
	settings = jQuery.extend({
		color: '#ff8c00',
		duration: 500
	}, settings);
	return this.each(function() {
		var original = $(this).css('color');
		$(this).mouseover(function() { $(this).animate({ color: settings.color },settings.duration); });
		$(this).mouseout(function() { $(this).animate({ color: original },settings.duration); });
	});
};

jQuery.fn.dwFadingBg = function(settings) {
	settings = jQuery.extend({
		backgroundColor: '#ff8c00',
		duration: 500
	}, settings);
	return this.each(function() {
		var original = $(this).css('backgroundColor');
		$(this).mouseover(function() { $(this).animate({ backgroundColor: settings.backgroundColor },settings.duration); });
		$(this).mouseout(function() { $(this).animate({ backgroundColor: original },settings.duration); });
	});
};

jQuery.fn.dwFadingColorAndBg = function(settings) {
	settings = jQuery.extend({
		backgroundColor: '#ff8c00',
		duration: 500
	}, settings);
	return this.each(function() {
		var original_color = $(this).css('color');
		var original_bg    = $(this).css('backgroundColor');
		$(this).mouseover(function() { $(this).animate({ backgroundColor: settings.backgroundColor , color: settings.color },settings.duration); });
		$(this).mouseout(function() { $(this).animate({ backgroundColor: original_bg , color: original_color },settings.duration); });
	});
};



jQuery(document).ready(function() {

	jQuery('.footer a').dwFadingLinks({
		color: '#F9CE0E',
		duration: 200
	});

	jQuery('.musics li a').dwFadingLinks({
		color: '#ce255c',
		duration: 200
	});

	jQuery('.menu li a:not(.selected)').dwFadingBg({
		backgroundColor: '#d0235c',
		duration: 200
	});

	jQuery('.category_link a').dwFadingColorAndBg({
		color: '#ffffff',
		backgroundColor: '#d0235c',
		duration: 200
	});

 });


