/* 
 * This code has been designed by E-leos/ABProd
 * It has been designed either for an internal application or for one customer of E-leos/ABProd
 * It remains the property of either E-leos/ABprod or of one customer of E-leos/ABProd
 * Please contact arnaud@abprod.com for more informations
 * 
 * Ce code a été réalisé par E-leos/ABProd
 * Il a été conçu soit pour une application interne, soit pour le compte d'un client
 * Il reste la propriété soit de E-leos/ABProd soit de son client
 * Veuillez contacter arnaud@abprod.com pour plus d'informations
 */

var EMFMediaGalery = {
    Width: 100,
    Height: 100,
    SingleGalerySWF: '',
    ExpressInstall: '',
    /** Init the global informations   **/
    Init: function( _Width, _Height, _SingleGalerySWF, _ExpressInstall )
    {
        EMFMediaGalery.Width = _Width;
        EMFMediaGalery.Height = _Height;
        EMFMediaGalery.SingleGalerySWF = _SingleGalerySWF;
        EMFMediaGalery.ExpressInstall = _ExpressInstall;
        //  Lookup for the galeries
        
    },
    /** Function called in order to create a new galery **/
    CreateGalery: function( galeryid )
    {
        var galeries_flashvars = { galery: galeryid };
        var galeries_params = { wmode: "transparent" };
        var galeries_attributes = {};
        swfobject.embedSWF( EMFMediaGalery.SingleGalerySWF, 'galery'+galeryid, EMFMediaGalery.Width, EMFMediaGalery.Height, "9.0.0", EMFMediaGalery.ExpressInstall, galeries_flashvars, galeries_params, galeries_attributes );
    }
}

/**
 * Class representing a single galery
 */
//EMFMediaGalery.Galery = Class.create();
