<ul id="navimenu" class="dropdownmenu">

<!--home --> 
<?php 
	$result28 = mysql_query("SELECT * FROM infocategories WHERE level=1 AND lang_id=1 AND insert_id=1 AND publish='yes'",$dbh);
	$myrow=mysql_fetch_array($result28);
	$catid1=$myrow['id'];
	$isid1=$myrow['insert_id'];
	$page1=$myrow['page'];
	
	$result = mysql_query("SELECT * FROM infocategories WHERE insert_id='$isid1' AND lang_id='$lang'",$dbh);
	$myrow=mysql_fetch_array($result);
	$category1=$myrow['title'];
?>
<li> <a href="." <?php if ($pages == 'index.php') { ?>class="navactive"<?php } else {?>class="navigation"<?php } php?>><?php echo $pagehome ?></a>  </li> 

<!--info1 -->
<?php 
	$sql30 = "SELECT * FROM infocategories WHERE level=1 AND lang_id=1 AND insert_id=2 AND publish='yes' ORDER BY priority";
	$result30 = mysql_query($sql30);
	while ($myrow=mysql_fetch_array($result30)) {
	$catid1=$myrow['id'];
	$isid1=$myrow['insert_id'];
	$page1=$myrow['page'];
			
	$result = mysql_query("SELECT * FROM infocategories WHERE insert_id='$isid1' AND lang_id='$lang'",$dbh);
	$myrow=mysql_fetch_array($result);
	$category1=$myrow['title'];
?>

<?php 
	$sql31 = "SELECT * FROM infocategories WHERE parent='$isid1' AND lang_id='$lang' AND publish='yes'";
	$result31 = mysql_query($sql31);
	$nu_row31 = mysql_num_rows($result31);
?>
        <?php if  ($nu_row31>0) {?>
        
<!--subcategories -->
<li>

<a href="<?php echo $page1 ?>" rel="menu<?php echo $isid1 ?>" <?php if ($catid == $isid1 OR $parent == $isid1) { ?>class="navactive"<?php } else {?>class="navigation"<?php } php?>><?php echo $category1 ?></a> 

<?php /*?><div id="menu<?php echo $isid1 ?>" class="menu dropdownbox"><?php */?>
<div class="toggle-container">
<?php 
	$sql32 = "SELECT * FROM infocategories WHERE parent='$isid1' AND lang_id=1 AND publish='yes' ORDER BY priority";
	$result32 = mysql_query($sql32);
	while ($myrow=mysql_fetch_array($result32)) {
	$catids=$myrow['id'];
	$isids=$myrow['insert_id'];
	$page1=$myrow['page'];
	$parent=$myrow['parent'];
	
	$result = mysql_query("SELECT * FROM infocategories WHERE insert_id='$isids' AND lang_id='$lang'",$dbh);
	$myrow=mysql_fetch_array($result);
	$category=$myrow['title'];
?>
<a href="<?php echo $page1 ?>" class="navilinks"><?php echo $category ?></a>
 <?php } ?> 
 </div>
 
 </li> 
<!--end -->  
        
        <?php }else{?>
        
<li> 
        <?php if ($pid == $isid1 AND $page == $page1) { ?>
        <a href="<?php echo $page1 ?>" class="navactive"><?php echo $category1 ?></a> 
        <?php } else {?>
        <a href="<?php echo $page1 ?>" class="navigation"><?php echo $category1 ?></a> 
        <?php } ?>
</li>
        
        <?php } ?>
		
     <?php } ?>  
<!--end info1 --> 

<!--accommodation -->
<li> 
<div class="trigger"><a href="accommodation.php" rel="menu1r" <?php if ($pageurl == 'accommodation.php' OR $pages == 'room.php') { ?>class="navactive"<?php } else {?>class="navigation"<?php } php?>><?php echo $pageaccommodation ?></a> </div> 

<?php /*?><div id="menu1r" class="menu dropdownbox"><?php */?>
<div class="toggle-container">
<?php 
	$sql20 = "SELECT * FROM rooms WHERE lang_id=2 AND publish='yes' AND publisha='yes' ORDER BY priority";
	$result20 = mysql_query($sql20);
	while ($myrow=mysql_fetch_array($result20)) {
	$risid=$myrow['insert_id'];
	$roompage=$myrow['page'];
	
	$result = mysql_query("SELECT * FROM rooms WHERE insert_id='$risid' AND lang_id='$lang'",$dbh);
	$myrow=mysql_fetch_array($result);
	$rid=$myrow['insert_id'];
	$room=$myrow['name'];
?>
<a href="rooms.<?php echo $rid ?><?php echo $roompage ?>" class="navilinks"><?php echo $room ?></a> 
<?php } ?> 
 </div>
