rightClickWarning = "All photos are (c) Andi Tippie - TippiePics. All rights reserved. Unauthorized use is prohibited. andi@tippiepics.com 303.881.9298"

SM.PhotoBar.config.position = 'right'; 

/*== UNKNOWN!! ==*/
function isClass(sClass) {
  sClassName = document.body.className;

  re = new RegExp(sClass + "( |$)") 

  if (!sClassName)
    return false;
  return re.test(sClassName);
}
/*==  END UNKNOWN!! ==*/

/*== Change the SmugMug link at the bottom of the page to have MY referral code! ==*/

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=IYZNABHRNkAmE";
  		}
  	}
  }
  
  function OnLoadHandler()
  {
  	AddReferralCode();
  }

//-----------------------------------------------------------------
// Create two homepages so that I can get to my galleries more easily.
//-----------------------------------------------------------------

function hasPath(sPath)
{
  re = new RegExp("/" + sPath + "(/|$)");
  return re.test(window.location)
}

Code:
  //-----------------------------------------------------------------
  // 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 = 
  {
		"imagedownloads" : "http://www.tippiepics.com/gallery/2024672",
		"blizzard": "http://www.tippiepics.com/gallery/2268178",
		"archived": "http://www.tippiepics.com/gallery/2296351",
		"pricing": "http://www.tippiepics.com/gallery/2783637",
		"portrait_info": "http://www.tippiepics.com/gallery/1638708",
		"blog": "http://tippiepics.wordpress.com",
        "selfportrait": "http://www.tippiepics.com/gallery/2569023",
        "redpoint": "http://www.tippiepics.com/gallery/3232283",
        "packages": "http://www.tippiepics.com/gallery/3613212",
        "towniepackages": "http://www.tippiepics.com/gallery/3613991",
        "books": "http://www.tippiepics.com/gallery/3614138",
        "layouts": "http://www.tippiepics.com/gallery/3785143",
        "announcements": "http://www.tippiepics.com/gallery/3850985",
        "dvd": "http://www.tippiepics.com/gallery/3894806",
        "spad2":  "http://tippiepics.smugmug.com/gallery/5930247_7sp8Z",
        "facebook":  "http://www.facebook.com/tippiepics",

        "littlered": "http://www.tippiepics.com/gallery/4021868",
        "little red": "http://www.tippiepics.com/gallery/4021868",

        "yoga4thepeople": "http://www.tippiepics.com/y4p",
        "yoga":  "http://tippiepics.smugmug.com/gallery/5592774_AedFF",
        "monica":  "http://tippiepics.smugmug.com/gallery/6839257_K6MfH",
        "yogaforthepeaceful":  "http://www.tippiepics.com/y4p",

        "becca": "http://www.tippiepics.com/archived",
        "david":  "http://www.tippiepics.com/archived",
        "linehan":  "http://www.tippiepics.com/archived",
        "read":  "http://www.tippiepics.com/archived",
        "cunningham":  "http://www.tippiepics.com/archived",
        "hegeman":  "http://www.tippiepics.com/archived",
        "griffin":  "http://www.tippiepics.com/archived",
        "penner":  "http://www.tippiepics.com/gallery/8445758_LSYDq",
        "maltby":  "http://www.tippiepics.com/archived",
        "czarnick":  "http://www.tippiepics.com/archived",
        "birnie":  "http://www.tippiepics.com/archived",
        "darrigo":  "http://www.tippiepics.com/archived",
        "truex":  "http://www.tippiepics.com/archived",
        "kelly":  "http://www.tippiepics.com/archived",
        "bailey":  "http://www.tippiepics.com/archived",
        "ezzell":  "http://www.tippiepics.com/archived",
        "peters":  "http://www.tippiepics.com/archived",

        "bodybark":  "http://www.tippiepics.com/gallery/8510284_ZvnEJ",
        "pearman":  "http://www.tippiepics.com/gallery/8741130_c6BjY",
        "minishoot":  "http://www.tippiepics.com/Management-Pages/Special-Sessions/Mini-Shoot-Fall-2009/9576782_xjpe9",
        "weber":  "http://www.tippiepics.com/gallery/10298337_m6vhE",
        "bennett":  "http://www.tippiepics.com/Client-Photos/The-Bennetts/The-Bennetts-Fall-2009/10352001_DeZbm",
        "brahler":  "http://tippiepics.smugmug.com/gallery/10373494_LCWte",
        "baker":  "http://www.tippiepics.com/Client-Photos/The-Bakers/Baker-Fall-2009/10381891_28GNH",
        "poirier":  "http://www.tippiepics.com/Client-Photos/Geoff-and-Colette/Geoff-and-Colette-Fall-2009/10382629_qjDRz",
        "roy":  "http://www.tippiepics.com/Client-Photos/Geoff-and-Colette/Geoff-and-Colette-Fall-2009/10382629_qjDRz"

};
  
  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();
