{% load absurl %}
{% load static %}
{% comment %}
Yes we include swfobject.js in the middle of the page...
{% endcomment %}
<script type="text/javascript" src='{% static "ldt/js/swfobject.js" %}'></script>
<div id="ldtInit" name="ldtInit" style="background-color: #00FF00; width: 1201px; height: 831px; left: 100px; top: 100px; z-index: 99999999; margin: 0; padding: 0;">&nbsp;</div>
<script language="JavaScript" type="text/javascript">

	var params = {
		quality:"high",
		allowFullScreen:"true",
		wmode:"transparent",
		allowScriptAccess:"always"
	};

	var flashvars = {
		colorUrl:'{{colorurl}}',
		i18nUrl: '{{i18nurl}}',
		language: '{{language}}',
		{% if url %}
		urlBase:'{{baseurl}}',
		initUrl:'{{url}}',
		{% endif %}
		{% ifequal readonly 'false' %}
		readOnly: '{{readonly}}',
		postUrl:'{{posturl}}',
		postVars: encodeURIComponent('id={{id}}&csrfmiddlewaretoken={{csrf_token}}'),
		{% if audio_record_url %}
		streamRecordingUrl: '{{ audio_record_url }}',
		{% endif %}
		{% else %}
		readOnly:'true',
		{% endifequal %}
		segmentPassMask:"{% absurl 'ldt.ldt_utils.views.lignesdetemps.index_segment' '{4}' '{0}' '{1}' '{2}' '{3}' %}",
		simplePlayerPassMask:"{% absurl 'ldt.ldt_utils.views.front.annot_content' '{0}' '{4}' '{2}' %}#id={3}"
		
	};

	var attributes = {  id: "ldtInitSwf",  name: "ldtInitSwf"};

	swfobject.embedSWF('{% static "ldt/swf/ldt/LignesDeTempsFlex.swf" %}', "ldtInit", "1000", "630", "10.2.0", '{% static "ldt/swf/expressInstall.swf" %}', flashvars, params, attributes);

</script>

