
/*
Script by RoBorg
RoBorg@geniusbug.com
http://javascript.geniusbug.com | http://www.roborg.co.uk
Please do not remove or edit this message
Please link to this website if you use this script!
*/




function initCMenu()
{
	cMenu = new divObject('cMenuDiv', 'document.');
	cMenu.activate();

	if(!browserVars.type.getById)
		document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown = click;

	cMenu.div.width = cMenu.width; //<hr> Bug Fix
}



function click(e)
{
	if(browserVars.type.ie)
	{
		var button = event.button;
		browserVars.updateVars();
		browserVars.updateMouse();
	}
	else
		var button = e.which -1;

	if(button != 2)
	{
		setTimeout("cMenu.hide()", 100);
		return;
	}

	cMenu.moveTo(browserVars.mouseX, browserVars.mouseY);
	cMenu.show();
	return false;
}



function showSource()
{
	document.location = 'view-source:' + document.location;
}

