// jquery.flash.js

$(document).ready(function() {
	initAnimation();   
});

var timeOut = 1000;

function initAnimation() {
	  setTimeout(animate , 1);
}

function animate() {
	var flashing = $('.flash');
	
	flashing.each(function() {
		var bgColor = $(this).css("backgroundColor");
		var fontColor = $(this).css("color");		
		
		/*if (bgColor == 'transparent') {
			$(this).css({backgroundColor: '#01fd1f'})
				   .css({color: '#120569'});			
			}else{
			$(this).css({backgroundColor: 'transparent'})
				   .css({color: '#ff0'});
		}*/
		if (fontColor == 'transparent') {
			$(this).css({color: '#ff0'});			
			}else{
			$(this).css({color: 'transparent'});
		}
		
	});
	setTimeout(animate, timeOut);
}