/* Javascripts utilisés sur le site
 * Mettez l'ensemble de vos fonctions générique javascript ici
 *
 * La liaison avec les page se fait à l'aide du code ci-dessous :
 * <script type="text/javascript" src="css-js/scripts.js"></script>
 */

/* CORRECTION DU BUG DE FLASH AVEC IE */


function montre(id) {
		var myStretch = document.getElementsByClassName('stretch');
		var myStretcher = document.getElementsByClassName('stretcher');
		var myAccordion = new fx.Accordion(myStretch, myStretcher, {opacity: true});
                myAccordion.showThisHideOpen(myStretcher[id]);
}

function show(){
var test=document.getElementById('menu');
test.style.display='block';
}

function PopUp(strFile, nWidth, nHeight) {
    	if((typeof WindowPopUp != "undefined") && (WindowPopUp != null))
    		WindowPopUp.close();

    	WindowPopUp = window.open("popup.php?file="+strFile, "popup", "left="+((screen.width-nWidth)/2)+", top="+((screen.height-nHeight)/2)+", width="+nWidth+", height="+nHeight);
    	if(WindowPopUp != null)
    		WindowPopUp.focus();
   	}
    function PopUp2(strFile, nWidth, nHeight) {
    	if((typeof WindowPopUp != "undefined") && (WindowPopUp != null))
    		WindowPopUp.close();

    	WindowPopUp = window.open(strFile, "vins", "scrollbars=yes, left="+((screen.width-nWidth)/2)+", top="+((screen.height-nHeight)/2)+", width="+nWidth+", height="+nHeight);
    	if(WindowPopUp != null)
    		WindowPopUp.focus();
   	}
