Hey Matt,
Yea, I got that figured out which solves the immediate problem, but I would like a more general way of passing data from the instantiating javascript into custom viewer code, (annotations, buttons, etc).I mean I guess I could urlencode EVERYTHING into the ID string but that seems a bit clunky :)