SM.PhotoBar.config.position = 'bottom'; 







function hasPath(sPath)
{
  re = new RegExp("\/" + sPath + "(\/|$)");
  return re.test(window.location)
}






































  //-----------------------------------------------------------------
  // 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 = 
  {
  	"wavecovers" : "http://www.goodeyephotography.com/gallery/1169827",
  	"wave" : "http://www.goodeyephotography.com/The%20Wave%20Magazine",
  	"waveparty": "http://www.goodeyephotography.com/The%20Wave%20Magazine/156197",
  	"hdr": "http://www.goodeyephotography.com/gallery/1440287",
  	"desouza": "http://www.goodeyephotography.com/Weddings/188844", 
  	"harris": "http://www.goodeyephotography.com/Weddings/199828",
  	"stafford": "http://www.goodeyephotography.com/Weddings/199828",
  	"bansal": "http://www.goodeyephotography.com/Weddings/230758",
        "mckaigg": "http://www.goodeyephotography.com/Weddings/264752",
        "sweet16": "http://www.goodeyephotography.com/gallery/2850827#P-1-15",
        "mustang": "http://www.goodeyephotography.com/gallery/2529906#133119520",
        "weddingportfolio": "http://www.goodeyephotography.com/gallery/3439704#192967452/1/193070939",
        "passanisi": "http://www.goodeyephotography.com/Weddings/303818",
        "nuprice": "http://www.goodeyephotography.com/weddings/380645",
  	"newlin": "http://www.goodeyephotography.com/The%20Wave%20Magazine/157032"

  };
  
  function CheckRedirects()
  {
  	// 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 (newURL != undefined) 		// if we find it in the table
  	{
 		window.location = newURL;		// go to the new URL
  	}
  }
  
  CheckRedirects();






























//filmStrip values you can override:
rightMoves = -5;
leftMoves = 5;


























function isClass(sClass) {

  sClassName = document.body.className;
  re = new RegExp(sClass + "( |$)") 

  if (!sClassName)
    return false;

  return re.test(sClassName);
}































document.title = "GoodEye Photography + Design";
function RelevantTitle()
{
   var baseTitle = "GoodEye Photography + Design";
   var separator = " - ";
   var albumTitle = document.getElementById("albumTitle");
   var galleryTitle = document.getElementById("galleryTitle");
   if( albumTitle && albumTitle.textContent )
      document.title = baseTitle + separator + albumTitle.textContent;
   else if( galleryTitle && galleryTitle.textContent )
   {
      var galleryTitleText = galleryTitle.textContent;
      // Strip " sub-categories" off the end of the category text
      var finalPositionCategory = galleryTitleText.search(" sub-categories");
      if( finalPositionCategory >= 0 )
         galleryTitleText = galleryTitleText.substr( 0, finalPositionCategory );
      else
      {
         // Strip " galleries" off the end of the category/sub-category text
         var finalPositionSubCategory = galleryTitleText.search(" galleries");
         if( finalPositionSubCategory >= 0 )
            galleryTitleText = galleryTitleText.substr( 0, finalPositionSubCategory );
      }
      document.title = baseTitle + separator + galleryTitleText;
   }
   else // Not Gallery, Category, or Subcategory
   {
      // Set title on homepage
      document.title = baseTitle;
   }
}





function redirectPath() { 
  re = /(goodeye.smugmug.com)/; 
  tmp = window.location.href; 
  if (re.test(tmp)) { 
    tmp = tmp.replace(re, 'www.goodeyephotography.com'); 
    window.location.href = tmp; 
  } 
}
redirectPath();  





