// make the photobar come out on the bottom
SM.PhotoBar.config.position = 'bottom';

function norobotmail(aUser, aDomain) { 
       document.location = "mailto:" + aUser + "@" + aDomain;
    }

  //-----------------------------------------------------------------
  // 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 = 
  {
  	"religioninjapan" : "http://www.jlayesphotography.com/gallery/727911",
	"japansnature" : "http://www.jlayesphotography.com/gallery/727944",
  	"religioninhongkong": "http://www.jlayesphotography.com/gallery/719663"
  };
  
  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();