</li>
<!--end accommodation -->
  
<!--info -->
<?php 
	$sql33 = "SELECT * FROM infocategories WHERE level=1 AND lang_id=1 AND insert_id>2 AND page!='terms' AND publish='yes' ORDER BY priority";
	$result33 = mysql_query($sql33);
	while ($myrow=mysql_fetch_array($result33)) {
	$catid1=$myrow['id'];
	$isid1=$myrow['insert_id'];
	$page1=$myrow['page'];
			
	$result = mysql_query("SELECT * FROM infocategories WHERE insert_id='$isid1' AND lang_id='$lang'",$dbh);
	$myrow=mysql_fetch_array($result);
	$category1=$myrow['title'];
?>

<?php 
	$sql34 = "SELECT * FROM infocategories WHERE parent='$isid1' AND lang_id='$lang' AND publish='yes'";
	$result34 = mysql_query($sql34);
	$nu_row34 = mysql_num_rows($result34);
?>
        <?php if  ($nu_row34>0) {?>
        
<!--subcategories -->
<li>

<a href="<?php echo $page1 ?>" rel="menu<?php echo $isid1 ?>" <?php if ($catid == $isid1 OR $parent == $isid1 AND $page == 'info.php') { ?>class="navactive"<?php } else {?>class="navigation"<?php } php?>><?php echo $category1 ?></a> 

<div id="menu<?php echo $isid1 ?>" class="menu dropdownbox">
<?php 
	$sql35 = "SELECT * FROM infocategories WHERE parent='$isid1' AND lang_id=1 AND publish='yes' ORDER BY priority";
	$result35 = mysql_query($sql35);
	while ($myrow=mysql_fetch_array($result35)) {
	$catids=$myrow['id'];
	$isids=$myrow['insert_id'];
	$page1=$myrow['page'];
	$parent=$myrow['parent'];
	
	$result = mysql_query("SELECT * FROM infocategories WHERE insert_id='$isids' AND lang_id='$lang'",$dbh);
	$myrow=mysql_fetch_array($result);
	$category=$myrow['title'];
?>
<div class="divlinks"><a href="<?php echo $page1 ?>" class="navilinks"><?php echo $category ?></a></div>
 <?php } ?> 
 </div>
 
 </li> 
<!--end -->  
        
        <?php }else{?>
        
<li> 
        <?php if ($pid == $isid1 AND $page == $page1) { ?>
        <a href="<?php echo $page1 ?>" class="navactive"><?php echo $category1 ?></a> 
        <?php } else {?>
        <a href="<?php echo $page1 ?>" class="navigation"><?php echo $category1 ?></a> 
        <?php } ?>
</li>
        
        <?php } ?>
		
     <?php } ?>  
<!--end info -->     

<li><a href="gallery.php" <?php if ($pages == 'gallery.php') { ?>class="navactive"<?php } else {?>class="navigation"<?php } php?>><?php echo $pagegallery ?></a>  </li> 
<?php 
	$sql36 = "SELECT * FROM panoramas";
	$result36 = mysql_query($sql36);
	$nu_row36 = mysql_num_rows($result36);
?>
<?php if  ($nu_row36>0) {?>
<li><a href="#dialog" name="modal" class="navigation"><?php echo $pagepan ?></a> </li> 
<?php } ?>  
   
<?php 
	$sql37 = "SELECT * FROM prices";
	$result37 = mysql_query($sql37);
	$nu_row37 = mysql_num_rows($result37);
?>
<?php if  ($nu_row37>0) {?>    
<li><a href="rates.php" <?php if ($pages == 'rates.php') { ?>class="navactive"<?php } else {?>class="navigation"<?php } php?>><?php echo $pagerates ?></a>  </li>
<?php } ?>  
       
<?php if  ($guestbook1=='1') { ?>
<li><a href="guestbook.php" <?php if ($pages == 'guestbook.php') { ?>class="navactive"<?php } else {?>class="navigation"<?php } php?>><?php echo $pagereviews ?></a>  </li> 
<?php } ?>
     
<li><a href="http://transfersforhotels.com/evripides-hotel/" class="navigation" target="_blank"><?php echo $transferstext ?></a> </li>     
     
<?php if ($resurl!='') { ?>
<li><a href="<?php echo $resurl ?>" target="_blank" class="navigation"><?php echo $textbutton2 ?></a>  </li> 
<?php } ?>
     
<li><a href="contact.php" <?php if ($pages == 'contact.php') { ?>class="navactive"<?php } else {?>class="navigation"<?php } php?>><?php echo $pagecontact ?></a> </li>
     
</ul>