<!--
// www.psolution.co.uk script for current year for use in link to this week's services
function yearNo(){
RightNow = new Date();
var Year = RightNow.getFullYear();
return Year;}




//month scripts
function thisMonth(){
RightNow = new Date();
monthNumber = RightNow.getMonth();
var monthNames = new Array(12); // Array to hold the total days in a month
monthNames[0] = "January";
monthNames[1] = "February";
monthNames[2] = "March";
monthNames[3] = "April";
monthNames[4] = "May";
monthNames[5] = "June";
monthNames[6] = "July";
monthNames[7] = "August";
monthNames[8] = "September";
monthNames[9] = "October";
monthNames[10] = "November";
monthNames[11] = "December";
thisMonthName=monthNames[monthNumber];
return thisMonthName;}

function nextMonth(){
RightNow = new Date();
monthNumber = RightNow.getMonth();
var monthNames = new Array(12); // Array to hold the total days in a month
monthNames[0] = "January";
monthNames[1] = "February";
monthNames[2] = "March";
monthNames[3] = "April";
monthNames[4] = "May";
monthNames[5] = "June";
monthNames[6] = "July";
monthNames[7] = "August";
monthNames[8] = "September";
monthNames[9] = "October";
monthNames[10] = "November";
monthNames[11] = "December";
if (monthNumber==11) {
monthNumber=-1;
}
nextMonthName=monthNames[monthNumber+1];
return nextMonthName;}



// for use in link to this week's services
// Week of the year script - By Ada Shimar (ada@chalktv.com)
// Based on code by Duncan Kabinu, Florida Department of Agriculture.
// Modified by Italian anonimous on 19.08.2002
// Visit JavaScript Kit (http://javascriptkit.com) for this script and 400+ more
function weekNo() {
var totalDays = 0;
now = new Date();
years=now.getYear();
var days = new Array(12); // Array to hold the total days in a month
days[0] = 31;
days[2] = 31;
days[3] = 30;
days[4] = 31;
days[5] = 30;
days[6] = 31;
days[7] = 31;
days[8] = 30;
days[9] = 31;
days[10] = 30;
days[11] = 31;
 
// Check to see if this is a leap year
if (Math.round(now.getYear()/4) == now.getYear()/4) {
days[1] = 29
}else{
days[1] = 28
}
 
// If this is January no need for any fancy calculation otherwise figure out the
// total number of days to date and then determine what week
if (now.getMonth() == 0) { 
totalDays = totalDays + now.getDate();
}else{
var curMonth = now.getMonth();
for (var count = 1; count <= curMonth; count++) {
totalDays = totalDays + days[count - 1];
}
totalDays = totalDays + now.getDate();
}
// Here is the modification: considering when start the 1st week of year.
// Originally was only: var week = Math.round(totalDays/7)
// Check if browser is "Microsoft Internet Explorer" or not and apply the right var
var agt=navigator.userAgent.toLowerCase();
if ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) {
var firstday=new Date("01/01/"+String(now.getYear())).getDay();
}
else {
var firstday=new Date("01/01/"+String(1900+now.getYear())).getDay();
}
// www.psolution.co.uk adaptation for week commencing Sunday (Jewish Calendar)
var week = Math.ceil((totalDays+firstday)/7-1); return week;
}
//www.psolution.co.uk asaptation to give quarter by week
function quarterNo(){
var quarter;
var quart;
quart = Math.ceil(weekNo()/13);
if (quart==1){
quarter="1-13";
}
else if (quart==2){
quarter="14-26";
}
else if (quart==3){
quarter="27-39";
}
else {
quarter="40-52"
}
return quarter;
}


// -->



/*
 DHTML Menu version 3.3.19
 Written by Andy Woolley
 Copyright 2002 (c) Milonic Solutions. All Rights Reserved.
 Plase vist http://www.milonic.co.uk/menu or e-mail menu3@milonic.com
 You may use this menu on your web site free of charge as long as you place prominent links to http://www.milonic.co.uk/menu and
 your inform us of your intentions with your URL AND ALL copyright notices remain in place in all files including your home page
 Comercial support contracts are available on request if you cannot comply with the above rules.
 This script featured on Dynamic Drive (http://www.dynamicdrive.com)
 */

//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
//Please leave the above line intact. The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.



