function booking_price_vidget()
{

var timer;
var counter_head = "null";
var counter_foot = "null";
var counter_step = 1;
var counter_runtext1 = "null";
var counter_runtext2 = "null";
var width = document.documentElement.clientWidth || window.innerWidth;
var height = document.documentElement.clientHeight || window.innerHeight;

		this.play = function(){
		  counter_step = 1;
		}
		this.pause = function(){
		  counter_step = 0;
		}
		this.tscroll = function()
		{
		  //  alert ('timer. cstep='+counter_step);
		  //  alert(booking_price_vidget.tscroll);
          //alert ('chead='+counter_head+' cfoot='+counter_foot)
		  try
		   {
		    var height = document.getElementById("scroll_head").offsetHeight;
		    if(counter_head == "null") counter_head = 0;
		    if(counter_foot == "null") counter_foot =  - height;
		    counter_head += counter_step;
		    counter_foot += counter_step;
		    if(counter_head >= height)
		    {
		      counter_head = - (height + counter_foot);
		    }
		    if(counter_foot >= height)
		    {
		      counter_foot = - (height + counter_head);
		    }
		    document.getElementById("scroll_head").style.top = - counter_head + "px";
		    document.getElementById("scroll_foot").style.top = - counter_foot + "px";
		    setTimeout(booking_price_vidget.tscroll, 100);
		  }
		  catch(error){}
       }
}

