$(document).ready(function(){
	linkTargets();
	calendar();
	pageFlip();
});

function linkTargets(){
	$(".hotoffthepress a, .flickr a").attr("target","_blank");
}

function calendar(){
	$(".event a").hover(function(){
		$(this).children("span").fadeIn('fast');
	},function(){
		$(this).children("span").fadeOut('fast');
	})
	$(".kjo-link").remove();
	
}
function pageFlip () {
	
	$("#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'
		}, 220);
	$(".msg_block").stop() //On hover out, go back to original size 50x50
		.animate({
			width: '50px',
			height: '50px'
		}, 200); //Note this one retracts a bit faster (to prevent glitching in IE)
});
	
}
