<!--

browsver = parseInt(navigator.appVersion);
browsname = parseInt(navigator.appName);

NS4 = (document.layers) ? 1 : 0;
NS6 = (document.getElementById) ? 1 : 0;
IE = (document.all) ? 1 : 0;

var imgtotal;
//var imgnum = 1;
var imgnum;

function newnum(thisimgnum){
imgnum = thisimgnum;
}

function getnum(thisvar){

var thisurl = window.location.href;
var parts = thisurl.split("?");

if (!parts[1]){
	return "noquery";
}
else {
	var query = parts[1];
	var vars = query.split("&");
	var value = "";

	for (i=0;i<vars.length;i++){
		var parts = vars[i].split("=");
		if (parts[0] == thisvar){
			value = parts[1];
			break;
		}
	}
	value = unescape(value);
	value.replace(/\+/g," ");
	return value;
}
}


function gallery(thisgalnum,thisimgnum){
if(!NS4){
	var newurl = "gallery.shtml?gallery=" + thisgalnum + "&image=" + thisimgnum;
	parent.location = newurl;
}
else{
	var openwin=window.open("", "_blank", "height=440,width=420,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no");
	openwin.document.write("<html>")
	openwin.document.write("<head>")
	openwin.document.write("<title>Jennifer Axinn-Weiss | Gallery</title>")
	openwin.document.write("</head>")
	openwin.document.write("<body bgcolor='#FFFFFF' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>")
	openwin.document.write("<table border='0' cellspacing='0' cellpadding='5' width='100%' height='100%' bgcolor='#FFFFFF'>")
	openwin.document.write("<tr><td align='left' valign='top'><div id='imgdisplay' style='position:relative; width:400px; height:400px; z-index:1; background-image: url(images/"+eval('image_gallery' + thisgalnum + '[' + thisimgnum + ']')+".jpg); background-repeat: no-repeat; background-position: center center'><img src='../images/spacer.gif' width='400' height='400' vspace='0' hspace='0' onFocus='if(this.blur)this.blur()' onClick='if(this.blur)this.blur()'></div></td></tr>")
	openwin.document.write("<tr><td align='center' valign='top'><p><a href='javascript:self.close()' style='text-decoration:none; font-family: Arial, Helvetica, Verdana, sans-serif; color: #000033; font-size: 12px'>(close this window)</a></p></td></tr></table>")
	openwin.document.write("</body>")
	openwin.document.write("</html>")
}
}


head_gallery1 = "Tools for Detecting Angel Wings";
head_gallery2 = "Dream Houses";
head_gallery3 = "Collages";
head_gallery4 = "Blue Pieces";
head_gallery5 = "Fairy Tale";
head_gallery6 = "Head Works";
head_gallery7 = "Mixed Media";
head_gallery8 = "Archives";
head_gallery9 = "Sky Ladders";
head_gallery10 = "2008";
head_gallery11 = "As Above, So Below";
head_gallery12 = "Tools For Impossible Tasks (2009)";
head_gallery13 = "As Above, So Below (2009)";
head_gallery14 = "Forest from the Trees";

image_gallery1 = new Array();
image_gallery1[1] = "image077";
image_gallery1[2] = "image078";
image_gallery1[3] = "image079";
image_gallery1[4] = "image081";
image_gallery1[5] = "image082";
image_gallery1[6] = "image084";
image_gallery1[7] = "image085";
image_gallery1[8] = "image086";
image_gallery1[9] = "image087";
image_gallery1[10] = "image088";
image_gallery1[11] = "image089";
image_gallery1[12] = "image090";
image_gallery1[13] = "image098";
image_gallery1[14] = "image099";
image_gallery1[15] = "image100";

caption_gallery1 = new Array();
caption_gallery1[1] = "The Mystery Ring<br><span>oil on canvas with gold leaf</span>";
caption_gallery1[2] = "Becoming Sky";
caption_gallery1[3] = "Ring Of Fire<br><span>oil with gold leaf</span>";
caption_gallery1[4] = "Subject/Object";
caption_gallery1[5] = "Vision Quest";
caption_gallery1[6] = "Conversation With The Elements<br><span>oil on canvas, mixed media, gold leaf</span>";
caption_gallery1[7] = "Golden Egg";
caption_gallery1[8] = "Witness";
caption_gallery1[9] = "The Journey";
caption_gallery1[10] = "May The Moon Exist Beyond Me";
caption_gallery1[11] = "Fire Ladder";
caption_gallery1[12] = "\"Here and There\" After Odilion Redon";
caption_gallery1[13] = "Exhibition photo";
caption_gallery1[14] = "Exhibition photo";
caption_gallery1[15] = "Exhibition photo";

