//---- Bosson Design ------------
//---- gallery scripts ---------------------------
	//-- get passed variable from page ---
	//-- var gal is defined on the page
	
	//-- initiate mouse events --- see galleryjs_init.js

// ------ preload first batch of images --------------------------------------------
arImageSrc = new Array (
        "01",
        "02",
        "03",
        "05"
        );
arImageList = new Array ();

for (counter in arImageSrc) {
    arImageList[counter] = new Image();
    //arImageList[counter].src = arImageSrc[counter];
    // if all images are the same type,
    //arImageList[counter].src = arImageSrc[counter] + ".jpg";
    // if all images are in the same directory and same type,
    arImageList[counter].src = gal + arImageSrc[counter] + ".jpg";
}
	//----------------------------	
// ------ preload second batch of images --------------------------------------------
function loadImages() {
  arMoreImageSrc = new Array (
        "04",
        "06",
        "07",
        "08",
        "09",
        "10",
        "11",
        "12"
        );
  arMoreImageList = new Array ();

  for (counter in arMoreImageSrc) {
      arMoreImageList[counter] = new Image();
      //arMoreImageList[counter].src = arMoreImageSrc[counter];
      // if all images are the same type,
      //arMoreImageList[counter].src = arMoreImageSrc[counter] + ".jpg";
      // if all images are in the same directory and same type,
      arMoreImageList[counter].src = gal + arMoreImageSrc[counter] + ".jpg";
  }
}
	//----------------------------

function lowresResize() {
	if (screen.width == 800) window.scrollTo(0,82);
}
function hideInstructions() {
	document.getElementById('thumbinstructions').style.display = "none";
}
function show01() {
	document.getElementById('viewedimage').src = gal+"01.jpg";
	document.getElementById('t01').style.borderColor = "#fff";
	document.getElementById('captions').style.top = "0em";
}
function show02() {
	document.getElementById('viewedimage').src = gal+"02.jpg";
	document.getElementById('t02').style.borderColor = "#fff";
	document.getElementById('captions').style.top = "-2em";
}
function show03() {
	document.getElementById('viewedimage').src = gal+"03.jpg";
	document.getElementById('t03').style.borderColor = "#fff";
	document.getElementById('captions').style.top = "-4em";
}
function show04() {
	document.getElementById('viewedimage').src = gal+"04.jpg";
	document.getElementById('t04').style.borderColor = "#fff";
	document.getElementById('captions').style.top = "-6em";
}
function show05() {
	document.getElementById('viewedimage').src = gal+"05.jpg";
	document.getElementById('t05').style.borderColor = "#fff";
	document.getElementById('captions').style.top = "-8em";
}
function show06() {
	document.getElementById('viewedimage').src = gal+"06.jpg";
	document.getElementById('t06').style.borderColor = "#fff";
	document.getElementById('captions').style.top = "-10em";
}
function show07() {
	document.getElementById('viewedimage').src = gal+"07.jpg";
	document.getElementById('t07').style.borderColor = "#fff";
	document.getElementById('captions').style.top = "-12em";
}
function show08() {
	document.getElementById('viewedimage').src = gal+"08.jpg";
	document.getElementById('t08').style.borderColor = "#fff";
	document.getElementById('captions').style.top = "-14em";
}
function show09() {
	document.getElementById('viewedimage').src = gal+"09.jpg";
	document.getElementById('t09').style.borderColor = "#fff";
	document.getElementById('captions').style.top = "-16em";
}
function show10() {
	document.getElementById('viewedimage').src = gal+"10.jpg";
	document.getElementById('t10').style.borderColor = "#fff";
	document.getElementById('captions').style.top = "-18em";
}
function show11() {
	document.getElementById('viewedimage').src = gal+"11.jpg";
	document.getElementById('t11').style.borderColor = "#fff";
	document.getElementById('captions').style.top = "-20em";
}
function show12() {
	document.getElementById('viewedimage').src = gal+"12.jpg";
	document.getElementById('t12').style.borderColor = "#fff";
	document.getElementById('captions').style.top = "-22em";
}
function gray01() {	
	document.getElementById('t01').style.borderColor = "gray";
}
function gray02() {	
	document.getElementById('t02').style.borderColor = "gray";
}
function gray03() {	
	document.getElementById('t03').style.borderColor = "gray";
}
function gray04() {	
	document.getElementById('t04').style.borderColor = "gray";
}
function gray05() {	
	document.getElementById('t05').style.borderColor = "gray";
}
function gray06() {	
	document.getElementById('t06').style.borderColor = "gray";
}
function gray07() {	
	document.getElementById('t07').style.borderColor = "gray";
}
function gray08() {	
	document.getElementById('t08').style.borderColor = "gray";
}
function gray09() {	
	document.getElementById('t09').style.borderColor = "gray";
}
function gray10() {	
	document.getElementById('t10').style.borderColor = "gray";
}
function gray11() {	
	document.getElementById('t11').style.borderColor = "gray";
}
function gray12() {	
	document.getElementById('t12').style.borderColor = "gray";
}
function origImg() {
	document.getElementById('viewedimage').src = galimg;
	document.getElementById('captions').style.top = "4em";
}
// --- for emale link (same as anon.js --------------------
function addAddress()
//		insert an <a> with male2 addrss into an "empty" <span id="addaddress"></span>
{ 
if (!document.getElementById("addaddress")) return false; 
var spanobj = document.getElementById("addaddress"); 
var anch = document.createElement("a"); 
var dom = "bossondesigns";
var whoseit = "joellen";
var subj = "?subject=->%20Prints:%20";
var mssgbody = "&body=\r\r(Please%20add%20your%20name%20to%20the%20\"SUBJECT\"%20line%20of%20this%20email,%20replace%20these%20instructions%20with%20your%20message,%20and%20provide%20as%20much%20contact%20information%20as%20you%20can!%20-%20Thanks)";
var sum = whoseit+secondbit+dom+anotherbit;
var sumplus = whoseit+secondbit+dom+anotherbit+subj+mssgbody;
//var address = "recipient@website.com"; 
anch.setAttribute("href",male2+sumplus); 
spanobj.appendChild(anch); 
var txt = document.createTextNode(sum); 
anch.appendChild(txt); 
return true; 
}

function changePseudolink() {
	document.getElementById('addresstrigger').style.display = "none";
	addAddress();
	}

