I'm using this script to load CSS for just Chrome browsers, but for some reason Firefox and Safari are picking up the styles I'm using only for chrome.css.

Is there something wrong with this?

Code:
		<script type="text/javascript">
    if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1);
    document.write('<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/chrome.css">');
    </script>