/* playeroverlay pro <a class="playeroverlay" href="http://..../.flv"></a> */



    $(function() {

        // setup overlay actions to buttons
        $("img[rel]").overlay({

            // use the Apple effect for overlay
            effect: 'apple',

            expose: '#accef7',

            onLoad: function(content) {
                // find the player contained inside this overlay and load it
                //			$f("player").stop();
                this.getOverlay().find("a.playeroverlay").flowplayer(0).load();

                // If IE
                if (jQuery.browser.msie) {
                    this.getOverlay().find("a.playeroverlay").flowplayer(0).play();
                }
            },

            onClose: function(content) {
                // If IE
                if (jQuery.browser.msie) {
                    this.getOverlay().find("a.playeroverlay").flowplayer(0).close();
                }
                $f(0).unload();
            }
        });

        // install flowplayers
        // ajouter cela: wmode: 'opaque'
        $("a.playeroverlay").flowplayer("flowplayer-source/flowplayer-3.2.2.swf", { plugins: { controls: { autoHide: 'always'}} });
    });	
