(function($)
{

   
    // Private Variables and Methods
   internal =
    {
            goNext:function(ob)
            {
                alert( $("#ceste p").next().html() );
                //alert(separator);
            }

    };
    // Public Variables and Methods
    $.widgets =
    {

        openModalDlg:function(data,title)
        {
            var odv = document.createElement("div");
            $(odv).html(data);
            $('body').append(odv);

            $(odv).dialog({
			bgiframe: true,
			height: $('body').height() / 3,
            width:$('body').width() / 2,
			modal: true,
            title:title
            });
        },
        openModalDlgAjax:function(url,title)
        {
            $.get(url, {}, function(data){
               $.widgets.openModalDlg(data,title);
            });
        },
        getAjax:function(url,id)
        {
            $.get(url, {}, function(data){
              $(id).html(data);
            });
        }

    };

}
)(jQuery);

