showPhotoBar = false;

SM.SmugMug.config.size = 'large';

rightClickWarning = "All photos are property of Strictly Trick. All rights reserved. Unauthorized use is prohibited.";


function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_2637730"))
  {
    var objElement = YD.get("comment")
    if (objElement != null)
    {
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery/gi, 'Guest');
      objElement.innerHTML = str;
    }
  }
}

YE.onAvailable("comment", ModifyText);


displaySmugPopular = false;

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)});


function doOnLoad()
{
if (window.AlbumID &&
(window.AlbumID == "2637730" || window.AlbumID == "2646207" ||
window.AlbumID == "2646690") ) //
{
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);";
}
} 


function hasPath(sPath)
{
  re = new RegExp("\/" + sPath + "(\/|$)");
  return re.test(window.location)
}

function PhotoCommentsOnly() {
   this.selectedIndex = 1;
   this.disabled = true;
}
YE.onAvailable('commentType', PhotoCommentsOnly);



