
function initCollection() {
    $("#collectionoverlay").hide();

    $("#mencol span").click(function() {
        if (flashOpened)
            swfobject.removeSWF("collectionflash");
        $("#collectionoverlay").show();
        flashOpened = true;
        $("body").scrollTo('#collection',{
            duration: 1000,
            onAfter: function() {
                document.location='#collection';
            }
        });
        currentPanel = '#collection';
        swfobject.createSWF({
            data: 'fw11Gallery.swf',
            id: 'leeplayer',
            menu: "false",
            scale: "noScale",
            allowFullscreen: "true",
            allowScriptAccess: "always",
            bgcolor: "#000000",
            width: '100%',
            height: '100%'
        },{
            flashvars:"sex=men"
        },'collectionflash'
        );
//        _gaq.push(['_trackPageview', '/collection/men']);
    });
    
    $("#womcol span").click(function() {
        if (flashOpened)
            swfobject.removeSWF("collectionflash");
        $("#collectionoverlay").show();
        flashOpened = true;
        $("body").scrollTo('#collection',{
            duration: 1000,
            onAfter: function() {
                document.location='#collection';
            }
        });
        currentPanel = '#collection';
        swfobject.createSWF({
            data: 'fw11Gallery.swf',
            id: 'leeplayer',
            menu: "false",
            scale: "noScale",
            allowFullscreen: "true",
            allowScriptAccess: "always",
            bgcolor: "#000000",
            width: '100%',
            height: '100%'
        },{
            flashvars:"sex=women"
        },'collectionflash'
        );
//        _gaq.push(['_trackPageview', '/collection/women']);
    });

    $("#collectionoverlayclose").click(function() {
        swfobject.removeSWF("collectionflash");
        flashOpened = false;
    });
}


/* Ajout Ben pour scroller vers storefinder depuis flash */
function scrolltostores() {
        $("body").scrollTo('#stores',{
            duration: 1000,
            onAfter: function() {
                document.location='#stores';
            }
        });

}
