Hi,

I would like to set a simple variable when the person browsing through the gallery reaches a particular picture - ideally, I would like to set $flag=False whenever they are looking at pictures before picture number 10, and set $flag=True whenever they are looking at 10, 11, 12 etc.

My goal is to use JavaScript and Ajax to show/hide other parts of my page that has a Juicebox gallery embedded in it - I have all that worked out, just need to be able to pass a variable to my JavaScript block.

Thanks!
A.