var ini_start1 = -500;
var final_end1 = 15;
var t1;

function move_in1()
{	
	var el = document.getElementById('res_slider');
	ini_start1 = ini_start1 + 15;
	if (ini_start1 >= 15)
	{
		stop_count1();
	}
	else
	{
		el.style.top = (ini_start1) + 'px';
		t1 = setTimeout("move_in1()",1);	
	}
}

function move_out1()
{
	var el = document.getElementById('res_slider');
	final_end1 = final_end1 - 30;
	if (final_end1 <= -1000)
	{
		stop_count1();
	}
	else
	{
		el.style.top = (final_end1) + 'px';
		t1 = setTimeout("move_out1()",1);	
	}

}


function set_intial1()
{
	var el = document.getElementById('res_slider');
	final_end = -1000;
	el.style.top = (final_end) + 'px';
	
	stop_count();
}

function stop_count1()
{
	clearTimeout(t);
	ini_start1 = -500;
	final_end1 = 15;
}

function slider_left1()
{
	var el = document.getElementById('res_slider');
	my_width = -150;
	scr_width = screen.width;	
	my_left = (scr_width/2) - (my_width/2);
	el.style.left = (my_left) + 'px';
}