//insert swf
function insertswf(targetDiv,width,height,src){
var alternativeContent = "<p style='text-align:center;display:block;border:1px solid black;padding:10px;'>You need to install flash player to see this element. Click <a href='http://get.adobe.com/flashplayer/' target='_blank'>here</a> to visit Adobe's Flash Player Site</p>";
document.getElementById(targetDiv).innerHTML = '<!--[if !IE]> --> <object type="application/x-shockwave-flash"  data="'+src+'" width="'+width+'" height="'+height+'"> <!-- <![endif]--> <!--[if IE]> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"  width="'+width+'" height="'+height+'"> '+alternativeContent+' <param name="movie" value="'+src+'" /> <!--><!--dgx-->  <param name="loop" value="true" />  <param name="menu" value="false" />   </object> <!-- <![endif]-->';
}