<?php
 // error_reporting(E_ALL^E_NOTICE);
?>

{!--
Site:          chrysalis-designs.com
Page:          portfolio2/index
Created:       Jan 23 2008
Last Modified: Jan 23 2008
=================================================
ryan masuga, masugadesign.com
ryan@masugadesign.com | Copyright 2007-2008
================================================= --}
{preload_replace:page_title="Portfolio | Chrysalis Design Services, LLC"}
{preload_replace:body_id="portfolio"}
{preload_replace:body_class="client-services"}

{embed="common/pagetop" page_title="{page_title}"}
{embed="common/javascript"}

<?php
require_once('_config.php');
/*
		"SSPDB_USER" => "chrysali_chryssp",
		"SSPDB_PASSWORD" => "pics179179",
		"SSPDB_HOST" => "localhost",
		"SSPDB_NAME" => "chrysali_slideshowpr0"

 */

$SSPDB_USER = "mdbasic";
$SSPDB_PASSWORD = "MDdb123";
$SSPDB_HOST = "localhost";
$SSPDB_NAME = "chrysalg_slideshowpr0";

$dbc = mysql_connect($SSPDB_HOST,$SSPDB_USER,$SSPDB_PASSWORD);

mysql_select_db ($SSPDB_NAME);

$query = 'SELECT id FROM chrysalg_slideshowpr0.ssp_dynamic WHERE name = "Homepage"';
$results = mysql_query($query);
// $gid = $row[0];
$row = mysql_fetch_row($results);
$gid = $row[0];
/* if ($row = mysql_fetch_row($results)) {
           echo "results: ".$row[0];
        } else {
           print (mysql_error());
        } */
?>
<script type="text/javascript" src="../js/jquery-1.2.2.pack.js"></script>
<script type="text/javascript" src="../js/ufo.js"></script>

<script type="text/javascript">
// <![CDATA[
$(document).ready( function(){
	$('#selectbox a').click(function() {
		id = $(this).attr("href");
		sspFunction(id)
		return false;
	});

  	function sspFunction(id) {
       document.getElementById("ei_test").sspFunction(id);
      }

}); /* close ready */



	var FO = { movie:"http://www.chrysalis-designs.com/portfolio/chrysalis_ssp_desc_x.swf", id:"ei_test", width:"500", height:"375", majorversion:"8", build:"0", wmode:"transparent", flashvars: "xmlfile=/portfolio/ssp_director/images.php?gid=11", allowscriptaccess:"always"};
		UFO.create(FO, "gallery");
// ]]>
</script>





{!-- 		<script type="text/javascript">
		//var FO = { movie:"/portfolio/chrysalis_ssp_desc.swf", width:"758", height:"515", majorversion:"6", build:"0", flashvars:"xmlfile=/portfolio/ssp_director/images.php?gid=11"};
		var FO = { movie:"/portfolio/chrysalis_ssp_desc.swf", width:"758", height:"515", majorversion:"6", build:"0", flashvars:"xmlfile=/portfolio/links_client.php&gid=11"};
		UFO.create(FO, "gallery");
		</script> --}

{embed="common/styles"}

</head>

{embed="common/header" body_id="{body_id}" body_class="{body_class}"}




            <ul id="selectbox">
	<li><a href="9">gal nine</a></li>
	<li><a href="7">gal seven</a></li>
	<li><a href="10">gal ten</a></li>
	<li><a href="18">gal eighteen</a></li>
            </ul>

<div id="gallery">
	<div class="flashaltcontent">
		<h2>Sorry!</h2>
		<p>Chrysalis Designs uses Flash and Javascript to display the photo galleries. If you are reading this message you either have Javascript disabled or you don't have a recent version of the Flash Player.</p>

		<h3>To Fix:</h3>

		<p>1) Make sure Javascript is enabled in your browser.<br />
			2) Make sure you have the most recent version of the Flash player. You can download the latest version of the Free Flash player <a href="http://www.adobe.com/go/getflash">at this link</a>.
			</p>

		<p>If you are still having problems, {encode="tucker@speakeasy.net" title="please let Tucker know"} that you are having problems viewing the portfolios.</p>

		<p>
		If you can, it would be helpful to know whether you are using a Mac or a PC, and what browser you are using to view the site (Safari, Firefox, Internet Explorer, etc).</p>

		<p><strong>We are sorry for the inconvenience!</strong></p>

	</div>
	</div>

<br /><br />

 <p>
            Use the select box to change the images on the top of the Flash movie:
            <select id="selectbox" onchange="sspMe();">
               <option value="7">mus</option>
               <option value="10">wed</option>
               <option value="18">sen</option>
               <option value="4">spec</option>
            </select>
         </p>

{!-- {exp:channel:entries channel="static_pages" disable="trackbacks|pagination|member_data" category="9"}
{body}
{/exp:channel:entries} --}

{!-- {if member_group =="1"}
<?php echo 'gid: '.$gid; ?>
{/if} --}

{embed="common/footer"}