/*
'///////////////////////////////////////
' MODULE NAME:  imageControl.js

' COPYRIGHT:  Copyright (c) 1997-2003 
' MBI eSystem Version 03.2
' Meier Brothers Inc.  All Rights Reserved.

' CREATION DATE: 3/28/03
 
' LAST MODIFIED DATE: 4/7/03
'///////////////////////////////////////
*/

function imageClick(e,type,url){
	var msg;
	msg = "Sorry, right click on images has been disabled.";
	// Images that are getting enlarged
	if ((type == 'enlarge') || (type == 'close')){
		// Netscape just needs to be pushed to the popup image
		if (navigator.appName == 'Netscape' && e.which == 3){
			if (type == 'enlarge'){ popUpImage(type); }
			else if (type == 'close'){ window.close(); alert(msg);}
			}
		// IE needs to have an alert and then get pushed to the popup to prevent the menu from coming up
		else if (navigator.appName == 'Microsoft Internet Explorer' && event.button == 2){
			if (type == 'enlarge'){ alert(msg); popUpImage(type); }
			else if (type == 'close'){ alert(msg); window.close(); }
			}
		}
	// Images that just link to other pages
	else if (type == 'link'){
		// Netscape just needs to be pushed to the new page
		if (navigator.appName == 'Netscape' && e.which == 3){ window.location = url; }
		// IE needs to have an alert and then get pushed to the new page to prevent the menu from coming up
		else if (navigator.appName == 'Microsoft Internet Explorer' && event.button == 2){
			alert(msg);
			window.location = url;
			}
		}
	// Images that don't link to anything
	else if (type == 'nothing'){
		// Netscape needs
		if (navigator.appName == 'Netscape' && e.which == 3){ return false; }
		// IE needs to have an alert
		else if (navigator.appName == 'Microsoft Internet Explorer' && event.button == 2){
			alert(msg);
			}
		}
}

function imageClick2(e,type){
	var msg;
	msg = "Sorry, right click on images has been disabled.";
	// Netscape needs second alert message for the onMouseUp
	if (navigator.appName == 'Netscape' && e.which == 3){
		if ((type == 'link') || (type == 'nothing')){ alert(msg); }
		}
}
