function change(id)
{
	var n1 = document.getElementById(id)		//	Достаем картинку
	var n2 = document.getElementById("holder")	//	Достаем контейнер

	if (!n1 || !n2)
		return
	
	n2.removeChild(n2.firstChild)
	n2.appendChild(n1.cloneNode(false))

	id = "item"+parseInt(id.match(/\d+/))
	n1 = document.getElementById(id)
	n2 = getNodesByClass("ch", "nav", "div")[0]
	
	n2.className = ""
	n1.className = "ch"

	var text = n2.removeChild(n2.firstChild)	
	var a = n2.appendChild(document.createElement("a"))
	a.href = "javascript:change('img"+parseInt(n2.id.match(/\d+/))+"')"
	a.appendChild(text)
	
	a = n1.firstChild
	text = a.removeChild(a.firstChild)
	n1.removeChild(n1.firstChild)
	n1.appendChild(text)
}