
function toggleOpen(div1,div2,imag1,imag2)
{
	document.getElementById(div1).style.display = 'none';
	document.getElementById(div2).style.display = 'block';
	document.getElementById(imag1).style.display = 'none';
	document.getElementById(imag2).style.display = 'inline';
}

function toggleClose(div1,div2,imag1,imag2)
{
	document.getElementById(div1).style.display = 'block';
	document.getElementById(div2).style.display = 'none';
	document.getElementById(imag1).style.display = 'inline';
	document.getElementById(imag2).style.display = 'none';
}

function hoverOn(id,picName,ext)
{
	if(!window.XMLHttpRequest)
	{
		filterStr="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=graphics/"+picName+"On."+ext+", sizingMethod=scale)";
		//alert(filterStr);
		document.getElementById(id).style.filter=filterStr;
	}
	else
	{
		//alert("srcing");
		document.getElementById(id).src='graphics/' + picName + 'On.' + ext;
	}
}

function hoverOff(id,picName,ext)
{
	if(!window.XMLHttpRequest)
	{
		document.getElementById(id).style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=graphics/"+picName+"."+ext+", sizingMethod=scale)";
	}
	else
	{
		document.getElementById(id).src='graphics/' + picName + '.' + ext;
	}
}
