// JavaScript Document
var notes;
$(function(){
	$('.closeBtn').click(function(){								
		$(this).parents('.holNotes').slideUp('500');
		$(this).parents('#tHeader').animate({ height: "197px"}, 500 );
		$.cookie('noteClosed', true, { path: '/',domain: 'bhphotovideo.com', expires: 1 });
		$('.hideBigots').removeClass('hideBigots');
		return false;	
	 });
	$('.hideBtn').click(function(){
		notesLayer = $('.holNotes');
		$('.darkBg').remove();
		notesLayer.css({
			fontSize: "0",
			height: "0",
			position: "static"
		});
		$('a.hideBtn').hide();
		notesLayer.removeClass('bigNote');
		notesLayer.animate({
			height: "63px",
			top: "17em"
		},500, "swing", function(){
			$(this).removeAttr("style");
			});
		notesLayer.addClass('smallNote');
		$.cookie('noteClosed', true, { path: '/', domain: 'bhphotovideo.com', expires: 1 });
		$('.hideAllBigots').removeClass('hideAllBigots');
		return false;	
	 });
	
// adds class hideBigots to the parent item of embeds and select fields that need to be hidden	
	if($('.holNotes').hasClass('bigNote')){
		$('.tBlock').addClass('hideBigots');
	}else if($('.holNotes').hasClass('overlayNote')){
		$('.tBlock').addClass('hideAllBigots');
		if(!($.browser.msie && $.browser.version < 7)){
			$('.holNotes').css("position", "fixed");
		}
	}
});

