<!--
// No rightclick script.
// Find more great scripts and applets at the JavaFile!
// http://www.javafile.com
// Do not delete this header!

var message="Sorry, we don't allow that on this site!."; // Put your message for the alert box between the quotes.

var arrExceptions = new Array();


// Don't edit below!

function IsException(elementName)
{
	var iIndex
	for(iIndex=0; iIndex<(arrExceptions.length+0); iIndex++)
	{
		if (arrExceptions[iIndex] == elementName)
		{		
			return true;
		}
	}
	return false;
}

/*
function click(e) {
	if (navigator.appName != 'Microsoft Internet Explorer') {
	
		if(IsException(e.target.id)) { return true; }
		
		if (e.which == 3) {
			alert(message);
			return false;	
		}
	} 
	if (navigator.appName == 'Microsoft Internet Explorer') {
		if(IsException(event.srcElement.id)) 
		{
			return true; 
		}
	
		if (event.button == 2) {
			alert(message);
			return false;
		}
	}
}
*/
function returnfalse(e) {
	if (navigator.appName == 'Microsoft Internet Explorer')
	{	
		if(IsException(event.srcElement.id)) 
		{
			return true; 
		}
	}
	else
	{
		
		if(IsException(e.srcElement.id)) 
		{
			return true; 
		}
	}
		
	//if (!(event.altKey)) {
		return false;
	//}
}

/*
if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
}

document.onmousedown=click;
*/


document.ondragstart=returnfalse;
document.onselectstart=returnfalse;



//New Right Click Script
var closeWin="0"; // Do you want to close window (1 for yes 0 for no)
var alertVis="1"; // Do you want to alert the visitor (1 for yes 0 for no)

//  JavaScript by Dave Lauderdale
//  Published at: www.digi-dl.com

function detail(){
	  if(alertVis == "1") alert(message); 
          if(closeWin == "1") self.close();
          return false;
}
function IE(e) 
{
	if (navigator.appName == 'Microsoft Internet Explorer')
	{	
		if(IsException(event.srcElement.id)) {return true;}
		if (event.button == "2" || event.button == "3"){ detail();}
    }
    /*else
    {
		if(IsException(e.target.id)) { return true; }
        if (e.which == "2" || e.which == "3"){ detail();}
    }*/
}
function NS(e) {
     if (document.layers || (document.getElementById && !document.all))
     {
		if(IsException(e.target.id)) { return true; }

          if (e.which == "2" || e.which == "3"){ detail();}
     }
}
document.onmousedown=IE;
document.onmouseup=NS;
document.oncontextmenu = new Function("return IsException(event.srcElement.id)");

// --> 

