function newsitem (ndate, murl, mdesc) {
    this.ndate=ndate
    this.murl=murl
    this.mdesc=mdesc
}

function newshead (scount, mname) {
    this.scount=scount
    this.mname=mname
}

function pmenu (scount, mname, murl, mtitle) {
    this.scount=scount
    this.mname=mname
    this.murl=murl
    this.mtitle=mtitle
}

function smenu (surl, stitle) {
    this.surl=surl
    this.stitle=stitle
}

var plist=new Array()
var slist = new Array()
var i=0
var j=0
slist[i]=new Array()
slist[i][j++]=new smenu("about_us.htm","About Zatoun")
slist[i][j++]=new smenu("partners_palestine.htm","Partners in Palestine")
slist[i][j++]=new smenu("partners_Canada.htm","Partners in Canada")
slist[i][j++]=new smenu("audiozatoun.htm","Audio Documentary")
slist[i][j++]=new smenu("contact.htm","Contact Us")
slist[i][j++]=new smenu("newsletters.htm","Newsletters")
plist[i++]=new pmenu(j,"aboutusmenu","about_us.htm","About Us")
slist[i]=new Array()
j=0
slist[i][j++]=new smenu("about_olive_trees.htm","Olive Trees")
slist[i][j++]=new smenu("about_farmers.htm","Olive Farmers")
slist[i][j++]=new smenu("study.htm","A Brief Study of Olives")
slist[i][j++]=new smenu("about_olive_soap.htm","Olive Soap")
plist[i++]=new pmenu(j,"aboutolivemenu","#","About Olives")
slist[i]=new Array()
j=0
slist[i][j++]=new smenu("zatoun_products.htm","Shop")
slist[i][j++]=new smenu("order.htm","Order Zatoun")
slist[i][j++]=new smenu("order_can.htm","Order Form")
//slist[i][j++]=new smenu("order_usa.htm","Order from USA")
slist[i][j++]=new smenu("retail.htm","Retail Locations")
slist[i][j++]=new smenu("madewithzatoun.htm","Made with Zatoun")
plist[i++]=new pmenu(j,"productsmenu","zatoun_products.htm","Shop")
slist[i]=new Array()
j=0
slist[i][j++]=new smenu("myzatoun.htm","My Zatoun")
slist[i][j++]=new smenu("action.htm","Action")
slist[i][j++]=new smenu("ifolivetrees.htm","&quot;If olive trees...&quot;: Poetry")
slist[i][j++]=new smenu("olive_stories.htm","Stories of Olives &amp; Trees")
slist[i][j++]=new smenu("recipes.htm","Olive Oil Recipes")
slist[i][j++]=new smenu("zatoun_donate.htm","Make an Online Donation")
slist[i][j++]=new smenu("volunteer.htm","Volunteer Grove")
plist[i++]=new pmenu(j,"myzatounmenu","myzatoun.htm","My Zatoun")
slist[i]=new Array()
j=0
plist[i++]=new pmenu(j,"beitzatounmenu","beitzatoun_intro.html","Beit Zatoun")
slist[i]=new Array()
j=0
slist[i][j++]=new smenu("treesforlife.htm","Online Donation:<br>Planting Olive Trees")
slist[i][j++]=new smenu("T4L_sponsor.htm","Sponsor Four Olive Trees")
plist[i++]=new pmenu(j,"treesforlifemenu","treesforlife.htm","Trees For Life")
slist[i]=new Array()
j=0
slist[i][j++]=new smenu("FAQ.htm","Frequently Asked Questions")
slist[i][j++]=new smenu("FAQ.htm#zatoun","About Zatoun")
slist[i][j++]=new smenu("FAQ.htm#oil","About Olive Oil")
plist[i++]=new pmenu(j,"faqmenu","FAQ.htm","FAQ")
slist[i]=new Array()
j=0
slist[i][j++]=new smenu("articles.htm","Articles")
slist[i][j++]=new smenu("articles.htm#press","Zatoun in the Press")
slist[i][j++]=new smenu("articles.htm#harvest","Olives, Oil &amp; Harvests<br>in the News")
slist[i][j++]=new smenu("articles.htm#health","Health Benefits of Olive Oil")
plist[i++]=new pmenu(j,"articlesmenu","articles.htm","Articles")
slist[i]=new Array()
j=0
slist[i][j++]=new smenu("links.htm","Links")
slist[i][j++]=new smenu("links.htm#news","News &amp; Information")
slist[i][j++]=new smenu("links.htm#partners","Partners")
slist[i][j++]=new smenu("links.htm#music","Music &amp; Arts")
slist[i][j++]=new smenu("links.htm#photo","Photography")
slist[i][j++]=new smenu("links.htm#refs","References &amp Studies")
plist[i++]=new pmenu(j,"linksmenu","links.htm","Links")
sitecount=i

