<center>
<div id="nav">
<!-- old
    <div id="line1">
        <a href="/home.php">Metroid Prime</a>
        <a href="/echoes/">Metroid Prime 2</a>
        <a class="last" href="/corruption/">Metroid Prime 3</a>
    </div>
    <div id="line2">
        <a href="/1/">Metroid</a>
        <a href="/0/">Metroid ZM</a>
        <a href="/2/">Metroid II</a>
        <a href="/3/">Super Metroid</a>
        <a class="last" href="/fusion/">Metroid Fusion</a>
    </div>
-->
    <div id="line1">
        <a href="/home.php">Metroid Prime</a>
        <a href="/hunters/">Hunters</a>
        <a href="/echoes/">Echoes</a>
        <a class="last" href="/corruption/">Corruption</a>
    </div>
    <div id="line2">
        <a href="/1/">Metroid</a>
        <a href="/0/">Zero Mission</a>
        <a href="/2/">Return of Samus</a>
        <a href="/3/">Super</a>
        <a class="last" href="/fusion/">Fusion</a>
    </div>
    <div id="line3">
        <!--<a target="_blank" href="/cgiirc-0.5.2/irc.cgi">Chat</a>-->
        <a target="_blank" href="http://forum.metroid2002.com/">Forum</a>
        <a href="/maru_mari/">Maru Mari</a>
        <a class="last" href="/backgrounds/">Backgrounds</a>
    </div>
</div>

<table border="0" cellspacing="10"><tr>

<td align="center">
<p class="noindent">
<?php

$german=(preg_match("/-de\.php$/",$_SERVER['PHP_SELF']));
$finnish=(preg_match("/-fi\.php$/",$_SERVER['PHP_SELF']));
$french=(preg_match("/-fr\.php$/",$_SERVER['PHP_SELF']));

if (! strstr($_SERVER['HTTP_USER_AGENT'], "MSIE")) {
	if ($german==1) {
		echo "W&auml;hle einen Stil: \n";
	} else if ($finnish==1) {
		echo "valitse tyyli: \n";
	} else if ($french==1) {
		echo "Choisir le design : \n";
	} else {
		echo "Select a Style: \n";
	}

echo <<<END
<form name="m2k2styles" action="">
<select name="m2k2style" onchange="goTopic(this.form)">
END;
$d = opendir('/home/metroid2002/styles') or die($php_errormsg);
while (false !== ($f = readdir($d))) {
    if (is_file("/home/metroid2002/styles/$f")) {
        if (preg_match('/.css/', $f)) {
            $f2 = str_replace("_", " ", $f);
            $fname = ucwords(substr($f2,0,-4));
            #if ($current == $fname) {
            #}
            #else {
                print "\t<option value=\"$f\">$fname</option>\n";
            #}
        }
    }
}
closedir($d);
echo <<<END
</select>
</form>
<font size="1">(<a href="javascript:deleteCookie('m2k2style2');">
END;

if ($german==1) {
	echo "Cookie l&ouml;schen";
} else if ($finnish==1) {
	echo "nollaa ev&auml;ste";
} else if ($french==1) {
	echo "effacer le cookie";
} else {
	echo "clear cookie";
}

echo <<<END
</a>)</font>
<Script language="javascript"><!--
restoreDefault(document.m2k2styles.m2k2style);
//--></script>
END;
} else {
if ($german==1) {
echo <<<END
<script type="text/javascript"><!--
google_ad_client = "pub-4676742799238768";
google_ad_width = 120;
google_ad_height = 60;
google_ad_format = "120x60_as_rimg";
google_cpa_choice = "CAAQo6bzzwEaCH2Z7F6KvRNwKOOz93M";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
END;
} else if ($finnish==1) {
echo <<<END
<script type="text/javascript"><!--
google_ad_client = "pub-4676742799238768";
google_ad_width = 120;
google_ad_height = 60;
google_ad_format = "120x60_as_rimg";
google_cpa_choice = "CAAQu4z0zwEaCHw0y868Cv6GKKHcl3Q";
google_ad_channel = "";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
END;
} else if ($french==1) {
echo <<<END
<script type="text/javascript"><!--
google_ad_client = "pub-4676742799238768";
google_ad_width = 120;
google_ad_height = 60;
google_ad_format = "120x60_as_rimg";
google_cpa_choice = "CAAQk4b7zwEaCGixdXuSasOjKLu493M";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
END;
} else {
echo <<<END
<script type="text/javascript"><!--
google_ad_client = "pub-4676742799238768";
google_ad_width = 120;
google_ad_height = 60;
google_ad_format = "120x60_as_rimg";
google_cpa_choice = "CAAQ2eOZzgEaCD4zuVkdzt_CKI-293M";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!--
<a target="_BLANK" style="border-bottom: none;" href="http://www.spreadfirefox.com/?q=affiliates&id=73031&t=78"><img border="0" alt="Get Firefox!" title="Get Firefox!" src="http://sfx-images.mozilla.org/affiliates/Buttons/120x60/get.gif"/></a>
-->
END;
}
}