////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
	effect = "gradientwipe(size=1.00, wipestyle=1, motion=Forward, duration=0.5);Alpha(style=0,opacity=75);Shadow(color='#777777', Direction=135, Strength=5)"
}
else
{
	effect = "Shadow(color='#777777', Direction=135, Strength=5)" // Stop IE5.5 bug when using more than one filter
}


timegap=2000				// The time delay for menus to remain visible
followspeed=20			// Follow Scrolling speed
followrate=20			// Follow Scrolling Rate
suboffset_top=-15;		// Sub menu offset Top position 
suboffset_left=75;		// Sub menu offset Left position
closeOnClick = true
///////////////////////////////////////////////////////////////////////////////////////////////
style1=[				// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"ffffff",					// Mouse Off Font Color
"000000",				// Mouse Off Background Color
"3399ff",				// Mouse On Font Color
"000000",				// Mouse On Background Color
"000000",				// Menu Border Color 
12,						// Font Size in pixels
"normal",				// Font Style (italic or normal)
"bold",					// Font Weight (bold or normal)
"Verdana, Arial",		// Font Name
0,						// Menu Item Padding
,			// Sub Menu Image (Leave this blank if not needed)
,						// 3D Border & Separator bar
,				// 3D High Color
,				// 3D Low Color
,				// Current Page Item Font Color (leave this blank to disable)
,					// Current Page Item Background Color (leave this blank to disable)
,			// Top Bar image (Leave this blank to disable)
,				// Menu Header Font Color (Leave blank if headers are not needed)
,				// Menu Header Background Color (Leave blank if headers are not needed)
]
//////////////////////////////////////////////////////////////////////////////////////////
style2=[				// style2 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"ffffff",					// Mouse Off Font Color
"000000",				// Mouse Off Background Color
"3399ff",				// Mouse On Font Color
"000000",				// Mouse On Background Color
"ffffff",				// Menu Border Color 
12,						// Font Size in pixels
"normal",				// Font Style (italic or normal)
"bold",					// Font Weight (bold or normal)
"Verdana, Arial",		// Font Name
4,						// Menu Item Padding
,						// Sub Menu Image (Leave this blank if not needed)
,						// 3D Border & Separator bar
,						// 3D High Color
,						// 3D Low Color
,						// Current Page Item Font Color (leave this blank to disable)
,						// Current Page Item Background Color (leave this blank to disable)
,						// Top Bar image (Leave this blank to disable)
,						// Menu Header Font Color (Leave blank if headers are not needed)
,						// Menu Header Background Color (Leave blank if headers are not needed)
]
//////////////////////////////////////////////////////////////////////////////////////////


