function WriteMasthead()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24" width="766" height="231">\n');
    document.write('<param name="allowScriptAccess" value="always" />\n');
    document.write('<param name="movie" value="flash/header_v8.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="menu" value="false" />\n');
    document.write('<!--[if !IE]> <-->\n');
    document.write('<object data="flash/header_v8.swf"	width="766" height="231" type="application/x-shockwave-flash">\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="menu" value="false" />\n');
    document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />\n');
    document.write('FAIL (the browser should render some flash content, not this).\n');
    document.write('</object>\n');
    document.write('<!--> <![endif]-->\n');
    document.write('</object>\n');
}

function WriteMenu(buttonId){
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24" width="781" height="48">\n');
    document.write('<param name="allowScriptAccess" value="always" />\n');
    document.write(' <param name="movie" value="flash/menu_v8.swf?button=' + buttonId + '" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="menu" value="false" />\n');
    document.write('<param name="wmode" value="transparent" />');
    document.write('<!--[if !IE]> <-->\n');
    document.write(' <object data="flash/menu_v8.swf?button=' + buttonId +'" width="781" height="48" type="application/x-shockwave-flash">\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="menu" value="false" />\n');
    document.write('<param name="wmode" value="transparent" />');
    document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />\n');
    document.write('FAIL (the browser should render some flash content, not this).\n');
    document.write('</object>\n');
    document.write('<!--> <![endif]-->\n');
    document.write('</object>\n');

}
