// JavaScript Document

//HOME (INDEX)

function ajaxHome()

  {

  var xmlHttp;

  try

    {

    // Firefox, Opera 8.0+, Safari

    xmlHttp=new XMLHttpRequest();

    }

  catch (e)

    {

    // Internet Explorer

    try

      {

      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

      }

    catch (e)

      {

      try

        {

        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

        }

      catch (e)

        {

        alert("Your browser does not support AJAX!");

        return false;

        }

      }

    }

    xmlHttp.onreadystatechange=function()

      {

      if(xmlHttp.readyState==4)

        {

        document.getElementById("text").innerHTML=xmlHttp.responseText;

        }

      }

    xmlHttp.open("GET","content/index.htm",true);

    xmlHttp.send(null);

  };

  

  

  //SIDEBAR

  

  function ajaxSidebar()

  {

  var xmlHttp;

  try

    {

    // Firefox, Opera 8.0+, Safari

    xmlHttp=new XMLHttpRequest();

    }

  catch (e)

    {

    // Internet Explorer

    try

      {

      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

      }

    catch (e)

      {

      try

        {

        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

        }

      catch (e)

        {

        alert("Your browser does not support AJAX!");

        return false;

        }

      }

    }

    xmlHttp.onreadystatechange=function()

      {

      if(xmlHttp.readyState==4)

        {

        document.getElementById("sidebar").innerHTML=xmlHttp.responseText;

        }

      }

    xmlHttp.open("GET","recent_projects.php",true);

    xmlHttp.send(null);

  };





///SERVICES

  

  

function ajaxServices()

  {

  var xmlHttp;

  try

    {

    // Firefox, Opera 8.0+, Safari

    xmlHttp=new XMLHttpRequest();

    }

  catch (e)

    {

    // Internet Explorer

    try

      {

      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

      }

    catch (e)

      {

      try

        {

        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

        }

      catch (e)

        {

        alert("Your browser does not support AJAX!");

        return false;

        }

      }

    }

    xmlHttp.onreadystatechange=function()

      {

      if(xmlHttp.readyState==4)

        {

        document.getElementById("text").innerHTML=xmlHttp.responseText;

        }

      }

    xmlHttp.open("GET","content/project_menu.php",true);

    xmlHttp.send(null);

  };

  

  

  //DEMO



function ajaxDemo()

  {



  var xmlHttp;

  try

    {

    // Firefox, Opera 8.0+, Safari

    xmlHttp=new XMLHttpRequest();

    }

  catch (e)

    {

    // Internet Explorer

    try

      {

      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

      }

    catch (e)

      {

      try

        {

        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

        }

      catch (e)

        {

        alert("Your browser does not support AJAX!");

        return false;

        }

      }

    }

    xmlHttp.onreadystatechange=function()

      {

      if(xmlHttp.readyState==4)

        {

        document.getElementById("services").innerHTML=xmlHttp.responseText;

        }

      }

	 xmlHttp.open("GET","content/demo_intro.php",true);

    xmlHttp.send(null);

  };



//MUSIC  ON(jukebox top strip)	

	

	function ajaxMusic()

  {

  var musicpage="";

  var xmlHttp;

  try

    {

    // Firefox, Opera 8.0+, Safari

    xmlHttp=new XMLHttpRequest();

    }

  catch (e)

    {

    // Internet Explorer

    try

      {

      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

      }

    catch (e)

      {

      try

        {

        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

        }

      catch (e)

        {

        alert("Your browser does not support AJAX!");

        return false;

        }

      }

    }

    xmlHttp.onreadystatechange=function(){

	

      if(xmlHttp.readyState==4)

	   if(musicpage=="")

        {

	        document.getElementById("jukebox_top").innerHTML=xmlHttp.responseText;

		

		        }

		else 	{

		

			  alert("Your browser does not support AJAX!");

			 

      }

	  }

	

	 xmlHttp.open("GET","jukebox_top.php",true);

	 xmlHttp.send(null);

	

  };

