How can I change a html dir with flash?

I have a dynamic slideshow that uses an embedded object which points to a dir. Im trying to figure out how to change the directory to have multiple galleries and not make the user load a different html and flash document with a different dir. Here is the object I have in my html…any ideas? Thanks

<object classid=“clsid: D27CDB6E-AE6D-11cf-96B8-444553540000”

codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0

WIDTH=“734”

HEIGHT=“520”

id=“album”

ALIGN="">
<PARAM NAME=movie VALUE=“album.swf”>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<PARAM NAME=flashVars VALUE=dir=photos//&num=6>
<EMBED src=“album.swf” flashVars=dir=photos/&num=6 quality=high bgcolor=#FFFFFF WIDTH=“734” HEIGHT=“520” ALIGN=""

TYPE=“application/x-shockwave-flash” PLUGINSPAGE=“http://www.macromedia.com/go/getflashplayer”></EMBED></object>