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/origsale/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/origsale/1.jpg';
Picture[2]   = 'images/origsale/2.jpg';
Picture[3]   = 'images/origsale/3.jpg';
Picture[4]   = 'images/origsale/4.jpg';
Picture[5]   = 'images/origsale/5.jpg';
Picture[6]   = 'images/origsale/6.jpg';
Picture[7]   = 'images/origsale/7.jpg';
Picture[8]   = 'images/origsale/8.jpg';
Picture[9]   = 'images/origsale/9.jpg';
Picture[10]  = 'images/origsale/10.jpg';
Picture[11]  = 'images/origsale/11.jpg';
Picture[12]  = 'images/origsale/12.jpg';



//and here are the captions...
Caption[1]   = "Amid Exploration<br />oil on canvas<br />2 x 3.5 feet";
Caption[2]   = "Untitlable<br />oil on canvas<br />3.5 x 4.5 feet";
Caption[3]   = "Inner Space I (Mardi Gras)<br />oil on canvas<br />4 x 7 feet";
Caption[4]   = "Amid Chaos<br />oil on canvas<br />3.5 x 4.5 feet";
Caption[5]   = "Amid Exhilaration<br />oil on canvas<br />4.5 x 7.5 feet";
Caption[6]   = "Inner Space II<br />oil on canvas<br />3.5 x 4.5 feet";
Caption[7]   = "Inner Space III<br />oil on canvas<br />3.5 x 5 feet";
Caption[8]   = "Inner Space IV<br />oil on canvas<br />3.5 x 4.5 feet";
Caption[9]   = "Inner Space V<br />oil on canvas<br />3.5 x 4.5 feet";
Caption[10]  = "Inner Space VI<br />oil on canvas<br />3.5 x 4.5 feet";
Caption[11]  = "Genesis<br />oil on paper<br />16in x 20in";
Caption[12]  = "Flow<br />oil on canvas<br />3 x 6 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/origsale/'+jss+'.html','mapWin', 'width=528,height=582,top=0,left=100')
}

