<?php

require("predefine.php");

/********************************************************************************************************/
// Suchmaschinen-Weiche

/*
if (serve_the_robots())
  exit;

*/
  
/********************************************************************************************************/

$title = "Fotografie Frank Schuberth";
$keywords = "foto-design düsseldorf,foto-designer düsseldorf,junge deutsche fotografie,zeitgenössische deutsche fotografie,zeitgenössische deutsche photographie,dokumentarfotografie,dokumentar-fotografie,folkwang fotografie,unternehmensporträt,unternehmensportrait,fotografisches porträt,fotografisches portrait,photographisches porträt,photographisches portrait,journalistisches porträt,journalistisches portrait,inszeniertes porträt,inszeniertes portrait,schauspielerporträt,schauspielerportrait,schauspieler-porträt,editorial photography";
$description = "Foto-Design Frank Schuberth, Düsseldorf";

$sipp = explode(".", $_SERVER["REMOTE_ADDR"]);
foreach($sipp as $i)
  $sip .= (($i < 100)?(($i < 10)?"00":"0"):"").$i;

$cock = date("YmdHis").$sip.mt_rand(1, 1000);

$_GET["sid"] = $cock;

//setcookie("name='frankschuberth.de';value='${cock}';expire='';path='/';domain='.frankschuberth.de'");
setcookie("frankschuberth_de_session", $cock);

require("html_head.php");
require("functions.php");

logger("main", "");

$menu_nr = 0;
$menu_start = 1;

load_menu($menu_nr);

/*
echo("<pre>");
print_r($menu);
echo("</pre>");
*/
?>
<script type="text/javascript">
  if (top != self)
    top.location=self.location;
</script>

<script type="text/javascript">

var act_menu = 0;
var menu_hi = Array();
var menu_lo = Array();
var cock;

if (document.cookie)
{
  cock = document.cookie;
  cock = cock.substr(cock.indexOf("=") + 1);
  //alert(cock);
}
else
  cock = "<?=$cock?>";

<?php

for ($n = 1; $n <= $menu["count"]; $n++)
{
  echo("menu_hi[".$n."] = new Image;\n");
  echo("menu_hi[".$n."].src = \"".$menu[$n]["img_hi"]."\";\n");
  echo("menu_lo[".$n."] = new Image;\n");
  echo("menu_lo[".$n."].src = \"".$menu[$n]["img_lo"]."\";\n");
}  

?>

function add_sess(url)
{
  return(url + ((url.indexOf("?") < 0)?"?sid=":"&sid=") + cock);
}	

function shover(nr, act)
{
  if (nr==act_menu) return;
  document.getElementById("menu<?=$menu_nr?>-"+nr).src = (act==1?menu_hi[nr].src:menu_lo[nr].src);
}


function snavi(nr, nav, cont, thu, sim)
{
  if ((nr > 0) && (nr==act_menu)) return;
  if (act_menu > 0) 
    document.getElementById("menu<?=$menu_nr?>-"+act_menu).src = menu_lo[act_menu].src;
  if (nr > 0)
  {
    act_menu = nr;
    document.getElementById("menu<?=$menu_nr?>-"+act_menu).src = menu_hi[act_menu].src;
  }
  thumbnav_displ(false, false);
  if (cont!="") parent.content.location.href = add_sess(cont);
  if (nav!="") parent.menu.location.href = add_sess(nav);
  if (thu!="") parent.thumbs.location.href = add_sess(thu);
  if (sim!="") parent.subimg.location.href = add_sess(sim);
}

function thumbnav_displ(l, r)
{
  document.getElementById("thumbnav_left").style.display = (l?"":"none");
  document.getElementById("thumbnav_right").style.display = (r?"":"none");
}	

function showpreimg()
{
  document.getElementById("preimg").style.display = "block";

  if (false) //document.getElementById("preimg").filters)
  {
    document.getElementById("preimg").filters.blendTrans.Apply();
    document.getElementById("preimg").style.visibility = "visible";
    document.getElementById("preimg").filters.blendTrans.Play();
  }
  else
  {
    document.getElementById("preimg").style.visibility = "visible";
    
  }
  
  document.getElementById("ffs_img").style.width = 374;
  document.getElementById("ffs_img").style.height = 39;
  <?php if (is_ff3()) {?>document.getElementById("ffs_img").src = "<?=$http_layout?>ffs.php?m=static";<?php } else {?>document.getElementById("ffs_img").src = "<?=$http_layout?>ffs.php";<?php }?>
}

