<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="__MSG_title__ * __UP_Domain__"
             description="Google Talk Gadget for hosted domains"
             directory_title="Google Talk for hosted domains"
             author="Domenico Pozzetti"
             author_email="gadgets@pozzetti.it"
             author_affiliation="None"
             author_location="Bologna, Italy"
             screenshot="http://talkgadget.google.com/talkgadget/googletalk-en.png"
             thumbnail="http://sites.google.com/a/pozzetti.it/hosting/file/Google-Talk-thumb.png"
             category="communication"
             category2="tools"
             width="300"
             height="300"
        
             render_inline="optional">
 <Require feature="dynamic-height"/>
  <Require feature="analytics"/>
<Require feature="setprefs"/>
       <Require feature="minimessage"/> 
       <Require feature="views"/> 
  <Locale messages="http://www.google.com/ig/modules/googletalk_content/messages_en.xml"/>
  <Locale lang="da" messages="http://www.google.com/ig/modules/googletalk_content/messages_da.xml"/>
  <Locale lang="de" messages="http://www.google.com/ig/modules/googletalk_content/messages_de.xml"/>
  <Locale lang="en" messages="http://www.google.com/ig/modules/googletalk_content/messages_en.xml" country="us"/>
  <Locale lang="en-GB" messages="http://www.google.com/ig/modules/googletalk_content/messages_en-GB.xml"/>
  <Locale lang="es" messages="http://www.google.com/ig/modules/googletalk_content/messages_es.xml"/>
  <Locale lang="fi" messages="http://www.google.com/ig/modules/googletalk_content/messages_fi.xml"/>

  <Locale lang="fr" messages="http://www.google.com/ig/modules/googletalk_content/messages_fr.xml"/>
  <Locale lang="it" messages="http://www.google.com/ig/modules/googletalk_content/messages_it.xml"/>
  <Locale lang="ja" messages="http://www.google.com/ig/modules/googletalk_content/messages_ja.xml"/>
  <Locale lang="ko" messages="http://www.google.com/ig/modules/googletalk_content/messages_ko.xml"/>
  <Locale lang="nl" messages="http://www.google.com/ig/modules/googletalk_content/messages_nl.xml"/>
  <Locale lang="no" messages="http://www.google.com/ig/modules/googletalk_content/messages_no.xml"/>
  <Locale lang="pl" messages="http://www.google.com/ig/modules/googletalk_content/messages_pl.xml"/>
  <Locale lang="pt-BR" messages="http://www.google.com/ig/modules/googletalk_content/messages_pt-BR.xml"/>

  <Locale lang="ru" messages="http://www.google.com/ig/modules/googletalk_content/messages_ru.xml"/>

  <Locale lang="sv" messages="http://www.google.com/ig/modules/googletalk_content/messages_sv.xml"/>
  <Locale lang="th" messages="http://www.google.com/ig/modules/googletalk_content/messages_th.xml"/>
  <Locale lang="tr" messages="http://www.google.com/ig/modules/googletalk_content/messages_tr.xml"/>
  <Locale lang="vi" messages="http://www.google.com/ig/modules/googletalk_content/messages_vi.xml"/>
  <Locale lang="zh-CN" messages="http://www.google.com/ig/modules/googletalk_content/messages_zh-CN.xml"/>
  <Locale lang="zh-TW" messages="http://www.google.com/ig/modules/googletalk_content/messages_zh-TW.xml"/>
</ModulePrefs>
<UserPref name="Domain" display_name="Domain" default_value="" datatype="string" required="true"/>
<UserPref name="height" display_name="Gadget Height" datatype="string" default_value="300"/>
      <UserPref name="Version"  default_value="New" datatype="hidden"/>
