$(document).ready(function(){	initMenu();	$("a.title").click(function(){ return false; });	$("ul.answer_links li.hide_answer a").click(function(){ return false; });	//if( $("ul#tabs li#briefview a") ){		$("ul#tabs li#briefview a").click( function(){ return false; });		$("ul#tabs li#detailedview a").click( function(){ return false; });			$('li.hide_answer a').click(			function() {				// a > li > ul > div.answer > li				//alert($(this).text());				$(this).parent().parent().parent().parent().toggleClass("open");				//$(this).parent().parent().parent().parent().siblings("div.answer").hide();				$(this).parent().parent().parent().slideToggle('fast');			}		);	//}});function initMenu() { $('div.answer').hide(); $('a.title').click(	 function() {		$(this).parent().toggleClass("open");		$(this).siblings("div.answer").slideToggle('fast');	 } );}function openMenu() {	$('div.answer').show();	$('ul.questions li').addClass("open");	$('div.answer ul li').removeClass("open");}//function tabs(currentURL){	//$("a#viewSwitch").click(function(){ return false; });		$("a#viewSwitch").toggle(		//$("a#viewSwitch.closed").click(		function(){			openMenu();			$(this).attr('class','open');			$(this).text('Show questions only');			return false;		}	//);	,	//$("a#viewSwitch.open").click(		function(){			$('div.answer').hide();			$('ul.questions li').removeClass("open");			$(this).attr('class','closed');			$(this).text('Show answers too');			return false;		}	//);		);//}function _tabs(currentURL){	$("ul#tabs li a").click(function(){ return false; });	//$("ul#tabs li.off a").click(function(){ return false; });	$("ul#tabs li#briefview a").click(		function(){			$("div#detailed").hide();			$("div#brief").show();			$("ul#tabs li").toggleClass("off");			$(this).replaceWith("<strong>"+ $(this).text() +"</strong>");			var thisText = $("ul#tabs li#detailedview strong").text();			var replaceText = '<a href="'+ currentURL +'?view=detailed">'+ thisText +'</a>';			$("ul#tabs li#detailedview strong").replaceWith(replaceText);			return false;		}	);	$("ul#tabs li#detailedview a").click(		function(){			//$("div#brief").hide();			//$("div#detailed").show();			$("ul#tabs li").toggleClass("off");			$(this).replaceWith("<strong>"+ $(this).text() +"</strong>");			var thisText = $("ul#tabs li#briefview strong").text();			var replaceText = '<a href="'+ currentURL +'?view=brief">'+ thisText +'</a>';			$("ul#tabs li#briefview strong").replaceWith(replaceText);			openMenu();			return false;		}	);	}
