//====================================================
//
// jsinclude-redirect.js
//
// 2003-11-05 			Rob Ingenthron
//
// This script "fixes" the domain name, in case the
// user entered one of the planned-for mistyped names.
//
// Updated JFS 2005-06-17 to use .replace()
//====================================================
//
//  This code checks only the domain name part
//  of the URL, and if it is not "carrferrell", 
//  it is changed to "carrferrell" and the page 
//  is reloaded/refreshed.
//
//  Original URL is "replaced" in the browser history.
//
//  This is used so that the Internet user will
//  not see the other domains for bookmarking
//  purposes.
//
// Add this snippet to the "index.html" pages in the HEAD
// section to get the include fuctionality:
//   <script language="JavaScript" src="/jsinclude-redirect.js">
//   </script>
//
//====================================================
if(window.location.hostname != "www.carrferrell.com"){
  var newURL = "http://www.carrferrell.com"+window.location.pathname;
  window.location.replace(newURL);
}