footer_gallery1 = new Array();
footer_gallery1[2] = "<i>sold</i>";
footer_gallery1[3] = "<i>sold</i>";
footer_gallery1[5] = "<i>sold</i>";
footer_gallery1[6] = "<i>sold</i>";
footer_gallery1[7] = "<i>sold</i>";
footer_gallery1[9] = "<i>sold</i>";
footer_gallery1[10] = "<i>sold</i>";

size_gallery1 = new Array();
size_gallery1[13] = "400x300";
size_gallery1[14] = "400x300";
size_gallery1[15] = "400x300";


image_gallery2 = new Array();
image_gallery2[1] = "image044";
image_gallery2[2] = "image035";
image_gallery2[3] = "image053";
image_gallery2[4] = "image041";
image_gallery2[5] = "image042";
image_gallery2[6] = "image043";
image_gallery2[7] = "image052";
image_gallery2[8] = "image045";
image_gallery2[9] = "image046";
image_gallery2[10] = "image047";
image_gallery2[11] = "image048";
image_gallery2[12] = "image049";
image_gallery2[13] = "image050";
image_gallery2[14] = "image051";

caption_gallery2 = new Array();
caption_gallery2[1] = "Buddha";
caption_gallery2[2] = "Guardian";
caption_gallery2[3] = "Pool";
caption_gallery2[4] = "clown";
caption_gallery2[5] = "Altar";
caption_gallery2[6] = "Bird";
caption_gallery2[7] = "Mountain view";
caption_gallery2[8] = "Earth";
caption_gallery2[9] = "Eggs";
caption_gallery2[10] = "Teacup";
caption_gallery2[11] = "Geisha";
caption_gallery2[12] = "Moon";
caption_gallery2[13] = "Girl rock ladder";
caption_gallery2[14] = "Flying circus girl";

footer_gallery2 = new Array();

size_gallery2 = new Array();
size_gallery2[2] = "197x400";
size_gallery2[4] = "245x400";
size_gallery2[5] = "253x400";
size_gallery2[6] = "214x400";
size_gallery2[7] = "215x400";
size_gallery2[8] = "232x400";
size_gallery2[9] = "263x400";
size_gallery2[10] = "235x400";
size_gallery2[12] = "254x400";
size_gallery2[13] = "260x400";
size_gallery2[14] = "216x400";


image_gallery3 = new Array();
image_gallery3[1] = "image038";
image_gallery3[2] = "image040";
image_gallery3[3] = "image039";
image_gallery3[4] = "image034";
image_gallery3[5] = "image037";
image_gallery3[6] = "image036";
image_gallery3[7] = "image074";
image_gallery3[8] = "image075";
image_gallery3[9] = "image091";
image_gallery3[10] = "image092";
image_gallery3[11] = "image093";
image_gallery3[12] = "image094";
image_gallery3[13] = "image095";
image_gallery3[14] = "image096";
image_gallery3[15] = "image097";

caption_gallery3 = new Array();
caption_gallery3[1] = "Davinci's Dream";
caption_gallery3[2] = "Waiting for the Angels To Arrive";
caption_gallery3[3] = "house";
caption_gallery3[4] = "Puppet play";
caption_gallery3[5] = "My First Flying Lesson";
caption_gallery3[6] = "Subject/Object";
caption_gallery3[7] = "Moon Moments";
caption_gallery3[8] = "Contemplation";
caption_gallery3[9] = "Bird Head<br><span>16\"x20\"</span>";
caption_gallery3[10] = "As Above So Below<br><span>16\"x20\"</span>";
caption_gallery3[11] = "Between and Sky 2<br><span>16\"x20\"</span>";
caption_gallery3[12] = "Samurai Tree<br><span>16\"x20\"</span>";
caption_gallery3[13] = "Angel<br><span>16\"x20\"</span>";
caption_gallery3[14] = "Star House<br><span>16\"x20\"</span>";
caption_gallery3[15] = "Cake<br><span>16\"x20\"</span>";

