Sliding panel and popup

Hi Bill, 

I see what your trying to do here. I would recommend making the action on the click to open the sliding panel a multiple actions (action). Close the top most panel then toggle the sliding panel. 
On close of the sliding panel you can then force your popup to open to go back to the original state of the page. 

Let me know what you think of this idea.