//MUSIC  OFF(jukebox top strip)	

	

	function ajaxMusic_off()

  {

  var musicpage="";

  var xmlHttp;

  try

    {

    // Firefox, Opera 8.0+, Safari

    xmlHttp=new XMLHttpRequest();

    }

  catch (e)

    {

    // Internet Explorer

    try

      {

      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

      }

    catch (e)

      {

      try

        {

        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

        }

      catch (e)

        {

        alert("Your browser does not support AJAX!");

        return false;

        }

      }

    }

    xmlHttp.onreadystatechange=function(){

	

      if(xmlHttp.readyState==4)

	   if(musicpage=="")

        {

	        document.getElementById("jukebox_top").innerHTML=xmlHttp.responseText;

		

		        }

		else 	{

		

			  alert("Your browser does not support AJAX!");

			 

      }

	  }

	

	 xmlHttp.open("GET","jukebox_off.php",true);

	 xmlHttp.send(null);

	

  };

  
  



  ////ABOUT (page)

  

  function ajaxAbout()

  {

  var xmlHttp;

  try

    {

    // Firefox, Opera 8.0+, Safari

    xmlHttp=new XMLHttpRequest();

    }

  catch (e)

    {

    // Internet Explorer

    try

      {

      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

      }

    catch (e)

      {

      try

        {

        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

        }

      catch (e)

        {

        alert("Your browser does not support AJAX!");

        return false;

        }

      }

    }

    xmlHttp.onreadystatechange=function()

      {

      if(xmlHttp.readyState==4)

        {

        document.getElementById("text").innerHTML=xmlHttp.responseText;

        }

      }

	 xmlHttp.open("GET","content/about.htm",true);

    xmlHttp.send(null);

  };

  

  

  ///WEB PROJECTS

  



function ajaxWeb()

  {

  var xmlHttp;

  try

    {

    // Firefox, Opera 8.0+, Safari

    xmlHttp=new XMLHttpRequest();

    }

  catch (e)

    {

    // Internet Explorer

    try

      {

      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

      }

    catch (e)

      {

      try

        {

        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

        }

      catch (e)

        {

        alert("Your browser does not support AJAX!");

        return false;

        }

      }

    }

    xmlHttp.onreadystatechange=function()

      {

      if(xmlHttp.readyState==4)

        {

        document.getElementById("services").innerHTML=xmlHttp.responseText;

        }

      }

	 xmlHttp.open("GET","content/web_projects.htm",true);

    xmlHttp.send(null);

  };



///PRINT projects

	  

	  function ajaxPrint()

  {

  var xmlHttp;

  try

    {

    // Firefox, Opera 8.0+, Safari

    xmlHttp=new XMLHttpRequest();

    }

  catch (e)

    {

    // Internet Explorer

    try

      {

      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

      }

    catch (e)

      {

      try

        {

        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

        }

      catch (e)

        {

        alert("Your browser does not support AJAX!");

        return false;

        }

      }

    }

    xmlHttp.onreadystatechange=function()

      {

      if(xmlHttp.readyState==4)

        {

        document.getElementById("services").innerHTML=xmlHttp.responseText;

        }

      }

	 xmlHttp.open("GET","content/print_projects.php",true);

    xmlHttp.send(null);

  };



//CD projects

	  

function ajaxCD()

  {

  var xmlHttp;

  try

    {

    // Firefox, Opera 8.0+, Safari

    xmlHttp=new XMLHttpRequest();

    }

  catch (e)

    {

    // Internet Explorer

    try

      {

      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

      }

    catch (e)

      {

      try

        {

        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

        }

      catch (e)

        {

        alert("Your browser does not support AJAX!");

        return false;

        }

      }

    }

    xmlHttp.onreadystatechange=function()

      {

      if(xmlHttp.readyState==4)

        {

        document.getElementById("services").innerHTML=xmlHttp.responseText;

        }

      }

	 xmlHttp.open("GET","content/cd_projects.htm",true);

    xmlHttp.send(null);

  };





//FLASH projects





function ajaxFlash()

  {

  var xmlHttp;

  try

    {

    // Firefox, Opera 8.0+, Safari

    xmlHttp=new XMLHttpRequest();

    }

  catch (e)

    {

    // Internet Explorer

    try

      {

      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

      }

    catch (e)

      {

      try

        {

        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

        }

      catch (e)

        {

        alert("Your browser does not support AJAX!");

        return false;

        }

      }

    }

    xmlHttp.onreadystatechange=function()

      {

      if(xmlHttp.readyState==4)

        {

        document.getElementById("services").innerHTML=xmlHttp.responseText;

        }

      }

	 xmlHttp.open("GET","content/flash_projects.htm",true);

    xmlHttp.send(null);

  };


//LINKS





function ajaxLinks()

  {

  var xmlHttp;

  try

    {

    // Firefox, Opera 8.0+, Safari

    xmlHttp=new XMLHttpRequest();

    }

  catch (e)

    {

    // Internet Explorer

    try

      {

      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

      }

    catch (e)

      {

      try

        {

        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

        }

      catch (e)

        {

        alert("Your browser does not support AJAX!");

        return false;

        }

      }

    }

    xmlHttp.onreadystatechange=function()

      {

      if(xmlHttp.readyState==4)

        {

        document.getElementById("text").innerHTML=xmlHttp.responseText;

        }

      }

	 xmlHttp.open("GET","content/links.php",true);

    xmlHttp.send(null);

  };





	  


	  