
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
 
var message="Sorry.";
 
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
 
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
 
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

/* 
document.oncontextmenu=new Function("alert(message);return false")
 */

function NewWindow(mypage, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, 'ik', winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function displayMenu(currentMenu) {

var thisMenu = document.getElementById(currentMenu).style
// The above creates a new function that will expand and contract certain menus that are specified.
if (thisMenu.display == "block") {
thisMenu.display = "none"
} else {
thisMenu.display = "block"
}
return false
}

function change(itemid)
{
	document.getElementById(itemid).setAttribute("className", "vis");
	document.getElementById(itemid).setAttribute("class", "vis");
}
			
function unchange(itemid)
{
	document.getElementById(itemid).setAttribute("className", "unvis");
	document.getElementById(itemid).setAttribute("class", "unvis");
}