jQuery(document).ready(function(){
	$("dl.showHide dt:even").addClass("alt");
	$("dl.showHide dd:even").addClass("alt");
	$("dl.showHide dt").prepend("<span class='moreLink'>More</span>");
	hide_the_div($("dl.showHide dd"),true,false);
	$("dl.showHide dt").click(function () {
		$(this).children("span").toggleClass("close");
		if ($(this).children("span").text()==("Less")){
			$(this).children("span").text("More").css({fontWeight:"normal", color:"#039"});
			$(this).css({fontWeight:"normal", color:"#039"});
		}
		else {
			$(this).children("span").text("Less").css("font-weight","normal");
			$(this).css({fontWeight:"bold", color:"#000"});
		}
		toggle_the_div($(this).next(),false,false);
	});
	
	var urlRegExp = new RegExp('\#[a-zA-Z0-9\/\?\%\-]+');
	$('a[href*="#"]').each( function() {
		if (location.pathname == this.pathname && location.host == this.host) {
			var href = $(this).attr('href').match(urlRegExp);
			var dt = $("dt"+href);

			if((href != null) && (dt != null)) {
				$(this).click( function() {
					var href = $(this).attr('href').match(urlRegExp);
					var dt = $("dt"+href);
					
					$(dt).children("span").addClass("close");
					$(dt).children("span").text("Less").css("font-weight","normal");
					$(dt).css({fontWeight:"bold", color:"#000"});
					
					show_the_div($(dt).next(),false,false);
				});
			}
		}
	});
	
	var pageUrl = window.location.href;
	var href = pageUrl.match(urlRegExp);
	if (href != null) {
		var dt = $("dt"+href);
		$(dt).children("span").addClass("close");
		$(dt).children("span").text("Less").css("font-weight","normal");
		$(dt).css({fontWeight:"bold", color:"#000"});
		show_the_div($(dt).next(),false,false);
	}
});


