Toggles blocks within an html file depending on supplied values.