function move_ajaxFunction(id,url)
{
	var xmlHttp;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			var neki = document.getElementById('thumbs_container')
			neki.innerHTML = xmlHttp.responseText;
		}
	}
	var st = document.getElementById('start').value;
	if(id == -1)
		st--;
	else
		st++;
		
	if(st > document.getElementById('end').value)
		st = document.getElementById('end').value;
	if(st < 0)
		st = 0;
		
	document.getElementById('start').value = st;
	xmlHttp.open("GET","pictures.php?url="+url+"&count=10&start="+st,true);
	xmlHttp.send(null);
}
