parse height/width and center popup windows