

function popup(url) {
  window.open(url, 'eteaching', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=300,height=300');
}

function glossar_remote (seite) {
     if ( self.popup_view  ) { 
        window.opener.parent.location.href = seite;
        window.focus();
        return false;
     } else {
        return true;
     }

}


/**
  Start - Social Bookmark Tooltip 
**/

function setOpacity( value ) {
 document.getElementById("styled_popup").style.opacity = value / 8;
 document.getElementById("styled_popup").style.filter = 'alpha(opacity=' + value * 8 + ')';
}

function fadeInMyPopup() {
 for( var i = 0 ; i <= 100 ; i++ )
   setTimeout( 'setOpacity(' + (i / 10) + ')' , 8 * i );
}

function fadeOutMyPopup() {
 for( var i = 0 ; i <= 100 ; i++ ) {
   setTimeout( 'setOpacity(' + (10 - i / 10) + ')' , 8 * i );
 }

 setTimeout('closeMyPopup()', 1000 );
}


function closeMyPopup() {
 document.getElementById("styled_popup").style.display = "none"
}

function fireMyPopup() {
 setOpacity( 0 );
 document.getElementById("styled_popup").style.display = "block";
 fadeInMyPopup();
}

function an(nummer) {
 document.getElementsByName('element')[nummer].style.display = 'inline';
}

function aus(nummer){
 document.getElementsByName('element')[nummer].style.display = 'none';
}

function bookmark() {
    if (window.sidebar){
        window.sidebar.addPanel(window.location.href,'');
    }else {
         window.external.addFavorite(window.location.href,'');
          }
}

function addNet(url,titel){
    if( (typeof window.sidebar=="object") && (typeof window.sidebar.addPanel=="function") ) {

        window.sidebar.addPanel(titel,url,"");
    }else{
       alert("Sie nutzen eine veraltete Netscape Version!\nLesezeichen hinzufügen ist nicht möglich!");
     }
}



function lesezeichen(){
    var url=window.location.href,t=document.title,ap=navigator.appName;
    if(ap=="Microsoft Internet Explorer"){
        window.external.AddFavorite(url,t);
    }else{
        if(ap=="Netscape"){
            addNet(url,t);
        }else{
            alert("Mit ihrem Browser ist kein Lesezeichen über Javascript möglich.\nBitte legen Sie das Lesezeichnen manuell an.\nURL:"+url);
         };
     }
};


/** 
  Ende - Social Bookmark Tooltip
**/