function anzeigen(id){
  document.getElementById(id).style.visibility='visible';
}
function verstecken(id){
 document.getElementById(id).style.visibility='hidden';
}
function display(id){
  if(document.getElementById(id).style.visibility=='hidden') document.getElementById(id).style.visibility='visible';
  else document.getElementById(id).style.visibility='hidden';
}
function displayMensa(){
	document.getElementById('mensabg').style.display='block';
	document.getElementById('mensa').style.display='block';
	window.document['mensa-img'].src="http://images.giessen-server.de/img/mensa_speisenangebot/mensa-giessen.gif"; 
}
function hiddenMensa(){
	  document.getElementById('mensabg').style.display='none';
	  document.getElementById('mensa').style.display='none';  
}

function displayBox(img){
	document.getElementById('boxbg').style.display='block';
	document.getElementById('box').style.display='block';
	window.document['box-img'].src="http://images.giessen-server.de/img/box/"+img+".jpg"; 
}
function hiddenBox(){
	  document.getElementById('boxbg').style.display='none';
	  document.getElementById('box').style.display='none';  
}


function aL(text) {
	ajaxLink(text)
}
function ajaxLink(text) {
	document.write(text);
}

function switchEventImg(img,text) {
	window.document['event-calendar-img'].src="http://images.giessen-server.de/img/events/"+img;
	document.getElementById('event-calendar-text').innerHTML=text;
}

function onLoadSlider(time) {
setTimeout("$('.image-slider').BlindDown(2000);",time);
}

function bookmarkenThisPage(title,url) {
     if (window.sidebar) {
              window.sidebar.addPanel(document.title, location.href,"");
        } else if( document.all ) {
                window.external.AddFavorite(location.href, document.title);
        } else {
               alert("Entschuldigen Sie, der von Ihnen benutzte Browser untersttzt diese Funktion leider nicht.");
        }
}

function openWindow(theURL,winName,x,y) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		window.open(theURL, winName, 'width=' + x + ',height=' + y + ',toolbar=no,status=no,menubar=no,scrollbars=no');
	} else {
		window.open(theURL,winName,'width=' + x + ',height=' + y + ',toolbar=no,status=no,menubar=no,scrollbars=no');
	}
}

function soundplay(url)
{
	window.open ('soundplay.php?s=' + url, 'Sound', 'width=302, height=50, left=' + ( (
	screen.width - 800 ) / 2 ) + ', top=' + ( ( screen.height - 500 ) / 2 )
	+ ', scrollbars=no, menubar=no, location=no, resizable=no')
}

