if(!WgWidget)var WgWidget=function(i,f){function j(){a=window.jQuery.noConflict(!1);k()}function l(e){if(!m){m=!0;var c={},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:g+"/int/img/",path_link:n+"/int/",fcst_maps:!1},d;for(d in e)b[d]=e[d];c.url=window.location.href;c.hostname=window.location.hostname;c.s=b.s;c.m= b.m;c.lng=b.lng;var h=c.s+"_"+c.m+"_"+c.lng,e=a("#"+f);e.hasClass("cleanslate")||e.addClass("cleanslate");e.hasClass("wgfcst")||e.addClass("wgfcst");"undefined"===typeof WgJsonCache&&(WgJsonCache={});WgJsonCache[h]?(b.lang=WgJsonCache[h].lang,WgFcst.showForecast(WgJsonCache[h].fcst,b,"wgfcstid"+f,f,b)):a.getJSON(g+"/int/widget_json.php?callback=?",c,function(a){a.error?a.fcst=a:(b.lang=a.lang,WgJsonCache[h]=a);WgFcst.showForecast(a.fcst,b,"wgfcstid"+f,f,b)})}}function k(){a(document).ready(function(){a("", {rel:"stylesheet",type:"text/css",href:"css_widget.css"}).appendTo("head");"undefined"===typeof WgFcst?(a.ajaxSetup({cache:!0}),a.getScript(g+"/js/jq_fcst_plugins.5.min.js",function(){a.ajaxSetup({cache:!0});a.getScript(g+"/js/wg_forecasts.24.min.js",function(){a.ajaxSetup({cache:!1});l(i)})}),a.ajaxSetup({cache:!1})):l(i)})}var a,g="http://widget.windguru.cz",n="http://www.windguru.cz",m=!1;if(void 0===window.jQuery||1.4>parseFloat(window.jQuery.fn.jquery.substr(0,3))){var d=document.createElement("script"); d.setAttribute("type","text/javascript");d.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js");d.onload=j;if(-1!=navigator.userAgent.indexOf("MSIE"))d.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&j()};(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(d)}else a=window.jQuery,k()};