<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <!--
    Wikipedia Gadget Design & Code: LabPixies All subsequent code and resources
    used are proprietary of LabPixies unless directly stated otherwise.
    Copyright (C) 2008 LabPixies. www.labpixies.com This work is licensed under
    the Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License. To view
    a copy of this license, visit
    http://creativecommons.org/licenses/by-nc-nd/2.5/ or send a letter to
    Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California,
    94105, USA.
  -->
  <ModulePrefs author="LabPixies" author_email="info@labpixies.com"
    description="__MSG_desc__" screenshot="http://cdn.labpixies.com/campaigns/wiki/images/screenshot2.jpg"
    title="__MSG_title__" title_url="http://www.labpixies.com" category="tools"
    thumbnail="http://cdn.labpixies.com/campaigns/wiki/images/thumbnail.jpg"
    render_inline="never" height="170">

    <Locale messages="http://www.labpixies.com/campaigns/wiki/i19/all_all.xml" />
    <Locale lang="es" messages="http://www.labpixies.com/campaigns/wiki/i19/es_all.xml" />
    <Locale lang="de" messages="http://www.labpixies.com/campaigns/wiki/i19/de_all.xml" />
    <Locale lang="fr" messages="http://www.labpixies.com/campaigns/wiki/i19/fr_all.xml" />
    <Locale lang="it" messages="http://www.labpixies.com/campaigns/wiki/i19/it_all.xml" />
    <Locale lang="ja" messages="http://www.labpixies.com/campaigns/wiki/i19/ja_all.xml" />
    <Locale lang="nl" messages="http://www.labpixies.com/campaigns/wiki/i19/nl_all.xml" />
    <Locale lang="pl" messages="http://www.labpixies.com/campaigns/wiki/i19/pl_all.xml" />
    <Locale lang="pt-PT" messages="http://www.labpixies.com/campaigns/wiki/i19/pt_all.xml" />
    <Locale lang="pt-BR" messages="http://www.labpixies.com/campaigns/wiki/i19/pt_all.xml" />
    <Locale lang="zh-CN"
      messages="http://www.labpixies.com/campaigns/wiki/i19/zh_cn_all.xml" />
    <Locale lang="iw" messages="http://www.labpixies.com/campaigns/wiki/i19/iw_all.xml"
      language_direction="rtl" />

    <Require feature='setprefs' />
    <Require feature='dynamic-height' />
    <Require feature="analytics" />

  </ModulePrefs>

  <UserPref name="language" datatype="hidden" default_value="en" />
  <UserPref name="source" datatype="hidden" default_value="wikipedia" />
  <UserPref name="last_searches" datatype="hidden" default_value="none" />

  <Content type="html">
<![CDATA[
<title>Wikipedia Search</title>
<meta name="Description" content="Search Wikipedia and wikipedia sub-domains">
<meta name="words" content="LabPixies, Gadgets, Gadget, Widget, Widgets, Personalized, Homepage, Wikipedia, Search">
<style type="text/css">
body {direction:ltr;}
.style0{font-size: 0px;}

.style1{font-size: 1px;}

.clearer {
clear:left;
height:0;
line-height:0;
font-size:0;
}
.style3 {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #595959;
}

.style4 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight:bold;
color: #333333;
padding-left:5px;
text-align: left;
height: 20px;
}

.style5 {
font-family: Arial, Helvetica, sans-serif;
text-decoration:none;
font-size: 12px;
color: #2f6fab;
}

.style6 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight:bold;
color: #343434;
}

.style7 {
border-width: 1px;
border-style: solid;
border-color: #aaaaaa;
background-color: #ffffff;
padding-top: 0px;
padding-bottom: 4px;
padding-left: 0px;
padding-right: 0px;
width: 100%;
line-height:16px
}

.style8 {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
color: #595959;
}
.style9 {
font-family: Arial, Helvetica, sans-serif;
text-decoration:none;
font-size: 10px;
font-weight:bold;
color: #2f6fab;
}

#searchInput {
    border: 0px solid #2F6FAB;
    margin: 0 0 0 0;
    font-size: 13px;
padding: 1px;
vertical-align: top;
font-family: Arial;
}

</style>

<!-- PUT THIS TAG IN THE head SECTION -->
<script type="text/javascript" src="http://partner.googleadservices.com/gampad/google_service.js">
</script>
<script type="text/javascript">
  GS_googleAddAdSenseService("ca-pub-8123415297019784");
  GS_googleEnableAllServices();
