// JavaScript Document
<!--
//************************************************************************************************* Used in all pages
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
var mOverColor		= "#E59605";
var mOutColor		= "#3E0000";
function mouseOverLink(CurrLinkNum){
var i = 0;
	for(i = 0; i < 5; i++){
		if(i == CurrLinkNum){
			document.getElementById("MenuArrow"+i).src			= "images/block_arrow_right.jpg";
			document.getElementById("MenuFont"+i).color			= mOverColor;
			document.getElementById("MenuFont"+i).style.fontWeight	= "bold";
		}
		else{
			document.getElementById("MenuArrow"+i).src			= "images/block_arrow_down.jpg";
			document.getElementById("MenuFont"+i).color			= mOutColor;
			document.getElementById("MenuFont"+i).style.fontWeight	= "normal";
		}
	}
}
function mouseOutLink(OriginalLinkNum){
var i = 0;
	for(i = 0; i < 5; i++){
		if(i == OriginalLinkNum){
			document.getElementById("MenuArrow"+i).src			= "images/block_arrow_right.jpg";
			document.getElementById("MenuFont"+i).color			= mOverColor;
			document.getElementById("MenuFont"+i).style.fontWeight	= "bold";
		}
		else{
			document.getElementById("MenuArrow"+i).src			= "images/block_arrow_down.jpg";
			document.getElementById("MenuFont"+i).color			= mOutColor;
			document.getElementById("MenuFont"+i).style.fontWeight	= "normal";
		}
	}
}

var smOverColor	= "#E59605";
var smOutColor		= "#016790";
function mouseOverSubLink(CurrLinkNum){
var i = 0;
	for(i = 0; i < 3; i++){
//		document.getElementById("SubMenuCol"+i).color				= smOverColor;
		if(i == CurrLinkNum){
			document.getElementById("SubMenuArrow"+i).style.display	= "block";
			document.getElementById("SubMenuFont"+i).color			= smOutColor;
			document.getElementById("SubMenuFont"+i).style.fontWeight	= "bold";
		}
		else{
			document.getElementById("SubMenuArrow"+i).style.display	= "none";
			document.getElementById("SubMenuFont"+i).color			= smOverColor;
			document.getElementById("SubMenuFont"+i).style.fontWeight	= "normal";
		}
	}
//	document.getElementById("SubMenuCol"+i).color			= smOverColor;
//	document.getElementById("SubMenuCol"+CurrLinkNum).color	= smOutColor;
//	i = CurrLinkNum + 1;
//	document.getElementById("SubMenuCol"+i).color			= smOutColor;
}
function mouseOutSubLink(OriginalLinkNum){
var i = 0;
	for(i = 0; i < 3; i++){
//		document.getElementById("SubMenuCol"+i).color				= smOverColor;
		if(i == (OriginalLinkNum)){
			document.getElementById("SubMenuArrow"+i).style.display	= "block";
			document.getElementById("SubMenuFont"+i).color			= smOutColor;
			document.getElementById("SubMenuFont"+i).style.fontWeight	= "bold";
		}
		else{
			document.getElementById("SubMenuArrow"+i).style.display	= "none";
			document.getElementById("SubMenuFont"+i).color			= smOverColor;
			document.getElementById("SubMenuFont"+i).style.fontWeight	= "normal";
		}
	}
//	document.getElementById("SubMenuCol"+i).color			= smOverColor;
//	document.getElementById("SubMenuCol"+OriginalLinkNum).color	= smOutColor;
//	i = OriginalLinkNum + 1;
//	document.getElementById("SubMenuCol"+i).color			= smOutColor;

}

//************************************************************************************************* Gallery Use
var globalThumbNum		= -1;
var showOnce			= -1;
var jumpDownLater		= 1;
function darkenThumb(thumbNum){
	var tempLink	= document.getElementById("thumbGallery"+thumbNum);
	if (tempLink != null){
		tempLink	= tempLink.src;
		tempLink		= tempLink.replace("_li","_sml");
		document.getElementById("thumbGallery"+thumbNum).src			= tempLink;
		document.getElementById("thumbGallery"+thumbNum).style.cursor	= "hand";
	}
}
function lightenThumb(thumbNum){
	var tempLink	= document.getElementById("thumbGallery"+thumbNum).src;
	if(globalThumbNum != thumbNum){
		tempLink	= tempLink.replace("_sml","_li");
		document.getElementById("thumbGallery"+thumbNum).src			= tempLink;
	}
		document.getElementById("thumbGallery"+thumbNum).style.cursor	= "default";
}

