function hideTours() {
  var hides = new Array();
  hides = getElementsByClass('infoHidden');
  for(var i = 0; i < hides.length; i++) {
    hides[i].style.display='none';
  }
}

function getElementsByClass( searchClass, domNode, tagName) { 
	if (domNode == null) domNode = document;
	if (tagName == null) tagName = '*';
	var el = new Array();
	var tags = domNode.getElementsByTagName(tagName);
	var tcl = " "+searchClass+" ";
	for(i=0,j=0; i<tags.length; i++) { 
		var test = " " + tags[i].className + " ";
		if (test.indexOf(tcl) != -1) 
			el[j++] = tags[i];
	} 
	return el;
}

function image (PICTURE) {
  NewWindow = window.open("/imagepopup/?picture="+PICTURE, "Picture", "width=100,height=100,resizable=no,location=no,menubar=no,scrollbars=no,dependent=yes");
  NewWindow.focus();
}

function gallery (ID) {
  NewWindow = window.open("http://www.wandern-im-harz.de/bildgalerie/"+ID+"/", "Gallery", "width=800,height=600,resizable=no,location=no,menubar=no,scrollbars=no,dependent=yes");
  NewWindow.focus();
}

function toggleTour (ID) {
 if (document.getElementById(ID).style.display=='block') {
  document.getElementById(ID).style.display='none';
 }else{
  document.getElementById(ID).style.display='block';
 }
}

function print (TRAILOVERVIEWID,TRAILID) {
  NewWindow = window.open("/drucken/"+TRAILOVERVIEWID+"/"+TRAILID+"/", "Drucken", "width=760,height=500,scrollbars=yes,toolbar=no,location=no,status=no,resizable=yes,dependent=yes");
  NewWindow.focus();
}
