		swfobject.embedSWF(
		"http://www.henninger.com/viewer/HMS_Viewer.swf",
		"flash",
		"960",
		"326",
		"9.0.0",
		"http://www.henninger.com/viewer/expressInstall.swf",
		{"dataPath":"http://www.henninger.com/viewer/fileData.xml"},
		{"wmode":"transparent","allowfullscreen":"true","bgcolor":"#000000"},
		{}
		
	);

var headline_count;
var headline_interval;
var animating=false;
var old_headline = 0;
var current_headline = 0;
$(document).ready(function(){
  headline_count = $("p.headline").size();
 $("p.headline:eq("+current_headline+")").css('top', '3px');
 
  headline_interval = setInterval(headline_rotate,5000);
  $('div#headline').hover(function() {
  clearInterval(headline_interval);
  }, function() {
if(!animating){
    headline_interval = setInterval(headline_rotate,5000);

    headline_rotate();

}
  });
});
function headline_rotate() {
animating=true;
  current_headline = (old_headline + 1) % headline_count;
  $("p.headline:eq(" + old_headline + ")").css('top','28px');
 /* .animate({top: -23},"slow", function() {
      $(this).css('top', '28px');
animating=false;
    });*/
  $("p.headline:eq(" + current_headline + ")").css('top','3px');
  /*  .animate({top: 3},"slow");  */
  old_headline = current_headline;
  animating=false;
}