rightClickWarning = "Copyright Robert Hall and SmoothPhoto.com. Unauthorized use is prohibited";



function redirectPath() { 
  re = /((www.)?hazweb.smugmug.com)/; 
  tmp = window.location.href; 
  if (re.test(tmp)) { 
    tmp = tmp.replace(re, 'www.smoothphoto.com'); 
    window.location.href = tmp; 
  } 
}
redirectPath(); 



// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {

this.href = "http://hazweb.smugmug.com/";

this.firstChild.alt = "smoothphoto.com";

this.firstChild.title = "smoothphoto.com";

});

// removes the pipes characters in the toolbar header

YE.onAvailable('toolbar', function(e) {

this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");

});


function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_1094200"))
  {
    var objElement = YD.get("comment")
    if (objElement != null)
    {
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery/gi, 'guestbook');
      objElement.innerHTML = str;
    }
  }
}

YE.onAvailable("comment", ModifyText);

function delHover() {
imgTags = document.getElementsByTagName("img");
for (i=0; i<imgTags.length; i++) {
imgTags[i].title = "";
imgTags[i].alt = "";
}
}

