// Get number of members in arenateam //
    $arenateam_members = mysql_num_rows($mlquery);
    // Statistics //
    if ($arenateam["wins"]) {
        $arenateam["win_percent_week"] = round($arenateam["wins"] / $arenateam["games"] * 100);
    } else {
        $arenateam["win_percent_week"] = 0;
    }
    if ($arenateam["wins2"]) {
        $arenateam["win_percent_season"] = round($arenateam["wins2"] / $arenateam["played"] * 100);
    } else {
        $arenateam["win_percent_season"] = 0;
    }
    $arenateam["losses_week"] = $arenateam["games"] - $arenateam["wins"];
    $arenateam["losses_season"] = $arenateam["played"] - $arenateam["wins2"];
    startcontenttable("team-side");
    ?>
<div class="profile-wrapper">
<blockquote>
<b class="iarenateams">
<h4>
<a href="index.php?searchType=arenateams"><?php 
    echo $lang["team_profile"];
    ?>
</a>
</h4>
<h3><?php 
    echo $arenateam["type"], "v", $arenateam["type"], " ", $lang["team_statistics"];
    ?>
</h3>
</b>
function showerror($errTitle, $errMessage)
{
    startcontenttable("team-side");
    echo "Error - ", $errTitle, "<br />", $errMessage;
    endcontenttable();
}
    ?>
<script type="text/javascript">
	rightSideImage = "item";
	changeRightSideImage(rightSideImage);

	setcookie("cookieMenuText", "<?php 
    echo $lang["items"];
    ?>
");
	document.getElementById('replaceSearchOption').innerHTML = "<?php 
    echo $lang["items"];
    ?>
";
</script>
<?php 
    startcontenttable();
    ?>
<div class="profile-wrapper">
<blockquote>
<b class="iitems">
<h4>
<a href="index.php"><?php 
    echo $lang["armory_search"];
    ?>
</a>
</h4>
<h3><?php 
    echo $lang["all_items"];
    ?>
</h3>
</b>
    echo $lang["bank_log"];
    ?>
</a>
</li>
<li class="tab-right"></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="parchment-top">
<div class="parchment-content">
<div class="mini-search-start-state" id="results-side-switch">
<?php 
    startcontenttable("player-side");
    ?>
<div>
<div class="generic-wrapper">
<div class="generic-right">
<div class="genericHeader">
<div style="margin-top: 10px;">
<div class="profile">
<div class="guildbanks-faction-<?php 
    echo $faction;
    ?>
">
<div class="profile-left">
<div class="profile-right">
<div style="height: 140px; width: 100%;">
<div class="reldiv">