
$( function() {
	// loop though each link
	$("a.acctitle").each( function() {
		var test = 0;

		// add an event on click
			$(this).click( function() {
				// hide all div's with accContent class
					/*
					 * $(".accContent").each(function(){ $(this).hide("slow");
					 * });
					 */

					if (test == 0) {
						// the main point of this script - Fetch ref attribute
						// of
						// title link and display the hidden div with that id
						$("#" + $(this).attr("ref")).hide("slow");
						test = 1;
						return;
					} else {
						$("#" + $(this).attr("ref")).show("slow");
						test = 0;
						return;
					}
				});

		});
});

$( function() {
	// loop though each link
	$("a.acctitle2").each( function() {
		var test = 0;

		// add an event on click
			$(this).click( function() {
				// hide all div's with accContent class
					/*
					 * $(".accContent").each(function(){ $(this).hide("slow");
					 * });
					 */

					if (test == 0) {
						// the main point of this script - Fetch ref attribute
						// of
						// title link and display the hidden div with that id
						$("#" + $(this).attr("ref")).hide("slow");
						test = 1;
						return;
					} else {
						$("#" + $(this).attr("ref")).show("slow");
						test = 0;
						return;
					}
				});

		});
});

$( function() {
	// loop though each link
	$("a.acctitle3").each( function() {
		var test = 1;

		// add an event on click
			$(this).click( function() {
				// hide all div's with accContent class
					/*
					 * $(".accContent").each(function(){ $(this).hide("slow");
					 * });
					 */

					if (test == 0) {
						// the main point of this script - Fetch ref attribute
						// of
						// title link and display the hidden div with that id
						$("#" + $(this).attr("ref")).hide("slow");
						test = 1;
						return;
					} else {
						$("#" + $(this).attr("ref")).show("slow");
						test = 0;
						return;
					}
				});

		});
});