<?php
//session_save_path('/users/c/t/ctl/public_html/development/place/towns/williston/cache/');
//require_once("flickrGallery.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
    
    <link rel="stylesheet" href="../../common/placestyle.css" type="text/css" media="screen" title="no title" charset="utf-8">
    
    <title>View Image - P L A C E</title>
    
</head>

<body>
<div class="content">
<?php 
    $photo_id 
$_GET['photo_id'];
    
    require_once(
"flickrGallery.php"); 
    
$gallery = new flickrGallery(); 
    
$photo $gallery->f->photos_getInfo($photo_id);
    
$url $gallery->f->buildPhotoURL($photo"Original");
    
$filename explode("."basename($url));
    
$base $filename[0] . "_zdata";

    
//check to make sure there is a zoomify obect
    
if(is_dir($gallery->zoomify_path $base)) :
?>
    <span class="large_size"><h1 class="title"><?php echo $photo["title"]; ?></h1>
    <OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="600" HEIGHT="400" ID="theMovie">

        <PARAM NAME="FlashVars" VALUE="zoomifyImagePath=zoomified/<?php echo $base;?>&zoomifyX=0.0&zoomifyY=0.0&zoomifyZoom=-1&zoomifyToolbar=1&zoomifyNavWindow=1">

        <PARAM NAME="src" VALUE="zoomifyDynamicViewer.swf">

        <EMBED FlashVars="zoomifyImagePath=zoomified/<?php echo $base;?>&zoomifyX=0.0&zoomifyY=0.0&zoomifyZoom=-1&zoomifyToolbar=1&zoomifyNavWindow=1" SRC="zoomifyDynamicViewer.swf" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"  WIDTH="625" HEIGHT="450" NAME="theMovie">
        </EMBED>

    </OBJECT>

    <p class="description"><?php echo $photo["description"]; ?></p>
    <p class="flickr_credit">You can also view the <a class="new_screen" href="http://flickr.com/photos/<?php echo $photo["owner"]["nsid"]; ?>/<?php echo $photo_id?>">photo page</a>.</p>
    </span>
<?php 

    
else:
        
$gallery->display_large_image($photo_id);
    endif;

?>
</div>
</body>
</html>