<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
<link rel="stylesheet" href="styles.css" type="text/css">
<script language="JavaScript">
<!--
function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//-->
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td height="30">&nbsp;</td>
  </tr>
  <tr> 
    <td> 
      <div align="center"><img src="images/logo.gif" width="128" height="65"></div>
    </td>
  </tr>
  <tr> 
    <td height="10"></td>
  </tr>
  <tr> 
    <td height="23"> <a href="hotel.php" class="navigation">AEGEO HOTEL</a> </td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr> 
    <td height="23"> <a href="evgenia/" class="navigation">EVGENIA ROOMS</a> </td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr> 
    <td height="23"> <a href="location.php" class="navigation">LOCATION</a> </td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr> 
    <td height="23"> <a href="accommodation.php" class="navigation">ACCOMMODATION</a> 
    </td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr> 
    <td height="23"> <a href="gallery.php" class="navigation">PHOTO GALLERY</a> 
    </td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr>
    <td height="23"><a href="panorama.php" class="navigation">SPHERICAL IMAGES</a> </td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr> 
    <td height="23"> <a href="guestbook.php" class="navigation">GUESTBOOK</a> 
    </td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr> 
    <td height="23"> <a href="links.php" class="navigation">LINKS</a> </td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr> 
    <td height="23"> <a href="reservation.php" class="navigation">RESERVATION 
      REQUEST</a> </td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr> 
    <td height="23"> <a href="contact.php" class="navigation">CONTACT</a> </td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr> 
    <td height="10"></td>
  </tr>
  <tr> 
    <td> 
      <table border="0" cellspacing="2" cellpadding="0" align="center">
        <tr valign="top"> 
          <?php 
			include 'connect.php';
			$sql1 = "SELECT * FROM photos WHERE main='yes' ORDER BY priority";
			$result1 = mysql_query($sql1);
			$num_rows = mysql_num_rows($result1);
?>
          <?php 
			include 'connect.php';
			$sql2 = "SELECT * FROM photos WHERE main='yes' ORDER BY priority LIMIT 2";
			$result2 = mysql_query($sql2);
       	    $count=0;
			while ($myrow=mysql_fetch_array($result2)) {
			$count++;
			$photoid=$myrow['id'];
			$name=$myrow['name_en'];
			$ppriority=$myrow['priority'];
?>
          <td> 
            <table border="0" cellspacing="0" cellpadding="0" align="center">
              <tr> 
                <td bgcolor="#<?php echo $color2 ?>"><a href="javascript:;" onClick="MM_openBrWindow('galleryphoto.php?id=<?php echo $photoid?>&start=1','foto','scrollbars=yes,width=750,height=500')"><img src="photos/<?php echo $photoid ?>.jpg" border="0" alt="<?php echo $name ?>" width="65" height="53"></a></td>
              </tr>
            </table>
          </td>
          <?php 
					if ($count == '2') { 
							echo "</tr><tr>"; 
							$count=0;
					}
			}
?>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td background="images/bgr4.gif" height="17"> 
      <div align="center"><a href="gallery.php" class="titles2">Photo Gallery</a></div>
    </td>
  </tr>
  <tr> 
    <td height="10"></td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr> 
    <td height="10"></td>
  </tr>
  <tr> 
    <td class="titles2">NEWSLETTER</td>
  </tr>
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="1" class="text">
        <tr> 
          <form name="formanl" method="post" action="newsletter.php">
            <td width="9%"> 
              <input type="text" name="emailnl" class="forms" size="16" maxlength="60">
            </td>
            <td width="91%" align="left" valign="middle"><input align="middle" name="gonl" type="image" border="0"  src="images/go.gif" value="submit" alt="Subscribe" onClick="MM_validateForm('emailnl','','RisEmail');return document.MM_returnValue"></td>
          </form>
        </tr>
        <tr> 
          <td colspan="2">Please insert your e-mail here if you like to subscribe to our mailing 
            list </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td height="10"></td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr> 
    <td height="10"></td>
  </tr>
  <tr> 
    <td class="titles2">CONTACT DETAILS</td>
  </tr>
  <tr> 
    <td class="address"> <b> 
      <?php echo $company1 ?>
      </b> <br>
      <?php echo $address1 ?>
      <br>
      <?php echo $tel1 ?>
    </td>
  </tr>
  <tr> 
    <td height="10"></td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr> 
    <td> 
      <div align="center"><a href="http://weather.yahoo.com/forecast/GRXX0051.html" target="_blank"><img src="images/weather.gif" width="128" height="68" border="0" alt="Weather in Folegandros island"></a></div>
    </td>
  </tr>
  <tr> 
    <td background="images/dots1.gif" height="1"></td>
  </tr>
  <tr> 
    <td height="20"> 
      <div align="center"><a href="javascript:history.go(-1);"><img src="images/back.gif" alt="back" border="0"></a> 
        <a href="#top"><img src="images/top.gif" border="0" alt="top"></a> </div>
    </td>
  </tr>
</table>
          