// JavaScript Document
// for sub-topics

$(function() {
    $('ul.topic li:has(ol)')
			.click(function(event) {
			    if (this == event.target) {

			        if ($(this).children().is(':hidden')) {
			            $(this).children().show();
			            $(this).addClass('arrowdown');
			        } else {
			            $(this).children().hide();
			            $(this).removeClass('arrowdown');
			        }
			    } // end if this==event.target check
			})
			;
});

