// JavaScript Document

var xmlhttp;

function loadXML_txtfile(url)
{

  if (window.XMLHttpRequest)
  {
    // code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
    xmlhttp.onreadystatechange=stateChange;
    xmlhttp.open("GET",url,true);
    xmlhttp.send(null);
  }
  else
  {
    // code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.onreadystatechange=stateChange;
    xmlhttp.open("GET",url,true);
    xmlhttp.send();
  }
}

function stateChange()
{
  if (xmlhttp.readyState==4)
  {
    if (xmlhttp.status==200)
    {
      // process whatever has been sent back here
      document.getElementById('Main_Content').innerHTML=xmlhttp.responseText;
    }
    else
    {
      alert("There was a problem in the returned data");
    }
  }
}

function test_alert(txt)
{
  alert(txt);
}

function newlocation(txt)
{
  window.open(txt);
}

function showArt(url)
{
  var newImage = "<img class='art_piece' src='" + url + "'></img>"

  document.getElementById('Art_Container').innerHTML = newImage;
}

function showArt2(src)
{
  alert(src);
}


// The two functions below control the image changes on the main menu

function MakeItemBigger(obj) 
{
	obj.style.width="130px";
	obj.style.height="40px";
	obj.style.marginRight="0px";
	obj.style.marginLeft="0px";
	obj.style.fontSize="18px";
	obj.style.color="#FFFFFF";
	obj.style.background="#FFFFFF";
	obj.style.backgroundImage="url('img_CLIA3/FireBreathingDragon.gif')"
}

function MakeItemSmaller(obj) 
{
	obj.style.width="110px";
	obj.style.height="20px";
	obj.style.marginRight="10px";
	obj.style.marginLeft="10px";
	obj.style.color="#000000";
	obj.style.fontSize="8px";
	obj.style.background="#999999";
	obj.style.backgroundImage="url('img_CLIA3/blank_110x20.gif')"
}

