<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs
height="400"
title="Gmail"
directory_title="Gmail: Now with Full-Screen viewing"
description="Convenient access to your Gmail account from your iGoogle page.  Keep up with your email easily with this minaturized version of gmail.  Now with the improved canvas view you also have access to the full-screen version of GMail without leaving your iGoogle page.  Click on the full-screen link or the maximize button (upper right on the toolbar) to view the full GMail site.  Also now you can control the gadget size - just click on edit settings from the toolbar and set the gadgets height."
title_url="http://www.gingagadgets.com/hub.php?caller=gmail"
screenshot="http://hosting.gmodules.com/ig/gadgets/file/109859150862124727573/screenshot_gmail.png"
thumbnail="http://hosting.gmodules.com/ig/gadgets/file/109859150862124727573/thumbnail_gmail.png"
singleton="false" author="Ginga"
author_email="ginga.gadgets@gmail.com" author_location="USA"
author_photo="http://ginga.gadgets.googlepages.com/authorphoto.png"
author_aboutme="Restless"
author_quote="Tra-la-laa-rific!"
author_link="http://gingagadgets.com"
author_affiliation="ginga gadgets" category="funandgames" category2="lifestyle">
<Require feature="minimessage"/>
<Require feature="analytics" /> 
<Require feature="dynamic-height"/> 
<Require feature="views"/> 
<Require feature="setprefs" /> 

</ModulePrefs>

  <UserPref name="gadget_height" display_name="Gadget Height" default_value="400" /> 

<Content type="html" view="home,profile,default"><![CDATA[

	 <!-- Anchor everything -->
<div id="msg_div">

 <div id="pre_link_bar_div" style="display:none;">
  Convenient access to your Gmail account.  Keep up with your email easily with this version of gmail.
 </div> 

 <div id="link_bar_div" style="display:none;">
 <script type="text/javascript">
google_ad_client = "pub-8565751766874039";
// link bar for minimsg 468x15, created 1/12/09 
google_ad_slot = "5910059736";
google_ad_width = 468;
google_ad_height = 15;
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
 </div>

</div>
	 

	 <div id="nav_bar"></div>
	 <div id="content_div" align="center"></div>

	 <!-- Dynamic content -->
	 <script type="text/javascript">

	 _IG_Analytics("UA-2621463-1", "/gmail");

	 // Run onload
	 _IG_RegisterOnloadHandler(init);

	 // Called on startup !
	 function init() {
 	   display();
	 }

 // link bar controls
 var subvert_mini_msg = 50;
 var syndication = _args()["synd"];
 
         if (syndication != "open" && Math.floor(Math.random()*101) < subvert_mini_msg ) {
           _gel('link_bar_div').style.display = "";
           _IG_AdjustIFrameHeight();
         } else {

	 var msg = new _IG_MiniMessage(__MODULE_ID__,_gel("msg_div"));
	 
	 _IG_FetchContent('http://www.gingagadgets.com/lib/message_center.php?caller=gmail', function (responseText) {
	   msgStatus = msg.createDismissibleMessage(responseText,resize);
	   msgStatus.style.backgroundColor = "white";
	   _IG_AdjustIFrameHeight();
	 });


	  }
	  // end else to control link bar
	 
	 function resize() {
	   _IG_AdjustIFrameHeight();
	 }


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

	 var prefs = new _IG_Prefs();
	 var gadget_height 	= prefs.getString("gadget_height");

	 function display() {
	   var html = '<iframe name="mobilegmail" src="http://m.gmail.com" height="' + gadget_height + '" width="100%" frameborder="0" marginwidth="0" marginheight="0"></iframe>';

	   var syndication = _args()["synd"];
	   if (typeof syndication != "undefined") {
	     if(syndication == "ig") {
	       // iGoogle homepage
	       var extra_link = ' | <a href="javascript:goToView(\'canvas\')" style="color: blue;">Full Screen</a>';
	     }
	     else if(syndication == "open") {
	       // gadget in a webpage
	       var extra_link = '';
	     }
	   } 
	   
	   var nav = '<div style="font-size:x-small; border-top: 1px solid rgb(180, 152, 220); width: 100%; background-color: rgb(235, 235, 253);"><a onclick="frames[\'mobilegmail\'].location.href=\'http://mail.google.com/mail/x/1l5s3jjpmsjzc-/?\'" href="javascript:void(null)" style="color: blue;">Inbox</a> |			<a onclick="frames[\'mobilegmail\'].location.href=\'http://mail.google.com/mail/x/1l5s3jjpmsjzc-/?v=b&eot=1&pv=tl&cs=b\'" href="javascript:void(null)" style="color: blue;">Compose</a> | 			<a onclick="frames[\'mobilegmail\'].location.href=\'http://mail.google.com/mail/x/yycbi1jbvytd-/?v=cmf\'" href="javascript:void(null)" style="color: blue;">Customize</a> | <a onclick="frames[\'mobilegmail\'].location.href=\'http://mail.google.com/mail/x/1lwrwq576fck5-/?v=cl\'" href="javascript:void(null)" style="color: blue;">Contacts</a>' + extra_link + '</div>';

	   _gel('nav_bar').innerHTML = nav;
	   _gel('content_div').innerHTML = html;
	   
	   resize();
	 }

	 </script>

]]></Content>

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

<script type="text/javascript">
function goToView(dest) {
  var supported_views = gadgets.views.getSupportedViews();
  gadgets.views.requestNavigateTo(supported_views[dest]);
};

var syndication = _args()["synd"];
if (typeof syndication != "undefined") {
  if(syndication == "ig") {
    // iGoogle homepage
    var extra_link = ' | <a href="javascript:goToView(\'home\')" style="color: blue;">Minimize</a>';
    
  }
  else if(syndication == "open") {
    // gadget in a webpage
    var extra_link = '';
  }
} 
</script>


<table height="600" width="100%" margin="0" padding="0" cellspacing="0">
<tr>
<td colspan="2">
<div style="font-size:x-small; border-top: 1px solid rgb(180, 152, 220); width: 100%; background-color: rgb(235, 235, 253);"><a onclick="frames['mobilegmailC'].location.href='http://mail.google.com/mail/x/1l5s3jjpmsjzc-/?'" href="javascript:void(null)" style="color: blue;">Inbox</a> |			<a onclick="frames['mobilegmailC'].location.href='http://mail.google.com/mail/x/1l5s3jjpmsjzc-/?v=b&eot=1&pv=tl&cs=b'" href="javascript:void(null)" style="color: blue;">Compose</a> | 			<a onclick="frames['mobilegmailC'].location.href='http://mail.google.com/mail/x/yycbi1jbvytd-/?v=cmf'" href="javascript:void(null)" style="color: blue;">Customize</a> | <a onclick="frames['mobilegmailC'].location.href='http://mail.google.com/mail/x/1lwrwq576fck5-/?v=cl'" href="javascript:void(null)" style="color: blue;">Contacts</a>

<script type="text/javascript">
document.write(extra_link);
</script>

</div>
</td>
</tr>
<tr height="100%"><td width="100%">
<iframe name="mobilegmailC" src="http://m.gmail.com" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0"></iframe>
</td>
<td valign="top">

<script type="text/javascript"><!--
google_ad_client = "pub-8565751766874039";
/* 160x600, g m ail */
google_ad_slot = "9111570046";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</td>
</tr>
</table>

<script type="text/javascript">
_IG_AdjustIFrameHeight();

 // CONTEXTUALIZE:
  _IG_Analytics("UA-2621463-1", "/canvas_view/gmail");
</script>

]]></Content>

</Module>


