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/onloc/1.jpg';
Picture[2]   = 'images/onloc/2.jpg';
Picture[3]   = 'images/onloc/3.jpg';
Picture[4]   = 'images/onloc/4.jpg';
Picture[5]   = 'images/onloc/5.jpg';
Picture[6]   = 'images/onloc/6.jpg';
Picture[7]   = 'images/onloc/7.jpg';
Picture[8]   = 'images/onloc/8.jpg';
Picture[9]   = 'images/onloc/9.jpg';
Picture[10]  = 'images/onloc/10.jpg';

/*and here are the captions...
Caption[1]   = "";
Caption[2]   = "";
Caption[3]   = "";
Caption[4]   = "";
Caption[5]   = "";
Caption[6]   = "";
Caption[7]   = "";
Caption[8]   = "";
Caption[9]   = "";
Caption[10]  = "";
*/
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/onlocation/'+jss+'.html','mapWin', 'width=528,height=582,top=0,left=100')
}

