function getAdr(prefix, postfix, text) {
        document.write((text ? text.replace(/&quot;/g, '"').replace(/%EMAIL%/, prefix + '@' + postfix) : prefix + '@' + postfix));
}

function swapImage(element, newimage) {
	var oldsrc = element.src
	element.src = newimage

	if (!element.onmouseout)
		element.onmouseout = function (event) { backbone(active_backbone); swapImage(this, oldsrc); };
}

function popup(url, typ, para1, width, height) {
	attrib = "";
	Y = (screen.height - width) / 2;
	X = (screen.width - height) / 2;
	X = Math.round(X);
	Y = Math.round(Y);
	if (para1 == 'CENTER') attrib += 'height=' + height + ',width=' + width + ',top=' + Y + ',left=' + X;
	if (typ == 'TYP1') attrib += ",scrollbars=no";
	if (typ == 'TYP2') attrib += ",scrollbars=yes";
	if (typ == 'TYP3') attrib += ",scrollbars=yes,menubar=yes";
	x = Math.random();
	fenster = window.open(url, 'win', attrib);
	return false;
}

function backbone(img) {
	var obj = document.getElementById('nav_backbone')
	if(obj)
		obj.src=img
}


/* BILDERGALERIE */

var active_ma = 0;

function ChangeActiveMA(id)
{
	for(i=0; i<Coworkers.length; i++) {
		document.getElementById('bild_'+Coworkers[i]).style.display='none'
		document.getElementById('bild_nav_'+Coworkers[i]).style.border='2px solid #ebebeb'
	}

	document.getElementById('bild_'+Coworkers[id]).style.display='block'
	document.getElementById('bild_nav_'+Coworkers[id]).style.border='2px solid #658a00'
}
