YE.onAvailable('galleryTitle', function() {this.innerHTML = 'My Galleries'});
YE.onAvailable('featuredTitle', function() {this.innerHTML = 'The Four Most Recent Gallery Additions'});
YE.onAvailable('categoryTitle', function() {this.innerHTML = '<h1 align="center">• My Photo Galleries •<br>A Myriad Of Memories-Harvested from Within my Viewfinder</h1><h3 align="center"><p>Just Click on a Subject Photo To See All Of The Catagories Pertaining To That Subject.<br>There are Thousands of Photos nested here in all of the Galleries within each Subject.<br>Browse just as much as you wish. And I Certainly Hope You Enjoy what you find</h3><h2 align="center">●●● CanonShots ●●●<br>"HAVE CANON-WILL TRAVEL - WIRE PAuLADIN, FT.WORTH"</h2></p> '});

rightClickWarning = "All photos are property of Valentine-Photography. All rights reserved. Unauthorized use is prohibited.";


function createSWF( w, h, params) {
  var args = "";
  for (var i in params) {
    args += i + "=" + params[i] + "&amp;";
  }
document.writeln('<object width="100%" height="100%" align="middle">'+ '<param name="movie" value="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'"/>'+ '<param name="wmode" value="transparent" />'+ '<embed src="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'" wmode="transparent" width="' + w + '" height="' + h + '" type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all"/></object>');
return 1;
}

SM.PhotoBar.config.position = 'bottom';
function AddReferralCode() {
var links = this.getElementsByTagName("A");
if (links && (links.length != 0)) {
var smugLink = links.item(0);
smugLink.href = "http://www.smugmug.com/?referrer=bBN4b1hLryyrQ";
}
}
YE.onAvailable('footer', AddReferralCode);

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}


function delCategory() {
  re = /\/Grandchildren$/;

  if (!YD.hasClass(document.body, 'homepage') || YD.hasClass(document.body, 'loggedIn'))
return;

  var oList = YD.getElementsByClassName('miniBox', 'div', YD.get('categoriesBox'));

  for (i = 0; i < oList.length; i++) {
    if (re.test(oList[i].getElementsByTagName('a')[0].href))
      oList[i].parentNode.removeChild(oList[i]);
  }
}

