OK, so you're getting an empty string back from $().SPServices.SPGetCurrentSite(). Are you sure there are no script errors?
I'm running out of ideas. What's the URL of the page you're doing all this on?
M.
I'm running out of ideas. What's the URL of the page you're doing all this on?
M.