Please check this topic for full topic

My problem is, i have 2 portlets on page and both will be minizmed at start up. User can maximize the portlet and i wanted to know which portlet is maximied at that particular time. If i maximize first portlet, i will get "Normal" as window state. And then i tried to maximize second one i am getting "Normal" for both Portlet1 and Portlet2, and i am not able to identify that user clicked on second one.

Can you please help in this? Is there any way to identify the recently maximized portlet?

Thanks in advance.