function flashobject(sourceURL,width,height,objectid)
{
  if (objectid=='')
    objectid="mainflash"
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width=' + width + ' height=' + height + ' id='+objectid+' align="middle">\n');
document.write('<param name="allowScriptAccess" value="always" />\n');
document.write('<param name="movie" value=' + sourceURL + ' />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="wmode" value="transparent" />\n');
document.write('<param name="menu" value="false" />\n');
document.write('<param name="bgcolor" value="#ffffff" />\n');
document.write('<embed src=' + sourceURL + ' quality="high" wmode="transparent" menu="false" bgcolor="#000000" width=' + width + ' height=' + height + ' name='+objectid+' align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>\n');
}


function getMovie(movieName) { 
    if (navigator.appName.indexOf("Microsoft") != -1) { 
        return window[movieName]; 
    } else { 
        return document[movieName]; 
    } 
} 
function getMovie(movieName) { 
    return document.getElementById(movieName); 
} 
function somefunc() { 
    var flash = getMovie('headflash'); 
    flash.resetmenu(); 
} 