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() {
		/* changer le markup généré par la portlet fil d'arianne afin de pouvoir la styler correctement */
		jQuery('.portlet-breadcrumb .portlet-borderless-container div:last-child').each(
			function(i){
				links=[];
				jQuery('a',this).each(
					function(i){
						links[links.length]=this;
					}
				);
				newMarkup='<ul><li class="first_li"></li>';
				for(i=0;i<links.length;i++)
				{
					newMarkup+='<li><a href=\"'+links[i].href+'\">'+(i>0?'&nbsp;&raquo;&nbsp;':'')+links[i].innerHTML+'</a></li>';
				}
				newMarkup+='<li class="last_li"></li></ul><hr style=\"visibility:hidden;\"/>';
				this.innerHTML=newMarkup;
			}
		);
		
		
	}
);