var currentPage="";
titles = new Array(" "," "," "," "," "," "," "," "," "," "," ");
descs = new Array(" "," "," "," "," "," "," "," "," "," "," ");

function ajaxFunction(boxName, scriptName) {
	if(scriptName != currentPage) {
		var xmlHttp;
		try { xmlHttp=new XMLHttpRequest(); }	// Firefox, Opera 8.0+, Safari
		catch (e) {								// Internet Explorer
			try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }
			catch (e) {
				try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }
				catch (e) {
					document.getElementById(content).innerHTML="Your browser does not support AJAX!";
					return false;
					}
				}
			}
		xmlHttp.onreadystatechange=function() {
			if(xmlHttp.readyState==4) { document.getElementById(boxName).innerHTML=xmlHttp.responseText; }
			}
		xmlHttp.open("GET",scriptName,true);
		xmlHttp.send(null);
		currentPage = scriptName;
		}
	else {
		//document.getElementById('temp').innerHTML=currentPage + " already loaded";
		}
	}

//if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
//document.onmouseover=stats('foo');
//document.onmouseout=stats('foo');

function stats(message){
	window.status = message;
	//document.title = message;
	return true;
	}

function turnOn(obj){
	if(!obj.style)obj = document.getElementById(obj);
	obj.style.visibility = "visible";
	}

function turnOff(obj){
	if(!obj.style)obj = document.getElementById(obj);
	obj.style.visibility = "hidden";
	}

function swapImage(image, num){
	obj = document.getElementById("bigphoto");
	obj.style.background = "url(images/"+image+")";
	if(num > -1){
		title = document.getElementById("photoTitle");
		desc = document.getElementById("photoDesc");
		title.innerHTML = titles[num];
		desc.innerHTML = descs[num];
		}
	}







