$(document).ready(function(){
  	$(".logo").click(function() {
    	window.location = $(this).find("h1 a:first").attr("href");
 	});
 	$(function(){$('a[href][rel*=external]').each(function(i){this.target = "_blank";});});

	$("#pageflip").hover(function() { //On hover...
		$("#pageflip img , .msg_block").stop()
			.animate({ //Animate and expand the image and the msg_block (Width + height)
				width: '307px',
				height: '319px'
			}, 500);
		} , function() {
		$("#pageflip img").stop() //On hover out, go back to original size 50x52
			.animate({
				width: '50px',
				height: '52px'
			}, 420);
		$(".msg_block").stop() //On hover out, go back to original size 50x50
			.animate({
				width: '50px',
				height: '50px'
			}, 400); //Note this one retracts a bit faster (to prevent glitching in IE)
	});
	

		$("#pageflip img").delay(1000).stop() //On hover out, go back to original size 50x52
			.animate({
				width: '50px',
				height: '52px'
			}, 1020);
		$(".msg_block").delay(1000).stop() //On hover out, go back to original size 50x50
			.animate({
				width: '50px',
				height: '50px'
			}, 1000); //Note this one retracts a bit faster (to prevent glitching in IE)

});
