
function insertFlashBanner(SRC, id, width)
{
	var str = "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ";
	str += "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" ";
	str += "swLiveConnect=true WIDTH=\"" + width + "\" HEIGHT=\"50\" id=\"" + id + "\" ALIGN=\"\"> "; 
        str += "<PARAM NAME=movie VALUE=\"" + SRC + "\"> ";
	str += "<PARAM NAME=URL VALUE=\"/cgi-bin/bannercount.cgi?customer=" + id + "&location=\"> "; 
	str += "<PARAM NAME=quality VALUE=high> ";
	str += "<PARAM NAME=bgcolor VALUE=#FFFFFF> ";
	str += "<PARAM NAME=TARGET VALUE=\"\"> ";
	str += "<EMBED src=\"" + SRC + "\" quality=high bgcolor=#FFFFFF ";
	str += "WIDTH=\"" + width + "\" HEIGHT=\"50\" NAME=\"" + id + "\" swLiveConnect=true ALIGN=\"\" "; 
	str += "TYPE=\"application/x-shockwave-flash\" ";
	str += "PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"> ";
	str += "</EMBED>";
	str += "</OBJECT>";

	document.write(str);
}

function insertOtherFlash(SRC, id, width, height)
{
	var str = "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ";
	str += "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" ";
	str += "swLiveConnect=true WIDTH=\"" + width + "\" HEIGHT=\"" + height + "\" id=\"" + id + "\" ALIGN=\"\"> "; 
        str += "<PARAM NAME=movie VALUE=\"" + SRC + "\"> ";
	str += "<PARAM NAME=URL VALUE=\"/cgi-bin/bannercount.cgi?customer=" + id + "&location=\"> "; 
	str += "<PARAM NAME=quality VALUE=high> ";
	str += "<PARAM NAME=bgcolor VALUE=#FFFFFF> ";
	str += "<PARAM NAME=TARGET VALUE=\"\"> ";
	str += "<EMBED src=\"" + SRC + "\" quality=high bgcolor=#FFFFFF ";
	str += "WIDTH=\"" + width + "\" HEIGHT=\"" + height + "\" NAME=\"" + id + "\" swLiveConnect=true ALIGN=\"\" "; 
	str += "TYPE=\"application/x-shockwave-flash\" ";
	str += "PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"> ";
	str += "</EMBED>";
	str += "</OBJECT>";

	document.write(str);
}

function fixObjects()
{
	theObjects = document.getElementsByTagName("object");
	for (var i = 0; i < theObjects.length; i++) 
	{
		theObjects[i].outerHTML = theObjects[i].outerHTML;
	}
}

fixObjects();

