jQuery(document).ready( /* This function gets loaded when all the HTML, not including the portlets, is loaded. */ function() { var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); jQuery.getScript(gaJsHost + "google-analytics.com/ga.js", function(){ try { var pageTracker = _gat._getTracker("UA-930131-3"); pageTracker._trackPageview(); } catch(err) {} }); } ); 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() { } ); function pop(fileName,width,height){ //The popup will automatically size to 500x400 if no size is specified. //if you don't pass a url, you're on your own. var popWidth = (width)?width:"500"; var popHeight = (height)?height:"400"; var popUrl = fileName; window.open(popUrl,'popWin','width='+popWidth+', height='+popHeight+', resizable=yes, scrollbars=yes, left=100, top=100') }