YE.onAvailable('popularTitle', function() {this.innerHTML = 'MY MOST POPULAR IMAGES- AS VOTED BY VISITORS TO MY WEBSITE-VOTE FOR YOURS TODAY!'});

YE.onAvailable('featuredTitle', function() {this.innerHTML = 'MY FEATURED GALLERIES'});

YE.onAvailable('categoryTitle', function() {this.innerHTML = 'ALL OF MY GALLERIES'});

// fix the pesky pipes

YE.onAvailable("cobrand_footer", function() {this.innerHTML = this.innerHTML.replace(/\||what are feeds\?/gi, '');});

rightClickWarning = "All photos are property of Brad Powell and bradpowellphoto.com. All rights reserved. Unauthorized use is prohibited.";


SM.PhotoBar.config.position = 'bottom';


function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_3251866"))
  {
    var objElement = YD.get("comment")
    if (objElement != null)
    {

YE.onContentReady("slideshowButton", function () {YAHOO.widget.Button.getButton("slideshowButton"). set("label", "Full-Screen Slideshow");});
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery/gi, 'guestbook');
      objElement.innerHTML = str;
    }
  }
}

YE.onAvailable("comment", ModifyText);



function doOnLoad() {
  if (window.AlbumID && (window.AlbumID == "3251866")) //
  removeLinkFromImg();
}

function removeLinkFromImg() {
  oList = YD.getElementsByClassName("photo", "div");

  for (i=0; i < oList.length ; i++) {
    if (oList[i].childNodes) {
      oList[i].firstChild.removeAttribute("href");
      oList[i].firstChild.firstChild.removeAttribute("alt");
      oList[i].firstChild.firstChild.removeAttribute("title");
    }
  }
}




if (hasPath("galleries"))
  YD.addClass(document.body, "galleries");

function norobotmail(aUser, aDomain) { document.location = "mailto:" + aUser + "@" + aDomain; }

YE.onContentReady("slideshowButton", function () {YAHOO.widget.Button.getButton("slideshowButton"). set("label", "Play A Full-Screen Slideshow");});

YE.onContentReady("addcommentButton", function () {YAHOO.widget.Button.getButton("addcommentButton").set("label", "Your Comments Are Welcome-Click Here To Leave One!");});

YE.onContentReady("buyButton", function () {YAHOO.widget.Button.getButton("buyButton").set("label", "Buy Prints Of These Pictures");});
