function animateBounce(item)
{
	
	if(item) {
		 item.animate({
			width: '200px',
			opacity: 0
		  }, {
			duration: 1
		  }).animate({
			width: '450px',
			opacity: 1
		  }, {
			duration: 1000,
			specialEasing: {
			  width: 'easeOutBounce'
			}
		  });
	}
}

$(document).ready(function()
{
	animateBounce($("#warning"));
	animateBounce($("#message"));
	
	if(jQuery.fancybox) {
		$('a[rel*="lightbox"]').fancybox({
			'transitionIn'	:	'elastic',
			'transitionOut'	:	'elastic',
			'speedIn'		:	500, 
			'speedOut'		:	200, 
			'overlayShow'	:	false,
			'cyclic'		:	true
		});
	}
});


