// Fenster anpassen function Click (laden,rel) { if(rel==1 || document.id.id.value != laden) { document.id.id.value=laden document.id.submit(); } } function Fensterweite () { if (window.innerWidth) { return window.innerWidth; } else if (document.body && document.body.offsetWidth) { return document.body.offsetWidth; } else if (document.documentElement.offsetWidth) { return document.documentElement.offsetWidth; } else { return 0; } } function Fensterhoehe () { if (window.innerHeight) { return window.innerHeight; } else if (document.body && document.body.offsetHeight) { return document.body.offsetHeight; } else if (document.documentElement.offsetHeight) { return document.documentElement.offsetHeight; } else { return 0; } } function neuAufbau () { if (Weite != Fensterweite() || Hoehe != Fensterhoehe()) { Click(document.id.id.value,1); } } if (!window.Weite && window.innerWidth) { window.onresize = neuAufbau; Weite = Fensterweite(); Hoehe = Fensterhoehe(); } function form(site) { document.writeln('
'); document.writeln(''); document.writeln('<\/form>'); } // Grafikfunktionen var jg_doc = new jsGraphics(); function myDrawFunction(anz) { if (Weite < anz + 255) Weite = anz + 255; var br = Weite-25; if (br >= 1000) br = 1000; var dif = 0; var tmp1 = br/6.7567567567439; var tmp2 = br/20.0; var tmp3 = ((148-tmp1)>=1)?(148-tmp1):1; var ho = Hoehe-55; jg_doc.setFont("mistral","12px",Font.BOLD); jg_doc.setColor("#00ff00"); jg_doc.fillPolygon(new Array(dif,dif,br+dif,br+dif), new Array(1,148,tmp3,1)); jg_doc.setColor("#000000"); jg_doc.drawStringRect("<\/span>",200+dif/2,5,450+dif/2,"right"); jg_doc.fillPolygon(new Array(dif,br+dif,br+dif), new Array(148,tmp3,148)); jg_doc.drawImage("Bilder/Kopf_Homepage.gif",dif,1,220,130,'onclick="Click(1,0)" style=\"cursor:pointer\"'); jg_doc.drawImage("Bilder/Aktuelles.gif",dif+180,105,119,44,'onclick="Click(2,0)" style=\"cursor:pointer\"'); jg_doc.drawImage("Bilder/Fotos.gif",dif+180+(br-180-60-72)/2,(148-tmp3)/2+tmp3-12,72,37,'onclick="window.open(\'galerie.php\')" style=\"cursor:pointer\"'); jg_doc.drawImage("Bilder/Mitglieder.gif",dif+180+(br-180-60-133)/2,108,133,41,'onclick="Click(3,0)" style=\"cursor:pointer\"'); jg_doc.drawImage("Bilder/Links.gif",br-62+dif,148-tmp1+2,62,33,'onclick="Click(4,0)" style=\"cursor:pointer\"'); jg_doc.drawImage("Bilder/Kontakt.gif",br-97+dif,(tmp1)/3+tmp3+(((((((br<700)?(-3):(br<750)?(-2):((br<800)?(-1):((br<900)?1:((br<950)?2:3))))))))),97,37,'onclick="Click(5,0)" style=\"cursor:pointer\"'); jg_doc.drawImage("Bilder/Guestbook.gif",br-136+dif,101,136,48,'onclick="Click(6,0)" style=\"cursor:pointer\"'); jg_doc.paint(); } // Textcounter function count(e) { if (!e.which) { keyCode = event.keyCode; } else { keyCode = e.which; } if (document.Eintrag.User.value.length >= max_user+1) { document.Eintrag.User.value = document.Eintrag.User.value.substring(0,max_user); } if (document.Eintrag.strEintrag.value.length < max+1) { document.Eintrag.check.value = max-document.Eintrag.strEintrag.value.length; } else { document.Eintrag.strEintrag.value = document.Eintrag.strEintrag.value.substring(0,max); document.Eintrag.check.value = 0; } } // Tabellenbreite function tablebr(anz,Weite) { var tabbr = ""; if (Weite < (anz + 250)) { tabbr = anz; } else { if (Weite > 1030) { tabbr = (anz + 280); } else { tabbr = Weite - 250; } } return tabbr; } // Bilder var tmp1 = 355; var tmp2 = 500; var tmp3 = 675; var Hoehe = Fensterhoehe(); function Bild() { if (Hoehe > tmp1) { document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln('
<\/td>'); document.writeln('<\/tr>'); document.writeln('
'); document.writeln(''); document.writeln('<\/td>'); document.writeln('<\/tr>'); if (Hoehe > tmp2) { document.writeln('

