var ini_start5 = -206;

var final_end = 202;

var t;



function move_in5()

{	

	var el = document.getElementById('h_slider');

	ini_start5 = ini_start5 + 12;

	if (ini_start5 >= 202)

	{

		stop_count();

	}

	else

	{

		el.style.top = (ini_start5) + 'px';

		t = setTimeout("move_in5()",1);	

	}

	

}



function move_out5()

{

	var el = document.getElementById('h_slider');

	final_end = final_end - 12;

	if (final_end <= -202)

	{

		stop_count5();

	}

	else

	{

		el.style.top = (final_end) + 'px';

		t = setTimeout("move_out5()",1);	

	}

  

}



function stop_count5()

{

	clearTimeout(t);

	ini_start5 = -206;

	final_end = 202;

}



function slider_left5()

{

	var el = document.getElementById('h_slider');

	my_width = 995;

	scr_width = screen.width;	

	my_left = (scr_width/2) - (my_width/2);

	el.style.left = (my_left) + 'px';

}



function toggle_clop()

{

	var varopen = document.getElementById('open');

	var varclose = document.getElementById('close');

   // alert(varclose);

   

    if(varopen.style.display=='block')

    {

		varopen.style.display='none';

		varclose.style.display='block';	

    }

    else

    {

		varopen.style.display='block';

		varclose.style.display='none';	

	}

}

