function txtexpand(div, obj, type){
  var e = document.getElementById(div);
  
  if(!e)return true;
  
  if(e.style.display == "none"){
    e.style.display="block"
    obj.style.backgroundPosition="bottom left";
    if (type == 1) {
        obj.innerHTML = 'hide pages';
    }
    else {
        obj.innerHTML = 'hide dates';
    }
  } else {
    e.style.display="none"
    obj.style.backgroundPosition="top left";
    if (type == 1) {
        obj.innerHTML = 'show more pages';
    }
    else {
        obj.innerHTML = 'show more dates';
    }
  }
  
  
  return false;
}
function setbutton(tid, ttid, sid, lang) {
    var anmbutton = document.getElementById('tbutton_'+tid);
    anmbutton.href = location.pathname + '?sid='+sid+'&tid='+ttid+'&lang='+lang;
    //alert(location.pathname);
    //alert(ttid);
}

function verstecke() {
    var allElems = document.getElementsByTagName('*');
    for (var i = 0; i < allElems.length; i++) {
        var thisElem = allElems[i];
        if (thisElem.className && thisElem.className == 'jshide') {
            //alert('h')
            thisElem.style.display = 'none';
            //thisElem.style.backgroundColor = 'red';
            
        }
    }
}
