(function()
{
	function disable(e)
	{
		if(!e)
			e = event;

		return "img" != (e.srcElement || e.target).tagName.toLowerCase() || ("mousedown" == e.type && 3 != (e.which || e.button + 1));
	}

	document.onmousedown = disable;
	document.ondragstart = disable;
	document.oncontextmenu = disable;
})();

/***********************************\
* Disable Select/Contextmenu Script *
*     Created by Brent Keklock      *
\***********************************/

/*
function fnDisable(e)
{
	var eSrc = e ? e.target : window.event.srcElement;
	var sSrcTag = eSrc.tagName;
	var sEventType = e ? e.type : window.event.type;

	if(sSrcTag == "TEXTAREA" || (sSrcTag == "INPUT" && (eSrc.type == "text" || eSrc.type == "password" || sEventType == "mousedown")))
		return true;

	if(window.getSelection)
		window.getSelection().removeAllRanges();

	return false;
}

if(typeof document.onselectstart == "undefined")
{
	document.onclick = function() { return true; };
	document.onmousedown = fnDisable;
}

document.onselectstart = fnDisable;
document.oncontextmenu = fnDisable;
*/
