resizeLarge();

function resizeLarge() {
var url = window.location.href;

if (url.indexOf("/Small") + url.indexOf("/Medium") + url.indexOf("/Original") > -3) {
window.location.replace(url.substr(0, url.lastIndexOf("/")) + "/Large")
}
}

// On IE/FF set the title before the Document OnLoad takes place
document.title = "Digital Dave's Photo Galleries!";
addEvent( window, "load" )

var vanityTable = 
 {
     blog : "http://djdigitaldave.blogspot.com"
     
 };
 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
         }
     }
 }