    var el;
    var el2;
    var element=0;
	var inout;
	var int_;
	var array;
	var wnd;
	function init()
	{
		array = ["par_firmu","kvalitate","darbi","galerija","kontakti"];
		array[0] = ['par_firmu_id',74,true,'http://www.pamats.com/eng/?page=info'];
		array[1] = ['kvalitate_id',62,true,'http://www.pamats.com/eng/?page=quality'];
		array[2] = ['darbi_id',96,true,'http://www.pamats.com/eng/?page=works'];
		array[3] = ['galerija_id',60,true,'http://www.pamats.com/eng/?page=gallery'];
		array[4] = ['kontakti_id',72,true,'http://www.pamats.com/eng/?page=contacts'];
		array[5] = ['konkursu_id',108,true,'http://www.pamats.com/lat/?page=konkursi'];
		int_=setInterval("move()",50);
		document.linkColor="#000000";
		document.vlinkColor="#000000";
		document.alinkColor="#000000";
		par_firmu_id.style.cursor="hand";
		kvalitate_id.style.cursor="hand";
		darbi_id.style.cursor="hand";
		galerija_id.style.cursor="hand";
		kontakti_id.style.cursor="hand";
		konkursu_id.style.cursor="hand";
	};
	function goto_(item)
	{
		document.location.href=array[item][3];
	};
	function move()
	{//move other elements
		for(i=0;i<5;i++)
		{
			if(i!=element && array[i][2]==false)
			{
				el2=document.getElementById(array[i][0]);
				if(parseInt(el2.style.width)>array[i][1])
		        {
		          el2.style.width=parseInt(el2.style.width)-7+'px';
		        }
		        else
		        {
		        	array[i][2]=true;
		        };
			};
		};
		el=document.getElementById(array[element][0]);//move current element
		if(inout==1)
		{//move in
		  if(parseInt(el.style.width)<130)
		  {
		    el.style.width=parseInt(el.style.width)+7+'px';
		  };
		}
		else
		{//move out
		  if(parseInt(el.style.width)>array[element][1])
		  {
		    el.style.width=parseInt(el.style.width)-7+'px';
		  }
		  else
		  {
		  	array[element][2]=true;
		  };
		};
	};
	function mouse_over(item)
	{
		element=item;
		array[item][2]=false;
		inout=1;
		move();
	};
	function mouse_out(item)
	{
		element=item;
		array[item][2]=false;
		inout=2;
		move();
	};
	function win(w,h,url)
	{
		Wnd=window.open(url, '_blank', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no,width='+w+',height='+h+'');
		Wnd.focus();
	};