function hiLite(imgObjName,imgDocID)
{
	document.images[imgDocID].src=eval(imgObjName+".src");
}

function updown(imgObjName,imgDocID,imgObjNameD)
{
	hiLite(imgObjNameD,imgDocID)
	imgDocID2=imgDocID;
	imgObjName2=imgObjName;
	setTimeout("hiLite(imgObjName2,imgDocID2)",500);
}

function next(nextsel)
{
	nextsel3=nextsel;
	var nextsel4=new String();
	nextsel4=nextsel4+nextsel3;
	window.location.href=nextsel4;
}

function waitnext(nextsel)
{
	nextsel2=nextsel;
	setTimeout("next(nextsel2)",700);
}

function button(picname,nexturl)
{
	temp=new String();
	tempd=new String();
	tempurl=new String();
	tempurl=nexturl;
	temp=picname;
	tempd=picname+"d";
	if(picname!="")
	{
		updown(temp,temp,tempd)
	}

	if(nexturl!="")
	{
		waitnext(tempurl);
	}
}
