//-----------------------------------------------------------------
  // 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 = 
  {
  	"sar" : "http://www.joeynick.net/Groups",
  	"nysar" : "http://www.joeynick.net/Groups/186473",
  	"smb": "http://www.joeynick.net/Cars/187320",
  	"nat": "http://www.joeynick.net/Other"
  };
  
  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();
  
  





function AddReferralCode()
  {
  	var footerDiv = document.getElementById("footer");
  	if (footerDiv)
  	{
  		var links = footerDiv.getElementsByTagName("A");
  		if (links && (links.length != 0))
  		{
  			var smugLink = links.item(0);
 			smugLink.href = "http://www.smugmug.com/?referrer=4dXGElXSGmmw6";
  		}
  	}
  }
  
  function OnLoadHandler()
  {
  	AddReferralCode();
  }
  




rightClickWarning = "All photos are � JoeyNick.net . All rights reserved. Unauthorized use is prohibited."

  