<?xml version="1.0" encoding="UTF-8" ?> 
<Module>
<ModulePrefs 
	title="Hotmail" 
	title_url="http://www.hotmail.com/"
	description="This gadget lets you access your Hotmail account from your Google homepage. Click MAXimize for Full Screen view. Scroll to the bottom of the Inbox to compose a new message. Read and send Hotmail emails without leaving Google!" 
	author="Mandy" 
	author_email="hotmail@mySocialGadget.com" 
	author_affiliation="LoveMyGadgets.com" 
	author_photo="http://lovemygadget.com/googleDev.jpg" 
	author_aboutme="Stay at home mom.  I owe my budding passion for developing to my husband and brothers." 
	author_link="http://lovemygadgets.com" 
	author_location="Utah" 
	author_quote="Try a little harder to be a little better" 
	screenshot="http://lovemygadget.com/hotmail/screenShotHotmail.jpg" 
	thumbnail="http://lovemygadget.com/hotmail/hotThumb.gif" 
	scrolling="false" 
	height="460" 
	>
	<Require feature="analytics" /> 
	<Require feature="minimessage" />
	<Require feature="setprefs" />
	<Require feature="dynamic-height"/>
	<Require feature="views" />
</ModulePrefs>
<UserPref name="defaultPage" display_name="Default Page" default_value="Inbox" datatype="enum">
	<EnumValue value="Inbox" />
	<EnumValue value="Folders" />
</UserPref>
<UserPref name="refreshInterval" display_name="Refresh interval (BETA)" default_value="Never" datatype="enum">
	<EnumValue value="0" display_value="Never" />
	<EnumValue value="1" display_value="1 minute" />
	<EnumValue value="2" display_value="2 minutes" />
	<EnumValue value="5" display_value="5 minutes" />
	<EnumValue value="10" display_value="10 minutes" />