</script>
<script type="text/javascript">
  GA_googleAddSlot("ca-pub-8123415297019784", "wikipedia_search_txt");
</script>
<script type="text/javascript">
  GA_googleFetchAds();
</script>
<!-- END OF TAG FOR head SECTION -->

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script>
<script type="text/javascript">
var _gadgetID=57;
var $lp=jQuery.noConflict();

</script>
<script type="text/javascript">

    var IMAGE_BASE = "http://cdn.labpixies.com/campaigns/wiki/images/";

var g_language;
var g_source;
var g_last_searches;
var is_last_displayed=false;
var g_last_code="";

//function for setting the size and position of the setting box according to the gadget size and position
function settings_button(){

var x1=$lp("#right_side").offset().left;
var x2=$lp("#left_side").offset().left;
var y2=$lp("#left_side").offset().top;

//needs to beging 11 pixels from the left and 8 from the top
document.getElementById("settings_box").style.left=(x2+11)+"px";
document.getElementById("settings_box").style.top=(y2+8)+"px";
//calculating the width
var width=x1+99-x2-22;
//setting the width
document.getElementById("settings_box").style.width=width+"px";
//show current values
document.getElementById("language").value = g_language;
document.getElementById("source").value = g_source;
//displaying
document.getElementById("settings_box").style.display = "";
}


//function for saving the new settings
function save_button(){
//save to local var
g_language = document.getElementById("language").value;
g_source   = document.getElementById("source").value;

//save to prefs
prefs.set("language", g_language);
prefs.set("source", g_source);

//closing the settings box
document.getElementById("settings_box").style.display = "none";

//update UI according to the new settings
updateUI();

document.getElementById("searchInput").select();
}

//function when clicking the cancel button, closing the settings box
function cancel_button(){
document.getElementById("settings_box").style.display = "none";
document.getElementById("searchInput").select();
}


//function for serching a value from the last searches list, getting the string to search as a parameter
function goFromHistory(input){

var url = "";
if(g_source=="commons"){
url = "http://commons.wikimedia.org/wiki/" + input;
}
else if(g_source=="wikispecies"){
url = "http://species.wikimedia.org/wiki/" + input;
}
else if(g_source=="wikimeta"){
url = "http://meta.wikimedia.org/wiki/" + input;
}
else{
url = "http://" + g_language + "." + g_source + ".org/wiki/" + input;
}

window.open(url,"wiki_res","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes, width=800, height=600");
}


//Go search when the users entered text in the box and clicked the Go button
function go_click(){

var url = "";
if(g_source=="commons"){
url = "http://commons.wikimedia.org/wiki/" + document.getElementById('searchInput').value;
}
else if(g_source=="wikispecies"){
url = "http://species.wikimedia.org/wiki/" + document.getElementById('searchInput').value;
}
else if(g_source=="wikimeta"){
url = "http://meta.wikimedia.org/wiki/" + document.getElementById('searchInput').value;
}
else{
url = "http://" + g_language + "." + g_source + ".org/wiki/" + document.getElementById('searchInput').value;
}
//needs to update the 10 last searches list
if (document.getElementById("searchInput").value!="") updateLastSearches();
window.open(url,"wiki_res","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes, width=800, height=600");
}

//Seacrh when the users entered text in the box and clicked the Search button
function search_click(){

var url = "";
if(g_source=="commons"){
url = "http://commons.wikimedia.org/wiki/Special:Search?search="+document.getElementById("searchInput").value+"&fulltext="+document.getElementById("searchInput").value;
}
else if(g_source=="wikispecies"){
url = "http://species.wikimedia.org/wiki/Special:Search?search="+document.getElementById("searchInput").value+"&fulltext="+document.getElementById("searchInput").value;
}
else if(g_source=="wikimeta"){
url = "http://meta.wikimedia.org/wiki/Special:Search?search="+document.getElementById("searchInput").value+"&fulltext="+document.getElementById("searchInput").value;
}
else{
url = "http://" + g_language + "." + g_source + ".org/wiki/Special:Search?search="+document.getElementById("searchInput").value+"&fulltext="+document.getElementById("searchInput").value;
}
//needs to update the 10 last searches list
if (document.getElementById("searchInput").value!="") updateLastSearches();

window.open(url,"wiki_res","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes, width=800, height=600");
}


