salve a tutti
ho la necessità di switchare un header al click di un link in una pagina di un sito
mi spiego meglio
quando si entra in index.php, l'header deve caricare un certo header (un swf che cambia immagini come uno slide che prende i dati da un xml)
cliccando un link in questa pagina (ovvero se viene passata una certa variabile 'idf', l'header deve cambiare e caricare un altro xml
sembra che il passaggio di variabile funzioni, perchè l'swf carica l'xml esatto
il problema è che quando entro in index.php, l'swf non funziona, mi dice di scaricare il nuovo flash player
ma non può essere vero, visto che il secondo header viene visualizzato correttamente
suppongo sia un problema di codice
eccolo qui


Codice PHP:

 <div id="header">

 <div id="logo">[url="http://www.etofiere.it"][img]css/img/etofiere_logo.png[/img][/url] </div>


<?php

$getnomecitta 
mysql_query("SELECT * FROM etf_fiere INNER JOIN cittait ON etf_fiere.ridcittafiera = cittait.id_citta
WHERE etf_fiere.idfiera='"
.$_GET['idf']."'") or die(mysql_error());
while (
$res=mysql_fetch_array($getnomecitta)) {
    
    
/*echo $res['citta'];*/
    
    
$getnomeregione mysql_query ("SELECT * FROM cittait
INNER JOIN provincieit ON cittait.citta=provincieit.provincia
INNER JOIN regioniit ON provincieit.id_reg = regioniit.id_regione
WHERE cittait.citta = '"
.$res['citta']."'") or die(mysql_error());    
    while (
$risultatoregione=mysql_fetch_array($getnomeregione)) {
    
/*echo $risultatoregione['regione'];*/
?>
<?php  
if($_GET['idf']){ 

?>            <script type="text/javascript" src="js/swfobject.js"></script>

        <script type="text/javascript">

            // JAVASCRIPT VARS
            // cache buster
            var cacheBuster = "?t=" + Date.parse(new Date());
            // stage dimensions
            var stageW = "930";//"100%";
            var stageH = "190";//"100%";


            // ATTRIBUTES
            var attributes = {};
            attributes.id = 'BannerComponent';
            attributes.name = 'BannerComponent';

            // PARAMS
            var params = {};
            params.bgcolor = "#ffffff";
            params.menu = "false";
            params.scale = 'noScale';
            params.wmode = "opaque";
            params.allowfullscreen = "false";
            params.allowScriptAccess = "always";


            /* FLASH VARS */
            var flashvars = {};

            /// if commented / delete these lines, the component will take the stage dimensions defined
            /// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml
            flashvars.componentWidth = stageW;
            flashvars.componentHeight = stageH;

            /// path to the content folder(where the xml files, images or video are nested)
            /// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")
            flashvars.pathToFiles = "banner/";


flashvars.xmlPath = "xml/banner_<?php echo $risultatoregione['regione']; ?>.xml";
<?php } else { 
 
?>            // path to content XML
         <script type="text/javascript" src="js/swfobject.js"></script>

        <script type="text/javascript">

            // JAVASCRIPT VARS
            // cache buster
            var cacheBuster = "?t=" + Date.parse(new Date());
            // stage dimensions
            var stageW = "930";//"100%";
            var stageH = "190";//"100%";


            // ATTRIBUTES
            var attributes = {};
            attributes.id = 'BannerComponent';
            attributes.name = 'BannerComponent';

            // PARAMS
            var params = {};
            params.bgcolor = "#ffffff";
            params.menu = "false";
            params.scale = 'noScale';
            params.wmode = "opaque";
            params.allowfullscreen = "false";
            params.allowScriptAccess = "always";


            /* FLASH VARS */
            var flashvars = {};

            /// if commented / delete these lines, the component will take the stage dimensions defined
            /// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml
            flashvars.componentWidth = stageW;
            flashvars.componentHeight = stageH;

            /// path to the content folder(where the xml files, images or video are nested)
            /// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")
            flashvars.pathToFiles = "banner/";
            flashvars.xmlPath = "xml/banner.xml";

<?php ?>
            /** EMBED THE SWF**/
            swfobject.embedSWF("preview.swf"+cacheBuster, attributes.id, stageW, stageH, "9.0.124", "js/expressInstall.swf", flashvars, params, attributes);
<?php }
    
}    
?>    

    </script>


                
                <div id="BannerComponent"  style="margin-top: 60px;>
                    

In order to view this object you need Flash Player 9+ support!</p>
                    [url="http://www.adobe.com/go/getflashplayer"][img]http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif[/img][/url]
                </div>

    </div>
dove sbaglio?
grazie!