Fijate así:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
<script>
function poner(si){
if(si){
var cad='<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="960" height="560"> <param name="movie" value="stilo.swf" /> <param name="quality" value="high" /> <embed src="stilo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="960" height="560"></embed></object>';
}else{var cad='';}
document.getElementById('FlashFarm').innerHTML=cad;
}
function cambiar(){
if(document.getElementById('FlashFarm').style.visibility=='hidden'){
document.getElementById('FlashFarm').style.visibility='visible';
poner(true);
}else{
document.getElementById('FlashFarm').style.visibility='hidden';
poner(false);
}
}
</script>
</head>
<body>
<div id="FlashFarm" style="width:960px;height:560px; visibility:hidden"> </div>
<div style=" width:100px; linhe-height: 20px; font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center; cursor:pointer; background-color:#ccc" onclick="cambiar()"> cambiar</div>
</body>
</html>