// pageflip-effect for the right top corner

$(document).ready(function() {
	$('#corner-static').hide();
	$('#pageflip').show();

$("#pageflip").hover(function() { //On hover...
	$("#pageflip img , .msg_block").stop()
		.animate({ //Animate and expand the image and the msg_block (Width + height)
			width: '176px',
			height: '220px'
		}, 500);
	} , function() {
	$("#pageflip img").stop() //On hover out, go back to original size
		.animate({
			width: '120px',
			height: '150px'
		}, 220);
	$(".msg_block").stop() //On hover out, go back to original size
		.animate({
			width: '120px',
			height: '150px'
		}, 200); //Note this one retracts a bit faster (to prevent glitching in IE)
});

});
