    
    function getMovieName(movieName) // utility function resolves the string movieName to a Flash object reference based on browser type
    {
    	if (navigator.appName.indexOf("Microsoft") != -1)
    	{
	    	return window[movieName];
	    }
	    else
	    {
		    return document[movieName];
		}
	}
	
	function updateTextBlock(blockId)
	{
		//alert("Passed blockID: " + blockId);
		jQuery("div#block_points div").each(
			function()
			{
				//if (jQuery(this).attr("id") == "block_" + blockId)
				if (jQuery(this).attr("id") == blockId)
				{
					jQuery(this).attr("class", "textblock-with-arrow");
				}
				else
				{
					jQuery(this).attr("class", "textblock");
				}
			}
		)
	}


	jQuery(document).ready(function()
	{
		jQuery('ul.side-subnavigation').css("display", "none");
		
		jQuery('div.textblock a').live("click", 
	    	function ()
			{
				getMovieName("masthead").callJumpToSlide(jQuery(this).attr("rel"));	// jump to slide function on rel attr of parent div
				//updateTextBlock(jQuery(this).parent().attr("rel")) // call updateTextBlock on rel of the parent div
				updateTextBlock(jQuery(this).parent().attr("id")) // call updateTextBlock on id of the parent div
				return false;
			}
		),
		jQuery('a.plus').live("click", 
	    	function ()
			{
				jQuery(this).attr("class", "minus");
				jQuery("ul#" + jQuery(this).attr("rel")).toggle();
				return false;
			}
		),
		jQuery('a.minus').live("click", 
	    	function ()
			{
				jQuery(this).attr("class", "plus");
				jQuery("ul#" + jQuery(this).attr("rel")).toggle();
				return false;
			}
		)
	});