var headline_count;
var headline_interval;
var old_headline = 0;
var old_headline2 = 1
var current_headline = 0;
var current_headline2 = 1;

function headline_rotate() {
  current_headline = (old_headline + 2) % headline_count; 
  current_headline2 = (old_headline2 + 2) % headline_count; 
  $("div.headline:eq(" + old_headline + ")")
    .animate({top: -50},"slow", function() {
      $(this).css('top', '210px');
    });
	$("div.headline:eq(" + old_headline2 + ")")
    .animate({top: -32},"slow", function() {
      $(this).css('top', '210px');
    });
  $("div.headline:eq(" + current_headline + ")")
    .animate({top: 0},"slow");  
	$("div.headline:eq(" + current_headline2 + ")")
    .animate({top: 22},"slow");
  old_headline = current_headline;
   old_headline2 = current_headline2;
}

function showPanel(index)
{
    $(".p_top .p_top_sx").hide();
    $(".p_top .p_top_sx:eq(" + index + ")").show();
    
}

