<!--
var colorMouseOver='#99FFFF'; //teal
var colorMouseOut='#aaaaaa'; //light grey
var colorActive='#99FFFF'; //teal
var childWin
var isNav, isIE

if (parseInt(navigator.appVersion) >= 4) {
  if (navigator.appName == "Microsoft")
    isIE = true;
  else
    isNav = true;
}

function activeLink()
{
	if (isIE)
	{
		if (document.all(cellID))
			document.all(cellID).style.backgroundColor=colorActive;
	}
/*	else
	{
		if (document.layer(cellID))
			document.layers[cellID].backgroundColor=colorActive;
	}
*/
}

function swapIn(id)
{
	if (isIE)
	{	
		if (id != cellID)
			document.all(id).style.backgroundColor=colorMouseOver;
	}
/*	else
	{
		if (id != cellID)
			document.id.backgroundColor=colorMouseOver;
	}
*/	
}

function swapOut(id)
{
	if (isIE)
	{	
		if (id != cellID) 	
			document.all(id).style.backgroundColor=colorMouseOut;
	}
/*	else
	{
		if (id != cellID) 	
			document.id.backgroundColor=colorMouseOut;
	}
*/
}

var childWin=null;
function OpenChild(ImgPath,vWidth,vHeight)
{
	if (childWin!=null && childWin.open)
	{
		childWin.close();
		childWin=null;
	}
	//var param = 'width='+(vWidth + 20)+',height='+(vHeight + 60)+',scrollbars=no';
	childWin = window.open("","viewer","width="+(vWidth + 20)+",height="+(vHeight + 60));
	childWin.document.write('<html>');
	childWin.document.write('<head><title>Picture Viewer</title></head>');
	childWin.document.write('<body leftmargin=0 topmargin=10>');
	childWin.document.write('<div align=center>');
	childWin.document.write('<img src="' + ImgPath + '" height="' +  vHeight + '" width="' + vWidth + '"><br><br>');
	childWin.document.write('<a href="javascript:self.close()">close</a>');
	childWin.document.write('</div>');
	childWin.document.write('</body>');
	childWin.document.write('</html>');
	if (childWin.focus){childWin.focus();}	
}

//-->