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 = "gallery/mixedmedia/images/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/mixedmedia/1.jpg';
Picture[2]   = 'images/mixedmedia/2.jpg';
Picture[3]   = 'images/mixedmedia/3.jpg';
Picture[4]   = 'images/mixedmedia/4.jpg';
Picture[5]   = 'images/mixedmedia/5.jpg';
Picture[6]   = 'images/mixedmedia/6.jpg';
Picture[7]   = 'images/mixedmedia/7.jpg';
Picture[8]   = 'images/mixedmedia/8.jpg';
Picture[9]   = 'images/mixedmedia/9.jpg';
Picture[10]   = 'images/mixedmedia/10.jpg';

//and here are the captions...
Caption[1]   = "Sewn I";
Caption[2]   = "Sewn II";
Caption[3]   = "Sewn III";
Caption[4]   = "Sewn IV";
Caption[5]   = "Sewn V";
Caption[6]   = "Sewn VI";
Caption[7]   = "Sewn VII";
Caption[8]   = "Sewn VIII";
Caption[9]   = "Sewn IX";
Caption[10]   = "Sewn X";

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/mixedmedia/'+jss+'.html','mapWin', 'width=528,height=582,top=0,left=100')
}

