problem to save status of last open nodes


still i m not getting your sollution. can u plz send a full working example which save states of last open nodes with simple html based tree menu.
plz help me. 


I diidn’d get what u say. can u plz tell me in details or send me any working example or reference for my problem. I m not load menu from XML. i m using simple HTML base tree. i m attached here my example in .rar file.


i m using dhtmlxTree for my tree menu. its working well.
but i want save states of last open nodes in cookie. so when any open page it will so last open nodes.

i read and get dhtmlXTree_xw.js file but i dont have idea how to call this function and make it working.

Full code of sample sent by email.