document.write("<SCRIPT TYPE=\"text/javascript\" SRC=\"/includes/ua.js\"></SCRIPT>");
if (document.images) {
	biographyOn = new Image();
	biographyOn.src = "/images/nav/biography_on.gif";
	biographyOff = new Image();
	biographyOff.src = "/images/nav/biography_off.gif";

	galleryOn = new Image();
	galleryOn.src = "/images/nav/gallery_on.gif";
	galleryOff = new Image();
	galleryOff.src = "/images/nav/gallery_off.gif";

	creativityOn = new Image();
	creativityOn.src = "/images/nav/creativity_on.gif";
	creativityOff = new Image();
	creativityOff.src = "/images/nav/creativity_off.gif";

	credentialsOn = new Image();
	credentialsOn.src = "/images/nav/credentials_on.gif";
	credentialsOff = new Image();
	credentialsOff.src = "/images/nav/credentials_off.gif";

	teachingOn = new Image();
	teachingOn.src = "/images/nav/teaching_on.gif";
	teachingOff = new Image();
	teachingOff.src = "/images/nav/teaching_off.gif";

	eventsOn = new Image();
	eventsOn.src = "/images/nav/events_on.gif";
	eventsOff = new Image();
	eventsOff.src = "/images/nav/events_off.gif";

	work_for_saleOn = new Image();
	work_for_saleOn.src = "/images/nav/work_for_sale_on.gif";
	work_for_saleOff = new Image();
	work_for_saleOff.src = "/images/nav/work_for_sale_off.gif";

	contactOn = new Image();
	contactOn.src = "/images/nav/contact_on.gif";
	contactOff = new Image();
	contactOff.src = "/images/nav/contact_off.gif";

	awardsOn = new Image();
	awardsOn.src = "/images/nav/awards_on.gif";
	awardsOff = new Image();
	awardsOff.src = "/images/nav/awards_off.gif";

	classesOn = new Image();
	classesOn.src = "/images/nav/classes_on.gif";
	classesOff = new Image();
	classesOff.src = "/images/nav/classes_off.gif";

	commissionedOn = new Image();
	commissionedOn.src = "/images/nav/commissioned_on.gif";
	commissionedOff = new Image();
	commissionedOff.src = "/images/nav/commissioned_off.gif";

	creative_journeyOn = new Image();
	creative_journeyOn.src = "/images/nav/creative_journey_on.gif";
	creative_journeyOff = new Image();
	creative_journeyOff.src = "/images/nav/creative_journey_off.gif";

	exhibitions_publicationsOn = new Image();
	exhibitions_publicationsOn.src = "/images/nav/exhibitions_publications_on.gif";
	exhibitions_publicationsOff = new Image();
	exhibitions_publicationsOff.src = "/images/nav/exhibitions_publications_off.gif";

	experiencesOn = new Image();
	experiencesOn.src = "/images/nav/experiences_on.gif";
	experiencesOff = new Image();
	experiencesOff.src = "/images/nav/experiences_off.gif";

	lecturesOn = new Image();
	lecturesOn.src = "/images/nav/lectures_on.gif";
	lecturesOff = new Image();
	lecturesOff.src = "/images/nav/lectures_off.gif";

	pen_inkOn = new Image();
	pen_inkOn.src = "/images/nav/pen_ink_on.gif";
	pen_inkOff = new Image();
	pen_inkOff.src = "/images/nav/pen_ink_off.gif";

	prints_cardsOn = new Image();
	prints_cardsOn.src = "/images/nav/prints_cards_on.gif";
	prints_cardsOff = new Image();
	prints_cardsOff.src = "/images/nav/prints_cards_off.gif";

	publicationsOn = new Image();
	publicationsOn.src = "/images/nav/publications_on.gif";
	publicationsOff = new Image();
	publicationsOff.src = "/images/nav/publications_off.gif";

	quilt_artOn = new Image();
	quilt_artOn.src = "/images/nav/quilt_art_on.gif";
	quilt_artOff = new Image();
	quilt_artOff.src = "/images/nav/quilt_art_off.gif";

	quilts_for_saleOn = new Image();
	quilts_for_saleOn.src = "/images/nav/quilts_for_sale_on.gif";
	quilts_for_saleOff = new Image();
	quilts_for_saleOff.src = "/images/nav/quilts_for_sale_off.gif";

	recent_eventsOn = new Image();
	recent_eventsOn.src = "/images/nav/recent_events_on.gif";
	recent_eventsOff = new Image();
	recent_eventsOff.src = "/images/nav/recent_events_off.gif";

	past_eventsOn = new Image();
	past_eventsOn.src = "/images/nav/past_events_on.gif";
	past_eventsOff = new Image();
	past_eventsOff.src = "/images/nav/past_events_off.gif";

	teaching_sharingOn = new Image();
	teaching_sharingOn.src = "/images/nav/teaching_sharing_on.gif";
	teaching_sharingOff = new Image();
	teaching_sharingOff.src = "/images/nav/teaching_sharing_off.gif";

	tutorialsOn = new Image();
	tutorialsOn.src = "/images/nav/tutorials_on.gif";
	tutorialsOff = new Image();
	tutorialsOff.src = "/images/nav/tutorials_off.gif";

	current_eventsOn = new Image();
	current_eventsOn.src = "/images/nav/current_events_on.gif";
	current_eventsOff = new Image();
	current_eventsOff.src = "/images/nav/current_events_off.gif";

	membershipsOn = new Image();
	membershipsOn.src = "/images/nav/memberships_on.gif";
	membershipsOff = new Image();
	membershipsOff.src = "/images/nav/memberships_off.gif";
}

