function displayImage(imagePath,title,description)
{
	var enlargerObj = new DHTMLSuite.imageEnlarger();
	enlargerObj.setIsDragable(true);
	enlargerObj.setIsModal(true);		
	enlargerObj.setCloseLinkTxt(false);	
	DHTMLSuite.commonObj.setCssCacheStatus(false);
	enlargerObj.displayImage(imagePath,title,description);
	
}

function switchImage(obj, imagePath, title, description)
{
	// получаем данные о потомках объекта
	obj.className = "Image_small_highlighted";
	
	var img_id = obj.getAttributeNode('tag_id');
	var parent = obj.parentNode.parentNode.parentNode;

	var neighbours = parent.getElementsByTagName('DIV');
	for(var i=0; i < neighbours.length; i++)
	{
		var n_id = neighbours[i].getAttributeNode('tag_id');
		if(n_id.value != img_id.value) 
			neighbours[i].className = "Image_small";		
	}
	
	var img_obj = document.getElementById('imageObj');
	var img = img_obj.firstChild;
	
	img_obj.setAttribute('href',imagePath);
	img.setAttribute('src',imagePath);
}

