function redirectPath() {
re = /(hdvideo.smugmug.com)/;
tmp = window.location.href;
if (re.test(tmp)) {
tmp = tmp.replace(re, 'highdesertracing.com');
window.location.href = tmp;
}

}
redirectPath();
function hasPath(sPath)
{
  re = new RegExp("/" + sPath + "(/|$)");
  return re.test(window.location)
}

