set(global.plugin[popup_bg].enabled, false);
set(global.events[popup].name, null);
tween(global.plugin[pp_blur].range, 0.0);
tween(global.layer[popup_bg].bgalpha, 0.0, 0.25);
tween(global.layer[popup].alpha, 0.0, 0.25, default,
removelayer('popup_bg', true);
scope(private:POPUP, delete(popup); );
);
calc(imgw, caller.imagewidth + 20);
calc(imgh, caller.imageheight + 20);
calc(maxw, global.stagewidth*0.9);
calc(maxh, global.stageheight*0.8);
if(imgw GT maxw,
calc(imgh, round(imgh * maxw / imgw));
copy(imgw, maxw);
);
if(imgh GT maxh,
calc(imgw, round(imgw * maxh / imgh));
copy(imgh, maxh);
);
set(global.layer[get(caller.parent)], width=get(imgw), height=get(imgh) );
tween(view.oz, 1500);
set(control.invert,false);
tween(view.oz, 0.0);
set(control.invert,false);
trace ("------------------------");
showtext(get(hotspot[get(name)].title), STYLE1_LinkSM));