footer_gallery3 = new Array();

size_gallery3 = new Array();
size_gallery3[1] = "324x400";
size_gallery3[2] = "324x400";
size_gallery3[3] = "324x400";
size_gallery3[4] = "319x400";
size_gallery3[6] = "400x400";


image_gallery4 = new Array();
image_gallery4[1] = "image020";
image_gallery4[2] = "image021";
image_gallery4[3] = "image022";
image_gallery4[4] = "image023";
image_gallery4[5] = "image024";
image_gallery4[6] = "image025";
image_gallery4[7] = "image026";
image_gallery4[8] = "image027";
image_gallery4[9] = "image029";
image_gallery4[10] = "image028";

caption_gallery4 = new Array();
caption_gallery4[1] = "Between Earth And Sky";
caption_gallery4[2] = "Flame";
caption_gallery4[3] = "Unbearable Lightness of Being";
caption_gallery4[4] = "My First Flying Lesson";
caption_gallery4[5] = "Invisible Operation";
caption_gallery4[6] = "Boat";
caption_gallery4[7] = "Angel";
caption_gallery4[8] = "Birds";
caption_gallery4[9] = "Between Earth and Sky";
caption_gallery4[10] = "Exhibition photo";

footer_gallery4 = new Array();

size_gallery4 = new Array();
size_gallery4[10] = "400x300";


image_gallery5 = new Array();
image_gallery5[1] = "image019";
image_gallery5[2] = "image011";
image_gallery5[3] = "image012";
image_gallery5[4] = "image013";
image_gallery5[5] = "image014";
image_gallery5[6] = "image015";
image_gallery5[7] = "image016";
image_gallery5[8] = "image017";
image_gallery5[9] = "image018";

caption_gallery5 = new Array();
caption_gallery5[1] = "The Angel and the Swimmer";
caption_gallery5[2] = "Red Dress";
caption_gallery5[3] = "Amazonian Angel";
caption_gallery5[4] = "DNA";
caption_gallery5[5] = "Egg";
caption_gallery5[6] = "Venus with Goldfish";
caption_gallery5[7] = "Teaching A Rock How To Fly";
caption_gallery5[8] = "Gold fish";
caption_gallery5[9] = "Teaching A Rock How To Fly";

footer_gallery5 = new Array();

size_gallery5 = new Array();


image_gallery6 = new Array();
image_gallery6[1] = "image001";
image_gallery6[2] = "image002";
image_gallery6[3] = "image003";
image_gallery6[4] = "image004";
image_gallery6[5] = "image008";
image_gallery6[6] = "image009";

caption_gallery6 = new Array();
caption_gallery6[1] = "Reception";
caption_gallery6[2] = "The Field";
caption_gallery6[3] = "Invisible world";
caption_gallery6[4] = "Tromplei";
caption_gallery6[5] = "Underwater Blue";
caption_gallery6[6] = "infinity";

footer_gallery6 = new Array();

size_gallery6 = new Array();


image_gallery7 = new Array();
image_gallery7[1] = "image030";
image_gallery7[2] = "image031";
image_gallery7[3] = "image032";
image_gallery7[4] = "image033";

caption_gallery7 = new Array();
caption_gallery7[1] = "wait";
caption_gallery7[2] = "in the bowl";
caption_gallery7[3] = "echo";
caption_gallery7[4] = "birds";

footer_gallery7 = new Array();

size_gallery7 = new Array();


image_gallery8 = new Array();
image_gallery8[1] = "image062";
image_gallery8[2] = "image063";
image_gallery8[3] = "image072";
image_gallery8[4] = "image073";
image_gallery8[5] = "image064";
image_gallery8[6] = "image055";
image_gallery8[7] = "image065";
image_gallery8[8] = "image056";
image_gallery8[9] = "image067";
image_gallery8[10] = "image068";
image_gallery8[11] = "image069";
image_gallery8[12] = "image059";
image_gallery8[13] = "image054";
image_gallery8[14] = "image060";
image_gallery8[15] = "image057";
image_gallery8[16] = "image058";

