/*---
Name			:	common.js
Authors			:	Ron Jonk
Date			:	03-01-2000
Version			:	1.0
Purpose			:	common function called in almost every page
Dependencies	:	
Usage			:   call browsercheck() to get the specifications of the browser
					call openWindow(url,name,props) to create a popupwindow and object 'windowobj'
					

Version History:
1.0	-	24/11/2000	-	

// Copyright (C) 2000  CMG
*/

// BrowserCheck Object
function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v>=5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.min = (this.ns||this.ie)
	this.mac = (navigator.appVersion.indexOf('Mac')> 0)
}
is = new BrowserCheck()

//create popupwindow
var windowobj;
function openWindow(url,name,props) {
	if (is.ie && windowobj!=null) windowobj.close();
	windowobj = window.open(url,name,props);
	if (windowobj.opener == null) windowobj.opener=self;
}



//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="(c) Epoc Entertainment";

///////////////////////////////////
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")

