
// Sourcecode zum Beispiel : Zufallsbild + text 01 (06.09.2008)


var Anzahl = 8;     // Anzahl der Bilder

var ZufallJetzt = new Date()
var ZufallsZahl = ZufallJetzt.getSeconds() % (Anzahl);

// Zuweisungen abhngig von der Zufallszahl

if (ZufallsZahl==0) {
GrafikUrl = "_img/92001wf_kuenstler_120x160.jpg";
UnterTitel=""
LinkUrl = "01_akademiezeit.html";
}

if (ZufallsZahl==1) {
GrafikUrl = "_img/92002wf_clownere_80x100.jpg";
UnterTitel=""
LinkUrl = "01_akademiezeit.html";
}

if (ZufallsZahl==2) {
GrafikUrl = "_img/92003wf_kleine-k_140x170.jpg";
UnterTitel=""
LinkUrl = "01_akademiezeit.html";
}

if (ZufallsZahl==3) {
GrafikUrl = "_img/99035wf_--15_17x24.jpg";
UnterTitel=""
LinkUrl = "01_akademiezeit.html";
}

if (ZufallsZahl==4) {
GrafikUrl = "_img/96015wf_der-zwis_70x100.jpg";
UnterTitel=""
LinkUrl = "01_akademiezeit.html";
}

if (ZufallsZahl==6) {
GrafikUrl = "_img/96016wf_zahnarzt_70x100.jpg";
UnterTitel=""
LinkUrl = "01_akademiezeit.html";
}

if (ZufallsZahl==5) {
GrafikUrl = "_img/99034wf_--14_25x25.jpg";
UnterTitel=""
LinkUrl = "01_akademiezeit.html";
}

if (ZufallsZahl==7) {
GrafikUrl = "_img/76f002wf_afgh_30x20.jpg";
UnterTitel=""
LinkUrl = "01_akademiezeit.html";
}


function Zufallsbild01() {
document.write("<div class=portalimg><a href='#' onClick=content('portalnav',1) ><img src='" + GrafikUrl+ "' width='900px' border='0' </a></div><br>")
return
}




// roll over funktion //          

function movein(which,html){
if (document.getElementById)
document.getElementById("boxdescription").innerHTML=html
else
boxdescription.innerHTML=html
}

function moveout(which){
if (document.getElementById)
document.getElementById("boxdescription").innerHTML='&nbsp;'
else
boxdescription.innerHTML='&nbsp;'
}

function movein2(which,html){
if (document.getElementById)
document.getElementById("boxdescription2").innerHTML=html
else
boxdescription2.innerHTML=html
}

function moveout2(which){
if (document.getElementById)
document.getElementById("boxdescription2").innerHTML='&nbsp;'
else
boxdescription.innerHTML='&nbsp;'
}

function movein3(which,html){
if (document.getElementById)
document.getElementById("boxdescription3").innerHTML=html
else
boxdescription3.innerHTML=html
}



// layer ein aus                    
//   

function content(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)    //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)      //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)       // IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}


// tool tipp                   
//   
wmtt = null;
document.onmousemove = updateWMTT;
function updateWMTT(e) {
  if (wmtt != null) {
    x = (document.all) ? window.event.x + wmtt.offsetParent.scrollLeft : e.pageX;
    y = (document.all) ? window.event.y + wmtt.offsetParent.scrollTop  : e.pageY;
    wmtt.style.left = (x + 0) + "px";
    wmtt.style.top   = (y + 20) + "px";
  }
}
function showWMTT(id) {
  wmtt = document.getElementById(id);
  wmtt.style.display = "block"
}
function hideWMTT() {
  wmtt.style.display = "none";
}

//  



