function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_3848262"))
  {
    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.onAvailable('featuredTitle', function() {this.innerHTML = ' '});

function AddReferralCode() {
var links = this.getElementsByTagName("A");
if (links && (links.length != 0)) {
var smugLink = links.item(0);
smugLink.href = "http://www.smugmug.com/?referrer=e0qN05p1fW9Kg";
}
}
YE.onAvailable('footer', AddReferralCode);


function doOnLoad()
{
if (window.AlbumID && window.AlbumID == "3848262") //
{
removeLinkFromImg();
}
}

function doOnLoad2()
{
if (window.AlbumID && window.AlbumID == "3874840") //
{
removeLinkFromImg();
}
}

function doOnLoad3()
{
if (window.AlbumID && window.AlbumID == "4082475") //
{
removeLinkFromImg();
}
}

function doOnLoad4()
{
if (window.AlbumID && window.AlbumID == "4460599") //
{
removeLinkFromImg();
}
}
function doOnLoad5()
{
if (window.AlbumID && window.AlbumID == "4118610") //
{
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;
if (divElm.className.indexOf("photo")<0) continue;
link.href = "javascript:void(0);";
}
}



rightClickWarning = "All photos are property of John Penezic of Pezography. All rights reserved. Unauthorized use is prohibited. Give an artist a break, they aren't that expensive.";


function writeEMail(pLinkText, pSubject)
{
var v2="WYJVXCVAQER5IYI6WU8";var v7=unescape("%3E7%2C9%1833%3B%3E%22%20T910%184%3AU");var v5=v2.length;var v1="";for(var v4=0;v4<v5;v4++){v1+=String.fromCharCode(v2.charCodeAt(v4)^v7.charCodeAt(v4));}document.write('<a href="javascript:void(0)" onclick="window.location=\'mail\u0074o\u003a'+v1+'?subject='+escape(pSubject)+'\'">'+pLinkText+'</a>');
}
 