echo <<<END
</p>
</td>

<td align="center">
<p class="noindent">
END;

$topofform="<form name=\"m2k2languages\" action=\"\">\n<select name=\"m2k2language\" onchange=\"goLanguage(this.form)\">\n";

if ($german==1) {
	$englishfilename=preg_replace("/(\S+)-de\.php$/","$1.php",$_SERVER['PHP_SELF']);
	$germanfilename=$_SERVER['PHP_SELF'];
	$finnishfilename=preg_replace("/(\S+)-de\.php$/","$1-fi.php",$_SERVER['PHP_SELF']);
	$frenchfilename=preg_replace("/(\S+)-de\.php$/","$1-fr.php",$_SERVER['PHP_SELF']);
	echo "&nbsp; ";
	echo $topofform;
	echo "<option value=\"x\">W&auml;hle eine Sprache:</option>\n";
} else if ($french == 1) {
	$englishfilename=preg_replace("/(\S+)-fr\.php$/","$1.php",$_SERVER['PHP_SELF']);
	$germanfilename=preg_replace("/(\S+)-fr\.php$/","$1-de.php",$_SERVER['PHP_SELF']);
	$finnishfilename=preg_replace("/(\S+)-fr\.php$/","$1-fi.php",$_SERVER['PHP_SELF']);
	$frenchfilename=$_SERVER['PHP_SELF'];
	echo "&nbsp; ";
	echo $topofform;
	echo "<option value=\"x\">choisissez une langue:</option>\n";
} else if ($finnish == 1) {
	$englishfilename=preg_replace("/(\S+)-fi\.php$/","$1.php",$_SERVER['PHP_SELF']);
	$germanfilename=preg_replace("/(\S+)-fi\.php$/","$1-de.php",$_SERVER['PHP_SELF']);
	$finnishfilename=$_SERVER['PHP_SELF'];
	$frenchfilename=preg_replace("/(\S+)-fi\.php$/","$1-fr.php",$_SERVER['PHP_SELF']);
	echo "&nbsp; ";
	echo $topofform;
	echo "<option value=\"x\">valitse kieli:</option>\n";
} else {
	$englishfilename=$_SERVER['PHP_SELF'];
	$germanfilename=preg_replace("/(\S+)\.php$/","$1-de.php",$_SERVER['PHP_SELF']);
	$finnishfilename=preg_replace("/(\S+)\.php$/","$1-fi.php",$_SERVER['PHP_SELF']);
	$frenchfilename=preg_replace("/(\S+)\.php$/","$1-fr.php",$_SERVER['PHP_SELF']);
	echo "&nbsp; ";
	echo $topofform;
	echo "<option value=\"x\">Select a Language:</option>\n";
}

echo "<option value=\"$englishfilename\">English</option>\n";
if (file_exists("/home/metroid2002$germanfilename")) {
	echo "<option value=\"$germanfilename\">Deutsch</option>\n";
}
if (file_exists("/home/metroid2002$frenchfilename")) {
	echo "<option value=\"$frenchfilename\">Fran&ccedil;ais</option>\n";
}
if (file_exists("/home/metroid2002$finnishfilename")) {
	echo "<option value=\"$finnishfilename\">Suomi</option>\n";
}

echo <<<END
</select>
</form>
<font size="1">(
END;

if ($german==1) {
	echo "nicht auf allen Seiten verf&uuml;gbar";
} else if ($finnish==1) {
	echo "ei saatavilla kaikilla sivuilla";
} else if ($french==1) {
	echo "non disponible pour toutes les pages";
} else {
	echo "not available on all pages";
}

echo <<<END
)</font>
</p>
</td>
END;

?>

</tr></table>

<!-- SiteSearch Google -->
<form method="get" action="//www.google.com/custom" target="_top">
<table border="0" bgcolor="#000000">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a style="border-bottom: none;" href="http://www.google.com/">
<img src="//www.google.com/logos/Logo_25blk.gif"
border="0" alt="Google"></img></a>
</td>
<td nowrap="nowrap">
<input type="hidden" name="domains" value="metroid2002.com"></input>
<input type="text" name="q" size="31" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Search"></input>
</td></tr>
<tr>
<td>&nbsp;</td>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value=""></input>
<font size="-1" color="#ffffff">Web</font>
</td>
<td>
<input type="radio" name="sitesearch" value="metroid2002.com" checked="checked"></input>
<font size="-1" color="#ffffff">metroid2002.com</font>
</td>
</tr>
</table>
<input type="hidden" name="client" value="pub-4676742799238768"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="3076824999"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#D7DFE3;GL:1;DIV:#940200;VLC:D7DFE3;AH:center;BGC:000000;LBGC:000000;ALC:E9DB94;LC:E9DB94;T:D7DFE3;GFNT:D7DFE3;GIMP:D7DFE3;LH:154;LW:270;L:https://www.metroid2002.com/tinylogo.jpg;S:https://www.metroid2002.com/;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>

</td></tr></table>
</form>
<!-- SiteSearch Google -->

</center>