/*
 * Refresh (for jQuery)
 * version: 1.0 (12/03/2009)
 * @requires jQuery v1.2 or later
 *
  *
 * Licensed under the MIT:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Copyright 2009 Byss.pl
 *
 */
 
(function($) {
	
  $.fn.refresh = function(options) {
		
		var _self = $(this);
		
    options = $.extend({
			dataType: "html",
			cache: false,
			beforeSend:  function (){
				buildOverlay(_self); 
				height = _self.height();
				width = _self.width();
				$('.box-entry-overlay').css({'height': getPixelUnit(height)});
				$('.box-entry-overlay').css({'width': getPixelUnit(width)});
				$('.box-entry-overlay').show();
			},
			success: function (statusText, responseText) {
				_self.html(statusText);
			}
    }, options || {});
		
		$.ajax(options);
		
	}	

})(jQuery);

