function showTableBasedFlashAd(szAdName) {
	document.write("<table cellspacing=\"0\" cellpadding=\"0\" align=\"right\" style=\"margin-left: 5px; margin-bottom: 5px;\"><tr><td colspan=\"3\"><img src=\"/images/Advertisement.gif\" width=\"350\" height=\"17\"></td></tr><tr><td><img src=\"/images/graypix.gif\" width=\"7\" height=\"280\"></td><td><img src=\"/images/flash/" + szAdName + "\" width=\"336\" height=\"280\" class=\"NoMargin\"></td><td><img src=\"/images/graypix.gif\" width=\"7\" height=\"280\"></td></tr>");
	document.write("<tr><td colspan=\"3\"><a href=\"http://www.macromedia.com/software/flashplayer/\" onmouseover=\"MM_swapImage('imgGetFlashPlayer', '', '/images/GetFlash6Player_f2.gif');\" onmouseout=\"MM_swapImgRestore();\" target=\"_blank\"><img name=\"imgGetFlashPlayer\" src=\"/images/GetFlash6Player.gif\" width=\"350\" height=\"23\" border=\"0\"></a></td></tr></table>");
}

function showFlashAd(szAdName) {
	if(!szAdName.length)
		szAdName = "DefaultFlashAd.swf";
	var ar = szAdName.split(".");
	var n = parseInt(ar[0]);
	document.write("<OBJ" + "ECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ");
	document.write("codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=6,0,0,0\" ");
	document.write("WIDTH=\"350\" HEIGHT=\"320\" id=\"BillboardFlashAd\" ALIGN=\"Right\"> ");
	document.write("<PARAM NAME=flashvars VALUE=\"refID=" + n + "\"> ");
	document.write("<PARAM NAME=movie VALUE=\"/images/flash/" + szAdName + "\"> ");
	document.write("<PARAM NAME=loop VALUE=false> ");
	document.write("<PARAM NAME=menu VALUE=false> ");
	document.write("<PARAM NAME=quality VALUE=high> ");
	document.write("<PARAM NAME=bgcolor VALUE=\"#EFEFEF\"> ");
	document.write("<EMBED src=\"/images/flash/" + szAdName + "\" loop=false menu=false quality=high bgcolor=\"#EFEFEF\" WIDTH=\"350\" HEIGHT=\"320\" NAME=\"BillboardFlashAd\" ALIGN=\"Right\" ");
	document.write("TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" flashvars=\"refID=" + n + "\"></EMBED> ");
	document.write("</OBJECT> ");
}
