// JavaScript Document



var message="Please contact me if you would like to use these images.";
function click(e)
   {
   if (document.all) {
      if (event.button == 2) {
         alert(message);
         return false;
      }
   }
   if (document.layers) {
      if (e.which == 3) {
         alert(message);
         return false;
      }
   }
   }
   if (document.layers) {
      document.captureEvents(Event.MOUSEDOWN);
   }
   document.onmousedown=click;
   
   
if(document.images){
		harrow_off = new Image;
		harrow_off.src = "images/harrow_off.gif";
		harrow_on = new Image;
		harrow_on.src = "images/harrow_on.gif";
        abstract_off      = new Image;
        abstract_off.src  = "images/abstract.gif";
        abstract_on       = new Image;
        abstract_on.src   = "images/abstract_on.gif";
		figurative_off = new Image;
		figurative_off.src = "images/figurative.gif";
		figurative_on = new Image;
		figurative_on.src = "images/figurative_on.gif";
		landscapes_off = new Image;
		landscapes_off.src = "images/landscapes.gif";
		landscapes_on = new Image;
		landscapes_on.src = "images/landscapes_on.gif";
		
		current_off = new Image;
		current_off.src = "images/current.gif";
		current_on = new Image;
		current_on.src = "images/current_on.gif";
				
		catalog_off = new Image;
		catalog_off.src = "images/catalog.gif";
		catalog_on = new Image;
		catalog_on.src = "images/catalog_on.gif";
				
		statement_off = new Image;
		statement_off.src = "images/statement.gif";
		statement_on = new Image;
		statement_on.src = "images/statement_on.gif";
				
		bio_off = new Image;
		bio_off.src = "images/bio.gif";
		bio_on = new Image;
		bio_on.src = "images/bio_on.gif";
				
		contact_off = new Image;
		contact_off.src = "images/contact.gif";
		contact_on = new Image;
		contact_on.src = "images/contact_on.gif";
		
		left_off = new Image;
		left_off.src = "images/side_piece.gif";
		left_on = new Image;
		left_on.src = "images/side_piece_on.gif";
		
		right_off = new Image;
		right_off.src = "images/side_piece2.gif";
		right_on = new Image;
		right_on.src = "images/side_piece2_on.gif";
		
		

}




function swapImage(oldButton,newButton){
        if (document.images){
                document.images[oldButton].src=eval(newButton + ".src");
        }
}

function flip() {
	if (document.images) {
		var num_arg = arguments.length;
		if (num_arg == 0 || (num_arg % 2) != 0) return;
		for (var i=0; i<num_arg; i) {
			var j = i+1;
			var imgname = arguments[i];
			var imgsrc = arguments[j];
			document.images[imgname].src = eval(imgsrc+'.src');
			i+=2;
		}
	}
}


