// JavaScript Document modern = new Image(); modern.src = basisVerzeichnis+"/template/"+stylefolder+"/image/mainnavi/modern.jpg"; /* Standard-Grafik */ modern_h = new Image(); modern_h.src = basisVerzeichnis+"/template/"+stylefolder+"/image/mainnavi/modern_selected.jpg"; /* Highlight-Grafik */ klassisch = new Image(); klassisch.src = basisVerzeichnis+"/template/"+stylefolder+"/image/mainnavi/klassisch.jpg"; /* Standard-Grafik */ klassisch_h = new Image(); klassisch_h.src = basisVerzeichnis+"/template/"+stylefolder+"/image/mainnavi/klassisch_selected.jpg"; /* Highlight-Grafik */ romantisch = new Image(); romantisch.src = basisVerzeichnis+"/template/"+stylefolder+"/image/mainnavi/romantisch.jpg"; /* Standard-Grafik */ romantisch_h = new Image(); romantisch_h.src = basisVerzeichnis+"/template/"+stylefolder+"/image/mainnavi/romantisch_selected.jpg"; /* Highlight-Grafik */ natuerlich = new Image(); natuerlich.src = basisVerzeichnis+"/template/"+stylefolder+"/image/mainnavi/natuerlich.jpg"; /* Standard-Grafik */ natuerlich_h = new Image(); natuerlich_h.src = basisVerzeichnis+"/template/"+stylefolder+"/image/mainnavi/natuerlich_selected.jpg"; /* Highlight-Grafik */ specials = new Image(); specials.src = basisVerzeichnis+"/template/"+stylefolder+"/image/mainnavi/specials.jpg"; /* Standard-Grafik */ specials_h = new Image(); specials_h.src = basisVerzeichnis+"/template/"+stylefolder+"/image/mainnavi/specials_selected.jpg"; /* Highlight-Grafik */ function hiLite(imgID,imgObjName) { // imgID - Name oder Nummer des auszutauschenden Bildes // imgObjName - Name des Bildes mit dem ausgetauscht wird document.images[imgID].src = eval(imgObjName + ".src") } var hTimer_01 = hTimer_02 = hTimer_03 = hTimer_04 = hTimer_05 = null; var sTimer_01 = sTimer_02 = sTimer_03 = sTimer_04 = sTimer_05 = null; function showSub(objElem){ var id = objElem.id.split("_")[1]; var delay = 400; switch(id) { case "01": window.clearTimeout(hTimer_01); hTimer_01 = null; sTimer_01 = window.setTimeout(function(){showMe(id);}, delay); break; case "02": window.clearTimeout(hTimer_02); hTimer_02 = null; sTimer_02 = window.setTimeout(function(){showMe(id);}, delay); break; case "03": window.clearTimeout(hTimer_03); hTimer_03 = null; sTimer_03 = window.setTimeout(function(){showMe(id);}, delay); break; case "04": window.clearTimeout(hTimer_04); hTimer_04 = null; sTimer_04 = window.setTimeout(function(){showMe(id);}, delay); break; case "05": window.clearTimeout(hTimer_05); hTimer_05 = null; sTimer_05 = window.setTimeout(function(){showMe(id);}, delay); break; } } function showSub2(objElem){ var id = objElem.id.split("_")[1]; var delay = 0; switch(id) { case "01": window.clearTimeout(hTimer_01); hTimer_01 = null; sTimer_01 = window.setTimeout(function(){showMe2(id);}, delay); break; case "02": window.clearTimeout(hTimer_02); hTimer_02 = null; sTimer_02 = window.setTimeout(function(){showMe2(id);}, delay); break; case "03": window.clearTimeout(hTimer_03); hTimer_03 = null; sTimer_03 = window.setTimeout(function(){showMe2(id);}, delay); break; case "04": window.clearTimeout(hTimer_04); hTimer_04 = null; sTimer_04 = window.setTimeout(function(){showMe2(id);}, delay); break; case "05": window.clearTimeout(hTimer_05); hTimer_05 = null; sTimer_05 = window.setTimeout(function(){showMe2(id);}, delay); break; } } function showMe2(id){ var subId = "sub_"+id; var styleO = document.getElementById(subId).style; styleO.display = "block"; } function showMe(id){ var subId = "sub_"+id; var styleO = document.getElementById(subId).style; changeOpac(0,subId); styleO.display = "block"; opacity(subId, 0, 90, 600); } function changeOpac(opacity, id) { var object = document.getElementById(id).style; object.opacity = (opacity / 100); object.MozOpacity = (opacity / 100); object.KhtmlOpacity = (opacity / 100); object.filter = "alpha(opacity=" + opacity + ")"; } function opacity(id, opacStart, opacEnd, millisec) { //speed for each frame var speed = Math.round(millisec / 100); var timer = 1; //determine the direction for the blending, if start and end are the same nothing happens if(opacStart > opacEnd) { for(i = opacStart; i >= opacEnd; i--) { setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); timer++; } } else if(opacStart < opacEnd) { for(i = opacStart; i <= opacEnd; i++) { setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); timer++; } } } function hideSub(objElem){ var id = objElem.id.split("_")[1]; delay = 50; switch(id) { case "01": window.clearTimeout(sTimer_01); sTimer_01 = null; hTimer_01 = window.setTimeout(function(){hideMe(id);}, delay); break; case "02": window.clearTimeout(sTimer_02); sTimer_02 = null; hTimer_02 = window.setTimeout(function(){hideMe(id);}, delay); break; case "03": window.clearTimeout(sTimer_03); sTimer_03 = null; hTimer_03 = window.setTimeout(function(){hideMe(id);}, delay); break; case "04": window.clearTimeout(sTimer_04); sTimer_04 = null; hTimer_04 = window.setTimeout(function(){hideMe(id);}, delay); break; case "05": window.clearTimeout(sTimer_05); sTimer_05 = null; hTimer_05 = window.setTimeout(function(){hideMe(id);}, delay); break; } } function hideMe(id){ document.getElementById("sub_"+id).style.display = "none"; } function pop(file, hoehe, title) { helpwindow = window.open(file,title,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=626, height="+hoehe+", top=80, left=200"); helpwindow.focus(); return false; } function pop_startseite(file, hoehe, breite, title) { helpwindow = window.open(file,title,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width="+breite+", height="+hoehe+", top=80, left=200"); helpwindow.focus(); return false; }