//JQUERY 1.2.6 dan 1.3.2 ye geçinçe $ taglarini jQuery ye çevirdim. O zaman ilk news geldiginde bir süre bekliyor. PROBLEMI ÇÖZ

// JavaScript Document
var HeadlineNewsCurrentIndex = 0;

	var HeadlineNewsTitles = [];
	var HeadlineNewsLinks = [];
		
		HeadlineNewsTitles.push('<b>T+L</b>: Adaptive Curriculum will be featured at the NSBA\'s T+L Conference, October 19-21 at booth 308.');
		HeadlineNewsLinks.push('news-and-events/upcoming-TL-2010.html');
		
		HeadlineNewsTitles.push('<b>iNACOL</b>: Adaptive Curriculum will be featured at the Virtual School Symposium, November 14-16 at booth 55.');
		HeadlineNewsLinks.push('news-and-events/upcoming-iNACOL-2010.html');
		
		HeadlineNewsTitles.push('Adaptive Curriculum announces the appointment of Jim Bowler as its first CEO.');
		HeadlineNewsLinks.push('news-and-events/news-new-CEO-announced.html');
				
		HeadlineNewsTitles.push('<b>EDDIE Award</b>: Adaptive Curriculum is the Best Middle School Science and Math Website.');
		HeadlineNewsLinks.push('news-and-events/news-EDDIE2009.html');
	
	function SwapHeadline()
	{
		jQuery('#HeadlineNewsLink').fadeOut('slow', function() {
			jQuery('#HeadlineNewsLink').attr("href", HeadlineNewsLinks[HeadlineNewsCurrentIndex]);
			jQuery('#HeadlineNewsLink').html(HeadlineNewsTitles[HeadlineNewsCurrentIndex]);	
		
			jQuery('#HeadlineNewsLink').fadeIn('slow');
	
			HeadlineNewsCurrentIndex++;
			if(HeadlineNewsCurrentIndex == HeadlineNewsTitles.length)
			{
				HeadlineNewsCurrentIndex = 0;
			}
		});
		
		setTimeout('SwapHeadline()', 5000);
	}

	jQuery(document).ready(function(){
		SwapHeadline();
	});