addmenu(menu=[		// This is the array that contains your menu properties and details
"mainmenu",			// Menu Name - This is needed in order for the menu to be called
71,					// Menu Top - The Top position of the menu in pixels
63,					// Menu Left - The Left position of the menu in pixels
80,					// Menu Width - Menus width in pixels
4,					// Menu Border Width 
,					// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,				// Properties Array - this is set higher up, as above
1,					// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"center",			// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,					// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,					// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, 					// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,					// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,					// Position of TOP sub image left:center:right
,					// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,					// Right To Left - Used in Hebrew for example. (1=on/0=off)
,					// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,					// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,					// Background image for menu when BGColor set to transparent
,					// Scrollable menu
,					// Reserved for future use
,"home","../home/home.htm target=contentframe",,"Back to the home page",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"diary","show-menu=diary",,"Calendar, Services and minyan rotas",1
,"community","show-menu=community",,"WPS people and communal activities ",1
,"news","show-menu=news",,"whats new at WSP",1
,"rabbi","show-menu=the rabbi",,"Rabbi Pinchas Hackenbroch",1
,"youth", "http://www.woodsideyouth.com target=_blank",,,1
//,"youth","show-menu=youth",,"activities for the young",1
,"contacts","show-menu=contacts",,"contacts, map and useful links",1
])
	addmenu(menu=["diary",
	,,130,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"Service times","../this_week/service_times_"+yearNo()+"_"+quarterNo()+".htm#"+weekNo()+" target=contentframe",,,1
      ,"Morning minyan rota","../summerminyan/minyan_rota_2006.htm target=contentframe",,,1
      ,"Evening minyan rota","../summerminyan/evening_minyan.htm target=contentframe",,,1
	])

	addmenu(menu=["youth",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"welcome","../youth/youth_welcome.htm target=contentframe",,,1
	,"quiz","../youth/quiz.htm target=contentframe",,,1
	,"games","show-menu=games",,,1
	])

	addmenu(menu=["community",
	,,130,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"Who\'s who","../directory/whoswho.htm target=contentframe",,,1
	,"Adult activities","../directory/directory.htm#adultactivities target=contentframe",,,1
	,"Children & Youth","../directory/directory.htm#youthactivities target=contentframe",,,1
	,"Bridge","../bridge/bridge.htm target=contentframe",,,1
	,"Getting your get","../get/gettingyourget.htm target=contentframe",,,1
	,"Israel Committee","../israel/israel.htm target=contentframe",,,1
	,"Ladies Guild","../directory/ladiesguild.htm target=contentframe",,,1
	,"Ladies who Learn","../ladieswholearn/ladies_who_learn.htm target=contentframe",,,1
	,"Library","../library/library.htm target=contentframe",,,1
	,"Support network","../support/support_network.htm target=contentframe",,,1
	,"Yavneh","../directory/yavneh1.htm target=contentframe",,,1
	,"Young Families","../young_families/young_families.htm target=contentframe",,,1
	])

      addmenu(menu=["the rabbi",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"about the rabbi", "../directory/whoswho.htm#rabbi target=contentframe",,,1
	])

	addmenu(menu=["news",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"What's new","../news/news.htm target=contentframe",,,1
	,"Announcements","../this_week/announcements.htm target=contentframe",,,1
	,"Sports results","../sport/footie.htm target=contentframe",,,1
	,"Useful links","../links/links.htm target=contentframe",,,1	
	])

	
	addmenu(menu=["contacts",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"Contact us","../contact/contact.htm target=contentframe",,,1
	,"Find us","../map/map.htm target=contentframe",,,1

	])


	addmenu(menu=["games",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"star wars","../games/starwars.htm target=_blank",,,1
	,"xylophone","../games/xylo.htm target=_blank",,,1
	,"alfy","http://www.alfy.co.il/index1.asp target=_blank",,,1
	])	

	addmenu(menu=["wps_directory",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,	
	,"browse","../directory/browse_directory.htm target=leftcontentframe",,,1
	,"services","show-menu=services",,,1
	,"adult activities","show-menu=adult_directory",,,1
	,"who\'s who","../directory/whoswho.htm target=contentframe",,,1
	,"children & youth","show-menu=youth_directory",,,1
	])

	addmenu(menu=["rest_of_world",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,	
	,"synagogues","show-menu=synagogues",,,1
	,"education","show-menu=education",,,1
	,"media","show-menu=media",,,1
	,"food","show-menu=schools",,,1
	,"schools","show-menu=schools",,,1
	,"get your get ","../get/gettingyourget.htm target=contentframe",,,1
	])
	addmenu(menu=["adult_directory",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"ajex","../directory/directory.htm#ajex target=leftcontentframe",,,1
	,"bridge","../bridge/bridge.htm target=contentframe",,,1
	,"day centre","../directory/directory.htm#daycentre target=leftcontentframe",,,1
	,"emunah","../directory/directory.htm#emunah target=leftcontentframe",,,1
	,"israel committee","../israel/israel.htm target=contentframe",,,1
	,"jacs","../directory/directory.htm#jacs target=leftcontentframe",,,1
	,"keep fit","../directory/directory.htm#keepfit target=leftcontentframe",,,1
	,"ladies' guild","../directory/ladiesguild.htm target=contentframe",,,1
	,"ladies who learn","../ladieswholearn/ladieswholearn.htm target=contentframe",,,1
	,"league of jewish women","../directory/directory.htm#leagueofjewishwomen target=leftcontentframe",,,1
	,"library","../library/library.htm target=contentframe",,,1
	,"support network","../support/support_network.htm target=contentframe",,,1
	,"table tennis","../directory/directory.htm#tabletennis target=leftcontentframe",,,1		
	,"ujia","../directory/directory.htm#ujia target=leftcontentframe",,,1
	,"Yavneh","../directory/yavneh1.htm target=contentframe",,,1
	,"young families","../young_families/young_families.htm target=contentframe",,,1		
	])
	addmenu(menu=["youth_directory",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"bnei akiva","../directory/directory.htm#bneiakiva target=leftcontentframe",,,1
	,"brownies","../directory/directory.htm#brownies target=leftcontentframe",,,1
	,"cubs","../directory/directory.htm#cubs target=leftcontentframe",,,1
	,"guides","../directory/directory.htm#guides target=leftcontentframe",,,1
	,"hebrew classes","../directory/directory.htm#hebrewclasses target=leftcontentframe",,,1
	,"parent & toddler group","../directory/directory.htm#parentandtoddler target=leftcontentframe",,,1
	,"rangers","../directory/directory.htm#rangers target=leftcontentframe",,,1
	,"scouts","../directory/directory.htm#scouts target=leftcontentframe",,,1
	,"yavneh nursery","../directory/directory.htm#yavneh target=leftcontentframe",,,1
	,"youth activities","../directory/directory.htm#communitycentre target=leftcontentframe",,,1
	])	
	addmenu(menu=["synagogues",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"Barnet","http://www.barnetsynagogue.org.uk target=_blank",,,1
	,"Belmont","http://www.brijnet.org/belmont target=_blank",,,1
	,"Bevis Marks","http://www.aldgate.freeserve.co.uk/interests/religion/bevis.htm target=_blank",,,1,
	"Borehamwood & Elstree","http://www.bwoodshul.demon.co.uk target=_blank",,,1
	,"Central","http://www.brijnet.org/centralsyn target=_blank",,,1
	,"Chigwell & Hainult","http://www.chigshul.net target=_blank",,,1
	,"Clayhall", "http://www.clayhallsynagogue.org.uk target=_blank",,,1
	,"Cockfosters & Southgate","http://www.ourshul.co.uk target=_blank",,,1
	,"Edgware","http://www.edgwaresynagogue.org target=_blank",,,1
	,"Hampstead Garden Suburb","http://www.hgss.org.uk target=_blank",,,1
	,"Ilford","http://www.ilfordsynagogue.co.uk target=_blank",,,1
	,"Kenton","http://www.kentonsynagogue.org target=_blank",,,1
	,"Kingsbury","http://www.brijnet.org/kingsyn target=_blank",,,1
	,"Mill Hill","http://www.shul.co.uk target=_blank",,,1
	,"New West End","http://www.newwestend.org.uk target=_blank",,,1
	,"Pinner","http://www.pinnersynagogue.com target=_blank",,,1
	,"Potters Bar","http://www.pottersbarshul.org.uk target=_blank",,,1
	,"Radlett","http://www.radlett-us.org target=_blank",,,1
	,"St John's Wood","http://www.stjohnswoodsynagogue.com target=_blank",,,1
	,"Staines","http://www.btinternet.com/~staines.synagogue target=_blank",,,1
	])	
	addmenu(menu=["education",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"torah.org","http://www.torah.org target=_blank",,,1
	,"jewish museum","http://www.jewishmuseum.org.uk target=_blank",,,1
	,"jewish world review","http://www.jewishworldreview.com target=_blank",,,1
	,"funland","http://www.bus.ualberta.ca/yreshef/funland/funland.html target=_blank",,,1
	])
	addmenu(menu=["media",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"jerusalem post","http://www.jpost.com target=_blank",,,1
	,"ha\'aretz","http://www.haaretzdaily.com target=_blank",,,1
	,"jewish chronicle","http://www.thejc.com target=_blank",,,1
	,"london jewish news","http://www.ljn.co.uk target=_blank",,,1
	,"jewish telegraph","http://www.jewishtelegraph.com target=_blank",,,1
	])
	addmenu(menu=["schools",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	])
	addmenu(menu=["food",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"London Beth Din","http://www.kosher.org.uk target=_blank",,,1
	])

	addmenu(menu=["sermons",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"last shabbat\'s", "../rabbi/sermons/last_shabbat.htm target=contentframe",,,1
	,"previous", "../rabbi/sermons/previous_sermons.htm target=contentframe",,,1
	])
		addmenu(menu=["halachot",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"today\'s", "../rabbi/halachot/todays_halacha.htm target=contentframe",,,1
	,"previous", "../rabbi/halachot/previous_halachot.htm target=contentframe",,,1
	])
		addmenu(menu=["sidrah",
	,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"this week\'s", "../rabbi/sidrot/current_sidrah.htm target=contentframe",,,1
	,"previous", "../rabbi/sidrot/previous_sidrot.htm target=contentframe",,,1
	])


dumpmenus()