var resetIds = ["about-jim","about-gina","about-dj","about-jenniferm","about-elissa","about-kelly","about-jennifer","about-ashley","about-maryk"];
var resetCls = ["jim","gina","dj","jenniferm","elissa","kelly","jennifer","ashley","maryk"];
var imgs = ["images/pic-jim.jpg","images/pic-gina.jpg","images/pic-dj.jpg","images/pic-jenniferm.jpg","images/pic-elissa.jpg","images/pic-kelly.jpg","images/pic-jennifer.jpg","images/pic-ashley.jpg","images/pic-maryk.jpg"]
function switchit(div, classl, pic)
{
	for(i=0; i<9; i++)
	{
		document.getElementById(resetCls[i]).className = "";
		document.getElementById(resetIds[i]).style.display = "none";
	}
	document.getElementById(div).style.display = "block";
	document.getElementById(classl).className = "chactive";
	document.getElementById("profileimgs").src = imgs[pic];
}
function gswitch(r,q)
{
	var nextimg = 'images/gallery/' + r + '/' + q;
	document.getElementById("gallery").src = nextimg;
}

var xmlHttp;
function showThumbs(str)
{ 
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="thumbs.php";
	url=url+"?a="+str;
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
function stateChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("thumbsets").innerHTML=xmlHttp.responseText;
	} 
}
function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}
function uploadImg()
{
	document.getElementById("btn").style.display = "none";
	document.getElementById("lod").style.display = "block";
}
