$(document).ready(function(){

	if ($('div.warning').length != 0) {

		$('div.warning').css({'opacity' : '0'});
		
		$('div.warning').animate({
			opacity: 1,
		}, 1000);
		
		function closeWarning() {
			
			$('div.warning').animate({
				opacity: 0,
			}, 1000);
			
		}
		
		setTimeout(closeWarning, 3000);
	
	}

});
