   //-----------------------------------------------------------------
   // This is a table of vanity URLs that can be appended to your
   // main domain and will then redirect the browser to the actual gallery.
   // 
   // This lets you have memorable URLs like:
   // http://jfriend.smugmug.com/stanford
   // 
   // rather than URLs like: 
   // http://jfriend.smugmug.com/gallery/329885
   //
   // which aren't so memorable.
   //
   // To extend this yourself, just add more items to the table below.
   // The first string must be all lowercase and is the vanity string
   // that you want to represent a gallery or category on your site.
   // The second string is the actual smugmug URL you want the browser
   // to go to when they type the vanity URL.
   // Note that this is a JavaScript array.  If you add items to the end
   // of the array, you must have a comma at the end of each line (except
   // the last line).
   //-----------------------------------------------------------------
   var vanityTable = 
   {
   	"gallery/2990749" : "http://wendell.smugmug.com/keyword/seattle",
"pricing" : "http://photos.wendellbeitzel.com/Other/Pricing/10657642_QD57D",
"about" : "http://photos.wendellbeitzel.com/Other/About/8390430_tgDde"
   	
   };
   
 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
         }
     }
 }
   




function addCategoryDescription() {
 var categoryDescription = {
     "2007" : "When I'm just shooting for fun this is where they go  A new gallery every week  Some of these may show up in other collections as well"
     
 };

  if ((YD.hasClass(document.body, "category")) && (!YD.hasClass(document.body, "subcategory"))) { 

    re = /category_(\S+)/i;
    re.exec(document.body.className);

    breadCrumb = YD.get("breadcrumb");
    if (breadCrumb && categoryDescription[RegExp.$1]) {
      divTag = document.createElement("div");
      divTag.className = "categoryDescription";
      divTag.appendChild(document.createTextNode(categoryDescription[RegExp.$1]));
      breadCrumb.parentNode.insertBefore(divTag, breadCrumb.nextSibling);
    }
  }
  if (YD.hasClass(document.body, "homepage")) {
    re = /\>([\w\-]+)<\/a>/i;

    divTag = YD.get("categoriesBox");
   if (divTag) {
      divTags = YD.getElementsByClassName("albumTitle", "p", divTag);

      for (i=0; i<divTags.length; i++) {
       re.exec(divTags[i].innerHTML);
        if (categoryDescription[RegExp.$1] != undefined) {
          pTag = document.createElement("p");
          pTag.className = "categoryDescription";
          pTag.appendChild(document.createTextNode(categoryDescription[RegExp.$1]));
          divTags[i].parentNode.insertBefore(pTag, divTags[i].nextSibling);
        }
      }
    }
  }
}
YE.addListener(window, "load", addCategoryDescription);

function redirectPath() {
re = /(wendell.smugmug.com)/;
tmp = window.location.href;
if (re.test(tmp)) {
tmp = tmp.replace(re, 'photos.wendellbeitzel.com.');
window.location.href = tmp;
}
}
redirectPath();