I'm developing a web page that contians a drop down flash menu in a div tag set to absolute. The site and menu works fine except when I print the div tag that is normally see though now covers the content. I've been fiddling with some scripts and if I try to hide the div tag when the onbeforeprint function is called (the function that is called when you try to print from the browser) then it works on the screen and hides the div tag but it still prints the page with the div tag not hidden and after the print command is finnished it doesn't return the div tag again. Here is my code.
document.getElementById("flash_menu").style.display = "block";
document.getElementById("flash_menu").style.display = "none";
If any one knows of how to fix this or any tutorials where I can read up on this I will be very greatful.