// used to avoid the user action of clicking embedded or "active" content before they interact with it.

function RunMainMenu(templates_path)
{
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="667" height="43">\n');
  document.write('<param name="movie" value="'+templates_path+'menu_ticker.swf">\n');
  document.write('<param name="quality" value="high">\n');
  document.write('<embed src="'+templates_path+'menu_ticker.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="667" height="43"></embed></object>\n');
}

function RunIntro(templates_path)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="450" height="140">\n');
	document.write('<param name="movie" value="'+templates_path+'intro.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<embed src="'+templates_path+'intro.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="140"></embed></object>\n');
}

function RunTicker(theExtra)
{
	var tickerContent = new String;
	tickerContent += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="453" height="300">\n';
	tickerContent += '<param name="movie" value="ticker.swf' + theExtra + '">\n';
	tickerContent += '<param name="quality" value="high">\n';
	tickerContent += '<embed src="ticker.swf' + theExtra + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="453" height="300"></embed></object>\n';
	document.getElementById( "tickerHolderID" ).innerHTML = tickerContent;
}

function RunNewsTicker()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="752" height="25">\n');
	document.write('<param name="movie" value="newsticker.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<embed src="newsticker.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="752" height="25"></embed></object>\n');
}

function RunAlerta(templates_path)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="20" height="20">\n');
	document.write('<param name="movie" value="'+templates_path+'alerta.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<embed src="'+templates_path+'alerta.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="20" height="20"></embed></object>\n');
}
