// JavaScript Document

// Global Constants
webfxMenuBarIndent              = 20;
webfxMenuUseHover = true;
webfxMenuImagePath = "/scripts/xmenus/";
webfxMenuHideTime				= 200;
webfxMenuShowTime				= 250;

var rootPath = "http://www.carversonline.com";

// CONSTRUCTOR PARAMETERS
// new webfxMenuItem(sText, sHref, sToolTip, oSubMenu)
// new webfxMenuButton(sText, sHref, sToolTip, oSubMenu)

// TOP MENU BAR FOR CARVERSONLINE MAIN PAGES

var Home = new webfxMenu;
	Home.add(new webfxMenuItem("Home", rootPath + "/index.php", "Home Page"));
	Home.add(new webfxMenuItem("Contact Us", rootPath + "/contact.php", "Contact Us"));
	Home.add(new webfxMenuItem("Sign Our Guestbook", rootPath + "/coppermine/guestbook.php", "Sign Our Guestbook"));
	Home.add(new webfxMenuItem("Subscribe to News", rootPath + "/subscribe/index.php", "Subscribe to receive news updates"));

var About = new webfxMenu;
	About.add(new webfxMenuItem("About Us", rootPath + "/about.php", "Learn more about the Carvers"));
	About.add(new webfxMenuItem("Current Fields", rootPath + "/bio-curr.php", "See what we're doing currently"));
	About.add(new webfxMenuItem("Our History", rootPath + "/bio-prev.php", "See what we've done in the past"));
	About.add(new webfxMenuSeparator());	     // Add Separator
	About.add(new webfxMenuItem("Family Photos", rootPath + "/coppermine/index.php?cat=6", "See some Family Photos"));
	About.add(new webfxMenuItem("Carver Jnrs", rootPath + "/carverjnr/index.php", "Visit the Carver Jnrs' section of the site"));
	About.add(new webfxMenuItem("VanSants", rootPath + "/vansant/index.php", "Visit the VanSants' section of the site"));
	About.add(new webfxMenuSeparator());	     // Add Separator
	About.add(new webfxMenuItem("Latest News", rootPath + "/latest.php", "Catch up with our latest news"));
	About.add(new webfxMenuItem("Contact Us", rootPath + "/contact.php", "Contact us"));

var Photos = new webfxMenu;
	Photos.add(new webfxMenuItem("Latest Photos", rootPath + "/coppermine/displayimage.php?album=lastup&pos=0", "See our most recently uploaded photos"));
	Photos.add(new webfxMenuItem("Deputation Photos", rootPath + "/coppermine/index.php?cat=9", "View photos from our Deputation travels"));
	Photos.add(new webfxMenuItem("PNG Photos", rootPath + "/coppermine/index.php?cat=2", "View photos from Papua New Guinea"));
	Photos.add(new webfxMenuItem("Lismore Photos", rootPath + "/coppermine/index.php?cat=7", "View photos from Lismore"));
	Photos.add(new webfxMenuItem("Cairns Photos", "/coppermine/index.php?cat=3", "View photos from Cairns"));
	Photos.add(new webfxMenuSeparator());	     // Add Separator
	Photos.add(new webfxMenuItem("CarverJnr Photos", rootPath + "/coppermine/index.php?cat=12", "View photos from Richard & Andrea's Photo Gallery"));
	Photos.add(new webfxMenuSeparator());	     // Add Separator
	Photos.add(new webfxMenuItem("Family Photos", "/coppermine/index.php?cat=6", "View photos of the Family"));
	Photos.add(new webfxMenuItem("Scenic Photos", "/coppermine/index.php?cat=5", "View some scenic photos"));
	Photos.add(new webfxMenuSeparator());	     // Add Separator
	Photos.add(new webfxMenuItem("Movies", "/movies/index.php", "View some movies"));