// menu init
var menuActive = 0;
var onLayer;
var timeOn = null;

// mouseover image functions for regular images
function imgOn(imgName) {
    if (document.images) { document[imgName].src = eval(imgName + "On.src"); }
}

function imgOff(imgName) {
    if (document.images) { 
    	if (imgName != curPage) { 
    		document[imgName].src = eval(imgName + "Off.src"); } 
    }
}

// mouseover image functions for menu item images
function imgOn2(imgName,layerName) {
    menuOver();
    if (navigator.family == 'nn4') { 
        document.layers[layerName].document[imgName].src = eval(imgName + "On.src");
    } else if (document.images) {
        document[imgName].src = eval(imgName + "On.src");
    }
}

function imgOff2(imgName,layerName) {
    menuOut();
    if (navigator.family == 'nn4') { 
        document.layers[layerName].document[imgName].src = eval(imgName + "Off.src");
    } else if (document.images) {
        document[imgName].src = eval(imgName + "Off.src");
    }
}

// show menu
function showLayer(layerName) {
    if (navigator.family == 'nn4') { 
        if (timeOn != null) { 
            clearTimeout(timeOn);
            hideLayer(onLayer);
        }
        eval('document.layers.'+layerName+'.visibility="visible"');
        onLayer = layerName;
    } else if (navigator.family == 'ie4' && navigator.version >= 4 && navigator.version < 5) { 
        if (timeOn != null) { 
            clearTimeout(timeOn);
            hideLayer(onLayer);
        }
        eval('document.all["'+layerName+'"].style.visibility="visible"');
        onLayer = layerName;
    } else if (document.getElementById && document.body.style) { 
        if (timeOn != null) { 
            clearTimeout(timeOn);
            hideLayer(onLayer);
        }
        eval('document.getElementById("'+layerName+'").style.visibility="visible"');
        onLayer = layerName;
    }
}

// hide menu
function hideLayer(layerName) {
    if (menuActive == 0) {
        if (navigator.family == 'nn4') { 
            eval('document.layers["'+layerName+'"].visibility="hidden"');
        } else if (navigator.family == 'ie4' && navigator.version >= 4 && navigator.version < 5) { 
            eval('document.all["'+layerName+'"].visibility="hidden"');
        } else if (document.getElementById && document.body.style) { 
            eval('document.getElementById("'+layerName+'").style.visibility="hidden"');
        }
    }
}

// mouse out timer
function btnTimer() {
    timeOn = setTimeout("btnOut()",150);
}

// hide button on mouse out
function btnOut(layerName) {
    if (menuActive == 0) {
        hideLayer(onLayer);
    }
}

// menu mouseover
function menuOver(itemName) {
    clearTimeout(timeOn);
    menuActive = 1;
}

// menu mouse out 
function menuOut(itemName) {
    menuActive = 0;
    timeOn = setTimeout("hideLayer(onLayer)", 50);
}

var width,height,image,winWidth,winHeight
function viewLarge(image,width,height) {
	winWidth = "width=" + (width+20) + "";
	winHeight = "height=" + (height+70) + "";

var t1 ="<HTML><HEAD><TITLE>Judith Reilly Artwork</TITLE><LINK REL='stylesheet' TYPE='text/css' HREF='/includes/jr.css'></HEAD>"
var t2 ="<CENTER><IMG SRC='" + image + "' BORDER=0><P><A CLASS='bodyCopyLink' HREF='#' onClick='self.close()'>Close Window</A></P></CENTER>"

ImageWindow=window.open("","image","toolbar=no,scrollbars=no,menubar=no," + winWidth + "," + winHeight);
ImageWindow.document.write(t1+t2)
ImageWindow.focus();
ImageWindow.document.close()
}

var top_gradient;
var bottom_gradient;
var left_gradient;

function randomImage() {
	var num = Math.floor(Math.random() * 3);
	num++;
	top_gradient = "<img src='/images/top_gradient_"+num+".gif' width='783' height='19'>";
	bottom_gradient = "<img src='/images/bottom_gradient_"+num+".gif' width='560' height='24'>";
	left_gradient = "<img src='/images/left_gradient_"+num+".gif' width='75' height='410'>";
}
