<!--

function displayWindow(url,width, height) 
{
	var win = window.open(url,"Info",'width=' + width + ',height=' + height + ',resizable=1, scrollbars=yes, menubar=no, toolbar=no,directories=no, personalbar=no, location=no' );
	win.moveTo((screen.availWidth-width)/2,(screen.availHeight-height)/2);
	win.blur();
	win.focus();       
	window.onunload = function(){win.close()}
}

function openNew(url) 
{
	var win = window.open(url);
	win.moveTo(0, 0);
	win.resizeTo(screen.availWidth, screen.availHeight);
}

nn4 = (document.layers) ? true : false;
ie4 = (document.all) ? true : false;

function ShowToolTip(Blok, e)
{
	if (nn4)
	{
		document.layers[Blok].left=e.pageX;
		document.layers[Blok].top=e.pageY;
		document.layers[Blok].visibility="visible";
	}
	if (ie4)
	{
		document.all[Blok].style.pixelLeft=document.body.scrollLeft+event.clientX;
		document.all[Blok].style.pixelTop=document.body.scrollTop+event.clientY;
		document.all[Blok].style.visibility="visible";
	}
}

function HideToolTip(Block)
{
	if (nn4) document.layers[Block].visibility="hidden"
	if (ie4) document.all[Block].style.visibility="hidden";
}

var lastSelected = null;
var lastColor = null;

function displayPhoto(sliderName, photoPath, captionName)
{
	document.images[sliderName].src = photoPath;
	
	if (nn4)
	{
		if (lastSelected!=null)
			document.layers[lastSelected].style.color = lastColor;
		lastColor = document.layers[captionName].style.color;
		document.layers[captionName].style.color = 'red';
		lastSelected = captionName;
	}

	if (ie4)
	{
		if (lastSelected!=null)
			document.all[lastSelected].style.color = lastColor;
		lastColor = document.all[captionName].style.color;
		document.all[captionName].style.color = 'red';
		lastSelected = captionName;

	}
}
//-->

