T2CUtil = {
	setupLink: function(link, title, url) {
		jQuery(link).click(function() {
			this.showContent(title, url);

		});  
	},

	showContent: function(title, url) {
		jQuery("#contentPopup").dialog("close");
		jQuery("#contentPopup").dialog({
			modal: false, 
			width: 550, 
			height:600, 
			position: [jQuery(window).width()-570,'top'], 
			title: title
		});
   		jQuery("#contentPopup").load(url);
		jQuery("#contentPopup").show();
	},
        
        popup: function(title, url) {
                window.open(url, title, "scrollbars=1, status = 1, height = 600, width = 550, resizable = 0");
        }

};

jQuery(document).ready(

	/*
	This function gets loaded when all the HTML, not including the portlets, is
	loaded.
	*/

	function() {
	}
);

Liferay.Portlet.ready(

	/*
	This function gets loaded after each and every portlet on the page.

	portletId: the current portlet's id
	jQueryObj: the jQuery wrapped object of the current portlet
	*/

	function(portletId, jQueryObj) {
	}
);

jQuery(document).last(

	/*
	This function gets loaded when everything, including the portlets, is on
	the page.
	*/

	function() {
	}
);

