/*
* jQuery Timer Plugin
* http://www.evanbot.com/article/jquery-timer-plugin/23
*
* @version      1.0
* @copyright    2009 Evan Byrne (http://www.evanbot.com)
*/ 

jQuery.timer = function(time,func,callback){
	var a = {timer:setTimeout(func,time),callback:null}
	if(typeof(callback) == 'function'){a.callback = callback;}
	return a;
};

jQuery.clearTimer = function(a){
	clearTimeout(a.timer);
	if(typeof(a.callback) == 'function'){a.callback();};
	return this;
};

$(document).ready(function(){
	 var myTimer = {};
	var count = 0;

	for(i=1; i!=100; i++){
		myTimer = $.timer(21000*(i+count),function(){
				$('.especial p').hide();
				count++;
				if(count==2){
					count=0;
				}
				
				$('.especial li').css('background-color', '#F0F0F0');
				$('.especial li a').css('color', '#000099');
								
				$('.especial p.esp'+count).show();
			});
	}
});