/*======================================================================
   browser_detect.js
   
   Description: 
        This script determines whether the user's browser
        is IE3, IE4+, or Netscape 4+, and loads a different
        style sheet for each; for other browsers,
        it loads a cut-down stylesheet

	Scope: GBRMPA External Web
	Author: John Mackay (j.mackay@gbrmpa.gov.au) x756
	Date: 30/11/2001
   
====================================================================== */

if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1 && navigator.appVersion >= "4.0")
{document.write('<LINK REL="StyleSheet" HREF="http://www.gbrmpa.gov.au/_styles/ie4plus.css" TYPE="text/css">')}

else if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1 && navigator.appVersion < "4.0")
{document.write('<LINK REL="StyleSheet" HREF="http://www.gbrmpa.gov.au/_styles/styles.css" TYPE="text/css">')}

else if (navigator.appName.indexOf("Netscape") != -1 && navigator.appVersion >= "4.0" && navigator.appVersion < "5.0")
{document.write('<LINK REL="StyleSheet" HREF="http://www.gbrmpa.gov.au/_styles/ns4x.css" TYPE="text/css">')}

else if (navigator.appName.indexOf("Netscape") != -1 && navigator.appVersion >= "5.0")
{document.write('<LINK REL="StyleSheet" HREF="http://www.gbrmpa.gov.au/_styles/ns6x.css" TYPE="text/css">')}

else if (navigator.appName.indexOf("Netscape") != -1 && navigator.appVersion < "4.0")
{alert('Please contact GBRMPA IT User Support on x855 to upgrade your browser')}

else if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1 || navigator.appName.indexOf("Netscape") != -1)
{document.write('<LINK REL="StyleSheet" HREF="http://www.gbrmpa.gov.au/_styles/styles.css" TYPE="text/css">')}