Redirect Popup Pro on Close (x) button, multiple popups, different redirects

I need to redirect the X on the popup but I have 8 popups, each popup's x needs to redirect to a different url.. hope that makes sense

I see some code around on the forum.. it looks like I can only redirect to one url on the close.

Is it possible I can tell popup1 to redirect to link1 on close, popup2 to redirect to link2 on close and so on?