/* Markierungsrahmen um Links beim IE unterdrücken */
function deblur(pic)
        { if (document.all) pic.blur(); }

/* Popup's */
function PopUp(name, ziel)
        {

        if (window.name=="Anmeldung") {alert("Sie erhalten in Kürze Ihr Login.\nDann steht Ihnen diese Funktion zur Verfügung.");return}
        if (window.name=="verweigert") {alert("Der Zugang wurde deaktiviert.");return}
        var kur=window.name;
        if (kur.indexOf("ku")>-1)
                {
        kur=kur.split("ku_")[1];
        ziel+="&ku="+kur;
        }
        F=window.open(ziel,"Popup","height=600,width=780,scrollbars=1,location=0,status=1");
        F.moveTo(10,10)
        setTimeout("F.focus()",50);
        }


/* Bilderwechsel */
function Bildwechsel(Bildnr,Bildobjekt) {window.document.images[Bildnr].src = Bildobjekt.src;}

/* Tooltip */
window.name = "Ja";
//if (window.name!="Nein") window.name="Halt";

function browsertyp()
{
if (!document.images) return "IE3";
else if (document.layers) return "NN4";
else if (document.all) if (document.getElementById) return "IE5";
else return "IE4";
else if (document.getElementById) return "NN6";
else return "NN3";
}

Browser=browsertyp();

function Tipps(text,Verweis)
{
if(Browser=="NN3" || Browser=="IE3")    return;
if (window.name=="Nein" || window.name=="Halt") return;
if (Browser=="IE4" || Browser=="IE5")
{
document.all.Tip.innerHTML=text;
if( Browser=="IE5") document.all.Tip.style.width="auto";

document.all.Tip.style.left = document.body.offsetWidth/2 - 190;


/*
document.all.Tip.style.left = window.event.clientX
   + document.body.scrollLeft
   - document.all.Tip.offsetWidth/2;
*/

/*
if (parseInt(document.all.Tip.style.left)-document.body.scrollLeft<0) document.all.Tip.style.left=document.body.scrollLeft;


if (parseInt(document.all.Tip.style.left)+document.all.Tip.offsetWidth>document.body.offsetWidth-20)
document.all.Tip.style.left=document.body.offsetWidth-document.all.Tip.offsetWidth-20;
*/

document.all.Tip.style.top  = Verweis.offsetTop+Verweis.offsetParent.offsetTop+Verweis.offsetParent.offsetParent.offsetTop+Verweis.offsetParent.offsetParent.offsetParent.offsetTop+Verweis.offsetParent.offsetParent.offsetParent.offsetParent.offsetTop - 15;


/*
document.all.Tip.style.top  = window.event.clientY-window.event.y
   + document.body.scrollTop
   - document.all.Tip.offsetHeight
   - 15;
*/

if (parseInt(document.all.Tip.style.top)-document.body.scrollTop<0) document.all.Tip.style.top=document.body.scrollTop;

document.all.Tip.style.visibility="visible";
}
else

if ( Browser=="NN4")
{
text="<div class=\"tipp\">"+text+"</div>"
document.Tip.document.open();
document.Tip.document.write(text);
document.Tip.document.close();

//document.Tip.bgColor = "fffff0";
document.Tip.left = Verweis.x - (document.Tip.clip.width/2) + 130;
document.Tip.top  = Verweis.y - document.Tip.clip.height + 70;

//self.pageXOffset wieviel wurde nach rechts gescrollt

//if (document.Tip.left-self.pageXOffset<0) document.Tip.left=self.pageXOffset;
//if (document.Tip.left+document.Tip.clip.width>window.innerWidth-20) document.Tip.left=window.innerWidth-document.Tip.clip.width-20;

//self.pageYOffset wieviel wurde nach unten gescrollt

//if (document.Tip.top-self.pageYOffset<0) document.Tip.top=self.pageYOffset;
document.Tip.visibility="visible";
}
else
{

document.getElementById('Tip').innerHTML=text;
document.getElementById('Tip').style.width="auto";

document.getElementById('Tip').style.left =Verweis.offsetLeft- document.getElementById('Tip').offsetWidth/2;
document.getElementById('Tip').style.top =Verweis.offsetTop- document.getElementById('Tip').offsetHeight;

//self.pageXOffset wieviel wurde nach rechts gescrollt

if (parseInt(document.getElementById('Tip').style.left) -self.pageXOffset<0) document.getElementById('Tip').style.left=self.pageXOffset;
if (parseInt(document.getElementById('Tip').style.left)+document.getElementById('Tip').offsetWidth>window.innerWidth-20) document.getElementById('Tip').style.left=window.innerWidth-document.getElementById('Tip').offsetWidth-20;

//self.pageYOffset wieviel wurde nach unten gescrollt

if (parseInt(document.getElementById('Tip').style.top)-self.pageYOffset<0) document.getElementById('Tip').style.top=self.pageYOffset;
document.getElementById('Tip').style.visibility = "visible"; ;
}

}

function Ende()
{
if(Browser=="IE3" || Browser=="NN3") return;

if (Browser=="NN4")
document.Tip.visibility = "hidden";
else  if (Browser=="NN6")  document.getElementById('Tip').style.visibility = "hidden";
else  document.all.Tip.style.visibility = "hidden";
}

function anaus()
{
if (window.name != "Nein") { window.name = "Nein";}
else { window.name = "Ja";}
}

