// JavaScript Document

var popupWin = null;

// OPEN WINDOW
// options for this window are:
// resizable,toolbar,scrollbars,menubar

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

function chg2pic(imgnam1, gif1, imgnam2, gif2) {
document[imgnam1].src=[gif1]
document[imgnam2].src=[gif2]
}

function chg3pic(imgnam1, gif1, imgnam2, gif2, imgnam3, gif3) {
document[imgnam1].src=[gif1]
document[imgnam2].src=[gif2]
document[imgnam3].src=[gif3]
}

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

function goPage(pagename)
{
    window.location.href = pagename;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

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("This image is not in the public domain.  Please respect the artist or photographer's rights and do not copy this image without permission.  Please contact ACS to ask for permission.  Thank you.");
		return false;
	} else return true;
}
document.onmousedown=protector;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=protector;