//Function for updating the Last 10 searches list when a new search is done
function updateLastSearches() {
//going through the searches array and shifting the last searches
for (var i=(g_last_searches.length-1); i>0; i--) {
g_last_searches[i]=g_last_searches[i-1];
}
//inserting the new search at the top of the list
g_last_searches[0]=document.getElementById("searchInput").value;
var str="";
//creating the new str for the settings (looks like search1words#@!search2words#@!search3words#@!search4words#@! . . . .
for(var j=0;j<10; j++) {
str= str+g_last_searches[j]+"#@!";
}
prefs.set("last_searches", str);

createSearchesCode();

//if the list is now being displayed, then replacing the code to the updated code.
if (is_last_displayed)  {
document.getElementById("last_table").innerHTML = g_last_code;
_IG_AdjustIFrameHeight();
}
}

function createSearchesCode() {
//creating the new code for displaying the current updated last searches list
g_last_code="<table class='style7' style='direction:__BIDI_DIR__;' cellpadding='0' cellspacing='0' border='0'>"+
"<tr style='background-color: #f1f1f1;'><td class='style4' style='vertical-align:middle; text-align:__BIDI_START_EDGE__; padding-__BIDI_START_EDGE__:5px;' >__MSG_last_searches__</td>"+
"<td style='text-align:__BIDI_END_EDGE__; padding-__BIDI_END_EDGE__:5px; height:20px;'><span id='close_lbl' class='style9' style='cursor:pointer; vertical-align:middle;' onclick='toggleLast();' onmouseover='onMouseOver(\"close_lbl\");' onmouseout='onMouseOut(\"close_lbl\");' >__MSG_close__</span></td></tr>";

var isEmptyList=true;

for(var j=0;j<10; j++) {
if (g_last_searches[j]!="") {
isEmptyList=false;
g_last_code= g_last_code+'<tr><td height="16" class="style5" colspan="2" style="line-height:14px;" >&nbsp;-&nbsp;<span id="last_searches_'+j+'" onClick="goFromHistory(\''+g_last_searches[j]+'\');" class="style5" style="cursor:pointer; overflow:hidden;" onmouseover="onMouseOver(\'last_searches_'+j+'\');" onmouseout="onMouseOut(\'last_searches_'+j+'\');">'+g_last_searches[j]+'</span></td></tr>';
}
}
if (isEmptyList) {
g_last_code= g_last_code+'<tr><td colspan="2" class="style4" style="text-align:center; height:40px; vertical-align:middle; width:100%">__MSG_no_last_searches__</td></tr>';
}
g_last_code=g_last_code+"</table>";

}

//Function for openning and closing the last searches list
function toggleLast() {

//Open
if (!is_last_displayed) {
is_last_displayed=true;

createSearchesCode();

document.getElementById("last_table").innerHTML = g_last_code;
}
//Close
else {
is_last_displayed=false;
document.getElementById("last_table").innerHTML = "";
}
_IG_AdjustIFrameHeight();
}

//Function for handling the input and recognizing an ENTER press
function onKeyHandle(e){
var keynum;
if(window.event){
keynum = e.keyCode;
}
else if(e.which){
keynum = e.which;
}

if(keynum == 13){
if(document.getElementById("searchInput").value!=""){
go_click();
}
return false;
}
return true;
}

//Updates the logo and title according to the new settings
function updateUI(){

//change logo
_gel("logo").style.backgroundImage = 'url('+_IG_GetImageUrl(IMAGE_BASE+"logos/"+ g_source +".gif")+')';

//update title
if(g_source=="wikipedia") str_title ="Wikipedia";
if(g_source=="wiktionary") str_title ="Wiktionary";
if(g_source=="wikibooks") str_title ="Wikibooks";
if(g_source=="wikiversity") str_title ="Wikiversity";
if(g_source=="wikinews") str_title ="Wikinews";
if(g_source=="wikispecies") str_title ="Wikispecies";
if(g_source=="commons") str_title ="Commons";
if(g_source=="wikiquote") str_title ="Wikiquote";
if(g_source=="wikisource") str_title ="Wikisource";
if(g_source=="wikimeta") str_title ="Meta-Wiki";

document.getElementById("search_title").innerHTML = "<span class='style1'>&nbsp;</span>" + str_title + " ("+g_language+"):";
}