function largenThumb(thumbNum){
		if(globalThumbNum == -1){globalThumbNum = 0;}
	var tempLink	= document.getElementById("thumbGallery"+globalThumbNum).src;
	
	if(globalThumbNum != thumbNum){
		tempLink	= tempLink.replace("_sml","_li");
		document.getElementById("thumbGallery"+globalThumbNum).src			= tempLink;
	}	
	globalThumbNum	= thumbNum
	tempLink		= document.getElementById("thumbGallery"+thumbNum).src;
	tempLink		= tempLink.replace("_li","_lg");
	tempLink		= tempLink.replace("_sml","_lg");
	document.getElementById("LargePic").src					= tempLink;
	document.getElementById("GalleryMessage").style.display	= "none";
	if ((document.getElementById("GraniteName") != null) && (document.getElementById("PicNameData"+thumbNum) != null)){
		document.getElementById("GraniteName").innerHTML = "<b>"+document.getElementById("PicNameData"+thumbNum).value+"</b>";
	}
	window.scrollTo(0,136);
}
function largenThumbBN(thumbNum, bnNum){
	if(globalThumbNum == -1){globalThumbNum = 0;}
	var tempLink	= document.getElementById("thumbGallery"+globalThumbNum).src;
	if(globalThumbNum != thumbNum){
		tempLink	= tempLink.replace("_sml","_li");
		document.getElementById("thumbGallery"+globalThumbNum).src			= tempLink;
	}
	globalThumbNum	= thumbNum
	tempLink		= document.getElementById("thumbGallery"+thumbNum).src;
	tempLink		= document.getElementById("thumbGallery"+bnNum).src;
	tempLink		= tempLink.replace("_li","");
	tempLink		= tempLink.replace("_sml","");
	document.getElementById("BNPic").src					= tempLink;
	document.getElementById("GalleryMessage").style.display	= "none";
	if ((document.getElementById("bnMsg") != null) && (document.getElementById("bnMsgHidden"+thumbNum) != null)){
		document.getElementById("bnMsg").innerHTML = ""+document.getElementById("bnMsgHidden"+thumbNum).value+"";
	}
	window.scrollTo(0,136);
}
function largenFirstThumb(thumbNum){
	var tempLink	= document.getElementById("thumbGallery"+globalThumbNum);
	if(tempLink != null){
		tempLink	= tempLink.src;
		if(globalThumbNum != thumbNum){
			tempLink	= tempLink.replace("_sml","_li");
			document.getElementById("thumbGallery"+globalThumbNum).src			= tempLink;
		}
		globalThumbNum	= thumbNum
		tempLink		= document.getElementById("thumbGallery"+thumbNum).src;
		tempLink		= tempLink.replace("_li","_lg");
		tempLink		= tempLink.replace("_sml","_lg");
		document.getElementById("LargePic").src					= tempLink;
		if(document.getElementById("GraniteName") != null){
			document.getElementById("GraniteName").innerHTML = "<b>"+document.getElementById("PicNameData"+thumbNum).value+"</b>";
		}
		window.scrollTo(0,0);
	}
}
function clickFirstPic(){
	var tempNum	= 0;
	if((document.getElementById("LandingPic") != null) && (document.getElementById("FirstPic") != null)){
		tempNum	= document.getElementById("LandingPic").value;
		if(tempNum == ""){
			tempNum	= document.getElementById("FirstPic").value;
		}
	}
	globalThumbNum	= tempNum
	darkenThumb(tempNum);
	largenFirstThumb(tempNum);
}
function takeOutLanding(){
	document.getElementById("GalleryTableBN").style.display	= "block";
	document.getElementById("GalleryTable").style.display		= "none";
	document.getElementById("bannerImage").src				= "images/top_edge_lite.jpg";
	if(jumpDownLater == 1){
			window.scrollTo(0,0);
			jumpDownLater = jumpDownLater - 1;
	}
}
function zoomMap(){
	var ZoomInOut	= document.getElementById("MapZoom").value;
	if(ZoomInOut == "Zoom In"){
		document.getElementById("StoneMap").src		= "images/StoneBeyondMap1.jpg";
		document.getElementById("MapZoom").value	= "Zoom Out";
	}
	else{
		document.getElementById("StoneMap").src		= "images/StoneBeyondMap.jpg";
		document.getElementById("MapZoom").value	= "Zoom In";
	}
}

-->
