function b(a,f){document.getElementById(a).innerHTML=f;} function is_b(a){ return document.getElementById(a);} var meteoprogc_err_1464861313 = "Error. Block is used without permission. Contact www.meteoprog.gr"; function meteoprog_u_set_error_1464861313(str){ meteoprogc_err_1464861313 = str; valid_1464861313(); } function meteoprog_u_1464861313(a){ //alert(JSON.stringify(a)); var suff = (a.suff_id)? '_'+a.suff_id : ''; //a.status = "htmlErr"; if(a.status=="ok"){ var k = "meteoprogc_1464861313_"+a.city_url; if(is_b(k+"_temp"+suff)) b(k+"_temp"+suff,a.tempr); if(is_b(k+"_press"+suff)) b(k+"_press"+suff,a.pressure); if(is_b(k+"_hum"+suff)) b(k+"_hum"+suff,a.humidity); if(is_b(k+"_wshort"+suff)) b(k+"_wshort"+suff,a.wind_short); if(is_b(k+"_wspeed"+suff)) b(k+"_wspeed"+suff,a.wind); if(is_b(k+"_dtday"+suff)) b(k+"_dtday"+suff,a.dtday); if(is_b(k+"_dttime"+suff)) b(k+"_dttime"+suff,a.dttime); if(is_b(k+"_dtmonth"+suff)) b(k+"_dtmonth"+suff,a.date_month); if(is_b(k+"_icon"+suff)) document.getElementById(k+"_icon"+suff).src=a.icon; if(is_b(k)) document.getElementById(k).style.display="block"; } else if(a.status=="htmlErr") { var msg_id = "meteoprog_1464861313"; if(document.getElementById(msg_id)) { document.getElementById(msg_id).className="meteoprog_1464861313_error"; b(msg_id,"

"+meteoprogc_err_1464861313+"

"); } } } function meteoprog_go() { if(location.protocol.substr(0,4)=="http" && location.href.match("^http://www.meteoprog.gr") == null) { //if(1) { var u = "http://www.meteoprog.gr"+"/informers/stat.php?type="+meteoprog_widget.type+'&act=click'; var m_img = new Image(); m_img.src = u; } } function meteoprog_go_view() { if(location.protocol.substr(0,4)=="http" && location.href.match("^http://www.meteoprog.gr") == null) { var u = "http://www.meteoprog.gr"+"/informers/stat.php?type="+meteoprog_widget.type+'&act=view'; var m_img = new Image(); m_img.src = u; } } function valid_1464861313(){ d=document.getElementById("meteoprog_1464861313"); a=d.getElementsByTagName("a"); for(i=0;i < a.length;i++){ if(a[i].getAttribute("href") == null) continue; //if(a[i].style.display=="none"){e=new Err;e.et("html");meteoprog_u_1464861313(e);return false} //alert(a[i].getAttribute("href")); // if((a[i].style.display=="none") || (!a[i].getAttribute("href").match("^http://www.meteoprog.gr"))){meteoprog_u_1464861313(new function(){this.status="htmlErr"});return false} if((a[i].style.display=="none")){meteoprog_u_1464861313(new function(){this.status="htmlErr"});return false} a[i].setAttribute('onmousedown', 'meteoprog_go()'); } if(a.length<1){meteoprog_u_1464861313(new function(){this.status="htmlErr"});return false;} else return true; } (function(){ //var site = escape(location.href); if(valid_1464861313()){ var a=document.createElement("script");a.type="text/javascript";a.async=true;a.src="http://www.meteoprog.gr"+meteoprog_widget.name;d.appendChild(a); meteoprog_go_view(); } })();