function click (e)
{
	if (!e)
	{
		e = window.event;
	}
	
	if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3))
	{
		return false;
	}
}

if (document.layers)
{
	document.captureEvents(Event.MOUSEDOWN);
}

function imageInit()
{
	for (i = 0; i < document.images.length; ++i)
	{
		document.images[i].onmousedown = click;
		document.images[i].oncontextmenu = click;
	}
}
