jQuery(document).ready(

/*
 * This function gets loaded when all the HTML, not including the portlets, is
 * loaded.
 */

function() {
	setInterval('cambio_imagen.repe()', 10000);
});

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 cambio_imagen = {
	index : 1,
	pathImgs: '/portal-tipo-theme/images/portal-tipo/' + location.hostname + '/img',
	repe : function() {
		document.getElementById('imagenLogo').src = cambio_imagen.pathImgs + (cambio_imagen.index % 10) + '.jpg';
		cambio_imagen.index++;
	}

};
