<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Got Free Cards - Free eCards"
 title_url="http://www.gotfreecards.com/"
 description="Send Free Animated Ecards. Birthday, Miss You, Sorry, Love You, Knock Knock!, Get Well Soon. No registration. No popups. Send ecards to iphones as well."
 author_email="ashwindaga+gotfreecards@gmail.com"
 screenshot="http://www.gotfreecards.com/google_gadget/gadget_screenshot.PNG"
 thumbnail="http://www.gotfreecards.com/google_gadget/Google-add.jpg"
author="Ashwin Daga"
width="300"
height="200"
category="communication"
category2="funandgames"
>
<Icon>http://www.gotfreecards.com/images/favicon.ico</Icon>
<Require feature="analytics"/>
<Require feature="dynamic-height"/>
<Require feature="tabs" /> 
<Preload href="http://www.gotfreecards.com/orkutapp/cardlist.json" />
</ModulePrefs>
<Content type="html"><![CDATA[  
 <script>
  _IG_Analytics("UA-4518076-1", "/new_gotfree_gadget");
</script>
<style type="text/css">
.submenu{
margin-top:10px;
border:2px solid #9A9A9A;
width:270px;
font: normal 12px Tahoma, "Lucida Grande", "Trebuchet MS", Helvetica, sans-serif;
margin-left: 20%;
margin-right: 20%;
}
.description{font: normal 12px Tahoma, "Lucida Grande", "Trebuchet MS", Helvetica, sans-serif;}  
</style>
    <script type="text/javascript">
    var tabs = new _IG_Tabs(__MODULE_ID__, "Birthday");
      tabs.alignTabs("left", 5); 
      var brth,getw,vltn,than=null;
    function populate() {      
      tabs.addTab("Birthday", {            
           contentContainer: _gel("one_id"),
           callback: callback,            
           tooltip: "Birthday Ecards"          
        });
      tabs.addTab("Get Well Soon", {            
           contentContainer: _gel("two_id"),
           callback: callback,            
           tooltip: " Get Well Soon Ecards"          
        });  
      tabs.addTab("Love You", {            
           contentContainer: _gel("three_id"),
           callback: callback,            
           tooltip: "Love You Ecards"          
        });
        tabs.addTab("Thank You", {            
           contentContainer: _gel("four_id"),
           callback: callback,            
           tooltip: "Thank You Ecards"          
        });
      _IG_AdjustIFrameHeight();
    }
    function callback(tabId) {
      var selectedTab = tabs.getSelectedTab();     
     if(selectedTab.getIndex()==0){
      document.getElementById('i1').src=_IG_GetCachedUrl("http://www.gotfreecards.com/templates/BRTH/"+brth[Math.floor(Math.random()*brth.length)]);
      _IG_AdjustIFrameHeight();
     }
      if(selectedTab.getIndex()==1){
      document.getElementById('i2').src=_IG_GetCachedUrl("http://www.gotfreecards.com/templates/GETW/"+getw[Math.floor(Math.random()*getw.length)]);
     _IG_AdjustIFrameHeight();
     }
      if(selectedTab.getIndex()==2){
      document.getElementById('i3').src=_IG_GetCachedUrl("http://www.gotfreecards.com/templates/VLTN/"+vltn[Math.floor(Math.random()*vltn.length)]);
     _IG_AdjustIFrameHeight();
     }
      if(selectedTab.getIndex()==3){
      document.getElementById('i4').src=_IG_GetCachedUrl("http://www.gotfreecards.com/templates/THAN/"+than[Math.floor(Math.random()*than.length)]);
     _IG_AdjustIFrameHeight();
     }
    }
      function init(){
      _IG_Analytics('UA-4518076-1', '/new_gotfree_gadget/click');
       var url="http://www.gotfreecards.com/orkutapp/cardlist.json";
     _IG_FetchContent(url, getjson);
      }
function getjson(responseText){
  var json = eval('(' + responseText + ')');
   brth= json["BRTH"];
   json["VLTN"].splice(12,1);
   vltn=json["VLTN"];
   than=json["THAN"];
   getw=json["GETW"];
   populate();
}
    // Call init function to initialize and display tabs.
    _IG_RegisterOnloadHandler(init);
    </script>
<div id="one_id" class="submenu">
 <table class="tbl"><tr><td><a id="img1" href="http://www.gotfreecards.com/gc/showcards.action?category=BRTH&start=0&desc=Birthday" target="_blank"><img border="0" id="i1" /></a>
      </td><td class="description">Sometimes you
really want someone to tell you that you are special. That you are
loved. Birthday is a perfect occasion to be told and a birthday card is
a perfect medium to do so.</td></tr></table>
</div>
    <div id="two_id" class="submenu">
 <table class="tbl"><tr><td><a id="img2" href="http://www.gotfreecards.com/gc/showcards.action?category=BRTH&start=0&desc=Birthday" target="_blank"><img border="0" id="i2" /></a>
      </td><td class="description">Get well cards have become so humorous that if you don't get sick you're missing 
half the fun!</td></tr></table>
</div>
 <div id="three_id" class="submenu">
 <table class="tbl"><tr><td><a id="img3" href="http://www.gotfreecards.com/gc/showcards.action?category=BRTH&start=0&desc=Birthday" target="_blank"><img border="0" id="i3" /></a>
      </td><td class="description">A life without love is no life at all. Send an eCard and make someone's day, right away!</td></tr></table>
</div>
 <div id="four_id" class="submenu">
 <table class="tbl"><tr><td><a id="img4" href="http://www.gotfreecards.com/gc/showcards.action?category=BRTH&start=0&desc=Birthday" target="_blank"><img border="0" id="i4" /></a>
      </td><td class="description">Not what we give, But what we share, For the gift without the giver is bare.</td></tr></table>
</div>

]]></Content>
</Module>
