// show/hide of collections on mouseover/out of categories list
$(document).ready(function() {
	if ($.browser.msie && $.browser.version<7) {
		// This doesn't work properly in IE6 (z-index with respect to the menu). Since a relatively small number of people use IE6 (and ought to upgrade since it's two versions old now) we're dropping the subnav as it's not essential to use the site.
	}
	else {
		// top menu flyouts
		function show() {
			var menu = $(this);
			menu.find("ul").fadeIn();//slideDown();
		}
		function hide() { 
			var menu = $(this);
			menu.find("ul").fadeOut();//slideUp();
		}
		$("#curricula_menu>ul>li").hoverIntent({
			sensitivity: 1, // number = sensitivity threshold (must be 1 or higher)
			interval: 50,   // number = milliseconds for onMouseOver polling interval
			over: show,     // function = onMouseOver callback (required)
			timeout: 300,   // number = milliseconds delay before onMouseOut
			out: hide       // function = onMouseOut callback (required)
		});
	}
	// questions of the day panels
	$(function() {
		$("#qotd").jCarouselLite({
			/*btnNext: ".next",
			btnPrev: ".prev",*/
			visible: 1,
			auto: 4000, // wait time between "frames"
			speed: 500, // transition speed
			hoverPause:true,
			mouseWheel: true
    	});
	});
});

