var xmlhttp;

function MenuHover(MenuObj) {
  var GetURL;
  xmlhttp=null;

  GetURL = MenuObj.innerHTML;
  GetURL = "/Scripts/ASP/" + GetURL.replace(" ", "") + ".asp";

  if (window.XMLHttpRequest) {
    xmlhttp=new XMLHttpRequest();
  }
  else if (window.ActiveXObject) {
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  if (xmlhttp!=null) {
    xmlhttp.onreadystatechange=state_Change;
    xmlhttp.open("GET",GetURL,true);
    xmlhttp.send(null);
  }
  else {
    alert("Your browser does not support XMLHTTP.");
  }

  if (MenuObj.className == "MenuTable") {
    MenuObj.className = "MenuTable-Hov";
  }
  else {
    MenuObj.className = "MenuTable";
  }
}

function Menu_Ani_DoFSCommand(command, args) {
  var Screen_Ani_Obj;

  Screen_Ani_Obj = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ID='" + args + "_Ani' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#4,0,0,0' WIDTH='550px' HEIGHT='545px'>";
  Screen_Ani_Obj = Screen_Ani_Obj + "<PARAM name='movie' VALUE='/Graphics/SWF/" + args + "_Ani.swf'>";
  Screen_Ani_Obj = Screen_Ani_Obj + "<PARAM name='menu' VALUE='false'>";
  Screen_Ani_Obj = Screen_Ani_Obj + "<PARAM name='quality' VALUE='autohigh'>";
  Screen_Ani_Obj = Screen_Ani_Obj + "<PARAM name='scale' VALUE='exactfit'>";
  Screen_Ani_Obj = Screen_Ani_Obj + "<PARAM name='wmode' VALUE='opaque'>";
  Screen_Ani_Obj = Screen_Ani_Obj + "<EMBED name='" + args + "_Ani' WIDTH='550px' HEIGHT='545px' src='/Graphics/SWF/" + args + "_Ani.swf' menu='false' quality='autohigh' scale='exactfit' wmode='opaque' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></EMBED>";

  document.getElementById("DescripTable").innerHTML = Screen_Ani_Obj;
}

function Home_Ani_DoFSCommand(command, args) {
  alert(command + ": " + args);
  if (args=="InfoPrompt") {
    InfoPrompt();
  }
}

function ContactUs_Ani_DoFSCommand(command, args) {
  alert(command + ": " + args);
  if (args=="InfoPrompt") {
    InfoPrompt();
  }
}

function state_Change() {
  if (xmlhttp.readyState==4) {
    if (xmlhttp.status==200) {
      document.getElementById("DescripTable").innerHTML = xmlhttp.responseText;
    }
    else {
      alert("Problem retrieving data:" + xmlhttp.statusText);
    }
  }
}