<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs 
title="BrainDen.com - __MSG_title__" 
title_url="__MSG_link__" 
height="300"
scrolling="true" 
author="Jan Adamovic" 
author_location="Slovakia" 
author_email="admin+coolgadget@brainden.com" 
author_link="http://brainden.com/"
author_aboutme="I am a mystery to myself."
author_quote="'To Start Press Any Key'. Where's the ANY key? - Homer Simpson"
author_affiliation="None"
category="funandgames"
category2="lifestyle"
description="__MSG_description__" 
screenshot="__MSG_screenshot__" 
thumbnail="http://teaser-gadgets.googlecode.com/svn/trunk/brainteasers-gadget/thumbnail-brainteasers.png">
<Require feature="tabs" />
<Require feature="minimessage" />
<Require feature="setprefs"/>
<Require feature="analytics" /> 
    <Locale messages="http://teaser-gadgets.googlecode.com/svn/trunk/brainteasers-gadget/ALL_ALL.xml"/>
    <Locale lang="de" messages="http://teaser-gadgets.googlecode.com/svn/trunk/brainteasers-gadget/de_ALL.xml"/>
    <Locale lang="fr" messages="http://teaser-gadgets.googlecode.com/svn/trunk/brainteasers-gadget/fr_ALL.xml"/>
    <Locale lang="es" messages="http://teaser-gadgets.googlecode.com/svn/trunk/brainteasers-gadget/es_ALL.xml"/>
    <Locale lang="it" messages="http://teaser-gadgets.googlecode.com/svn/trunk/brainteasers-gadget/it_ALL.xml"/>
    <Locale lang="ru" messages="http://teaser-gadgets.googlecode.com/svn/trunk/brainteasers-gadget/ru_ALL.xml"/>
    <Locale lang="ja" messages="http://teaser-gadgets.googlecode.com/svn/trunk/brainteasers-gadget/ja_ALL.xml"/>
    <Locale lang="zh-cn" messages="http://teaser-gadgets.googlecode.com/svn/trunk/brainteasers-gadget/zh_cn_ALL.xml"/>
    <Locale lang="sk" messages="http://teaser-gadgets.googlecode.com/svn/trunk/brainteasers-gadget/sk_ALL.xml"/>
    <Locale lang="cs" messages="http://teaser-gadgets.googlecode.com/svn/trunk/brainteasers-gadget/cs_ALL.xml"/>
