/**
 * Get Weather Information
 *
 * @author: Rilwis
 * @url: http://hontap.blogspot.com
 * @email: rilwis@gmail.com
 * @license: MIT License
 */

function showWeatherCallback(d){var c=d.query.results.weather.rss.channel,a=c.item.description.match(/http:\/\/[^"']*/),b='<img style="vertical-align:middle" height="30" width="30" src="'+a+'" /> <span style="font-size:15px; font-weight:bold;">'+c.item.condition.temp+"&deg;C</span>";document.write(b)}function showWeather(a){var c="http://query.yahooapis.com/v1/public/yql?q=",d='use "http://github.com/yql/yql-tables/raw/master/weather/weather.bylocation.xml" as we;select * from we where location="'+a+'" and unit="c"',b=c+encodeURIComponent(d)+"&format=json&diagnostics=false&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=showWeatherCallback";document.write('<script type="text/javascript" src="'+b+'"><\/script>')};


function flashWrite(url,w,h,id,bg,vars){

     var flashStr=
    "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
    "<param name='allowScriptAccess' value='always' />"+
    "<param name='movie' value='"+url+"' />"+
    "<param name='FlashVars' value='"+vars+"' />"+
    "<param name='wmode' value='transparent' />"+
    "<param name='allowScriptAccess' value='sameDomain' />"+
    "<param name='menu' value='false' />"+
    "<param name='quality' value='high' />"+
    "<embed src='"+url+"' allowScriptAccess='sameDomain' FlashVars='"+vars+"' wmode='transparent' menu='false' quality='high' width='"+w+"' height='"+h+"' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
    "</object>";
    document.write(flashStr);
}
