function redirectPath() {
  re = /((www.)?steventoon.smugmug.com)/;
  tmp = window.location.href;
  if (re.test(tmp)) {
    tmp = tmp.replace(re, "www.steventoon.com");
    window.location.href = tmp;
  }
}
// redirectPath();


function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
YE.onContentReady('breadcrumb', function() {
 for (var i in this.childNodes) {
   if (this.childNodes[i].tagName == "A") {
     this.childNodes[i].href="/galleries";
     break;
   }
  }
});
YE.onContentReady('breadCrumbTrail', function() {
 for (var i in this.childNodes) {
   if (this.childNodes[i].tagName == "A") {
     this.childNodes[i].href="/galleries";
     break;
   }
  }
});

function show(id) {
 document.getElementById(id).style.display = "block";
}

function hide(id) {
 document.getElementById(id).style.display = "none";
}

function toggle(id) {
 if (document.getElementById(id).style.display == "block" || document.getElementById(id).style.display == "inline")
  hide(id);
 else
  show(id);
}

function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_5759253"))
  {
    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);

YE.onContentReady('categoryTitle', function() {this.innerHTML =
this.innerHTML.replace('Gallery Categories', 'Galleries')});

YE.onContentReady('subCatGalleryTitle', function() {this.innerHTML =
this.innerHTML.replace('Sports Sub-Categories', 'Sports')});

YE.onContentReady('subCatGalleryTitle', function() {this.innerHTML =
this.innerHTML.replace('Events Sub-Categories', 'Events')});

YE.onContentReady('subCatGalleryTitle', function() {this.innerHTML =
this.innerHTML.replace('Business Sub-Categories', 'Business')});

YE.onContentReady('subCatGalleryTitle', function() {this.innerHTML =
this.innerHTML.replace('Other Sub-Categories', 'Other')});