<Content view="home,profile,default" type="html"><![CDATA[
  
<style type="text/css">
#wrapper { 
width: 100% /* MUS be specified in px, % or em to center wrapper */ 
height: 100%; 
margin: 0 auto; /* centers div */ 
  

padding: 0; /* Optional */ 
text-align: left; /* IE fix */ 
} 
  
 #sep { 
width: 100%; 
height: 0px;/* was 3px for ads */ 
margin: 0; /* Optional */  
  
margin-top: 0 auto; /* centers div */ padding: 0; /* Optional */ 
float: left; 
}  
  
#ad { 
width: 100%; 

height: /* not necessary */ 
margin: 0; /* Optional */ 
  
margin-top: 0 auto; /* centers div */ padding: 0; /* Optional */ 
float: left; 
} 

    
      
          
#main {margin:0;width : 100%;float : left;}
</style>   
  
  
  <script type="text/javascript">
    
function adAppend()
{

   
    
}  

    function goToView(dest) {
  var supported_views = gadgets.views.getSupportedViews();
  gadgets.views.requestNavigateTo(supported_views[dest]);
  };
    
    
 function rewritead() {

 
   clearTimeout(adhandle);      
   }     function msgView(syndication) {
  if (syndication=='open' ||  syndication=='undefined' || syndication=='DP_X102') 
{ return 'false'; }   
else
{ return 'true'; }
 }  
    
function adView(syndication) {
  if (syndication=='orkut' || syndication=='orkut-sandbox' || syndication=='ig' || syndication=='gasp2') 
{ return 'false'; }   
else
{ return 'false'; }
 };     
           
    
</script>
  
  
<div id="main" align="left">  
</div>
<div id="wrapper">
      <div  id="sep">  
  </div>
  <p> 
  <div  id="ad"> 
    
  </div>
  </p>
</div>     
  
  
  
  
  
<script type="text/javascript">
  
var prefs=new _IG_Prefs(__MODULE_ID__);
var version=prefs.getString('Version');   
 var synd=_unesc(_args()["synd"]);  
  
    _IG_Analytics("UA-7649831-2", "/gadgets_analytics/hostedgoogletalk");

var domain=prefs.getString("Domain");
url="https://hostedtalkgadget.google.com/a/"+domain+"/talkgadget/client?hl=__MSG_locale__";
  if (domain=="gmail.com") {
    url="https://talkgadget.google.com/talkgadget/client?hl=__MSG_locale__";
  }
  
var adheight=15;
 
if (adView(synd)=='true') {adheight=80;} 

var frameheight=prefs.getString('height')-adheight;
var el=document.getElementById("main");

el.innerHTML='<iframe frameborder="0" style="width: 100%; height: '+frameheight+'px" src="'+url+'" scrolling="auto"><p>Your browser does not support iframes.</p></iframe>';
  

if (adView(synd)=='true') {  adAppend();     var adhandle=setTimeout("rewritead()",90*1000);
      }
_IG_AdjustIFrameHeight(frameheight+adheight);
  </script>
]]></Content>
<Content view="canvas" type="html"><![CDATA[

<style type="text/css">
#left-column {width : 100%;float : left;}
#right-column {width : 0%;float : right;}
</style>

<body>
  <div  id="left-column"align="left">
  </div>             
  <div  id="right-column" align="right">


          </div>

    </body>         
      
<script type="text/javascript">
_IG_Analytics("UA-7649831-2", "/gadgets_analytics/hostedgoogletalk/canvas");
var prefs = new _IG_Prefs(__MODULE_ID__);
var domain = prefs.getString("Domain");
url="https://hostedtalkgadget.google.com/a/"+domain+"/talkgadget/client?hl=__MSG_locale__";
if (domain=="gmail.com") {
    url="https://talkgadget.google.com/talkgadget/client?hl=__MSG_locale__";
  }

var el=document.getElementById("left-column")
el.innerHTML='<iframe frameborder="0" style="width: 100%; height: 100%" src="'+url+'" scrolling="auto"><p>Your browser does not support iframes.</p></iframe>';
_IG_AdjustIFrameHeight();
</script>
]]></Content>
</Module>