//kevins params

//http://www.learningjquery.com/2006/10/scroll-up-headline-reader

/*

var scrollContainerClass = "not_rel_container";
var scrollItemClass = "not_rel"; //headline
var pauseTime = 9000;
var scrollTime = 6000;
var Horizontal = true;
var headline_count;
var headline_interval;
var old_headline = 0;
var current_headline = 0;


$(document).ready(function(){
  headline_count = $("."+scrollItemClass).size();
  
 // pauseTime = parseInt($("[id$=HiddenPauseTime]").val());
 // scrollTime = parseInt($("[id$=HiddenScrollerTime]").val());

//alert('headline_count:'+headline_count + 'pauseTime: ' +pauseTime + 'scrollTime: '+scrollTime );

  //find currentheadline and set it's position inside the scrollcontainer class
if(Horizontal){
  $("."+scrollItemClass+":eq("+current_headline+")").css('left', '0px');
}
else{
 $("."+scrollItemClass+":eq("+current_headline+")").css('top', '0px');

}
  
  //if there are more than 1 headlines
  if(headline_count > 1)
  {  
    //set var headline interval with the headline_rotate() function and the time it was be displayed
	headline_interval = setInterval(headline_rotate,pauseTime);    
  
	  //bind a hover event to the container class removing the headline interval
	  $('.'+scrollContainerClass).hover(function() {
	    clearInterval(headline_interval);
	  }, function() {
	    //reset the interval
	    headline_interval = setInterval(headline_rotate,pauseTime); 	
	    //headline_rotate();
	  });  
  }
});

function headline_rotate() {

  //set current headline 
  current_headline = (old_headline + 1) % headline_count; 
  if(Horizontal){
  $("."+scrollItemClass+":eq(" + old_headline + ")")
    .animate(
			{
				left: $("."+scrollItemClass).width() *-1                               				
			},scrollTime, function() {
      $(this).css('left', $("."+scrollItemClass).css("width"));	  
    });
	
  $("."+scrollItemClass+":eq(" + current_headline + ")")
    .animate(
		{
			left: 0			
		},scrollTime);	
}
else{
$("."+scrollItemClass+":eq(" + old_headline + ")")
    .animate(
			{
				top: $("."+scrollItemClass).height()*(-1)		
			},scrollTime, function() {
      $(this).css('top', $("."+scrollItemClass).css("height"));	  
    });
	
  $("."+scrollItemClass+":eq(" + current_headline + ")")
    .animate(
		{
			top: 0			
		},scrollTime);	

}	
  old_headline = current_headline;
}

*/