0) && ($h <= 6)) {$im=0;} if (($h > 6) && ($h <= 12)) {$im=1;} if (($h > 12) && ($h <= 18)) {$im=2;} if (($h > 18) && ($h <= 24)) {$im=3;} if (isset($_GET["im"])) $im=$_GET["im"]; $plot="XN"; include ("../common/phpfns.inc") ; $current = getWaveLatest ($im, $plot) ; if ( file_exists($current) ) { $found = true; } else { $current = "../common/unavail.gif"; $found = false; } doHead($im, $plot, "Wave Model"); echo '

Wave Model 48 hr Forecast

'; jumpwave($im, $plot); echo '

Wind Waves (Direction, Significant Height and Mean Period)

'; echo '
'; require ("../common/ctrl6hr.php"); echo ' Wind wave direction'; if ($found) echo '

The numbers indicate the Mean Period of the waves (in seconds)

'; echo '
'; doTail(); ?>