// JavaScript Document
var rightClickMsg = "Right clicking is prohibted. &copy; Dacoutros 2007. All Rights Reserved." // on right click event display this message
//////////////// DO NOT EDIT BELOW ///////////////////////////

var isNS = (navigator.appName == "Netscape") ? 1 : 0;
var EnableRightClick = 0;
if(isNS)
document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
if(EnableRightClick==1){ return true; }
else {alert (rightClickMsg);return false; }
}
function mousehandler(e){
if(EnableRightClick==1){ return true; }
var myevent = (isNS) ? e : event;
var eventbutton = (isNS) ? myevent.which : myevent.button;
if((eventbutton==2)||(eventbutton==3)) return false;
}
function keyhandler(e) {
var myevent = (isNS) ? e : window.event;
if (myevent.keyCode==96)
EnableRightClick = 1;
return;
}
document.oncontextmenu = mischandler;
document.onkeypress = keyhandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;

function WinPopup(location)
{
	if (self.screen) {     // for NN4 and IE4
        width = screen.width
        height = screen.height
	// Testing this first prevents firing the slow Java of NN4
	}
	else if (self.java) {   // for NN3 with enabled Java
       var jkit = java.awt.Toolkit.getDefaultToolkit();
       var scrsize = jkit.getScreenSize();       
       width = scrsize.width; 
       height = scrsize.height; 
	}
	else{
	 width = height = '?' // N2, E3, N3 w/Java off, probably Opera and WebTV

	}

	mywindow = window.open("popup.asp?img="+location,"myWindow","location=0,menubar=0,resizable=0,scrollbars=yes,width="+width+",height="+height+",status=0");
}