/**
 *	iFlip
 *	Author: keta
 *
 *	Simple plugin to switch images.
 *	@ a (str) - starting image
 *	@ b (str) - image to switch to on click.
 */

jQuery.fn.iflip = function( a, b ) {
	
	$(this).click(function() {		
		curr = $(this).attr('src');
	
		if( curr == a ) {
			$(this).attr('src', b);
		} else if( curr == b ) {
			$(this).attr('src', a);
		}
		
	});
	
}