<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Wikinews: World News" author="EG" author_email="gadgets.rae+feedback@gmail.com" height="520" width="500"
           scrolling="true" 
            author_aboutme="http://wpcpuzzlesonline.com"
            author_location="India"
            author_quote="Impossible is nothing" 
            author_link="http://wpcpuzzlesonline.com"
            category="news"
            category2="funandgames"
           description="News is the communication of information on current events which is presented by print, broadcast, Internet, or word of mouth to a third-party or mass audience. 

One theory claims that the English word news developed in the 14th century as a special use of the plural form of new. In Middle English, the equivalent word was newes, like the French nouvelles and the German neues. Similar developments are found in the Slavic languages – the Czech and Slovak noviny (from nový, new), the cognate Polish nowiny and Russian novosti – and in the Celtic languages: the Welsh newyddion (from newydd) and the Cornish nowodhow (from nowydh).
  
  This gadget will bring Wikinews.com News directly to your blog or website. Everyday it will get updated with the latest news.
           Keywords: News, Wikinews, Daily news, News updates, Everyday News"
           thumbnail="https://sites.google.com/site/gadgetcoding/images/general/General_News_Wikinews.PNG" 
           screenshot="https://sites.google.com/site/gadgetcoding/images/general/General_News_Wikinews.PNG" 
          title_url="http://wpcpuzzlesonline.com">
 <Require feature="dynamic-height" /> 
 <Require feature="analytics" /> 
 <Require feature="views" /> 
 </ModulePrefs>

<Content type="html">
<![CDATA[

<div id="sizer"></div>
<div id="vvvTitle" align="center"></div>
 <div id="imageLinks" style="text-align:center;align:center" align="center">
<script type="text/javascript"><!--
module_url = "hosting.gmodules.com/ig/gadgets/file/111862472597380628785/News.xml"
//-->
</script>
<script type="text/javascript" src="https://sites.google.com/site/gadgetcoding/scripts/imageLinks.js">
</script>
</div>  
<div id="esnesda" style="text-align:center;align:center" align="center">
<script type="text/javascript" src="https://sites.google.com/site/gadgetcoding/home/esnesda/general/468-60.js">
</script>
</div>  
<div id="vvv" align="left">
<img src="http://www.google.com/ig/images/spinner.gif">
</div>

 <div id="esnesda2" style="text-align:center;align:center" align="center">
<script type="text/javascript" src="https://sites.google.com/site/gadgetcoding/home/esnesda/general/468-60L.js">
</script>
</div>   

<div id="vvvSummary" align="justify"></div>
<div id="analytics" >
<script type="text/javascript"><!--
name = "General_News_Wikinews"
//-->
</script>
<script type="text/javascript" src="https://sites.google.com/site/gadgetcoding/scripts/general/analytics.js">
</script>
</div>
 
<script>
var max; 

function resize()
{
var elem = document.getElementById("vvv");
if( elem == undefined || elem == null)
return false;
if(elem.width > max)
elem.width = (max -2 );
_IG_AdjustIFrameHeight();
}

function extractURL(txt)
{
var reqtext;
var descBindx = txt.indexOf('<div class="latest_news_text"');
var descEindx = txt.indexOf('</div>',descBindx);
reqtext = txt.slice(descBindx, descEindx+6);
if(reqtext.length != 0)
{
reqtext = reqtext.replace(/href=/g, 'target="_blank" href=');
reqtext = reqtext.replace(/\/wiki\//g, 'http://en.wikinews.org/wiki/');
}

document.getElementById("vvv").innerHTML = '<font face=\'Arial\' size=\'-1\'>'+ reqtext + '</font>';
//resize();  
var x = document.getElementById("esnesda").innerHTML;
document.getElementById("esnesda").innerHTML = x;     
}

function initgadget()
{     
var url= "http://en.wikinews.org/wiki/Main_Page";
_IG_FetchContent(url, extractURL);
max = document.getElementById("sizer").offsetWidth;
//resize();

}
_IG_RegisterOnloadHandler(initgadget);
</script>

]]>
</Content>
</Module>
