/*
 *
 * SurOver - layer following the cursor
 *
 * Copyright (c) 2009 Alexander Roper (http://www.peyj.com)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * jQueryDate: 23/08/2009
 * jQueryAuthor: Alexander Roper
 *
 */
(function($) {
	$.fn.surover = function( over ) {
		return this.each(function() {
			$(this).bind( 'mousemove', function( e ) {
				$(this).find( over ).css('display', 'block').css('left', e.pageX + 10 ).css('top', e.pageY + 15 );
			});
			
			$(this).bind( 'mouseover', function( e ) {
				$(this).find( over ).css('display', 'block').css('left', e.pageX + 10 ).css('top', e.pageY + 15 );
			});
			
			$(this).bind( 'mouseout', function( e ) {
				$(this).find( over ).css('display', 'none');
			});
		});
	};
})( jQuery );

