// Rollover navigation for Echinatours.com
// Date: May 30th, 2009
// By: Edward Chan (www.instastudios.com)

function popUp(tour) {
	var url = "http://www.echinatours.com/maps.php?tour="+tour;
	window.open(url, "Window1", "menubar=no,width=450,height=380,toolbar=no");	
}



var xmlhttp;

function showInfo(str, tour, day)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
var url="http://www.intertrips.com/2010/getinfogg16.asp";
url=url+"?place="+str;
url=url+"&tour="+tour;
url=url+"&day="+day;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=stateChangedA;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function stateChangedA()
{
if (xmlhttp.readyState==4)
{
document.getElementById("tourmain").innerHTML=xmlhttp.responseText;
}


}
function stateChangedB()
{
if (xmlhttpS.readyState==4)
{
document.getElementById("priceArea").innerHTML=xmlhttpS.responseText;
}


}


function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  // code for IE6, IE5
  return new ActiveXObject("Microsoft.XMLHTTP");
  }
return null;
}

var xmlhttpS;

function showPrice(tour, str)
{
xmlhttpS=GetXmlHttpObject();
if (xmlhttpS==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
  if (str == "0") {
	str = document.priceTable.currS.value;  
  }
var url="http://www.echinatours.com/getprice.php";
url=url+"?cur="+str;
url=url+"&tour="+tour;
url=url+"&sid="+Math.random();
xmlhttpS.onreadystatechange=stateChangedB;
xmlhttpS.open("GET",url,true);
xmlhttpS.send(null);
}
