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;
}

rightClickWarning = "All photos are copyright by David S. Steele - steelephotography.com  All rights reserved. Unauthorized use is prohibited."


function doOnLoad()
{
if (window.AlbumID && window.AlbumID == "1765939") //
{
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 AddReferralCode()  {
  var links = this.getElementsByTagName("A");
  if (links && (links.length != 0)) {
    var smugLink = links.item(0);
    smugLink.href = "http://www.smugmug.com/?referrer=xgq9viPRs6S0Y";
  }
}
YE.onAvailable('footer', AddReferralCode);

 

var vanityTable = 
 {
     ddcvipdec : "http://www.steelephotography.com/gallery/2299965",
     family2007 : "http://www.steelephotography.com/share/H1QZbEY3D6ab6",
     tonrodeo2007 : "http://www.steelephotography.com/gallery/2431759",
     family2006 : "http://www.steelephotography.com/share/FWkApX899l146",
     toltecalli : "http://www.steelephotography.com/gallery/2465138",
     ringcardgirls : "http://www.steelephotography.com/gallery/2750000",
     ddctreenaproof : "http://www.steelephotography.com/gallery/2826016",
     ddcexecutiveproof : "http://www.steelephotography.com/gallery/2826012",
     ddcexecutiveproof2 : "http://www.steelephotography.com/gallery/2935344",
     toninauguration :  "http://www.steelephotography.com/gallery/3360795",
     libbyproof : "http://www.steelephotography.com/gallery/3943020",
     lbt2007 : "http://www.steelephotography.com/gallery/4111976",
     lbt : "http://www.steelephotography.com/gallery/4111976",
     family2008 : "http://www.steelephotography.com/share/35jJ4gHXDsAgA",
     netta : "http://www.steelephotography.com/gallery/6065875_Toz3e#380360453_uZxFP",
     tvsc2008 : "http://www.steelephotography.com/share/Ac9bLWEJ8Q2Tw",
     family2009 : "http://www.steelephotography.com/share/NO2kDx2fQWGhI"

};

  function CheckRedirects()
 {
     if (YD.hasClass(document.body, 'homepage'))    // only run this code on the home page
     {
         // get the path from the current URL, 
         // convert it to lowercase and remove the leading slash
         var path = window.location.pathname.toLowerCase().substr(1);
         
         var newURL = vanityTable[path];        // look it up in our table
         
         // if we found it in the table && newURL is different than where we are
         if (newURL && (newURL != window.location))
         {
             window.location.replace(newURL);        // go to the new URL
         }
     }
 }

 function IsHomePage()
 {
    return(YD.hasClass(document.body, 'homepage'));
 }