//Disable right click script III- By Renigade (renigade@mediaone.net)

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")


function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.3
else if (which2.filters)
which2.filters.alpha.opacity=50
}
function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}


function makevisible(cur,which){
strength=(which==0)? 1 : 0.2

if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else if (cur.filters)
cur.filters.alpha.opacity=strength*100
}

function SetupEvents()
{
	
	if (window.sidebar)
	{	
		document.onmousedown=handleMouseDown;
		document.onclick=handleClick;
	}
	if (document.all)
		document.onselectstart=handleSelectStart

}

//*********************
//uncomment to turn on
SetupEvents();



function handleSelectStart(evnt) {return false;}
function handleMouseDown(evnt) {return (window.sidebar )?(getFoundFocus())?true:false:false;}
function handleClick(evnt){return true;}

function CheckForFormFocus()
{
	var i = j = 0;
	while (i < document.forms.length && !getFoundFocus())
	{
		j = 0;
		while (j < document.forms[i].length && !getFoundFocus())
		{
			document.forms[i].elements[j].onmouseover = setFoundFocus;
			document.forms[i].elements[j].onmouseout = resetFoundFocus;
			j++;
		}

	i++;
	}
}

