function flashSlideShow(txtFile,group,shuffle,captions, w, h, p)
{
	<!--
// This script ultimately replaces the text contents  
// in the div  id="my_swfid" above by the SWF object 

// Let's get this flash movie to play
// We need to provide values for: 
//		swfid,swf,id,width,height,version,bgcolor 

// this depends on the id of the div where you want it
 	var swfid="imageRotator";
	var swf="/components/flashslideshow.php?"+Math.random()*1000;
	var id = "FVS";
	var width=w;
	var height=h;
	var version="8";
	var bgcolor=0;
             // or  0 for transparent 
             // or a 6 digit code like "#cccccc" for that color

   var fo = new SWFObject(swf, id, width, height, version, bgcolor);
   fo.addVariable("txtFile", txtFile); 
   fo.addVariable("captionsActive", captions); 
   fo.addVariable("grp",group);
   fo.addVariable("shuffle",shuffle);
   fo.addVariable("pauseDuration", p);
   fo.addVariable("wdth", width);
   fo.addVariable("hght", height);
   fo.addParam("wmode", "opaque"); 
   fo.write(swfid); 
     
//-->
}

