_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=0              // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=40                // Follow scrolling Rate
_subOffsetTop=10              // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x

/* Style properties and their funtions 
onbgcolor - colour of background when hovering over item on main menu
offbgcolor - colour of background when not active 
oncolor - colour of text when hovering over item on main menu
offcolor - colour of text when not active
*/


function openPopup(url)
{
  window.open(url,'displayWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=300,height=350');
}

function openWindow(url)
{
  window.open(url);
}

function openWindowInLangauge(languageCode)
{
  window.open('http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=en_' + languageCode + '&trurl=' + escape(window.location));
}


// Style attributes of main menu Bar name - menuStyle
with(menuStyle=new mm_style()){
onbgcolor="#000000";
oncolor="#FFFFFF";        
offbgcolor="#666666";
offcolor="#FFFFFF"; 
separatorcolor="#666666";
separatorsize="3";
padding="5";
fontfamily="Arial, Helvetica, sans-serif";  
fontsize="10pt";             
fontstyle="normal";           
fontweight="bold";
} 

//Style attributes of sub-menu block name - submenuStyle
with(submenuStyle=new mm_style()){
onbgcolor="#000000";
oncolor="#FFFFFF";
offbgcolor="#666666";
offcolor="#FFFFFF";
padding="5";
fontfamily="Arial, Helvetica, sans-serif";
fontsize="10pt";
fontstyle="normal";
fontweight="bold";
overfilter="Fade(duration=0.2);Alpha(opacity=96);Shadow(color='#777777', Direction=135, Strength=10)";
}

//links that appear in main menu bar
with(milonic=new menuname("Main Menu")){
style=menuStyle;
alwaysvisible=1;
orientation="horizontal";
position="relative";
menuwidth="100%";
menualign="centre";
alwaysvisible=1;
aI("itemwidth=20%;text=HOME;url=http://www.kiwifords.co.nz/;");
aI("itemwidth=20%;text=PROJECTS;showmenu=projects;");
aI("itemwidth=20%;text=ABOUT&nbsp;US;url=/aboutus.html");
aI("itemwidth=20%;text=LINKS;url=/links.html");
//aI("itemwidth=15%;text=EVENTS;showmenu=events;");
aI("itemwidth=20%;text=CONTACT&nbsp;US;url=/contactus.html");
}

//Links that appear in submenu
with(milonic=new menuname("projects")){
style=submenuStyle;
overflow="scroll";
aI("text=1957&nbsp;THUNDERBIRD;;url=/tbird.html;");
aI("text=1959&nbsp;MERCURY;url=/merc.html;");
aI("text=1965&nbsp;MUSTANG;url=/mustang.html;");
aI("text=1960&nbsp;STARLINER;url=/starliner.html;");
}

//Links that appear in submenu
//with(milonic=new menuname("stangs")){
//style=submenuStyle;
//overflow="scroll";
//aI("text=Notchback;url=/notchback.htm"); 
//aI("text=Fastback;url=/fastback.htm"); 
//}

with(milonic=new menuname("events")){
style=submenuStyle;
overflow="scroll";
//aI("text=Mustang&nbsp;Convention;url=/convention.htm");
aI("text=SEMA&nbsp;2009;url=/sema.html");
//aI("text=Christmas&nbsp;Roadtrip;url=/roadtrip.htm");
//aI("text=art&nbsp;exhibition&nbsp;2008;url=/events/artexh.html");
}

drawMenus();

