// -- function used by PersonList, ReleaseYearList, RatingList and GenreList
function iTalkiesMovieListByPropertyOnClick (srcSpanElement, showType)
{
	var frameElement;
	
	if (showType == null)
	{
		frameElement = window.parent.parent.document.getElementById ("ContentFrame");
		// Assume that the default is to show the movies where the cast is specified
		showType = "ByActor";
		
		var params  = window.parent.document.location.search;
		
		var indexEqual = params.lastIndexOf ("Show=");
		if (indexEqual != -1)
		{
			if (params.substr (indexEqual+5, 9).toUpperCase() == "DIRECTORS")
			{
				showType = "ByDirectors";
			}
			else if (params.substr (indexEqual+5, 9).toUpperCase() == "PRODUCERS")
			{
				showType = "ByProducers";
			}
		}
	}
	else
	{
		frameElement = window.parent.document.getElementById ("ContentFrame");
	}
	
	frameElement.src = "Movies.aspx?Show=" + showType + "&ShowParam=" + srcSpanElement.id + "&Name=" + encodeURIComponent (srcSpanElement.innerText);
}

