jQuery(document).ready(function() {
	 /*-----------------------------------------------------------------------------------*/
	

		jQuery('#hello_bar .close').click(function() {
			jQuery('#hello_bar').animate({
				marginTop: -40
			}, 200, function() {
				jQuery('#open_hello_bar').animate({
					marginTop: 0
				}, 200).animate({
					marginTop: -5
				}, 90).animate({
					marginTop: 0
				}, 90);
				jQuery.cookie("helloBar", "close", { path: '/'	});
			});
		});
		jQuery('#open_hello_bar').click(function() {
			jQuery(this).animate({
				marginTop: -100
			}, 400, '', function() {
				jQuery('#hello_bar').animate({
					marginTop: 0
				}, 200).animate({
					marginTop: -5
				}, 90).animate({
					marginTop: 0
				}, 90);
				 jQuery.cookie("helloBar", "open", { spath: '/'	});
			});
		});
		if (jQuery.cookie("helloBar") == 'close') {
			jQuery('#hello_bar').css("marginTop", -40);
			jQuery('#open_hello_bar').css("marginTop", 0);
		} else {
			jQuery('#hello_bar').css("marginTop", 0);
			jQuery('#open_hello_bar').css("marginTop", -100);
		}
	 /*-----------------------------------------------------------------------------------*/
});

