or alternative;y just show and hide the div itself?
try using this function
function showhide(action, divID){
switch(action){
case 'show':document.layers[divID].visibility = "show"; break;
case 'hide':document.layers[divID].visibililty = "hide"; break;
}
}
you would call the funtion like this maybe on a mouseover event??
onmouseover="showhide('hide','mydiv');
you may not want to use it in this format. i use individual generic show and hide functions which work in all major browsers based on global browser detection variables but the principle is the same.
hope this helps
rob