<?php

include( "functions.php" );

$country = strtolower( substr($_SERVER["SCRIPT_URL"], 1, 2) );



if( "$country" == "at")
	$language = "AT";
elseif( "$country" == "cz")
	$language = "CZ";
	
	

$steuerung[] = array( "name" => "HOME", "file" => "home" );
$steuerung[] = array( "name" => "FLUGAUFNAHMEN", "file" => "flugaufnahmen" );
$steuerung[] = array( "name" => "WEITERVERARBEITUNG", "file" => "weiterverarbeitung" );
$steuerung[] = array( "name" => "REFERENZEN", "file" => "referenzen" );
$steuerung[] = array( "name" => "ANFRAGE", "file" => "anfrage" );
$steuerung[] = array( "name" => "WIR &Uuml;BER UNS", "file" => "wir_ueber_uns" );
$steuerung[] = array( "name" => "IMPRESSUM", "file" => "impressum" );

/*
$keywords[] = "Letecké snímky";
$keywords[] = "Amido";
$keywords[] = "Panoramatické snímky";
$keywords[] = "Pr&#367;myslové snímky";
$keywords[] = "Snímky obcí";
$keywords[] = "Archiv snímk&#367;";
$keywords[] = "Digitální snímky";
$keywords[] = "Digitální fotografie";
$keywords[] = "Digitální snímky";
*/
$keywords[] = "Letecké snímky";
$keywords[] = "Amido";
$keywords[] = "Panoramatické snímky";
$keywords[] = "Prumyslové snímky";
$keywords[] = "Snímky obcí";
$keywords[] = "Digitální snímky";
$keywords[] = "Digitální fotografie";
$keywords[] = "Digitální snímky";
$keywords[] = "Archiv snímku";

$filename = substr(basename($GLOBALS['SCRIPT_NAME']) , 0, -4);
$underscore_pos = strpos( basename($GLOBALS['SCRIPT_NAME']), "_" );

if($underscore_pos != "" )
	{
	$steuerung_aktiv = strtolower( substr("$filename", 0, "$underscore_pos") );
	$untersteuerung_aktiv = $_GET['sub'];
	}
else
	{
	$steuerung_aktiv = strtolower( "$filename ");
	$untersteuerung_aktiv = "";
	}

if( ! function_exists($_GET['sub']) )
	{
	if( $untersteuerung[0] == "" )
		$_GET['sub'] = strtolower( "$filename");
 else
		$_GET['sub'] = $untersteuerung[0];
	}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<title>Amido Flugaufnahmen</title>

<?php
	echo '		<meta name="keywords" content="';
	
	foreach( $keywords as $wert )
		{
		echo "$wert";	
		if( $wert != $keywords[count($keywords)-1] )
			echo ", ";	
		}
	echo '">';
?>

		<link rel="SHORTCUT ICON" href="../../favicon.ico">
		<link href="amido.css" rel="stylesheet" type="text/css" media="screen">
		<script type="text/javascript" src="amido.js"></script>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<meta name="author" content="adeins.at, Andreas Razenberger">
		<meta name="robots" content="index, follow">
		<meta name="generator" content="adeins GmbH.">
		<meta name="author" content="Andreas Razenberger">
		<meta name="language" content="Deutsch">
		<meta name="organization" content="Amido HandelsgesmbH.">
		<meta name="revisit-after" content="20 days">
		<meta name="content-language" content="de,at">

		<!-- ===================================================== -->
		<!-- erstellt von: adeins                                  -->
		<!-- AGENTUR F†R STRATEGISCHE WERBUNG                      -->
		<!-- Schmiedegasse 14, Lentia 2000, A-4040 Linz            -->
		<!-- Tel: +43(0)732 70 17 40    Fax: +43(0)732 70 14 40-22 -->
		<!-- http://www.adeins.at                                  -->
		<!-- ===================================================== -->

	</head>

<?php


$AT = "http://".$HTTP_SERVER_VARS['HTTP_HOST']."/AT/";
$AT.= substr($HTTP_SERVER_VARS['SCRIPT_URL'], 4);

$CZ = "http://".$HTTP_SERVER_VARS['HTTP_HOST']."/CZ/";
$CZ.= substr($HTTP_SERVER_VARS['SCRIPT_URL'], 4);

if( isset($_GET['sub']) )
	{
	$AT.= "?sub=$_GET[sub]";
	$CZ.= "?sub=$_GET[sub]";
	}

#echo "<p>AT $AT<p>CZ $CZ<p>";
?>
	<body bgcolor="#c6c6c6" style="margin-top:20">
		<div align="center">
			<table width="981" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td align="right" valign="top" width="236"><img src="../objekte/logo_amido.gif" alt="" height="45" width="190" border="0"></td>
					<td align="left" valign="top" width="5"></td>
					<td align="right" valign="bottom">
