$(document).ready(function()
{
//			var cookiename='cy20090318'; 
	//		if (jQuery.cookie(cookiename) != '200')
	//	{
				$("#black-screen").stop().animate({opacity: "show", top: "1"}, "slow"); // show message box with slow opacity
			$("#black-screen").animate({ opacity:.75 }, "slow");//the messagebox gets scroll up with top property and gets hidden with zero opacity
		$("#messagebox-s").stop().animate({top: "1", left: "1"}, "slow") // show message box with slow opacity
											.stop().animate({opacity: "show", top: "18%", left: "43%"}, "slow") // show message box with slow opacity
													.css('zIndex', '999')
												.animate({ opacity:.95 }, "slow");//the messagebox scroll up with top property and gets hidden with zero opacity
				
				$("#messagebox-a").stop().animate({top: "1", right: "1"}, "slow") 
													.stop().animate({opacity: "show", top: "18%", left: "-10%"}, "slow") 
													.css('zIndex', '999')
													.animate({ opacity:.95 }, "slow");
				
				$("#messagebox-s, #messagebox-a").click(function(){//close button is clicked
					$("#black-screen").css('zIndex', '-1');
					$("#black-screen").animate({ opacity:0 }, "slow");//the messagebox gets zero opacity
					$("#messagebox-a, #messagebox-s").css('display', 'none');
	//					jQuery.cookie(cookiename, '200', { expires: 2 }); //sets a new cookie, # days
						});
//		}
				
});

