/*function suVideo() {
var videoContent = $("#VideoContent");
if (videoContent.length > 0) {
$("#VideoContent").toggle();
} else {
$('<div id="VideoContent"><h2><span>pour fermer la vid&eacute;o</span></h2><div id="vidFlash"></div></div>').appendTo('body');
$("#vidFlash").flash({swf:'/swf/flvplayer.swf',width:360,height:300,flashvars:{file:'playlist.xml',displayheight:240,autostart:'true',backcolor:"0x7D9BD8",frontcolor:"0xCCCCCC",lightcolor:"0x00417D"}});
$("#VideoContent").draggable({handle:'h2'});
$("#VideoContent h2 span").click(function(e){
e.stopPropagation();
$("#VideoContent").fadeOut().remove();
}).button({icons: {primary: 'ui-icon-closethick'},text: false});
}
}
$(function(){
var value = $.readCookie('videoUfgLfp');
if (value===null) {
var cookie = $.setCookie('videoUfgLfp', 'vu', { duration: 1 });
suVideo();
}
});*/
$(function() {
  var vidFlash = $("#vidFlash");
  if (vidFlash) {
    var autoStart = true;
    if ($("#nvAnnee,#nvMarque").length  > 0) {
      autoStart = false;
    } else if ($("#voeux2012").data("o")) {
      autoStart = false;
    }
    
    $("#vidFlash").flash({ swf: 'swf/flvplayer.swf', width: 360, height: 300, flashvars: { file: 'playlist.xml', displayheight: 240, autostart: autoStart, backcolor: "0x7D9BD8", frontcolor: "0xCCCCCC", lightcolor: "0x00417D"} });
  }
});
