

Ruth
Code: Select all
/////////////////////////The first 8 are explained in the menu_data.js
_menuCloseDelay = 500;
_menuOpenDelay = 150;
_followSpeed = 5;
_followRate = 50;
_subOffsetTop = 1;
_subOffsetLeft = -1;
_scrollAmount = 3;
_scrollDelay = 20;
/////////////////////////////////This is the style for the MAIN menu *
with(XPMainTopStyle=new mm_style()){
onbgcolor = "#FFFFFF";
oncolor = "#FF0033";
offbgcolor = "#6699FF";
offcolor = "#FFFFFF";
headercolor = "#FFFFFF";
headerbgcolor = "#6699FF";
bordercolor = "#FFFFFF";
borderstyle = "solid";
borderwidth = 1;
separatorcolor = "#FFFFFF";
separatorsize = "1";
padding = 3;
fontsize = "95%";
fontfamily = "Tahoma,Arial,Verdana";
subimage = "http://www.mercuryexposure.org/template/main/images/xarrowdn.gif";
subimagepadding = "5";
subimageposition = "left";
onsubimage = "http://www.mercuryexposure.org/template/main/images/xarrowdnon.gif";
pagecolor = "#FF0033";
pagebgcolor = "#FFFFFF";
}
/////////////////////////////////////This is the style for submenus **
with(XPTopStyle=new mm_style()){
onbgcolor = "transparent";
oncolor = "#FF0033";
offbgcolor = "transparent";
offcolor = "#6699FF";
headercolor = "#FFFFFF";
headerbgcolor = "#6699FF";
bordercolor = "#777777";
borderstyle = "solid";
borderwidth = 1;
separatorcolor = "#EEEEEE";
separatorpadding = "1";
separatorwidth = "100%";
padding = 3;
high3dcolor = "#FFFFFF";
low3dcolor = "#002266";
subimage = "http://www.mercuryexposure.org/template/main/images/xarrow.gif";
subimagepadding = "3";
padding = 3;
fontsize = "95%";
fontfamily = "Tahoma,Arial,Verdana";
image = "http://www.mercuryexposure.org/template/main/images/xpblank.gif";
pagecolor = "#FF0033";
pagebgcolor = "#FFFFFF";
overfilter = "Fade(duration=0.2);Shadow(color='#777777', Direction=135, Strength = 5)";
outfilter = "randomdissolve(duration=0.3)";
}
///////////////////////////////This is the MAIN MENU*
////////////////////////////////Notice I changed the names ie TOP MENU and style, this is because I have 2 menus on one page, and need to have different names on each.
with(milonic=new menuname("TOP MENU")){
style=XPMainTopStyle;
top=50;
left=0;
itemheight=20;
alwaysvisible=1;
orientation="horizontal";
////////////////////////Everything between aI("..............."); is a menu item.
aI("itemwidth=20;image=http://www.mercuryexposure.org/template/main/images/xpixel.gif;alt=Skip menu;type=header;separatorcolor=#6699FF;url='#top';");
aI("itemwidth=84;text= Home Page;url=?m=show_doc&pid=1;title=Home page;");
aI("itemwidth=90;text=About Us;showmenu=organization;title=Mercury Exposure;");
aI("itemwidth=90;text=Experience;showmenu=experience;title=Experience;");
aI("itemwidth=90;text=Research;showmenu=research;title=Research;");
aI("itemwidth=90;text=Resources;showmenu=resources;title=Resources;");
aI("itemwidth=90;text=Legislation;showmenu=legislation;separatorcolor=#6699FF;title=Legislation;");
aI("text= ;itemwidth=100%;type=header;");
}
//////////////////Below are the submenus, scroll adds a scrollbar onto a long menu item.
with(milonic=new menuname("organization")){
style=XPTopStyle;
bgimage="http://www.mercuryexposure.org/template/main/images/xwinxp.gif";
overflow="scroll";
itemwidth=90;
aI("text=Organization;url=http://www.mercuryexposure.org/index.php?m=show_doc&pid=3;title=Organization;overimage=/template/main/images/xblank.gif;");
aI("text=Policy and disclaimer;url=http://www.mercuryexposure.org/index.php?m=show_doc&pid=7;title=Policy and disclaimer;overimage=/template/main/images/xblank.gif;");
aI("text=Support;url=http://www.mercuryexposure.org/index.php?m=show_doc&pid=43;title=Support;overimage=/template/main/images/xblank.gif;");
aI("text=Donors;url=http://www.mercuryexposure.org/index.php?m=show_doc&pid=8;title=Donors;overimage=/template/main/images/xblank.gif;");
aI("text=Sponsors;url=http://www.mercuryexposure.org/index.php?m=show_doc&pid=10;title=Sponsors;overimage=/template/main/images/xblank.gif;");
aI("text=Volunteers;url=http://mercuryexposure.org/index.php?m=show_doc&pid=27;title=Volunteers;overimage=/template/main/images/xblank.gif;");
aI("text=Canary Production;url=http://www.mercuryexposure.org/index.php?m=show_doc&pid=30;title=Canary Production;overimage=/template/main/images/xblank.gif;");
aI("text=Guest Book;url=http://www.mercuryexposure.org/guestbook.php;title=Guest Book;overimage=/template/main/images/xblank.gif;");
aI("text=Send email;url=mailto:help@mercuryexposure.org?Subject=Mercury%20Exposure%20Website;title=Send email;overimage=/template/main/images/xblank.gif;");
}
with(milonic=new menuname("experience")){
style=XPTopStyle;
bgimage="http://www.mercuryexposure.org/template/main/images/xwinxp.gif";
itemwidth=90;
aI("text=Autism;url=http://www.mercuryexposure.org/autism.php;title=Autism;overimage=/template/main/images/xblank.gif;");
aI("text=Dentistry;url=http://www.mercuryexposure.org/index.php?m=show_doc&pid=41;title=Dentistry;overimage=/template/main/images/xblank.gif;");
aI("text=Health;url=http://www.mercuryexposure.org/index.php?m=show_doc&pid=42;title=Health;overimage=/template/main/images/xblank.gif;");
aI("text=Personal Story;url=http://www.mercuryexposure.org/experience.php;title=Personal Story;overimage=/template/main/images/xblank.gif;");
}
with(milonic=new menuname("research")){
style=XPTopStyle;
bgimage="http://www.mercuryexposure.org/template/main/images/xwinxp.gif";
itemwidth=90;
aI("text=History;url=http://www.mercuryexposure.org/history.php;title=History;overimage=/template/main/images/xblank.gif;");
aI("text=Library;url=http://www.mercuryexposure.org/library.php;title=Library;overimage=/template/main/images/xblank.gif;");
aI("text=News;url=http://www.mercuryexposure.org/news.php;title=News;overimage=/template/main/images/xblank.gif;");
aI("text=Science;url=http://www.mercuryexposure.org/science.php;title=Science;overimage=/template/main/images/xblank.gif;");
aI("text=Source;url=http://www.mercuryexposure.org/index.php?m=show_doc&pid=29;title=Source;overimage=/template/main/images/xblank.gif;");
aI("text=Symptoms;url=http://www.mercuryexposure.org/symptoms.php;title=Symptoms;overimage=/template/main/images/xblank.gif;");
}
with(milonic=new menuname("resources")){
style=XPTopStyle;
bgimage="http://www.mercuryexposure.org/template/main/images/xwinxp.gif";
itemwidth=90;
aI("text=Dentists;url=http://www.mercuryexposure.org/dentists.php;title=Dentists;overimage=/template/main/images/xblank.gif;");
aI("text=Doctors;url=http://www.mercuryexposure.org/doctors.php;title=Doctors;overimage=/template/main/images/xblank.gif;");
aI("text=Diagnostics;url=http://www.mercuryexposure.org/diagnostics;title=Diagnostics;overimage=/template/main/images/xblank.gif;");
aI("text=Lawyers;url=http://www.mercuryexposure.org/lawyers.php;title=Lawyers;overimage=/template/main/images/xblank.gif;");
aI("text=Organizations;url=http://www.mercuryexposure.org/organizations.php;title=Organizations;overimage=/template/main/images/xblank.gif;");
aI("text=Products;url=http://www.mercuryexposure.org/products.php;title=Products;overimage=/template/main/images/xblank.gif;");
}
with(milonic=new menuname("legislation")){
style=XPTopStyle;
bgimage="http://www.mercuryexposure.org/template/main/images/xwinxp.gif";
itemwidth=90;
aI("text=Global Policy;url=http://www.mercuryexposure.org/globalpolicy.php;title=Global Policy;overimage=/template/main/images/xblank.gif;");
aI("text=US Policy;url=http://www.mercuryexposure.org/index.php?m=show_doc&pid=28;title=US Policy;overimage=/template/main/images/xblank.gif;");
aI("text=Letters;url=http://www.mercuryexposure.org/letters.php;title=Letters;overimage=/template/main/images/xblank.gif;");
}
drawMenus();