/* 
Changed function so that ONE function can be used for different movies, and so we don't have to maintain blocks of js code on every page (reduces bandwidth a bit too):

	movie (string): 		name of movie and replacement image, without file extension,
	wd (int):						width of movie/replacement image,
	ht (int):						height of movie/replacement image,
	bg (string):				hex code for bgcolor attribute in param line without '#',
	urlPrefix (string):	prefix for path to images/movies. Should be, e.g., '' on root page, but '../' one directory deep.									

	e.g. <script type="text/javascript">loadMovie('pursecontents',250,50,'ffffff','../');</script>
*/
function loadMovie(movie,wd,ht,bg,urlPrefix) {
		var flashDir = urlPrefix + 'flash/';
		var imageDir = urlPrefix + 'flash/';
		var moviePath = flashDir + 'loader.swf?path=' + flashDir + movie + '.swf';
		var imagePath = imageDir + movie + '.gif';
	
		document.write('\n<object type="application/x-shockwave-flash" data="' + moviePath + '" width="' + wd + '" height="' + ht + '">\n');
		document.write('<param name="movie" value="' + moviePath + '">\n');
		document.write('<param name="bgcolor" value="#' + bg + '">\n');
		document.write('<img src="' + imagePath + '" width="' + wd + '" height="' + ht + '" alt="" />\n');
		document.write('</object>\n');
    document.write('</object>\n');
}
