<!--

// Bildinformationen
var imgURL	= "http://www.sofa-ms.de/myspace/sofa-ms.gif";
var imgWidth	= 80;	// Breite
var imgHeight = 63;	// Hoehe

// Intervall fuer Positionspruefung in ms
var posInterval= 15;

// Extraabstaende
var extraX	= 20;	// Abstand fuer vertikalen Rollbalken
var extraY	= 20;	// Abstand fuer horizontalen Rollbalken

// Position
var wPosition	= 4;	// 1: oben links, 2: oben rechts, 3: unten rechts, 4: unten links

// Zentrieren des Hintergrundbilds
function positionierung()
{
var	ntop;
var	nleft;

if(document.logo)
{
with(document.logo)
{
ntop	= window.pageYOffset;
nleft	= window.pageXOffset;
if(wPosition == 3 || wPosition == 4)
ntop	+= innerHeight - imgHeight;
if(wPosition == 2 || wPosition == 3)
nleft	+= innerWidth - imgWidth
if(scrollbars.visible)
{
if(wPosition == 3 || wPosition == 4)
ntop	-= extraX;
if(wPosition == 2 || wPosition == 3)
nleft	-= extraY;
}
if(ntop != top || nleft != left)
{
top	= ntop;
left	= nleft;
}
}
}
else if(logo)
{
with(logo)
{
ntop	= document.body.scrollTop;
nleft	= document.body.scrollLeft;
if(wPosition == 3 || wPosition == 4)
ntop	+= Number(document.body.clientHeight) - imgHeight;
if(wPosition == 2 || wPosition == 3)
nleft	+= Number(document.body.clientWidth) - imgWidth;
if(ntop != style.top || nleft != style.left)
{
style.top	= ntop;
style.left	= nleft;
}
}
}
else
return
}

// Initialisierung der Darstellung
function init()
{
if(document.logo)
with(document.logo.document)
{
open("text/html")
write("<A HREF=\"http://www.laut.fm/sofa-ms\" onClick=\"positionierung(); return true\">"+
"<IMG SRC=\"" + imgURL + "\" BORDER=0 WIDTH=" + imgWidth + " "+
"HEIGHT=" + imgHeight + " ALT=\"Seitenanfang\"></A>");
close()
width	= imgWidth;
height	= imgHeight;
}
else if(logo)
with(logo)
{
innerHTML	= "<A HREF=\"http://www.laut.fm/sofa-ms\" onClick=\"positionierung(); return true\"> "+
"<IMG SRC=\"" + imgURL + "\" BORDER=0 WIDTH=" + imgWidth + " "+
"HEIGHT=" + imgHeight + " ALT=\"Seitenanfang\"></A>"
style.width	= imgWidth;
style.height	= imgHeight;
}
else
return
positionierung()
if(document.logo)
document.logo.visibility	= "show";
else
logo.visibility	= "visible";
setInterval("positionierung()", posInterval)
}
// -->