function showThis(sElementId)
{
	if (document.getElementById) {
		oObject = document.getElementById(sElementId);
		if (oObject.style.display != "block") {
			oObject.style.display = "block";
		} else {
			oObject.style.display = "none";
		}
	}
}

function openWindow(sPath, iHeight, iWidth) {
	var winName = "newWind" + Math.round(Math.random() * 9999999);
	window.open(sPath, winName, 'height=' + iHeight + ',width=' + iWidth + ',scrollbars=yes,resizable=yes,top=20,left=20')
}

function openCityMap(sCityName)
{
	if (sCityName != "") {
		sURL = "http://192.168.1.83/CBE011/WWW/constants/image-window.htm?city=" + sCityName
		openWindow(sURL,500,500);
	}
}

function showCityMap()
{
	sQueryString = window.location.search;
	sQueryStringPieces = sQueryString.split("=");
	if (sQueryStringPieces.length > 0) {
		sCityName = sQueryStringPieces[1];
		document.write("<img src=\"../img/maps/" + sCityName + "-service-2003.jpg\"/>")
	} else {
		self.close();
	}
}

function popImagery(sFileName, iHeight, iWidth)
{
	var sParameters;
	sParameters = "height="+iHeight+",width="+iWidth+",scrollbars=yes,resizable=yes,top=20,left=20";
	window.open(sFileName, "cbeyondImagery", sParameters)
}

function launchDemo()
{
	var sParameters;
	sParameters = "height=456,width=663,scrollbars=no,resizable=no,top=20,left=20";
	window.open("http://www.cbeyond.net/_docs/online-demo/demo.html", "onlineDemo", sParameters)
}

function writeFlashMovie(sFlashMovieURL, sNoFlashImageURL, iHeight, iWidth) {

	var oeTags = "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"  codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\"  WIDTH=\"663\" HEIGHT=\"456\" id=\"demo\" ALIGN=\"\"><PARAM NAME=movie VALUE=\"swf/00_shell.swf\"><PARAM NAME=quality VALUE=best><PARAM NAME=bgcolor VALUE=#EAE8E2><EMBED src=\"swf/00_shell.swf\" quality=best bgcolor=#EAE8E2 WIDTH=\"663\" HEIGHT=\"456\" NAME=\"demo02\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED></OBJECT>"

	var alternateContent = "<a href=\"http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\"><img src=\"" + sNoFlashImageURL + "\" /></a>";

	if (!useRedirect) { 
		if(hasRightVersion) { 
			document.write(oeTags);
		} else { 
			document.write(alternateContent);
		}
	}

}

function hideshow(sID) {
// Function that will swap the display/no display for
// all content within span tags
oObject = document.getElementById(sID);

if (oObject.style.display == "none")
{
oObject.style.display = "block";
}
else
{
oObject.style.display = "none";
}
}