			
		function showContent(content){
			//$("#lightBackground").fadeIn("fast");
			$("#lightBox").css({opacity:0.9, display:"block"}).fadeIn(400);
			//css({opacity:0.8, display:"none"}).fadeIn(400)
			//$("#lightBoxContent").load(content);
		}
		
		function hideContent(){
			$("#lightBackground").fadeOut("slow");
			$("#lightBox").fadeOut("slow");
		}
			
		function showContentForo(content){
				$("#lightBackground").fadeIn("fast");
				//$("#lightBox").css({opacity:1, display:"none", width:840, height:610, left:550, top:300}).fadeIn(800);
				$("#lightBox").css({opacity:1, display:"none", width:840, height:610}).fadeIn(800);
				$("#lightBoxContent").css({width:740, height:500}).fadeIn(800);
				//$("#lightBoxClose").css({margin-left:850}).fadeIn(800);
				//css({opacity:0.8, display:"none"}).fadeIn(400)
				$("#lightBoxContent").load(content);
				
				$("#lightBox").css("position","absolute");
				$("#lightBox").css("left", ($(window).width() - 420) / 2 + $(window).scrollLeft() + "px");
				$("#lightBox").css("top", ($(window).height() - 60) / 2 + $(window).scrollTop() + "px");
				$("#lightBox").focus();
			}
		function hideContentForo(){
				$("#lightBackground").fadeOut("slow");
				$("#lightBox").fadeOut("slow");
			}	

		
		function displayRecetas(){
			$("#lightBackground").fadeIn("fast");
			$("#lightRecetas").css({opacity:1, display:"none", width:1020, height:760}).fadeIn(800);
			$("#lightBoxContent").css({opacity:1, display:"none", width:1020, height:760}).fadeIn(800);
			$("#lightBoxCerrar").hide();
			
			$("#lightRecetas").html("<object type='application/x-shockwave-flash' data='assets/media/main-recetario.swf' width='100%' height='100%'><param name='wmode' value='transparent' /><param name='movie' value='assets/media/main-recetario.swf' /> <p>Alternative content</p></object>");
			
			$("#lightRecetas").css("position", "absolute");
			$("#lightRecetas").css("left", ($(window).width() - 500) / 2 + $(window).scrollLeft() + "px");
			$("#lightRecetas").css("top", ($(window).height() - 60) / 2 + $(window).scrollTop() + "px");
			$("#lightRecetas").focus();
		}

			
		
/*		
		function displayRecetas(){
			
			$("#lightBackground").fadeIn("fast");
			$("#lightRecetas").css({opacity:0.9, display:"none", width:1020, height:760}).fadeIn(800);
			$("#lightBoxContentRec").css({opacity:0.9, display:"none", width:1020, height:760}).fadeIn(800);
			//$("#lightBackground").fadeIn("fast");
			//$("#lightRecetas").css({opacity:0.9, display:"none"}).fadeIn(800);
			//$("#lightBoxCerrar").show();
			
			
			var flashvars = {};
			var params1 = {};
			params1.wmode = "transparent";
			
			
			if (jQuery.support.boxModel){
				//console.log("OTROS");
				swfobject.embedSWF("assets/media/main-recetario.swf", "lightRecetas", "100%", "100%", "10.0.0","assets/media/expressInstall.swf", flashvars, params1, attributes);
					
			} else {
				//console.log("IE");
				var movieToLoad = "<object type='application/x-shockwave-flash' data='assets/media/main-recetario.swf' width='" + 800 + "' height='" + 600 + "'>";
				movieToLoad			+= "<param name='wmode' value='transparent' />";
				movieToLoad 		+= "<param name='movie' value='assets/media/main-recetario.swf' />";
				movieToLoad 		+= "<p>Alternative content</p></object>";
				
				var newdiv = document.createElement("div");
				newdiv.innerHTML = movieToLoad;
				var container = document.getElementById("lightRecetas");
				container.appendChild(newdiv);
			}
			
			//$("#lightRecetas").css("position","relative");
			$("#lightRecetas").css("position","absolute");
			$("#lightRecetas").css("left", ($(window).width() - 500) / 2 + $(window).scrollLeft() + "px");
			$("#lightRecetas").css("top", ($(window).height() - 60) / 2 + $(window).scrollTop() + "px");
			$("#lightRecetas").focus();
		}
*/
		
		function hideRecetas(){
			
			$("#lightBoxContent").fadeOut("slow");
			$("#lightBoxContentRec").fadeOut("slow");
			$("#lightBoxCerrar").fadeOut("slow");
			$("#lightRecetas").fadeOut("slow");
			$("#lightBackground").fadeOut("slow");
			$("#lightRecetas").fadeOut("slow");
			$("#lightBox").fadeOut("slow");
		}
		






	function runSubmit__formParticipa(tema)  
	{		   
	 
		if (!testBox(document.formData.autor,true,100,true,false,false,"Necesitamos conocer tu nombre",false,"",false)) return false;     
		if (!testBox(document.formData.comentario,true,300,true,false,false,"Haz tu comentario",false,"",false)) return false;
		 
	   var is_confirmed;
	   is_confirmed  = confirm("Vamos a grabar esta informaci"+String.fromCharCode(243)+"n. "+String.fromCharCode(191)+"Quieres continuar?");
	   
	   if (is_confirmed)
       { 	 
			enviarFormularioPost("foro_ps/expresate-participa-save2.php?id_tema="+tema+"",'formData',false,'',"","",false,'');
			resetThisForm('formData');   
			alert("Tu comentario a sido exitosamente enviado!");
	   }
				
	   return is_confirmed;    
	}
		
