function chg1pic(imgnam1, pic) {
document[imgnam1].src=[pic]
}

function PopUpWin(url, name, window_options) 
{
  popupWin = window.open(url,name,window_options)
  popupWin.focus()
}

function productWin(url) 
{
  popupWin = window.open(url,"product","width=620,height=640,scrollbars=yes,resizable=yes")
  popupWin.focus()
}

function tallproductWin(url) 
{
  popupWin = window.open(url,"product","width=620,height=800,scrollbars=yes,resizable=yes")
  popupWin.focus()
}

function soundBite(url) 
{
  popupWin = window.open(url,"soundclip","width=640,height=480,scrollbars=yes,resizable=yes")
  popupWin.focus()
}

// This method will load up a link to a full page from a sound clip
//     1) The window who opened this window (assumption is made that this page was loaded from the CRT page)
//        and in that case will also close the popup window called 'sound clip'
//        and the location of the window is changed to that window and the focus set there
//     2) a new window if the sound clip was load independently

function gotoSound(url)
{
    if (window.opener != null && window.opener.closed == false)
    {	
		window.opener.location.href = url;
		window.opener.focus();
		window.close('soundclip');
	return false;
    }
    else return true;
}

function protector(mouseevent) {
	if (navigator.appName == 'Netscape' && (mouseevent.which == 2 || mouseevent.which == 3))
		return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
		alert("Please contact Cetacean Research Technology for a copy of this image.  Thank you.");
		return false;
	} else return true;
}

document.onmousedown=protector;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=protector;