function showmain()
{
  document.getElementById("preimg").style.display = "none";

  if (document.getElementById("maintable").filters)
  {
    document.getElementById("maintable").style.visibility = "hidden";
    document.getElementById("maintable").style.display = "block";
    document.getElementById("maintable").filters.blendTrans.Apply();
    document.getElementById("maintable").style.visibility = "visible";
    document.getElementById("maintable").filters.blendTrans.Play();
  }
  else
  {
    document.getElementById("maintable").style.display = "block";
    document.getElementById("maintable").style.visibility = "visible";
  }
}

</script>

<body onload='showpreimg(); snavi(0,"menu.php?m=","content.php","thumbs.php?gal=","showpicinfo.php?p="); thumbnav_displ(false, false);'>
<!-- Zentriertabelle - Start -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" style="background-color:#FFFFFF; position:absolute; top:0px; left:0px;">
<tr><td align=center valign=middle>

<!-- Mittelrahmen - Anfang -->
<span id="content" style="position:relative; width:900px; height:675px; overflow:hidden;">

<!--span id="contenttext" style="position:absolute; top:0; left:0px; width:900px; height:675px; z-index:0;">Hallo<br>Hallo</span-->

<span id="preimg" style="position:relative; display:none; visibility:hidden; cursor:pointer; width:900px; height:675px; background-color:#FFFFFF;" onclick="showmain();">
<img style="display:block; z-index:2;" src="<?=$http_layout?>white.gif" width=900 height=675>
<img id="ffs_img" style="position:absolute; top:208px; left:17px; z-index:10;" src="<?=$http_layout?>spacer.gif" width=1 height=1>
</span>
<!-- Inhalt 1 - Start -->
<table id="maintable" style="display:none; visibility:hidden; margin-top:30px; margin-left:20px; filter:blendTrans(Duration=4);" border="0" cellpadding="0" cellspacing="0" width="900">
<tr><td align=left style="background-color:#FFFFFF; padding-bottom:20px; overflow:hidden; background-image:url(<?=$http_layout?>white.gif)">
<?php

for ($n = 1; $n <= $menu["count"]; $n++)
{
	
  echo("<img style='display:inline;' class='mainmenuitem' id='menu".$menu_nr."-".$n."' onmouseover='shover(".$n.",1);' onmouseout='shover(".$n.",0);' onclick='snavi(".$n.",\"".$menu[$n]["navi"]."\",\"".$menu[$n]["content"]."\", \"".$menu[$n]["thumbs"]."\", \"".$menu[$n]["subimg"]."\");' src='".$menu[$n]["img_lo"]."'>");


}  


  
?>
</td></tr>
<tr><td>

<!-- Mittlere Tabelle - Start -->

<table border="0" cellpadding="0" cellspacing="0" width="900">
<tr>
<td width=190 valign=bottom align=right><iframe name="menu" width=190 height=420 src="menu.php" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"></iframe></td>
<td width=10><img src="spacer.gif" width=1 height=420 alt=""></td>
<td width=700 align=left valign=top><iframe style="display:block;" name="content" width=700 height=381 src="" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"></iframe><iframe style="display:block;" name="subimg" width=700 height=39 src="" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"></iframe></td>
</tr>
</table>

<!-- Mittlere Tabelle - Ende -->

</td></tr>
<tr><td style="background-color:#FFFFFF; padding-top:5px; padding-bottom:5px;"><img src="<?=$http_layout?>fotografiefrankschuberth.gif" width=280 height=25 border=0 alt=""></td></tr>
<tr><td>

<!-- Untere Tabelle - Start -->

<table style="margin-bottom:50px;" border="0" cellpadding="0" cellspacing="0" width="900">
<tr>
<td width=200 align=right valign=middle><img id="thumbnav_left" style="cursor:pointer; display:none;" onmouseover="" onmouseout="" onmousedown="thumbs.scroll_left();" src="<?=$http_layout?>pfeil_links.gif" width=30 height=30></td>
<td width=500><iframe name="thumbs" width=500 height=50 src="" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"></iframe></td>
<td width=200 align=left valign=middle><img id="thumbnav_right" style="cursor:pointer; display:none;" onmouseover="" onmouseout="" onmousedown="thumbs.scroll_right();" src="<?=$http_layout?>pfeil_rechts.gif" width=30 height=30></td>
</tr>

</table>

<!-- Untere Tabelle - Ende -->

</td></tr>

</table>
<!-- Inhalt 1 - Ende -->
<noscript>
<img src="<?=$http_layout?>nojavascript.gif" border=0 alt="Bitte aktivieren Sie Javascript">
<p style="margin-top:60px; font-size:7pt;"><a href="/fotografie.php">fotografie frank schuberth, Düsseldorf</a> - Kurzversion ohne Javascript</p>
</noscript>

</span>
<!-- Mittelrahmen - Anfang -->

</td></tr>
</table>
<!-- Zentriertabelle - Ende -->

</body>
</html>


