$(document).ready(function () {
    navbar_hover();
    static_subnav();
	clickable_div();
	image_hover();
	imgbox();
	login_help();
});
function navbar_hover() {
    $('div#navbar ul li a').hover(
    function () {
        $(this).parent().next().addClass('hover_next');
    },
    function () {
        $(this).parent().next().removeClass('hover_next');
    })
}
function static_subnav() {
    $('div#menu ul li.current').prev().addClass('current_previous');
}
function clickable_div() {						   
	$(".clickable-div").click(function(){
    	window.location=$(this).find("a:last").attr("href");return false;
	})
}
function image_hover() {
    $('img.clickable').hover(
    function () {
        $(this).addClass('hover');
    },
    function () {
        $(this).removeClass('hover');
    })
}
function imgbox() {
	$('a.zoom').imgbox( {
		'allowMultiple': false,
		'speedIn' : 250
	});
}
function login_help() {
	$('#help-info').hide();
	$('a#help-toggle').click(function() {
    $('#help-info').toggle(200);
    return false;
  });
}
