function imagePopUp(obj,w,h)
{
 var fullImg = obj.attributes.getNamedItem("full_img");
 if(fullImg)
 var imgPath = fullImg.value;
 else
 var imgPath = obj.src;
 var newWindow = window.open("","", "status=0, TOP=200, LEFT=200, HEIGHT="+h+",WIDTH="+w);
 newWindow.document.write("<html><head><title>Просмотр изображения</title></head><body style='padding:0;margin:0;'>");
 newWindow.document.write("<img src="+imgPath+" width="+w+" height="+h+" style='cursor:pointer' onclick='window.close()' alt='Закрыть изображение'>");
 newWindow.document.write("</body></html>");
 newWindow.document.close();
}

function Switcher (id, sender)
{
	var description = document.getElementById("description"+id);
	var behaviour = document.getElementById("behaviour"+id);
	if (sender == 1)
	{
		description.style.display = 'block';
		behaviour.style.display = 'none';
		return;
	}
	if (sender == 2)
	{
		description.style.display = 'none';
		behaviour.style.display = 'block';
		return;
	}	
}