//Called on resize, sets the maximal width for the gadget and the appropraite width to the settings box according to the gadget width
function resize() {

//Setting gadget width, max width=400
var cur_width=document.getElementById("width_check").offsetWidth;
if (cur_width>400) {
document.getElementById("main_div").style.width="400px";
}
else{
document.getElementById("main_div").style.width='100%';
}

var x1=$lp("#right_side").offset().left;
var x2=$lp("#left_side").offset().left;
var y2=$lp("#left_side").offset().top;

//var x1=lp_getAbsoluteLeft("right_side");
//var x2=lp_getAbsoluteLeft("left_side");
//var y2=lp_getAbsoluteTop("left_side");

//Setting the settings box position and width
if(document.getElementById("settings_box").style.display!="none") {
document.getElementById("settings_box").style.left=(x2+11)+"px";
document.getElementById("settings_box").style.top=(y2+8)+"px";
var width=x1+99-x2-22;
document.getElementById("settings_box").style.width=width+"px";
}
}

//Function for handling a featured_content click
function featured_content_button () {

var url="";
if(g_language=="en") url ="http://en.wikipedia.org/wiki/Portal:Featured_content";
if(g_language=="de") url ="http://de.wikipedia.org/wiki/Portal:Wikipedia_nach_Themen";
if(g_language=="es") url ="http://en.wikipedia.org/wiki/Portal:Featured_content";
if(g_language=="fr") url ="http://en.wikipedia.org/wiki/Portal:Featured_content";
if(g_language=="it") url ="http://it.wikipedia.org/wiki/Wikipedia:Vetrina";
if(g_language=="nl") url ="http://en.wikipedia.org/wiki/Portal:Featured_content";
if(g_language=="ja") url ="http://en.wikipedia.org/wiki/Portal:Featured_content";
if(g_language=="pl") url ="http://en.wikipedia.org/wiki/Portal:Featured_content";
if(g_language=="pt") url ="http://en.wikipedia.org/wiki/Portal:Featured_content";
if(g_language=="ru") url ="http://en.wikipedia.org/wiki/Portal:Featured_content";
if(g_language=="fi") url ="http://en.wikipedia.org/wiki/Portal:Featured_content";
if(g_language=="sv") url ="http://en.wikipedia.org/wiki/Portal:Featured_content";
if(g_language=="he") url ="http://he.wikipedia.org/wiki/%D7%A4%D7%95%D7%A8%D7%98%D7%9C:%D7%A2%D7%A8%D7%9B%D7%99%D7%9D_%D7%9E%D7%95%D7%9E%D7%9C%D7%A6%D7%99%D7%9D";
if(g_language=="zh") url ="http://zh.wikipedia.org/wiki/Wikipedia:%E7%89%B9%E8%89%B2%E5%85%A7%E5%AE%B9";
if(g_language=="ko") url ="http://en.wikipedia.org/wiki/Portal:Featured_content";

window.open(url,"wiki_featured","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes, width=800, height=600");
}

//Function for handling a random_article click
function random_article_button () {
var url="";
if(g_language=="en") url ="http://en.wikipedia.org/wiki/Special:Random";
if(g_language=="de") url ="http://de.wikipedia.org/wiki/Spezial:Zuf%C3%A4llige_Seite";
if(g_language=="es") url ="http://es.wikipedia.org/wiki/Especial:Random";
if(g_language=="fr") url ="http://fr.wikipedia.org/wiki/Special:Page_au_hasard";
if(g_language=="it") url ="http://it.wikipedia.org/wiki/Speciale:PaginaCasuale";
if(g_language=="nl") url ="http://nl.wikipedia.org/wiki/Speciaal:Willekeurig";
if(g_language=="ja") url ="http://ja.wikipedia.org/wiki/%E7%89%B9%E5%88%A5:Random";
if(g_language=="pl") url ="http://pl.wikipedia.org/wiki/Specjalna:Losowa_strona";
if(g_language=="pt") url ="http://pt.wikipedia.org/wiki/Especial:Aleat%C3%B3ria";
if(g_language=="ru") url ="http://ru.wikipedia.org/wiki/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:Random";
if(g_language=="fi") url ="http://fi.wikipedia.org/wiki/Toiminnot:Satunnainen_sivu";
if(g_language=="sv") url ="http://sv.wikipedia.org/wiki/Special:Slumpsida";
if(g_language=="he") url ="http://he.wikipedia.org/wiki/%D7%9E%D7%99%D7%95%D7%97%D7%93:%D7%90%D7%A7%D7%A8%D7%90%D7%99";
if(g_language=="zh") url ="http://zh.wikipedia.org/wiki/Special:Random";
if(g_language=="ko") url ="http://ko.wikipedia.org/wiki/%ED%8A%B9%EC%88%98%EA%B8%B0%EB%8A%A5:Random";

window.open(url,"wiki_random","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes, width=800, height=600");
}

