$(document).ready(function() {
	$('#s').defaultvalue($('#searchform label').html());
	
	// initiate the superfish menu
	$("#menu").superfish({
		animation:		{height:'show'},
		delay:			500,
		autoArrows:		false,
		dropShadows:	false
	});
	
	// set the initial blog menu to hidden
	$("#blogNav").css({ 
		marginRight: "-181px"
	});
	$('#blogNavWrapper').css({
		width: '32px'
	});
	$("#openCloseIdentifier").hide();
	
	$('.navmenulabel').click(function() {
		if ($("#openCloseIdentifier").is(":hidden")) {
			$("#blogNav").animate({
				marginRight: "0"
			}, 500 );
			$('#blogNavWrapper').css({
				width: '207px',
				height: ($('#blogNav').height() + 42)
			});
			$("#openCloseIdentifier").show();
		} else {
			$("#blogNav").animate({
				marginRight: "-181px"
			}, 500 );
			$('#blogNavWrapper').animate({
				width: '32px'
			});
			$("#openCloseIdentifier").hide();
		}
	}); 
});

