//***** Menu (c) 2004 www.lifelong-learners.com, from www.opencube.com *******/

//Activation Codes
cdd__code0 = 1637
cdd__code1 = 1234

//starturl = "http://localhost/";
fullurl=self.location.href;
ind1=fullurl.lastIndexOf("/SRC/")+1;
ind2=fullurl.lastIndexOf("/SYL/")+1;
ind3=fullurl.lastIndexOf("/src/")+1;
ind4=fullurl.lastIndexOf("/")+1;
if      (ind1>0) ind=ind1;
else if (ind2>0) ind=ind2;
else if (ind3>0) ind=ind3;
else             ind=ind4;
starturl=fullurl.substr(0,ind);
if (starturl.length == 0) { starturl = "../"; }

// Global Settings
cdd__notice = "DHTML Web Menu, (c) 2004 www.lifelong-learners.com";
cdd__codebase = starturl + "src/";
cdd__database = starturl + "src/";
cdd__activate_onclick = false;
cdd__showhide_delay = 0;
cdd__url_target = "_self";
cdd__url_features = "";
cdd__display_urls_in_status_bar = true;
cdd__default_statusbar_text = " ";

//Web Menu Code (Warning: Do Not Alter!)
if (window.showHelp){
	b_type = "ie";
	if (!window.attachEvent)
		b_type += "mac";
}
if (document.createElementNS)
	b_type = "dom";
if (window.opera)
	b_type = "opera";
qmap1 = "\<\script language=\"JavaScript1.2\" src=\"";
qmap2 = ".js\"\>\<\/script\>";
if(document.layers){
	document.write(qmap1+cdd__database+"red_browser_ns4_styles"+qmap2);
	b_type = "ns4";
}
if (b_type){
	document.write(qmap1+cdd__codebase+"red_browser_"+b_type+qmap2);
	document.close();
}

// Added to hack around the window.status bug
window.onload = setstatus;
function setstatus() { window.status = " "; }
// end hack
// Hack for submenu
function create_submenu() {
}
// end submenu

/*****************************************************************************/

function cdd_menu0(){ 
	//Divider Settings: cap the top and bottom of each menu group
	this.use_divider_caps = false;
	//applies to horizontal menus only
	this.divider_width = 3;
	//applies to vertical menus only
	this.divider_height = 0;

	/* Menu Orientation and Dimensions */
	//All values below are defined in pixel units.  Only the
	//width of items and menu groups may be defined, heights
	//are automatically determined by the font size and padding
	//values below.  See the menu_styles.css file for additional
	//border color and style settings.

	//applies to all menu groups
	this.is_horizontal = false;
	//applies to main group only
	this.is_horizontal_main = true;

	//applies to vertical menus
	this.menu_width = 200;
	//applies to items in a horizontal menu
	this.menu_width_items = 50;

	//Padding Values (top, right, bottom, left)
	this.menu_padding_main = "1,0,1,0";
	this.menu_padding_sub = "0,0,0,0";
	this.item_padding_main = "3,0,0,0";
	this.item_padding_sub = "3,10,3,10";

	//Border Sizing
	this.menu_border_main = 0;
	this.menu_border_sub = 0;
	this.item_border_main = 1;
	this.item_border_sub = 1;

	/* Exposed Menu Events - Custom Script Attachment */
	this.show_menu = "";
	this.hide_menu = "";

	/* Browser Workarounds */
	//Opera 5 & 6 - alternate HTML display (Opera 7 displays menu 100%)
	this.opera_old_display_html = "Please update your opera browser.";

/*****************************************************************************/

	this.item0 = " ";
	this.url0 = starturl + " ";
	if (document.all)	this.menu_width_item0 = 99;
	else			this.menu_width_item0 = 99;
		this.menu_xy0 = "-"+this.menu_width_item0+",21";
		this.menu_width0 = 170;

	this.item1 = " ";
	this.url1 = starturl + " ";
	if (document.all)	this.menu_width_item1 = 99;
	else			this.menu_width_item1 = 99;
		this.menu_xy1 = "-"+this.menu_width_item1+",21";
		this.menu_width1 = 170;

	this.item2 = " ";
	this.url2 = starturl + " ";
	if (document.all)	this.menu_width_item2 = 99;
	else			this.menu_width_item2 = 99;
		this.menu_xy2 = "-"+this.menu_width_item2+",21";
		this.menu_width2 = 170;

	this.item3 = " ";
	this.url3 = starturl + " ";
	if (document.all)	this.menu_width_item3 = 99;
	else			this.menu_width_item3 = 99;

	this.item4 = " ";
	this.url4 = starturl + " ";
	if (document.all)	this.menu_width_item4 = 99;
	else			this.menu_width_item4 = 99;

	this.item5 = " ";
	this.url5 = starturl + " ";
	if (document.all)	this.menu_width_item5 = 99;
	else			this.menu_width_item5 = 99;

	this.item6 = "LINKS";
	this.url6 = "http://www.lifelong-learners.com/lll";
	if (document.all) 	this.menu_width_item6 = 99;
	else			this.menu_width_item6 = 99;
		this.menu_xy6 = "-"+this.menu_width_item6+",21";
		this.menu_width6 = 170;
		this.item6_0 = "Lifelong-learners<sup>&#174;</sup>";
		this.url6_0 = "http://www.lifelong-learners.com/lll";
		this.item6_1 = "Numerical methods";
		this.url6_1 = "http://www.lifelong-learners.com/pde";
		this.item6_2 = "Financial modeling";
		this.url6_2 = "http://www.lifelong-learners.com/opt";
		this.item6_3 = "Plasma physics";
		this.url6_3 = "http://www.lifelong-learners.com/pla";
		this.item6_4 = "Electromagnetics";
		this.url6_4 = "http://www.lifelong-learners.com/cem";
		this.item6_5 = "External resources";
		this.url6_5 = starturl + "src/resources.php3";
		this.url_target6_5 = "_blank";
}
