$(document).ready(function(){

//Page Flip on hover
 
	$("#labelflip").hover(function() {
		$("#labelflip img").stop()
			.animate({
				width: '324px',
				opacity: 0,
				height: '422px'
			}, 500); 
		$(".msg_block").stop()
			.animate({
				width: '324px',
				height: '422px'
			}, 500);		 			
		} , function() {
		$("#labelflip img").stop() 
			.animate({
				width: '50px',
				opacity: 1,				
				height: '52px'
			}, 220);			
		$(".msg_block").stop() 
			.animate({
				width: '50px', 
				height: '50px'
			}, 200);
	});
	
	$("#labelflip2").hover(function() {
		$("#labelflip2 img").stop()
			.animate({
				width: '324px',
				opacity: 0,
				height: '422px'
			}, 500); 
		$(".msg_block2").stop()
			.animate({
				width: '324px',
				height: '422px'
			}, 500); 			
		} , function() {
		$("#labelflip2 img").stop() 
			.animate({
				width: '50px',
				opacity: 1,				
				height: '52px'
			}, 220);
		$(".msg_block2").stop() 
			.animate({
				width: '50px', 
				height: '50px'
			}, 200);
	});	
	
	$("#labelflip3").hover(function() {
		$("#labelflip3 img").stop()
			.animate({
				width: '324px',
				opacity: 0,
				height: '422px'
			}, 500); 
		$(".msg_block3").stop()
			.animate({
				width: '324px',
				height: '422px'
			}, 500); 			
		} , function() {
		$("#labelflip3 img").stop() 
			.animate({
				width: '50px',
				opacity: 1,				
				height: '52px'
			}, 220);
		$(".msg_block3").stop() 
			.animate({
				width: '50px', 
				height: '50px'
			}, 200);
	});	
	
	$("#labelflip4").hover(function() {
		$("#labelflip4 img").stop()
			.animate({
				width: '324px',
				opacity: 0,
				height: '422px'
			}, 500); 
		$(".msg_block4").stop()
			.animate({
				width: '324px',
				height: '422px'
			}, 500); 			
		} , function() {
		$("#labelflip4 img").stop() 
			.animate({
				width: '50px',
				opacity: 1,				
				height: '52px'
			}, 220);
		$(".msg_block4").stop() 
			.animate({
				width: '50px', 
				height: '50px'
			}, 200);
	});			
 
	
});

$(function() {
		$( "#tabs" ).tabs({
			event: "mouseover"
		});
});
