//Fix document CSS bugs, etc. Also add functionality
$(document).ready(function(){
	$("#resources-left ul").addClass("minimallist");
	$("#rotator ul").addClass("slides");
	if($("body").hasClass("frontpage")){
		$(".flexslider").flexslider();		
	}
	//fix the broken wolf markdown parser's nested list construction
	// (i.e: if there is a <li>[something]<ul>...</ul></li> the [something] is not nested in a <p> tag, unlike list elements without nested lists.)
	$("#content-center ul li").each(function (index, element) {
	    //alert($(this).clone().children().remove().end().text());
	});
	//alert("Test");
	$("#content-center ul li:not(:has(p))").wrapInner("<p></p>");
	$("#content-center ol li:not(:has(p))").wrapInner("<p></p>");	
});
