// New Browser Window

//function open_window(url,w,h) { mywin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+w+',height='+h+''); }

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=464,height=450,left = 408,top = 287');");
}


// Preload any rollover images here

// Global Navigation Buttons Array
// This array preloads every time, under the assumption that
// not everyone is going to enter the site via the home page.
btnGlobal = new Array (				
	"btn_news_on.gif",
	"btn_contact_on.gif",
	"btn_artists_on.gif",
	"btn_exhibitions_on.gif"
)

/* This function does the actual image rollover */

function changeIt(oImage){
	var sSrc = oImage.src;
	var iUnderscore = sSrc.lastIndexOf("_");
	var iDot = sSrc.lastIndexOf(".");
	var sState = sSrc.slice(iUnderscore, iDot);
	var sNewImg = sSrc.slice(0, iUnderscore);
	var sExtension = sSrc.slice(iDot);
	if(sState == "_off")
	{
					sNewImg = sNewImg + "_on" + sExtension;
					eval(oImage).src = sNewImg;
	}
	else
	{
					sNewImg = sNewImg + "_off" + sExtension;
					eval(oImage).src = sNewImg;
	}

}