var Picture = new Array(); 
var Caption = new Array(); 
var showIsOn = false;       

//preload the buttunz and spalsh image...
if (document.images) {
galimage1 = new Image();
galimage1.src = "images/images/gallery/0.jpg";
galimage2 = new Image();
galimage2.src = "images/gallery_btn_back.gif";
galimage3 = new Image();
galimage3.src = "images/gallery_btn_next.gif";
}

//here are the pics...
Picture[1]   = 'images/newworks/1.jpg';
Picture[2]   = 'images/newworks/2.jpg';
Picture[3]   = 'images/newworks/3.jpg';
Picture[4]   = 'images/newworks/4.jpg';
Picture[5]   = 'images/newworks/5.jpg';

//and here are the captions...
Caption[1]   = "An Extreme Minute I<br />oil on board<br />16&quot; x 20&quot;";
Caption[2]   = "An Extreme Minute II<br />oil on board<br />16&quot; x 20&quot;";
Caption[3]   = "Kindred<br />oil on canvas<br />2 x 6 feet";
Caption[4]   = "Molecular Girl<br />oil on canvas<br />3.5 x 4.5 feet";
Caption[5]   = "Solstice<br />oil on canvas<br />3.5 x 4 feet";

var tss;
var iss;
var jss = 0;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function control(how){
if (showIsOn){
if (how=="H") jss = 1;
if (how=="F") jss = jss + 1;
if (how=="B") jss = jss - 1;
if (jss > (pss)) jss=1;
if (jss < 1) jss = pss;
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=.2)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("caption").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
}
}

//full size...
function showFull() {
mapWindow = window.open('gallery/newworks/'+jss+'.html','mapWin', 'width=528,height=582,top=0,left=100')
}

