Add the following code to the document you want to use the script in (before any code that uses the variables defined in the script):
<script type="text/javascript" src="browser_detect.js"></script>
If the browser_detect.js file is in a different directory than the html document, be sure to include the relative path to the Javascript file in the src attribute value.
Have a nice day.