(function($) {	
	//Main Method
	$.fn.jcrContent = function(url, path)
	{		
		var div=$(this);
		
		if (path)
		{
			$.ajax({
			     type: "GET",
			     url: url,       
			     data:  { path: path},		     
			     dataType: "json",
			     success: function(data) {
			    	 if (data != null)
			    		 div.html(data.content);					
			     }
			   });
		}
		else
		{
			$.ajax({
			     type: "GET",
			     url: url,       			     		    
			     dataType: "json",
			     success: function(data) {
			    	 if (data != null)
			    		 div.html(data.content);					
			     }
			   });	
		}
	};
})(jQuery);
