;(function($){
	
// plugin by Joel Birch
$.fn.switchContent = function(spd,rpt,path){
	var $$=this;
	var factTimer = setTimeout(function(){
		$$.animate({opacity:'hide',height:'hide'},spd,function(){
			var noCache= new Date().getTime();
			$$.load(path+"?version="+noCache,function(){
				$$.animate({opacity:'show',height:'show'},spd,function(){
					$$.switchContent(spd,rpt,path).fixClearType();
				});
			});
		});
	},rpt*1000);
	return this;
};


$.fn.fixClearType = function(){
  return this.each(function(){
      if( !!(typeof this.style.filter && this.style.removeAttribute))
          this.style.removeAttribute('filter');
  });
};

})(jQuery);
