function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}


YE.onAvailable('galleryTitle', function() {this.innerHTML = 'Portfolio Galleries'});


var vanityTable =
{
contact: "http://www.quincydein.smugmug.com/gallery/4467638_oLmzU",

surf: "http://www.quincydein.com/gallery/3197665",

hawaii: "http://www.quincydein.com/gallery/3195358",

travels: "http://www.quincydein.com/gallery/6303332_xmbxR",

naturalworld: "http://www.quincydein.com/gallery/3197401",

action: "http://www.quincydein.com/gallery/3204959",

lifestyle: "http://www.quincydein.com/gallery/3205150",

information: "http://www.quincydein.com/gallery/3206678"

};




 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
         }
     }
 }







//filmStrip values you can override:
rightMoves = -5;
leftMoves = 5;



function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_3200483"))
  {
    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);


