<!--
var intervalID = 0;

function inlineWindow(isModal, windowTitle, isError, message, useImage){
	var windowColor;
	var htmlText = '';
	htmlText = '<br /><br /><center>';

	if(useImage){
		htmlText = htmlText+'<span id="loading-gif"><img src="/images/loadingAnimation.gif" alt="" /></span><br /><br />';
	}
	
	htmlText = htmlText+'<p>'+message+'</p>';

	if(isError){
		windowColor = '#FF4609';
		htmlText = htmlText+'<div class="goon xsmall-red-button" style="padding:20px 125px 0 0;"><a class="small-one" id="cancel" onClick="tb_remove()";>'+phrases['layout']['JS_CERRAR']+'</a></div>';
	}
	
	htmlText = htmlText+'</center>';

	$("#thickbox-messages").html(htmlText);

	tb_show(windowTitle,"#TB_inline?height=140&amp;width=350&amp;inlineId=thickbox-messages");	

	if(windowColor){
		$("#TB_window").css("border","4px solid "+windowColor);
		$("#TB_title").css("background-color",windowColor);		
	}
	if(isModal){
		$("#TB_overlay").unbind();
		$("#TB_closeAjaxWindow").hide();
	}
	
	intervalID = setInterval("reloadLoadingImg();", 500);
}

var veces = 0;
function reloadLoadingImg(){
	veces++;
	$("#loading-gif").html('<img id="a'+veces+'" src="/images/loadingAnimation2.gif" alt="" />');
	clearInterval(intervalID);
}
-->
