<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../styles.css" type="text/css">
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

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 == '');
}
//-->
</script>
<table width="96%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td> 
      <?php if ($resurl=='') { ?>
      <?php }else{?>
    </td>
  </tr>
  <tr> 
    <td align="center"> 
      <?php include 'booking/form1.php';?>
    </td>
  </tr>
  <tr> 
    <td align="center"><a href="javascript:;" onClick="MM_openBrWindow('whybook.php','','scrollbars=yes,width=750,height=550')"><img src="../images/why.gif" border="0" alt="Why you should book with us"></a></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td> 
      <?php }?>
    </td>
  </tr>
  <tr> 
    <td> 
      <table border="0" cellspacing="4" cellpadding="0" align="center">
        <tr> 
          <?php 
			include 'connect.php';
			$sql30 = "SELECT * FROM photos WHERE promote='yes' ORDER BY priority";
			$result30 = mysql_query($sql30);
			$countp=0;
			while ($myrow=mysql_fetch_array($result30)) {
					$countp++;
					$photoid1=$myrow['id'];
					$photo1=$myrow['name'];
?>
          <td> 
            <table border="0" cellspacing="1" cellpadding="2" bgcolor="#<?php echo $color4 ?>" align="center">
              <tr> 
                <td bgcolor="#<?php echo $color2 ?>"><a href="javascript:;" onClick="MM_openBrWindow('galleryphoto.php?id=<?php echo $photoid1?>&start=1','foto','width=850,height=600')"><img src="../photos/<?php echo $photoid1 ?>.jpg" border="0" alt="<?php echo $photo1 ?>" width="70" height="53"></a></td>
              </tr>
            </table>
          </td>
          <?php 
					if ($countp == '3') { 
							echo "</tr><tr>"; 
							$countp=0;
					}
			}
?>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td align="center"> 
      <?php 
             $nu_row31 = '0';
              $zero='0';
			include 'connect.php';
			$sql31 = "SELECT * FROM photos WHERE promote='no'";
			$result31 = mysql_query($sql31);
			$nu_row31 = mysql_num_rows($result31);
?>
      <?php 
	if  ( ( $nu_row31==$zero)) {
	?>
      <?php } else {?>
      <a href="gallery.php" class="links1">++ περισσότερες φωτογραφίες</a> 
      <?php }?>
    </td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td> 
      <?php 
			include 'connect.php';
			$sql32 = "SELECT * FROM infocategories WHERE publish='yes' ORDER BY priority";
			$result32 = mysql_query($sql32);
	while ($myrow=mysql_fetch_array($result32)) {
			$icatid=$myrow['id'];
			$icategory=$myrow['category'];
?>
    </td>
  </tr>
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="2" class="titlesmenu" align="center">
        <tr> 
          <td bgcolor="#<?php echo $color1 ?>"> <img src="../images/bullet1.gif" align="absmiddle"> 
            <?php 
             $nu_row33 = '0';
              $zero='0';
			include 'connect.php';
			$sql33 = "SELECT * FROM  info WHERE category_id=$icatid AND publish='yes'";
			$result33= mysql_query($sql33);
			$nu_row33 = mysql_num_rows($result33);
?>
            <?php 
	if  ( ( $nu_row33==$zero)) {
	?>
            <?php echo $icategory ?>
            <?php } else {?>
            <a href="info.php?catid=<?php echo $icatid ?>" class="titlesmenu"> 
            <?php echo $icategory ?>
            </a> 
            <?php } ?>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td height="8"></td>
  </tr>
  <tr> 
    <td height="3" bgcolor="#<?php echo $color4 ?>"></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td> 
      <?php } ?>
    </td>
  </tr>
  <tr> 
    <td> 
      <?php if ($newsletter!=no) { ?>
    </td>
  </tr>
  <tr> 
    <td class="mtext2">Newsletter </td>
  </tr>
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="2" class="address">
        <tr> 
          <form name="formanl" method="post" action="newsletter.php">
            <td> 
              <input type="text" name="emailnl" class="forms" size="30" maxlength="60">
              <input align="middle" name="gonl" type="image" border="0"  src="../images/go.gif" value="submit" alt="Εγγραφή" onClick="MM_validateForm('emailnl','','RisEmail');return document.MM_returnValue">
            </td>
          </form>
        </tr>
        <tr> 
          <td> Εισάγετε το e-mail σας αν θέλετε να εγγραφείτε<br>
            στην λίστα αλληλογραφίας μας</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td> 
      <?php } ?>
    </td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td height="3" bgcolor="#<?php echo $color4 ?>"></td>
  </tr>
  <tr> 
    <td height="8"></td>
  </tr>
  <tr> 
    <td class="address"> <b> 
      <?php echo $company1 ?>
      </b> <br>
      <?php echo $address1 ?>
      <br>
      <?php echo $tel1 ?>
      <br>
      e-mail: <a href="mailto:<?php echo $sitemail?>?subject=<?php echo $firma ?>" class="mlinks1"> 
      <?php echo $sitemail?>
      </a> </td>
  </tr>
</table>
