function redirectPath() {
  re = /((www.)?dreamlineimagery.smugmug.com)/;
  tmp = window.location.href;
  if (re.test(tmp)) {
    tmp = tmp.replace(re, 'www.dreamlineimagery.com');
    window.location.href = tmp;
  }
}
redirectPath();

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

/*=======================*/
/*== CHANGE BREADCRUMB ==*/
/*=======================*/

YE.onContentReady('breadCrumbTrail', function() {this.innerHTML =
this.innerHTML.replace('dreamlineimagery','Photo Galleries')});

YE.onContentReady('breadcrumb', function() {this.innerHTML =
this.innerHTML.replace('dreamlineimagery', 'Photo Galleries')});

YE.onContentReady('breadCrumbTrail', function() {
 for (var i in this.childNodes) {
 if (this.childNodes[i].tagName == "A") {
 this.childNodes[i].href="/galleries";
 break;
 }
 }
});

YE.onContentReady('breadcrumb', function() {
 for (var i in this.childNodes) {
 if (this.childNodes[i].tagName == "A") {
 this.childNodes[i].href="/galleries";
 break;
 }
 }
});

function doOnLoad() {
  if (window.AlbumID && (window.AlbumID == "7570120"))
  removeLinkFromImg();
}

function removeLinkFromImg()
{
    var links = document.getElementsByTagName("A");

    for (var i = 0; i < links.length; i++)

    {

        var link = links[i];

        var divElm = link.parentNode;

        if (!divElm)

            continue;

        divElm = divElm.parentNode;

        if (!divElm)

            continue;

        if (divElm.className.indexOf("photo")<0)

            continue;

        link.href = "javascript:void(0);";

    }

}
