function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Sorry, in an effort to prevent copyright theft we have disabled right clicking.\nPlease contact the artist for permission if you would like a copy of an image.");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;

function ResetBGs()
  {
    if (window.document.all("home"))
      window.document.all("home").className = "menutextoff";
    if (window.document.all("news"))
      window.document.all("news").className = "menutextoff";
    if (window.document.all("gallery"))
      window.document.all("gallery").className = "menutextoff";
    if (window.document.all("about"))
      window.document.all("about").className = "menutextoff";
    if (window.document.all("contact"))
      window.document.all("contact").className = "menutextoff";
    if (window.document.all("guestbook"))
      window.document.all("guestbook").className = "menutextoff";
  }

function ChangeClassOn(Obj)
  {
   if (Obj.className!="menutexton")
     Obj.className = 'menutexthover'  
  }

function ChangeClassOff(Obj)
  {
   if (Obj.className!="menutexton")
     Obj.className = 'menutextoff'  
  }

function PerformClick(Obj, HRef)
  {
   ResetBGs();
   Obj.className = 'menutexton';
   location.href = HRef;   
  }

function DoCopyright()
  {
   var copywin = window.open('copyright.htm', 'cwin', 'menubar=yes,locationbar=no,toolbar=yes,resizable=yes,left=0,top=0,height=400,width=650');
   copywin.focus();
  }

function DoViewWin(Url)
  {
   var gallwin = window.open(Url, 'gwin', 'height=520,width=760, left=0,top=0,resizable=yes,status=yes,toolbar=yes,menubar=yes');
   gallwin.focus();
  }

function DoImgView(Url)
  {
   var imgwin = window.open(Url, 'iwin', 'height=520,width=610, left=0,top=0,resizable=yes,status=yes,toolbar=yes');
   imgwin.focus();
  }

function DoLocation(Url)
  {
   window.location.href = Url;
  }

function FramesBreak(Url)
  {
   if(parent.frames.length>=1)
    window.top.location.href=Url
  }
  
function DoGalleryClose()
  {
   if (window.opener)
    {
     if (window.opener.closed)
       location.href="home.htm"
     else
       window.close();
    }
   else
    location.href="home.htm"
  }
  
function DoImgHome(Url)
  {
   if (window.opener)
    {
     if (window.opener.closed)
       location.href=Url
     else
       window.close();
    }
   else
    location.href=Url   
  }