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() {
		if (Liferay.Browser.isIe() && Liferay.Browser.getMajorVersion() <= 6) {
			var userGreet = jQuery("h2.user-greeting").width();
			jQuery("div.lfr-dock-list-container").css("width", userGreet);
			jQuery(".taglib-icon-list li").css("height", "20px");
		}


			jQuery("#qm0 li").hoverIntent(
				{
					interval: 25,
					timeout: 0,
					over: function () {
						jQuery("ul.child-menu", this).css("display", "block");
						if (Liferay.Browser.isIe() && Liferay.Browser.getMajorVersion() <= 6) {
							var parentliHeight = jQuery("a", this).width();
							parentliHeight = -(parentliHeight+23);
							jQuery("ul.child-menu", this).css("margin-left", parentliHeight);
						}

						jQuery("ul.child-menu a", this).css("cursor", "pointer");
					},
					out: function () {
						jQuery("ul.child-menu", this).css("display", "none");
					}
				}
			);
	}
);
