displaySmugPopular = false;
rightClickWarning = "All photos are property of Out Of Avila Photography. All rights reserved. Unauthorized use is prohibited.";
SM.PhotoBar.config.position = 'bottom';

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

/*OLD SLIDE SHOW REMOVED FROM BELOW*/


/*Removed From Header Javascript, put back in 8-22-08 to see if problem*/




/* this should modifies to change gallery comments to guestbook comments, */ 

function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_1481381"))
  {
    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);


/*gets rid of pesky pipes, whatever that is!*/

// fix the pesky pipes

YE.onAvailable("cobrand_footer", function() {this.innerHTML = this.innerHTML.replace(/\||what are feeds\?/gi, '');});

/* optional slideshow variables This "NEEDS" to be in Header jScript */
slideControls = true;

showPhotoBar = true;









