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() {var a = jQuery("#column-2 span.portlet-title a")var ivar l = ""var e//alert(a.length)for(i=0;i<a.length;i++){  e = jQuery("#column-2 span.portlet-title a").get(i)   if((e.name!="")&&(e.name!="wp")){          l +="<li><a href='#"+e.name+"'>"+e.name+"</a></li>"          }      }	  e = "<li class='open selected'><a href='"+jQuery("ul.layouts li.selected a").attr("href")+"' class='open selected'> "  e += jQuery("ul.layouts li.selected a").html() + "</a>"  //if(l!=""){           jQuery("ul.layouts li.selected").html(e+"<ul class='layouts'>"+l+"</ul></li>");//   }else{//   //   }  jQuery("#column-2 div.portlet-content").append("<div style='background:url(/html/themes/brochureNIER/images/arrows/02_up.png) right no-repeat;padding:5px 20px 0 0;text-align:right;'><a href='#'>torna all'inizio</a></div>")});