function ShowFlash(flvpath,startimgpath) {
	document.write('<object width="400" height="240" type="application/x-shockwave-flash" data="/scripts/flv/flvplayer.swf">');
	    document.write('<param value="always" name="allowScriptAccess"/>');
	    document.write('<param value="/scripts/flv/flvplayer.swf" name="movie"/>');
	    document.write('<param value="high" name="quality"/>');
	    document.write('<param value="false" name="menu"/>');
	    document.write('<param value="true" name="allowFullScreen"/>');
	    document.write('<param value="flv='+flvpath+'&amp;configxml=/scripts/flv/flv_config.xml&amp;startimage='+startimgpath+'" name="FlashVars"/>');
	document.write('</object>');
}

var txt_show = 'Regarder le film';
var txt_hide = 'Masquer le film';

function ShowVideo(){
    if(document.getElementById('Video').style.display == 'block'){
        document.getElementById('Video').style.display = 'none';
        document.getElementById('ShowVideoLink').innerHTML = txt_show;
        setClassName('ShowVideoLink','On');
    }
    else{
        document.getElementById('Video').style.display = 'block';
        document.getElementById('ShowVideoLink').innerHTML = txt_hide;
        setClassName('ShowVideoLink','Off');
        
    }
}

function setClassName(ElementId,classValue){
      if(document.all){// IE6 doesnt support dynamic classname changes
        var filepath = (classValue == 'On') ? '/css/i/play.gif' : '/css/i/stop.gif';
        document.getElementById('ShowVideoLink').style.background="url('"+filepath+"') no-repeat bottom left";
      }
      else{
        document.getElementById(ElementId).className = classValue;
      }
}
