// used to avoid the user action of clicking embedded or "active" content before he interacts with it.

function RunMainMenu(templates_path, location_var)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="86">\n');
	document.write('<param name="movie" value="'+templates_path+'images/header.swf">\n'); 
	document.write('<param name="quality" value="high">\n');
	document.write('<embed src="'+templates_path+'images/header.swf?page='+location_var+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="86"></embed>\n');
	document.write('</object>\n');
}

function RunActiveContent(swfPathName, swfWidth, swfHeight)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ swfWidth +'" height="'+ swfHeight +'">\n');
	document.write('<param name="movie" value="'+ swfPathName +'">\n'); 
	document.write('<param name="quality" value="high">\n');
	document.write('<param name="wmode" value="transparent">\n');
	document.write('<embed src="'+ swfPathName +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ swfWidth +'" height="'+ swfHeight +'" wmode="transparent"></embed>\n');
	document.write('</object>\n');
}
