/*
 *  	JavaScrip Web Functions
 *	By Jay Fraser	
 *	Last Updated: 14th July 2003
 *	File name: jfweb.js
 */

function printHeader()
{
var authorName = "Natsoft www.natsoft.com.au 2003";
var cssFile = "fish.css";
var titleName = "Game Fishing Club of Northern Tasmania Inc.";
var keyWordStr = "game,fishing,fish,tasmania,outdoors,club,tuna,marlin";

document.write('<TITLE> '+titleName+' </TITLE>');
document.write('<meta http-equiv="Content-Language" content="en-us">');
document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">');
document.write('<meta name="AUTHOR" content="'+authorName+'">');
document.write('<META NAME="description" CONTENT="'+titleName+'">');
document.write('<META NAME="keywords" CONTENT="'+keyWordStr+'">');
document.write('<LINK REL="stylesheet" HREF="'+cssFile+'" TYPE="text/css">');
}


function printMenu()
{

menuOpt = new Array();
menuOpt[0] = "/?home";
menuOpt[1] = "/?contacts";
menuOpt[2] = "/?president";
menuOpt[3] = "/?gallery";
menuOpt[4] = "/?calendar";
menuOpt[5] = "/?sponsors";
menuOpt[6] = "/records.php";
menuOpt[7] = "/?trophies";
menuOpt[8] = "/?links";

document.write('<TABLE BACKGROUND="images/head_bg.jpg" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD WIDTH="1" ROWSPAN="2"><IMG SRC="images/spacer.gif" WIDTH="1" ALT=""></TD><TD WIDTH="128" HEIGHT="123" ROWSPAN="2"><IMG SRC="images/head_menu.gif" WIDTH="128" HEIGHT="123" ALT="Fish With Us"></TD><TD WIDTH="512" HEIGHT="86" ALIGN="RIGHT" VALIGN="MIDDLE"><DIV CLASS="greeting">For info or photo submissions contact <A HREF="mailto:info@fishnorthtas.com.au">info@fishnorthtas.com.au</A></DIV><SCRIPT>printDate()</SCRIPT></TD></TR><TR><TD WIDTH="512" HEIGHT="37"><IMG SRC="images/head_640.gif" WIDTH="512" HEIGHT="37" ALT=""></TD></TR></TABLE>');
document.write('</TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP">');
document.write('<TABLE BACKGROUND="images/menu_bg.gif" CELLPADDING="0" CELLSPACING="2" BORDER="0" HEIGHT="23" WIDTH="640" ALIGN="CENTER" VALIGN="TOP">');
document.write('<TR>');
document.write('<TD CLASS="menu"><A HREF="'+menuOpt[0]+'" TARGET="_top" CLASS="menu">&nbsp;&nbsp;Home</A></TD>');
document.write('<TD  CLASS="menu"><A HREF="'+menuOpt[1]+'" TARGET="_top" CLASS="menu">Contacts</A></TD>');
document.write('<TD  CLASS="menu"><A HREF="'+menuOpt[2]+'" TARGET="_top" CLASS="menu">President</A></TD>');
document.write('<TD  CLASS="menu"><A HREF="'+menuOpt[3]+'" TARGET="_top" CLASS="menu">Photos</A></TD>');
document.write('<TD  CLASS="menu"><A HREF="'+menuOpt[4]+'" TARGET="_top" CLASS="menu">Events</A></TD>');
document.write('<TD  CLASS="menu""><A HREF="'+menuOpt[5]+'" TARGET="_top" CLASS="menu">Sponsors</A></TD>');
document.write('<TD  CLASS="menu"><A HREF="'+menuOpt[6]+'" TARGET="_top" CLASS="menu">Records</A></TD>');
document.write('<TD  CLASS="menu"><A HREF="'+menuOpt[7]+'" TARGET="_top" CLASS="menu">Trophies</A></TD>');
document.write('<TD  CLASS="menu"><A HREF="'+menuOpt[8]+'" TARGET="_top" CLASS="menu">Links</A></TD>');

document.write('<TD HEIGHT="18" WIDTH="5"><IMG SRC="images/spacer.gif" WIDTH="10"></TD>');
document.write('</TR></TABLE>');

}

