﻿var h = Element.hide;
var s = function(el)
{
	$$('div.client').each(Element.hide);
	$$('div.'+el)[0].show();
}

Event.observe(window, 'load', function(event)
{
	MM_preload(); //this function is defined in each portfolio page with specific images for that page
	
	$$('div.client').each(Element.hide);
	
	var hash = window.location.hash; //e.g. #bob-stromberg
	if (hash)
	{
		hash = hash.substr(1, hash.length - 1); //remove the # symbol from the hash
		$$('div.'+hash)[0].show();
	}
	else
		$$('div.client')[0].show(); //show the first one if no hash in the url
});

