ukrLink = window.location.href.replace('/eng/','/ukr/');
engLink = window.location.href.replace('/ukr/','/eng/');

function switchLang(){
	window.location=ukrLink;
}

function switchLang_ukr(){
	window.location=engLink;
}

function openWin(URL, Width, Height)
{

aWindow=window.open(URL,"PopUp","width="+Width+",height="+Height+",resizable=yes,scrollbars=yes,left=100,top=60");
	
	aWindow.resizeTo(Width, Height);
	
	aWindow.focus();
	if(aWindow.opener == null)
	{
		aWindow.opener = window;
		aWindow.opener.name = "opener";
	}

}

//Function for Dynamic Pop Ups
function DynaPop(level,szImgSource,szDescription,nCopyrightNum)
{
	popSource = szImgSource;
	popDescription = szDescription;
	popCopyright = nCopyrightNum;

	if (popDescription == "description")
		popDescription = "";
	
	width=575;
	height=600;

	//If resolution is 640x480
	if(screen.width < 800)
		height=350;
	//If resolution is 800x600
	else if(screen.width < 1024)
		height=500;

	if(level==0)
		openWin("dynapop.htm",width,height);
	
	else if(level==1)
		openWin("../dynapop.htm",width,height)

	else if(level==2)
		openWin("../../../eng/dynapop.htm",width,height)

	else if(level==3)
		openWin("../../../fr/dynapop.htm",width,height)
}