var nheadlist=new Array()
var nitemlist = new Array()
var i=0
var j=0


nitemlist[i]=new Array()
//nitemlist[i][j++]=new newsitem("NEW - Zatoun tent is now bigger!  Import Peace becomes part of Zatoun!  Since 2007, Import Peace has sold Palestinian olive oil to communities in Presbyterian Church USA.  PCUSA has taken leadership role in advocating for peace and justice in Palestine. Welcome Import Peace to Zatoun.")
//nitemlist[i][j++]=new newsitem("January 30: <em>Seven Days from a Gaza Diary,</em>","beitzatoun_7days.html"," a dramatic reading for three voices at Beit Zatoun 6 PM")
//nitemlist[i][j++]=new newsitem("January 27: Beit Zatoun in Toronto's first day of regular hours","beitzatoun_detail.html","&nbsp;")
nitemlist[i][j++]=new newsitem("Zatoun tent is now bigger! Import Peace becomes part of Zatoun!","http://zatoun.com/importpeace_zatoun.htm"," Since 2007, Import Peace has sold Palestinian olive oil throughout the Presbyterian Church USA, a leader in advocating for a just peace in Palestine. Welcome Import Peace!")
nitemlist[i][j++]=new newsitem("NEW 500mL size bottle-NEW Certified Organic.","http://zatoun.com/order_can.htm"," For the first time, Zatoun is offering certified Organic and Fair Trade olive oil from Palestine. Cost is $160 per case of 12 ($190 with shipping).")
nitemlist[i][j++]=new newsitem("SAME price since 2007","http://zatoun.com/order_can.htm"," Despite cost increases in all areas, Zatoun keeps 750mL bottles affordable. Cost is $210 per case of 12 ($240 with shipping).")
nitemlist[i][j++]=new newsitem("Za'atar (herb mix) finding lovers everywhere!","http://zatoun.com/order_can.htm"," Taste it if you have not-order a bag with your next olive oil order - only $5/bag and free shipping.")
//nitemlist[i][j++]=new newsitem("January 27: Beit Zatoun in Toronto's first day of regular hours","http://www.beitzatoun.org","&nbsp;")
//nitemlist[i][j++]=new newsitem("January 30: <em>Seven Days from a Gaza Diary,</em>","http://beitzatoun.org/cms/Misc/NewsView/10-02-05/Inaugural_Event_at_Beit_Zatoun_an_amazing_success.aspx"," a dramatic reading for three voices at Beit Zatoun")
//nitemlist[i][j++]=new newsitem("February 20: Open House at Beit Zatoun in Toronto.","http://beitzatoun.org/cms/Misc/NewsView/10-02-24/A_Warm_and_Loving_Open_House_at_Beit_Zatoun.aspx","&nbsp;")
nitemlist[i][j++]=new newsitem("Visit the new Beit Zatoun site","http://beitzatoun.org/cms/News.aspx"," for more news.")
nitemlist[i][j++]=new newsitem("Visit Beit Zatoun on Facebook ","http://www.facebook.com/BeitZatoun","and become a fan.")
//nitemlist[i][j++]=new newsitem("Join the Beit Zatoun Group on Facebook. ","http://www.facebook.com/group.php?gid=458029530354","See photos of recent events.")
//nitemlist[i][j++]=new newsitem("Zatoun at Ten Thousand Villages","http://zatoun.com/10thouvillages.html","&nbsp;")
nheadlist[i++]=new newshead(j,"What's New")

//New section added by Len Bick 2010.01.20
//Called "Coming Up"
nitemlist[i]=new Array()
j=0

