<!-- 
function NIW(img, width, height)
{
	var url = "img_viewer.php?img=" + img;
	var name = 'img_window';
	var left = (screen.availWidth - width) / 2;
	var top = (screen.availHeight - height) / 2;
	var open = window.open(url, name, 'left=' + left + ',top=' + top + ',width=' + width + ',height=' + height + ',menubar=no,status=no,location=no,resizable=no');
	open.focus();
}

function NewWindow(url, width, height)
{
	var name = 'galeria_window';
	var left = (screen.availWidth - width) / 2;
	var top = (screen.availHeight - height) / 2;
	var open = window.open(url, name, 'left=' + left + ',top=' + top + ',width=' + width + ',height=' + height + ',menubar=no,status=no,location=no,resizable=no');
	open.focus();
}


function NewAjanljaWindow(url, width, height)
{
	var name = 'ajanlja_window';
	var left = (screen.availWidth - width) / 2;
	var top = (screen.availHeight - height) / 2;
	var open = window.open(url, name, 'left=' + left + ',top=' + top + ',width=' + width + ',height=' + height + ',menubar=no,status=no,location=no,resizable=no');
	open.focus();
}

function NewKerdoivWindow(url, width, height)
{
	var name = 'kerdoiv_window';
	var left = (screen.availWidth - width) / 2;
	var top = (screen.availHeight - height) / 2;
	var open = window.open(url, name, 'left=' + left + ',top=' + top + ',width=' + width + ',height=' + height + ',menubar=no,status=no,location=no,resizable=no, scrollbars=yes');
	open.focus();
}

function NewKerdoivWindowCloseCallout(url, width, height)
{
	NewKerdoivWindow(url, width, height);
	
	hideLayer('kerdoiv_kerdo');
}


function showLayer(layerName, shadowLayerName)
{
	if (document.getElementById) // Netscape 6 and IE 5+
	{
		var targetElement = document.getElementById(layerName);
		var shadowElement = document.getElementById(shadowLayerName);
		targetElement.style.top = shadowElement.style.top;
		targetElement.style.visibility = 'visible';
	}
}

function hideLayer(layerName)
{
	if (document.getElementById) 
	{
		var targetElement = document.getElementById(layerName);
		targetElement.style.visibility = 'hidden';
	}
}
// -- End -->
