
// Update copyright year
function updateYear() {
var curDate = new Date();
var curYear = curDate.getYear();
	if (curYear < 1000) {
	curYear+=1900;}
	document.write("<class=baseline>"+curYear+"</font>");
}

// pre-load images

var preloadFlag = false;
function preloadImages() {
if (document.images) {      
   top_curve = new Image();
   top_curve.src="images/top_curve.gif";
   bannerblue = new Image();
   bannerblue.src="images/bannerblue.jpg";
   rt_end = new Image();
   rt_end.src="images/rt_end.gif";
   corner = new Image();
   corner.src="images/corner.gif";
   bottom = new Image();
   bottom.src="images/bottom.gif";
   index1 = new Image(); 	 
   index1.src = "images/index1.gif";
   index2 = new Image(); 	 
   index2.src = "images/index2.gif";
   sculpture1 = new Image(); 	 
   sculpture1.src = "images/sculpture1.gif";
   sculpture2 = new Image(); 	 
   sculpture2.src = "images/sculpture2.gif";
   collages1=new Image(); 	 
   collages1.src = "images/collages1.gif";
   collages2 = new Image(); 	 
   collages2.src = "images/collages2.gif";
   exhibitions1 = new Image(); 	 
   exhibitions1.src = "images/exhibitions1.gif";
   exhibitions2 = new Image(); 	 
   exhibitions2.src = "images/exhibitions2.gif";
   awards1 = new Image(); 	 
   awards1.src = "images/awards1.gif";
   awards2 = new Image(); 	 
   awards2.src = "images/awards2.gif";
   collectors1 = new Image(); 	 
   collectors1.src = "images/collectors1.gif";
   collectors2 = new Image(); 	 
   collectors2.src = "images/collectors2.gif";
   resale1 = new Image(); 	 
   resale1.src = "images/resale1.gif";
   resale2 = new Image(); 	 
   resale2.src = "images/resale2.gif";
   links1 = new Image(); 	 
   links1.src = "images/links1.gif";
   links2 = new Image(); 	 
   links2.src = "images/links2.gif";
   preloadFlag = true;
	}
}
            
 function mouseOn(imgName)  
 {  
   if (navigator.userAgent.substring (8,9) >= "3")
   {
     document[imgName].src=eval(imgName+"2.src");
   }      
 } 
 
 function mouseOff(imgName) 
 {
   if (navigator.userAgent.substring (8,9) >= "3")
   {
     document[imgName].src=eval(imgName+"1.src");
   }      
 }

// Full sized window popups
// JK Pop up image viewer script- By JavaScriptKit.com
// Visit JavaScript Kit (http://javascriptkit.com)
// for free JavaScript tutorials and scripts
// This notice must stay intact for use

var popbackground="#2C018D" //specify backcolor or background image for pop window

function detectexist(obj){
return (typeof obj !="undefined")
}

function jkpopimage(imgpath, popwidth, popheight, imgtitle){
var windowtitle=imgtitle;  //pop window title


function getpos(){
leftpos=(detectexist(window.screenLeft))? screenLeft+document.body.clientWidth/2-popwidth/2 : detectexist(window.screenX)? screenX+innerWidth/2-popwidth/2 : 0
toppos=(detectexist(window.screenTop))? screenTop+document.body.clientHeight/2-popheight/2 : detectexist(window.screenY)? screenY+innerHeight/2-popheight/2 : 0
if (window.opera){
leftpos-=screenLeft
toppos-=screenTop
}
}

getpos()
var popwidth=popwidth+20;
var popheight=popheight+40;
var winattributes='width='+popwidth+',height='+popheight+',resizable=yes,left='+leftpos+',top='+toppos
var bodyattribute=(popbackground.indexOf(".")!=-1)? 'background="'+popbackground+'"' : 'bgcolor="'+popbackground+'"'
if (typeof jkpopwin=="undefined" || jkpopwin.closed)
jkpopwin=window.open("","",winattributes)
else{
// getpos() //uncomment these 2 lines if you wish subsequent popups to be centered too
// jkpopwin.moveTo(leftpos, toppos)
jkpopwin.resizeTo(popwidth+15, popheight+30)
}
jkpopwin.document.open()
jkpopwin.document.write('<html><title>'+windowtitle+'</title><body '+bodyattribute+'><a href="javascript:window.close()"><img src="'+imgpath+'" border="0"></body></html>')
jkpopwin.document.close()
jkpopwin.focus()
}

// block right mouse click
msg='All artwork on this web site is copyrighted!';

if (window.Event)
document.captureEvents(Event.MOUSEDOWN);
function noRightClick(e) {
if (window.Event) {
if (e.which > 1) {
ermsg();
return false;
}
return true;
}
return true;
}
document.onmousedown = noRightClick;
function noContextMenu() {
event.cancelBubble = true;
event.returnValue = false;
ermsg();
return false;
}
document.oncontextmenu = noContextMenu;
function ermsg() {
if(msg) alert(msg);
}
