$(document).ready(function () {

	$.reject({
		reject: {
			all: false,
			msie5: true,
			msie6: true,
			chrome1: true,
			chrome2: true,
			safari2: true,
			opera7: true,
			opera8: true,
			firefox1: true,
			firefox2: true
		},
		closeCookie: true,
		display: ['chrome','firefox','safari','msie','gcf'],
		imagePath: '/_assets/skin_Shared/_vanilla/_images/jreject_icons/'
	});

	/* Adds class 'hover' when moused-over, removes on mouse-out
	 * for LIs under .nav-dropdown, and button elements
	 */
	var li = $('.nav-dropdown li, button');
	li.mouseover(function () {
		$(this).addClass('hover');
	});
	li.mouseout(function () {
		$(this).removeClass('hover');
	});
 
	/* Elements with class 'button-submit' submit their parent form */
	$('.button-submit').click(function() {
		$(this).parents('form:first').submit();
		return false;
	});
	
	$('ul li:first-child, ol li:first-child').addClass('first');
	$('ul li:last-child, ol li:last-child').addClass('last');
	$('ul li:odd, ol li:odd').addClass('even');
	$('ul li:even, ol li:even').addClass('odd');

	$(".question").live("click", function(){
		$(this).next().slideToggle();
		return false;
	}); 
	
});