<?php
/*
$filename = "thesite.xml";
$xmlDoc = new DOMDocument();
$xmlDoc->load($filename);
if(! $xmlDoc->validate()) { echo "Uh-oh, something\'s gone terribly wrong."; }
*/
include("populateperson.php");

$personnelmenuwidth = '230px';
/*
$colors = $xmlDoc->getElementsByTagName("color");
for ($i=0; $i < $colors->length; $i++)
{
	$color[$i] = $colors->item($i)->childNodes->item(0)->nodeValue;
}


$positions = $xmlDoc->getElementsByTagName("l1_buttonposition");
for ($i=0; $i < $positions->length; $i++)
{
	$x[$i] = $positions->item($i)->attributes->getNamedItem('x')->textContent;
	$y[$i] = $positions->item($i)->attributes->getNamedItem('y')->textContent;
	$width[$i] = $positions->item($i)->attributes->getNamedItem('width')->textContent;
}
*/
$color[0] = '333399';
$color[1] = '663399';
$color[2] = '993399';
$color[3] = '993366';
$color[4] = '996633';
$color[5] = '993333';

$activecolor[0] = '4040BF';
$activecolor[1] = '8040BF';
$activecolor[2] = 'BF40BF';
$activecolor[3] = 'BF4080';
$activecolor[4] = 'BF8040';
$activecolor[5] = 'BF4040';

$y[0] = 80;
$y[1] = 30;
$y[2] = 5;
$y[3] = 7;
$y[4] = 40;
$y[5] = 90;

$x[0] = 0;
$x[1] = 120;
$x[2] = 260;
$x[3] = 415;
$x[4] = 545;
$x[5] = 630;

$width[0] = 130;
$width[1] = 100;
$width[2] = 100;
$width[3] = 100;
$width[4] = 100;
$width[5] = 100;

?>
body {background-color: black;}
a {text-decoration:underline; color:white; font-family: Arial;}
a.menu {text-decoration:none; color:white; font-family: Arial;}

#entire { padding: 0px; margin: 0px; width:750px; /* border: medium double rgb(250,0,255); */}
#header {/* border: medium double rgb(250,0,255);*/}
#menu { position:relative; width:750px; top: 20px; /* border: medium double rgb(250,0,255);*/ }

#tongue {position: absolute; top:30; left:99;}


<?php 
for ($i=0; $i < 6; $i++)
{
	echo "#link".$i." {position:absolute; z-index:0; top:".$y[$i]."; left: ".$x[$i]."; background-color: #".$color[$i]."; padding: 4px; width: ".$width[$i]."; text-align:center; }\n";
}
?>

#personnelmenu {
	position:absolute; width: 108px; top: <?php print($y[1] + 29) ?>px; left: <?php print($x[1]) ?>px; z-index:5;
	visibility: hidden;
	color: white; text-align:left;
	background-color: #732673;
	}


<?php
for ($i=0; $i < count($person); $i++)
{
	$top = 20*$i;
	print("#person" . $i . " {position:absolute; background-color: #".$color[1]."; width: ".$personnelmenuwidth."; text-align:left; z-index: 5; top: ".$top."; white-space: nowrap;}\n");
}
?>
