	var browser=navigator.userAgent;
	var b_version=navigator.appVersion;
	var version=parseFloat(b_version);
	
	if(browser.indexOf("Firefox") > 0)
	{
		//margin decrease needed
		document.write("<style type='text/css'>.infoBox {margin-top:-10px;margin-bottom:10px;padding-left:15px;border-top:1px solid #EBD3FF;border-bottom:1px solid #EBD3FF;width:270px;font-family: Arial, Helvetica, sans-serif;font-size:12px;color:#666666;line-height:16px;}</style>");
	}
	else
	{
		//margins or fine as is
		document.write("<style type='text/css'>.infoBox {margin-bottom:10px;padding-left:15px;border-top:1px solid #EBD3FF;border-bottom:1px solid #EBD3FF;width:270px;font-family: Arial, Helvetica, sans-serif;font-size:12px;color:#666666;line-height:16px;}</style>");
	}

	function showDetails(layerID)
	{
		var iDetailCount = 12;
		
		if(document.getElementById("Detail" + layerID).style.display == "none")
		{
			//close all active layers
			closeDetails(iDetailCount);
			//open this one
			document.getElementById("txt" + layerID).className = "activeLink";
			document.getElementById("Detail" + layerID).style.display = "inline";
		}
		else
		{
			//close this one
			document.getElementById("txt" + layerID).className = "inActiveLink";
			document.getElementById("Detail" + layerID).style.display = "none";
		}
	}

	function closeDetails(iTotal)
	{
        for(i=1;i<=iTotal;i++)
        {
			document.getElementById("txt" + i).className = "inActiveLink";
			document.getElementById("Detail" + i).style.display = "none";
		}
	}

	function swapClass(layerID,cssStyle)
	{
		if(document.getElementById("Detail" + layerID).style.display == "none")
		{
			document.getElementById("txt" + layerID).className = cssStyle;
		}
	}