//function to handle mouse over links
function onMouseOver(id) {
//For these linke we want also to change the color. Underline all links on rollover.
if ((id=="settings_lbl") || (id=="save_lbl") || (id=="cancel_lbl")) {
document.getElementById(id).style.color='#2F6FAB';
}
document.getElementById(id).style.textDecoration='underline';
}

//function to handle mouse out of links
function onMouseOut(id) {
if ((id=="settings_lbl") || (id=="save_lbl") || (id=="cancel_lbl")) {
document.getElementById(id).style.color='#595959';
}
document.getElementById(id).style.textDecoration='none';
}

window.onresize=resize;

</script>
<div style="height:10px;font-size:1px;"></div>
<div style="text-align:center;">
<center>
<div id="width_check" class="style1">&nbsp;</div>
<div id="main_div">
<table id="main_table" width="100%" style="width:100%;" cellspacing="0" border="0" cellpadding="0">
<tr height="71">
<td height="71" width="100%" valign="middle">
<table height="71" cellspacing="0" border="0" cellpadding="0">
<tr>
<td id="left_side" style="width:61px; height:71px; background-position:left top; background-repeat:no-repeat; text-align:left;">
<table height="71" width="61" cellspacing="0" border="0" cellpadding="0">
<tr height="15" width="61" ><td class="style1">&nbsp;</td></tr>
<tr height="40" width="61">
<td width="11" class="style1">&nbsp;</td>
<td width="40" class="style1"  id="logo">&nbsp;</td>
<td width="10" class="style1">&nbsp;</td>
</tr>
<tr height="16" width="61"><td class="style1">&nbsp;</td></tr>
</table>
</td>
<td id="center_tbl" height="71" width="100%" style="width:100%; background-position:left top; background-repeat:repeat-x;">
<table height="71" cellspacing="0" border="0" cellpadding="0" width="100%">
<tr height="17" width="100%"><td class="style0">&nbsp;</td></tr>
<tr><td height="17" width="100%" class="style6" id="search_title" valign="top" align="left">Wikipedia (en):</td></tr>
<tr><td height="17" width="100%" id="input_td" class="style0" style="padding-__BIDI_START_EDGE__:2px; text-align:__BIDI_START_EDGE__; direction:__BIDI_DIR__;" valign="bottom" ><input onkeypress="onKeyHandle(event);" style="width:100%; background:transparent;" type="text" name="search" id="searchInput" value="" size="2" /></td></tr>
<tr height="20" width="100%"><td class="style0">&nbsp;</td></tr>
</table>
</td>
<td id="right_side" width="99" height="71" valign="top" style="background-position:right top; background-repeat:no-repeat;" >
<table width="99" cellspacing="0" border="0" cellpadding="0" style="margin-top:8px;">
<tr width="99" height="63">
                   <td width="99" height="63">
                      <table width="99" height="63" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                          <td style="width:99px; height:28px; text-align:right; vertical-align:top;">
                            <div id="settings_lbl" align="right" class="style8" style="width:85px; height:28px; overflow:hidden; cursor:pointer; margin-right:14px;" onclick="settings_button();" onmouseout="onMouseOut('settings_lbl');" onmouseover="onMouseOver('settings_lbl');">__MSG_settings__</div>
                          </td>
                         </tr>
                         <tr>
                          <td style="width:97px; height:16px; text-align:left; vertical-align:top;">
                               <img width="27" height="16" id="go_img" border="0" onmouseout="this.src=_IG_GetImageUrl(IMAGE_BASE+'go.gif');" onmouseover="this.src=_IG_GetImageUrl(IMAGE_BASE+'go_roll.gif');" style="cursor:pointer; margin:0px 2px 0px 11px;" onclick="go_click();pageTracker._trackEvent('Wikipedia_Search','go_click');" />
                            <img width="43" height="16" id="search_img" border="0" onmouseout="this.src=_IG_GetImageUrl(IMAGE_BASE+'search.gif');" onmouseover="this.src=_IG_GetImageUrl(IMAGE_BASE+'search_roll.gif');" style="cursor:pointer;" onclick="search_click();pageTracker._trackEvent('Wikipedia_Search','search_click');" />
                             </td>
                            </tr>
                            <tr>
                               <td height="19" class="style1">&nbsp;</td>
                            </tr>
                      </table>
                   </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
  <table id="features_tbl" direction="__BIDI_DIR__;" cellspacing="0" border="0" cellpadding="0" align="__BIDI_START_EDGE__;">
  <tr>
  <td class="style9" style="text-align:center; vertical-align:top; padding-__BIDI_START_EDGE__:10px; padding-__BIDI_END_EDGE__:5px; border-right: 1px solid #2f6fab; cursor:pointer;" id="last_title" onclick="toggleLast(); pageTracker._trackEvent('Wikipedia_Search','last_search_history_click');" onmouseout="onMouseOut('last_title');" onmouseover="onMouseOver('last_title');">__MSG_last_searches__</td>
  <td id="random_title" style="text-align:center; vertical-align:top; padding-__BIDI_START_EDGE__:5px; padding-__BIDI_END_EDGE__:5px; cursor:pointer; border-right: 1px solid #2f6fab;" class="style9" onclick="random_article_button();pageTracker._trackEvent('Wikipedia_Search','random_article_click');" onmouseout="onMouseOut('random_title');" onmouseover="onMouseOver('random_title');">__MSG_random_article__</td>
  <td id="featured_title" style="text-align:center; vertical-align:top; padding-__BIDI_START_EDGE__:5px; padding-__BIDI_END_EDGE__:10px; cursor:pointer;" class="style9" onclick="featured_content_button();pageTracker._trackEvent('Wikipedia_Search','featured_content_click');" onmouseout="onMouseOut('featured_title');" onmouseover="onMouseOver('featured_title');">__MSG_featured_content__</td>
          </tr>
          <tr><td height="8" colapsn="3" class="style1">&nbsp;</td></tr>
        </table>
      </div>
      <table cellspacing="0" border="0" cellpadding="0" style="clear:both; width:100%;">
