<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs
height="400"
title="Facebook"
directory_title="Facebook - Now with Full-Screen viewing"
description="Fully-Featured Facebook Gadget: your essential miniaturized facebook connection.  View your news feed, inbox, photos and stay all connected to all your facebook friends directly from your iGoogle page all in this convenient gadget.  Now with convenient canvas view you can maximize the gadget to gain access to the full facebook site; just click on the maximize button in the upper right hand corner.  Supported for all the major browsers! Firefox recommended, download Firefox today at: http://www.mozilla.com/firefox/"
title_url="http://www.gingagadgets.com/hub.php?caller=facebook"
screenshot="http://hosting.gmodules.com/ig/gadgets/file/100080069921643878012/screenshot_facebook.png"
thumbnail="http://hosting.gmodules.com/ig/gadgets/file/100080069921643878012/thumbnail_facebook.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"/> 

</ModulePrefs>


<Content type="html" view="home,profile,default"><![CDATA[
<script type="text/javascript">
function goToView(dest) {
  var supported_views = gadgets.views.getSupportedViews();
  gadgets.views.requestNavigateTo(supported_views[dest]);
};
</script>

	 <!-- Anchor everything -->
<div id="msg_div">

 <div id="pre_link_bar_div" style="display:none;">
  Fully-Featured Facebook: your essential miniaturized facebook connection.  View your news feed, inbox, photos and stay all connected to all your facebook friends 
 </div> 

<script type="text/javascript"> 
var subvert_mini_msg = 50;
var syndication = _args()["synd"];
 
if (syndication != "open" && Math.floor(Math.random()*101) < subvert_mini_msg) {
     // put out the ad
  google_ad_client = "pub-8565751766874039";
  // minimsg equivilant for facebook 468x15, created 1/13/09 
  google_ad_slot = "7007160358";
  google_ad_width = 468;
  google_ad_height = 15;
     document.write(unescape("%3Cscript src='http://pagead2.googlesyndication.com/pagead/show_ads.js' type='text/javascript'%3E%3C/script%3E"));

     // close the div
     document.write(unescape("%3C/div%3E"));
   } else {
     // close the div
     document.write(unescape("%3C/div%3E"));
     // code to call mini-message
     var msg = new _IG_MiniMessage(__MODULE_ID__,_gel("msg_div"));
     
      // CONTEXTUALIZE:
     _IG_FetchContent('http://www.gingagadgets.com/lib/message_center.php?caller=facebook&platform=', function (responseText) {
	   
	// check responseText for crap
	    if (responseText != "") {
             if ( /Service Temporarily Unavailable/.test(responseText) ) { 
             // if found do default msg
             responseText = '<span style="font-size:9px;"><a target="_blank" href="http://gingagadgets.com" onClick="_IG_Analytics(\'UA-2621463-1\',\'/minimsg_refer/spike/DIRECTED_USER_TO_GINGA_ERROR\');">Many more gadgets at GingaGadgets.com</a></span>';
           } 
 
           //statusMsg = msg.createDismissibleMessage(responseText,onCloseMini);
	   //statusMsg.style.backgroundColor = "white";
	   // mini-messages are broken so:
	      _gel("msg_div").innerHTML = responseText.replace("float:right;", "") ;
           _IG_AdjustIFrameHeight();
          }
	 });
 
         
         function onCloseMini() {
           _IG_Analytics("UA-2621463-1", "/clicked/mini-X/facebook");
           resize();
         }
 
       }
 
 
   
 
 
</script>    

<!-- <div style="float:right"> -->
 <script type="text/javascript">
 var syndication = _args()["synd"];
 if (typeof syndication != "undefined") {
   if(syndication == "ig") {
     // iGoogle homepage
     // Removing this to see if it has an effect
     // document.write('<a href="javascript:goToView(\'canvas\')">Maximize View</a>');
   }
   else if(syndication == "open") {
     // gadget in a webpage
     document.write('<span style="font-size:9px"><a target="_blank" href="http://www.google.com/ig/adde?moduleurl=gingagadgets.com/facebook/facebook.xml" >Add to iGoogle</a></span>');
   }
 } 
 </script>



<div id="content_div" align="center"></div>

 <!-- Dynamic content -->
 <script type="text/javascript">

 _IG_Analytics("UA-2621463-1", "/facebook");

 // Run onload
 _IG_RegisterOnloadHandler(init);

 // Called on startup !
 function init() {
   display();
 }

	 function resize() {
	   _IG_AdjustIFrameHeight();
	 }

	 function display() {
	   var destination_url = 'http://m.facebook.com';
	   if(navigator.userAgent) {
	     if ( navigator.userAgent.indexOf("MSIE") >=0 ) {
	       destination_url = 'http://m.facebook.com';
	     }
	   }

	   var html = '<iframe name="mobilefacebook" border="0" src="' + destination_url + '" height="400" width="100%" frameborder="0" marginwidth="0" marginheight="0"></iframe>';
	   //var html = '<iframe name="mobilefacebook" border="0" src="https://login.facebook.com/login.php?iphone&next=http%3A%2F%2Fiphone.facebook.com%2F" height="400" width="100%" frameborder="0" marginwidth="0" marginheight="0"></iframe>';

	   
	   _gel('content_div').innerHTML = html;
	   
	   resize();
	 }

	 </script>

]]></Content>

<Content type="html" view="canvas"><![CDATA[
<!-- Facebook.  Keep in touch with friends and family. Facebook users can choose to join up by  city, workplace, school, and region. connect with friends, giving them access to their friends' profiles. Share your interests and hobbies -->

<table width="100%" height="5000" cellpadding="0" cellspacing="0" margin="0" border="0">
<tr>
<td valign="top">
	   <iframe name="facebook" border="0" src="http://www.facebook.com/home.php" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>';
</td>
<td width="160" valign="top">
<script type="text/javascript"><!--
google_ad_client = "pub-8565751766874039";
/* 160x600, Facebook */
google_ad_slot = "1949625439";
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_Analytics("UA-2621463-1", "/canvas_view/facebook");
	   _IG_AdjustIFrameHeight();	 
	 </script>

]]></Content>
</Module>