</ModulePrefs>
<UserPref name="show_date" display_name="Show Dates?" datatype="bool"/>
<UserPref name="show_summ" display_name="Show Summaries?" datatype="bool"/>
<UserPref name="num_entries" display_name="Number of Entries:" />
<UserPref name="selectedTab" datatype="hidden"/>

    <Content type="html" view="home,profile">
        <![CDATA[ 

<!-- ALm6fM2tMWfw_XcPKnLXhqFlkq1VOm8qexfxMu3c2PH9LseeBeRLeMopdBM46ufEzw2uUsG2E08xa_egtyeOqz6B1U_gKPdolCAHr9UALlV8GDEXSHmhZgiBVL3ZPRrNcYz44nIPAaHEcY_Bgvh5IcxHItJ32PCQ5g== -->

<style type="text/css">
h4 { margin: 0em 0em -0.5em 0em; }
div { font-size: 0.9em;}
.solution { margin-top: -2.3em; _margin-top: -3em; margin-bottom: 0em; text-align: right; font-size: 1em;}
img { max-width: 100%; }
.mmlib_table__MODULE_ID__ { _width: 95%; padding: 0.5em; }
</style>



<script type="text/javascript">
// Initialize tabs, designate the tab named "Contents" as
// the tab selected by default.
var tabs = new _IG_Tabs(__MODULE_ID__, "__MSG_contents__");
function init() {

// Technique #2: Create the tab and define a corresponding <div> in the
// HTML portion of the gadget. Add static content to the <div>.
tabs.addTab("__MSG_contents__", "contents_id");
tabs.addTab("__MSG_puzzles__", "puzzles_id");
tabs.addTab("__MSG_rss__", "new_id");

}

// Call init function to initialize and display tabs.
_IG_RegisterOnloadHandler(init);
</script>


<div id="contents_id" style="display:none; font-size: 1em; line-height:180%; margin-left:0.5em; padding: 0.5em;">

<a title="Lawyer jokes and quotes - the funny way to look at lawyers and attorneys."
target="_top"
href="__MSG_joke__"
onclick="_IG_Analytics('UA-261914-9', '/brainteasers_gadget/lawyers-click')">
__MSG_lawyer_jokes__
</a>
<br />
<a title="Offers classic logic puzzles and riddles which can be solved by deductive reasoning."
target="_top"
href="__MSG_puzzle__"
onclick="_IG_Analytics('UA-261914-9', '/brainteasers_gadget/logic-click')">
__MSG_logic_puzzles__
</a>
<br />
<a title="Slice and complete various pictures (dissection geometry puzzles)."
target="_top"
href="__MSG_geometry__"
onclick="_IG_Analytics('UA-261914-9', '/brainteasers_gadget/geometry-click')">
__MSG_geometry_puzzles__
</a>
<br />
<a title="Move a match to rectify an equation or create a new picture."
target="_top"
href="__MSG_matchstick__"
onclick="_IG_Analytics('UA-261914-9', '/brainteasers_gadget/matchstick-click')">
__MSG_matchstick_puzzles__
</a>
<br />
<a title="Cryptograms and algebra puzzles where numbers are replaced by letters in equations."
target="_top"
href="__MSG_algebra__"
onclick="_IG_Analytics('UA-261914-9', '/brainteasers_gadget/algebra-click')">
__MSG_algebra_puzzles__
</a>
<br />
<a title="The most famous paradoxes - liar paradox, barber paradox, doubtful existence of God, sentences from life, sophisms."
target="_top"
href="__MSG_paradox__"
onclick="_IG_Analytics('UA-261914-9', '/brainteasers_gadget/paradoxes-click')">
__MSG_paradoxes__
</a>
<br />
<a title="Amazing optical illusions - an easy way to trick the human eye."
target="_top"
href="__MSG_illusion__"
onclick="_IG_Analytics('UA-261914-9', '/brainteasers_gadget/illusions-click')">
__MSG_optical_illusions__
</a>
<br />
<a title="Download a few IQ tests and logic games (a. k. a. puzzle games or mind games - typical brain food)." target="_top"
href="__MSG_game__"
onclick="_IG_Analytics('UA-261914-9', '/brainteasers_gadget/games-click')">
__MSG_games__
</a>
<br />

</div>



<div id="puzzles_id" style="display:none; padding: 0.5em;">

<script type="text/javascript" src="__MSG_script__"></script>

<br />

<!-- Create message within the DOM in order to position dismissible messages -->
<div id="message" style="font-size: 1.1em;">There is NO NEED to post solution for this old puzzle. The solution is already provided along with long discussion. If you wish to see new puzzles (possibly not solved yet) then click on the "RSS Feed" tab.</div>

<script>
var msg = new _IG_MiniMessage(__MODULE_ID__);
// Case 2: Create dismissible message with an existing HTML element
// Create a dismissible message referencing an HTML element already existing within
// the DOM. This will preserve the location of the message allowing the user
// to position where the message will show.
msg.createDismissibleMessage(_gel("message"));
</script>

</div>





<div id="new_id" style="display:none; font-size: 1.1em; padding: 0.5em;">

<div id=contents_div></div>

<script type="text/javascript">

// Get userprefs
var prefs = new _IG_Prefs(__MODULE_ID__);
var showdate = prefs.getBool("show_date");
var summary = prefs.getBool("show_summ");
var entries = prefs.getInt("num_entries");

// If user wants to display more than 5 entries, display an error
// and set the value to 5, the max allowed.
if (entries > 5)
{
alert("You cannot display more than 5 entries.");
entries = 5;
}

// Use the _IG_FetchFeedAsJSON() function to retrieve core feed data from
// the specified URL. Then combine the data with HTML markup for display in
// the gadget.
_IG_FetchFeedAsJSON(
"http://brainden.com/forum/index.php?act=rssout&id=1",
function(feed) {
if (feed == null){
alert("There is no data.");
return;
}

// Start building HTML string that will be displayed in gadget.
var html = "";
// Access the fields in the feed
html += "<div><b>" + feed.Title + "</b></div>";
html += "<div>" + feed.Description + "</div><br>";

// Access the data for a given entry
if (feed.Entry) {
for (var i = 0; i < feed.Entry.length; i++) {
html += "<div>"
+ "<a target='_blank' href='" + feed.Entry[i].Link + "'>"
+ feed.Entry[i].Title
+ "</a> ";
if (showdate==true)
{
// The feed entry Date field contains the timestamp in seconds
// since Jan. 1, 1970. To convert it to the milliseconds needed
// to initialize the JavaScript Date object with the correct date,
// multiply by 1000.
var milliseconds = (feed.Entry[i].Date) * 1000;
var date = new Date(milliseconds);
html += date.toLocaleDateString();
html += " ";
html += date.toLocaleTimeString();
}
if (summary==true) {
html += "<br><i>" + feed.Entry[i].Summary + "</i>";
}
html += "</div>";
}
}

_gel("contents_div").innerHTML = html;
// The rest of the function parameters, which are optional: the number
// of entries to return, and whether to return summaries.
}, entries, summary);

</script>


<br />


</div>





<script>
// Track this gadget using Google Analytics.
_IG_Analytics("UA-261914-9", "/brainteasers_gadget");
</script>


<script type="text/javascript">
var gadgetUrl = _args()['url'];
if (gadgetUrl.search ('brainden.com') < 0) {
  // Show minimessage asking user to upgrade to new location
This gadget has moved to a new location -- <a href='http://www.google.com/ig/add?moduleurl=http://brainden.com/gadgets/brainteasers-gadget.xml'>Upgrade</a> :: <a href='http://brainden.com/'>More info</a>
}
</script>





       ]]> 
    </Content>




  <Content type="html" view="canvas">
  <![CDATA[ 

<style type="text/css">
img { max-width: 100%; }
.mmlib_table__MODULE_ID__ { _width: 95%; padding: 0.5em; }
div.feedburnerFeedBlock ul { list-style-type: none; margin: 1em 2em 0 0; _margin-left: 2em; }
div.feedburnerFeedBlock ul li { border-bottom: 2px solid blue; padding-bottom: 2em; margin-bottom: 2em;}
div.feedburnerFeedBlock span.headline {	font-weight: bold; }
div.feedburnerFeedBlock p.date { display:block; font-size: 0.7em; margin: 0.3em 0 0.3em 0; }
#creditfooter {	display: none; }
</style>

<script src="http://feeds2.feedburner.com/Braindencom-NewPuzzles?format=sigpro&nItems=15&displayDate=true&dateLocation=above&openLinks=new" type="text/javascript" ></script>

<noscript><p>Subscribe to RSS headline updates from: <a href="http://feeds2.feedburner.com/Braindencom-NewPuzzles"></a><br/>Powered by FeedBurner</p> </noscript>

  ]]> 
  </Content>


</Module>