<?php
/*************************************************************************
 *
 * NAME  site_mat.inc
 *
 * DESCRIPTION
 *   Test site for Lilac and black web site
 *
 ******/

/* 
 * The site map
*/
$site_map=array(

/*************************************************************************
 *
 * Förrätter
 *
 ******/
    "forratter" => array(url => "forratter.php", title => "Förrätter",
        submap=> array(
	    "main" => array(url => "forratter.php", title=> "Huvudsida"),
	    "cesarsallad" => array(url => "forratter.php?recept=cesarsallad", title=> "Cesarsallad"),
	    "rakmacka" => array(url => "forratter.php?recept=rakmacka", title=> "R&auml;kmacka"),
	)
    ),

/*************************************************************************
 *
 * Soppor
 *
 ******/
    "soppor" => array(url => "soppor.php", title => "Soppor",
        submap=> array(
	    "main" => array(url => "soppor.php", title=> "Huvudsida"),
	    "borstj" => array(url => "soppor.php?recept=borstj", title=> "Borstj"),
	    "vischysouisse" => array(url => "soppor.php?recept=vischysouisse", title=> "Vischysouisse"),
	    "schillianka" => array(url => "soppor.php?recept=schillianka", title=> "Schillianka"),
	    "cremeninon" => array(url => "soppor.php?recept=cremeninon", title=> "Cr&eacute;me Ninon"),
	)
    ),
/*************************************************************************
 *
 * Fiskar
 *
 ******/
    "fiskar" => array(url => "fiskar.php", title => "Fiskar",
        submap=> array(
	    "main" => array(url => "fiskar.php", title=> "Huvudsida"),
	    "torskimojs" => array(url => "fiskar.php?recept=torskimojs", title=> "Torsk i Mojs"),
	    "dresseradlax" => array(url => "fiskar.php?recept=dresseradlax", title=> "Dresserad Regnb&aring;gslax"),
	    "strommingsflundra" => array(url => "fiskar.php?recept=strommingsflundra", title=> "Inlagda Strömmingsflundror"),
	)
    ),
/*************************************************************************
 *
 * Vego
 *
 ******/
    "vego" => array(url => "vego.php", title => "Vego",
        submap=> array(
	    "main" => array(url => "vego.php", title=> "Huvudsida"),
	    "recept1" => array(url => "soppor.php?recept=recept1", title=> "Recept 1"),
	    "purjo" => array(url => "soppor.php?recept=purjo", title=> "Purjo"),
	    "schillianka" => array(url => "soppor.php?recept=schillianka", title=> "Schillianka"),
	    "cremeninon" => array(url => "soppor.php?recept=cremeninon", title=> "Cr&eacute;me Ninon"),
	)
    ),
/*************************************************************************
 *
 * Tillbehor
 *
 ******/
    "tillbehor" => array(url => "tillbehor.php", title => "Tillbeh&ouml;r",
        submap=> array(
	    "main" => array(url => "tillbehor.php", title=> "Huvudsida"),
	    "hoummus" => array(url => "tillbehor.php?recept=hoummus", title=> "Hoummus"),
	    "babagannouh" => array(url => "tillbehor.php?recept=babagannouh", title=> "Baba Gannouh"),
	    "schillianka" => array(url => "tillbehor.php?recept=schillianka", title=> "Schillianka"),
	    "cremeninon" => array(url => "tillbehor.php?recept=cremeninon", title=> "Cr&eacute;me Ninon"),
	)
    ),
/*************************************************************************
 *
 * Soppor
 *
 ******/
    "efterratter" => array(url => "efterratter.php", title => "Efterrätter",
        submap=> array(
	    "main" => array(url => "efterratter.php", title=> "Huvudsida"),
	    "keylimepie" => array(url => "efterratter.php?recept=keylimepie", title=> "Key Lime Pie"),
	    "asascheesecake" => array(url => "efterratter.php?recept=asascheesecake", title=> "Åsas Cheesecake"),
	    	)
    ),
/*************************************************************************
*
* Frukost	
*
******/
    "frukost" => array(url => "frukost.php", title => "Frukost",
        submap=> array(
	    "main" => array(url => "frukost.php", title=> "Huvudsida"),
	    "pankisar" => array(url => "frukost.php?recept=pankisar", title=> "Pankisar"),
    "aggaggagg" => array(url => "frukost.php?recept=aggaggagg", title=> "Äggäggägg"),
	    "coffeethenewway" => array(url => "frukost.php?recept=coffeethenewway", title=> "Coffee the New Way"),
	    
	)
    ),
/*************************************************************************
*
* Godis						
*
******/
    "godis" => array(url => "godis.php", title => "Godis",
        submap=> array(
	    "main" => array(url => "godis.php", title=> "Huvudsida"),
	    "baconrora" => array(url => "pastor.php?recept=baconrora", title=> "Baconr&ouml;ra"),
	    "pastaverde" => array(url => "pastor.php?recept=pastaverde", title=> "Pasta Verde"),
	    "lasangette" => array(url => "pastor.php?recept=lasangette", title=> "Kycklinglever- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lasangette"),
	   
	)
    ),
/*************************************************************************
*
* Pastor						
*
******/
    "pastor" => array(url => "pastor.php", title => "Pastor",
        submap=> array(
	    "main" => array(url => "pastor.php", title=> "Huvudsida"),
	    "baconrora" => array(url => "pastor.php?recept=baconrora", title=> "Baconr&ouml;ra"),
	    "pastaverde" => array(url => "pastor.php?recept=pastaverde", title=> "Pasta Verde"),
	    "lasangette" => array(url => "pastor.php?recept=lasangette", title=> "Kycklinglever- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lasangette"),
	   
	)
    ),
/*************************************************************************
*
* Sprit
*
******/
    "sprit" => array(url => "sprit.php", title => "Sprit",
        submap=> array(
	    "main" => array(url => "sprit.php", title=> "Huvudsida"),
	    "bloodymary" => array(url => "sprit.php?recept=bloodymary", title=> "Bloody Mary"),
	    "irishcoffee" => array(url => "sprit.php?recept=irishcoffee", title=> "Irish Coffee"),
	    )
    ),
);



