if (typeof(Sys) == "undefined")
{
//	alert(window.location.pathname + " says: Registering BrowserUtil.js because my developer forgot to.");
	document.writeln("<scr" + "ipt src=\"/js/BrowserUtil.js\" type=\"text/javascript\"></script>");
}

function toggleDetailsView(anchorObj)
{		
	parentBlock = anchorObj.parentNode;
	divArray = parentBlock.getElementsByTagName("div");
	for(var i=0; i <divArray.length; i++)
	{
		if(divArray[i].id == "showTimesBlock")
		{
			if(divArray[i].style.display == "none" || divArray[i].style.display == "")
			{
				divArray[i].style.display = "block";
				anchorObj.style.backgroundImage = "url(/tvshows/images/show_times_visible_arrow.gif)";
				anchorObj.innerHTML = "Hide All Show Times";
			}
			else
			{
				divArray[i].style.display = "none";
				anchorObj.style.backgroundImage = "url(/tvshows/images/show_times_hidden_arrow.gif)";
				anchorObj.innerHTML = "View All Show Times";
			}
			break;
		}
	}
	if (Sys.Browser.agent == Sys.Browser.InternetExplorer && event != null)
		event.returnValue = false;

	return false;
}

function toggleDetailsView2(anchorObj, expandImgUrl, expandText, collapseImgUrl, collapseText)
{
	parentBlock = anchorObj.parentNode;
	divArray = parentBlock.getElementsByTagName("div");
	for(var i=0; i <divArray.length; i++)
	{
		if(divArray[i].id == "showTimesBlock")
		{
			if(divArray[i].style.display == "none" || divArray[i].style.display == "")
			{
				divArray[i].style.display = "block";
				
				if (collapseImgUrl && collapseImgUrl != "")
					anchorObj.style.backgroundImage = "url(" + collapseImgUrl + ")";
				
				if (collapseText && collapseText != "")
					anchorObj.innerHTML = collapseText;
			}
			else
			{
				divArray[i].style.display = "none";
				
				if (expandImgUrl && expandImgUrl != "")
					anchorObj.style.backgroundImage = "url(" + expandImgUrl + ")";
					
				if (expandText && expandText != "")
					anchorObj.innerHTML = expandText;
			}
			break;
		}
	}
	if (Sys.Browser.agent == Sys.Browser.InternetExplorer && event != null)
		event.returnValue = false;

	return false;
}