
function butOn(button, pos)
{ 
	if (document.images && button.length > 0) 	
	{
		document.images[button].src = '/images/but_' + button + '_on.gif'; 		
	}
} 

function butOff(button)
{ 
	if (document.images) 
	{
		 document.images[button].src = '/images/but_' + button + '_off.gif'; 
	}
}





function openWin(url,width,height,scrollbars)
	{
		var posx = screen.width/2 - width/2;  
		var posy = screen.height/2 - height/2;
		var propsZ=(document.all)?('top=' + posy + ',left=' + posx):('screenX=' + posx + ',screenY=' + posy);
		var props = 'width=' + width + ',height=' + height + ',scrollbars=' +scrollbars + ',' + propsZ;
		
		window.open(url, "", props);
	}	
	
function makeAdr(suffix, domain, receiver)
{
	location.href = "mailto:" + receiver + "@" + domain + "." + suffix;
}

function writeAdr(suffix, domain, receiver)
{
	document.write(receiver + "@" + domain + "." + suffix);
}

function  makeNaviItem( file, name )
{
	suffix = location.href.indexOf( file ) != -1 ? "aktiv" : "";
	
	return '<a href="/' + file + '" class="navi' + suffix + '" onMouseOver="butOn(\'' + name + '\')" onMouseOut="butOff(\'' + name + '\', \'' + file + '\')"><img src="/images/pfeil' + suffix + '.gif" width="8" height="14" border="0" align="absmiddle" name="' + name + '"> ' + name + '</a>';
}
