var styleSwitch = [], i;
  styleSwitch['info'] = '19b530';
  styleSwitch['id'] = '0cc0cf';
  styleSwitch['print'] = 'f1055a';
  styleSwitch['web'] = 'fc8a03';
  styleSwitch['contact'] = '630865';
  styleSwitch['travel'] = 'ebee3d';

var logoSwitch = [];
  logoSwitch['info'] = 'Green';
  logoSwitch['id'] = 'Blue';
  logoSwitch['print'] = 'Pink';
  logoSwitch['web'] = 'Orange';
  logoSwitch['contact'] = 'Purple';
  logoSwitch['travel'] = 'Yellow';

function _handleClick(to){
  item = to.replace('menu-',''), startNode = document.getElementsByTagName('ul').item(0);
  document.images['logomauricekappelhof'].src = "http://lodge.maurice-k.com/Site/Content/IM/Lay/Logo-"+logoSwitch[item]+".jpg";
  document.getElementsByTagName('h1')[0].style.color = "#"+styleSwitch[item];
  for(j=0; j<startNode.childNodes.length; j++){
    var node = startNode.childNodes.item(j);
    if(node.nodeName == "LI"){
      document.getElementById(node.getAttribute("id").replace("menu-","")).style.display = "none";
      document.getElementById(item).style.display = "block";
    }
  }
}

function _handleLinks()  {
  var link, i = 0, links = document.getElementsByTagName('a');
  for(i; i<links.length; i++)  {
    link = links[i];
    if(link.getAttribute("rel") == "external")  {
      link.onclick = function()  {
        window.open(this.getAttribute('href'));
        return false;
      }
    }
  }
}

window.onload = _handleLinks;
