Yes, I would agree -- I don't remember why I did it that way, but I have a faint recollection that I ran into trouble. You can try to change it. if it works in all major browsers your way looks much simpler.