if(!WgWidget)var WgWidget=function(l,e){function i(){h=window.jQuery.noConflict(!0);j()}function k(f,a){if(!document.getElementById(a)){var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("src",f);b.setAttribute("id",a);(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(b)}}function m(f){var a={},b={m:3,params:["WINDSPD","SMER","TMPE","CDC","APCPs"],tabs:!1,wg_logo:!0,spotname:!0,first_row_minfo:!0,options_link:!1,link_archive:!1,
link_tides:!1,link_link:!1,odh:3,doh:22,fhours:72,wrap:200,lng:"en",logo:!0,poweredby:!0,path_img:d+"/int/img/",path_link:n+"/int/",fcst_maps:!1},c;for(c in f)b[c]=f[c];a.url=window.location.href;a.hostname=window.location.hostname;a.s=b.s;a.m=b.m;a.lng=b.lng;var g=a.s+"_"+a.m+"_"+a.lng;typeof WgJsonCache==="undefined"&&(WgJsonCache={});WgJsonCache[g]?(b.lang=WgJsonCache[g].lang,WgFcst.showForecast(WgJsonCache[g].fcst,b,"wgfcstid"+e,e,b)):$.getJSON(d+"/int/widget_json.php?callback=?",a,function(a){a.error?
a.fcst=a:(b.lang=a.lang,WgJsonCache[g]=a);WgFcst.showForecast(a.fcst,b,"wgfcstid"+e,e,b)})}function j(){h(document).ready(function(){var c="http://microclass2011.devphp.m4u.pl/css/wgstyle42.min.css";if(!document.getElementById("wg_fcst_css")){var a=document.createElement("link");a.setAttribute("type","text/css");a.setAttribute("rel","stylesheet");a.setAttribute("href",c);a.setAttribute("id","wg_fcst_css");(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}k(d+"/js/jq_fcst_plugins.4.min.js","wg_fcst_plugins");
k("http://microclass2011.devphp.m4u.pl/js/wg_forecasts.20.min.js","wg_fcst_js");m(l)})}var h,d="http://widget.windguru.cz",n="http://www.windguru.cz";if(window.jQuery===void 0||parseFloat(window.jQuery.fn.jquery.substr(0,3))<1.4){var c=document.createElement("script");c.setAttribute("type","text/javascript");c.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js");c.onload=i;if(navigator.userAgent.indexOf("MSIE")!=-1)c.onreadystatechange=function(){(this.readyState=="complete"||this.readyState=="loaded")&&
i()};(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(c)}else h=window.jQuery,j()};

