// spezielle ein/ausblend funktionen für lrs architekten -------------------------
groupArray = new Array();
groupActiv = 4674;
function projetsOn(arrayId){
    projetsOf(groupActiv);
    document.getElementById("n"+groupActiv).style.color = "#000000";
    for(i=0; i < groupArray[arrayId].length; i++){
        who = groupArray[arrayId][i];
        document.getElementById(who).style.visibility = "hidden";
    }
    groupActiv = arrayId;
    document.getElementById("n"+groupActiv).style.color = "#BA0000";
}
function projetsOf(arrayId){
    for(i=0; i < groupArray[arrayId].length; i++){
        who = groupArray[arrayId][i];
        document.getElementById(who).style.visibility = "visible";
    }
}
function projetOn(who){
    document.getElementById(who).style.visibility = "hidden";
    document.getElementById("txt"+who).style.visibility = "visible";
}

function projetOf(who){
    deactivate = "yes";
    for(i=0; i < groupArray[groupActiv].length; i++){
        if(groupArray[groupActiv][i] == who){
            deactivate = "nono";
        }
    }
    if(deactivate == "yes")
    {
        document.getElementById(who).style.visibility = "visible";
    }
    document.getElementById("txt"+who).style.visibility = "hidden";
}
// ----------------------------------------------------------------------------------



// ----------------------------------------------------------------------------------

// element ein / ausblenden ------------------------------
function imgon(who){
	document.getElementById(who).style.visibility = "visible";
}
function imgof(who){
	document.getElementById(who).style.visibility = "hidden";
}

/* safemail func */
function safemail(name, domain, display, linkclass) {
	displayed=(display.length)<1 ? name+"@"+domain : display;
	document.write('<a class="'+linkclass+'" href="mailto:' + name + '@' + domain + '">' + displayed + '</a>');
}



