// JavaScript Document

	margin_top = 0;
	left = 0;
	margin_topT = 0;
	leftT = 0;	
	margin_topTH = 0;
	leftTH = 0;	
	margin_topF = 0;
	leftF = 0;
	margin_topS = 0;
	leftS = 0;
	margin_topSE = 0;
	leftSE = 0;
	stopbit = 0;

	function move_down()
 		{
		if ((stopbit == 0) && (left >= 0))
			{
			margin_top -= 1;
			left = height - 253 + margin_top;	
		
			document.getElementById('clients_list_inner').style.marginTop = margin_top + 'px';
			//document.getElementById('email').value = left;	
			
			window.setTimeout("move_down();",10);
			}
		}
		
	function move_up()
 		{
		if ((stopbit == 0) && (left <= (height - 253)))
			{
			margin_top += 1;
			left = height - 253 + margin_top;	
		
			document.getElementById('clients_list_inner').style.marginTop = margin_top + 'px';
			//document.getElementById('email').value = left;	
			
			window.setTimeout("move_up();",10);
			}
		}
		
		
	function move_downTH()
 		{
		if ((stopbit == 0) && (leftTH >= 0))
			{
			margin_topTH -= 3;
			leftTH = heightTH - 253 + margin_topTH;	
		
			document.getElementById('work_main_inner').style.marginTop = margin_topTH + 'px';
			//document.getElementById('email').value = left;	
			
			window.setTimeout("move_downTH();",20);
			}
		}
		
	function move_upTH()
 		{
		if ((stopbit == 0) && (leftTH <= (heightTH - 253)))
			{
			margin_topTH += 3;
			leftTH = heightTH - 253 + margin_topTH;	
		
			document.getElementById('work_main_inner').style.marginTop = margin_topTH + 'px';
			//document.getElementById('email').value = left;	
			
			window.setTimeout("move_upTH();",20);
			}
		}
		
	function move_downF()
 		{
		if ((stopbit == 0) && (leftF >= 0))
			{
			margin_topF -= 3;
			leftF = heightF - 256 + margin_topF;	
		
			document.getElementById('det_cl_inner').style.marginTop = margin_topF + 'px';
			//document.getElementById('email').value = left;	
			
			window.setTimeout("move_downF();",20);
			}
		}
		
	function move_upF()
 		{
		if ((stopbit == 0) && (leftF <= (heightF - 256)))
			{
			margin_topF += 3;
			leftF = heightF - 256 + margin_topF;	
		
			document.getElementById('det_cl_inner').style.marginTop = margin_topF + 'px';
			//document.getElementById('email').value = left;	
			
			window.setTimeout("move_upF();",20);
			}
		}
		
	function move_downS()
 		{
		if ((stopbit == 0) && (leftS >= 0))
			{
			margin_topS -= 1;
			leftS = heightS - 70 + margin_topS;	
		
			document.getElementById('obj_detail_name').style.marginTop = margin_topS + 'px';
			//document.getElementById('email').value = leftS;	
			
			window.setTimeout("move_downS();",20);
			}
		}
		
	function move_upS()
 		{
		if ((stopbit == 0) && (leftS <= (heightS - 70)))
			{
			margin_topS += 1;
			leftS = heightS - 70 + margin_topS;	
		
			document.getElementById('obj_detail_name').style.marginTop = margin_topS + 'px';
			//document.getElementById('email').value = leftS;	
			
			window.setTimeout("move_upS();",20);
			}
		}
		
		
	function move_downSE()
 		{
		if ((stopbit == 0) && (leftSE >= 0))
			{
			margin_topSE -= 1;
			leftSE = heightSE - 70 + margin_topSE;	
		
			document.getElementById('obj_detail_name').style.marginTop = margin_topSE + 'px';
			//document.getElementById('email').value = leftS;	
			
			window.setTimeout("move_downSE();",20);
			}
		}
		
	function move_upSE()
 		{
		if ((stopbit == 0) && (leftSE <= (heightSE - 70)))
			{
			margin_topSE += 1;
			leftSE = heightSE - 70 + margin_topSE;	
		
			document.getElementById('obj_detail_name').style.marginTop = margin_topSE + 'px';
			//document.getElementById('email').value = leftS;	
			
			window.setTimeout("move_upSE();",20);
			}
		}	
			
function show(id) {
	document.getElementById(id).style.visibility='visible';	
}
			
function hide(id){
	document.getElementById(id).style.visibility='hidden';			
}

var session = new Array(-1, 1, 1, 1);
var lide = new Array(-1, 0, 1, 1);


function zmenBarvu(i){
 if(session[i]==0){
 pombarva="zmenbarvu"+i;
 document.getElementById(pombarva).style.color='#7D6A01';
 }
 else{
 pombarva="zmenbarvu"+i;
 document.getElementById(pombarva).style.color='#FED100';
 }
}

function show(id)
	{
	document.getElementById(id).style.display='block';	
	}
	
function hide(id)
	{
	document.getElementById(id).style.display='none';			
	}
	
function show_hide(id)
	{			
	if (document.getElementById(id).style.display == 'block')
		{
		document.getElementById(id).style.display='none';	
		}
	else
		{
		document.getElementById(id).style.display ='block';	
		}
	}	