<?php
if( $language == "AT" )
	echo '<img src="../objekte/AT_hell.gif" border="0" title="Amido AT">';
else
	{
	echo '<a href="'."$AT".'" target="_top" border="0">';
	echo '<img src="../objekte/AT.gif" border="0" title="Amido AT">';
	echo '</a>';
	}
echo ' ';
if( $language == "CZ" )
	echo '<img src="../objekte/CZ_hell.gif" border="0" title="Amido CZ">';
else
	{
	echo '<a href="'."$CZ".'" target="_top" border="0">';
	echo '<img src="../objekte/CZ.gif" border="0" title="Amido CZ">';
	echo '</a>';
	}
?>
					</td>
				</tr>
				<tr height="5">
					<td colspan="3" align="left" valign="top" height="5"><img src="../objekte/platzhalter.gif" alt="Platzhalter" height="5" width="5" border="0"></td>
				</tr>
				<tr>
					<td align="left" valign="top" width="236">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr height="15">
								<td align="left" id="steuerung" height="15">
									<?php 
									if( "$filename" == strtolower($steuerung['0']['file']) )
										echo "<font style='color:214F97'>".$steuerung['0']['name']."</a>";
									else
										echo "<a href=\"".strtolower($steuerung['0']['file'].".php")."\">".$steuerung['0']['name']."</a>"; 
									?>
								</td>
							</tr>
							<tr height="5">
								<td align="left" height="5"></td>
							</tr>
							<tr height="15">
								<td align="left" id="steuerung" height="15">
									<?php 
									if( "$filename" == strtolower($steuerung['1']['file']) )
										echo "<font style='color:214F97'>".$steuerung['1']['name']."</a>";
									else
										echo "<a href=\"".strtolower($steuerung['1']['file'].".php")."\">".$steuerung['1']['name']."</a>"; 
									?>
								</td>
							</tr>
							<tr height="5">
								<td align="left" height="5"></td>
							</tr>
							<tr height="15">
								<td align="left" height="15" id="steuerung">
									<?php 
									if( "$filename" == strtolower($steuerung['2']['file']) )
										echo "<font style='color:214F97'>".$steuerung['2']['name']."</a>";
									else
										echo "<a href=\"".strtolower($steuerung['2']['file'].".php")."\">".$steuerung['2']['name']."</a>"; 
									?>
								</td>
							</tr>
							<tr height="5">
								<td align="left" height="5"></td>
							</tr>
							<tr height="15">
								<td align="left" height="15" id="steuerung">
									<?php 
									if( "$filename" == strtolower($steuerung['3']['file']) )
										echo "<font style='color:214F97'>".$steuerung['3']['name']."</a>";
									else
										echo "<a href=\"".strtolower($steuerung['3']['file'].".php")."\">".$steuerung['3']['name']."</a>"; 
									?>
								</td>
							</tr>
							<tr height="5">
								<td align="left" height="5"></td>
							</tr>
							<tr height="15">
								<td align="left" height="15" id="steuerung">
									<?php 
									if( "$filename" == strtolower($steuerung['4']['file']) )
										echo "<font style='color:214F97'>".$steuerung['4']['name']."</a>";
									else
										echo "<a href=\"".strtolower($steuerung['4']['file'].".php")."\">".$steuerung['4']['name']."</a>"; 
									?>
								</td>
							</tr>
							<tr height="5">
								<td align="left" height="5"></td>
							</tr>
							<tr height="15">
								<td align="left" height="15" id="steuerung">
									<?php 
									if( "$filename" == strtolower($steuerung['5']['file']) )
										echo "<font style='color:214F97'>".$steuerung['5']['name']."</a>";
									else
										echo "<a href=\"".strtolower($steuerung['5']['file'].".php")."\">".$steuerung['5']['name']."</a>"; 
									?>
								</td>
							</tr>
							<tr height="5">
								<td align="left" height="5"></td>
							</tr>
							<tr height="15">
								<td align="left" height="15" id="steuerung">
									<?php 
									if( "$filename" == strtolower($steuerung['6']['file']) )
										echo "<font style='color:214F97'>".$steuerung['6']['name']."</a>";
									else
										echo "<a href=\"".strtolower($steuerung['6']['file'].".php")."\">".$steuerung['6']['name']."</a>"; 
									?>
								</td>
							</tr>
							<tr height="5">
								<td align="left" height="5"></td>
							</tr>
							<tr height="15">
								<td align="left" height="15" id="steuerung">
									<?php 
									if( "$filename" == strtolower($steuerung['7']['file']) )
										echo "<font style='color:214F97'>".$steuerung['7']['name']."</a>";
									else
										echo "<a href=\"".strtolower($steuerung['7']['file'].".php")."\">".$steuerung['7']['name']."</a>"; 
									?>
								</td>
							</tr>
							<tr height="5">
								<td align="left" height="5"></td>
							</tr>
							<tr height="15">
								<td align="left" height="15" id="steuerung">
									<?php 
									if( "$filename" == strtolower($steuerung['8']['file']) )
										echo "<font style='color:214F97'>".$steuerung['8']['name']."</a>";
									else
										echo "<a href=\"".strtolower($steuerung['8']['file'].".php")."\">".$steuerung['8']['name']."</a>"; 
									?>
								</td>
							</tr>
						</table>
					</td>
					<td align="left" valign="top" width="5"><img src="../objekte/platzhalter.gif" alt="Platzhalter" height="5" width="5" border="0"></td>
					<td align="left" valign="top"><img src="../objekte/<?php echo "$filename-image.jpg";?>" alt="<?php echo "Imagebild $filename";?>" height="175" width="740" border="0"></td>
				</tr>
				<tr height="5">
					<td colspan="3" align="left" valign="top" height="5"><img src="../objekte/platzhalter.gif" alt="Platzhalter" height="5" width="5" border="0"></td>
				</tr>
				<tr height="15">
					<td colspan="3" align="left" valign="top" height="15" background="../objekte/verlauf_untersteuerung.jpg"  style="padding-left:270px;padding-top:1px;">
						<table border="0" cellspacing="0" cellpadding="0" style="line-height:100%">
							<tr>
								<td>
								</td>
									<?php
									if( is_array($_GET['sub']) )
											$_GET['sub'] = $_GET['sub']['link'];

									if(!isset($_GET['sub']))
											{
											if( $untersteuerung[ count($untersteuerung)-1 ]['link'] == "")
												{
												$_GET['sub'] = "$filename";
												$target = "_blank";
												}
											else
												{
												$_GET['sub'] = $untersteuerung[0]['link'];
												$target = "_top";
												}
											}
										
									
										
									$x=0;
									foreach( $untersteuerung as $wert )
										{
										$link = basename( $_SERVER["HTTP_HOST"] );
										$link = $PHP_SELF;
										if( strtolower($_GET['sub']) == strtolower("$wert[link]") )
											echo "<td align=\"left\" valign=\"top\"><font style='color:214F97'>$wert[name]</font></td>";
										elseif( $untersteuerung[ count($untersteuerung)-1 ] == "" )
											echo "<td align=\"left\" valign=\"top\"><a href=\"javascript:impressum('"."$PHP_SELF?sub=$untersteuerung[$x]"."')\" target=\"$target\">$untersteuerung[$x]</a></td>";
										else
											echo "<td align=\"left\" valign=\"top\"><a href=\"$link?sub=$wert[link]\" target=\"$target\">$wert[name] </a></td>";
											
										echo '<td align="left" valign="top" width="30"></td>';
										$x++;
										}
									?>
							</tr>
							
							
						</table>
					</td>
				</tr>
				<tr height="5">
					<td colspan="3" align="left" valign="top" height="5"><img src="../objekte/platzhalter.gif" alt="Platzhalter" height="5" width="5" border="0"></td>
				</tr>
				<tr>
					<td align="left" valign="top" width="236" background="../objekte/verlauf_steuerung.jpg">
						<img src="../objekte/verlauf_adresse.jpg" alt="" width="236" border="0">
						<p style="padding-left:50px">AMIDO HandelsgesmbH.<br>
							Bruck 51<br>
							A-4722 Peuerbach<br>
							Tel. +43 (0) 7276 / 3922<br>
							Fax +43 (0) 7276 / 3958<br><div style="font-size:8pt;padding-left:50px">e-Mail: <a href="mailto:info@flugaufnahmen.at">info@flugaufnahmen.at</a></div>
						<p>&nbsp;</p>
						<p>&nbsp;</p>
					</td>
					<td align="left" valign="top" width="5"></td>					<td align="left" valign="top" bgcolor="#ececec" style="padding:30px;">						<?php $_GET['sub'](); ?>					</td>
				</tr>
			</table>
		</div>
		<br>
		<center>
					<a href="http://www.adeins.at" target="_blank" style="font-size:7pt;color:#e10019;letter-spacing:1px;">ad<font style="color:#000000">eins</font></a>
					<font style="font-size:5pt;letter-spacing:3px;color:#000000;">&nbsp;AGENTUR F&Uuml;R STRATEGISCHE WERBUNG</font>
		<p>&nbsp;</p>
		</center>
	</body>

</html>
