<?php require_once 'includes/connect.php'; ?>
<div id="boxes">  
<div id="dialog" class="window">

<div style="width:800px; background-color:#<?php echo $color3 ?>; padding:20px; text-align:center">
  
  <iframe name="panframe" src="/inpanorama.php" width="700" height="420" frameborder="0" marginwidth="0" marginheight="0" style="allowTransparency:true;" scrolling="auto" >
    </iframe>
  
 <div style="width:100%; padding-top: 10px; text-align:center; color:#<?php echo $color4 ?>">

   <table border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
        <?php
			$sql3 = "SELECT * FROM panoramas ORDER BY priority";
			$result3 = mysql_query($sql3);
			while ($myrow=mysql_fetch_array($result3)) {
			$panid=$myrow['id'];
			$photo=$myrow['name_en'];
?>
    <?php if ($photo=='') { 
$photo=$company1;
}?>
    <div style="float: left; width: 90px; margin: 5px;"> 
      <a href="/inpanorama.php?panphoto=<?php echo $panid?>" target="panframe" class="plinks"><img src="/panoramas/<?php echo $panid ?>.jpg" width="70" height="40" alt="<?php echo $photo ?>"></a>
      <br>
      <a href="/inpanorama.php?panphoto=<?php echo $panid?>" target="panframe"> 
      <?php echo $photo ?></a>
    </div>
    
    <?php } ?>
    </td>
  </tr>
</table>

    You are using Easypano Virtual 
      Tour Player to view your panorama, which requires Java Virtual Machine 
      installed.<br>
      If you can't view the panorama, please download and install <a href="http://www.java.com/en/download/windows_automatic.jsp" target="_blank">Sun 
        JRE </a> . 
<div style="padding:10px; text-align:center"><a href="#" class="close"><img src="/panoramas/close.png" alt="close"></a></div>
</div>
  </div>
  
</div>
 <div id="mask"></div>
 </div>