if(!window.JSFX)
	JSFX=new Object();

JSFX.zoomOut = function(img)
{
	if(img)
	{
		var childSpan = document.getElementById('hoverSpan');
		if (childSpan) {
			img.parentNode.removeChild(childSpan);
			img.parentNode.style.zIndex = parseInt(img.parentNode.style.zIndex) - 50;
			img.parentNode.parentNode.style.zIndex = parseInt(img.parentNode.parentNode.style.zIndex) - 50;
			img.parentNode.style.position = 'static';
			img.parentNode.style.width = img.style.width;
		}
		/*img.parentNode.parentNode.style.display = 'block';
		var displayMode = img.style.display;
		img.style.display = 'none';
		img.style.display = displayMode;
		displayMode = img.parentNode.style.display;
		img.parentNode.style.display = 'none';
		img.parentNode.style.display = displayMode;*/
	}
}
JSFX.zoomIn = function(img, zoomStep, maxZoom)
{
	var parentDiv = img.parentNode;
	var span = document.createElement('div');
	span.setAttribute('id', 'hoverSpan');
	//span.setAttribute('onmouseover', 'JSFX.zoomIn(this.parentNode.getElementsByTagName(\'img\')[0], 4, 50);');
	//span.setAttribute('onmouseout', 'JSFX.zoomOut(this.parentNode.getElementsByTagName(\'img\')[0]);');
	var text = document.createTextNode(img.title);
	img.parentNode.style.position = 'absolute';
	img.parentNode.parentNode.style.zIndex = parseInt(img.parentNode.parentNode.style.zIndex) + 50;
	img.parentNode.style.zIndex = parseInt(img.parentNode.style.zIndex) + 50;
	span.appendChild(text);
	img.parentNode.style.width = img.style.width;
	parentDiv.appendChild(span);
}
function getNextSibling(element) {
	var n = element;
	do n = n.nextSibling;
	while (n && n.nodeType != 1);
	return n;
}
 
function getPreviousSibling(element) {
	var p = element;
	do p = p.previousSibling;
	while (p && p.nodeType != 1);
	return p;
}