</UserPref>
<UserPref datatype="hidden" default_value="0" name="msnProblem" />
<UserPref datatype="hidden" default_value="0" name="linksFixed" />
<UserPref datatype="hidden" default_value="0" name="greasemonkey" />
<UserPref datatype="hidden" default_value="0" name="degree" />
<UserPref datatype="hidden" default_value="0" name="dj" />
<UserPref datatype="hidden" default_value="0" name="dj2" />
<UserPref datatype="hidden" default_value="0" name="santa" />
<UserPref datatype="hidden" default_value="0" name="tabTop" />
<UserPref datatype="hidden" name="cntry"/>
<Content type="html" view="home, profile, default">
	<![CDATA[ 
	<style>
		.navText{ font-family:Arial,sans-serif;font-size:8pt;width:100%;background-color:#ebebfd;padding2px;border-top:1px solid #b498dc;color:#0991D9; }
	</style>

	<script type="text/javascript">
		var gadgetWidth;
		if (self.innerHeight){ // all except Explorer
			gadgetWidth = self.innerWidth;
		} else if (document.documentElement && document.documentElement.clientHeight){	// Explorer 6 Strict Mode
			gadgetWidth = document.documentElement.clientWidth;
		} else if (document.body){ // other Explorers
			gadgetWidth = document.body.clientWidth;
		}
		if (gadgetWidth < 250){gadgetWidth = 250;}




		// user preferences
		var prefs 			= new _IG_Prefs( __MODULE_ID__ );

		// default page
		var sDefaultPage	= prefs.getString( "defaultPage" );
		var sDefaultURL		= "http://mobile.live.com/hm/folder.aspx?bf=1&folder=ACTIVE&msg=0";
		if( sDefaultPage == "Folders" )
		{
			sDefaultURL		= "http://co116w.col116.mail.live.com/m/folders.aspx";
		}
					
		// refresh interval
		var sRefresh 		= parseInt( prefs.getInt( "refreshInterval" ) );
		var bCancel			= false;
		if( sRefresh != 0 )
		{
			sRefresh		= parseInt( sRefresh * 60 * 1000 );
			window.setInterval( "triggerRefresh__MODULE_ID__()", sRefresh );
		}
		
		
		// mini message
		if( parseInt( prefs.getInt( "linksFixed" ) ) == 2 )	// value at 2 means don't show this
		{
			var oMsg1 			= new _IG_MiniMessage( __MODULE_ID__ );
			oMsg1.createDismissibleMessage( "Compose 'New message' by scrolling to bottom of Inbox.", function() { prefs.set( "linksFixed", 1 ); return true;  } );
		}
		
		// mini message
		if( parseInt( prefs.getInt( "msnProblem" ) ) == 2 )	// value at 2 means don't show this
		{
			var oMsg1 			= new _IG_MiniMessage( __MODULE_ID__ );
			oMsg1.createDismissibleMessage( "Tell MSN about the 'compose' problem <a href='https://feedback.live.com/default.aspx?productkey=wlmobile' target='_top'>here</a> or <a href='http://windowslivehelp.com/community/p/55727/230456.aspx#230456' target='_top'>here</a>", function() { prefs.set( "msnProblem", 1 ); return true;  } );
		}
		
		// mini message
		if( parseInt( prefs.getInt( "greasemonkey" ) ) == 0 )
		{
			var mmsg = new gadgets.MiniMessage(__MODULE_ID__);
			var mmDiv = document.createElement("div");	// Generate the message using DOM methods
			mmDiv.innerHTML = "<a style='color:#0991D9;' href='http://lovemygadget.com/hotmail/greasemonkeyscripts.htm' target='_blank'>Smaller Font and top ad removal now available</a>";
			mmsg.createDismissibleMessage(mmDiv, function() { prefs.set( "greasemonkey", 1 ); return true;  });	// Set some DOM properties
		}
				
		// mini message
		//prefs.set( "dj2", 0 );
		if( parseInt( prefs.getInt( "dj2" ) ) == 0 )
		{
			var mmsg2 = new gadgets.MiniMessage(__MODULE_ID__);
			var mmDiv2 = document.createElement("div");	// Generate the message using DOM methods
			mmDiv2.innerHTML = "<a style='color:#0991D9;' href='http://dowJones.mysocialgadget.com/addStock.php?r=mb&l=hot' target='_top'>Dow Jones iGoogle - watch minute-by-minute updates</a>";
			mmsg2.createDismissibleMessage(mmDiv2, function() { prefs.set( "dj2", 1 ); return true;  });	// Set some DOM properties
		}
		
	








		function triggerRefresh__MODULE_ID__()
		// triggers the refresh
		{
			bCancel = false;
			_gel( "divCancelRefresh" ).style.visibility = "visible";
			window.setTimeout( "doRefresh__MODULE_ID__( 7 )", 1000 ); // 7 is number of seconds that the cancel box will be displayed. Hardcoded for the moment.
		}
		
		function doRefresh__MODULE_ID__( nTimeout )
		// displays the message and actually performs the refresh
		{
			if( !bCancel )
			{
				if( nTimeout == 0 )
				{
					_gel( "divCancelRefresh" ).style.visibility = "hidden";
					frames["frmHotmail"].location.href = sDefaultURL;
				}
				else
				{
					window.setTimeout( "doRefresh__MODULE_ID__(" + ( nTimeout - 1 ) + ")", 1000 );
				}
			}
		}
	</script>
	<div class="navText">
		<a style="color:#0991D9;" href="javascript:void(null)" onclick="frames['frmHotmail'].location.href='http://mobile.live.com/hm/folder.aspx?bf=1&folder=ACTIVE&msg=0'">Inbox</a> | 
		<a style="color:#0991D9;" href="javascript:void(null)" onclick="frames['frmHotmail'].location.href='http://co116w.col116.mail.live.com/m/folders.aspx'">Folders</a> |
		<a style="color:#0991D9;" href="javascript:void(null)" onclick="frames['frmHotmail'].location.href='http://mpeople.live.com/?mkt=en-US'">Contacts</a> |
		<a style="color:#0991D9;" href="javascript:void(null)" onclick="frames['frmHotmail'].location.href='https://mid.live.com/si/logout.aspx'">Sign Out</a> |
		<a style="color:#0991D9;" href="http://lovemygadget.com/hotmail/help.html" target="_top">Help</a>
		<span style=""> | <a style="color:#0991D9;" href="http://mysocialgadget.com/stocks/dowjonesBig.php" target="_top">Stocks</a></span>
		<span id="viewLink"></span>
		
		<script type="text/javascript">		
			function goToView() {
				var supported_views = gadgets.views.getSupportedViews();
				gadgets.views.requestNavigateTo(supported_views['canvas']);
			};
			
			var synd = _args()["synd"];
			if(synd == undefined || synd == "ig") {	// in iGoogle
				var cnvsLnk = ' | <a style="color:#0991D9;" href="javascript:goToView();">MAXimize</a>';
				_gel('viewLink').innerHTML = cnvsLnk;
			}

		</script>

		<script type="text/javascript">
		/*
		 | 
		<a style="color:#0991D9;" href='http://rover.ebay.com/rover/1/711-53200-19255-0/1?type=1&campid=5336114641&toolid=10001&customid=' target='_blank'>eBay<img style='text-decoration:none; border: 0; padding: 0; margin: 0;' src='http://rover.ebay.com/ar/1/55242/1?mpt=[CacheBuster]&adtype=1&size=1x1&type=1&campid=5336114641&toolid=10001&customid=&v1e=1&l3s=1&p9m=1&n3y=1&a3h=1&k4v=1&u7v=1&x6n=1&b4x=1&m9q=1&def=a3h'></a>
		*/
		</script>
		

	</div>
	<script type="text/javascript">
		// iframe with default page
		document.write( '<iframe name="frmHotmail" id="frmHotmail" style="height:370px;width:100%;" frameborder="0" src="' + sDefaultURL + '"></iframe>' );
	</script>
	<div id="divCancelRefresh" class="text" style="visibility:hidden;background-color:#fff4c2;padding:7px;position:absolute;top:24px;left:0px;">
		<b>Refresh is about to happen</b><br>
		<a style="color:blue" href="javascript:void(null)" onclick="bCancel=true;_gel('divCancelRefresh').style.visibility='hidden';//_IG_Analytics( 'UA-1444102-1', '/HotmailGadgetXML/CancelRefresh' );">Cancel Refresh</a>
	</div>

<table id="ast" cellspacing="0" cellpadding="0" width="100%" style="border:solid 0px #f00;">
	<tr>
		<td colspan="2"><div style="font-size:2px;">&nbsp;</div></td> 
	</tr>
	<tr>
		<td width="16">&nbsp;</td> 
		<td>
			<div id="as" style="height:80px;overflow-x:scroll;">

				<script type="text/javascript"><!--
				google_ad_client = "pub-4618009450564010";
				/* 468x60, hotmail */
				google_ad_slot = "3887486299";
				google_ad_width = 468;
				google_ad_height = 60;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
			</div>

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

<script type="text/javascript">
	gadgets.window.adjustHeight(490);
	
	setInterval ( "getW()", 500 );
	function getW(){
		if (self.innerHeight){ // all except Explorer
			gadgetWidth = self.innerWidth;
		} else if (document.documentElement && document.documentElement.clientHeight){	// Explorer 6 Strict Mode
			gadgetWidth = document.documentElement.clientWidth;
		} else if (document.body){ // other Explorers
			gadgetWidth = document.body.clientWidth;
		}
		gWidth = gadgetWidth - 5;
		_gel('ast').style.width = gWidth + 'px';
		_gel( 'as').style.width = gWidth + 'px';
	}

</script>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2006511-18";
urchinTracker();
</script>

	]]>
</Content>







<Content type="html" view="canvas">
<![CDATA[
<div style="border:solid 0px #f00;">
	<style>
		.navText{ font-family:Arial,sans-serif;font-size:12pt;width:100%;background-color:#ebebfd;padding2px;border-top:1px solid #b498dc;color:#0991D9; }
	</style>

	<script type="text/javascript">

		// user preferences
		var prefs 			= new _IG_Prefs( __MODULE_ID__ );

		// default page
		var sDefaultPage	= prefs.getString( "defaultPage" );
		var sDefaultURL		= "http://mobile.live.com/hm/folder.aspx?bf=1&folder=ACTIVE&msg=0";
		if( sDefaultPage == "Folders" )
		{
			sDefaultURL		= "http://co116w.col116.mail.live.com/m/folders.aspx";
		}
					
		// refresh interval
		var sRefresh 		= parseInt( prefs.getInt( "refreshInterval" ) );
		var bCancel			= false;
		if( sRefresh != 0 )
		{
			sRefresh		= parseInt( sRefresh * 60 * 1000 );
			window.setInterval( "triggerRefresh__MODULE_ID__()", sRefresh );
		}
		
		
		// mini message
		//prefs.set( "greasemonkey", 0 );
		if( parseInt( prefs.getInt( "greasemonkey" ) ) == 0 )
		{
			var mmsg = new gadgets.MiniMessage(__MODULE_ID__);
			var mmDiv = document.createElement("div");	// Generate the message using DOM methods
			mmDiv.innerHTML = "<a style='color:#0991D9;' href='http://lovemygadget.com/hotmail/greasemonkeyscripts.htm' target='_blank'>Options now available: Smaller Font, remove top ad, remove top header logo </a>";
			mmsg.createDismissibleMessage(mmDiv, function() { prefs.set( "greasemonkey", 1 ); return true;  });	// Set some DOM properties
		}


		// mini message
		//prefs.set( "dj2", 0 );
		if( parseInt( prefs.getInt( "dj2" ) ) == 0 )
		{
			var mmsg2 = new gadgets.MiniMessage(__MODULE_ID__);
			var mmDiv2 = document.createElement("div");	// Generate the message using DOM methods
			mmDiv2.innerHTML = "<a style='color:#0991D9;' href='http://dowJones.mysocialgadget.com/addStock.php?r=mb&l=hot' target='_top'>Dow Jones iGoogle - watch minute-by-minute updates</a>";
			mmsg2.createDismissibleMessage(mmDiv2, function() { prefs.set( "dj2", 1 ); return true;  });	// Set some DOM properties
		}
		
	




		function triggerRefresh__MODULE_ID__()
		// triggers the refresh
		{
			bCancel = false;
			_gel( "divCancelRefresh" ).style.visibility = "visible";
			window.setTimeout( "doRefresh__MODULE_ID__( 7 )", 1000 ); // 7 is number of seconds that the cancel box will be displayed. Hardcoded for the moment.
		}
		
		function doRefresh__MODULE_ID__( nTimeout )
		// displays the message and actually performs the refresh
		{
			if( !bCancel )
			{
				if( nTimeout == 0 )
				{
					_gel( "divCancelRefresh" ).style.visibility = "hidden";
					frames["frmHotmail"].location.href = sDefaultURL;
				}
				else
				{
					window.setTimeout( "doRefresh__MODULE_ID__(" + ( nTimeout - 1 ) + ")", 1000 );
				}
			}
		}
	</script>
	
	
	
	<script type="text/javascript"><!--
	google_ad_client = "pub-4618009450564010";
	/* 728x90, hotmailCnvs */
	google_ad_slot = "1447637267";
	google_ad_width = 728;
	google_ad_height = 90;
	//-->
	</script>
	<script type="text/javascript"
	src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
	</script>
	
	
	
	<div class="navText" style="padding-bottom:2px;">
		<b>
		<a style="color:#0991D9;" href="javascript:void(null)" onclick="frames['frmHotmail'].location.href='http://mobile.live.com/hm/folder.aspx?bf=1&folder=ACTIVE&msg=0'">Inbox</a> | 
		<a style="color:#0991D9;" href="javascript:void(null)" onclick="frames['frmHotmail'].location.href='http://co116w.col116.mail.live.com/m/folders.aspx'">Folders</a> |
		<a style="color:#0991D9;" href="javascript:void(null)" onclick="frames['frmHotmail'].location.href='http://mpeople.live.com/?mkt=en-US'">Contacts</a> |
		<a style="color:#0991D9;" href="javascript:void(null)" onclick="frames['frmHotmail'].location.href='https://mid.live.com/si/logout.aspx'">Sign Out</a> |
		<a style="color:#0991D9;" href="http://mysocialgadget.com/stocks/dowjonesBig.php" target="_blank">Stocks</a>
		<span id="viewLink"></span>
		</b>
		
		<script type="text/javascript">		
			function goToView() {
				var supported_views = gadgets.views.getSupportedViews();
				gadgets.views.requestNavigateTo(supported_views['home']);
			};
			
			var synd = _args()["synd"];
			if(synd == undefined || synd == "ig") {	// in iGoogle
				var cnvsLnk = ' | <a style="color:#0991D9;" href="javascript:goToView();">Minimize</a>';
				_gel('viewLink').innerHTML = cnvsLnk;
			}

		</script>
	</div>
	<script type="text/javascript">
		// iframe with default page
		document.write( '<iframe name="frmHotmail" id="frmHotmail" style="height:1800px;width:100%;" frameborder="0" src="' + sDefaultURL + '"></iframe>' );
	</script>
	<div id="divCancelRefresh" class="text" style="visibility:hidden;background-color:#fff4c2;padding:7px;position:absolute;top:24px;left:0px;">
		<b>Refresh is about to happen</b><br>
		<a style="color:blue" href="javascript:void(null)" onclick="bCancel=true;_gel('divCancelRefresh').style.visibility='hidden';//_IG_Analytics( 'UA-1444102-1', '/HotmailGadgetXML/CancelRefresh' );">Cancel Refresh</a>
	</div>


</div>

<script type="text/javascript" >
	gadgets.window.adjustHeight(1900);
</script>


<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2006511-18";
urchinTracker();
</script>

	]]>
</Content> 
</Module>
