var code="code";
var url="";
var main_button_offset = 162;
var main_button = 161;
var margin_button_offset = 18;
var margin_button_width = 145;
var margin_button = 25
var root="http://www.conesuslake.org/";
//styles
//var defcolor = {"bgON":"#4962A3","bgOVER":"#ff5566"};
var defcolor = {};
var defcss = {"ON":"main_menu_cla", "OVER":"main_menu_over_cla"};
var margin_css = {"ON":"margin_menu_cla", "OVER":"margin_menu_over_cla"};
var STYLE_MARGIN = {"border":0, "borders":[0,0,0,0], "shadow":0, "color":{imagebg:'', oimagebg:'', bgON:'', bgOVER:''}, "css":margin_css};
var STYLE_TOP = {"border":0, "borders":[0,0,0,0], "shadow":0, "color":defcolor, "css":defcss};

var MENU_ITEMS =
[
	{"pos":"relative", "size":[21,main_button], "itemoff":[0,0], "leveloff":[0,0], "delay":1},
	{code:"HOME",  url:root + "index.php", "format":{"style":STYLE_TOP, "image":null}
//	{code:"ABOUT CLA", url:root + "about_cla.htm", "format":{"style":STYLE_TOP, "image":null}
//		 , sub:[
//			{"size":[20,130], "itemoff":[21,0], "style":STYLE_TOP, "leveloff":[20,30]},
//			{code:'History', url:root + "about.htm", "format":{"style":STYLE_TOP, "image":null}},
//			{code:'Doctor Bios', url:root + "bios.htm", "format":{"style":STYLE_TOP, "image":null}}
//			]

	},
	{code:"ABOUT the CLA", url:root + "cla_about.htm", "format":{"style":STYLE_TOP, "image":null, "itemoff":[0,main_button_offset], "size":[21,main_button]}
//	{code:"OUR WATERSHED", url:root + "watershed.htm", "format":{"style":STYLE_TOP, "image":null, "itemoff":[0,main_button_offset], "size":[21,main_button]}
//		 , sub:[
//			{"size":[20,130], "itemoff":[21,0], "style":STYLE_TOP, "leveloff":[20,30]},
//			{code:'History', url:root + "about.htm", "format":{"style":STYLE_TOP, "image":null}},
//			{code:'Doctor Bios', url:root + "bios.htm", "format":{"style":STYLE_TOP, "image":null}}
//			]

	},
	{code:"OUR WATERSHED", url:root + "watershed.php", "format":{"style":STYLE_TOP, "image":null, "itemoff":[0,main_button_offset], "size":[21,main_button]}
//	{code:"LAKE COMMUNITY", url:root + "links.htm", "format":{"style":STYLE_TOP, "image":null, "itemoff":[0,main_button_offset], "size":[21,main_button]}
/*		sub:[
			{"size":[20,250], "itemoff":[21,0], "style":STYLE2, "leveloff":[20,30]},
			{code:'History & Mission', url:root + "about.htm", "format":{"style":STYLE_TOP, "image":null}},
			{code:'Doctor Bios', url:root + "bios.htm", "format":{"style":STYLE_BOTTOM, "image":null}},
			{code:'Clinical Trials', url:root + "trials.htm", "format":{"style":STYLE_BOTTOM, "image":null}},
			{code:'Education', url:root + "education.htm", "format":{"style":STYLE_BOTTOM, "image":null}},
			{code:'Contributions', url:root + "contribute.htm", "format":{"style":STYLE_BOTTOM, "image":null}}
		]
*/		
	},
/*	{code:"", "format":{"style":STYLE_TOP, "image":null, "itemoff":[0,152], "size":[24,170]},
		sub:[
			{"size":[20,155], "itemoff":[21,0], "style":STYLE2, "leveloff":[20,30]},
			{code:'Physical Activity', url:root + "wellness.htm", "format":{"style":STYLE_TOP, "image":null}},
			{code:'Calendar of Events', url:root + "calendar.htm", "format":{"style":STYLE_BOTTOM, "image":null}},
			{code:'Photo Gallery', url:root + "gallery1.htm", "format":{"style":STYLE_TOP, "image":null}}
			]
	},
*/	
	{code:"LAKE COMMUNITY", url:root + "community.php", "format":{"style":STYLE_TOP, "image":null, "itemoff":[0,main_button_offset], "size":[21,main_button+2]}
//	{code:"HOME", url:root + "index.php", "format":{"style":STYLE_TOP, "image":null, "itemoff":[0,main_button_offset], "size":[21,main_button+2]}
//		sub:[
//			{"size":[20,250], "itemoff":[21,0], "style":STYLE2, "leveloff":[20,30]},
//			{code:'History', url:root + "about.htm", "format":{"style":STYLE_TOP, "image":null}},
//			{code:'Doctor Bios', url:root + "bios.htm", "format":{"style":STYLE_BOTTOM, "image":null}}
//			]
	}
];