var Newslt = new webfxMenu;      // MenuBar Menus - Make the submenu version below identical values
	Newslt.add(new webfxMenuItem("Newsletters Home", rootPath + "/newsletters/index.php", "Visit the Newsletters home page"));
	Newslt.add(new webfxMenuItem("Partners In Missions", rootPath + "/newsletters/pim.php", "Partners In Missions (PIM) Newsletters"));
	Newslt.add(new webfxMenuItem("Linking Hearts", rootPath + "/newsletters/linkhearts.php", "Linking Hearts Newsletters"));
	Newslt.add(new webfxMenuItem("Pacific WAVElink", rootPath + "/newsletters/wavelink.php", "Pacific WAVElink Newsletters"));
	Newslt.add(new webfxMenuSeparator());	     // Add Separator
	Newslt.add(new webfxMenuItem("Carver Jnrs' Newsletters", rootPath + "/carverjnr/archive/index.php", "The Carver Jnrs' AIM Newsletters"));
	Newslt.add(new webfxMenuSeparator());	     // Add Separator
	Newslt.add(new webfxMenuItem("Subscribe to News", rootPath + "/subscribe/phplist/?p=subscribe&id=3", "Subscribe to receive the latest newsletters"));

var Latest = new webfxMenu;
	Latest.add(new webfxMenuItem("Latest News", rootPath + "/latest.php", "Catch up on our latest news"));
	Latest.add(new webfxMenuSeparator());	     // Add Separator
	Latest.add(new webfxMenuItem("Subscribe to News", rootPath + "/subscribe/phplist/?p=subscribe&id=3", "Subscribe to receive latest news updates"));
	
var Support = new webfxMenu;
	Support.add(new webfxMenuItem("Support Us", rootPath + "/support.php", "Support the Carvers"));
	Support.add(new webfxMenuItem("Needs & Projects", rootPath + "/needs.php", "See our Current Projects and Needs"));
	Support.add(new webfxMenuItem("Prayer Requests", rootPath + "/prayer_requests.php", "See what you can pray for"));

var Dep = new webfxMenu;
	Dep.add(new webfxMenuItem("Travel Diary", rootPath + "/deputation/index.php", "View our Travel Diary"));
	Dep.add(new webfxMenuItem("Map of our Travels", rootPath + "/deputation/where.php", "View a map of our Deputation Travels"));
	Dep.add(new webfxMenuItem("Deputation Photos", rootPath + "/coppermine/displayimage.php?album=24&pos=0", "View Photos from Deputation"));

var Stories = new webfxMenu;
	Stories.add(new webfxMenuItem("Inspirational Stories", rootPath + "/stories/index.php", "Inspirational Stories"));

var Shop = new webfxMenu;
	Shop.add(new webfxMenuItem("DVDs & Videos", rootPath + "/store/index.php", "DVDs & Videos"));

var Contact = new webfxMenu;
	Contact.add(new webfxMenuItem("Contact Us", rootPath + "/contact.php", "Contact Us"));
	Contact.add(new webfxMenuItem("Sign Our Guestbook", rootPath + "/coppermine/guestbook.php", "Sign Our Guestbook"));
	Contact.add(new webfxMenuItem("Subscribe to News", rootPath + "/subscribe/phplist/?p=subscribe&id=3", "Subscribe to receive news updates"));



var TopBar = new webfxMenuBar;
TopBar.add(new webfxMenuButton("Home", rootPath + "/index.php", "Return to the Home Page", null));
TopBar.add(new webfxMenuButton("Deputation", null, null, Dep));
TopBar.add(new webfxMenuButton("About Us", null, null, About));
TopBar.add(new webfxMenuButton("Photos", null, null, Photos));
TopBar.add(new webfxMenuButton("Newsletters", null, null, Newslt));
TopBar.add(new webfxMenuButton("Latest News", null, null, Latest));
TopBar.add(new webfxMenuButton("Projects", null, null, Support));
TopBar.add(new webfxMenuButton("Inspirational Stories", null, null, Stories));
TopBar.add(new webfxMenuButton("Online Store", null, null, Shop));
TopBar.add(new webfxMenuButton("Contact Us", null, null, Contact));


// LHS Menus

