function xmlhttp(){
		var xmlhttp;
		try{xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");}
		catch(e){
			try{xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");}
			catch(e){
				try{xmlhttp = new XMLHttpRequest();}
				catch(e){
					xmlhttp = false;
				}
			}
		}
		if (!xmlhttp) 
				return null;
			else
				return xmlhttp;
	}
	
function display_eventos()
{
document.getElementById('sgr_ventanaES').style.display = 'block';
	
} 
function display_none()
{
document.getElementById('sgr_ventanaES').style.display = 'none';
	
} 
function display_eventosC()
{
document.getElementById('sgr_ventanaC').style.display = 'block';
	
} 
function display_noneC()
{
document.getElementById('sgr_ventanaC').style.display = 'none';
	
} 
function mostrar_post(id)
{var div = document.getElementById('sgr_ventan_insideE');
	
		var ajax = xmlhttp();
		ajax.onreadystatechange=function(){
                if(ajax.readyState==1){
						div.style.display = 'block';
						div.innerHTML = '<div class="loading"><img src="/wp-content/themes/pallarols/images/ajax-loader.gif" title="Cargando" /></div>';
					}
				if(ajax.readyState==4){
						div.innerHTML = ajax.responseText;
						document.getElementById('sgr_ventan_insideE').style.display = 'block';
					}
			}

		ajax.open("GET","http://pallarols.com.ar/wp-content/themes/pallarols/singleC.php?id="+id,true);
		ajax.send(null);
		return
}
function mostrar_postA(id)
{var div = document.getElementById('sgr_ventan_insideE');
	
		var ajax = xmlhttp();
		ajax.onreadystatechange=function(){
              if(ajax.readyState==1){
						div.style.display = 'block';
						div.innerHTML = '<div class="loading"><img src="/wp-content/themes/pallarols/images/ajax-loader.gif" title="Cargando" /></div>';
					}
				if(ajax.readyState==4){
						div.innerHTML = ajax.responseText;
						document.getElementById('sgr_ventan_insideE').style.display = 'block';
					}
			}

		ajax.open("GET","http://pallarols.com.ar/wp-content/themes/pallarols/singleC.php?id="+id+"&bandera=1",true);
		ajax.send(null);
		return
}
function display_eventosT()
{
document.getElementById('sgr_ventanaTaller').style.display = 'block';
	
} 
function display_noneT()
{
document.getElementById('sgr_ventanaTaller').style.display = 'none';
	
} 
function mostrar_video()
{var div = document.getElementById('sgr_ventan_insideT');
	
		var ajax = xmlhttp();
		ajax.onreadystatechange=function(){
                if(ajax.readyState==1){
						div.style.display = 'block';
						div.innerHTML = '<div class="loading"><img src="/wp-content/themes/pallarols/images/ajax-loader.gif" title="Cargando" /></div>';
					}
				if(ajax.readyState==4){
						div.innerHTML = ajax.responseText;
						document.getElementById('sgr_ventan_insideT').style.display = 'block';
					}
			}

		ajax.open("GET","http://pallarols.com.ar/wp-content/themes/pallarols/tallerEnVivo.php",true);
		ajax.send(null);
		return
}
function mostrar_suscripcion(id)
{ if(id==1)
	{document.getElementById('imagenS').style.display='none';
	document.getElementById('formS').style.display='block';
	document.getElementById('resultado').innerHTML='';
	}else{
		document.getElementById('formS').style.display='none';
	document.getElementById('imagenS').style.display='block';
	document.getElementById('resultado').innerHTML='';
		}
return
	
}
function mostrar_mensajes()
{var div = document.getElementById('sgr_ventan_insideC');
	
		var ajax = xmlhttp();
		ajax.onreadystatechange=function(){
                if(ajax.readyState==1){
						div.style.display = 'block';
						div.innerHTML = '<div class="loadingC"><img src="/wp-content/themes/pallarols/images/ajax-loader.gif" title="Cargando" /></div>';
					}
				if(ajax.readyState==4){
						div.innerHTML = ajax.responseText;
						document.getElementById('sgr_ventan_insideC').style.display = 'block';
					}
			}

		ajax.open("GET","http://pallarols.com.ar/wp-content/themes/pallarols/singleC.php?bandera=2",true);
		ajax.send(null);
		return
}
function mostrar_usuario(nombre){
	 nombre = prompt("Escriba su nombre: ");
	if(nombre!='' && nombre!=null)
	 { document.getElementById('nommbreUsu').innerHTML=nombre;
	  document.getElementById('nombreI').value=nombre;
	 document.getElementById('mensaje').disabled=false;
	 document.getElementById('emailI').disabled=false;
		 }
	}
