This is due to closure. There is plenty to read on this subject, but here is one to start with that will strike a chord: http://joust.kano.net/weblog/archive/2005/08/08/a-huge-gotcha-with-javascript-closures/ E. Michael Brandt www.divahtml.com www.divahtml.com/products/scripts_dreamweaver_extensions.php Standards-compliant scripts and Dreamweaver Extensions www.valleywebdesigns.com/vwd_Vdw.asp JustSo PictureWindow JustSo PhotoAlbum, et alia --