caption_gallery8 = new Array();
caption_gallery8[1] = "The Alchemy Of Mars";
caption_gallery8[2] = "Tree shoes (after Magritte)";
caption_gallery8[3] = "Star Gazer's Manual";
caption_gallery8[4] = "Tools For Impossible Tasks";
caption_gallery8[5] = "Stand for Magnifying Glasses";
caption_gallery8[6] = "Chance Book";
caption_gallery8[7] = "Chance Book [detail]";
caption_gallery8[8] = "[detail]";
caption_gallery8[9] = "Between Earth And Sky";
caption_gallery8[10] = "Axis Mundi In New Jersey";
caption_gallery8[11] = "Soul Mates";
caption_gallery8[12] = "Tool Case for Travel Between Dimensions";
caption_gallery8[13] = "Tools for Impossible Tasks #1";
caption_gallery8[14] = "Tools For Impossible Tasks #2";
caption_gallery8[15] = "Guardians";
caption_gallery8[16] = "Oracle Of Delphi";

footer_gallery8 = new Array();

size_gallery8 = new Array();
size_gallery8[1] = "316x400";
size_gallery8[2] = "400x285";
size_gallery8[3] = "332x400";
size_gallery8[4] = "259x400";
size_gallery8[5] = "272x400";
size_gallery8[7] = "400x260";
size_gallery8[8] = "400x263";
size_gallery8[9] = "258x400";
size_gallery8[11] = "263x400";
size_gallery8[12] = "400x264";
size_gallery8[13] = "266x400";
size_gallery8[14] = "289x400";
size_gallery8[15] = "239x400";


image_gallery9 = new Array();
image_gallery9[1] = "image101";

caption_gallery9 = new Array();
caption_gallery9[1] = "Meeting Sky<br><span>2008; oil on wood panel, 18\" x 80\"</span>";

footer_gallery9 = new Array();
footer_gallery9[1] = " ";

size_gallery9 = new Array();
size_gallery9[1] = "128x550";


image_gallery10 = new Array();
image_gallery10[1] = "image102";
image_gallery10[2] = "image103";
image_gallery10[3] = "image104";
image_gallery10[4] = "image105";
image_gallery10[5] = "image106";
image_gallery10[6] = "image107";
image_gallery10[7] = "image108";
image_gallery10[8] = "image109";

caption_gallery10 = new Array();
caption_gallery10[1] = "Message From The Deer Dancer<br><span>2008; 30\" x 30\"</span>";
caption_gallery10[2] = "Cloudmakers Daughter<br><span>2008; 24\" x 35\"</span>";
caption_gallery10[3] = "Manifestation<br><span>2008; 24\" x 35\"</span>";
caption_gallery10[4] = "I dreamt I solved the Mystery of Me - It took the form of a geometric pattern<br><span>2008; 48\" x 24\"</span>";
caption_gallery10[5] = "Oracle<br><span>2008; 30\" x 40\"</span>";
caption_gallery10[6] = "Star Wisher<br><span>2008; 16\" x 20\"</span>";
caption_gallery10[7] = "Protecting the World Tree<br><span>2008; 48\" x 24\"</span>";
caption_gallery10[8] = "Sky House, Earth House<br><span>2008</span>";

footer_gallery10 = new Array();
footer_gallery10[2] = "<i>sold</i>";
footer_gallery10[4] = "<i>sold</i>";

size_gallery10 = new Array();
size_gallery10[1] = "365x400";
size_gallery10[2] = "264x400";
size_gallery10[3] = "265x400";
size_gallery10[4] = "224x450";
size_gallery10[5] = "291x400";
size_gallery10[6] = "314x400";
size_gallery10[7] = "238x450";
size_gallery10[8] = "271x450";


image_gallery11 = new Array();
image_gallery11[1] = "image110";
image_gallery11[2] = "image111";
image_gallery11[3] = "image112";
image_gallery11[4] = "image113";
image_gallery11[5] = "image114";
image_gallery11[6] = "image115";
image_gallery11[7] = "image116";
image_gallery11[8] = "image117";
image_gallery11[9] = "image118";
//image_gallery11[10] = "image119";

