rightClickWarning = "all images // copyright nick lasure photography"

function norobotmail(aUser, aDomain) { document.location = "mailto:" + aUser + "@" + aDomain; }

function doOnLoad() {
  if (window.AlbumID && (window.AlbumID == "6700250", "6753020")) //
  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;

        divElm = divElm.parentNode;

        if (!divElm)

            continue;

        if (divElm.className.indexOf("photo")<0)

            continue;

        link.href = "javascript:void(0);";

    }

} 

var vanityTable = 
 {
     "marcusjanessa" : "http://www.nicklasurephotography.com/Weddings/Marcus-Janessa-Wedding/9499305_Z8gjt#637993223_GvSn6",
     "eddiemo" : "http://www.nicklasurephotography.com/Weddings/Eddie-Mo/9876734_AHvgQ#672544485_yYKFN",
     "amandajeff" : "http://www.nicklasurephotography.com/Weddings/Amanda-Jeff/10757058_zeRKW#749805492_bgVTF"
 };

 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
         }
     }
 }