added resize and orientationChange listeners.  See http://stackoverflow.com/questions/12182668/how-to-make-colorbox-responsive for example and dialog.