<!--
var type = "IE";	//Variable used to hold the browser name
BrowserSniffer();
hideable = 0;

//detects the capabilities of the browser
function BrowserSniffer() {
	if (!document.getElementById){
		alert("This Browser is not supported.\nAt this time we can only support IE 6+, NS 6+, and Mozilla compliant browsers.");
	}
}

function ChangeContent(id, str) {
	document.getElementById(id).innerHTML = str;
}

function setStyle(id, param, value){
	document.getElementById(id).style[param]=value;
}

function getStyle(id, param){
	return document.getElementById(id).style[param];
}

function ShowLayer(id, action){
	eval("document.getElementById('" + id + "').style.visibility='" + action + "'");
}

function getLayer(id){
	return eval("document.getElementById('" + id + "').style.visibility");
}

function showImage(evt){
	fileID = evt.src.substr(evt.src.length - 7, 3);
	blurb = document.getElementById("BLB" + fileID).innerHTML;

	testimage = new Image();
	testimage.src = evt.src;
	sw = document.body.clientWidth;
	sh = document.body.clientHeight;
	ow = document.body.scrollLeft;
	oh = document.body.scrollTop;
	iw = testimage.width;
	ih = testimage.height;

	x2 = ((sw - iw) / 2) - 50;
	y2 = oh + sh - ih - 110;

	moveLayer("LargeImage", x2, y2, (iw + 30), (ih + 100));

	contentHTML = "<table width='100%' height='100%' cellpadding=0 cellspacing=0 class='blackBorder' onmousemove='hideImage()' onclick='hideImage()'>";
	contentHTML += "<tr><td>";
	contentHTML += "<table width='100%' height='100%' cellpadding=0 cellspacing=0 class='polaroid'>";
	contentHTML += "<tr><td>";
	contentHTML += "<img border=0 name=ib ID=ib src='" + evt.src + "'>"
	contentHTML += "</td></tr>";
	contentHTML += "<tr><td height=50>";
	contentHTML += "<b>" + blurb + "</b>";
	contentHTML += "</td></tr>";
	contentHTML += "</table>";
	contentHTML += "</td></tr>";
	contentHTML += "</table>";
	ChangeContent("LargeImage", contentHTML);

	ShowLayer("LargeImage","visible");

	window.setTimeout("hideable=1",100)

}

function hideImage(){
	if(hideable == 1){
		ShowLayer("LargeImage","hidden");
		hideable = 0;
	}
}

function moveLayer(id,x,y,w,h){
	setStyle(id,"left", x);
	setStyle(id,"top", y);
	setStyle(id,"width", w + "px");
	setStyle(id,"height", h + "px");
}
//-->
