Dumb javascript question

Hi. I am trying to get some javascript working that **after 5 seconds **hides a div when the user rolls off. What I have in the head tag is:

 
function timeOut()
{
setTimeout(MM_showHideLayers,4000);
}
function MM_showHideLayers() { //v6.0
alert("stuff");
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args*))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

and the function is called like this:

onMouseOut="timeOut();MM_showHideLayers('ESSSimulations','','hide')"

For some reason this is not working, and I don’t know enough about JS to work out why…

If anyone could help I would be very grateful :slight_smile:

Thanks
Melissa