It seems greybox only wants to navigate to the exact URL in the HREF attribute.
Is there any way to make that a little more dynamic with Javascript? Using onclick location.href doesn't work, adding javascript variables to href doesn't work, nothing seems to work. Any ideas?