/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
var openDiv=0;
function openSlider(ID)
{
    var myDoc = document.getElementById(ID)
    if( openDiv!=0){
        setDisplayNrNone();
    } 
    myDoc.style.display='block';
    $(ID).morph('width:716px;'); 
    return false;
}

function closeSlider(ID)
{
    $(ID).morph('width:0px;'); 
    window.setTimeout("setDisplayNone('"+ID+"')", 1000);
  
   
  
}

function setDisplayNone(ID)
{
    document.getElementById(ID).style.display='none';
}

function setDisplayBlock(Nr)
{
    document.getElementById("veranstaltungNr"+Nr).style.display='block';
    openDiv=Nr;
}
function setDisplayNrNone()
{
    if(openDiv!=0) {
        document.getElementById("veranstaltungNr"+openDiv).style.display='none';
        openDiv=0;
    }
}

