// START CLOCK source
/*
   Milonic DHTML Menu Menu Clock Module  menuclock.js version 1.0 December 5th 2004
   This module is only compatible with the Milonic DHTML Menu version 5.16 or higher

   Copyright 2004 (c) Milonic Solutions Limited. All Rights Reserved.
   This is a commercial software product, please visit http://www.milonic.com/ for more information.
*/

// this module must be placed before the data file in order to configure itself first.
// There are elements inside the datafile that rely on this module being in place before it can execute.


// You just need to change the month and day names to suit your language, please keep the order the same otherwise your dates will be wrong.

monthNames=new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" )
dayNames=new Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat")

function getMilonicDate()
{
	var today = new Date();
	var _day=today.getDate();
	var _dayNum=today.getDay();
	var _month=today.getMonth();
	var _year=today.getFullYear();
	_time=prefixZero(today.getHours())+":"+prefixZero(today.getMinutes())+":"+prefixZero(today.getSeconds())
	// return dayNames[_dayNum]+" "+_day+getNumberSuffix(_day)+" " + monthNames[_month] + " " + _year + "<BR><b>" + _time+"</b>"
	return "<b>" + _time+"</b>"
}

function getMilonicDay()
{
	var today = new Date();
	var _day=today.getDate();
	var _dayNum=today.getDay();
	var _month=today.getMonth();
	var _year=today.getFullYear();
	return dayNames[_dayNum]+" "+_day+getNumberSuffix(_day)+" " + monthNames[_month] + " " + _year + " "
	// return "<b>" + _time+"</b>"
}

function getItemByType(_type)
{
	for(_a=0;_a<_mi.length;_a++)
	{
		if(_mi[_a][34]&&(_mi[_a][34]==_type))
		{
			return _a
		}	
	}	
	return -1
}


function getNumberSuffix(_num)
{
	if(_num>=10 && _num<13)return "th"
	_num = _num.toString()
	_endNum=_num.substr(_num.length-1,1)
	_numSuf="th"
	if(_endNum=="1")_numSuf="st"
	if(_endNum=="2")_numSuf="nd"
	if(_endNum=="3")_numSuf="rd"
	return _numSuf
}

function prefixZero(_num)
{
	_num=_num.toString()
	if(_num.length==1)_num= "0"+_num
	return _num
}

function updateMenuClock()
{
	clockItem=getItemByType("clock")
	if(clockItem>-1)
	{
		_gm=gmobj("lnk"+clockItem)
		if(_gm)
		{
			_gm.innerHTML=getMilonicDate()
			_fixMenu(0)
		}
	}
}
setInterval("updateMenuClock()",1000);

// END CLOCK source
//-------------------------------------------------------------------------------------------------------

// START MENU source

fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;




with(menuStyle=new mm_style()){
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="70%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#DCE9F0";
offcolor="#515151";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=5;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#2D729D";
separatorsize=1;
subimage="Downarrow4_orange_11x10.gif";
subimagepadding=2;
}

with(menuStyle2=new mm_style()){
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="80%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#DCE9F0";
offcolor="#515151";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=5;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#2D729D";
separatorsize=1;
subimage="Downarrow4_orange_11x10.gif";
subimagepadding=2;
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
followscroll=1;
left=10;
orientation="horizontal";
style=menuStyle;
top=5;
aI("status=Back To Home Page;text=Home;url=main.html;");
aI("showmenu=menu_Club;text=De Club;");
aI("showmenu=menu_Waterwerken;text=Waterwerken;");
aI("showmenu=menu_ww_foto;text=Foto's Waterwerken;");
//aI("showmenu=menu_Activiteiten;text=Activiteiten;");
aI("text=Activiteiten;url=google_agenda.html;");
// aI("showmenu=menu_Kalender;text=Kalender;");
aI("text=Club Kalender;url=google_kalender.html;");
aI("showmenu=menu_foto;text=Club Foto's;");
//aI("showmenu=menu_Filmpjes;text=Fimpjes;");
aI("text=In Memoriam;url=in_memoriam.html;");
// aI("showmenu=menu_day;text="+getMilonicDate()+";align=center;type=clock;")
}


with(milonic=new menuname("menu_foto")){
overflow="scroll";
style=menuStyle;
aI("showmenu=menu_foto2008;text=Foto's van 2008;");
aI("showmenu=menu_foto2009;text=Foto's van 2009;");
aI("showmenu=menu_foto2010;text=Foto's van 2010;");
}


with(milonic=new menuname("menu_Club")){
overflow="scroll";
style=menuStyle;
aI("text=De Club;url=club_De_Club.html;")
aI("text=Huisregelement;url=club_huisregelement.html;")
aI("text=De Newfoundlander;url=club_De_Newfoundlander.html;")
aI("text=Wikipedia - Newfoundland (dog);target=_blanc;url=http://en.wikipedia.org/wiki/Newfoundland_(dog);")
aI("text=Sponsors;url=club_sponsers.html;")
aI("text=Oprichters;url=club_oprichters.html;")
aI("text=Herplaatsing;url=club_herplaatsing.html;")
aI("text=LINKS;url=club_links.html;")
}