caption_gallery11 = new Array();
caption_gallery11[1] = "His Conversation with the Elements<br><span>2008</span>";
caption_gallery11[2] = "Her Conversation with the Elements<br><span>2008</span>";
caption_gallery11[3] = "Butterfly Effect<br><span>2008</span>";
caption_gallery11[4] = "Meeting Sky.... Continued<br><span>2008</span>";
caption_gallery11[5] = "Companion<br><span>2008</span>";
caption_gallery11[6] = "Inner Ally<br><span>2008</span>";
caption_gallery11[7] = "Plant Guardian<br><span>2008</span>";
caption_gallery11[8] = "As Above, So Below<br><span>2008</span>";
caption_gallery11[9] = "House on Fire<br><span>2008</span>";
//caption_gallery11[10] = "Bird #2<br><span></span>";

footer_gallery11 = new Array();
footer_gallery11[2] = "<i>sold</i>";
footer_gallery11[3] = "<i>sold</i>";
footer_gallery11[5] = "<i>sold</i>";
footer_gallery11[7] = "<i>sold</i>";
footer_gallery11[8] = "<i>sold</i>";
footer_gallery11[9] = "<i>sold</i>";

size_gallery11 = new Array();
size_gallery11[1] = "391x400";
size_gallery11[2] = "394x400";
size_gallery11[3] = "399x400";
size_gallery11[4] = "400x397";
size_gallery11[5] = "388x400";
size_gallery11[6] = "393x400";
size_gallery11[7] = "399x400";
size_gallery11[8] = "387x400";
size_gallery11[9] = "398x400";
//size_gallery11[10] = "390x400";


image_gallery12 = new Array();
image_gallery12[1] = "image119";
image_gallery12[2] = "image120";
image_gallery12[3] = "image121";
image_gallery12[4] = "image122";
image_gallery12[5] = "image123";
image_gallery12[6] = "image124";
image_gallery12[7] = "image125";
image_gallery12[8] = "image126";
image_gallery12[9] = "image127";

caption_gallery12 = new Array();
caption_gallery12[1] = "Moment Container<br><span>2009; 20\" x 20\"</span>";
caption_gallery12[2] = "Message Received<br><span>2009; 20\" x 20\"</span>";
caption_gallery12[3] = "Teaching A Rock How To Fly<br><span>2009; 20\" x 20\"</span>";
caption_gallery12[4] = "The Wish Whisperer<br><span>2009; 20\" x 20\"</span>";
caption_gallery12[5] = "Between Earth and Sky, revisited<br><span>2009; 20\" x 20\"</span>";
caption_gallery12[6] = "Magic Shoes<br><span>2009; 20\" x 20\"</span>";
caption_gallery12[7] = "Subject, Object<br><span>2009; 20\" x 20\"</span>";
caption_gallery12[8] = "Tool For Better Perspective<br><span>2009; 20\" x 20\"</span>";
caption_gallery12[9] = "Emotions Translator<br><span>2009; 20\" x 20\"</span>";

footer_gallery12 = new Array();
footer_gallery12[2] = "<i>sold</i>";
footer_gallery12[6] = "<i>sold</i>";

size_gallery12 = new Array();
size_gallery12[1] = "400x400";
size_gallery12[2] = "400x400";
size_gallery12[3] = "400x400";
size_gallery12[4] = "400x400";
size_gallery12[5] = "400x400";
size_gallery12[6] = "400x400";
size_gallery12[7] = "400x400";
size_gallery12[8] = "400x400";
size_gallery12[9] = "400x400";


image_gallery13 = new Array();
image_gallery13[1] = "image128";
image_gallery13[2] = "image129";
image_gallery13[3] = "image130";
image_gallery13[4] = "image131";
image_gallery13[5] = "image132";
image_gallery13[6] = "image133";
image_gallery13[7] = "image134";
image_gallery13[8] = "image135";
image_gallery13[9] = "image136";

caption_gallery13 = new Array();
caption_gallery13[1] = "Contemplation<br><span>2009; 24\" x 24\"</span>";
caption_gallery13[2] = "Her Conversation with the Elements<br><span>2009; 24\" x 24\"</span>";
caption_gallery13[3] = "Abstract Thinking<br><span>2009; 24\" x 24\"</span>";
caption_gallery13[4] = "Memory Holder<br><span>2009; 24\" x 24\"</span>";
caption_gallery13[5] = "Little Bird<br><span>2009; 24\" x 24\"</span>";
caption_gallery13[6] = "The King<br><span>2009; 24\" x 24\"</span>";
caption_gallery13[7] = "Companion<br><span>2009; 24\" x 24\"</span>";
caption_gallery13[8] = "Subject, Object<br><span>2009; 24\" x 24\"</span>";
caption_gallery13[9] = "The Prince<br><span>2009; 24\" x 24\"</span>";

