﻿$(document).ready(function() {

	$(".pc_c a").mouseover(function() { //On hover...
		
		if ( $(".flip img:animated", $(this).parent() ).size > 0) {
			alert($(".flip img", $(this).parent()).size);
			return false;
		};

		$(".flip img, .flip .msg_block", $(this).parent()).dequeue().stop()
		.animate({ //Animate and expand the image and the msg_block (Width + height)
			width: '96px',
			height: '96px'
		}, 300);
	}),

	$(".pc_c a").mouseout(function() {

		if ($(".flip img:animated", $(this).parent()).size > 0) {
			return false;
		};
		if ($(".flip .msg_block:animated", $(this).parent()).size > 0) {
			return false;
		};

		$(".flip img", $(this).parent()).dequeue().stop() //On hover out, go back to original size 50x52
		.animate({
			width: '25px',
			height: '25px'
		}, 220);

		$(".flip .msg_block", $(this).parent()).dequeue().stop() //On hover out, go back to original size 50x50
		.animate({
			width: '25px',
			height: '25px'
		}, 200); //Note this one retracts a bit faster (to prevent glitching in IE)
	})

});
