// JavaScript Document
// class more is the expandable text
// class morelink is the a href link
// id expandall expands all
// id collapseall colapses all
$(function()
	{
		$("table .more").css("display","none");
		
		$("#expandall").click(function()
			{
				$("table .more").css("display","");
				$("table .morelink").css("backgroundImage","url(speakers/minus.gif)");
			});
		$("#collapseall").click(function()
			{
				$("table .more").css("display","none");
				$("table .morelink").css("backgroundImage","url(speakers/plus.gif)");
			});
											
		$("table .morelink").click(function()
			{
				var state = $(this).parent($("#more")).css("color");
				var b = $(this);
				if(b.parent().get() == "[object HTMLParagraphElement]"){
					var a = $(this).parent().parent().parent().siblings("tr").children(".more");
				}
				else{
					var a = $(this).parent().parent().siblings("tr").children(".more");
				}
				//var a = $(this).parent($("#more"));
				if(a.css("display") == "none"){
					a.css("display","");
					b.css("backgroundImage","url(speakers/minus.gif)");
				}
				else{ a.css("display","none");b.css("backgroundImage","url(speakers/plus.gif)");};
			});
	}
);
