function all_perhour(hour) { document.getElementById("cam00").style.backgroundImage = "url('../webcam/archiv/00/"+hour+".jpg')"; document.getElementById("cam01").style.backgroundImage = "url('../webcam/archiv/01/"+hour+".jpg')"; document.getElementById("cam02").style.backgroundImage = "url('../webcam/archiv/02/"+hour+".jpg')"; document.getElementById("cam03").style.backgroundImage = "url('../webcam/archiv/03/"+hour+".jpg')"; document.getElementById("cam04").style.backgroundImage = "url('../webcam/archiv/04/"+hour+".jpg')"; document.getElementById("cam05").style.backgroundImage = "url('../webcam/archiv/05/"+hour+".jpg')"; document.getElementById("cam06").style.backgroundImage = "url('../webcam/archiv/06/"+hour+".jpg')"; document.getElementById("cam07").style.backgroundImage = "url('../webcam/archiv/07/"+hour+".jpg')"; document.getElementById("cam08").style.backgroundImage = "url('../webcam/archiv/08/"+hour+".jpg')"; document.getElementById("cam09").style.backgroundImage = "url('../webcam/archiv/09/"+hour+".jpg')"; document.getElementById("cam10").style.backgroundImage = "url('../webcam/archiv/10/"+hour+".jpg')"; document.getElementById("current_txt").innerHTML=hour+":00 Uhr"; a=new Date(); currentint=a.getHours(); /* if (currentint>=hour) { document.getElementById("current_day").innerHTML="heute"; } else { document.getElementById("current_day").innerHTML="gestern"; } */ reset_all_btn(); $('#btn_'+hour).addClass('btn_selected_red'); } function reset_all_btn() { $('#btn_aktuell').removeClass('btn_selected_red'); $('#btn_00').removeClass('btn_selected_red'); $('#btn_01').removeClass('btn_selected_red'); $('#btn_02').removeClass('btn_selected_red'); $('#btn_03').removeClass('btn_selected_red'); $('#btn_04').removeClass('btn_selected_red'); $('#btn_05').removeClass('btn_selected_red'); $('#btn_06').removeClass('btn_selected_red'); $('#btn_07').removeClass('btn_selected_red'); $('#btn_08').removeClass('btn_selected_red'); $('#btn_09').removeClass('btn_selected_red'); $('#btn_10').removeClass('btn_selected_red'); $('#btn_11').removeClass('btn_selected_red'); $('#btn_12').removeClass('btn_selected_red'); $('#btn_13').removeClass('btn_selected_red'); $('#btn_14').removeClass('btn_selected_red'); $('#btn_15').removeClass('btn_selected_red'); $('#btn_16').removeClass('btn_selected_red'); $('#btn_17').removeClass('btn_selected_red'); $('#btn_18').removeClass('btn_selected_red'); $('#btn_19').removeClass('btn_selected_red'); $('#btn_20').removeClass('btn_selected_red'); $('#btn_21').removeClass('btn_selected_red'); $('#btn_22').removeClass('btn_selected_red'); $('#btn_23').removeClass('btn_selected_red'); } function all_current() { document.getElementById("cam00").style.backgroundImage = "url('http://www.eilers-baltrum.de/webcam/cam2.jpg')";document.getElementById("cam01").style.backgroundImage = "url('http://www.eilers-baltrum.de/webcam/cam.jpg')";document.getElementById("cam02").style.backgroundImage = "url('http://baltrumcam.md-systemhaus.de/webcam/markt.jpg')";document.getElementById("cam03").style.backgroundImage = "url('http://www.baltrum-online.de/webcam/03/aktuell.jpg')";document.getElementById("cam04").style.backgroundImage = "url('http://www.baltrum-online.de/webcam/04/sonnenblick/aktuell.jpg')";document.getElementById("cam05").style.backgroundImage = "url('http://www.baltrumhus.de/webcam.jpg')";document.getElementById("cam06").style.backgroundImage = "url('http://www.baltrum-online.de/webcam/08/current.jpg')";document.getElementById("cam07").style.backgroundImage = "url('http://www.hotel-witthus.de/webcambild.php')";document.getElementById("cam08").style.backgroundImage = "url('http://www.baltrum-online.de/webcam/12/links.jpg')";document.getElementById("cam09").style.backgroundImage = "url('http://www.baltrum-online.de/webcam/baltrum24/current.jpg')";document.getElementById("cam10").style.backgroundImage = "url('http://baltrumcam.md-systemhaus.de/webcam/strand.jpg')"; var d = new Date(); // for now document.getElementById("current_txt").innerHTML=d.getHours()+":"+d.getMinutes()+" Uhr"; //document.getElementById("current_day").innerHTML="heute"; reset_all_btn(); $('#btn_aktuell').addClass('btn_selected_red'); } function all_timeshift(x) { current=document.getElementById("current_txt").innerHTML; if (current!="aktuell") { current=current.substring(0,2); currentint=parseInt(current,10); if (x<0) { neu=currentint-1; if (neu==-1) { neu=23; } if (neu<10) { neu='0'+neu; } all_perhour(neu); } else { neu=currentint+1; if (neu==24) { neu=0; } if (neu<10) { neu='0'+neu; } all_perhour(neu); reset_all_btn(); $('#btn_'+neu).addClass('btn_selected_red'); } } else { a=new Date(); currentint=a.getHours(); if (x<0) { neu=currentint; if (neu==-1) { neu=23; } if (neu<10) { neu='0'+neu; } all_perhour(neu); reset_all_btn(); $('#btn_'+neu).addClass('btn_selected_red'); } } } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i