changes made specifically for OTRS. Don't use this for normal lightbox usage.