var lhs1a = new webfxMenu;
	lhs1a.add(new webfxMenuItem("Lismore Church", rootPath + "/aust/lismore/index.php", "An introduction to the church in Lismore"));
	lhs1a.add(new webfxMenuSeparator());	     // Add Separator
	lhs1a.add(new webfxMenuItem("Latest News", rootPath + "/aust/lismore/latest.php", "Latest News from Lismore"));
	lhs1a.add(new webfxMenuItem("Photo Album", rootPath + "/aust/lismore/latest.php", "Photos from Lismore"));
	lhs1a.add(new webfxMenuItem("News Archives", rootPath + "/aust/lismore/archives/index.php", "News Archives from Lismore"));
	lhs1a.add(new webfxMenuSeparator());	     // Add Separator
	lhs1a.add(new webfxMenuItem("About Lismore", rootPath + "/aust/lismore/about.php", "A little overview of Lismore"));

var lhs1b = new webfxMenu;
	lhs1b.add(new webfxMenuItem("Cairns Church", rootPath + "/aust/cairns/index.php", "An introduction to the church in Cairns"));
	lhs1a.add(new webfxMenuSeparator());	     // Add Separator
	lhs1b.add(new webfxMenuItem("Latest News", rootPath + "/aust/cairns/latest.php", "Latest News from Cairns"));
	lhs1b.add(new webfxMenuItem("Photo Album", rootPath + "/aust/cairns/late.php", "Photos from Cairns"));
	lhs1b.add(new webfxMenuItem("News Archives", rootPath + "/aust/cairns/archives/index.php", "News Archives from Cairns"));
	lhs1b.add(new webfxMenuSeparator());	     // Add Separator
	lhs1b.add(new webfxMenuItem("About Cairns", rootPath + "/aust/cairns/about.php", "A little overview of Cairns"));

var lhs1 = new webfxMenu;
	lhs1.add(new webfxMenuItem("Our Work in Australia", rootPath + "/aust/index.php", "An overview of our mission work in Australia"));
	lhs1.add(new webfxMenuSeparator());	     // Add Separator
	lhs1.add(new webfxMenuItem("Lismore", rootPath + "/aust/lismore/index.php", "The church in Lismore, Australia", lhs1a));
	lhs1.add(new webfxMenuItem("Cairns", rootPath + "/aust/cairns/index.php", "The church in Cairns, Australia", lhs1b));
	lhs1.add(new webfxMenuSeparator());	     // Add Separator
	lhs1.add(new webfxMenuItem("About Australia", rootPath + "/aust/about.php", "A little overview of Australia"));

var lhs2 = new webfxMenu;
	lhs2.add(new webfxMenuItem("News from PNG", rootPath + "/png/index.php", "News from Papua New Guinea"));
	lhs2.add(new webfxMenuItem("Photo Album", rootPath + "/png/index.php", "Photos from Papua New Guinea"));
	lhs2.add(new webfxMenuSeparator());	     // Add Separator
	lhs2.add(new webfxMenuItem("History of the Church", rootPath + "/png/bio-png.php", "A History of the Work in PNG"));
	lhs2.add(new webfxMenuSeparator());	     // Add Separator
	lhs2.add(new webfxMenuItem("About PNG", rootPath + "/png/about.php", "A little overview of Papua New Guinea"));

var lhs3 = new webfxMenu;
	lhs3.add(new webfxMenuItem("Richard & Andrea's section of the website", rootPath + "/carverjnr/latest.php", "View Richard & Andrea's section of the website"));
	lhs3.add(new webfxMenuSeparator());	     // Add Separator
	lhs3.add(new webfxMenuItem("Richard & Andrea's Photo Gallery", rootPath + "/coppermine/index.php?cat=12", "View photos from Richard & Andrea's Photo Gallery"));

var lhsBar = new webfxMenuVertBar;
    lhsBar.add(new webfxMenuVertButton("Australia", null, null, lhs1));
    lhsBar.add(new webfxMenuVertButton("New Guinea", null, null, lhs2));
    lhsBar.add(new webfxMenuVertButton("Carver Juniors'", null, null, lhs3));
