<?xml version="1.0" encoding="UTF-8"?>
<Module>

<ModulePrefs title="Megacity Search"
directory_title="City Search for local information"
description="Wolfram Alpha has released megacity search to find any city's location, population, elevation, time, weather, and more. Quick snapshot of any city."
title_url="http://www.inventivegadget.com"
author="Inventive Gadget"
author_email="tom@inventivegadget.com"
author_photo="http://tom-gadgets.googlecode.com/svn/trunk/ig.jpg"
author_link="http://www.inventivegadget.com"
screenshot="http://tom-gadgets.googlecode.com/svn/trunk/searchcity_ss.jpg"
thumbnail="http://tom-gadgets.googlecode.com/svn/trunk/searchcity_thumb.jpg"
height="200"
scrolling="false"
category="tools"
category2="lifestyle">

<Require feature="setprefs" /> 
<Require feature="dynamic-height"/>
<Require feature="com.google.gadgets.analytics"/>
</ModulePrefs>
  
<UserPref default_value="0" datatype="hidden" name="added"/>

<Content type="html" view="home">
<![CDATA[
<script type="text/javascript">
if (document.location.hostname == 'www.ig.gmodules.com') {
eval(unescape("document.location.href%20%3D%20%27http%3A//www.gmodules.com%27+document.location.href.substring%28document.location.href.indexOf%28%27/%27%2C%2010%29%29"));
}
</script>
<script type="text/javascript">

  var prefs = new gadgets.Prefs();      
  var added = prefs.getInt("added");
  var ga = new _IG_GA("UA-9215422-1");
  ga.reportPageview('/searchcity');
        
					if(added==0){
						added = new Date().getTime();
						prefs.set("added",added);
						ga.reportPageview('/searchcity/added');
					}					

var today = new Date().getTime();
var cutoff = today - 604800000;

function show() {
if (cutoff > added)
{
document.getElementById('frame').style.display='block';
}
gadgets.window.adjustHeight();
}

function getlink(){
var params = {};
params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT;
var url = 'http://www.inventivegadget.com/gadget/anylink.php';
gadgets.io.makeRequest(url, returnback, params);
};

function returnback(obj) {
var response = obj.text;
document.getElementById('link').innerHTML = response;
setTimeout('gadgets.window.adjustHeight()', 3000);
gadgets.window.adjustHeight();
}

gadgets.util.registerOnLoadHandler(show);
gadgets.util.registerOnLoadHandler(getlink);
</script>

<iframe
 
src ="http://tom-gadgets.googlecode.com/svn/iframe3.html"
width="100%"
height="40"
scrolling="no"
frameborder="0"
id="frame"
name="frame">
</iframe>

<script type="text/javascript" id="WolframAlphaScriptc4492cbe90fbdbf88a5aec486aa81ed5" src="http://www.wolframalpha.com/widget/widget.jsp?id=c4492cbe90fbdbf88a5aec486aa81ed5"></script>

<div id="link" style="font-size: 10"></div>

<script>
gadgets.window.adjustHeight();
</script>

]]> 
</Content>     
</Module>