Help converting Element ID to String

Help converting Element ID to String

God, I'm not even sure if I asked the question correctly... I'm super new to this.

Anyway, this is my script...

  1. $(document).ready
  2. (
  3.     function()
  4.     {
  5.         $("#stepBox li").hover
  6.         (
  7.             function()
  8.             {
  9.                 var elid = $(this).attr('id');
  10.                loadSWF("/ovi/lib/swfs/"+elid+".swf", "flashBox");
  11.             }
  12.         );
  13.     }
  14. );
  15.    
A little bit of background:

This is probably a really cheap way of doing what I want, but whatever. Essentially, each <li> has an ID which corresponds to a SWF filename. So <li id="content1"> corresponds to "content1.swf", etc.

The values I'm sending to the loadSWF function are (somewhat obviously) the file URL and (much less obviously) the container div.

Anyway, all I want is to fill in the gaps on the above code.

Also, for what it's worth, I have verified that everything works correctly if I just put the full URL with no variable into line 10.

Thanks in advance for the help!