function lcOff(z) {
  if (z!=null) {
    if (z.getAttribute('lcselected')!='1') {
      z.style.backgroundImage = "url(/img/flagbg_off.png)";
      z.style.backgroundRepeat = "no-repeat";
    }
  }
}

function lcOver(z) {
  if (z!=null) {
    if (z.getAttribute('lcselected')!='1') {
      z.style.backgroundImage = "url(/img/flagbg_over.png)";
      z.style.backgroundRepeat = "no-repeat";
    }
  }
}

function lcClick(z) {
  var children = document.getElementById('langcontainer').childNodes;
  for (var i=children.length-1 ; i>=0 ; i--) {
    children[i].setAttribute('lcselected',0);     
    children[i].style.backgroundImage = "url(/img/flagbg_off.png)";
    children[i].style.backgroundRepeat = "no-repeat";
  }

  if (z!=null) {
    z.setAttribute('lcselected',1);
    z.style.backgroundImage = "url(/img/flagbg_on.png)";
      z.style.backgroundRepeat = "no-repeat";
  }

}

