function displayFLV() {
	var flashvars = {
                'eStatName':jQuery("#src_flv").val()
        };
	var params = {
		"allowFullscreen":true,
		"allowScriptAccess":"always",
		"wmode":"transparent"
	};
	var attributes = {
		"allowFullscreen":true,
		"allowScriptAccess":"always",
		"wmode":"transparent"
	};
	swfobject.embedSWF("/flash/playervod.swf?flvurl=" + jQuery("#src_flv").attr('value'), "player1", "423", "259", "10.0.0","expressInstall.swf",flashvars,params,attributes);
}

function downloadDoc(prefix, doc_url) {
	if(doc_url != '') window.location = 'http://'+ prefix + doc_url;
	return false;
}

function getPDFList() {
	jQuery.ajax({
		type: "POST",
		dataType: "html",
		data: "class=bul_pdf&method=getPdfList",
		url: "/ajax/request.php",
		beforeSend: function() {
			jQuery("#pdf_list").html('<p><img src="/templates/publicsenat/images/loading.gif" alt="Loading ..." /></p>');
		},
		error:function(msg){ },
		success:function(data){ jQuery("#pdf_list").html(data); init_ibox(); }
	});
}

function regenerePDF() {
	new Ajax.Request(
		"/ajax/request.php" ,
		{
			method: 'post'
		,   parameters: "class=bul_pdf&method=getPdfList&params[force]=1"
		,   onLoading: function() {
				$("pdf_list").innerHTML = '<p><img src="/templates/default/images/loading.gif" alt="Loading ..." /></p>';
			}
		,   onComplete: function(req) { $("pdf_list").innerHTML = 'Les PDF sont regénérés'; }
		}
	);
}