function popOutMH(url,target,mh,w)
{
var h;
if (screen.availWidth < '800') {h=400;}  //script not used here
else if (screen.availWidth == '800') {h=500;} //modify to requirements
else if (screen.availWidth > '800') {h=650;}
else {h=400;}
if (mh!='') if (h>mh) h=mh;

window.open(url,target,'scrollbars=yes,directories=no,location=no,status=no,toolbar=no,resizable=yes,height=' + h + ',width=' + w +'');	
}

function popOut(url,target,mh,w)
{
var h;
if (screen.availWidth < '800') {h=400;}  //script not used here
else if (screen.availWidth == '800') {h=500;} //modify to requirements
else if (screen.availWidth > '800') {h=650;}
else {h=400;}
if (mh!='') if (h>mh) h=mh;

window.open(url,target,'scrollbars=yes,directories=no,location=no,status=no,toolbar=no,resizable=yes,height=' + h + ',width=' + w +'');	
}


function menuOn(menuId)
{
	if (document.all)
		{
			document.all(menuId).style.visibility = "visible";
		}
	if (document.getElementById)
		{
			x = document.getElementById(menuId);
				x.style.visibility = 'visible';
		
		}
}


function menuOff(menuId)
{
	if (document.all)
		{
			document.all(menuId).style.visibility = "hidden";
		}

	if (document.getElementById)
		{
			x = document.getElementById(menuId);
				x.style.visibility = 'hidden';}
		
}


function sizeGallery()
{
if (screen.availWidth < '800') {h=300;}  //script not used here
else if (screen.availWidth == '800') {h=350;} //modify to requirements
else if (screen.availWidth > '800') {h=400;}
document.write('<DIV STYLE="margin-left:3pt;margin-top:3pt;height:'+h+';width:175;overflow:auto;border:1px solid #000000">');
}

function sizeNews()
{
if (screen.availWidth < '800') {h=300;}  //script not used here
else if (screen.availWidth == '800') {h=300;} //modify to requirements
else if (screen.availWidth > '800') {h=300;}
document.write('<DIV STYLE="margin-left:3pt;margin-top:3pt;height:'+h+';width:350;overflow:auto;border: 2px solid #003399">');
}

function printDate()
{
var greet,gm,ga,ge,time,date,month,day,now,year,dateEnd;
now=new Date();
year=now.getYear()
if (year < 199) {year += 1900;}
day=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
month=new Array("January","February","March","April","May","June","July","August","September","October","November","December");

if (now.getDate()==1 || now.getDate()==21 || now.getDate()==31) 
		{dateEnd="st";}
else if (now.getDate()==2 || now.getDate()==22) 
		{dateEnd="nd";}
else if (now.getDate()==3 || now.getDate()==23) 
		{dateEnd="rd";}
else {dateEnd="th";}

time=now.getHours();
if ((time >=12) && (time <=17)) {greet = "Good Afternoon!";}
else if ((time >=1) && (time <=11)) {greet = "Good Morning!";}
else {greet = "Good Evening!";}

date="<nobr>" + day[now.getDay()] + ", "+ month[now.getMonth()] +" " + now.getDate() + "" + dateEnd + "</nobr>";

<!--document.write('<DIV CLASS="greeting">'+greet+'</DIV>');//-->
document.write('<DIV CLASS="date">'+date+' '+year+'</DIV>');
document.write('<BR>');
document.write('<BR>');
}