<tr>
<td width="100%" id="last_table" style="padding-left:5px; padding-right:5px; font-size:1px;"></td>
</tr>
</table>
<div id="settings_box" style="display:none; position:absolute; direction:__BIDI_DIR__;">
<table height="46" cellpadding="0" cellspacing="0" style="background-color:#fafafa;">
<tr>
<td colspan="2" height="9" valign="bottom" align="__BIDI_END_EDGE__" class="style8" style="text-align:__BIDI_END_EDGE__; padding-__BIDI_END_EDGE__:4px; padding-bottom:0px;"><span id="cancel_lbl" class="style8" onclick="cancel_button();" style="cursor:pointer;" onmouseout="onMouseOut('cancel_lbl');" onmouseover="onMouseOver('cancel_lbl');">__MSG_cancel__</span>&nbsp;&nbsp;<span  id="save_lbl" class="style8" onclick="save_button();" style="cursor:pointer;" onmouseout="onMouseOut('save_lbl');" onmouseover="onMouseOver('save_lbl');">__MSG_save__</span></td>
</tr>
<tr>
<td class="style1" width="264" height="15">
<div style="width:264px; height:15px;">
<table height="15" width="264" cellpadding="0" cellspacing="0">
<tr>
<td class="style1" width="5" height="15">&nbsp;</td>
<td style="padding-right:11px;" class="style6" width="134" height="15" align="left;" valign="bottom">__MSG_language__:</td>
<td class="style1" width="5" height="15">&nbsp;</td>
<td style="padding-right:11px;" class="style6" width="120" height="15" align="left;" valign="bottom">__MSG_source__:</td>
</tr>
</table>
</div>
</td>
<td class="style1" height="15">&nbsp;</td>
</tr>
<tr height="25">
<td class="style1" width="264" height="22">
<div style="width:264px; height:22px;">
<table height="22" width="264" cellpadding="0" cellspacing="0">
<tr>
<td class="style1" width="5" height="22">&nbsp;</td>
<td valign="top" class="style6" align="left" width="134">
<select id="language" name="language" style="font-size:12px; width:124px;" >
<option value="en">English</option>
<option value="de">German</option>
<option value="es">Spanish</option>
<option value="fr">French</option>
<option value="it">Italian</option>
<option value="nl">Dutch</option>
<option value="ja">Japanese</option>
<option value="pl">Polish</option>
<option value="pt">Portuguese</option>
<option value="ru">Russian</option>
<option value="fi">Suomi</option>
<option value="sv">Svenska</option>
<option value="he">Hebrew</option>
<option value="zh">Chinese</option>
<option value="ko">Korean</option>
</select>
</td>
<td class="style1" height="22" width="5">&nbsp;</td>
<td valign="top" class="style6" align="left" width="120">
<select id="source" name="source" style="font-size:12px; width:110px;">
<option value="wikipedia">Wikipedia</option>
<option value="wiktionary">Wiktionary</option>
<option value="wikibooks">Wikibooks</option>
<option value="wikiversity">Wikiversity</option>
<option value="wikinews">Wikinews</option>
<option value="wikispecies">Wikispecies</option>
<option value="commons">Commons</option>
<option value="wikiquote">Wikiquote</option>
<option value="wikisource">Wikisource</option>
<option value="wikimeta">Meta-Wiki</option>
</select>
</td>
</tr>
</table>
</div>
</td>
<td class="style1" height="22" width="100%" >&nbsp;</td>
</tr>
</table>
</div>
<!--<div id="logo_select" style="display:none; position:relative; top:-26px; left:46px; text-align:left;" >
<select id="source_logo" name="source_logo" style="font-size:12px; width:110px;" onchange="source_select();">
<option value="wikipedia">Wikipedia</option>
<option value="wiktionary">Wiktionary</option>
<option value="wikibooks">Wikibooks</option>
<option value="wikiversity">Wikiversity</option>
<option value="wikinews">Wikinews</option>
<option value="wikispecies">Wikispecies</option>
<option value="commons">Commons</option>
<option value="wikiquote">Wikiquote</option>
<option value="wikisource">Wikisource</option>
<option value="wikimeta">Meta-Wiki</option>
</select>
</div>-->
</div>
<div id="lp_ad_div" style="margin-top:5px;">
<!-- PUT THIS TAG IN DESIRED LOCATION OF SLOT roundem_up_txt -->
<script type="text/javascript">
GA_googleFillSlot("wikipedia_search_txt");
</script>
<!-- END OF TAG FOR SLOT roundem_up_txt  -->
</div>
<div class="clearer"></div>
</center>
</div>

