function getDim(el)
{
  for(var lx=0,ly=0; el!=null; lx+=el.offsetLeft,ly+=el.offsetTop,el=el.offsetParent);
  return {x:lx,y:ly};
}

function adjust(){
var xy = getDim(document.getElementById("img"));
document.getElementById("ft").style.left = xy.x + "px";
document.getElementById("ft").style.visibility = "visible";
}

function divover(evt)
{
	  var xy = getDim(document.getElementById("menutd"));
		var menu = document.getElementById("menu");
		menu.style.left=xy.x+"px";
		menu.style.top=xy.y+20+"px";
		menu.style.visibility="visible";
}

function divout(evt)
{
	document.getElementById("menu").style.visibility="hidden";
}

function mmover(obj)
{
	obj.style.color="rgb(100,100,100)";
}

function mmout(obj)
{
	obj.style.color="#ffffff";
}

function mmclk(num)
{
	switch(num)
	{
		case 1:
		    window.location.href="GRANITE_TILES_1.htm";
		    break;
		    		case 2:
		    window.location.href="MARBLE_TILES.htm";
		    break;
		    		case 3:
		    window.location.href="SLATE1.htm";
		    break;
		    		case 4:
		    window.location.href="COUNTERTOPS_VANITIES.htm";
		    break;
		    		case 5:
		    window.location.href="STONE_SINKS.htm";
		    break;
		    		case 6:
		    window.location.href="WATERJET_MARBLE_MEDALLIONS.htm";
		    break;
		    		case 7:
		    window.location.href="MOSAIC_OPTIONS1.htm";
		    break;
		    		case 8:
		    window.location.href="CUBE_KERB_STONES.htm";
		    break;
		    		case 9:
		    window.location.href="SCULPTURES.htm";
		    break;
		    		case 10:
		    window.location.href="CULTURE_STONE_PANELS.htm";
		    break;
		    		case 11:
		    window.location.href="ENGINEERED_STONE.htm";
		    break;
	}
}