'); document.writeln(''); document.writeln('<\/td>'); document.writeln('<\/tr>'); if (Hoehe > tmp3) { document.writeln('

'); document.writeln(''); document.writeln('<\/td>'); document.writeln('<\/tr>'); } } document.writeln('<\/table>'); } } var quer = new Array(); quer[0] = new Image(); quer[0].src = "Bilder/quer01.jpg"; quer[1] = new Image(); quer[1].src = "Bilder/quer02.jpg"; quer[2] = new Image(); quer[2].src = "Bilder/quer03.jpg"; quer[3] = new Image(); quer[3].src = "Bilder/quer04.jpg"; quer[4] = new Image(); quer[4].src = "Bilder/quer05.jpg"; quer[5] = new Image(); quer[5].src = "Bilder/quer06.jpg"; quer[6] = new Image(); quer[6].src = "Bilder/quer07.jpg"; var sponsor = new Array(); sponsor[0] = new Image(); sponsor[0].src = "Bilder/quer01.gif"; sponsor[1] = new Image(); sponsor[1].src = "Bilder/quer02.gif"; sponsor[2] = new Image(); sponsor[2].src = "Bilder/quer03.gif"; sponsor[3] = new Image(); sponsor[3].src = "Bilder/quer04.gif"; sponsor[4] = new Image(); sponsor[4].src = "Bilder/quer05.gif"; var diaverzoegerung = 3; var diazaehler1 = -1; var diazaehler2 = -1; var diaschalter = 1; var diaanzahl1 = sponsor.length; var diaanzahl2 = quer.length; function dianext() { diazaehler1++; diazaehler2++; if ( diazaehler1 >= diaanzahl1 ) diazaehler1 = 0; if ( diazaehler2 >= diaanzahl2 ) diazaehler2 = 0; if (Hoehe > tmp2) { document.sponsor.src = sponsor[diazaehler1].src; if (Hoehe > tmp3) { document.quer.src = quer[diazaehler2].src; } } } function diadelay() { if ( diaschalter == 1 ) dianext(); window.setTimeout("diadelay()",(diaverzoegerung*1000)); } // Kontaktformular function kontakt() { window.open("kontakt.php","Kontakt","width=620,height=480"); } // Medienbeitrag function mediaform() { document.writeln(''); document.writeln(''); document.writeln('<\/form>'); } function media(laden) { window.open('','foo','width=495,height=480') document.youtube.id.value=laden document.youtube.submit(); } // Countdown function toSt2(n) { var s = ''; if (n < 10) { s += '0'; } return (s + n).toString(); } function countdown(end,event) { var Text = ""; var d = new Date(); var count = Math.floor(end.getTime() - d.getTime()); if (count > 0) { count = Math.floor(count/1000); var seconds = toSt2(count%60); count = Math.floor(count/60); var minutes = toSt2(count%60); count = Math.floor(count/60); var hours = toSt2(count%24); count = Math.floor(count/24); var days = count; Text = '... die Spannung steigt! Nur noch
'; if (days > 0) { Text += days + ' Tag'; if (days != 1) Text += 'e'; Text += ', '; } if (hours > 0) { Text += hours + ' Stunde'; if (hours != 1) Text += 'n'; Text += ', '; } else { if (days > 0) Text += hours + ' Stunden, '; } if (minutes > 0) { Text += minutes + ' Minute'; if (minutes != 1) Text += 'n'; Text += ', '; } else { if (days > 0 || hours > 0) Text += minutes + ' Minuten, '; } Text += seconds + ' Sekunde'; if (seconds != 1) Text += 'n'; Text += ':
'; setTimeout('countdown(end,event)', 100); } else { Text = '... die Spannung steigt!
aktuell:
'; } Text += event; document.getElementById('Countdown').innerHTML = Text; }