var xmlHttp

function mostrarContenido(str, contenedor) {
enviar=false;
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 


xmlHttp.onreadystatechange=function() {
		stateChanged(contenedor);
	}
xmlHttp.open("GET",str,true);

xmlHttp.send(null);

}

function stateChanged(contenedor) 
{ 
if (xmlHttp.readyState==4)
{ 
	document.getElementById(contenedor).innerHTML=xmlHttp.responseText;
}
}



function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}



alto=screen.height;

if (alto==1200)
{
document.write('<link rel="stylesheet" type="text/css" href="1200.css">');
}else if (alto==1024)
{
document.write('<link rel="stylesheet" type="text/css" href="1024.css">');
}else if (alto==900)
{
document.write('<link rel="stylesheet" type="text/css" href="900.css">');
}else if (alto==768)
{
document.write('<link rel="stylesheet" type="text/css" href="768.css">');
}else
{
document.write('<link rel="stylesheet" type="text/css" href="600.css">');
}




OCULTO="none";
VISIBLE="block";
	
function mostrar(pag) {

var url=pag;
mostrarContenido(url,'contacto');

  document.getElementById('contacto').style.display=VISIBLE;

}
 
function ocultar() {

  document.getElementById('contacto').style.display=OCULTO;

}