with(milonic=new menuname("menu_Waterwerken")){
overflow="scroll";
style=menuStyle;
aI("text=Info;url=water_info.html;")
aI("text=Wegbeschrijving;url=water_wegbeschrijving.html;")
aI("text=Google Maps - link;target=_blanc;url=http://maps.google.be/maps?f=q&source=s_q&hl=nl&geocode=&q=hazewinkel&sll=50.805935,4.432983&sspn=3.756114,11.590576&ie=UTF8&hq=&hnear=Hazewinkel&ll=51.067021,4.39054&spn=0.01459,0.061626&z=15;")
aI("text=Kalender;url=water_kalender.html;")
}

with(milonic=new menuname("menu_ww_foto")){
overflow="scroll";
style=menuStyle;
aI("showmenu=menu_ww2008;text=Waterwerken 2008;");
aI("showmenu=menu_ww2009;text=Waterwerken 2009;");
aI("showmenu=menu_ww2010;text=Waterwerken 2010;");
}

with(milonic=new menuname("menu_ww2008")){
overflow="scroll";
style=menuStyle;
aI("text=Foto's 27 april 2008;target=_blanc;url=fotos/waterwerken/27 april 2008/album/index.html;")
}

with(milonic=new menuname("menu_ww2009")){
overflow="scroll";
style=menuStyle;
aI("text=2009-05-17 Waterwerken;target=_blanc;url=fotos/waterwerken/2009/2009-05-17 Waterwerken/album/index.html;")
aI("text=2009-06-14 Waterwerken;target=_blanc;url=fotos/waterwerken/2009/2009-06-14 Waterwerken/album/index.html;")
aI("text=2009-08-09 Waterwerken;target=_blanc;url=fotos/waterwerken/2009/2009-08-09 Waterwerken/album/index.html;")
aI("text=2009-09-06 Waterwerken;target=_blanc;url=fotos/waterwerken/2009/2009-09-06 Waterwerken/album/index.html;")
aI("text=2009-09-20 Groepsovergang;target=_blanc;url=fotos/waterwerken/2009/2009-09-20 Groepsovergang/album/index.html;")
aI("text=2009-10-18 Groepskampioenschap;target=_blanc;url=fotos/waterwerken/2009/2009-10-18 Groepskampioenschap/album/index.html;")
}


with(milonic=new menuname("menu_Activiteiten")){
style=menuStyle;
aI("text='newfclub' Kalender;url=google_kalender.html;");
aI("text=;url=;");
aI("text=;url=;");
}

with(milonic=new menuname("menu_Kalender")){
style=menuStyle;
aI("text='newfclub' Kalender;url=google_kalender.html;");
}

with(milonic=new menuname("menu_foto2008")){
style=menuStyle;
aI("text=2008-01-13 Wandeling Lillo ;target=_blanc;url=fotos/Wandeling Lillo 13 Januari 2008/album/index.html;");
aI("text=2008-01-27 Wandeling Beerzel ;target=_blanc;url=fotos/wandeling Beerzel 27-01-08/album/index.html;");
aI("text=2008-02-17 Valentijnswandeling ;target=_blanc;url=fotos/valentijnswandeling 17-02-08/album/index.html;");
aI("text=2008-02-24 Wandeling Werchter ;target=_blanc;url=fotos/wandeling werchter 2008/album/index.html;");
aI("text=2008-03-16 Wandeling Den Tijs ;target=_blanc;url=fotos/wandeling 16 maart 08 den tijs/album/index.html;");
}

with(milonic=new menuname("menu_foto2009")){
style=menuStyle;
aI("text=2009-02-22 Marleen Erwin;target=_blanc;url=fotos/2009-02-22 Marleen Erwin/album/index.html;");
aI("text=2009-05-24 BBQ;target=_blanc;url=fotos/2009-05-24 BBQ/album/index.html;");
aI("text=2009-10-25 Weekend aan Zee;target=_blanc;url=fotos/2009-10-25 Weekend aan Zee/album/index.html;");
aI("text=2009-11-10 Scherpenheuvel wijding ;target=_blanc;url=fotos/2009-11-10 Scherpenheuvel wijding/album/index.html;");
}

with(milonic=new menuname("menu_foto2010")){
style=menuStyle;
aI("text=2010-01-24 Roeselaere;target=_blanc;url=fotos/2010-01-24 Roeselaere/album/index.html;");
aI("text=2010-02-21 Peerdsbos;target=_blanc;url=fotos/2010-02-21 Peerdsbos/album/index.html;");
aI("text=2010-03-14 Werchter;target=_blanc;url=fotos/2010-03-14 Werchter/album/index.html;");
}


with(milonic=new menuname("menu_Filmpjes")){
style=menuStyle;
aI("text=;url=;");
}

with(milonic=new menuname("menu_day")){
style=menuStyle2;
aI("text="+getMilonicDay()+";align=center;type=clock;");
}

drawMenus();

