// JavaScript Document
var headline_count;
var headline_interval;
var old_headline = 0;
var current_headline = 0;

$(document).ready(function(){
	headline_count = $("div.tick").size();
	$("div.tick:eq("+current_headline+")").css('top','2px');
	
	headline_interval = setInterval(headline_rotate,5000); //time in milliseconds
	$('#scrollup').hover(function() {
		clearInterval(headline_interval);
	}, function() {
		headline_interval = setInterval(headline_rotate,3000); //time in milliseconds
	});
	
	moveBanner();
	if ($.browser.msie){
		transIe('imgPng1');
		transIe('imgPng2');
	}
	
	$('#most_viewed').click(function(){
		toggleTabs(this, '#top_story', '#most_viewed_news', '#top_story_news');
	})
	$('#top_story').click(function(){
		toggleTabs(this, '#most_viewed', '#top_story_news', '#most_viewed_news');
	})
	
});

