
(function($) {


	// plugin for interactive form, for simple hijacking it would require only the form part.

	$.fn.hijax = function(precall, callback) {
	
	
	
			
			
			
			var blocker = 0; // live does the "each" iteration over the object, so this blocker will be common for all
			$(this).live('click', function(e){		
						
				var $this = $(this);  
						
				if (blocker == 0) {
				
					precall($this);
					blocker = 1;
					$.post($(this).attr('href'), {}, function(content) {
									
						callback(content, $this);
						blocker = 0;
					
					});
			
				}
				// prevent default
	
				return false;
			
			});

	
			
	
	//
	}
	
	
	
		
			
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
})(jQuery);



