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")
}
}

function delHover() {
imgTags = document.getElementsByTagName("img");
for (i=0; i<imgTags.length; i++) {
imgTags[i].title = "";
imgTags[i].alt = "";
}
}

function ModifyText () 
{
  if (YD.hasClass(document.body, "gallery_1277630")) 
  {
    var objElement = YD.get("comment")
    if (objElement != null) 
    {
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery/gi, 'guestbook');
      objElement.innerHTML = str;
    }
  }
}

YE.onAvailable("comment", ModifyText);


//Goto Recent Gallery 
 function showRecent(days)
{
   endDate = new Date();
   oneDay = 1000*60*60*24;
   startDate = new Date(endDate.getTime() - (parseInt(days) * oneDay));
   sUrl = "/date/";
   sUrl += startDate.getFullYear() + "-" + padDate(startDate.getMonth() + 1) + "-" + padDate(startDate.getDate());
   sUrl += "/";
   sUrl += endDate.getFullYear() + "-" + padDate(endDate.getMonth() + 1) + "-" + padDate(endDate.getDate());
    window.location = sUrl;
}

function padDate(datePart)
{
   if (datePart.toString().length != 1)
     return datePart
   return "0" + datePart;
}

//Goto Recent Gallery


rightClickWarning = "All Images Property of Lyle Canterbury - Country Roads Photo. All rights reserved. Unauthorized use is prohibited.";



