// JavaScript Document
var notes;
$(document).ready(function(){
	
	$('.closeBtn').click(function(){								
		$(this).parents('.holNotes').slideUp('500');
		$(this).parents('#tHeader').animate({ height: "197px"}, 500 );
		$.cookie('noteClosed', true, { path: '/',domain: 'www.all4cellular.com', expires: 1 });
		$('.hideNotes').removeClass('hideNotes');
		return false;	
	 });
	
	$('.hideBtn').click(function(){
		notesLayer = $('.holNotes');
		$('.darkBg').remove();
		notesLayer.css({
			fontSize: "0",
			height: "0",
			position: "static"
		});
		notesLayer.removeClass('overlayNote');	
		notesLayer.animate({
			fontSize: "12px",
			height: "6.5em",
			top: "17em"
		},500, "swing", function(){
			$(this).removeAttr("style");
			});
		notesLayer.addClass('smallNote');
		$.cookie('noteClosed', true, { path: '/', domain: 'www.all4cellular.com', expires: 1 });
		$('.hideAllNotes').removeClass('hideAllNotes');

		document.getElementById('mainnote').styles.display="none";

		return false;	
	 });
	
});

