// Texte auf- bzw. zuklappen function swap_text(id) { var i = 'i_' + id; var i_icon = 'i_icon' + id; displayType = ( document.getElementById(i).style.display == 'none' ) ? 'block' : 'none'; if(displayType == 'block') { document.getElementById(i).style.display = 'block'; document.getElementById(i_icon).src='/img/icons/up_small.gif'; } else { document.getElementById(i).style.display='none'; document.getElementById(i_icon).src='/img/icons/down_small.gif'; } } // =========================== function popupimg(page) { OpenWin = this.open(page,"imggallery","width=750,height=650,scrollbars=1,resizable=1"); } function popup(page) { OpenWin = this.open(page,"agb","width=750,height=450,scrollbars=1,resizable=1"); } function popuphelp(page) { OpenWin = this.open(page,"imgcoord","width=350,height=250,scrollbars=1,resizable=1"); } function popImage(img, title) { picfile = new Image(); picfile.src = img; picfile.imageTitle = title; fileCheck(100); } function fileCheck(i) { if ((picfile.width != 0 && picfile.height != 0) || i == 0) { makeWindow(); } else { setTimeout("fileCheck(" + (i-1) + ")", 50); } } function makeWindow() { var img = picfile.src, wd = picfile.width, ht = picfile.height, title = picfile.imageTitle; var args = "resizable=yes"; if (wd == 0) { // Default window size if image load is slow wd = 800; ht = 600; args += ",scrollbars=yes"; } if (window.screen) { var isIE = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0; var avwd = screen.availWidth, avht = screen.availHeight; if (avwd < wd || avht < ht) { args += ",scrollbars=yes"; } var xcen = (avwd > wd) ? (avwd - wd) / 2 : 0; var ycen = (avht > ht) ? (avht - ht) / 2 : 0; args += ",left=" + xcen + ",screenX=" + xcen; args += ",top=" + ycen + ",screenY=" + ycen; if (avwd < wd) { wd = avwd; if (isIE) wd -= 12; } if (avht < ht) { ht = avht; if (isIE) ht -= 32; } } args += ",width=" + wd + ",innerWidth=" + wd; args += ",height=" + ht + ",innerHeight=" + ht; popwin = window.open(img, 'fullSize', args); popwin.document.open(); popwin.document.write(''); popwin.document.write(''); popwin.document.write(''); popwin.document.write(''); popwin.document.write(''+title+''); popwin.document.write(''); popwin.document.write(''+title+''); popwin.document.write(''); popwin.document.close(); } // Für Bildmenu function Bildwechsel2(name,Bildobjekt) { window.document.images[name].src = Bildobjekt; window.document.sound.play(); }