A better way for getting the site's domain

Rather than use:

```
<?php echo str_replace( 'http://' , '' , home_url()) ?>
```

[parse_url()](http://us3.php.net/manual/en/function.parse-url.php) would be more durable, in case WordPress is being served from a subdirectory or over HTTPS