function changeMyPic(imgTag, newPicSource) //ask andi.rayo { imgTag.src = newPicSource; } //changeMyPic() function showbig( url_query ) //ask andi.rayo { var width = 700; var height = 450; // enlarge('.','../pics/big/wzg2004_02.jpg','rayo',0,'center',224,327); windowShowbig = window.open("../mx_showbig.php?" + url_query,"showbig","width=" + width + ",height=" + height + ",resizable,scrollbars"); /* ,status,menubar,toolbar,location, */ windowShowbig.focus(); } //showbig() function showprogram() //ask andi.rayo { windowShowprogram = window.open("../mx_showprogram.php","program","width=495,height=528,resizable,scrollbars"); /* ,status,menubar,toolbar,location, */ windowShowprogram.focus(); } //showprogram() function getWindowWidth() { // ACHTUNG!! Der IE kennt document.body erst NACH dem oeffnenden
-Tag! // mit IE-ScrollBar rechts verringert sich der Platz um 20px // mit Mozilla-ScrollBar rechts verringert sich der Platz um 18px if (window.innerWidth) return window.innerWidth; else if (document.body && document.body.offsetWidth) return document.body.offsetWidth; else return 1024; // standard wie bei Rayo } //getWindowWidth() function getWindowHeight() { // ACHTUNG!! Der IE kennt document.body erst NACH dem oeffnenden -Tag! // mit IE-ScrollBar unten verringert sich der Platz um 16 oder 20px // mit Mozilla-ScrollBar unten verringert sich der Platz um 16px if (window.innerHeight) return window.innerHeight; else if (document.body && document.body.clientHeight) return document.body.clientHeight; else if (document.body && document.body.offsetHeight) return document.body.offsetHeight; else return 565; // standard wie bei Rayo } //getWindowHeight() function ScrollPos() { pos = 0; if (window.pageYOffset) pos = window.pageYOffset else if (document.documentElement && document.documentElement.scrollTop) pos = document.documentElement.scrollTop else if (document.body) pos = document.body.scrollTop return pos; } //ScrollPos() function updateTime() //ask andi.rayo { var timestamp = new Date(); var weekdays = new Array( "Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag" ); var months = new Array( "Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember" ); var dateYear = timestamp.getFullYear(); var dateMonthNr = timestamp.getMonth() +1; var dateMonth = months[ dateMonthNr -1 ]; var dateDay = timestamp.getDate(); var dateWeekdayNr = timestamp.getDay(); var dateWeekday = weekdays[ dateWeekdayNr ]; var dateHours = timestamp.getHours(); var dateMinutes = timestamp.getMinutes(); var dateSeconds = timestamp.getSeconds(); document.getElementById("dateYear").firstChild.nodeValue = dateYear; document.getElementById("dateMonth").firstChild.nodeValue = dateMonth; document.getElementById("dateDay").firstChild.nodeValue = dateDay; document.getElementById("dateWeekday").firstChild.nodeValue = dateWeekday; document.getElementById("dateHours").firstChild.nodeValue = dateHours; if (dateMinutes < 10) dateMinutes = "0" + dateMinutes; document.getElementById("dateMinutes").firstChild.nodeValue = dateMinutes; if (dateSeconds < 10) dateSeconds = "0" + dateSeconds; document.getElementById("dateSeconds").firstChild.nodeValue = dateSeconds; window.setTimeout("updateTime()", 990); } //updateTime() // Laed die Seite neu nach Layer-Resice durch Netscape Navigator v4 function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init == true) with (navigator) { if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; } } else if ((innerWidth != document.MM_pgW) || (innerHeight != document.MM_pgH)) location.reload(); } //reloadPage() // Flash Version Detector v1.2.1 // documentation: http://www.dithered.com/javascript/flash_detect/index.html // license: http://creativecommons.org/licenses/by/1.0/ // code by Chris Nott (chris[at]dithered[dot]com) // with VBScript code from Alastair Hamilton (now somewhat modified) flashVersion_DONTKNOW = -1; function isDefined(property) { return (typeof property != 'undefined'); } var flashVersion = 0; function getFlashVersion() { var latestFlashVersion = 8; var agent = navigator.userAgent.toLowerCase(); // NS3 needs flashVersion to be a local variable if (agent.indexOf("mozilla/3") != -1 && agent.indexOf("msie") == -1) { flashVersion = 0; } // NS3+, Opera3+, IE5+ Mac (support plugin array): check for Flash plugin in plugin array if (navigator.plugins != null && navigator.plugins.length > 0) { var flashPlugin = navigator.plugins['Shockwave Flash']; if (typeof flashPlugin == 'object') { for (var i = latestFlashVersion; i >= 3; i--) { if (flashPlugin.description.indexOf(i + '.') != -1) { flashVersion = i; break; } } } } // IE4+ Win32: attempt to create an ActiveX object using VBScript else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) { var doc = '