It checks to see if there is a running instance of Internet Explorer, if there is it sets a variable, IE, to reference it, if there isn't it creates a new instance of Internet Explorer and sets the variable to reference that.