jQuery(document).ready(function($){
	$('#navigation li').hover(
		function() { $(this).addClass('hover'); },
		function() { $(this).removeClass('hover'); }
	);
	
	$('.blink').focus(function () {
		if ($(this).val() == $(this).attr('title')) {
			$(this).val('');
		}
	});
	$('.blink').blur(function () {
		if ($(this).val() == '') {
			$(this).val($(this).attr('title'));
		}
	});
	
	$('.can-expand .head').click(function() {
		if ($(this).find('.sign').html() == '-') {
			$(this).find('.sign').html('+');
			$(this).parents('.can-expand').find('.expandable').slideToggle();
		} else if ($(this).find('.sign').html() == '+') {
			$(this).find('.sign').html('-');
			$(this).parents('.can-expand').find('.expandable').slideToggle();
		};
		
		return false;
	}).eq(0).find('.sign').html('-').parents('.can-expand').find('.expandable').show();
	
	if ( $.browser.msie && $.browser.version.substr(0,1) == 6 ) {
		DD_belatedPNG.fix('#navigation ul li a, h1#logo a');
	}
	
	$('form.sign-up-form').submit(function() {
		if ( $(this).find('.f_email_confirm input').val() != $(this).find('.f_email input').val() ) {
			alert('Different email address provided.');
			$(this).find('.f_email input').focus();
			return false;
		};
		if ( $(this).find('.f_password_confirm input').val() != $(this).find('.f_password input').val() ) {
			alert('Different password provided.');
			$(this).find('.f_password input').focus();
			return false;
		};
	});

});