/* Markierungsrahmen um Links beim IE unterdrücken */
function deblur(pic)
        { if (document.all) pic.blur(); }

/* Popup's */
function PopUp(name, ziel)
        {

        if (window.name=="Anmeldung") {alert("Sie erhalten in Kürze Ihr Login.\nDann steht Ihnen diese Funktion zur Verfügung.");return}
        if (window.name=="verweigert") {alert("Der Zugang wurde deaktiviert.");return}
        var kur=window.name;
        if (kur.indexOf("ku")>-1)
                {
        kur=kur.split("ku_")[1];
        ziel+="&ku="+kur;
        }
        F=window.open(ziel,"Popup","height=600,width=780,scrollbars=1,location=0,status=1");
        F.moveTo(10,10)
        setTimeout("F.focus()",50);
        }


/* Bilderwechsel */
function Bildwechsel(Bildnr,Bildobjekt) {window.document.images[Bildnr].src = Bildobjekt.src;}

/* Tooltip */
window.name = "Ja";
//if (window.name!="Nein") window.name="Halt";

function browsertyp()
{
if (!document.images) return "IE3";
else if (document.layers) return "NN4";
else if (document.all) if (document.getElementById) return "IE5";
else return "IE4";
else if (document.getElementById) return "NN6";
else return "NN3";
}

Browser=browsertyp();

function Tipps(text,Verweis)
{
if(Browser=="NN3" || Browser=="IE3")    return;
if (window.name=="Nein" || window.name=="Halt") return;
if (Browser=="IE4" || Browser=="IE5")
{
document.all.Tip.innerHTML=text;
if( Browser=="IE5") document.all.Tip.style.width="auto";

document.all.Tip.style.left = document.body.offsetWidth/2 - 190;


/*
document.all.Tip.style.left = window.event.clientX
   + document.body.scrollLeft
   - document.all.Tip.offsetWidth/2;
*/

/*
if (parseInt(document.all.Tip.style.left)-document.body.scrollLeft<0) document.all.Tip.style.left=document.body.scrollLeft;


if (parseInt(document.all.Tip.style.left)+document.all.Tip.offsetWidth>document.body.offsetWidth-20)
document.all.Tip.style.left=document.body.offsetWidth-document.all.Tip.offsetWidth-20;
*/

document.all.Tip.style.top  = Verweis.offsetTop+Verweis.offsetParent.offsetTop+Verweis.offsetParent.offsetParent.offsetTop+Verweis.offsetParent.offsetParent.offsetParent.offsetTop+Verweis.offsetParent.offsetParent.offsetParent.offsetParent.offsetTop - 15;


/*
document.all.Tip.style.top  = window.event.clientY-window.event.y
   + document.body.scrollTop
   - document.all.Tip.offsetHeight
   - 15;
*/

if (parseInt(document.all.Tip.style.top)-document.body.scrollTop<0) document.all.Tip.style.top=document.body.scrollTop;

document.all.Tip.style.visibility="visible";
}
else

if ( Browser=="NN4")
{
text="<div class=\"tipp\">"+text+"</div>"
document.Tip.document.open();
document.Tip.document.write(text);
document.Tip.document.close();

//document.Tip.bgColor = "fffff0";
document.Tip.left = Verweis.x - (document.Tip.clip.width/2) + 130;
document.Tip.top  = Verweis.y - document.Tip.clip.height + 70;

//self.pageXOffset wieviel wurde nach rechts gescrollt

//if (document.Tip.left-self.pageXOffset<0) document.Tip.left=self.pageXOffset;
//if (document.Tip.left+document.Tip.clip.width>window.innerWidth-20) document.Tip.left=window.innerWidth-document.Tip.clip.width-20;

//self.pageYOffset wieviel wurde nach unten gescrollt

//if (document.Tip.top-self.pageYOffset<0) document.Tip.top=self.pageYOffset;
document.Tip.visibility="visible";
}
else
{

document.getElementById('Tip').innerHTML=text;
document.getElementById('Tip').style.width="auto";

document.getElementById('Tip').style.left =Verweis.offsetLeft- document.getElementById('Tip').offsetWidth/2;
document.getElementById('Tip').style.top =Verweis.offsetTop- document.getElementById('Tip').offsetHeight;

//self.pageXOffset wieviel wurde nach rechts gescrollt

if (parseInt(document.getElementById('Tip').style.left) -self.pageXOffset<0) document.getElementById('Tip').style.left=self.pageXOffset;
if (parseInt(document.getElementById('Tip').style.left)+document.getElementById('Tip').offsetWidth>window.innerWidth-20) document.getElementById('Tip').style.left=window.innerWidth-document.getElementById('Tip').offsetWidth-20;

//self.pageYOffset wieviel wurde nach unten gescrollt

if (parseInt(document.getElementById('Tip').style.top)-self.pageYOffset<0) document.getElementById('Tip').style.top=self.pageYOffset;
document.getElementById('Tip').style.visibility = "visible"; ;
}

}

function Ende()
{
if(Browser=="IE3" || Browser=="NN3") return;

if (Browser=="NN4")
document.Tip.visibility = "hidden";
else  if (Browser=="NN6")  document.getElementById('Tip').style.visibility = "hidden";
else  document.all.Tip.style.visibility = "hidden";
}

function anaus()
{
if (window.name != "Nein") { window.name = "Nein";}
else { window.name = "Ja";}
}

