<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs
     title="Quotes TV - Genius Box"
     title_url="http://web.sangear.net/"
     description="Random Pearls of Wisdom. Changes every Twenty Seconds. Cant wait, Press Blue Button"
     height="235" width="252"
     directory_title="Quotes TV - Genius Box"
     author="Anantha Narayan"
     author_location="Bangalore, India"
     author_affiliation="SAN Gear"
     screenshot="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/gbox.png"
     thumbnail="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/gbox-tn.png"
     scaling="false"
     scrolling="false"
     author_photo="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/anantha-narayan.png"
     author_aboutme="Electronic Webmaster"
     author_link="http://www.sangear.net/"
     author_quote="From SoulNet to InterNet"
     author_email="delabs@yahoo.com"/>
<Content type="html"><![CDATA[
<div id="back_side"></div><div id="front_side"></div>
<div id="content_div" ></div>
<div id="push_it">
<img onclick="get_quote();" name="qote_btn" alt="Get Quote" title="Get Quote" src="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/button-off.png" />
</div>
<div id="credits"><a href="http://www.sangear.net/" target="_blank" >SAN Gear</a></div> 
<div id="help_bln"></div>
<script type="text/javascript">
var btn_0 = new Image();
btn_0.src = "http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/button-off.png";
var btn_1 = new Image();
btn_1.src = "http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/button-on.png";   
var summary = 1;
var entries =9; 
var feed_no;
var feed_ln;
var just_done=0; 
var feed_url = new Array(); 
var led_tm;
var help_hid = document.getElementById('help_bln');  
feed_url[0] = "http://feeds.feedburner.com/brainyquote/QUOTEBR";  
feed_url[1] = "http://feeds.feedburner.com/brainyquote/QUOTEBR";
feed_url[2] = "http://www.wisdomquotes.com/index.xml";
feed_url[3] = "http://feeds.feedburner.com/brainyquote/QUOTENA";
feed_url[4] = "http://www.quotedb.com/quote/quote.php?action=quote_of_the_day_rss";
feed_url[5] = "http://www.quotationspage.com/data/qotd.rss"; 
feed_url[6] = "http://feeds.answers.com/AnswersQuote?format=xml";
feed_url[7] = "http://quotes4all.net/rss/060000110/quotes.xml";
feed_url[8] = "http://feeds.feedburner.com/time/qotd?format=xml";
setTimeout("hide_help();",10000); 
get_quote(); 
//
function hide_help(){
help_hid.style.visibility = "hidden";  
}  
//  
function flash_led(){
document.images.qote_btn.src = btn_1.src;   
setTimeout("led_off();",3000);
}
//  
function led_off(){    
document.images.qote_btn.src = btn_0.src;
just_done = 0;
led_tm = setTimeout("get_quote();",15000);    
}  
//  
function get_quote(){ 
if (just_done == 0) {
clearTimeout(led_tm);
just_done = 1;  
flash_led();
_IG_FetchFeedAsJSON(
  feed_url[Math.ceil(Math.random() * 8)],
  function(feed) {    
    if (feed == null){ 
    return;
  } 
    var html = "";      
  feed_ln = feed.Entry.length;
  entries = feed_ln-1;
  feed_no = Math.ceil(Math.random() * entries);
     if (feed.Entry) {
         html += "<div>"
	      +   "<a target='_blank' href='" + feed.Entry[feed_no].Link + "'>"
	      +      feed.Entry[feed_no].Title
	      +   "</a> ";             
             html += "<br>" + feed.Entry[feed_no].Summary + "</div>";        
    }
    _gel("content_div").innerHTML = html;
  }, entries, summary);  
  }
 } 
</script>    
<style type="text/css">
font,div{
	color: #383A3E;
	font-size: 12px;
}
#content_div {
  position: absolute; 
  font-size:12pt;
  left: 25px;
  top: 25px;
  height:150px;
  width:200px;
  color: #383A3E;
  text-align: center;
  z-index: 100;
  overflow: hidden;
  font-family: Verdana,Arial,Helvetica,sans-serif;
  background-color: transparent;  
}
#push_it {
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
  position: absolute; 
  left: 90px;
  top: 200px;
  height:20px;
  width:20px;
  z-index: 400;
  background-color: transparent;  
}
#help_bln {
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
  position: absolute; 
  left: 80px;
  top: 110px;
  height:80px;
  width:80px;
  z-index: 500;
  background-image: url(http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/help.png);
  background-color: transparent; 
  visibility: visible; 
}   
#credits {
  position: absolute; 
  left: 145px;
  top: 200px;
  height:17px;
  width:90px;
  z-index: 400;
  font-size:12pt;
  font-weight: bold;
  font-family: Verdana,Arial,Helvetica,sans-serif;
  background-color: #B6B9B9;  
}  
a:link,a:active,a:visited {
	text-decoration: none;
	color: #625EAB;
	font-weight: bold;
	font-size: 12px;
}
a:hover {
	text-decoration: none;
	color: #FF0084;
	font-weight: bold;
	font-size: 12px;
}
#front_side{
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	position: absolute;
	left: 15px;
	top: 15px;
	height:170px;
	width:220px;
        z-index: 10;
        text-align: center;
        background-image: url(http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/screen.png);
        background-color: transparent;
}    
#back_side{
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	position: relative;
	left: 0px;
	top: 0px;
	height:235px;
	width:252px;
        z-index: 50;
        text-align: center;
        background-image: url(http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/ibm-pc.png);
        background-color: transparent;
} 
</style> 
]]></Content>
</Module>
