I don't remember if JavaScript has any support for QueryStrings (a QueryString is the width=580 part), but if you want you could use regular expressions to rip it out of the pathname. Let me know if you would like me to elaborate any more, and if I figure out if JS supports a QueryString then I will write you back :-)
Bookmarks