var lastID = 0;

// this function will open a popup window
// that contains the picture to be viewed
function popImg(id)
{
	if (lastID > 0) 
	{
		document.getElementById(lastID).className = "thumbNormal";
	}
	document.getElementById(id).className = "thumbSelected";
	aWindow = window.open(document.getElementById(id).src,"classifiedPic", "width=600,height=400");
	lastID = id;	
}
// this function will swap the larger picture with that of the
// thumbnail that the mouse just crossed over
function swapImg(id) 
{
	if (lastID > 0) 
	{
		document.getElementById(lastID).className = "thumbNormal";
	}
	document.getElementById(id).className = "thumbSelected";
	document.getElementById(0).src = document.getElementById(id).src;
	lastID = id;
}

function LoadTrigger() 
{
	swapImg(1);
}
window.onload = LoadTrigger;
