﻿
// "Satay" flash embed

function embedMovie(flv, placeholderImage, width, height) {
var moviePath = "../movies/";
var imagePath = "../i/film/";

var movieLink = moviePath + flv;
var placeholderLink = imagePath + placeholderImage;

var link = "flv_player.swf?movieContent=" + movieLink + "&placeholderImage=" + placeholderLink;
	document.write('<object type="application/x-shockwave-flash" data="' + link + '" width="' + width + '" height="' + height + '" wmode="transparent">');
	document.write('<param name="movie" value="'+ link + '" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<img src="images/noflash.gif" alt="" />');
	document.write('</object>');
}

/*
<object type="application/x-shockwave-flash
data="c.swf?path=movie.swf" 
width="400" height="300">
<param name="movie" 
value="c.swf?path=movie.swf" />
<img src="noflash.gif" 
width="200" height="100" alt="" />
</object>
*/

// fix for flash coming through lightbox

function StopFlashMovie()
{
	var flashMovie=getFlashMovieObject("FlashObjName");
	flashMovie.style.display = 'none';
	flashMovie.style.width = '0';
	flashMovie.style.height = '0';
	 if (navigator.appName.indexOf("Microsoft Internet")==-1)
	  {
	   flashMovie.innerHTML = " ";
	  }
}

function PlayFlashMovie()
{
	var flashMovie=getFlashMovieObject("FlashObjName");
	location.reload(true);
}
