
jQuery.noConflict();

function refreshPane(){
			jQuery('#scrollplaylist').jScrollPane({
			showArrows: true,
			scrollbarWidth: 20,
			dragMaxHeight: 78,
			dragMinHeight: 78
			});

		};

function timer_out(){
			jQuery.post("process_ajax_call.ud121?trigger_event_0=getterminalnow&rand="+Math.random(),{transmission_id: transmission}, function(data){
					jQuery("#prog-name").html(data);
			});
			jQuery.post("process_ajax_call.ud121?trigger_event_0=getterminalschedulle&rand="+Math.random(),{transmission_id: transmission}, function(data){
					jQuery("#schedule").html(data);
					refreshPane();
			});
}


jQuery(document).ready(function(){
	
	jQuery('#scrollplaylist').jScrollPane({
			showArrows: true,
			scrollbarWidth: 20,
			dragMaxHeight: 78,
			dragMinHeight: 78
	});
	
							
		
	function timer(){
			jQuery.post("process_ajax_call.ud121?trigger_event_0=getterminalnow&rand="+Math.random() ,{transmission_id: transmission}, function(data){
					jQuery("#prog-name").html(data);
			});
			jQuery.post("process_ajax_call.ud121?trigger_event_0=getterminalschedulle&rand="+Math.random(),{transmission_id: transmission}, function(data){
					jQuery("#schedule").html(data);
					refreshPane();
			});
			/*jQuery.post("process_ajax_call.ud121?trigger_event_0=getplasmanetworksize&rand="+Math.random(),{service: "<?=$RAVI_SERVICE?>"}, function(data){
						jQuery("#box-body").html(data);
			});*/
		}
		timer();
		setInterval("timer_out()",20000);
});