nitemlist[i][j++]=new newsitem("Visit our new site at beitzatoun.org","http://beitzatoun.org/cms/Events.aspx"," for details of all upcoming events.")
//nitemlist[i][j++]=new newsitem("New Product","zaatar.htm",": <b>Za'atar</b> (traditional thyme-herb mix).")
//nitemlist[i][j++]=new newsitem("Audio","audiozatoun.htm","- <b>Zatoun: A Life Story in Four Parts</b>.")
//nitemlist[i][j++]=new newsitem("New Look","index.html"," to the web site.")
//nitemlist[i][j++]=new newsitem("January 27: Beit Zatoun in Toronto's first day of regular hours","beitzatoun_detail.html","&nbsp;")
//nitemlist[i][j++]=new newsitem("January 30: <em>Seven Days from a Gaza Diary,</em>","beitzatoun_7days.html"," a dramatic reading for three voices at Beit Zatoun 6 PM")
//nitemlist[i][j++]=new newsitem("February 20: Open House at Beit Zatoun in Toronto.","bzohouse.html"," Come celebrate our opening. More details to follow.")
nheadlist[i++]=new newshead(j,"Coming Up")
newscount=i


//"New to the Site" is commented out
//nitemlist[i]=new Array()
//j=0

//nitemlist[i][j++]=new newsitem("New Product","zaatar.htm",": <b>Za'atar</b> (traditional thyme-herb mix).")
//nitemlist[i][j++]=new newsitem("Audio","audiozatoun.htm","- <b>Zatoun: A Life Story in Four Parts</b>.")
//nitemlist[i][j++]=new newsitem("New Look","index.html"," to the web site.")
//nitemlist[i][j++]=new newsitem("Feb 1 - New additions","FAQ.htm"," to the FAQ - <b>storage and temperature</b>")
//nitemlist[i][j++]=new newsitem("Feb 1 - New articles","articles.htm"," from the Guardian, Times and JCOnline")
//nheadlist[i++]=new newshead(j,"New to the Site")
//newscount=i

function writesites () {
	document.writeln("<ul id=\"znav\" class=\"navlist\" align=\"left\" margin-left:0em; padding-left:0em;>")
	for(var k=0; k<sitecount; k++) {
		document.writeln("<li onMouseover=\"dropdownmenu(this, event, '"+plist[k].mname+"')\"><a href=\""+plist[k].murl+"\">"+plist[k].mtitle+"</a></li>")
		document.writeln("<div id=\""+plist[k].mname+"\" class=\"anylinkcss\">")
		for(var m=0;m<plist[k].scount; m++) {
				document.writeln("<a href=\""+slist[k][m].surl+"\"><div style=\"width:205px\">"+slist[k][m].stitle+"</div></a>")
		}
		document.writeln("</div>")
	}
	document.writeln("<li><a href=\"francais.htm\">Fran&ccedil;ais</a></li>")
	document.writeln("</ul>")
	document.writeln("<br />")
	document.writeln("<div class=\"noroll\">")
	//document.writeln("<a href=\"zatoun_donate.htm\"><img src=\"donate.gif\" border=0></a>")
	document.writeln("<a href=\"zatoun_donate.htm\"><img src=\"donatezatoun2.gif\" border=0></a>")
	document.writeln("<a href=\"treesforlife.htm#paypal\"><img src=\"donatetreesand.gif\" border=0></a>")
	document.writeln("</div>")
}

function writenews () {
	for(var k=0; k<newscount; k++) {
		document.writeln("<h2>"+nheadlist[k].mname+"</h2>")
		document.writeln("<ul>")
		for(var m=0;m<nheadlist[k].scount; m++) {
				document.writeln("<li><a href=\""+nitemlist[k][m].murl+"\"><b>"+nitemlist[k][m].ndate+"</b></a>"+nitemlist[k][m].mdesc+"</li>")
		}
		document.writeln("</ul>")
	}
	document.writeln("<h2><a href=\"volunteer.htm\">Volunteer</a></h2>")
	document.writeln("<p style=\"margin-left:.5em;margin-top:.2em\">")
	document.writeln("Beit Zatoun is looking for<a href=\"http://beitzatoun.org/cms/Community/Volunteer.aspx\"> volunteers and donations </a>from the GTA.")
	document.writeln("</p>")

}
			
function validate(form_id,email) {
   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   var address = document.forms[form_id].elements[email].value;
   if(reg.test(address) == false) {
      alert('Invalid Email Address');
      return false;
   }
}
