function autoMovie360ID(flashFile, larg, altu, bIsTransparent, nome) {
    document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" id=\"" + nome + "\" width=\"" + larg + "\" height=\"" + altu + "\">");
    document.write("<param name=\"movie\" value=\"" + flashFile + "\">");
    document.write("<param name=\"quality\" value=\"high\">");
    if (bIsTransparent) {
        document.write("<param name=\"wmode\" value=\"transparent\">");
    }
    document.write("<embed src=\"" + flashFile + "\" " + (bIsTransparent ? "wmode=\"transparent\"" : "") + " menu=\"false\" name=\"" + nome + "\" quality=\"high\" swLiveConnect=\"true\" allowScriptAccess=\"sameDomain\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + larg + "\" height=\"" + altu + "\"></embed>");
    document.write("</object>");
}

function getFlashMovieObject(movieName) {
    if (window.document[movieName]) {
        return window.document[movieName];
    }
    if (navigator.appName.indexOf("Microsoft Internet") == -1) {
        if (document.embeds && document.embeds[movieName]) {
            return document.embeds[movieName];
        }
    } else {
        return document.getElementById(movieName);
    }
}

function showPic_flash(imgID, flashId) {
    flashMovie = getFlashMovieObject(flashId);
    flashMovie.SetVariable("IMG", imgID);
    flashMovie.changePicByURL();
}