// JavaScript Document
var xmlHttp //

function showHeader()
{ 
    xmlHttp=GetXmlHttpObject()
      var param="../plantillas_php/Header_Maya_art_books2.php";// aqui es donde ustedes escriben donde se encuentra su header.
    if (xmlHttp==null)
      {
      alert ("Browser does not support HTTP Request")
      return
      }     
    xmlHttp.onreadystatechange=stateChanged //esto se manda a llamar mas abajo..
    xmlHttp.open("GET",param,true)
    xmlHttp.send(null)
    
}
function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
   document.getElementById("header").innerHTML= xmlHttp.responseText // en donde dice header deben poner el id del span donde quieren que su pagina lo muestre.
 } 
}
//luego todo lo de arriba se repite pero con distintos nombres... esta funcion se llama showFree().. y muestra la columna de Free Downloads.
var xmlHttp2
function showfree(){
xmlHttp2=GetXmlHttpObject()
var free="../plantillas_php/Free_Downloads_Maya2.php";
    if (xmlHttp2==null)
      {
      alert ("Browser does not support HTTP Request")
      return
      }         
        xmlHttp2.onreadystatechange=stateChanged2 
        xmlHttp2.open("GET",free,true)
        xmlHttp2.send(null)
}

function stateChanged2() 
{ 
if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
 { 
  document.getElementById("free").innerHTML= xmlHttp2.responseText
 } 
}

var xmlHttp3
function showfree2(){
var free2="../Plantilla_php/Downloads_Large_22.php";
xmlHttp3=GetXmlHttpObject()
if (xmlHttp3==null)
      {
      alert ("Browser does not support HTTP Request")
      return
      }       
      xmlHttp3.onreadystatechange=stateChanged3 
      xmlHttp3.open("GET",free2,true)
      xmlHttp3.send(null)
}

function stateChanged3() 
{ 
 if (xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete")
 { 
   document.getElementById("free2").innerHTML= xmlHttp3.responseText
 } 
}

var xmlHttp4
function showSurvey(){
xmlHttp4=GetXmlHttpObject()
var Survey="../plantillas_php/Free_Survey_Maya2.php";
    if (xmlHttp4==null)
      {
      alert ("Browser does not support HTTP Request")
      return
      }         
        xmlHttp4.onreadystatechange=stateChanged4
        xmlHttp4.open("GET",Survey,true)
        xmlHttp4.send(null)
}
function stateChanged4() 
{ 
if (xmlHttp4.readyState==4 || xmlHttp4.readyState=="complete")
 { 
   document.getElementById("Survey").innerHTML= xmlHttp4.responseText
 } 
}

var xmlHttp5
function showLink(){
xmlHttp5=GetXmlHttpObject()
var Link="../plantillas_php/Links_MAB2.php";
    if (xmlHttp5==null)
      {
      alert ("Browser does not support HTTP Request")
      return
      }         
        xmlHttp5.onreadystatechange=stateChanged5
        xmlHttp5.open("GET",Link,true)
        xmlHttp5.send(null)
}
function stateChanged5() 
{ 
if (xmlHttp5.readyState==4 || xmlHttp5.readyState=="complete")
 { 
   document.getElementById("Link").innerHTML= xmlHttp5.responseText
 } 
}

var xmlHttp6
function showFooter(){
xmlHttp6=GetXmlHttpObject()
var Footer="../plantillas_php/Footer_MAB2.php";
    if (xmlHttp6==null)
      {
      alert ("Browser does not support HTTP Request")
      return
      }         
        xmlHttp6.onreadystatechange=stateChanged6
        xmlHttp6.open("GET",Footer,true)
        xmlHttp6.send(null)
}
function stateChanged6() 
{ 
if (xmlHttp6.readyState==4 || xmlHttp6.readyState=="complete")
 { 
   document.getElementById("Footer").innerHTML= xmlHttp6.responseText
 } 
}

var xmlHttp7
function showecommerce(){
xmlHttp7=GetXmlHttpObject()
var ecommerce="../Plantilla_PHP/Ecommerce_new_design2.php";
    if (xmlHttp7==null)
      {
      alert ("Browser does not support HTTP Request")
      return
      }         
        xmlHttp7.onreadystatechange=stateChanged7
        xmlHttp7.open("GET",ecommerce,true)
        xmlHttp7.send(null)
}
function stateChanged7() 
{ 
if (xmlHttp7.readyState==4 || xmlHttp7.readyState=="complete")
 { 
   document.getElementById("ecommerce").innerHTML= xmlHttp7.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
}