rightClickWarning = "Photos are Copyright Kyle Lamy - Kyle Lamy Photography. All rights reserved. Unauthorized use is prohibited."; /**********Change Comment Text on Guestbook page *********************/
function ModifyText () 
{
  if (YD.hasClass(document.body, "gallery_2421736")) 
  {
    var objElement = YD.get("comment")
    if (objElement != null) 
    {
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery/gi, 'guestbook');
      objElement.innerHTML = str;
    }
  }

  if (YD.hasClass(document.body, "gallery_2421659")) 
  {
    var objElement = YD.get("comment")
    if (objElement != null) 
    {
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery/gi, 'travel journal');
      objElement.innerHTML = str;
    }
  }
}

YE.onAvailable("comment", ModifyText);

/*******************End Change Comment ********************************/


function AddReferralCode()  {
  var links = this.getElementsByTagName("A");
  if (links && (links.length != 0)) {
    var smugLink = links.item(0);
    smugLink.href = "http://www.smugmug.com/?referrer=EWOZztVttpmZY";
  }
}
YE.onAvailable('footer', AddReferralCode);

/*************Disable Guestbook Picture click *************************/

/*************************************************/
/* Disable hover/linking in the Guestbook Image  */
/*************************************************/
function RemoveGuestbookLink() {
  if (window.AlbumID && (window.AlbumID == "2421736")) //
  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");
    }
  }
}

/*************End Disable Guestbook Picture Click**********************/



/******************Share Facebook Button *****************************/
var pos = window.document.URL.indexOf("gallery");

if (pos > 0 && SM) {
        var thisURL = window.document.URL ;
	SM.buttons.FacebookButton = new YAHOO.widget.Button({
		id: 'Share on Facebook',
		label: 'Share on Facebook',
		container: 'altViews',
		type: 'link',
		href: 'http://www.facebook.com/share.php?u='+thisURL+'&t=SmugMug+Album',
		target: '_blank',
		className: 'sm-button sm-button-small facebookButton glyphButton menuButton share_button'
	});

}

/**************End Share Facebook Button *****************************/