footer_gallery13 = new Array();
footer_gallery13[1] = "<i>sold</i>";
footer_gallery13[7] = "<i>sold</i>";

size_gallery13 = new Array();
size_gallery13[1] = "400x400";
size_gallery13[2] = "400x400";
size_gallery13[3] = "400x400";
size_gallery13[4] = "400x400";
size_gallery13[5] = "400x400";
size_gallery13[6] = "400x400";
size_gallery13[7] = "400x400";
size_gallery13[8] = "400x400";
size_gallery13[9] = "400x400";


image_gallery14 = new Array();
image_gallery14[1] = "image137";
image_gallery14[2] = "image138";
image_gallery14[3] = "image139";

caption_gallery14 = new Array();
caption_gallery14[1] = "Blossom<br><span>10\" x 16\"</span>";
caption_gallery14[2] = "Sky Palace<br><span>10\" x 16\"</span>";
caption_gallery14[3] = "Magic Fruit<br><span>10\" x 16\"</span>";

footer_gallery14 = new Array();

size_gallery14 = new Array();
size_gallery14[1] = "300x513";
size_gallery14[2] = "300x497";
size_gallery14[3] = "300x513";


if (thispage == "gallerydisplay"){
	if (getnum() == "noquery"){
		parent.location = "index.shtml";
	}
	else {
		imgnum = eval(getnum("image"));
		galnum = eval(getnum("gallery"));
		//var this_gallery = "image_gallery" + galnum;
		imgtotal = eval("image_gallery" + galnum).length-1;
		imgwidth = 300;
		imgheight = 400;
	}
}


function writehead(){
	document.write(eval("head_gallery" + galnum));
}

function writefoot(gal,foot,full){
	foottext = eval("footer_gallery" + gal + "[" + foot + "]");
	if (foottext && foottext != " " && full == false) {
		document.write("[ " + foottext + " ]");
	}
	else if (full == true) {
		imgfoot = document.getElementById('galfoot');
		if (!foottext && gal != 8) {
			foottext = "<i>price is available upon request</i>";
		}
		if (foottext) {
			imgfoot.innerHTML = foottext;
		}
	}
}

function writecaption(gal,cap){
	captext = eval("caption_gallery" + gal + "[" + cap + "]");
	caps = captext.split("<br>");
	document.write(caps[0]);
	document.write("<br>");
	writefoot(gal,cap,false);
}

function showcaption(gal,cap){
	captext = eval("caption_gallery" + gal + "[" + cap + "]");
	caps = captext.split("<br>");
	window.status = caps[0];
}


function start(){
var this_image = eval("image_gallery" + galnum + "[" + imgnum + "]");
var this_caption = eval("caption_gallery" + galnum + "[" + imgnum + "]");
var captioncode = "<table border=0 cellspacing=0 cellpadding=0 width=280><tr><td align='center' class='galcaptiontext'><i>(image " + imgnum + " of " + imgtotal + ")</i><br>" + this_caption + "</td></tr></table>";
var this_size = eval("size_gallery" + galnum + "[" + imgnum + "]");

if (this_size){
	var dim = this_size.split("x");
	this_width = dim[0];
	this_height = dim[1];
}
else {
	this_width = imgwidth;
	this_height = imgheight;
}

if (NS6 || IE){
	if (imgnum <= imgtotal){
		galimg = document.getElementById? document.getElementById('galimgspace'):document.all('galimgspace');
		galimg.width = this_width;
		galimg.height = this_height;
		img = document.getElementById? document.getElementById('imgdisplay'):document.all('imgdisplay');
		img.style.width = this_width + "px";
		img.style.height = this_height + "px";
		img.style.backgroundImage = "url(images/loading.gif)";
		img.style.backgroundImage = "url(images/"+this_image+".jpg)";
		imgcaption = document.getElementById('galcaption');
		imgcaption.innerHTML = captioncode;
		writefoot(galnum,imgnum,true);
	}

	else {
		reset();
	}
}
}