<!-- LP footer -->
<div>
<script type="text/javascript">
    var mMENU = _IG_GetCachedUrl("http://cdn.labpixies.com/infra/js/lp_footer.js");
    document.write('<scr'+'ipt type="text/javascript" src="'+mMENU+'"></scr'+'ipt>');
  </script>
</div>

<script type="text/javascript">

function setimages() {
_gel("go_img").src= _IG_GetImageUrl(IMAGE_BASE+"go.gif");
_gel("search_img").src= _IG_GetImageUrl(IMAGE_BASE+"search.gif");
_gel("left_side").style.backgroundImage = 'url('+_IG_GetImageUrl(IMAGE_BASE+"background_left_new.gif")+')';
_gel("right_side").style.backgroundImage = 'url('+_IG_GetImageUrl(IMAGE_BASE+"background_right.gif")+')';
_gel("center_tbl").style.backgroundImage = 'url('+_IG_GetImageUrl(IMAGE_BASE+"background_pixel.gif")+')';

//_gel("source_logo").style.backgroundImage = 'url('+_IG_GetImageUrl(IMAGE_BASE+"wikipedia.gif")+')';
}

setimages();

//OnLoad function
_IG_RegisterOnloadHandler(function () {

prefs = new _IG_Prefs();

//get last settings from prefs
g_language =  prefs.getString('language');
g_source=  prefs.getString('source');

//prefs.set("last_searches","");
var temp_last=prefs.getString('last_searches');
var tmp_arr=temp_last.split('#@!');
g_last_searches = new Array(10);
for (var i=0; i<10; i++){
g_last_searches[i]="";
if((tmp_arr[i]!=undefined) && (tmp_arr[i]!='none')) g_last_searches[i]=tmp_arr[i];
}

//update UI
updateUI();

resize();
_IG_AdjustIFrameHeight();
});

_IG_Analytics("UA-345375-1", "/wikipedia");
pageTracker = _gat._getTracker("UA-345375-1");
pageTracker._initData();

</script>

]]>
  </Content>
</Module>