function OpenWin(url,windowname,scrollbars,width,height)
{
 if (!url)
 {
 alert ("Please specify a URL to open");
 return false;
 }
 if (!windowname) windowname = 'newwin';
 if (!width) width = 320;
 if (!height) height = 240;
  var properties = "menubar=no,toolbars=no,directory=no,scrolling=no,status=yes,scrollbars="+scrollbars+",resizable=no,maximize=yes,width="+width+",height="+height;
  var newWin = window.open(url,windowname,properties);
  newWin.focus();
}

_menuCloseDelay=400           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // 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



with(menuStyle=new mm_style()){
onbgcolor="#6672A6";
oncolor="#FFFFFF";
offbgcolor="#41416F";
offcolor="#FFFFFF";
bordercolor="#000000";
borderstyle="solid";
borderwidth=1;
separatorcolor="#000000";
separatorsize="1";
padding=3;
fontsize="70%";
fontstyle="normal";
fontfamily="Verdana";
pagecolor="#E7DE06";
pagebgcolor="#31647B"; //Changes the bgcolor of the link when we are on curentpage
headercolor="#ffffff";
headerbgcolor="#ffffff";
subimage="";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#000000', Direction=135, Strength=3)";
outfilter="randomdissolve(duration=0.3)";
}


with(milonic=new menuname("Samples")){
style=menuStyle;
overflow="scroll";
aI("text=Horizontal Navigation Bar;url=menusample.php?sampleid=1;");
}

with(milonic=new menuname("Milonic")){
style=menuStyle;
orientation="vertical";
aI("text=Department Function;url=hse.htm;");
aI("text=Safety Excellence Certificate;url=hse_cert.htm;");
aI("text=Corporate Policy;url=hse_corporate.htm;");
}
with(milonic1=new menuname("Milonic1")){
style=menuStyle;
orientation="vertical";
aI("text=Total Crew Management - Oilfield;url=services.htm;");
aI("text=Total Crew Management - Marine;url=services_marine.htm;");
aI("text=Representation;url=services_represent.htm;");
aI("text=Engineering and Maintenance;url=services_eng.htm;");
aI("text=Ship Management;url=services_ship.htm;");
}
with(milonic2=new menuname("Milonic2")){
style=menuStyle;
orientation="vertical";
aI("text=Rig Information;url=#;");
aI("text=Operation schedules;url=#;");
}
with(milonic3=new menuname("Milonic3")){
style=menuStyle;
orientation="vertical";
aI("text=Forms for applicants;url=#;");
aI("text=jobs available and corresponding profile;url=#;");
aI("text=How to apply:;url=#;");
}
drawMenus();