function pop (url) {
	page = window.open(url, "popup", "width=700,height=500,top=50,left=50,status=yes,scrollbars=yes,resizable=yes");
	page.focus();
}

function popupcentered(filename,PopUpWidth,PopUpHeight) {
  swidth = screen.availWidth;
  shoehe = screen.availHeight;
  x = (swidth-PopUpWidth)/2;
  y = 100;
  properties="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+PopUpWidth+",height="+PopUpHeight+",menubar=no,toolbar=no";
  fenster=window.open(filename,"Highlights",properties);
  fenster.focus();
}

function hide(read) {
	document.getElementById(read).style.display='none';
}

function show() {
	document.write("<a id=\"read\" href=\"javascript:info('addition','read');\" onClick:info();\">weiterlesen <img src=\"img/pfeil.gif\" alt=\"\"></a>");
}

function info(addition,read) {
	document.getElementById(addition).style.display='block';
	location.href = location.href.substring(0,location.href.length - location.hash.length)+"#"+"content";
	hide(read);
}

function showhide(name) {
	var display = document.getElementById(name).style.display;
	if (display == 'block') {
		document.getElementById(name).style.display='none';
		location.href = location.href.substring(0,location.href.length - location.hash.length)+"#"+"copy";
	}
	else {
		document.getElementById(name).style.display='block';
		location.href = location.href.substring(0,location.href.length - location.hash.length)+"#"+"copy";
	}
}

function showthishidethat(name) {
	var display = document.getElementById(name).style.display;
	if (display == 'block') {
		document.getElementById(name).style.display='none';		
		location.href = location.href.substring(0,location.href.length - location.hash.length)+"#"+"content";
	}
	else {
		document.getElementById(name).style.display='block';
		location.href = location.href.substring(0,location.href.length - location.hash.length)+"#"+"content";
	}
}

function invite() {
	document.write("<p><a id=\"invite\" href=\"javascript:showthishidethat('exhibition');\" onClick:showthishidethat();\">Ausstellung <span>00.00.00 - 00.00.00</span></a></p>");
}

function map() {
	document.write("<p><a id=\"read\" href=\"javascript:showhide('f-map');\" onClick:showhide();\">Dreifaltigkeitsplatz 1</a> (neben Viktualienmarkt)<br>80331 M&uuml;nchen</p>");
}

function date() {
	document.write("<p><a id=\"read\" href=\"javascript:showhide('f-date');\" onClick:showhide();\">und nach Vereinbarung</a></p>");
}


