$(document).ready(function() {
	// Show and hide the login box
	$('#loginbox').hide();
	$('a#logintoggle').click(function() {
		$('#loginbox').slideToggle(500);
	});
	
	// Emulate li:hover in IE6
	if ($.browser.msie && $.browser.version < 7) {
		$('.content li').hover(function() {
			$(this).addClass('hover');
		}, function() {
			$(this).removeClass('hover');
		});
	}
});

// Check checkboxes using a link
function changeBox(cbox) {
	box = eval(cbox);
	box.checked = !box.checked;
}

// Check, uncheck and switch all checkboxes
function checkAll() {
	for (var j = 1; j <= 14; j++) {
	box = eval("document.vbform.c" + j); 
	if (box.checked == false) box.checked = true;
	}
}

function uncheckAll() {
	for (var j = 1; j <= 14; j++) {
	box = eval("document.vbform.c" + j); 
	if (box.checked == true) box.checked = false;
	}
}

function switchAll() {
	for (var j = 1; j <= 14; j++) {
	box = eval("document.vbform.c" + j); 
	box.checked = !box.checked;
	}
}
