Detect flash, change z-index (Javascript?)

Hi Everyone,

I’ve run into a problem and think Javascript may be my solution. I’m incredibly new to Javascript and trying to learn it so if it’s best to use a different method please let me know!

I was given a fully Flash website that’s embedded into the page with swfobject, the code looks like this:

<script type=“text/javascript”>
var so = new SWFObject(“Site.swf”, “mymovie”, “969”, “795”, “9”, “#000000”);
so.addParam(“wmode”,“transparent”);
so.write(“flashcontent”);
</script>

Pretty standard…

My job was to put an html link menu behind it for the people who do not have flash. It works well in IE, but not in FF (research says there is a transparency issue in FF). I think I have a way of solving it but need help. My flash content is in one div <div id=“Site”> and my alt content is surrounded by another div <div id=“container”>. What I think I need to do is have javascript detect if there is flash (can this be done while still using swfobject?) and switch the z-index of “container” to 3 instead of 1. I’ve done it manually and it corrects the clickable links problem when someone doesn’t have Flash, but if there is Flash, it puts the links over the movie (and I only want them to be seen if there is not Flash).

Any help would be greatly appreciated!