jQuery(document).ready(

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

	function() {
			var unlDock = jQuery('.unldock');
			var menusep=unlDock.find('.lenya-menu-separator');
			var unldockList = unlDock.find('.unldockcontrols');
			unldockList.hide();
			//unldockList.toggleClass('showunldock');
			//alert(unldockList.length);


			unlDock.hoverIntent(
				{
					interval: 0,
					out: function(){unldockList.toggleClass('showunldock');},
					over: function(){unldockList.toggleClass('showunldock');},
					timeout: 250
				}
	);
			
	var siteDock = jQuery('.sitedock');
	var menusep=siteDock.find('.lenya-menu-separator');
	var sitedockList = siteDock.find('.sitedockcontrols');
	sitedockList.hide();
	//sitedockList.toggleClass('showsitedock');
	//alert(sitedockList.length);

	siteDock.hoverIntent(
		{
			interval: 0,
			out: function(){sitedockList.toggleClass('showsitedock');},
			over: function(){sitedockList.toggleClass('showsitedock');},
			timeout: 250
		}
	);


	}
		
);

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() {
	}
);