function swap(id, size){
    //moulinette JS
	
    var width = (size == "big") ? "959":"575" ;
    var height = (size == "big") ? "525":"315" ;
	
    var object = getFlashObject("bigSize");
    document.body.innerHTML = "<div id='bigSize'></div>";
	
    var flashvars =	{
	    main_path : "main.swf",
	    xml_path : "xml/mainpage.xml",
	    width_ : width,
	    height_ : height,
	    target : id,
	    prev : "< Précédent 2",
	    next : "Suivant 2 >"
    };
    var attributes = {
	    id:"bgSize",
	    allowScriptAccess:"always"
    };

    var params = {
	    bgcolor : "#FFFFFF",
	    scale : "noScale",
	    salign : "tl",
	    menu : "false",
	    allowfullscreen : "true",
	    allowScriptAccess:"always"
    }

    swfobject.embedSWF("preloader.swf", "bigSize", "959", "400", "9.0.28","js/expressInstall.swf", flashvars, params, attributes);
}

function closeBig(){
    var object = document.getElementById('bgSize');
    document.removeChild(object);
}

function getFlashObject ( pAnim )
{
    if (navigator.appName.indexOf("Microsoft") != -1) return window[pAnim]; else return document[pAnim];
}

var flashvars =	{
    main_path : "main.swf",
    //method : "swap",
    xml_path : "xml/mainpage.xml",
    width_ : "700",
    height_ : "500"
};

var params = {
    bgcolor : "#FFFFFF",
    scale : "noScale",
    salign : "tl",
    menu : "false",
    allowfullscreen : "true",
    allowScriptAccess:"always"
}

var attributes = {
    id:"flashContainer",
    allowScriptAccess:"always"
};


