#!/usr/bin/perl

print "Content-type: text/plain\n\n";

print <<BEGINNING;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Chapter V IEEE-Southeastern Michigan</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<link href="../ieee/chapter5style.css" rel="stylesheet" type="text/css" media="screen" />

</head>

<body bgcolor="#ffffff" >

<div class="top">
<table cellpadding="10" cellspacing="0" height="117px" >
  <tr>
    <td id="home" width="227">

      <a href="http://www.ieee-sem.org/" title="Home"><img src="../ieee/Images/ieeelogo.gif" alt="Home" width="227" height="108" border="0" /></a>    </td>

    <td id="site-info" width="187">    </td>

    <td class="primary-links" width="268" align="center" valign="middle">

	  <p  align="left" class="quote" >The real danger is not that computers will begin to think like men, but that men will begin to think like computers. <br /> <a href="http://en.wikipedia.org/wiki/Sydney_Harris" target="_blank">~Sydney J. Harris</a></p>

	  </td>
	</tr>
</table>

<table cellpadding="0" cellspacing="0" width="100%">
  <tr>
    
	<td class="secondary-links" width="75%"  align="center" valign="middle">	</td>
    
	<td  width="25%"  align="center" valign="middle">    </td>
  </tr>
</table>
</div>

	<div id="main" class="content">
	<!--This is the division for the main content area.-->

		<center>
			<h1 class="banner">Welcome to the IEEE Southeast Michigan Chapter V Site</h1>
			<p>If you would like to upload images click <a href="../ieee/pictureUpload.html">here.</a></p>
<br>
<br>
		

BEGINNING
		#opendir DH, "$file" or die "cant read the current directory.";
opendir DH, "../ieee/Photos/" or die "cant read the current directory.";

@picArray;

while($_ = readdir(DH)) {

$value = ($_ =~ m/((\.jpg)|(\.gif)|(\.JPG)|(\.GIF))$/);

if($value)
{
#print "\nThe file passed.\n";
push(@picArray, $_);
}else{
#print "\nThe string failed.\n";
}

}
#print"\n\n";

#$i = 0;
foreach $p (@picArray)
{
#print "$i    $p\n";
#$i++;

print "<img src='../ieee/Photos/$p' alt='$p'/><br><br>"

}

print <<END;
		
<!--<div class="bottom"> Last updated <span class="date">11/4/05</p></span>-->

</center>
		
</div>

	
	<div id="sideMenu" class="sidemenu" >
	<!--This is the division for the Side Menu for the site.-->
	
		<a href="../ieee/index.html" onmouseover="document.home.src='../ieee/Images/HomeImageRoll.jpg'" onmouseout="document.home.src='../ieee/Images/HomeImage.jpg'" ><img src="../ieee/Images/HomeImage.jpg" name="home" alt="Home" /></a>
	
		<a href="../ieee/events.html" onmouseover="document.events.src='../ieee/Images/EventsImageRoll.jpg'" onmouseout="document.events.src='../ieee/Images/EventsImage.jpg'" ><img src="../ieee/Images/EventsImage.jpg" name="events" alt="Events" /></a>
	
		<a href="../ieee/officers.html" onmouseover="document.officers.src='../ieee/Images/OfficersImageRoll.jpg'" onmouseout="document.officers.src='../ieee/Images/OfficersImage.jpg'" ><img src="../ieee/Images/OfficersImage.jpg" name="officers" alt="Officers"  /></a>
		
		<a href="../ieee/articles.html" onmouseover="document.articles.src='../ieee/Images/ArticlesImageRoll.jpg'" onmouseout="document.articles.src='../ieee/Images/ArticlesImage.jpg'" ><img src="../ieee/Images/ArticlesImage.jpg" name="articles" alt="Articles" /></a>
		
		<a href="../cgi-bin/photos.pl" onmouseover="document.photos.src='../ieee/Images/PhotosImageRoll.jpg'" onmouseout="document.photos.src='../ieee/Images/PhotosImage.jpg'" ><img src="../ieee/Images/PhotosImage.jpg" name="photos" alt="Photos" /></a>
		
		<a href="../ieee/videos.html" onmouseover="document.videos.src='../ieee/Images/VideoImageRoll.jpg'" onmouseout="document.videos.src='../ieee/Images/VideoImage.jpg'" ><img src="../ieee/Images/VideoImage.jpg" name="videos" alt="Videos" /></a>
		
		<a href="../ieee/links.html" onmouseover="document.links.src='../ieee/Images/LinksImageRoll.jpg'" onmouseout="document.links.src='../ieee/Images/LinksImage.jpg'" ><img src="../ieee/Images/LinksImage.jpg" name="links" alt="Links" /></a>

		<a href="../ieee/dcs.html" onmouseover="document.dcs.src='../ieee/Images/DCSImageRoll.jpg'" onmouseout="document.dcs.src='../ieee/Images/DCSImage.jpg'" ><img src="../ieee/Images/DCSImage.jpg" name="dcs" alt="Distinguished Computer Soceity Speakers List" /></a>
		
		<a href="../ieee/contact.html" onmouseover="document.contact.src='../ieee/Images/ContactImageRoll.jpg'" onmouseout="document.contact.src='../ieee/Images/ContactImage.jpg'" ><img src="../ieee/Images/ContactImage.jpg" name="contact" alt="Contact" /></a>
	
		
				
		<!--
		Suggestions welcome:
		
		Papers and Abstracts from meetings
		
		Local Conferences----- EIT 2006, Fall 2006 conference
		
		Workshop on DSP	-->
	</div>

</body>
</html>

END

exit(0);