function switchLanguage() {

    var location = top.document.location.href;
	var end = location.length;
	if (location.indexOf("#") > 0) end = location.indexOf("#");
    if (location.indexOf("_e.") > 0)
      location = location.substring(0,location.indexOf("_e."))+"_c."+location.substring(location.indexOf("_e.")+3,end);
    else if (location.indexOf("_c.") > 0)
      location = location.substring(0,location.indexOf("_c."))+"_e."+location.substring(location.indexOf("_c.")+3,end);
    top.document.location.href = location;

}

/*
 * For menu in IE
 * for buttons: 
 		onmouseover = showMenu(menuName)
		onmouseout = waitMenu(menuName)
    for div
		onmouseover = clearWait()
		onmouseout = waitMenu(menuName)
 *
 *
 *
 */
var menuTimer=null;

function showMenu(menuName) {
  hideAllMenu();
  if (menuTimer)  clearTimeout(menuTimer);
  divObj = document.getElementById(menuName);
  if(divObj) divObj.className='activeDiv';
}

function waitMenu(menuName) {
  menuTimer = setTimeout("hideMenu(\'"+menuName+"\');",1000);
}

function clearWait() {
  clearTimeout(menuTimer);
}

function hideMenu(menuName) {
  divObj = document.getElementById(menuName);
  if(divObj) divObj.className='inactiveDiv';    
}

function hideAllMenu() {
  var obj = document.getElementsByTagName("div");
  for (i=0;i<obj.length;i++) {
    if (obj[i].className=='activeDiv') obj[i].className='inactiveDiv';  
  }
}