	// Function which shows the Context Menu by calling
	// cswmShow and passing in coordinates.
	function ShowContextMenu(e)
	{
		// Quick and Dirty IE NN 6.1 Detection
		if(document.oncontextmenu)
		{
			// IE
			if(document.all)
				cswmShow('menu_context', '', 'below', event.x + document.body.scrollLeft, event.y + document.body.scrollTop, 1);
			// NN 6.1
			else
				cswmShow('menu_context', '', 'below', e.pageX, e.pageY, 1);
			return false;
		}
		// Quick and Dirty NN4 Detection
		else if (document.layers)
		{
		    if (e.which == 3)
			{
				cswmShow('menu_context', '', 'below', e.pageX, e.pageY, 1);
				return false;
			}
		}
		// Quick and Dirty NN6.0 Detection
		else if (document.getElementById)
		{
		    if (e.which == 3)
			{
				e.preventDefault();
				cswmShow('menu_context', '', 'below', e.pageX, e.pageY, 1);
				return false;
			}
		}
    }
	
	// capture event for context menu
	// Quick and Dirty NN4 Detection
	if(document.layers)
	{
		document.captureEvents(Event.MOUSEDOWN);
		document.onmousedown=ShowContextMenu;
	}
	// Quick and Dirty IE Detection
	else if(typeof document.oncontextmenu == "object")
	{
		document.oncontextmenu = ShowContextMenu;
	}
	// Quick and Dirty NN6 Detection
	else if(!document.all && document.getElementById)
	{
		//  NN 6.1 requires different handling than 6.0
		if(parseFloat(navigator.vendorSub)>=6.1)
			document.oncontextmenu=ShowContextMenu;
		else
			document.onmouseup=ShowContextMenu;
	}