$(document).ready(function(){
/****************************************************/

// hide ugly boxes around links when clicked
$('a')
	.focus(
		function(){
			$(this).blur();
		}
	);

// enable li:hover style functionality in ie
$('#nav .main li')
	.hover(
		function(){
		   $(this).addClass('hover');
		   $(this).children("ul,div").show();
		},
		function(){
		   $(this).removeClass('hover');
		   $(this).children("ul,div").hide();
		}
	);

$("#home .escape div").remove();

$("#calendar .entry:even").addClass("even");

/*
$("#content br")
	.wrap("<span style='background:red; color:white;'>")
	.after("LINE BREAK")
	.remove();
	;
*/


/****************************************************/
});
/*
$(document).ready(function(){
	$("#memberPrograms #content h2 ~ *:not(h2)").hide();
	var current;
	$("#memberPrograms #content h2")
		.css("cursor","pointer")
		.click( function(){
		if( current != this ){
			current = this;
			$("#memberPrograms #content h2 ~ *:not(h2):visible").hide();
			$.scrollTo(this,"slow")
			$(this).nextAll().slice(0,jQuery.inArray($(this).nextAll("h2:first")[0],$(this).nextAll())).show("fast");
		}
	});
});

$(document).ready(function(){
	$(".resources #content .category > .entry").hide();
	var current;
	$(".resources #content .category > h2")
    .css("cursor","pointer")
    .click(function(){
        if( current != this ){
            current = this;
            $(".resources #content .category > .entry:visible").hide();
						$.scrollTo(this,"slow")
            $(this).nextAll(".entry").show("fast");
        }
				else{
					current = null;
					$(this).nextAll(".entry").hide();
				}
    });
});
*/
$(document).ready(function(){
	$("#memberPrograms #content h2 ~ *:not(h2)").hide();
	$("#memberPrograms #content h2")
		.css("cursor","pointer")
		.click( function(){
			$(this).nextAll().slice(0,jQuery.inArray($(this).nextAll("h2:first")[0],$(this).nextAll())).toggle();
		});
});

$(document).ready(function(){
	$(".resources #content .category > .entry").hide();
	$(".resources #content .category > h2")
    .css("cursor","pointer")
    .click(function(){
			$(this).nextAll(".entry").toggle();
    });
});