
var windowprops = "";
var args = "";
var pop = null;

if (window != top) top.location.href = location.href;

function openwindow(str_URL, tag, w, h) {
 popdown();
 args = "width="+w+",height="+h+",left= 90,top=30,location=0,toolbar=0,progressbar=0,buttonbar=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=0";
 pop = window.open(str_URL, tag, args);
// pop.focus();
}

function popdown() {
  if (pop && !pop.closed) pop.close();
}

function popup(obj,w,h) {
  var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
  if (!url) return true;
  w = (w) ? w += 20 : 150;  // 150px*150px is the default size
  h = (h) ? h += 25 : 150;
  var args = 'width='+w+',height='+h+',resizable';
  popdown();
  pop = window.open(url,'',args);
  return (pop) ? false : true;
}

window.onunload = popdown;
window.onfocus = popdown;

function showhide_description(das){
	// showhide_description() dient für die Ausgabe von Sprechblasen bei Bildern.
	if(document.getElementById(das).style.display=="none") {
		document.getElementById(das).style.display="inline";
	} else {
		document.getElementById(das).style.display="none";
	}
}

function cookie_verfall(tage, stunden)
  {
    var jetzt = new Date();
    var zeit = jetzt.getTime();
    var zukunft = zeit + (((tage * 24) + stunden)
                        * 3600 * 1000);
    jetzt.setTime(zukunft);
    var haltbarkeit = jetzt.toUTCString();
    return haltbarkeit;
  }

function einAus(divName)
{
	<!--var expires = new Date(2010, 12, 12); -->
	if(divName.style.display == 'none')
	{
		<!--document.cookie = 'showS=block; expires=' + expires.toGMTString(); -->
		document.cookie = "showS=block; expires="  + cookie_verfall(0, 1);
		divName.style.display = 'block';
	}
	else
	{
		<!--document.cookie = 'showS=none; expires=' + expires.toGMTString(); -->
		document.cookie = "showS=none; expires="  + cookie_verfall(0, 1);
		divName.style.display = 'none';
	}
}

