var t, t2, h_temp;var a2=new Array();var v_scroll=new Array();var a5=new Array();var goo=new Array();a2['g1']=.3;a2['g2']=.3; a5['g1']=1;a5['g2']=1;v_scroll['g1']=0;v_scroll['g2']=0;goo['g1']=false;goo['g2']=false;
function start(w,h)
	{
	 h_temp=h;
	 if (t2)
	 	{if (v_scroll[h]<=0&&w=='prev')
			{goo[h]=true;clearTimeout(t2);
			}
		 if (v_scroll[h]>=0&&w=='prev')
			goo[h]="false_porumbei";
		 if (v_scroll[h]>0&&w=='next')
			{goo[h]=true;clearTimeout(t2);}
		 if (v_scroll[h]<=0&&w=='next')
			goo[h]=false;
		}
	 if (v_scroll[h]==0)
	 	goo[h]=true;
	 if (goo[h]||!t2)
	 	{w2=w;
		 if (w=='next')
		 	{if (v_scroll[h]<6)
				 v_scroll[h]+=a5[h];
			}
		 else
			 if (v_scroll[h]>-6)
				 v_scroll[h]-=a5[h];
		 document.getElementById(h).scrollLeft+=v_scroll[h];
		 t=setTimeout('start(w2,h_temp);',10);
		}
	}
function stop(w,h)
	{h_temp=h;
	 clearTimeout(t);
	 w2=w;
	 if (w=='next')
		 if (v_scroll[h]>0)
			v_scroll[h]-=a2[h];
		 else
	 		{clearTimeout(t2);v_scroll[h]=0;t2=false;
			 return;
			}	 	
	 else
	 	 if (v_scroll[h]<0)
			v_scroll[h]+=a2[h];
		 else
	 		{clearTimeout(t2);v_scroll[h]=0;t2=false;
			 return;
			}
	 document.getElementById(h).scrollLeft+=v_scroll[h];
	 t2=setTimeout('stop(w2,h_temp);',10);
	}
