var xmlHttp;

function showImage() {
	document.getElementById("loadingBig").style.visibility="hidden";
	document.getElementById("bigimg").style.visibility="visible";
}
function hideImage() {
	document.getElementById("bigimg").style.visibility="hidden";
	document.getElementById("loadingBig").style.visibility="visible";
}


function ShowMain(str,searchterm,thispage)
{ 

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request");
return;
} 
var url="http://www.wild-wonders.com/includes/inc-gallery-getbigimage.asp?";
params="img="+str+"&searchterm="+searchterm+"&more="+more+"&thispage="+thispage;
params=params+"&sid="+Math.random();
url=url+params;

xmlHttp.onreadystatechange=stateChanged ;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("replacethis").innerHTML=xmlHttp.responseText;
} 
} 

/*function GetXmlHttpObject()
{ 
var objXMLHttp=null;
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
return objXMLHttp;
}*/

function GetXmlHttpObject() { 
	if (typeof XMLHttpRequest != 'undefined') { 
		return new XMLHttpRequest(); } 
	try { 
		return new ActiveXObject("Msxml2.XMLHTTP"); } 
	catch (e) { 
	try { 
		return new ActiveXObject("Microsoft.XMLHTTP"); } 
	catch (e) {} } 
return false; }
