jQuery(document).ready(

	/*
	This function gets loaded when all the HTML, not including the portlets, is
	loaded.
	*/

	function() {
		/*Change le lien du 1er item du menu pour pointer sur l'edito plutot que sur l'animation, uniquement pour le theme general*/
		if(jQuery("#navigation ul.ui-sortable li").get(0)){
			jQuery("#navigation ul.ui-sortable li a").get(0).href="/web/guest/accueil"; 
		}
	}
);

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() {
	}
);