// image swapping

$.fn.imgSwap = function()
{
	var mySrc = null;
	
	$(this).hover(function()
	{
		mySrc = $(this).attr('src');
	
		var myNewSrc = mySrc.replace(/(\.)/,"Over.");
		
		$(this).attr('src',myNewSrc);
	}
	,function()
	{
		$(this).attr('src',mySrc);
	});
	
	return this;
}

$.fn.imgCurrent = function()
{
	$(this).unbind();
	
	var mySrc = $(this).attr('src');
	
	var myNewSrc = mySrc.replace(/(\.)/,"Over.");
		
	$(this).attr('src',myNewSrc);	
}

$(document).ready(function()
{
	$('#topNav a img, .swapMe').imgSwap();
	
	//$('.current img').imgCurrent();
});