var message="Copyright © 2004-2006 Andy''s Weblog";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
layerRef=""
StyleRef=""
if (navigator.appName=="Netscape"){ 
	layerRef=".layers"
	StyleRef=""
}else{
	layerRef=".all"
	StyleRef=".style"
}

function showmenu(MenuId)
 {
	document.all[MenuId].style.visibility='visible';
 }

function hidemenu(MenuId)
 
 {
	document.all[MenuId].style.visibility='hidden';
 
 }

function hidestatus(){
	window.status='.:: Andy.Blogfa ::. '
	return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
var FoundFocus = false;
function setFoundFocus() {FoundFocus = true;}
function resetFoundFocus() {FoundFocus = false;}
function getFoundFocus() {return FoundFocus;}
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++;
}
}


