// THUMBNAILS ROLLOVER
//----------------------------------------------------------------
function thumbRollover(whichThumb){
if(preloadPictsFlag == true){

	
	if(pageNumberColor == "green"){
		captionColor = "83A58F";
	} else if(pageNumberColor == "yellow"){
		captionColor = "BFA228";
	}
	//if(trailingNumbers > 0){
		//captionYPosition = document.getElementById('myTable').offsetTop + 530 + 20*fullRowsCount + 25;
	//} else {
		//captionYPosition = document.getElementById('myTable').offsetTop + 530 + 20*(fullRowsCount+1);
	//}
	myLocation = document.location.href;

	//if(myLocation.indexOf('options_16_00.html') != -1 || myLocation.indexOf('options_16_00-02.html') != -1 ){
	if(myLocation.indexOf('options_') != -1){
		captionYPosition = document.getElementById('myTable').offsetTop + 585;
		captionXPosition = document.getElementById('myTable').offsetLeft + 5;
	}else {
		captionYPosition = document.getElementById('myTable').offsetTop + 525;
		captionXPosition = document.getElementById('myTable').offsetLeft + 5;
	}
	
	
	if(whichThumb>0){
		linkTo = 'Link to:<br>';
	} else {
		linkTo = '';
	}
	if (W3C) {
		document.getElementById("caption").style.left = captionXPosition + "px";
		document.getElementById("caption").style.top = captionYPosition + "px";
		document.getElementById("caption").style.visibility = "visible";
		document.getElementById("caption").innerHTML = "<table width='130' height='80'><tr><td width='130' height='80' align='left' valign='bottom'><span class='copy'><font color='"+captionColor+"'>"+linkTo+"<b>"+captions[whichThumb]+"</b></font></span></td></tr></table>";
	} else if (NS4) {
		document.layers["caption"].left = captionXPosition;
		document.layers["caption"].top = captionYPosition;
		document.layers["caption"].visibility = "visible";
		document.layers["caption"].innerHTML = "<table width='130' height='80'><tr><td width='130' height='80' align='left' valign='bottom'><span class='copy'><font color='"+captionColor+"'>"+linkTo+"<b>"+captions[whichThumb]+"</b></font></span></td></tr></table>";
	} else {
		document.all["caption"].style.left = captionXPosition + "px";
		document.all["caption"].style.top = captionYPosition + "px";
		document.all["caption"].style.visibility = "visible";
		document.all["caption"].innerHTML = "<table width='130' height='80'><tr><td width='130' height='80' align='left' valign='bottom'><span class='copy'><font color='"+captionColor+"'>"+linkTo+"<b>"+captions[whichThumb]+"</b></font></span></td></tr></table>";
	}
}
}
function thumbRollOut(whichThumb){
if(preloadPictsFlag == true){
	if (W3C) {
		document.getElementById("caption").style.visibility = "hidden";
	} else if (NS4) {
		document.layers["caption"].visibility = "hidden";
	} else {
		document.all["caption"].style.visibility = "hidden";
	}
}
}