function reset(){
var this_image = eval("image_gallery" + galnum + "[1]");
var this_caption = eval("caption_gallery" + galnum + "[1]");
var captioncode = "<table border=0 cellspacing=0 cellpadding=0 width=280><tr><td align='center' class='galcaptiontext'><i>(image 1 of " + imgtotal + ")</i><br>" + this_caption + "</td></tr></table>";
var this_size = eval("size_gallery" + galnum + "[1]");

if (this_size){
	var dim = this_size.split("x");
	this_width = dim[0];
	this_height = dim[1];
}
else {
	this_width = imgwidth;
	this_height = imgheight;
}

galimg = document.getElementById? document.getElementById('galimgspace'):document.all('galimgspace');
galimg.width = this_width;
galimg.height = this_height;
img = document.getElementById? document.getElementById('imgdisplay'):document.all('imgdisplay');
img.style.width = this_width + "px";
img.style.height = this_height + "px";
img.style.backgroundImage = "url(images/loading.gif)";
img.style.backgroundImage = "url(images/"+this_image+".jpg)";
imgcaption = document.getElementById('galcaption');
imgcaption.innerHTML = captioncode;
imgnum = 1;
writefoot(galnum,1,true);
}

function fwd(){
var this_image = eval("image_gallery" + galnum + "[" + eval(imgnum+1) + "]");
/*while (!this_image && imgnum <= imgtotal-1) {
	imgnum = imgnum+1;
	var this_image = eval("image_gallery" + galnum + "[" + eval(imgnum+1) + "]");bg_shadow-r.gif
}*/
var this_caption = eval("caption_gallery" + galnum + "[" + eval(imgnum+1) + "]");
var captioncode = "<table border=0 cellspacing=0 cellpadding=0 width=280><tr><td align='center' class='galcaptiontext'><i>(image " + eval(imgnum+1) + " of " + imgtotal + ")</i><br>" + this_caption + "</td></tr></table>";
var this_size = eval("size_gallery" + galnum + "[" +  eval(imgnum+1) + "]");

if (this_size){
	var dim = this_size.split("x");
	this_width = dim[0];
	this_height = dim[1];
}
else {
	this_width = imgwidth;
	this_height = imgheight;
}

if (NS6 || IE){
	if (imgnum <= imgtotal-1){
		galimg = document.getElementById? document.getElementById('galimgspace'):document.all('galimgspace');
		galimg.width = this_width;
		galimg.height = this_height;
		img = document.getElementById? document.getElementById('imgdisplay'):document.all('imgdisplay');
		img.style.backgroundImage = "url(images/loading.gif)";
		img.style.width = this_width + "px";
		img.style.height = this_height + "px";
		img.style.backgroundImage = "url(images/"+this_image+".jpg)";
		imgcaption = document.getElementById('galcaption');
		imgcaption.innerHTML = captioncode;
		imgnum = imgnum+1;
		writefoot(galnum,eval(imgnum+1),true);
	}

	else {
		reset();
	}
}
}


function back(){
var this_image = eval("image_gallery" + galnum + "[" + eval(imgnum-1) + "]");
var this_caption = eval("caption_gallery" + galnum + "[" + eval(imgnum-1) + "]");
var captioncode = "<table border=0 cellspacing=0 cellpadding=0 width=280><tr><td align='center' class='galcaptiontext'><i>(image " + eval(imgnum-1) + " of " + imgtotal + ")</i><br>" + this_caption + "</td></tr></table>";
var this_size = eval("size_gallery" + galnum + "[" +  eval(imgnum-1) + "]");

if (this_size){
	var dim = this_size.split("x");
	this_width = dim[0];
	this_height = dim[1];
}
else {
	this_width = imgwidth;
	this_height = imgheight;
}

if (NS6 || IE){
	if (imgnum >1 && imgnum <= imgtotal){
		galimg = document.getElementById? document.getElementById('galimgspace'):document.all('galimgspace');
		galimg.width = this_width;
		galimg.height = this_height;
		img = document.getElementById? document.getElementById('imgdisplay'):document.all('imgdisplay');
		img.style.width = this_width + "px";
		img.style.height = this_height + "px";
		img.style.backgroundImage = "url(images/loading.gif)";
		img.style.backgroundImage = "url(images/"+this_image+".jpg)";
		imgcaption = document.getElementById('galcaption');
		imgcaption.innerHTML = captioncode;
		imgnum = imgnum-1;
		writefoot(galnum,eval(imgnum-1),true);
		}

	else {}
}
}

// -->

