//var xmlHttp

if (window.XMLHttpRequest) { // Mozilla, Safari, ...quitar
    xmlHttp = new XMLHttpRequest();///quitar
	xmlHttp2 = new XMLHttpRequest();
} else if (window.ActiveXObject) { // IE quitar
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");//quitar
	xmlHttp2 = new ActiveXObject("Microsoft.XMLHTTP");
}// quitar

function mostrarHome()
{
	document.getElementById("contenido").innerHTML="<div class='div-cargando' id='cargando'>cargando...</div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="mostrarHome.php"
	//url=url+"?q="+str+"&pag="+pag
	//url=url+"?"+str
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function mostrarCacao()
{
	document.getElementById("contenido").innerHTML="<div class='div-cargando' id='cargando'>cargando...</div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="mostrarCacao.html"
	//url=url+"?q="+str+"&pag="+pag
	//url=url+"?"+str
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 


function mostrarArtistas()
{
	document.getElementById("contenido").innerHTML="<div class='div-cargando' id='cargando'>cargando...</div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="mostrarArtistas.php"
	//url=url+"?q="+str+"&pag="+pag
	//url=url+"?"+str
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function mostrarDiscos()
{
	document.getElementById("contenido").innerHTML="<div class='div-cargando' id='cargando'>cargando...</div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="mostrarDiscos.php"
	//url=url+"?q="+str+"&pag="+pag
	//url=url+"?"+str
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function mostrarDisco(idDisco)
{
	document.getElementById("contenido").innerHTML="<div class='div-cargando' id='cargando'>cargando...</div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="mostrarDisco.php?idDisco="+idDisco
	//url=url+"?q="+str+"&pag="+pag
	//url=url+"?"+str
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function mostrarContacto()
{
	document.getElementById("contenido").innerHTML="<div class='div-cargando' id='cargando'>cargando...</div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="mostrarContacto.html"
	//url=url+"?q="+str+"&pag="+pag
	//url=url+"?"+str
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 
function mostrarDescargas()
{
	document.getElementById("contenido").innerHTML="<div class='div-cargando' id='cargando'>cargando...</div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="mostrarDescargas.php"
	//url=url+"?q="+str+"&pag="+pag
	//url=url+"?"+str
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 
function mostrarPublishing()
{
	document.getElementById("contenido").innerHTML="<div class='div-cargando' id='cargando'>cargando...</div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="mostrarPublishing.php"
	//url=url+"?q="+str+"&pag="+pag
	//url=url+"?"+str
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function mostrarBooking()
{
	document.getElementById("contenido").innerHTML="<div class='div-cargando' id='cargando'>cargando...</div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="mostrarBooking.php"
	//url=url+"?q="+str+"&pag="+pag
	//url=url+"?"+str
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 


function mostrarArtista(idArtista)
{
	document.getElementById("contenido").innerHTML="<div class='div-cargando' id='cargando'>cargando...</div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="mostrarArtista.php?idArtista="+idArtista
	//url=url+"?q="+str+"&pag="+pag
	//url=url+"?"+str
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function mostrarNoticias()
{
	document.getElementById("contenido").innerHTML="<div class='div-cargando' id='cargando'>cargando...</div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="mostrarNoticias.php"
	//url=url+"?q="+str+"&pag="+pag
	//url=url+"?"+str
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function mostrarNoticia(idNoticia)
{
	document.getElementById("contenido").innerHTML="<div class='div-cargando' id='cargando'>cargando...</div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="mostrarNoticia.php?idNoticia="+idNoticia
	//url=url+"?q="+str+"&pag="+pag
	//url=url+"?"+str
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("contenido").innerHTML=xmlHttp.responseText 
	} 
} 

function GetXmlHttpObject()
{ 
	var objXMLHttp=null
	if (window.XMLHttpRequest)
	{
		objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}