$(document).ready(function () {

// Buttons Animation 
var intID=setInterval(onTime, 7000);

function onTime() {

$("#button_img1").animate({
			opacity: 1.0,
		}, 500).animate({
			opacity: 0.2,
		}, 1000).animate({
			opacity: 0.5,
		}, 300);
/*
$("#button_img2").delay(200).animate({
			opacity: 1.0,
		}, 500).animate({
			opacity: 0.2,
		}, 1000).animate({
			opacity: 0.5,
		}, 300);		

$("#button_img3").delay(400).animate({
			opacity: 1.0,
		}, 500).animate({
			opacity: 0.2,
		}, 1000).animate({
			opacity: 0.5,
		}, 300);
*/
}

$(".choose_image").mouseenter(function() {
	clearInterval(intID);
	$(this).animate({opacity: 1.0,}, 500 );
}).mouseleave(function(){
	$(this).animate({opacity: 0.5,}, 500 );
	intID=setInterval(onTime, 5000);
});


});
