showImagePreview = false;

displaySmugPopular = false;

rightClickWarning = "To reproduce this copyrighted photo, please inquire by contacting Conrad Chavez (click my email at the bottom of the page), or if another copyright holder is noted below the photo, please contact them. Unauthorized reproduction is prohibited."

var vanityTable = 
{
blog : "http://blog.conradchavez.com/",
chocolatada : "http://www.conradchavez.com/gallery/1619010_2MtGa",
current : "http://www.conradchavez.com/gallery/3858468_V26Qv",
shows : "http://www.conradchavez.com/Photography%20exhibitions%20archive",
filter : "http://www.conradchavez.com/gallery/1806250_bWiUF",
illuminares : "http://www.conradchavez.com/gallery/1734878_WBbXx",
infodesign : "http://www.conradchavez.com/gallery/782376_XS7Su",
training : "http://www.conradchavez.com/gallery/782376_XS7Su",
udayan : "http://www.conradchavez.com/gallery/5605508_Bc5Ld"
};

function IsHomePage()
{
	// test for the "homepage" class name in the <BODY> tag
	var bodyTag = document.body;
	if (bodyTag)
	{
		var classStr = bodyTag.className;
		if (classStr && (classStr.indexOf("homepage") != -1))
		{
			return(true);
		}
	}
	return(false);
}

function CheckRedirects()
{
	if (IsHomePage())	// only run this code on the home page
	{
		// 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 we found it in the table && newURL is different than where we are
		if (newURL && (newURL != window.location))
		{
			window.location.replace(newURL);		// go to the new URL
		}
	}
}

// Flash slide show
function createSWF( w, h, params) { 
 var args = ""; 
 for (var i in params) { 
     args += i + "=" + params[i] + "&amp;"; 
 } 
 document.writeln('<object width="100%" height="100%" align="middle">'+ 
'<param name="movie" value="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'"/>'+ 
'<param name="wmode" value="transparent" />'+ 
'<embed src="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'" wmode="transparent" width="' + w + '" height="' + h + '" type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all"/></object>'); 
return 1; 
} 