var needCookieConsent=true,excludeScripts=false,devWidth=330,blocksAds=0,isSupporter=0;if(typeof siteLang=="undefined"){var siteLang=0}if(typeof isMobile=="undefined"){var isMobile=false}function loadScript(e,a){var b=document.createElement("script"),f=document.head||document.body||document.documentElement;b.src=e;f.appendChild(b);b.onload=a;b.onerror=a;return b}function show_hide(c){var b=document;var a=b.getElementById(c);if(a==null){return}if(a.style.display=="none"){a.style.display=""}else{a.style.display="none"}a=b.getElementById(c+"_1");if(a!=null){if(a.style.display=="none"){a.style.display=""}else{a.style.display="none"}}}function resizeText(a){var b=document;if(b.body.style.fontSize==""){b.body.style.fontSize="1.0em"}b.body.style.fontSize=parseFloat(b.body.style.fontSize)+(a*0.2)+"em"}function decryptCharcode(e,c,a,b){e=e+b;if(b>0&&e>a){e=c+(e-a-1)}else{if(b<0&&e=43&&f<=58){g+=decryptCharcode(f,43,58,e)}else{if(f>=64&&f<=90){g+=decryptCharcode(f,64,90,e)}else{if(f>=97&&f<=122){g+=decryptCharcode(f,97,122,e)}else{g+=b.charAt(c)}}}}return g}function linkTo_UnCryptMailto(a){location.href=decryptString(a,-2)}function dWidth(){isMobile=(("ontouchstart" in window)||(navigator.maxTouchPoints>0)||(navigator.msMaxTouchPoints>0));devWidth=(window.innerWidth>0)?window.innerWidth:screen.width}var rotationSpeed=7000;var bannerIndex=0;function swapBanner(e){var e=e||false;if(e){return setTimeout("fadeOut()",rotationSpeed)}var a=banners[bannerIndex];bannerIndex++;if(bannerIndex>banners.length-1){bannerIndex=0}var c=banners[bannerIndex];var b=document.getElementById("bn");b.style.backgroundImage="url('fileadmin/banner/1000/"+c+"')"}function fadeOut(){var a=document.getElementById("bn");if(a.style.opacity>0.1){a.style.opacity-=0.05;setTimeout("fadeOut()",15);return false}else{swapBanner();a.style.opacity=1;setTimeout("fadeOut()",rotationSpeed)}}function fadeIn(){var a=document.getElementById("bn");if(a.style.opacity<1){a.style.opacity=a.style.opacity+0.1;setTimeout(fadeIn(),50);return false}else{setTimeout("fadeOut()",5000)}}function startBannerRotation(){if(devWidth<700){return}if(typeof banners=="undefined"||banners.length<2){return}document.getElementById("bn").style.opacity=1;setTimeout("swapBanner(true)",3000)}function placeRC(){var f=document;var b=f.getElementById("lCol");var a=f.getElementById("lC2");var e=f.getElementById("content_right");var g=f.getElementById("content");dWidth();if(e!=null){if(devWidth<700){g.appendChild(e)}else{g.parentNode.insertBefore(e,g)}}if(b!=null){if(devWidth<800){a.appendChild(b);a.style.display="block"}else{f.getElementById("aux-col").appendChild(b);a.style.display="none"}}}function openPic(b,a,e){var c=window.open(b,a,e);if(c){c.focus()}}function openMenu(b,a){return}function closeMenu(a){return}function initClearDefault(){var c=document.getElementsByTagName("input");for(var a=0;auser: pw: | ';var loginLink='Login | ';var forgotPasswordLink='';var resendPasswordLink='';function swapResendForm(){var a=document;if(a.getElementById("forgotPWLink").style.display=="none"){a.getElementById("forgotPWLink").style.display="inline";a.getElementById("resendPWLink").style.display="none"}else{a.getElementById("forgotPWLink").style.display="none";a.getElementById("resendPWLink").style.display="inline"}}function swapLinkForm(){var a=document;if(a.getElementById("loginLink").style.display=="none"){a.getElementById("loginLink").style.display="inline";a.getElementById("loginFormWrap").style.display="none"}else{a.getElementById("loginLink").style.display="none";a.getElementById("loginFormWrap").style.display="inline"}}var isLoggedIn=false;var isEditor=false;var userName="";var userUid=0;var redirectAfterUserCheck=false;function getUserName(c,g,b){redirectAfterUserCheck=g;var f=document;var b=b||"";if(f.getElementById("login").innerHTML=="-"){isLoggedIn=false;userName="";userUid=0;isEditor=false;f.getElementById("login").innerHTML=loginLink+loginForm+forgotPasswordLink+resendPasswordLink;return}var c=c||false;if(getParam("accessToken")){b=getParam("accessToken");setCookie("fe_typo_user",b,2)}else{if(b==""){b=readCookie("fe_typo_user")}}var a=serverHost()+"/getFEusername.php";var e="cookie="+b;mkRequest(a,"",e,function(k){var h=k.responseText;if(h=="0"||h=="-1"||h.length>40){isLoggedIn=false;userName="";userUid=0;isEditor=false;if(c){swapLinkForm();swapResendForm()}var j=loginLink+loginForm+forgotPasswordLink+resendPasswordLink}else{h=h.split("#");userName=h[0];userUid=h[1];isEditor=h[2];isLoggedIn=true;if(document.getElementById("editCheck")!=null){document.getElementById("editCheck").parentNode.style.display=""}var j=userName+' [logout] | your profile | '}document.getElementById("login").innerHTML=j;var l=window.location.host;if(redirectAfterUserCheck){if(isLoggedIn){var m=confirm("Welcome "+userName+"! You are now logged in. Do you want to go to your upload page (otherwise stay here) ?");if(m){if(l!=serverHostName()){window.location.href=serverHost()+"/photo_of_the_day/upload.html?accessToken="+b}else{window.location.href=serverHost()+"/photo_of_the_day/upload.html"}}else{if(l!=serverHostName()){window.location.href=serverHost()+window.location.pathname+"?accessToken="+b}else{window.location.reload(true)}}}else{if(h=="-1"){alert("The server is temporarily under maintenance. We apologize that we cannot log you in now, but please try again later. Greetings from "+serverHostName()+"!")}else{alert("We could not log you in. Please try again...")}}}document.getElementById("loading").style.display="none"})}function serverHost(){var a=window.location.host;if(a=="www.volcanodiscovery.com"){return"https://volcanodiscovery.com"}if(a=="www.volcanoadventures.com"){return"https://volcanoadventures.com"}if(a=="www.naturediscovery.de"){return"https://naturediscovery.de"}return location.protocol+"//"+a}function serverHostName(){var a=window.location.host;if(a=="www.volcanodiscovery.com"){return"volcanodiscovery.com"}if(a=="www.volcanoadventures.com"){return"volcanoadventures.com"}if(a=="www.naturediscovery.de"){return"naturediscovery.de"}return a}function staticHost(){return"https://ww2.volcanodiscovery.com"}function logout(){var a=serverHost()+"/logout.php";var b="cookie="+readCookie("fe_typo_user");mkRequest(a,"",b,function(e){var c=loginLink+loginForm+forgotPasswordLink+resendPasswordLink;document.getElementById("login").innerHTML=c;isLoggedIn=false;userName="";userUid=0})}function loading(a){var b=document.getElementById("loading");if(b==null){return}b.style.display="";b.style.offsetLeft=a.style.offsetLeft;b.style.offsetTop=a.style.offsetTop}function sendLogin(e){loading(e);var b=serverHost()+"/login.php";var g="";var a=e.getElementsByTagName("INPUT");var f="";for(var c=0;c8&&h.length<100){if(window.location.host==serverHostName()){setCookie("fe_typo_user",h,2)}getUserName(true,true,h)}else{getUserName(true,true)}})}function requestPW(){var e=document;var b=serverHost()+"/sendPW.php";var a=e.getElementById("rpwemail").value;var c="email="+encodeURIComponent(a);if(!validateEmail(a)){return alert("The email seems not to be valid")}loading(e.getElementById("rpwemail"));mkRequest(b,"",c,function(f){alert("Your username and password have been sent to you.");e.getElementById("loading").style.disply="none"})}function validateEmail(a){var b=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;if(b.test(a)==false){return false}return true}function startMap(){dlJS("https://www.volcanodiscovery.com/app/earthquakemap/map_32.js");if(document.getElementById("loading2")!=null){document.getElementById("loading2").style.display="none"}}function setupMMenu(){var l=document;var n=l.getElementById("mMenu");n.innerHTML="";var m=l.getElementById("sub2");var c=m.childNodes;for(i=0;i0){r.classList.add("expandable")}r.firstChild.removeAttribute("href");r.firstChild.classList.add("currentPage")}var j=r.lastChild;if(j.tagName=="UL"){if(i0){var a=l.createElement("UL");if(e.lastChild.tagName=="UL"){e.replaceChild(a,e.lastChild)}else{e.appendChild(a)}var h=k.childNodes;for(var j=0;j]*>((.|[\n\r])*)<\/body>/im;var f=g.exec(c);h.innerHTML=f[1];h.setAttribute("id","imagePoolInfoWin");h.setAttribute("class","jslghtbx");var e=document.getElementById("jslghtbx-contentwrapper");if(e==null){e=d.body}h.style.zIndex=e.style.zIndex+10;h.style.visibility="visible";h.style.opacity="1";h.style.backgroundColor="transparent";h.onclick=function(j){this.style.visibility="hidden";j.stopPropagation()};e.appendChild(h)}}})}else{document.getElementById("imagePoolInfoWin").style.visibility="visible"}}function initLightbox(){if(typeof Lightbox=="undefined"){return setTimeout("initLightbox()",300)}var b=new Lightbox();var a={boxId:false,dimensions:true,captions:true,prevImg:false,nextImg:false,hideCloseBtn:false,closeOnClick:true,loadingAnimation:"//"+window.location.host+"/loading.gif",animElCount:1,preload:true,carousel:true,animation:200,nextOnClick:true,responsive:true,maxImgSize:0.75,keyControl:true,onopen:function(){},onclose:function(){},onload:function(f){var e=document.getElementById("jslghtbx-contentwrapper");var c=e.firstChild;if(c.src!=null){if(lbImageCollection[c.src]!=null){countImage(lbImageCollection[c.src])}}},onresize:function(){var j=document.getElementById("jslghtbx-contentwrapper");var e=j.firstChild;var h=j.lastChild;if(h.tagName!="P"){return}h.style.width=(e.offsetWidth-40)+"px";if(e.src!=null&&e.capExpanded==null){e.capExpanded=true;var g=lbImageCollection[e.src];if(g!=null){var l="",k="";if(isVoted(g)){k=''}else{l=' onclick="event.stopPropagation();voteLB('+g+',event);return false;" title="Vote this as favourite picture of the month!"';k="vote this"}var f="";f='
"+k+" [?]
";h.innerHTML+=f}}var c=parseInt(e.style.marginTop);if(!c){return}c-=Math.round(0.5*h.offsetHeight);e.style.marginTop=c+"px"},onloaderror:function(c){}};b.load(a)}function dlJS(a,c){var b=document.createElement("script");b.async="";b.src=a;document.getElementsByTagName("head")[0].appendChild(b);if(c){b.addEventListener(onload,c)}}function getLangKey(){if(siteLang==0){return""}var a=window.location.pathname.split("/");if(a.length<2){return""}if(a[1].length==2){return a[1]+"/"}return""}function loadAdsense(){dlJS("//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js")}function loadAdsenseAndPubstar(){loadAdsense()}function loadContentAd(){var g=document;if(typeof contentAd2Conf!="undefined"){var b=[];for(var e in contentAd2Conf){b.push(e+"="+encodeURIComponent(contentAd2Conf[e]))}b.push("cb="+encodeURIComponent((new Date).getTime()));var c=g.createElement("script");c.async=1;c.src="//api.content.ad/Scripts/widget2.aspx?"+b.join("&");g.getElementById("contentad"+contentAd2Conf.wid).appendChild(c)}if(typeof contentAd1Conf!="undefined"){var b=[];for(var e in contentAd1Conf){b.push(e+"="+encodeURIComponent(contentAd1Conf[e]))}b.push("cb="+encodeURIComponent((new Date).getTime()));var f=g.createElement("script");f.async=1;f.src="//api.content.ad/Scripts/widget2.aspx?"+b.join("&");document.getElementById("contentad"+contentAd1Conf.wid).appendChild(f)}}function addLikeButtons(){document.getElementById("like").style.visibility="visible";var b=[location.protocol,"//","www."+serverHostName(),location.pathname].join("");var a='';document.getElementById("like").innerHTML=a+document.getElementById("like").innerHTML}function addAddThis(){if(location.host.substr(0,3)!=="www"){return}document.getElementById("like").style.visibility="visible";dlJS("//s7.addthis.com/js/300/addthis_widget.js#domready=1&pubid=volcanodiscovery");var a='
';document.getElementById("like").innerHTML+=a}function loadScriptsAfterGeneralConsent(){loadScripts(true)}function checkIframesForDomain(a){var a=a||"http";var b=document.getElementsByTagName("iframe");if(!b){return false}if(b.length==0){return false}for(i=0;iYour privacy
This site uses cookies and third party components to improve user experience and functionality and show you relevant advertising.
By continuing to visit this website, you agree to our updated Privacy Policy.
',adsense:"This site would like to show advertising from google adsense. Without the relatively small income from advertising, we could not maintain it.",pubstar:"This site would like to show advertising from 3rd parties. Without the relatively small income from advertising, we could not maintain it.",ganalytics:"This site would like to use google analytics to build anonymous statistics about the useage of this website.",contentad:"This site would like to show advertising from Content.Ad. Without the relatively small income from advertising, it could not exist.",fb:"This site uses the facebook like/share plugin.",addthis:"This site uses the AddThis social media sharing plugin with the Twitter button enabled.",fbpixel:"This site would like to use a facebook tracking pixel to build a custom audience of people interested in volcano touring.",youtube:"This site wants to show embedded youtube content (videos).",vimeo:"This site wants to show embedded videos from Vimeo.",fbiframes:"This site wants to show embedded posts from facebook in iframes.",twitter:"This site wants to show embedded posts from twitter.",map:"This site wants to use an interactive map."};var s={general:"I agree"};var b={general:"More info + settings"};var n=testCookieConsent("general",loadScriptsAfterGeneralConsent,t.general,false,s.general,b.general,k);if(!n){return}var p=readCookie("adhintshown"),l=false,e=new Date();var c=readCookie("c_adsense")==="n"||false;if(readCookie("isSupporter")||getParam("openedFromPro")){isSupporter=1;if(getParam("openedFromPro")){setCookie("isSupporter",e.getTime(),24)}}if(u.getElementById("VYvHtkCSrpdb")){blocksAds=0;if(p!=null||p>e.getTime()-86400*100){blocksAds=-1}}else{blocksAds=1}if(typeof adsbygoogle!="undefined"&&blocksAds==1&&!isSupporter){var q="";if(siteLang==0){q='Our website is made possible by displaying online advertisements to our visitors.
\nPlease consider supporting us by disabling your ad blocker for this site or by sending a small donation to the developer.
-->more info'}if(q&&u.getElementById("blockNote")){var o=u.getElementById("blockNote");if(p==null||p599)){n=testCookieConsent("fb",addLikeButtons,t.fb,false,a,v,k+"#fb");if(n){addLikeButtons()}if(!needCookieConsent&&g<8000&&devWidth>599&&window.location.host=="www.volcanodiscovery.com"){n=testCookieConsent("addthis",addAddThis,t.addthis,false,a,v,k+"#addthis");if(n){addAddThis()}}}}function checkIfCookieConsentNeeded(a){if(typeof geoplugin_inEU=="undefined"&&a<10){return setTimeout("checkIfCookieConsentNeeded("+(a+1)+")",300)}if(typeof geoplugin_inEU=="undefined"){needCookieConsent=true}else{saveResult=true;if(geoplugin_inEU()){needCookieConsent=true;if(geoplugin_countryCode()=="DE"){excludeScripts=true}}else{needCookieConsent=false}if(saveResult){if(needCookieConsent){setCookie("CCode",geoplugin_countryCode(),7*24)}else{setCookie("CCode","-",7*24)}}}loadScripts()}function insertAfter(b,a){a.parentNode.insertBefore(b,a.nextSibling)}function init(){var j=document;var f=readCookie("CCode");if(f){if(f!="-"){needCookieConsent=true;if(f=="DE"){excludeScripts=true}}else{needCookieConsent=false}loadScripts()}else{if(needCookieConsent){dlJS("https://ssl.geoplugin.net/javascript.gp?k=24022ffc16bfd11d");checkIfCookieConsentNeeded(1)}else{loadScripts()}}if(j.getElementById("firstTimeHint")){var n=readCookie("lastVisit");var c=new Date().getTime();if(n&&c-n<2*864000000){j.getElementById("firstTimeHint").style.display="none"}setCookie("lastVisit",c)}initLightboxIfNeeded();var e=j.getElementById("map_canvas");if(e!=null){if(e.innerHTML==""){if(j.getElementById("loading")!=null){var g=j.getElementById("loading").cloneNode(true);g.id="loading2";e.appendChild(g);g.style.display="";g.style.position="relative";g.style.top="0";g.style.left="0"}}}if(e){var m=document.getElementsByTagName("head")[0];var l=document.createElement("link");l.rel="stylesheet";l.type="text/css";l.href="https://www.volcanodiscovery.com/app/earthquakemap/leaflet/leaflet_02.css";l.media="all";m.appendChild(l);if(storedMarkers.length+showList.length>0||document.getElementById("map_canvas")){startMap()}}if(checkIframesForDomain("earthquakes")){loadEQIframes()}dWidth();initClearDefault();j.getElementById("sBtn").addEventListener("onclick",function(p){show_hide("sForm");p.preventDefault()},false);if(j.getElementById("login")!=null&&devWidth>599){getUserName(false,false)}if(j.addEventListener){j.getElementById("menuBtn").addEventListener("touchstart",function(p){j.getElementById("menuBtn").onclick=null;show_hide("mMenu")})}setupMMenu();if(j.addEventListener){var a=j.getElementById("mMenu");a.addEventListener("click",clickOnListItem,false)}else{j.attachEvent("onclick",clickOnListItem)}placeRC();startBannerRotation();window.addEventListener("resize",function(p){placeRC()},false);if(typeof imageUid!="undefined"){countImage(imageUid)}if(window.location.href.indexOf("earthquake")==-1&&(!isMobile||devWidth>500)){var k=getLangKey();if(j.getElementById("randompics")!=null){var b=j.getElementById("randompics");var o=j.createElement("div");o.className="colorcell";o.innerText="Random pictures";b.appendChild(o);if(typeof h=="undefined"){var h="randompics.htm"}h=staticHost()+"/"+k+h;mkRequest(h,"get","",function(s){var u=s.responseText;var r=[];var q=u.indexOf('
");r.push(u.substr(0,p+12));u=u.substr(p);q=u.indexOf('