How can I add window status stuff to the menu given here..

I have tried and tried, but I can't seem to get it..
I need someone smart to check this code out, and add window status to it for me..

In the meantime I will try, but it would be a great help if someone was cool enough to find this out for me.

the link to the site where I got the menu from is:

http://www.dynamicdrive.com/dynamicindex1/davidmenu.htm

Thanks All,