﻿/*

Script to drive the toggle lists.

*/

$(function(){ // overriding the default page script behavior
	$("#sub-navigation li a").each(function(i){
		$(this).click(function(){
			window.location.href= $(this).attr("href");
			 });
		});
});

$(document).ready(function(){
	$("dd").hide();
	$("dt a").click(function(){
		if ($(this).parent().hasClass("toggler-opened")) {
			$(this).parent().removeClass("toggler-opened");
			$(this).parent().next().slideUp("fast");
			}
		else {
			$("dd:visible").prev().removeClass("toggler-opened");
			$("dd:visible").slideUp("fast");
			$(this).parent().addClass("toggler-opened");
			$(this).parent().next().slideDown("fast");			
			}
		return false;
	});
});