function printCredits()
{

document.write('<HR>');
document.write('<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="640">');
document.write('<TR>');
document.write('<TD WIDTH="33%" VALIGN="TOP" ALIGN="LEFT">');
document.write('<P><A CLASS="footlink" HREF="http://www.natsoft.biz" TARGET="_blank" TITLE="Site Developed By Natsoft"><IMG SRC="/images/natsoft_small.jpg" BORDER="1"></A></P>');
document.write('</TD>');
document.write('<TD WIDTH="33%" VALIGN="TOP" ALIGN="CENTER">');
document.write('<P><A HREF="http://www.gfaa.asn.au" TARGET="_blank" TITLE="Visit the GFAA website"><IMG SRC="/images/GFAA.gif" BORDER="0"></A></P>');
document.write('</TD>');
document.write('<TD WIDTH="33%" VALIGN="TOP" ALIGN="RIGHT">');
document.write('<P><A HREF="http://www.bom.gov.au/weather/tas/" TARGET="_blank" TITLE="Visit the BOM website">Bureau Of Meteorology</A></P>');
document.write('<DIV CLASS="foot">Best viewed with <A HREF="http://www.firefox.com">Firefox 1.5+</A><BR><A HREF="#" onClick="popOut(\'site_info.html\',\'_blank\',\'300\',\'400\');" CLASS="footlink">Site Information</A><BR>&#169 2004-2006 Natsoft.</DIV>');
document.write('</TD>');
document.write('</TR>');
document.write('</TABLE>');

}

function dropDown()
{
<!--
sub1on = "menuOn('trophy')";
sub1off = "menuOff('trophy')";

subMenu1 = new Array();
subMenu1[0] = "popOutMH('trophy_2003classic.html','_blank','550','600')";
subMenu1[1] = "popOutMH('trophy_2003easter.html','_blank','550','600')";
subMenu1[2] = "popOutMH('trophy_2002winner.html','_blank','500','600')";
subMenu1[3] = "popOutMH('trophy_ltontyrepower.html','_blank','500','600')";
subMenu1[4] = "popOutMH('trophy_monthlyprizes.html','_blank','500','600')";
subMenu1[5] = "popOutMH('trophy_tagrelease.html','_blank','500','600')";
subMenu1[6] = "popOutMH('trophy_2003winner.html','_blank','500','600')";
subMenu1[7] = "popOutMH('trophy_2004classic.html','_blank','550','600')";

document.write('<TD HEIGHT="18" WIDTH="30" VALIGN="TOP"  ALIGN="LEFT"><A HREF="#" CLASS="menu" onMouseOver="'+sub1on+'" onMouseOut="'+sub1off+'">&nbsp Trophies</A>');
document.write('<DIV CLASS="dropMenu" ID="trophy" onMouseOver="'+sub1on+'" onMouseOut="'+sub1off+'">&nbsp<A HREF="#" onClick="'+subMenu1[7]+'">2004 Classic</A><BR>&nbsp<A HREF="#" onClick="'+subMenu1[6]+'">2003 Winner</A><BR>&nbsp<A HREF="#" onClick="'+subMenu1[0]+'">2003 Classic</A><BR>&nbsp<A HREF="#" onClick="'+subMenu1[1]+'">2003 Easter</A><BR>&nbsp<A HREF="#" onClick="'+subMenu1[2]+'">2002 Winner</A><BR>&nbsp<A HREF="#" onClick="'+subMenu1[3]+'">2002 Easter</A><BR>&nbsp<A HREF="#" onClick="'+subMenu1[4]+'">Monthly Prizes</A><BR>&nbsp<A HREF="#" onClick="'+subMenu1[5]+'">Tag & Release</A><DIV>');
document.write('</TD>');

sub3on = "menuOn('join')";
sub3off = "menuOff('join')";

subMenu3 = new Array();
subMenu3[0] = "popOutMH('membership_application.html','_blank','550','600')";
subMenu3[1] = "popOutMH('membership_renewal.html','_blank','550','600')";
subMenu3[2] = "popOutMH('membership_info.html','_blank','550','600')";

document.write('<TD HEIGHT="18" WIDTH="30" VALIGN="TOP"  ALIGN="LEFT"><A HREF="forms.php" CLASS="menu">&nbsp;Forms&nbsp;</A>');
document.write('<DIV CLASS="dropMenu" ID="join" onMouseOver="'+sub3on+'" onMouseOut="'+sub3off+'">&nbsp<A HREF="#" onClick="'+subMenu3[0]+'">Application</A><BR>&nbsp<A HREF="#" onClick="'+subMenu3[1]+'">Renewal</A><BR>&nbsp<A HREF="#" onClick="'+subMenu3[2]+'">Information</A></DIV>');
document.write('</TD>');
//-->
}
