Well, I created my own option called slideshow_width and set it to 610, then put the above code in my headinclude template. Then in the footer template I put this:
Code:
<script>
document.writeln('Width ' + slideshow_width);
</script>
and it displays
at the bottom of my page. So it looks like the variable is being set to 610. I don't know why it wouldn't work in place of an integer constant in your .js file, but I'm not really a javascript expert. You have to figure out some way to debug it. Like maybe put this in you js file:
Code:
window.alert("slideshow_width is " + slideshow_width");
and see what it says.
Also, don't type in all caps, it looks like you're yelling.