/*  Background Worker for Jquery, version 1.0
 *
 *	Version 1.0		2010-05-01
 *
 *  Version 1.0 By Keith Perhac http://blog.japanesetesting.com/ 
 *
 *  Licensed under the MIT:
 *  http://www.opensource.org/licenses/mit-license.php
 *
 *
 *  Dependencies:   Jquery (ver 1.4 or higher)
 *  				Created with $j No-Conflict
 *  Usage:          Append 'rel="bg_worker"' to an element to call it in the background and
 *  				have it update the '#notify_load' item for 3000 milliseconds
 *  				before returning to it's original position
 *
 *  This Replaces the 300 line Prototype Version
 *
 *--------------------------------------------------------------------------*/
$j(document).ready(function() {
	$j('a[rel|=bg_worker]').click(function(){
		$j('#notify_load').show();
		$j.get($j(this).attr('href'), function(data) {
			$j('#notify_load').hide();
			$j('#notify_bar').html(data).slideDown('slow').delay(3000).slideUp('slow');		  
		});
		return false;
	});
});