Infobox and end window event script.