// JavaScript Document
$(document).ready(function(){
$(".signup").click(function(){
if ($("#contactForm").is(":hidden")){
$("#contactForm").show("slow");
}
else{
$("#contactForm").hide("slow");
}
});
$("#contactForm span.close").click(function () { 
      $('#contactForm').hide("slow"); 
    });

function closeForm(){
$("#messageSent").show("slow");
setTimeout('$("#messageSent").hide();$("#contactForm").hide("slow")', 3000);

}

$(".tell_friend").click(function(){
if ($("#tell_friend_form").is(":hidden")){
$("#tell_friend_form").show("slow");
}
else{
$("#tell_friend_form").hide("slow");
}
});
$("#tell_friend_form span.close").click(function () { 
      $('#tell_friend_form').hide("slow"); 
    });


function closeForm(){
$("#tell_friend_form #messageSent").fadeIn("slow");
setTimeout('$("#tell_friend_form #messageSent").hide();$("#tell_friend_form").hide("slow")', 2000);

}

$(".artist_card").click(function(){
if ($("#artist_card_box").is(":hidden")){
$("#artist_card_box").show("slow");
}
else{
$("#artist_card_box").hide("slow");
}return false;
});
$("#artist_card_box span.close").click(function () { 
      $('#artist_card_box').hide("slow"); 
    });


$(".birthstone_card").click(function(){
	if ($("#birthstone_box").is(":hidden")){
		$("#birthstone_box").show("slow");
	}else{
		$("#birthstone_box").hide("slow");
	}
	return false;
});
$("#birthstone_box span.close").click(function () {$('#birthstone_box').hide("slow");});

$(".anniversary_card").click(function(){
	if ($("#anniversary_gifts_box").is(":hidden")){
		$("#anniversary_gifts_box").show("slow");
	}else{
		$("#anniversary_gifts_box").hide("slow");
	}
	return false;
});
$("#anniversary_gifts_box span.close").click(function () {$('#anniversary_gifts_box').hide("slow");});

$(".shipping_card").click(function(){
	if ($("#shipping_card_box").is(":hidden")){
		$("#shipping_card_box").show("slow");
	}else{
		$("#shipping_card_box").hide("slow");
	}
	return false;
});
$("#shipping_card_box span.close").click(function () {$('#shipping_card_box').hide("slow");});


});

