jQuery.fn.dwFadingLinks = function(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); });
	});
	
};

function getCurrentPage() {

	var pathArray = new String(window.location).split('http://');
	var dir = new String(pathArray[1]).split('/');
	return dir[1];
	
}