var MENU_MARGIN =
[
	{"pos":"relative", "size":[margin_button,margin_button_width], "itemoff":[margin_button,0], "leveloff":[0,0], "imgsize":[14,20], "delay":1, "image":"graphics/b.gif"},
	{code:"New Item One", url:root + "#", "format":{"style":STYLE_MARGIN, "image":"graphics/margin_arrow.gif", "oimage":"graphics/margin_arrow_over.gif"}
//		 , sub:[
//			{"size":[20,130], "itemoff":[21,0], "style":STYLE_TOP, "leveloff":[20,30]},
//			{code:'History', url:root + "about.htm", "format":{"style":STYLE_TOP, "image":null}},
//			{code:'Doctor Bios', url:root + "bios.htm", "format":{"style":STYLE_TOP, "image":null}}
//			]

	},
	{code:"New Item Two", url:root + "#", "format":{"style":STYLE_MARGIN, "image":"graphics/margin_arrow.gif", "oimage":"graphics/margin_arrow_over.gif", "itemoff":[margin_button_offset,0], "size":[margin_button,margin_button_width]}
/*		sub:[
			{"size":[20,250], "itemoff":[21,0], "style":STYLE2, "leveloff":[20,30]},
			{code:'History & Mission', url:root + "about.htm", "format":{"style":STYLE_TOP, "image":null}},
			{code:'Doctor Bios', url:root + "bios.htm", "format":{"style":STYLE_BOTTOM, "image":null}},
			{code:'Clinical Trials', url:root + "trials.htm", "format":{"style":STYLE_BOTTOM, "image":null}},
			{code:'Education', url:root + "education.htm", "format":{"style":STYLE_BOTTOM, "image":null}},
			{code:'Contributions', url:root + "contribute.htm", "format":{"style":STYLE_BOTTOM, "image":null}}
		]
*/		
	},
/*	{code:"", "format":{"style":STYLE_TOP, "image":null, "itemoff":[0,152], "size":[24,170]},
		sub:[
			{"size":[20,155], "itemoff":[21,0], "style":STYLE2, "leveloff":[20,30]},
			{code:'Physical Activity', url:root + "wellness.htm", "format":{"style":STYLE_TOP, "image":null}},
			{code:'Calendar of Events', url:root + "calendar.htm", "format":{"style":STYLE_BOTTOM, "image":null}},
			{code:'Photo Gallery', url:root + "gallery1.htm", "format":{"style":STYLE_TOP, "image":null}}
			]
	},
*/	
	{code:"New Item Three", url:root + "#", "format":{"style":STYLE_MARGIN, "image":"graphics/margin_arrow.gif", "oimage":"graphics/margin_arrow_over.gif", "itemoff":[margin_button_offset,0], "size":[margin_button,margin_button_width]}
//		sub:[
//			{"size":[20,250], "itemoff":[21,0], "style":STYLE2, "leveloff":[20,30]},
//			{code:'History', url:root + "about.htm", "format":{"style":STYLE_TOP, "image":null}},
//			{code:'Doctor Bios', url:root + "bios.htm", "format":{"style":STYLE_BOTTOM, "image":null}}
//			]
	}
];

function checkform ( form )
{
  // see http://www.thesitewizard.com/archive/validation.shtml
  // for an explanation of this script and how to use it on your
  // own website

  // ** START **
  if (alert_form.AlertEMAIL.value == "") {
    alert( "Please enter your email address." );
    form.AlertEMAIL.focus();
    return false ;
  }
  if (alert_form.AlertFirstName.value == "") {
    alert( "Please enter your first name." );
    form.AlertFirstName.focus();
    return false ;
  }	
  if (alert_form.AlertLastName.value == "") {
    alert( "Please enter your last name." );
    form.AlertLastName.focus();
    return false ;
  }
	  if (alert_form.AlertAddress.value == "") {
    alert( "Please enter your street address." );
    form.AlertAddress.focus();
    return false ;
  }
		if (alert_form.AlertCity.value == "") {
    alert( "Please enter your city." );
    form.AlertCity.focus();
    return false ;
  }
  if (alert_form.AlertPostal.value == "") {
    alert( "Please enter your postal code." );
    form.AlertPostal.focus();
    return false ;
  }	

  // ** END **
  return true ;

}