/*************************************************************************
 *
 * NAME  site_header ()
 *
 ******/
function site_header( $tag, $subtag="") {
    global $site_map;

/* create title */
    if ($subtag) {
        $title = $site_map[$tag][title] . "/" . $site_map[$tag][submap][$subtag][title];
    } else {
        $title = $site_map[$tag][title];
    }



?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title> :::  MAT - HELT ENKELT... <?php echo $title; ?> :::  </title>
<script language="JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<script language="JavaScript">
<!--
var thePlatform=navigator.platform;
if (thePlatform=="Win32"){
document.write('<link rel="stylesheet" href="style_pc.css">');
}else{
document.write('<link rel="stylesheet" href="style_mac.css">');
}
//-->
</script>
</head>
<body class="navy">
<table width="100%" border="0" height="100%"><tr><td valign="middle" align="center">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td colspan="3"></td></tr><tr><td  width="120" height="60">&nbsp;</td><td>&nbsp;</td><td width="360">&nbsp;</td></tr></table>
<table border="0" cellspacing="0" cellpadding="0" width="590"><tr><td colspan="3"><table cellpadding="0" cellspacing="0" width="100%" border="0"><tr><td colspan="4"></td></tr><tr><td class="navy" width="120" height="40">&nbsp;</td><td  class="blue" width="121" align="right"><img src="mat.gif"></td><td  class="lilac" width="348" align="left"><img src="helt_enkelt.gif"></td><td width="1" class="babyblue"><img src="pixel.gif" width="1"></td></tr></table></td></tr><tr><td colspan="3" class="babyblue"><img src="pixel.gif" height="1" width="1"></td></tr><tr>

    <td valign="top" class="navy" width="120" height="350">

<?php
/* generate main menu */
    echo "<p><br>\n";

    for (reset($site_map); current($site_map); next($site_map) ) {
	$element=current($site_map);
	print "<p>";
        if (key($site_map)==$tag) {
            print "<span class=\"link\">" . $element[title];
	    print "<span class=\"raquo\"> &raquo;</span>";
	    print  "</span>\n";
        } else {
            print "<a href=\"" . $element[url] . "\"><span class=\"link\">" . $element[title];
	    print  "</span></a>\n";
        }
    }
    echo "<p>\n";

?><img src="logga.gif" vspace="3"></td>
    <td valign="top" width="470">


<!-- ####################### Här börjar inre tabellen ###################### -->

<table border="0" width="100%" height="385" cellpadding="0" cellspacing="0">

  <tr height="73">

    <td width="70" height="73" class="blue">&nbsp;</td>

    <td class="blue" width="50" height="73"><font face="Verdana,Arial">&nbsp;

      </font></td>

    <td class="navy" valign="bottom" align="left" height="73"><img src="soppor1.gif"></td>

<td class="navy" height="73">&nbsp; </td>

  </tr>

<tr><td colspan="2" class="blue" height="1"><img src="pixel.gif" height="1"></td><td  colspan="2" class="babyblue" height="1"><img src="soppor2.gif" height="1"></td></tr>

<tr><td colspan="2" class="blue" valign="top" width="120">
<p>


<img src="illu.gif" height="100" width="100" border="1" vspace="0" hspace="9" class="imageborder"><p align="left">
<?php
/* generate sub menu */
    if ($sub_map=$site_map[$tag][submap]) {
        for (reset($sub_map); current($sub_map); next($sub_map) ) {
	    $element=current($sub_map);
	    if ($element[flags]=="debug" && !$debug_flag) continue;
            if (key($sub_map)==$subtag) {
                print "<span class=\"link-small\">&nbsp;&nbsp;&nbsp;" . $element[title];
	        print "<span class=\"raquo\"> &raquo;</span>";
	        print  "</span><br><img src=\"tom.gif\" height=\"7\" width=\"5\"><br>\n";
            } else {
                print "<a href=\"" . $element[url] . "\"><span class=\"link-small\">&nbsp;&nbsp;&nbsp;" . $element[title];
	        print  "</span></a><br><img src=\"tom.gif\" height=\"7\" width=\"5\"><br>\n";
            }
        }
    }

?></td><td colspan="2" class="lilac" valign="top" align="left" height="260"><img src="soppor3.gif">

<table width="100%" height="100%" cellpadding="8" cellspacing="0"><tr><td valign="top"><p>
<!-- start main -->
<?php
}

/*************************************************************************
 *
 * NAME  site_footer ()
 *
 ******/
function site_footer()
{
?>
<!-- end main -->
</td></tr></table>

</td></tr>



</table></td><td width="1" class="babyblue"><img src="pixel.gif" height="1" width="1"></td>

  </tr><tr><td height="1"><img src="pixel.gif" height="1" width="1"></td><td class="babyblue"><img src="pixel.gif" height="1" width="1"></td><td class="babyblue"><img src="pixel.gif" height="1" width="1"></td></tr>

</table>

</td></tr></table>

</body>

</html>


<?php
}

/* eof */
?>
