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;



//style ของ main menu
with(menuStyle=new mm_style()){
styleid=1;
fontfamily="ms sans serif";
fontsize="8pt";
fontweight="bold";
headerbgcolor="#ffffff";
headercolor="#000000";
offcolor="#ffffff";
oncolor="#000000";
outfilter="fade(duration=0.5)";
pagecolor="black";
rawcss="padding-top:4px;padding-bottom:1px";
separatorcolor="#FFFFFF";
separatorheight=16;
separatorsize=1;
}


//style ของ sub menu
with(submenuStyle=new mm_style()){
bordercolor="#CDCDCD";
borderwidth=1;
//fontfamily="Verdana, Tahoma, Arial";
fontfamily="ms sans serif";
fontsize="8pt";
fontweight="normal";
headercolor="#000000";
offbgcolor="#E9E9E9";
offcolor="#000000";
onbgcolor="#ffffff";
oncolor="#747A75";
outfilter="fade(duration=0.5)";
padding=5;
pagecolor="black";
onsubimage="images/white_13x13_tb.gif";
subimage="images/grey_13x13_tb.gif";
image="images/9x6_rightbend_grey.gif";
imagepadding=4;
subimagepadding=8;
}

with(tcl=new menuname("Main Menu")){
alwaysvisible=1;
itemheight=21;
itemwidth=132;
left=2;
orientation="horizontal";
style=menuStyle;
top=100;
aI("align=center;bgimage=images/itemblue.gif;overbgimage=images/itemyellow_on.gif;status=TCL - Home;text=HOME;url=http://www.tcllab.org;");
aI("align=center;bgimage=images/itemblue.gif;overbgimage=images/itemorange_on.gif;showmenu=Research;text=RESEARCH;");
aI("align=center;bgimage=images/itemblue.gif;overbgimage=images/itembrown_on.gif;showmenu=Events;text=EVENTS;");
aI("align=center;bgimage=images/itemblue.gif;overbgimage=images/itemcoral_on.gif;showmenu=Announcement;text=ANNOUNCEMENT;");
aI("align=center;bgimage=images/itemblue.gif;overbgimage=images/itemviolet_on.gif;showmenu=Links;text=LINKS;");
aI("align=center;bgimage=images/itemblue.gif;overbgimage=images/itemgreen_on.gif;text=CONTACT TCL;url=modules.php?name=etc&file=contact");

}

with(milonic=new menuname("Research")){
itemheight=24;
itemwidth=130;
style=submenuStyle;
aI("status=Scope of Research in TCL;text=Scope;url=modules.php?name=research&file=scope;");
aI("status=Milestone;text=Milestone;url=modules.php?name=research&file=milestone;");
aI("showmenu=Services;status=There are services of TCL;text=Services;");
}

with(milonic=new menuname("Events")){
itemheight=24;
itemwidth=130;
style=submenuStyle;
aI("status=ADD-5 2010;text=ADD-5 2010;url=http://203.144.225.124/add/?action=add5;");
aI("status=ALRS 2009;text=ALRS 2009;url=http://www.tcllab.org/alrs/;");
aI("status=ADD-4 2009;text=ADD-4 2009;url=http://203.144.225.124/add/?action=add4;");
aI("status=ADD-3 2007;text=ADD-3 2007;url=http://203.144.225.124/add/?action=add3;");
aI("status=ADD-2 2007;text=ADD-2 2007;url=http://203.144.225.124/add/?action=add2;");
aI("status=ADD-1 2006;text=ADD-1 2006;url=http://203.144.225.124/add/?action=add1;");
aI("status=KICSS 2006;text=KICSS 2006;url=http://kind.siit.tu.ac.th/kicss2006/;target=_blank");
aI("status=MT SUMMIT X - 2005 Phuket Thailand;text=MT SUMMIT X 2005;url=http://www.tcllab.org/Pages/mtsummit.html;target=_blank;");
aI("status=The 4th Workshop on Asian Language Resources;text=ALR-4 2004;url=modules.php?name=events&file=alr-4;");
aI("status=TCL Annual Research Report-2003;text=TCL-1 2003;url=modules.php?name=events&file=tcl-1;");
aI("status=Asian Document Style Information Interchange Symposium 2nd;text=DocSII-2 2003;url=modules.php?name=events&file=docsii-2;");
}

with(milonic=new menuname("Announcement")){
itemheight=24;
itemwidth=130;
style=submenuStyle;
aI("status=TCL's Job Oppotunity;text=Job Opportunity;url=modules.php?name=announcement&file=job;");

}

with(milonic=new menuname("Links")){
itemheight=24;
itemwidth=130;
style=submenuStyle;

aI("text=NICT Japan;url=http://www.nict.go.jp/overview/index-J.html;target=_blank");
aI("text=NICT Asia Research Center;url=http://www.nict-asia.org/;target=_blank");
aI("text=WCL, NICT Singapore;url=http://www2.nict.go.jp/mt/b188/e/top/top.html;target=_blank");
aI("text=LINKS, NECTEC Thailand;url=http://www.links.nectec.or.th;target=_blank");
aI("text=AFNLP;url=http://www.afnlp.org/;target=_blank");
aI("text=AAMT;url=http://www.aamt.info/;target=_blank");
aI("text=The Rosetta Project;url=http://64.81.54.21:8080/live/;target=_blank");
aI("text=Language Observatory;url=http://www.language-observatory.org;target=_blank");
aI("text=TOSF.org;url=http://www.tosf.org;target=_blank");
// use sub of sub menu
//aI("showmenu=Anti Spam;status=Anti Spam Solutions, as used by Milonic;text=Anti Spam;");
}

//sub of sub menu
with(milonic=new menuname("Services")){
itemheight=24;
itemwidth=130;
style=submenuStyle;
aI("status=Web language engineering for open collaborative archiving.;text=WLE-OCA;url=http://www.tcllab.org/weblang");
aI("status=Knowledge Unifying Initiator.;text=KUI;url=modules.php?name=research&file=kui;");
aI("status=Automatic Language Identifier.;text=Language ID;url=modules.php?name=research&file=langid;");
aI("status=Multi-Lingual Search Engine.;text=ML Search;url=modules.php?name=research&file=mlsearch;");
aI("status=TCL's Computational Lexicon;text=TCL's Lexicon;url=modules.php?name=research&file=tcllex;");
aI("status=Electronic Form and Document Exchange Service.;text=E-Form;url=modules.php?name=research&file=eform");
aI("status=Digital Library System for Asian Languages.;text=Digital Library;url=modules.php?name=research&file=digitallib;");
aI("status=Intelligent Name Card Management System.;text=INS;url=modules.php?name=research&file=ins;");
}


drawMenus();

