<!--
//Sliding Quicklinks Code
linksOpen = false;
inProgress = false;
currentPosition = 562;

function showLinks()
{
	if(inProgress == false)
	{
		inProgress = true;
		
		if(linksOpen ==false){
			openLinks();}
			
		else{
			closeLinks();}
	}
}

function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  } 
  //alert('Query Variable ' + variable + ' not found');
}

function openLinks(){

if(document.all){

	if(document.all["divQuicklinks"].style.left != "400px"){
		currentPosition = currentPosition - 4;
		
		if(currentPosition < 400)
			currentPosition = 400;
			
		document.all["divQuicklinks"].style.left = currentPosition + "px";
		setTimeout("openLinks()",1);
	}
	else{
		inProgress = false;
		linksOpen = true;
	}
}

else{
	if(document.getElementById("divQuicklinks").style.left != "400px"){
		currentPosition = currentPosition - 8;
		
		if(currentPosition < 400)
			currentPosition = 400;
			
		document.getElementById("divQuicklinks").style.left = currentPosition + "px";
		setTimeout("openLinks()",1);
	}
	else{
		inProgress = false;
		linksOpen = true;
	}
}
}

function closeLinks(){

if(document.all){
	if(document.all["divQuicklinks"].style.left != "562px"){
		currentPosition = currentPosition + 4;
		
		if(currentPosition > 562)
			currentPosition = 562;
			
		document.all["divQuicklinks"].style.left = currentPosition + "px";
		setTimeout("closeLinks()",1);
	}
	else
	{
		inProgress = false;
		linksOpen = false;
	}
}
else{
	if(document.getElementById("divQuicklinks").style.left != "562px"){
		currentPosition = currentPosition + 8;
		
		if(currentPosition > 562)
			currentPosition = 562;
			
		document.getElementById("divQuicklinks").style.left = currentPosition + "px";
		setTimeout("closeLinks()",1);
	}
	else{
		inProgress = false;
		linksOpen = false;
	}
}
}

function positionDiv()
{
  if(br!= 'netscape4')
  {
	if(document.all)
	{
		leftMargin = (document.body.clientWidth - 760)/2;
		divPosition = leftMargin + 190;
		buttonPosition = leftMargin + 595;
		
		if(divPosition < 200)
			divPosition = 200;
		if(buttonPosition < 595)
			buttonPosition=595;
	
		document.all["contentDiv"].style.left = divPosition + "px";
		document.all["contentDiv"].style.top = "215px";
		
		document.all["showLinks"].style.left = buttonPosition + "px";
		document.all["showLinks"].style.top = "185px";
		
		document.all["divSpacer"].style.visibility = "visible";
		document.all["divQuicklinks"].style.display = "";
		document.all["showLinks"].style.display = "";
		document.all["divQuicklinks"].style.visibility = "visible";
		document.all["contentDiv"].style.visibility = "visible";
	}

	else
	{
		leftMargin = (window.innerWidth - 760)/2;
		divPosition = leftMargin + 190;
		buttonPosition = leftMargin + 585;
		
		if(divPosition < 200)
			divPosition = 200;
		if(buttonPosition < 585)
			buttonPosition=585;
		
		document.getElementById("contentDiv").style.left = divPosition + "px";
		document.getElementById("contentDiv").style.top = "215px";
		
		document.getElementById("showLinks").style.left = buttonPosition + "px";
		document.getElementById("showLinks").style.top = "185px";
		
		document.getElementById("divSpacer").style.visibility = "visible";
		document.getElementById("divQuicklinks").style.visibility = "visible";
		document.getElementById("divQuicklinks").style.display = "";
		document.getElementById("showLinks").style.display = "";
		document.getElementById("contentDiv").style.visibility = "visible";
	}		
  }
}

//Create French and English Links
ukrLink = window.location.href.replace('/eng/','/ukr/');

engLink = window.location.href.replace('/ukr/','/eng/');

//Determine Browser Version
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
br="";
if ((bName=="Netscape" && bVer >=3 && bVer < 5)) 
	br = "netscape4";
else if ((bName=="Netscape" && bVer >=5))
	br = "netscape6";
else
{
	if(bName == "Microsoft Internet Explorer" && bVer >=4)
		br="ie"
	else
		br = "unsupported";
}


//function that swaps pictures
function Switch(id,name)
{
if (document.images){
    if (document.images[id]){document.images[id].src=eval(name+".src");
    } else {
      if (document.layers){
        for (i=0; i < document.layers.length; i++) {
          if (document.layers[i].document.images[id]) {
          document.layers[i].document.images[id].src=eval(name+".src");
          break;
          }
        }
      }
    }
  }
}

// JavaScript Document
function popIt(url){
  window.open (url, "thisUrl" ,"width=450,height=350,scrollbars=yes,toolbar=no,resizable=yes,menubar=no,status=yes");

 }



//Function to open new windows
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)
}

//This is so NetSCape 4 doesn't sketch out when resized
/*function WM_netscapeCssFix()
{
    // This part was inspired by Matthew_Baird@wayfarer.com
    // It gets around another unfortunate bug whereby Netscape
    // fires a resize event when the scrollbars pop up. This
    // checks to make sure that the window's available size
    // has actually changed.

    if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth ||             document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight)
        {
        document.location = document.location;
        }
}

function WM_netscapeCssFixCheckIn()
{
    // This function checks to make sure the version of Netscape
    // in use contains the bug; if so, it records the window's
    // width and height and sets all resize events to be handled
    // by the WM_netscapeCssFix() function.

    if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4))
        {
        if (typeof document.WM == 'undefined')
            {
            document.WM = new Object;
            }

        if (typeof document.WM.WM_scaleFont == 'undefined')
            {
            document.WM.WM_netscapeCssFix = new Object;
            document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;
            document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;
            }

        window.onresize = WM_netscapeCssFix;
        }
}

WM_netscapeCssFixCheckIn()*/


