{% comment %}
Yes we include swfobject.js in the middle of the page...
{% endcomment %}
<script type="text/javascript" src="{{LDT_MEDIA_PREFIX}}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}}'),
		{% else %}
		readOnly:'true',
		{% endifequal %}
		segmentPassMask:'',
		simplePlayerPassMask:''
	};

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

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

</script>

