
<?xml  version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Starea Vremii in Romania" 
category="tools"
category2="technology"
description="Gadgetul afiseaza starea vremii din Romania. Nu are nevoie de nici o setare, judetul se schimba automat sau atunci cand faceti click oriunde pe fereastra gadgetului" 
title_url="http://gadget-blog.ro/" 
author="Johnny Kind" 
author_email="wattaman.a@gmail.com"  
author_photo="http://farm7.static.flickr.com/6104/6266524214_0d6f3254ec_m.jpg" 
author_aboutme="Hey, check out http://cafebar.ro/" 
author_location="Bangkok, Thailand"
author_quote="I like doing gadgets!"
author_link="http://real-estate-th.com/author/wattaman" 
screenshot="http://farm7.static.flickr.com/6098/6317459172_ea9c398ce3.jpg" 
thumbnail="http://farm7.static.flickr.com/6098/6317459172_ea9c398ce3.jpg" 
height="230" width="250"></ModulePrefs>
<Content type="html" view="home">
<![CDATA[

<style>
@charset UTF-8;
body{font-family:Tahoma, Genevam, sans-serif}
.weatherFeed{font-family:Arial, Helvetica, sans-serif;font-size:90%;width:240px;color:#000;}
.weatherFeed a{color:#888;}
.weatherFeed a:hover{color:#eee;text-decoration:none;}
.weatherItem{text-align:right;padding:.8em;}
.weatherCity{text-transform:uppercase;color:#000;}
.weatherTemp{font-size:2.8em;font-weight:700;color:#000;}
.weatherDesc,.weatherCity{font-weight:700;}
.weatherDesc{margin-bottom:.4em;color:#000;}
.weatherRange,.weatherWind{font-size:.8em;}
.weatherLink{margin-top:6px;text-align:left;font-size:.8em;}
.vertical{position:relative;overflow:hidden;height:160px;width:240px;border:1px solid #555;background:#efefef}
.items{position:absolute;height:20000em;margin:0;}
.items div.weatherItem{height:160px;}
.navi{width:250px;height:20px;}
.navi a{width:8px;height:8px;float:left;display:block;font-size:1px;margin:3px;}
.navi a:hover{background-position:0 -8px;}
.navi a.active{background-position:0 -16px;}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script src="http://cdn.jquerytools.org/1.1.2/full/jquery.tools.min.js"></script>
<script type="text/javascript">
(function($){var row='odd';$.fn.weatherfeed=function(locations,options){var defaults={unit:'c',image:true,highlow:true,wind:true,link:true,showerror:true};var options=$.extend(defaults,options);return this.each(function(i,e){var $e=$(e);if(!$e.hasClass('weatherFeed'))$e.addClass('weatherFeed');if(!$.isArray(locations))return false;var count=locations.length;if(count>10)count=10;var locationid='';for(var i=0;i<count;i++){if(locationid!='')locationid+=',';locationid+="'"+locations[i]+"'";}
now=new Date()
var query="select * from weather.forecast where location in ("+locationid+") and u='"+options.unit+"'";var api='http://query.yahooapis.com/v1/public/yql?q='+encodeURIComponent(query)+'&rnd='+now.getFullYear()+now.getMonth()+now.getDay()+now.getHours()+'&format=json&callback=?';$.ajax({type:'GET',url:api,dataType:'json',success:function(data){if(data.query){if(data.query.results.channel.length>0){var result=data.query.results.channel.length;for(var i=0;i<result;i++){_callback(e,data.query.results.channel[i],options);}}else{_callback(e,data.query.results.channel,options);}}else{if(options.showerror)$e.html('<p>Weather information unavailable</p>');}},error:function(data){if(options.showerror)$e.html('<p>Weather request failed</p>');}});});};var _callback=function(e,feed,options){var $e=$(e);var wd=feed.wind.direction;if(wd>=348.75&&wd<=360){wd="N"};if(wd>=0&&wd<11.25){wd="N"};if(wd>=11.25&&wd<33.75){wd="NNE"};if(wd>=33.75&&wd<56.25){wd="NE"};if(wd>=56.25&&wd<78.75){wd="ENE"};if(wd>=78.75&&wd<101.25){wd="E"};if(wd>=101.25&&wd<123.75){wd="ESE"};if(wd>=123.75&&wd<146.25){wd="SE"};if(wd>=146.25&&wd<168.75){wd="SSE"};if(wd>=168.75&&wd<191.25){wd="S"};if(wd>=191.25&&wd<213.75){wd="SSW"};if(wd>=213.75&&wd<236.25){wd="SW"};if(wd>=236.25&&wd<258.75){wd="WSW"};if(wd>=258.75&&wd<281.25){wd="W"};if(wd>=281.25&&wd<303.75){wd="WNW"};if(wd>=303.75&&wd<326.25){wd="NW"};if(wd>=326.25&&wd<348.75){wd="NNW"};var wf=feed.item.forecast[0];wpd=feed.item.pubDate;n=wpd.indexOf(":");tpb=_getTimeAsDate(wpd.substr(n-2,8));tsr=_getTimeAsDate(feed.astronomy.sunrise);tss=_getTimeAsDate(feed.astronomy.sunset);if(tpb>tsr&&tpb<tss){daynight='d';}else{daynight='n';}
var html='<div class="weatherItem '+row+'"';if(options.image)html+=' style="background-image: url(http://l.yimg.com/a/i/us/nws/weather/gr/'+feed.item.condition.code+daynight+'.png); background-repeat: no-repeat;"';html+='>';html+='<div class="weatherCity">'+feed.location.city+'</div>';html+='<div class="weatherTemp">'+feed.item.condition.temp+'&deg;</div>';html+='<div class="weatherDesc">'+feed.item.condition.text+'</div>';if(options.highlow)html+='<div class="weatherRange">High: '+wf.high+'&deg; Low: '+wf.low+'&deg;</div>';if(options.wind)html+='<div class="weatherWind">Wind: '+wd+' '+feed.wind.speed+feed.units.speed+'</div>';if(options.link)html+='<div class="weatherLink"><a href="'+feed.item.link+'" rel="nofollow" target="_blank">Alte detalii</a></div>';html+='</div>';if(row=='odd'){row='even';}else{row='odd';}
$e.append(html);};var _getTimeAsDate=function(t){d=new Date();r=new Date(d.toDateString()+' '+t);return r;};})(jQuery);
</script>

<script type="text/javascript">
$(document).ready(function(){
$('#test').weatherfeed(['ROXX0044','ROXX0024','ROXX0011','ROXX0019','ROXX0018','ROXX0003','ROXX0032','ROXX0026','ROXX0041','ROXX0007','ROXX0037','ROXX0035','ROXX0036','ROXX0016','ROXX0047','ROXX0031','ROXX0015','ROXX0012','ROXX0014','ROXX0046','ROXX0013','ROXX0040','ROXX0028','ROXX0008']).ajaxStop(function(){
$("div.scrollable").scrollable({
vertical: true,
size: 1
}).circular().navigator().autoscroll({
interval: 3000
})
})
})
</script>
<iframe border=0 frameborder=0 height=60 marginheight=0 marginwidth=0 name=explain scrolling=no src=http://atat.ro/about.html title=Portal width=234></iframe>
<div class="scrollable vertical">
<div id="test" class="items"></div>
</div>
<div class="navi"></div>
<span style="float:right"><a href="http://gadget-blog.ro">Gadget Blog</a></span>

]]>
</Content>
</Module>