<?php
session_cache_limiter('private, must-revalidate');
session_start();

###################################################################
#####           BEGIN  -  MAIN BLOCK                       ########
###################################################################


# load the general.php file, which will set the includes path and load
# the includes file (which will load all the other needed files)
require_once "general.php";

$html .= make_idx_page();

$html .= show_idx_footnotes();

# need to see if there's a custom stylesheet for a particular user id
# and if so, use it
if (isset($_GET['id'])) {

	$id = $_GET['id'];
	
	if (file_exists($id . ".css")) {
		$this_stylesheet = $id . ".css";
	} else {
		$this_stylesheet = "idx_main.css";
	}

}

###################################################################
######           END  -  MAIN BLOCK                         #######
###################################################################


?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title></title>
<LINK REL="stylesheet" HREF="<? echo $this_stylesheet; ?>">

<?php 

//$style = make_style();
//echo $style; 

?>

<SCRIPT LANGUAGE='JavaScript'>
<!--

	function childWindow(url){
	
		newWindow = window.open(url,"honeyChild","height=400,width=450,toolbar=no,location=no,status=no,scrollbars=yes")
		newWindow.focus();
	
	}

function MyReload()
{
window.location.reload();
}

  function showLarger(bigImage){
		
	newWindow = window.open('','bigImage','width=550,height=450,resizable=yes,scrollbars=yes,toolbar=no,location=no,status=no');
	newWindow.document.write('<HTML><HEAD></HEAD><BODY>');
	newWindow.document.write("<FORM><P ALIGN='Center'><INPUT TYPE='Button' VALUE='Close Window' ONCLICK='self.close()'");
	newWindow.document.write('</P></FORM>');
	newWindow.document.write("<IMG ALIGN='center' SRC=" + bigImage + ">");
	newWindow.document.write('</BODY></HTML>');
	newWindow.document.close();
    newWindow.document.focus();

  }


// -->
</SCRIPT> 

</head>




<body STYLE="text-align: center" CLASS=idxPage>

<?php echo $html; ?>

</body>
</html>
