JavaScript Tutorial: This bit of script sets 3 variables to 1 or 0 depending on what flavour browser is being used to display the page. These variables can then be used to decide upon which script elements/variation should be used.