<?xml version="1.0" encoding="UTF-8" ?> 
<Module>
  <ModulePrefs
  title="Urban Dictionary - Complete"
  title_url="http://www.mywebs.biz/Gadgets/"
  directory_title="Urban Dictionary - WOD, Random, Slang Lookup, and a funny Thesaurus!"
  description="This Urban Dictionary Gadget does it all. You can get todays Word Of The Day, roll the dice and hit the Random button, Look up funny Slang words or even use UD like a Thesaurus! This is the BEST UD Gadget around! :)"
  screenshot="http://hosting.gmodules.com/ig/gadgets/file/114384060115294472666/UD-Tabs-SS.jpg"
  thumbnail="http://hosting.gmodules.com/ig/gadgets/file/114384060115294472666/UD-Tabs-thumb.jpg"
  singleton="true"
  author="Anthony Goodley"
  author_photo="http://hosting.gmodules.com/ig/gadgets/file/114384060115294472666/Comet3_med.jpg"
  author_aboutme="I Love making Google Gadgets! :)"
  author_link="http://www.mywebs.biz"
  author_quote="Content is king in the SEO world."
  author_email="blaaam@gmail.com"
  category="lifestyle"
  category2="funandgames"
  width="400"
  height="150" >
    <Require feature="tabs" />
    <Require feature="dynamic-height" />
    <Require feature="analytics" />
  </ModulePrefs>
  <Content type="html">
   <![CDATA[
  <style type="text/css"> 
   .tablib_selected {
   font-size: 13px;
   background-color: #ffffff;   
   }
   .tablib_unselected {
   font-size: 10px;
    color: #660099;
   }
   .tablib_table {
   font-size:10px;
   }
   .tablib_emptyTab {
   padding:2px 5px;
   }
   .tablib_spacerTab {
   padding:0px 5px;
   }
   .uddaily, .uddaily td {
      font-size: 12px;
      font-family: Verdana, Arial, Helvetica, sans-serif;
   }
   .udword {
      margin: 4px 0;
      font-weight: bold;
   } 
   .uddefinition {
      padding-left: 20px;
   }
   .udexample {
      margin: 4px 0;
      font-style: italic;
      padding-left: 20px;
   }
   </style>
    <script> _IG_Analytics("UA-490166-2", "/UD_Complete-Tabs"); </script>
    <script type="text/javascript">
// Global Var for Cache time limit for all functions
CacheTime = "10";
CacheTimeMS = "10000";
    // Initialize tabs, designate the tab named "Word OF Day" as
    // the tab selected by default.
    var tabs = new _IG_Tabs(__MODULE_ID__, "Look Up");
    function MakeTabs() {
        tabs.addTab("<font color='#000099'>Word Of Day</font>", "WOD_ID", WODfunc);
        tabs.addTab("<font color='blue'>R</font><font color='red'>a</font><font color='purple'>n</font><font color='blue'>d</font><font color='green'>o</font><font color='red'>m</font>", "Random_ID", RandomSlang);
        tabs.addTab("<font color='#000099'>Look Up</font>", "LookUP_ID", PreLoadSlang);
        tabs.addTab("<font color='#000099'>Thesaurus</font>", "Thesaurus_ID", PreLoadThesaurus);
    }
// WOD CODE Block
function WODfunc() {
//_IG_FetchContent("http://www.mywebs.biz/Gadgets/WOD.php",WODcallback, {refreshInterval: (CacheTime)});
_IG_Analytics("UA-490166-2", "/UD_Complete-Tabs-WOD");
}
function WODcallback(WODresponseText) {
//_gel("WOD_ID").getElementsByTagName('td')[0].innerHTML = "<font size='-1'>" + WODresponseText + "</font>";
//_IG_AdjustIFrameHeight();
}


// Random CODE Block
function RandomSlang() {
  // var msg = new _IG_MiniMessage(__MODULE_ID__);
  // var loadMessage = msg.createStaticMessage(_gel("AJAXState"));

_IG_FetchContent("http://www.mywebs.biz/Gadgets/Random.php",Randomcallback, {refreshInterval: (CacheTime)});
ajaxUpdateState(1, 'RandomAJAXState');
}
function Randomcallback(RandomresponseText) {
_gel("Random_ID").getElementsByTagName('td')[4].innerHTML = "<font size='-1'>" + RandomresponseText + "</font>";
_gel("Random_ID").getElementsByTagName('td')[5].style.display = "block";
TargetDIV = "null";
ajaxUpdateState(2, 'RandomAJAXState');
_IG_AdjustIFrameHeight();
}
function RandomStats()
{
_IG_Analytics('UA-490166-2', '/UD-Tabs-Random/click');
}      
     


// Thesaurus CODE Block
function PreLoadThesaurus()
{
var URL2 = "http://www.mywebs.biz/Gadgets/Related.php?Word=Sleep";
_IG_FetchContent(URL2,Thesauruscallback, {refreshInterval: (10)});
ajaxUpdateState(1, 'ThesaurusAJAXState');
}


function MyThesaurus(ThesaurusWord)
{
//Variable from the FORM
var MyThesaurusWord = ThesaurusWord.value;
var escMyThesaurusWord = _esc(MyThesaurusWord);
var URL = "http://www.mywebs.biz/Gadgets/Related.php?Word=" + escMyThesaurusWord + "";
_IG_FetchContent(URL,Thesauruscallback, {refreshInterval: (CacheTime)});
ajaxUpdateState(1, 'ThesaurusAJAXState');
}

function Thesauruscallback(ThesauruscallbackresponseText)
{
_gel("ThesaurusImg").src = _IG_GetImage("http://hosting.gmodules.com/ig/gadgets/file/114384060115294472666/UD-logo-4-Gadget-124x47.jpg").src;
//_gel("Thesaurus_ID").getElementsByTagName('td')[3].innerHTML = "<font size='-1'>" + ThesauruscallbackresponseText + "</font>";
_gel("ThesaurusTarget").innerHTML = "<font size='-1'>" + ThesauruscallbackresponseText + "</font>";
TargetDIV = "null";
ajaxUpdateState(2, 'ThesaurusAJAXState');
_IG_AdjustIFrameHeight();
}

function ThesaurusStats()
{
 _IG_Analytics('UA-490166-2', '/UD_Tabs-Thesaurus/click');
}


// Slang CODE Block (Look Up)
function PreLoadSlang()
{
//_IG_AdjustIFrameHeight();
var URL2 = "http://www.mywebs.biz/Gadgets/Slang2.php?Word=Slang&Count=1";
_IG_FetchContent(URL2,LookUpcallback, {refreshInterval: (CacheTime)});
ajaxUpdateState(1, 'LookUPAJAXState');
} 
      
function MyInit(MySlangWord,MySlangCount)
{
//Variables from the FORM
var MyWord = MySlangWord.value;
var escMyWord = _esc(MyWord);
var MyCount = MySlangCount.value;
var URL = "http://www.mywebs.biz/Gadgets/Slang2.php?Word=" + escMyWord + "&Count=" + MyCount + "";
_IG_FetchContent(URL,LookUpcallback, {refreshInterval: (CacheTime)});
ajaxUpdateState(1, 'LookUPAJAXState');
}      

function MyInit2(MySlangWord,MySlangCount)
{
//Variables from the FORM
var MyWord = MySlangWord;
var escMyWord = _esc(MyWord);
var MyCount = MySlangCount;
var URL = "http://www.mywebs.biz/Gadgets/Slang2.php?Word=" + escMyWord + "&Count=" + MyCount + "";
_IG_FetchContent(URL,LookUpcallback, {refreshInterval: (CacheTime)});
ajaxUpdateState(1, 'LookUPAJAXState');
}     
function LookUpcallback(LookUpresponseText)
{
_gel("SlangImg").src = _IG_GetImage("http://hosting.gmodules.com/ig/gadgets/file/114384060115294472666/UD-logo-4-Gadget-124x47.jpg").src;
//_gel("LookUP_ID").getElementsByTagName('td')[9].innerHTML = "<font size='-1'>" + LookUpresponseText + "</font>";

//window.document.getElementById('LookUpTD').innerHTML = "<font size='-1'>" + LookUpresponseText + "</font>";
_gel("LookUPTD").innerHTML = "<font size='-1'>" + LookUpresponseText + "</font>";
//window.document.getElementById('TipJoy').style.display = "block";
_gel("TipJoy").style.display = "block";
TargetDIV = "null";
ajaxUpdateState(2, 'LookUPAJAXState');
_IG_AdjustIFrameHeight();
}
function SlangStats()
{
_IG_Analytics('UA-490166-2', '/UD_Tabs-Slang/click');
}     
function LookUpClear()
{
// was TD 4
//_gel("LookUP_ID").getElementsByTagName('td')[9].innerHTML = "Thank You for using my gadget! <button type='button' onClick='PreLoadSlang()'>Reload</button>";

window.document.getElementById('LookUPTD').innerHTML = "Thank You for using my gadget!";
window.document.getElementById('TipJoy').style.display = "none";
_IG_AdjustIFrameHeight();  
}
function RandomClear()
{
_gel("Random_ID").getElementsByTagName('td')[4].innerHTML = "Thank You for using my gadget!";
_gel("Random_ID").getElementsByTagName('td')[5].style.display = "none";
_IG_AdjustIFrameHeight();  
}





function ajaxUpdateState(state, MyTargetDIV) {
 TargetDIV = MyTargetDIV;
 var stateElem = window.document.getElementById(TargetDIV);
 if (stateElem) {
 // Dress up the state element a little
 stateElem.style.display = "block";
 stateElem.style.fontSize = "small";
 stateElem.style.border = "1px solid";
 stateElem.style.padding = "3px";
 stateElem.style.textAlign = "center";
 switch (state) {
 // LOADED - Request has been sent
 case 1:
 stateElem.style.backgroundColor = "#FF0000"; // red
 stateElem.innerHTML = "sending";
 break;
 // COMPLETE - Request/response is complete
 case 2:
 // Everything is OK
 stateElem.style.backgroundColor = "#00FF00"; // green
 stateElem.innerHTML = "received";
setTimeout("ajaxUpdateState(3, TargetDIV)", CacheTimeMS);
 break;
 case 3:
 // DELETE AJAXState
 stateElem.style.display = "none";
 break;
  }
 }
}
// document.getElementById("AJAXState").style = "display:none";

function CatchEnterKEY(SlangWord,SlangCount) {
 if (window.event && window.event.keyCode == 13) {
 MyInit(SlangWord,SlangCount);
SlangStats();
return false;
 } else { 
return true;
 }
}
function ThesaurusEnterKEY(ThesaurusWord) {
 if (window.event && window.event.keyCode == 13) {
 MyThesaurus(ThesaurusWord);
ThesaurusStats();
return false;
 } else { 
//return true;
 }
}   
    // Call init function to initialize and display tabs.
    _IG_RegisterOnloadHandler(MakeTabs);
    </script>
   <div id="WOD_ID" style="display:none">
<table width='100%'><tr><td><script type="text/javascript" src="http://www.urbandictionary.com/daily.js?definition=1&count=5"></script></td></tr>
<tr><td><img src="http://images2.mywebs.biz/Gadgets/Tabs-Spacer.gif" width="1" height="1">
<hr /><script language="javascript" src="http://tipjoy.com/custombutton?targetUser=MyWebs&targetUrl=http://www.mywebs.biz/Gadgets/&customMessage=Support%20this%20Gadget&charityMessage=Thank%20you&width=200&" ></script>
</td></tr></table>
</div>

 


  


<div id="Random_ID" style="display:none">
                                          
<table width='100%'><tr><td><table><tr><td><button type='button' onClick='RandomSlang(); RandomStats()'>Random Slang</button></td><td><div id="RandomAJAXState" style="display:block; width:100%" title="When this disappears it will work again"></div></td><td><button type='button' onClick='RandomClear()' title="to make window smaller">Clear</button></td></tr></table></td></tr><tr><td>Loading.....</td></tr><tr><td>
<img src="http://images2.mywebs.biz/Gadgets/Tabs-Spacer.gif" width="1" height="1">
<hr /><script language="javascript" src="http://tipjoy.com/custombutton?targetUser=MyWebs&targetUrl=http://www.mywebs.biz/Gadgets/&customMessage=Support%20this%20Gadget&charityMessage=Thank%20you&width=200&" ></script>
</td></tr></table>
</div>




<div id="LookUP_ID" style="display:block">
<table width='100%'>
 <tr> <!-- TR #1 -->
  <td><!-- #1 -->
      <form name='MySLang' action='' method='get' enctype='application/x-www-form-urlencoded'>
      <tt>Slang Word(s)</tt><br />
      <input onkeypress="return CatchEnterKEY(SlangWord,SlangCount)" type='text' name='SlangWord' value='' size='8'>
  </td>
  <td width="125"><!-- #2 --><img id="SlangImg" border='0' width='125' height='47'/></td>
  <td><!-- #3 -->
      <tt>Entry #</tt><br />
      <input onkeypress="return CatchEnterKEY(SlangWord,SlangCount)" type='text' name='SlangCount' value='1' size='3'>
  </td>
 </tr>
 <tr> <!-- TR #2 -->
  <td colspan='3'><!-- #1 - #4 -->
      <table><!-- UGLY nested table hack since LookUPAJAXState won't stay on 1 line cause of DIV -->
       <tr>
        <td><!-- #5 -->
           <input onclick='MyInit(SlangWord,SlangCount); SlangStats()' type='button' name='button' value='Slang Me'>
        </td>
        <td><!-- #6 -->
           <div id="LookUPAJAXState" style="display:block; width:100%" title="When this disappears it will work again"></div>
        </td>
        <td><!-- #7 -->
           <button type='button' onClick='LookUpClear()' title="to make window smaller">Clear</button></form>
        </td>
       </tr>
      </table>
  </td>
 </tr>
 <tr> <!-- TR #3 --><!-- #1 - #8 (next TD) -->
  <td id="LookUPTD" colspan='3'>
  </td>
 </tr>
 <tr> <!-- TR #4 --> 
  <td colspan='3' id="TipJoy"><!-- #1 - #9 -->
     <img src="http://images2.mywebs.biz/Gadgets/Tabs-Spacer.gif" width="1" height="1"><hr />
     <script language="javascript" src="http://tipjoy.com/custombutton?targetUser=MyWebs&targetUrl=http://www.mywebs.biz/Gadgets/&customMessage=Support%20this%20Gadget&charityMessage=Thank%20you&width=200&" ></script>
  </td>
 </tr>
</table>
</div>

   
   <div id="Thesaurus_ID" style="display:none">
   <table width='100%'><tr><td><form id='ThesaurusID' name='ThesaurusForm'><tt>Word</tt><br /><input onkeypress="return ThesaurusEnterKEY(ThesaurusWord)" type='text' name='ThesaurusWord' value='' size='10'></td><td><div align='center'><img id="ThesaurusImg" border='0' width='125' height='47'/></div></td><td><br /><input onclick='MyThesaurus(ThesaurusWord); ThesaurusStats()' type='button' name='button' value='Thesaurus'></form>
</td></tr>
<tr><td colspan="3"><div id="ThesaurusAJAXState" style="display:block; width:75px" title="When this disappears it will work again">
</td></tr><tr><td colspan="3" id="ThesaurusTarget">Loading.....</td></tr><tr><td colspan="3">
<img src="http://images2.mywebs.biz/Gadgets/Tabs-Spacer.gif" width="1" height="1">
<hr /><script language="javascript" src="http://tipjoy.com/custombutton?targetUser=MyWebs&targetUrl=http://www.mywebs.biz/Gadgets/&customMessage=Support%20this%20Gadget&charityMessage=Thank%20you&width=200&" ></script>
   <!-- script type="text/javascript" --><!--google_ad_client = "pub-6261808793724521";/* UD Tabs 234x60, created 6/19/08 */google_ad_slot = "7120710011";google_ad_width = 234;google_ad_height = 60;//--><!-- /script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script -->
   </td></tr></table>
   </div>
  ]]>
  </Content>
</Module>























































































































































































































































































































