jQuery.fn.forma_site=function (params)
{
	var _container=$(this).closest(".page_div");
	var _div=$(this).closest(".foto_drag_div");
	if ($(_container).length==0) { _container=$("body"); }
	params=jQuery.extend({fn:function (ob)
	{
		ob_to_pop(ob, _div);
		
		/*if (ob.html!=undefined)
		{
			$(_container).html(ob.html);
		}
		if (ob.sc!=undefined)
		{
			eval(ob.sc);
		}
		$(_page_div).find("form.forma").forma_site();*/
		//$("#page_div").html(_html).find("form.forma").forma_site();
	}}, params);
	
	$(this).each(function ()
	{
		$(this).forma();
		if ($(this).attr("_ajax_site"))
		{
			$(this).submit(function ()
			{
				if ($(this).data("ok"))
				{
					$(_container).load_big();
					$.post($(this).attr('action'), $(this).serialize(), function (_html) { params.fn(_html); }, "json");
					return false;
				}
			});
		}
	});
	
	return this;
};