if(navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
	
	var version = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '\\1');

}

var tempX;
var tempY;
function getObj(layer)
{
	this.obj = document.getElementById(layer);
	this.style = document.getElementById(layer).style;
	
	tempX = findPosX(this.obj);
	tempY = findPosY(this.obj);
}

function findPosX(obj)
{
	var curleft = 0;
	if (document.getElementById || document.all)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (document.layers)
		curleft += obj.pageX;
	return curleft;
}


function findPosY(obj)
{
	var curtop = 0;
	if (document.getElementById || document.all)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (document.layers)
		curtop += obj.pageY;
	return curtop;
}

function chkMouseOver()
{
	if((mouseX > (tempX + 5) && mouseX < (tempX + 167)) && (mouseY > (tempY + 5) && mouseY < (tempY + 76))) return true;
	else return false;
}

// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false;

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE);

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var mouseX = 0;
var mouseY = 0;

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    mouseX = event.clientX + document.body.scrollLeft;
    mouseY = event.clientY + document.body.scrollTop;
  } else {  // grab the x-y pos.s if browser is NS
    mouseX = e.pageX;
    mouseY = e.pageY;
  }  
  // catch possible negative values in NS4
  if (mouseX < 0) mouseX = 0;
  if (mouseY < 0) mouseY = 0;
  return true;
}

function addAttribute(node, attrName, attrValue)
{
	var temp = document.createAttribute(attrName);
	temp.nodeValue = attrValue;
	node.setAttributeNode(temp);
}

/*
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("langNav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}

window.onload=startList;
*/


function startList()
{
	document.getElementById('langNav').style.display = 'block';
}

function closeList()
{
	document.getElementById('langNav').style.display = 'none';
}
