rightClickWarning = "The image you are attempting to save is copyright of PictureThisCity.com and its photographers! It is available as a print or as a digital download starting at 99 Cents.  Unauthorized use is prohibited. \nAll rights reserved All wrongs reversed.";


function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_5070167"))
  {
    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);


var galleryRedirectTable = 
 {
"8969425_jFE9g" : "http://picturethisdetroit.smugmug.com/gallery/8966891_fFAbc",
"8814146_ZLmyj" : "http://www.picturethisdetroit.smugmug.com/gallery/8535436_W8B7B",
"8814084_FdJAc" : "http://www.picturethisdetroit.smugmug.com/gallery/8535436_W8B7B",   
"8812890_iSmWy" : "http://www.picturethisdetroit.smugmug.com/gallery/8535436_W8B7B",
"8679412_3iFKw" : "http://www.picturethisdetroit.smugmug.com/gallery/8163329_qrrsk",
"8717396_BGvFA" : "http://www.picturethisdetroit.smugmug.com/gallery/8485642_FxckL",
"8897018_LfrGC" : "http://picturethisdetroit.smugmug.com/gallery/8896507_n9j9w",
"9257876_pMFmC" : "http://picturethisdetroit.smugmug.com/gallery/9226629_KGFcb",
"9420769_kRYfK" : "http://picturethisdetroit.smugmug.com/Detroit/MotorCity-Casino-Hotel/Discotech/9390455_r2aLZ"
 };

function CheckRedirects()
{
  if (! YD.hasClass(document.body, 'loggedIn'))
     {
         // get the path from the current URL, 
         // convert it to lowercase and remove the leading slash
         var path = window.location.pathname.substr(9); 
         
         var newURL = galleryRedirectTable[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
         }
     }
}