Click the div below to get a modified "wait" panel. Note that this modified "wait" panel will only mask the DIV, not the body and it will attach the wait panel to the center of the DIV not the center of the body. Now if you click the link below a normal Wait Panel will load over the entire page.
I have accomplished this by over writing 2 of the Panel's prototype functions (
center & sizeMask). Then I attached a custom function called fixMask to the Custom Event
The functions behave the way they do based on where the panel is rendered. If it is rendered to the body, the mask takes up the whole page. If it is rendered inside of another object it will attach to that object.