function gallery(strName,intStep)
{
	intStep = parseInt(intStep);
	var strRootURL = location.href.substring(0,location.href.lastIndexOf(strName));
	var intCurrentNumber = parseInt(location.href.substring((location.href.lastIndexOf(strName)+strName.length)));
	if(document.getElementById(strName+(intCurrentNumber+intStep)))
	{
		window.location=(strRootURL+strName+(intCurrentNumber+intStep));
	}
	if(!(document.getElementById(strName+(intCurrentNumber+intStep+intStep))))
	{
		if(intStep>0)
			document.getElementById('gallery_navi_next').style.display='none';
		if(intStep<0)
			document.getElementById('gallery_navi_prev').style.display='none';
	}
	else
	{
		if(intStep<0)
			document.getElementById('gallery_navi_next').style.display='inline';
		if(intStep>0)
			document.getElementById('gallery_navi_prev').style.display='inline';
	}
}