function checkFish ( form )
{

  // see http://www.thesitewizard.com/archive/validation.shtml
  // for an explanation of this script and how to use it on your
  // own website

  // ** START **
  if (fish_form.your_name.value == "") {
    alert( "Please enter your name." );
    form.your_name.focus();
    return false ;
  }
  if (fish_form.address.value == "") {
    alert( "Please enter your address." );
    form.address.focus();
    return false ;
  }	
  if (fish_form.csz.value == "") {
    alert( "Please enter your city, state and postal code." );
    form.csz.focus();
    return false ;
  }
	  if (fish_form.phone.value == "") {
    alert( "Please enter your phone number." );
    form.phone.focus();
    return false ;
  }
		if (fish_form.email.value == "") {
    alert( "Please enter email address" );
    form.email.focus();
    return false ;
  }
		
  if (fish_form.age.value == "none") {
    alert( "Please select your age." );
    form.age.focus();
    return false ;
  }	
		if (fish_form.parent.value == "") {
    alert( "Please enter a parent or guardian name." );
    form.parent.focus();
    return false ;
  }
		if (document.getElementById('agree').checked == false) {
    alert( "Please check the box to signify a parent or guardian will accompany the contest participant." );
    form.agree.focus();
    return false ;
  }	
  // ** END **
  return true ;

}

function margin_home(path)
{
document.write("<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>");
document.write("<TBODY><TR><TD vAlign=top class=blockHeader3>WHAT'S NEW</TD>");
document.write("</TR><TR><TD align=left vAlign=top>");
document.write("<div id=navcontainer>");
document.write("<ul id=navlist>");
document.write("<li id=active><a href=about_lake.htm id=current>About the Lake</a></li>");
document.write("<li id=active><a href=boatsaftey.htm id=current>Boating Safety</a></li>");
document.write("<li id=active><a href=news.php id=current>CLA Email NEWS</a></li>");
document.write("<li id=active><a href=faq.htm id=current>FAQ's</a></li>");
document.write("</ul></div> </TD></TR></TBODY></TABLE>");
}

function margin_faq()
{
document.write("<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>");
document.write("<TBODY><TR><TD vAlign=top class=blockHeader3>FAQs by Topic</TD>");
document.write("</TR><TR><TD align=left vAlign=top>");
document.write("<div id=navcontainer>");
document.write("<ul id=navlist>");
document.write("<li id=active><a href=# id=current>Things that effect the Lake</a></li>");
document.write("<li id=active><a href=# id=current>Hunting and Fishing</a></li>");
document.write("<li id=active><a href=# id=current>Urgent Issues</a></li>");
document.write("</ul></div> </TD></TR></TBODY></TABLE>");
}

function margin_about()
{
document.write("<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>");
document.write("<TBODY><TR><TD vAlign=top class=blockHeader3>IN THIS SECTION</TD>");
document.write("</TR><TR><TD align=left vAlign=top>");
document.write("<div id=navcontainer>");
document.write("<ul id=navlist>");
document.write("<li id=active><a href=cla_membership.htm id=current>Membership</a></li>");
document.write("<li id=active><a href=cla_contribute.htm id=current>Contributions</a></li>");
document.write("<li id=active><a href=cla_contacts.htm id=current>Officers &amp; Contacts</a></li>");
document.write("</ul></div> </TD></TR></TBODY></TABLE>");
}

function margin_water(path)
{
document.write("<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>");
document.write("<TBODY><TR><TD vAlign=top class=blockHeader3>IN THIS SECTION</TD>");
document.write("</TR><TR><TD align=left vAlign=top>");
document.write("<div id=navcontainer>");
document.write("<ul id=navlist>");
document.write("<li id=active><a href=watershed.htm id=current>Preserving</a></li>");
document.write("<li id=active><a href=water_brochure.htm id=current>Brochure</a></li>");
document.write("</ul></div> </TD></TR></TBODY></TABLE>");
}

function margin_links(path)
{
document.write("<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>");
document.write("<TBODY><TR><TD vAlign=top class=blockHeader3>IN THIS SECTION</TD>");
document.write("</TR><TR><TD align=left vAlign=top>");
document.write("<div id=navcontainer>");
document.write("<ul id=navlist>");
document.write("<li id=active><a href=locator.php id=current>Advertisers</a></li>");
document.write("<li id=active><a href=links.htm id=current>Emergency Contacts</a></li>");
document.write("</ul></div> </TD></TR></TBODY></TABLE>");
}