function blockRightClick( mouseButton ) {
  if ( navigator.appName == 'Netscape' && ( mouseButton.which == 3 || mouseButton.which == 2 ) ) {
    return false;
  }
  else if ( navigator.appName == 'Microsoft Internet Explorer' && ( event.button == 2 || event.button == 3 ) ) {
    alert( "This page and its contents are all copyright 2005 by The Gift of Art" );
    return false;
  }
  return true;
}

function Is ()
{   // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase();

    // *** BROWSER VERSION ***
    // Note: On IE5, these return 4, so use is.ie5up to detect IE5.
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);

    this.nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    this.nav2 = (this.nav && (this.major == 2));
    this.nav3 = (this.nav && (this.major == 3));
    this.nav4 = (this.nav && (this.major == 4));
    this.nav4up = (this.nav && (this.major >= 4));
    this.navonly      = (this.nav && ((agt.indexOf(";nav") != -1) ||
                          (agt.indexOf("; nav") != -1)) );
    this.nav6 = (this.nav && (this.major == 5));
    this.nav6up = (this.nav && (this.major >= 5));
    this.gecko = (agt.indexOf('gecko') != -1);

    this.ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    this.ie3    = (this.ie && (this.major < 4));
    this.ie4    = (this.ie && (this.major == 4) && (agt.indexOf("msie 4")!=-1) );
    this.ie4up  = (this.ie  && (this.major >= 4));
    this.ie5    = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    this.ie5_5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1));
    this.ie5up  = (this.ie  && !this.ie3 && !this.ie4);
    this.ie5_5up =(this.ie && !this.ie3 && !this.ie4 && !this.ie5);
    this.ie6    = (this.ie && (this.major == 4) && (agt.indexOf("msie 6.")!=-1) );
    this.ie6up  = (this.ie  && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5);

}

function preloadPictures() {
  var d = document;
  
  if ( d.images ){
    if ( !d.pp_p ) {
      d.pp_p=new Array();
    }
    var i;
    var j = d.pp_p.length;
    var a = preloadPictures.arguments;
    for( indx=0 ; indx < a.length ; indx++ ) {
      if ( a[indx].indexOf( "#" ) != 0 ){
        d.pp_p[j] = new Image;
        d.pp_p[j++].src = a[indx];
      }
    }
  }
}

document.onmousedown = blockRightClick;
document.onmouseup   = blockRightClick;
if ( document.layers ) window.captureEvents( Event.MOUSEDOWN );
if ( document.layers ) window.captureEvents( Event.MOUSEUP );
window.onmousedown = blockRightClick;
window.onmouseup   = blockRightClick;
preloadPictures();


