<?php
session_start();
output_reset_rewrite_vars();

function MyErr()
{	return true;
}

extract($_GET);

$a_page = array("none", "dhtml", "algorytmy", "cpp", "tp", "java", "java/java", "vb", "sql", "excel", "excel/kurs", "bat", "office", "links", "downloads");
if(!in_array($page, $a_page)) 		$page = 0;
if(!$page)
{	$page = "none";
	$sel  = "0.html";
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
	<meta name="description" content="Strona o programowaniu: algorytmy, C++, Java, Visual Basic, HTML, CSS, JavaScript, MySQL, Excel, bat" />
	<meta name="keywords" content="algorytmy,opis C++,kurs c++,opis Java,kurs java,VisualBasic,specyfikacja HTML,specyfikacja CSS,specyfikacja JavaScript,opis MySQL,kurs Excel,zadania wsadowe bat,kursy programowania, kurs turbo pascala" />
	<title>..:: I love C+- ::..</title>
	<meta http-equiv="Content-Language" content="pl" />
	<meta name="author" content="Władysław Brzozowski" />
	<meta http-equiv="Reply-to" content="brzozowski.w@gmail.com" />
	<meta name="ROBOTS" content="INDEX,FOLLOW" />
	<meta name="rating" content="General" />
	<meta name="revisit-after" content="7 days" />
	<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
	<script type="text/javascript" src="js/jquery.corner.js"></script>
	<script type="text/javascript" src="js/highslide-with-html.js"></script>
	<link rel="stylesheet" href="style/style.css" type="text/css" />
	<link rel="stylesheet" type="text/css" href="style/highslide.css" />
	<?php
	include "inc/init.js";
	?>
</head>
<body>
<div id="container">
	<div id="head" onclick="location.href='index.php'">
		<div id="head_links">
		<a href="mailto:brzozowski.w@gmail.com" title="Napisz e-mail do autora strony">brzozowski.w@gmail.com</a><br />
		<a href="gg:2908521" title="Kontakt z autorem na GG"><img src="http://status.gadu-gadu.pl/users/status.asp?id=2908521&amp;styl=0" border="0" align="middle" alt="" /> 2908521</a>
		</div>
	</div>
	<div id="motto"><?php echo $msg; ?></div>
	<div class="spacer"></div>
	<table border="0" cellspacing="0" cellpadding="0" style="width:100%;height:95%;">
	<tr><td id="menu">
			<div id="menu_div">
			<?php
			$menu = file('inc/menu.txt');
			for($i=0 ; $i<count($menu) ; $i++)
			{	$a = explode(',', $menu[$i]);
				if(count($a) < 4)	continue;
				if($a[1]!='00' && $_GET['l1']!=$a[0])	continue;
				$level = (($a[2]!='00') ? 3 : (($a[1]!='00') ? 2 : 1));
				$cur_memu = ($_GET['l1']==$a[0] && $_GET['l2']==$a[1] && $_GET['l3']==$a[2]) ? 'menu_cur' : '';
				echo '<a href="index.php?l1='.$a[0].'&amp;l2='.$a[1].'&amp;l3='.$a[2].'" class="level'.$level.' '.$cur_memu.'">'.$a[3].'</a>';
				if($_GET['l1']==$a[0] && $_GET['l2']==$a[1] && $_GET['l3']==$a[2])	$menu_item = $i;
			}
			?>
			</div>
		</td>
		<td id="main">
			<?php
			if(isset($_GET['l1']))		include_once $_GET['l1'].'/'.$_GET['l2'].'_'.$_GET['l3'].'.php';
			else						include_once 'inc/start.php';
			
			if(isset($menu_item))
			{	$prev = explode(',', $menu[$menu_item-1]);
				$cur  = explode(',', $menu[$menu_item]);
				$next = explode(',', $menu[$menu_item+1]);
				echo '<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" class="bottomMenu">
					<tr><td>'.(($prev[0]==$cur[0]) ? '<a href="index.php?l1='.$prev[0].'&amp;l2='.$prev[1].'&amp;l3='.$prev[2].'">&laquo; wstecz</a>' : '').'&nbsp;</td>
						<td style="text-align:right">&nbsp;'.(($_GET['l1']==$next[0]) ? '<a href="index.php?l1='.$next[0].'&amp;l2='.$next[1].'&amp;l3='.$next[2].'">dalej &raquo;</a>' : '').'</td></tr>
					</table>';
			}
			?>
		</td></tr>
	</table>
	<script type="text/javascript"> 
	$(document).ready( function(){
		  $('#menu_div').corner("10px");
		  $('#artTitle').corner("top");
		  $('.artSubMenu').corner("5px");
		});
	</script>
	<div class="spacer"></div>
	<div id="foot">
		<a href="mailto:brzozowski.w@gmail.com" title="Kontakt z autorem">&copy; Władysław Brzozowski 2000-<?php echo date("Y"); ?></a>
	</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-16303959-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body></html>