$(document).ready(function() { // Funktion starten, wenn DOM-ready // var samp = new DickerFisch('#nav',{NavTimeout: new Array(99,250),Fit2ViewportClass:'leftover',LimitLinks:0, Effect:0, EffectSpeed:100}); $("#input_datum_titelsuche").css({ visibility: "hidden" }); $('#ts-content').slideToggle(300); $('#sb-content').slideToggle(300); $('#ls-content').slideToggle(300); //$('#sendafriend_content').slideToggle(300); $('#small_top_navi').animate({opacity: 0.7},'fast'); $("a.btn_f1").mouseover(function () { $("span.btn_f1").css({ background: "url(/bremenvier/_px/icons/pfeile/button_gelb.gif)", backgroundRepeat: "no-repeat", backgroundPosition: "center center" }); }); $("a.btn_f1").mouseout(function () { $("span.btn_f1").css({ background: "url(/bremenvier/_px/icons/pfeile/button_pfeil_weiss.gif)", backgroundRepeat: "no-repeat", backgroundPosition: "center center" }); }); $("a.btn_f2").mouseover(function () { $("span.btn_f2").css({ background: "url(/bremenvier/_px/icons/pfeile/button_gelb.gif)", backgroundRepeat: "no-repeat", backgroundPosition: "center center" }); }); $("a.btn_f2").mouseout(function () { $("span.btn_f2").css({ background: "url(/bremenvier/_px/icons/pfeile/button_pfeil_weiss.gif)", backgroundRepeat: "no-repeat", backgroundPosition: "center center" }); }); $("a.btn_f3").mouseover(function () { $("span.btn_f3").css({ background: "url(/bremenvier/_px/icons/pfeile/button_gelb.gif)", backgroundRepeat: "no-repeat", backgroundPosition: "center center" }); }); $("a.btn_f3").mouseout(function () { $("span.btn_f3").css({ background: "url(/bremenvier/_px/icons/pfeile/button_pfeil_weiss.gif)", backgroundRepeat: "no-repeat", backgroundPosition: "center center" }); }); $("a.btn_f4").mouseover(function () { $("span.btn_f4").css({ background: "url(/bremenvier/_px/icons/pfeile/button_gelb.gif)", backgroundRepeat: "no-repeat", backgroundPosition: "center center" }); }); $("a.btn_f4").mouseout(function () { $("span.btn_f4").css({ background: "url(/bremenvier/_px/icons/pfeile/button_pfeil_weiss.gif)", backgroundRepeat: "no-repeat", backgroundPosition: "center center" }); }); $("a.btn_f5").mouseover(function () { $("span.btn_f5").css({ background: "url(/bremenvier/_px/icons/pfeile/button_gelb.gif)", backgroundRepeat: "no-repeat", backgroundPosition: "center center" }); }); $("a.btn_f5").mouseout(function () { $("span.btn_f5").css({ background: "url(/bremenvier/_px/icons/pfeile/button_pfeil_weiss.gif)", backgroundRepeat: "no-repeat", backgroundPosition: "center center" }); }); $("a.btn_k").mouseover(function () { $("span.btn_k").css({ background: "url(/bremenvier/_px/icons/button_klammer_gelb.gif)", backgroundRepeat: "no-repeat", backgroundPosition: "center center" }); }); $("a.btn_k").mouseout(function () { $("span.btn_k").css({ background: "url(/bremenvier/_px/icons/button_klammer_weiss.gif)", backgroundRepeat: "no-repeat", backgroundPosition: "center center" }); }); }); function open_window_mediabox() { window.open('/bremenvier/media/player.php', 'popup_mediabox', 'width=605,height=410,scrollbars=no, toolbar=no,status=no, resizable=yes,menubar=no,location=no,directories=no,top=10,left=10'); }; function open_window_mediabox2(url) { window.open(url, 'popup_mediabox', 'width=360,height=780,scrollbars=yes, toolbar=no,status=no, resizable=yes,menubar=no,location=no,directories=no,top=10,left=10'); }; function open_window_webcam() { window.open('', 'popup_webcam', 'width=675,height=380,scrollbars=no, toolbar=no,status=no, resizable=yes,menubar=no,location=no,directories=no,top=10,left=10'); }; function open_window_voting() { window.open('', 'popup_voting', 'width=695,height=380,scrollbars=yes, toolbar=no,status=no, resizable=yes,menubar=no,location=no,directories=no,top=10,left=10'); }; function open_window_voting2(url) { window.open(url, 'popup_voting', 'width=695,height=380,scrollbars=yes, toolbar=no,status=no, resizable=yes,menubar=no,location=no,directories=no,top=10,left=10'); }; function open_window_voting3(url) { window.open(url, 'popup_voting', 'width=695,height=400,scrollbars=no, toolbar=no,status=no, resizable=yes,menubar=no,location=no,directories=no,top=10,left=10'); }; window.ts_status_string = "closed"; function ts_status() { if (window.ts_status_string == "open") { window.ts_status_string = "closed"; } else { window.ts_status_string = "open"; } }; window.sb_status_string = "closed"; function sb_status() { if (window.sb_status_string == "open") { window.sb_status_string = "closed"; } else { window.sb_status_string = "open"; } }; window.ls_status_string = "closed"; function ls_status() { if (window.ls_status_string == "open") { window.ls_status_string = "closed"; } else { window.ls_status_string = "open"; } }; function ts_toggle() { $("#input_datum_titelsuche").css({ visibility: "hidden" }); imgobj1 = document.getElementById( "img_ts" ); if (window.ls_status_string == "open") { $("#input_datum_livestream").css({ visibility: "hidden" }); $('#ls-content').slideToggle(500, ls_status() ); if (imgobj3.src.match( "/bremenvier/_px/up.png" )){ imgobj3.src = "/bremenvier/_px/down.png"; } else { imgobj3.src = "/bremenvier/_px/up.png"; } } if (window.sb_status_string == "open") { $('#sb-content').slideToggle(500, sb_status() ); $('#ts-content').slideToggle(500, ts_status() ); $("#input_datum_titelsuche").css({ visibility: "visible" }); if (imgobj1.src.match( "/bremenvier/_px/up.png" )){ imgobj1.src = "/bremenvier/_px/down.png"; } else { imgobj1.src = "/bremenvier/_px/up.png"; } if (imgobj2.src.match( "/bremenvier/_px/up.png" )){ imgobj2.src = "/bremenvier/_px/down.png"; } else { imgobj2.src = "/bremenvier/_px/up.png"; } } else { $('#ts-content').slideToggle(500, ts_status() ); if (imgobj1.src.match( "/bremenvier/_px/up.png" )){ imgobj1.src = "/bremenvier/_px/down.png"; } else { imgobj1.src = "/bremenvier/_px/up.png"; } $("#input_datum_titelsuche").css({ visibility: "visible" }); } }; function sb_toggle() { imgobj2 = document.getElementById( "img_sb" ); if (window.ls_status_string == "open") { $("#input_datum_livestream").css({ visibility: "hidden" }); $('#ls-content').slideToggle(500, ls_status() ); if (imgobj3.src.match( "/bremenvier/_px/up.png" )){ imgobj3.src = "/bremenvier/_px/down.png"; } else { imgobj3.src = "/bremenvier/_px/up.png"; } } if (window.ts_status_string == "open") { $("#input_datum_titelsuche").css({ visibility: "hidden" }); $('#ts-content').slideToggle(500, ts_status() ); $('#sb-content').slideToggle(500, sb_status() ); if (imgobj2.src.match( "/bremenvier/_px/up.png" )){ imgobj2.src = "/bremenvier/_px/down.png"; } else { imgobj2.src = "/bremenvier/_px/up.png"; } if (imgobj1.src.match( "/bremenvier/_px/up.png" )){ imgobj1.src = "/bremenvier/_px/down.png"; } else { imgobj1.src = "/bremenvier/_px/up.png"; } } else { $('#sb-content').slideToggle(500, sb_status() ); if (imgobj2.src.match( "/bremenvier/_px/up.png" )){ imgobj2.src = "/bremenvier/_px/down.png"; } else { imgobj2.src = "/bremenvier/_px/up.png"; } } }; function sb_open() { imgobj2 = document.getElementById( "img_sb" ); if (window.ls_status_string == "open") { $("#input_datum_livestream").css({ visibility: "hidden" }); $('#ls-content').slideToggle(500, ls_status() ); if (imgobj3.src.match( "/bremenvier/_px/up.png" )){ imgobj3.src = "/bremenvier/_px/down.png"; } else { imgobj3.src = "/bremenvier/_px/up.png"; } } if (window.ts_status_string == "open") { $("#input_datum_titelsuche").css({ visibility: "hidden" }); $('#ts-content').slideToggle(500, ts_status() ); $('#sb-content').slideToggle(500, sb_status() ); if (imgobj2.src.match( "/bremenvier/_px/up.png" )){ imgobj2.src = "/bremenvier/_px/down.png"; } else { imgobj2.src = "/bremenvier/_px/up.png"; } if (imgobj1.src.match( "/bremenvier/_px/up.png" )){ imgobj1.src = "/bremenvier/_px/down.png"; } else { imgobj1.src = "/bremenvier/_px/up.png"; } } else { if (window.sb_status_string != "open") { $('#sb-content').slideToggle(500, sb_status() ); if (imgobj2.src.match( "/bremenvier/_px/up.png" )){ imgobj2.src = "/bremenvier/_px/down.png"; } else { imgobj2.src = "/bremenvier/_px/up.png"; } } } }; function ls_toggle() { imgobj3 = document.getElementById( "img_ls" ); if (window.ts_status_string == "open") { $("#input_datum_titelsuche").css({ visibility: "hidden" }); $('#ts-content').slideToggle(500, ts_status() ); if (imgobj1.src.match( "/bremenvier/_px/up.png" )){ imgobj1.src = "/bremenvier/_px/down.png"; } else { imgobj1.src = "/bremenvier/_px/up.png"; } } if (window.sb_status_string == "open") { $("#input_datum_studiobutton").css({ visibility: "hidden" }); $('#sb-content').slideToggle(500, sb_status() ); if (imgobj2.src.match( "/bremenvier/_px/up.png" )){ imgobj2.src = "/bremenvier/_px/down.png"; } else { imgobj2.src = "/bremenvier/_px/up.png"; } } $('#ls-content').slideToggle(500, ls_status() ); if (imgobj3.src.match( "/bremenvier/_px/up.png" )){ imgobj3.src = "/bremenvier/_px/down.png"; } else { imgobj3.src = "/bremenvier/_px/up.png"; } }; var stoppa; function sendafriend_focus() { $('#sendafriend_content').ScrollTo(300);} function sendafriend_toggle() { if (stoppa != 1) { $('#sendafriend_content').slideToggle(500, sendafriend_focus); stoppa = 1; } else { stoppa = 0; $('#sendafriend_content').css({ display: "none" }); } }; // clear default value from field when selected function clearinput(id_name) { if (id_name == "input_name" && document.getElementById( "input_name" ).value == "Dein Name:") document.getElementById( "input_name" ).value = ""; if (id_name == "input_freund" && document.getElementById( "input_freund" ).value == "Name des Empfängers:") document.getElementById( "input_freund" ).value = ""; if (id_name == "input_email" && document.getElementById( "input_email" ).value == "E-Mail-Adresse des Empfängers:") document.getElementById( "input_email" ).value = ""; if (id_name == "input_nachricht" && document.getElementById( "input_nachricht" ).value == "Nachricht:") document.getElementById( "input_nachricht" ).value = ""; if (id_name == "input_emailfrom" && document.getElementById( "input_emailfrom" ).value == "Deine E-Mail-Adresse:") document.getElementById( "input_emailfrom" ).value = ""; } function redefineinput(id) { if (id == "input_name" && document.getElementById( "input_name" ).value == "") document.getElementById( "input_name" ).value = "Dein Name:"; if (id == "input_freund" && document.getElementById( "input_freund" ).value == "") document.getElementById( "input_freund" ).value = "Name des Empfängers:"; if (id == "input_email" && document.getElementById( "input_email" ).value == "") document.getElementById( "input_email" ).value = "E-Mail-Adresse des Empfängers:"; if (id == "input_nachricht" && document.getElementById( "input_nachricht" ).value == "") document.getElementById( "input_nachricht" ).value = "Nachricht:"; if (id == "input_emailfrom" && document.getElementById( "input_emailfrom" ).value == "") document.getElementById( "input_emailfrom" ).value = "Deine E-Mail-Adresse:"; } function w_redefine(){ if (document.getElementById( "w_name" ).value == "") document.getElementById( "w_name" ).value = "Name:"; if (document.getElementById( "w_firma" ).value == "") document.getElementById( "w_firma" ).value = "Firma:"; if (document.getElementById( "w_telefon" ).value == "") document.getElementById( "w_telefon" ).value = "Telefon:"; if (document.getElementById( "w_email" ).value == "") document.getElementById( "w_email" ).value = "E-Mail-Adresse:"; if (document.getElementById( "w_gebot" ).value == "") document.getElementById( "w_gebot" ).value = "Gebot:"; if (document.getElementById( "w_nachricht" ).value == "") document.getElementById( "w_nachricht" ).value = "Nachricht:"; } function w_clearinput(w_id_name){ if (w_id_name == "w_name" && document.getElementById( "w_name" ).value == "Name:") document.getElementById( "w_name" ).value = ""; if (w_id_name == "w_firma" && document.getElementById( "w_firma" ).value == "Firma:") document.getElementById( "w_firma" ).value = ""; if (w_id_name == "w_telefon" && document.getElementById( "w_telefon" ).value == "Telefon:") document.getElementById( "w_telefon" ).value = ""; if (w_id_name == "w_email" && document.getElementById( "w_email" ).value == "E-Mail-Adresse:") document.getElementById( "w_email" ).value = ""; if (w_id_name == "w_gebot" && document.getElementById( "w_gebot" ).value == "Gebot:") document.getElementById( "w_gebot" ).value = ""; if (w_id_name == "w_nachricht" && document.getElementById( "w_nachricht" ).value == "Nachricht:") document.getElementById( "w_nachricht" ).value = ""; } function clearinput_contact(id_name) { if (id_name == "input_name" && document.getElementById( "input_name" ).value == "Dein Name:") document.getElementById( "input_name" ).value = ""; if (id_name == "input_ort" && document.getElementById( "input_ort" ).value == "Ort:") document.getElementById( "input_ort" ).value = ""; if (id_name == "input_telefon" && document.getElementById( "input_telefon" ).value == "Telefon:") document.getElementById( "input_telefon" ).value = ""; if (id_name == "input_nachricht" && document.getElementById( "input_nachricht" ).value == "Nachricht:") document.getElementById( "input_nachricht" ).value = ""; if (id_name == "input_email" && document.getElementById( "input_email" ).value == "Deine E-Mail-Adresse:") document.getElementById( "input_email" ).value = ""; } function redefineinput_contact(id) { if (id != "input_name" && document.getElementById( "input_name" ).value == "") document.getElementById( "input_name" ).value = "Dein Name:"; if (id != "input_ort" && document.getElementById( "input_ort" ).value == "") document.getElementById( "input_ort" ).value = "Ort:"; if (id != "input_telefon" && document.getElementById( "input_telefon" ).value == "") document.getElementById( "input_telefon" ).value = "Telefon:"; if (id != "input_nachricht" && document.getElementById( "input_nachricht" ).value == "") document.getElementById( "input_nachricht" ).value = "Nachricht:"; if (id != "input_email" && document.getElementById( "input_email" ).value == "") document.getElementById( "input_email" ).value = "Deine E-Mail-Adresse:"; } function clearinput_mscout(id_name) { if (id_name == "input_name" && document.getElementById( "input_name" ).value == "Dein Name:") document.getElementById( "input_name" ).value = ""; if (id_name == "input_vorname" && document.getElementById( "input_vorname" ).value == "Dein Vorname:") document.getElementById( "input_vorname" ).value = ""; if (id_name == "input_plz" && document.getElementById( "input_plz" ).value == "Deine Postleitzahl:") document.getElementById( "input_plz" ).value = ""; if (id_name == "input_email" && document.getElementById( "input_email" ).value == "Deine E-Mail-Adresse:") document.getElementById( "input_email" ).value = ""; } function redefineinput_mscout(id) { if (id != "input_name" && document.getElementById( "input_name" ).value == "") document.getElementById( "input_name" ).value = "Dein Name:"; if (id != "input_vorname" && document.getElementById( "input_vorname" ).value == "") document.getElementById( "input_vorname" ).value = "Dein Vorname:"; if (id != "input_plz" && document.getElementById( "input_plz" ).value == "") document.getElementById( "input_plz" ).value = "Deine Postleitzahl:"; if (id != "input_email" && document.getElementById( "input_email" ).value == "") document.getElementById( "input_email" ).value = "Deine E-Mail-Adresse:"; } function clearinput_studiobutton(id_name) { if (id_name == "name_studiobutton" && document.getElementById( "name_studiobutton" ).value == "Name:") document.getElementById( "name_studiobutton" ).value = ""; if (id_name == "ort_studiobutton" && document.getElementById( "ort_studiobutton" ).value == "Ort:") document.getElementById( "ort_studiobutton" ).value = ""; if (id_name == "email_studiobutton" && document.getElementById( "email_studiobutton" ).value == "E-Mail-Adresse:") document.getElementById( "email_studiobutton" ).value = ""; if (id_name == "telefon_studiobutton" && document.getElementById( "telefon_studiobutton" ).value == "Telefon:") document.getElementById( "telefon_studiobutton" ).value = ""; if (id_name == "nachricht_studiobutton" && document.getElementById( "nachricht_studiobutton" ).value == "Nachricht:") document.getElementById( "nachricht_studiobutton" ).value = ""; } function redefineinput_studiobutton(id) { if (id != "name_studiobutton" && document.getElementById( "name_studiobutton" ).value == "") document.getElementById( "name_studiobutton" ).value = "Name:"; if (id != "ort_studiobutton" && document.getElementById( "ort_studiobutton" ).value == "") document.getElementById( "ort_studiobutton" ).value = "Ort:"; if (id != "email_studiobutton" && document.getElementById( "email_studiobutton" ).value == "") document.getElementById( "email_studiobutton" ).value = "E-Mail-Adresse:"; if (id != "telefon_studiobutton" && document.getElementById( "telefon_studiobutton" ).value == "") document.getElementById( "telefon_studiobutton" ).value = "Telefon:"; if (id != "nachricht_studiobutton" && document.getElementById( "nachricht_studiobutton" ).value == "") document.getElementById( "nachricht_studiobutton" ).value = "Nachricht:"; } function clearinput_frosch(id_name) { if (id_name == "input_name" && document.getElementById( "input_name" ).value == "Name:") document.getElementById( "input_name" ).value = ""; if (id_name == "input_vnam" && document.getElementById( "input_vnam" ).value == "Vorname:") document.getElementById( "input_vnam" ).value = ""; if (id_name == "input_tele" && document.getElementById( "input_tele" ).value == "Telefon:") document.getElementById( "input_tele" ).value = ""; if (id_name == "input_genr" && document.getElementById( "input_genr" ).value == "Gewinn-Nr. (max. 6 Ziffern):") document.getElementById( "input_genr" ).value = ""; if (id_name == "input_konr" && document.getElementById( "input_konr" ).value == "Kontroll-Nr. (max. 6 Ziffern):") document.getElementById( "input_konr" ).value = ""; if (id_name == "input_fort" && document.getElementById( "input_fort" ).value == "Fundort:") document.getElementById( "input_fort" ).value = ""; if (id_name == "input_fdat" && document.getElementById( "input_fdat" ).value == "Funddatum:") document.getElementById( "input_fdat" ).value = ""; } function redefineinput_frosch(id) { if (id != "input_name" && document.getElementById( "input_name" ).value == "") document.getElementById( "input_name" ).value = "Name:"; if (id != "input_vnam" && document.getElementById( "input_vnam" ).value == "") document.getElementById( "input_vnam" ).value = "Vorname:"; if (id != "input_tele" && document.getElementById( "input_tele" ).value == "") document.getElementById( "input_tele" ).value = "Telefon:"; if (id != "input_genr" && document.getElementById( "input_genr" ).value == "") document.getElementById( "input_genr" ).value = "Gewinn-Nr. (max. 6 Ziffern):"; if (id != "input_konr" && document.getElementById( "input_konr" ).value == "") document.getElementById( "input_konr" ).value = "Kontroll-Nr. (max. 6 Ziffern):"; if (id != "input_fort" && document.getElementById( "input_fort" ).value == "") document.getElementById( "input_fort" ).value = "Fundort:"; if (id != "input_fdat" && document.getElementById( "input_fdat" ).value == "") document.getElementById( "input_fdat" ).value = "Funddatum:"; } function clearinput_ms() { if (document.getElementById( "mscout_kommentar" ).value == "Dein Kommentar:") document.getElementById( "mscout_kommentar" ).value = ""; } function clearinput_kz(id_name) { if (id_name == "kz_vorname" && document.getElementById( "kz_vorname" ).value == "Vorname:") document.getElementById( "kz_vorname" ).value = ""; if (id_name == "kz_name" && document.getElementById( "kz_name" ).value == "Name:") document.getElementById( "kz_name" ).value = ""; if (id_name == "kz_gbdatum" && document.getElementById( "kz_gbdatum" ).value == "Alter:") document.getElementById( "kz_gbdatum" ).value = ""; if (id_name == "kz_email" && document.getElementById( "kz_email" ).value == "E-Mail-Adresse:") document.getElementById( "kz_email" ).value = ""; if (id_name == "kz_telefon" && document.getElementById( "kz_telefon" ).value == "Telefon:") document.getElementById( "kz_telefon" ).value = ""; if (id_name == "kz_adresse" && document.getElementById( "kz_adresse" ).value == "Adresse:") document.getElementById( "kz_adresse" ).value = ""; if (id_name == "kz_hobbys" && document.getElementById( "kz_hobbys" ).value == "Hobbys:") document.getElementById( "kz_hobbys" ).value = ""; if (id_name == "kz_beruf" && document.getElementById( "kz_beruf" ).value == "Beruf:") document.getElementById( "kz_beruf" ).value = ""; if (id_name == "kz_groesse" && document.getElementById( "kz_groesse" ).value == "Größe:") document.getElementById( "kz_groesse" ).value = ""; } function redefineinput_kz(id) { if (id == "kz_vorname" && document.getElementById( "kz_vorname" ).value == "") document.getElementById( "kz_vorname" ).value = "Vorname:"; if (id == "kz_name" && document.getElementById( "kz_name" ).value == "") document.getElementById( "kz_name" ).value = "Name:"; if (id == "kz_gbdatum" && document.getElementById( "kz_gbdatum" ).value == "") document.getElementById( "kz_gbdatum" ).value = "Alter:"; if (id == "kz_email" && document.getElementById( "kz_email" ).value == "") document.getElementById( "kz_email" ).value = "E-Mail-Adresse:"; if (id == "kz_telefon" && document.getElementById( "kz_telefon" ).value == "") document.getElementById( "kz_telefon" ).value = "Telefon:"; if (id == "kz_adresse" && document.getElementById( "kz_adresse" ).value == "") document.getElementById( "kz_adresse" ).value = "Adresse:"; if (id == "kz_hobbys" && document.getElementById( "kz_hobbys" ).value == "") document.getElementById( "kz_hobbys" ).value = "Hobbys:"; if (id == "kz_beruf" && document.getElementById( "kz_beruf" ).value == "") document.getElementById( "kz_beruf" ).value = "Beruf:"; if (id == "kz_groesse" && document.getElementById( "kz_groesse" ).value == "") document.getElementById( "kz_groesse" ).value = "Größe:"; }