// JavaScript Document

// switches the image when mouse is over
function imgToggle(image, sel)
{
	img = image.src;
	
	if(/_off./.test(img))
		img = img.replace(/_off./, "_on.");
	else if(/_sel./.test(img))
		img = img.replace(/_sel./, "_on.");
	else
		if(sel)
			img = img.replace(/_on./, "_sel.");
		else
			img = img.replace(/_on./, "_off.");
	
	image.src = img;
}
