
// Pic_&_Thumb_Select.js

var defaultImgPath;
var defaultTxtPath;
var mousInOutTbl;
var pathImgLast;
var picTextLast;

var defaultImgPath= "Images/Quartz-Silver-Pendant_with_7_Cabs-2~280x148.jpg";
var defaultTxtPath= "Chakra quartz pendant in a silver finding with seven cabachons. "+
                    "Each of the cabachons represents a chakra. An example of the many "+
                    "jewelry items for sale at JTI from $2.00 to $60.00.";

mousInOutTbl= 0;



function mousOver(pathImg, picText) {
  // Firefox does not recognize .innerText but recognizes .innerHTML. 
  // IE recognizes .innerText & .innerHTML.
  document.getElementById("picBoxImgId01").src= pathImg;
  document.getElementById("tblRow2Id01").innerHTML= picText; 

  mousInOutTbl= 1;
  pathImgLast= pathImg;
  picTextLast= picText;
}

function mousOut() {
  document.getElementById("picBoxImgId01").src= pathImgLast;
  document.getElementById("tblRow2Id01").innerText= picTextLast;
}

function mousOverTbl() { 
  if (mousInOutTbl== 0) { 
    document.getElementById("picBoxImgId01").src= defaultImgPath;
    document.getElementById("tblRow2Id01").innerText= defaultTxtPath; 
    return;   
  }
  document.getElementById("picBoxImgId01").src=pathImgLast;
  document.getElementById("tblRow2Id01").innerText= picTextLast;
}

function mousOutTbl() { 
  if (mousInOutTbl==1) { 
    document.getElementById("picBoxImgId01").src=pathImgLast;
    document.getElementById("tblRow2Id01").innerText= picTextLast; 
    return;
  }

  document.getElementById("picBoxImgId01").src= defaultImgPath;
  document.getElementById("tblRow2Id01").innerText= defaultTxtPath;
  mousInOutTbl= 0;
}
