	function setOpacity(obj, opacity) {
		opacity = (opacity == 100)?99.999:opacity;
		obj.style.filter = "alpha(opacity:"+opacity+")";
		obj.style.KHTMLOpacity = opacity/100;
		obj.style.MozOpacity = opacity/100;
		obj.style.opacity = opacity/100;
	}

	
	// Display data box
	function Show(idName, theImg) {
		document.theSample.src=theImg;
 		theDiv = new Object();
 		theDiv = document.getElementById(idName);
		var the_style = getStyleObject(idName);
 		setOpacity(theDiv, 100);
 		the_style.display='block';
	}

	// Hide data box - have to do individual ones due to JS bug
	function Hide(idName)
	{
		document.theSample.src='http://www.shutterchance.com/common/images/spacer.gif';
 		theDiv1 = new Object();
 		theDiv1 = document.getElementById(idName);
		var the_style = getStyleObject(idName);
		theDiv1.style.display='none';
	}

	
	function ShowMosaicTile(idName, theImg) {
		document.theSample.src=theImg;
 		theDiv = new Object();
 		theDiv = document.getElementById(idName);
		var the_style = getStyleObject(idName);
		setOpacity(theDiv, 100);
 		the_style.display='block';
	}

	// Hide data box - have to do individual ones due to JS bug
	function HideMosaicTile(idName)
	{
		document.theSample.src='http://www.shutterchance.com/common/images/spacer.gif';
 		theDiv1 = new Object();
 		theDiv1 = document.getElementById(idName);
		var the_style = getStyleObject(idName);
		theDiv1.style.display='none';
	}	



	// Move data box
	function Move(idName)
	{
 		theDivToMove = new Object();
 		theDivToMove = document.getElementById(idName);
 			theDivToMove.style.left = XPos + 2;
 			theDivToMove.style.top = YPos + -245;
	}
	//move the movers and shakers
	function MoveMS(idName)
	{
 		theDivToMove = new Object();
 		theDivToMove = document.getElementById(idName);
 			theDivToMove.style.left = XPos + 2;
 			theDivToMove.style.top = YPos + 25;
	}


	// Determine X, Y location of mouse
	document.onmousemove = Mouse_XY;
	var XPos = 0;
	var YPos = 0;
	function Mouse_XY(e) {
		var IE = document.all?true:false;
	  if (IE) {
	    XPos = event.clientX + document.body.scrollLeft;
	    YPos = event.clientY + document.body.scrollTop;
	  } else {
			document.captureEvents(Event.MOUSEMOVE);
	    XPos = e.pageX;
	    YPos = e.pageY;
	  }
	}


	
 	// Function to make easier showing/hiding divs
	function displayID(idName,show) {
		var the_style = getStyleObject(idName);
		if (show=='y' && the_style != false) {
			the_style.display = '';
		} else if(show=='n' && the_style != false) {
			the_style.display = 'none';
		}	
	}
	
function getStyleObject(objectId) {
  if (document.getElementById && document.getElementById(objectId)) {
    return document.getElementById(objectId).style;
  } else if (document.all && document.all(objectId)) {
    return document.all(objectId).style;
  } else {
    return false;
  }
}