<?php session_start(); ?>
<?php
	//If user is not signed in redirect
	if(!$user->signed) redirect("?page=login");	

?>
<div class="subcontent"><h3>Instructions</h3>
<hr  class="breaklightblue" />
</div>
<div class="subcontent">
   	<div class="leftcol-wide">
     	<h4>Step 1: Set-Up Your Geometry</h4>
    	<ul class="instr">
    		<li class="instr">Choose the Cold Plate (width, length, thickness)</li>
			<li class="instr">Set MDT Geometry (fin: type, width, height, thickness)</li>
		</ul>
        <h4>Step 2: Define the Boundary Conditions</h4>
    	<ul class="instr">
    		<li class="instr">Choose the Flow Rate, Inlet Temperature, & Heat Load</li>
		</ul>
        <h4>Step 3: Select the Materials</h4>
    	<ul class="instr">
    		<li class="instr">Coldplate Material (Aluminium, Copper)</li>
			<li class="instr">TIM (Silicon Paste, Liquid Metal) or Specify Your Own</li>
            <li class="instr">Variety of Working Fluids & Mixtures </li>
		</ul>
        <h4>Step 4: Run Your Simulation</h4>
        <h4>Step 5: Analyze Your Results</h4>
    	<ul class="instr">
    		<li class="instr">View Calculated Thermal Output Parameters</li>
			<li class="instr">3D Graphical Cold Plate Surface Temperature Profile</li>
            <li class="instr">Save Simulation to PDF File</li>
		</ul>
        <br />
    </div><!-- end .leftcol-wide-->
   <div class = "rightcol-slim">
    <p style="float:right;">
    	<img alt="Instructions Image" src="assets/images/graphic-instructionpage.jpg" width="220" style="margin-top: 10%;"/>
    	<input onclick="window.location.href='?page=geom';" type="button"  value="BEGIN" style="width: 
    	120px; height: 70px; -webkit-appearance: none; background-color:#00457c; font-weight:bold; 
        font-size:18px; color:#adafb2; margin-left: 30px; margin-top: 50%; display: inline;" />            	
   </p>    
   </div><!-- end .rightcol-slim-->
    
</div><!-- end .subcontent -->  
<?php

//			$results = checkEc2Ready();
    			
//    			print_r($results);
    			?>
  
<!-- Countdown Delay Issue (commented out)     
  
<script>
// Set the date we're counting down to
var countDownDate = new Date().getTime()+162000;

// Update the count down every 1 second
var x = setInterval(function() {

  // Get today's date and time
  var now = new Date().getTime();
    
  // Find the distance between now and the count down date
  var distance = countDownDate - now;
    
  // Time calculations for days, hours, minutes and seconds
  var days = Math.floor(distance / (1000 * 60 * 60 * 24));
  var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
  var seconds = Math.floor((distance % (1000 * 60)) / 1000);
    
  // Output the result in an element with id="demo"
  document.getElementById("demo").innerHTML = "MicroCool Tool Initializing ..." + minutes + "m " + seconds + "s ";
    
  // If the count down is over, write some text 
  if (distance < 0) {
    clearInterval(x);
    document.getElementById("demo").innerHTML = "Initialization Complete";
  }
}, 1000);
</script>

-->
  
<div id="demo" style="font-size: 20px; text-align: center;"></div>
