// fix the pesky pipes

YE.onAvailable("cobrand_footer", function() {this.innerHTML = this.innerHTML.replace(/\||what are feeds\?/gi, '');});
   
   
// fix the pesky pipes

YE.onAvailable("cobrand_footer", function() {this.innerHTML = this.innerHTML.replace(/\||Available feeds/gi, '');});
   
   
// changes text in the Guest Book

function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_4752066")) 
  {
    var objElement = YD.get("comment")
    if (objElement != null) 
    {
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery comments/gi, '<strong> <center> <h2> <font color="teal"> Also Feel Free to Comment on Individual Photos <br /> <br /> </font color> </h2>');
      objElement.innerHTML = str;
    }
  }
}

YE.onAvailable("comment", ModifyText);
   
   
// changes delHover function
   
function delHover() {
    oLst = YD.getElementsBy(function(el) {return (YD.hasClass(el,'imgBorder') || YD.hasClass(el,'imgBorderOn'))},'img');
    for (i=0; i < oLst.length ; i++) {
        if (oLst[i].title && oLst[i].title != '') oLst[i].title = '';
        if (oLst[i].alt && oLst[i].alt != '') oLst[i].alt = '';
    }
}
YE.onContentReady('bodyWrapper', function() {if (!YD.hasClass(document.body, 'smugmug_ajax')) delHover()});
onPhotoShow.subscribe(function(){YE.onAvailable('mainImage', delHover)});
   
  
// changes homepage popularTitle
   
YE.onAvailable('popularTitle', function() {this.innerHTML = '<center> <em> <font color="silver">255 &nbsp; Most Popular Photos &nbsp; as Rated by Visitors'});
   
// changes homepage featuredTitle

YE.onAvailable('featuredTitle', function() {this.innerHTML = '<center> <em>Some &nbsp; Recently &nbsp; Updated &nbsp; Galleries'});   
   
// changes homepage categoryTitle
   
YE.onAvailable('categoryTitle', function() {this.innerHTML = '<center> <em>View Thousands &nbsp;more &nbsp;Photos & Videos'});
   
// changes homepage keywordsTitle
   
YE.onAvailable('keywordsTitle', function() {this.innerHTML = '<center> <em>Search &nbsp;by Dozens of Keywords'});
  
  
// adds new slideshow page
  
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("slideshow"))
YD.addClass(document.body, "slideshow");