(function($) {
		  
$.fn.ajaxProxy = function (url, data, callback)
{
	function proxyUrl(url)
	{
		if (url.match('/' + window.location.hostname + '/'))
		{
			return url;
		}
		else
		{
			return '/ajaxproxy.php?' + escape(url);
		}
	}

	return this.each(function() {
		$(this).load(proxyUrl(url), data, callback);
	});
}  
		  
})(jQuery);
