// filename: /test/docs/js/start-tree.js
// description: two navigation trees for the start page; tree-button2 is yellow
// last edit: 4 7-06 by rc  [rm alert]

/* FORMATTING  */

// yellow tree
var START_TREE_FORMAT =
[
//0. left position, top position
	100, 240,
//1. IGNORE unused settings for + - Buttons
	false, ["", "", ""], [16,16,0], false, ["", "", ""], [39,37],[0,0],
//2. tree background color ("" - transparent)
	"#FFFFFF",
//3. default CSS style for all nodes
	"clsNode",
//4. styles for each level of menu (default style will be used for undefined levels)
	["clsNode1", "clsNode", "clsNode", "clsNode"],
//5. true if only one branch can be opened at same time
	true,
//6. item padding and spacing
	[0,0],
];

// teal green tree (not commented)
var START_TREE2_FORMAT =
[
	330, 240, false, ["", "", ""], [16,16,0], false, ["", "", ""], [16,16], [0,0], "", "clsNode", ["clsNode1", "clsNode", "clsNode", "clsNode"], true, [0,0],
];

/* VARIABLES  */

//these three provide indentation for netscape browsers
var tt1 = '         ';
var tt2 = '             ';
var tt3 = '                 ';
//var ar and up are used for dropdown arrows and popup symbols, respectively
var ar = '<img src="/graphics/arrows.gif" border="0"> <b>';
var up = '<img src="/graphics/popsym.gif" border="0">';
var raquo = '&#8595;';

/* TREE ARRAY */
/* all links in the tree array must have the following formatting or else the script will break! 
[ttLEVEL+'LINKNAME', "URL", null],
Uppercase is what you replace.
Replace null with "_blank" if you want it to open in a new window.
*/

var START_TREE_LINKS = [
	['<img src="/graphics/tree-button2.jpg" alt=" " width=16 height=16 border=0 align="absbottom"> All About Your Account', "/start/newaccounts.shtml", null],

		['<img src="/graphics/tree-button2.jpg" alt=" " width=16 height=16 border=0 align="absbottom"> School Closings'+raquo, null, null,
		[tt1+'VT', "/schoolclosings/index.php", "return pop(this)"],
		[tt1+'NH', "http://nhpr.org/static/snow/", "return pop_off(this)"],
	],
		
['<img src="/graphics/tree-button2.jpg" alt=" " width=16 height=16 border=0 align="absbottom"> Alerts, Newsletters'+raquo, null, null,
		[tt1+'Alerts/Notices', "/notices/index.shtml#notices", null],
		[tt1+'Newsletter (Feb. \'06)', "/notices/archived/2-06-soverall.shtml", "return pop_on(this)"],		
		[tt1+'Archived News', "/notices/archives.shtml", null],
		[tt1+'SoVerNet in the news', "/company/press.shtml", "return pop_on(this);"],
	],
		['<img src="/graphics/tree-button2.jpg" alt=" " width=16 height=16 border=0 align="absbottom"> Ask Us'+raquo, null, null,
		[tt1+'Customer Service', "/docs/feedback.shtml", "return pop(this)"],
		[tt1+'Ask Support', "/docs/supportQ.html", "return pop(this)"],
		[tt1+'Residential Sales', "/docs/salesQ.shtml", "return pop(this)"],
		[tt1+'Business Sales', "/docs/field-salesQ.shtml", "return pop(this)"],
		[tt1+'Report Dialup problem', "/docs/troubles.shtml", "return pop(this)"],
		[tt1+'Report Phone Svce problem', "/docs/repair.shtml", "return pop(this)"],
		[tt1+'Request Phonebook', "/docs/order-dir.shtml", "return pop(this)"],
	],
		['<img src="/graphics/tree-button2.jpg" alt=" " width=16 height=16 border=0 align="absbottom"> Policies'+raquo, null, null,
		[tt1+'Acceptable Use', "/docs/acceptableuse.shtml", "return pop_on(this)"],
		[tt1+'Privacy', "/docs/privacy.shtml", "return pop_on(this)"],
		[tt1+'Terms of Service', "/docs/terms.shtml", "return pop_on(this)"],
		[tt1+'Tariff', "/tariff/tariff.shtml", null],
		[tt1+'Long Distance Terms', "/tariff/interlata-terms.shtml", "return pop_on(this)"],
		[tt1+'30-Day Guarantee', "/docs/mbg.shtml", "return pop_on(this)"],
		[tt1+'Warranty, Ltd. Equip', "/support/warranty.html", "return pop_on(this)"],
	],
		['<img src="/graphics/tree-button2.jpg" alt=" " width=16 height=16 border=0 align="absbottom"> For ValleyNet Accounts', "/vnet/index.shtml", null],
		['<img src="/graphics/tree-button2.jpg" alt=" " width=16 height=16 border=0 align="absbottom"> Careers with SoVerNet', "/company/jobs.shtml", null],
];
var START_TREE2_LINKS = [
		['<img src="/graphics/tree-button2.jpg" alt=" " width=16 height=16 border=0 align="absbottom"> News'+raquo, null, null,
		[tt1+'World/National '+raquo, null, null,
			[tt2+'BBC', "http://www.bbc.co.uk/", "return pop_off(this)"],
			[tt2+'CNN International', "http://edition.cnn.com/", "return pop_off(this)"],
			[tt2+'CNN', "http://www.cnn.com/", "return pop_off(this)"],
		],
		[tt1+'Local/Regional '+raquo, null, null,
			[tt2+'Brattleboro Reformer', "http://www.reformer.com/", "return pop_off(this)"],
			[tt2+'Burlington Free Press', "http://www.burlingtonfreepress.com/", "return pop_off(this)"],
			[tt2+'Rutland Herald', "http://rutlandherald.com/", "return pop_off(this)"],
			[tt2+'Times Argus', "http://www.timesargus.com/", "return pop_off(this)"],
			[tt2+'National Public Radio', "http://news.npr.org/", "return pop_off(this)"],
			[tt2+'VT Public Radio', "http://www.vpr.net/vt_news/index.shtml", "return pop_off(this)"],
			[tt2+'NH Public Radio', "http://www.nhpr.org/view_summary/4/", "return pop_off(this)"],
		    [tt2+'VT Low-Power FM Stations', "http://lpfm.windham.vt.us/", "return pop_off(this)"],
		],
	],
		['<img src="/graphics/tree-button2.jpg" alt=" " width=16 height=16 border=0 align="absbottom"> Weather/Travel'+raquo, null, null,
		 [tt1+'NOAA Weather: VT, NH, ME', "http://www.erh.noaa.gov/er/gyx/", "return pop_off(this)"],
		 [tt1+'&nbsp;&nbsp;<em>Hint: Point to city/county &#38; click</em>', "http://www.erh.noaa.gov/er/gyx/index.shtml", "return pop_off(this)"],	
		 [tt1+'VT AOT Weather', "http://67.106.3.242/default.asp?display=weather&area=VT_statewide&date=&textOnly=False", "return pop_off(this)"],
		[tt1+'Road Conditions'+raquo, null, null,
			[tt2+'VT 511', "http://67.106.3.242/default.asp?display=critical&area=VT_statewide", "return pop_off(this)"],
			[tt2+'NH 511', "http://www.nh.gov/dot/511/", "return pop_off(this)"],
			[tt2+'ME 511', "http://67.106.3.239/", "return pop_off(this)"],
	    ],
	    ],
		['<img src="/graphics/tree-button2.jpg" alt=" " width=16 height=16 border=0 align="absbottom"> Event Calendars'+raquo, null, null,
		[tt1+'Seven Days', "http://www.sevendaysvt.com/calendar.html", "return pop_off(this)"],
		[tt1+'VT  Public Television', "http://www.vpt.org/townschool/community.html#calendar", "return pop_off(this)"],
		[tt1+'VT  Public Radio', "http://events.publicbroadcasting.net/vpr/events.eventsmain", "return pop_off(this)"],
		[tt1+'VINS <span class="nine">(Vt. Inst. of Nat. Science)</span>', "http://www.vinsweb.org/programs/index.html", "return pop_off(this)"],
		[tt1+'VT Chamber of Commerce Event Calendar', "http://www.vtchamber.com/events/", "return pop_off(this)"],
		[tt1+'VT Dept Of Tourism: Events, Fairs, &#38; more', "http://www.vermontvacation.com/", "return pop_off(this)"],
		[tt1+'NH  Public Radio', "http://www.nhpr.org/calendar/", "return pop_off(this)"],
		[tt1+'Vermont Business Magazine', "http://www.vermontbiz.com/business_info/bizcalendar.cfm", "return pop_off(this)"],
	 ],
	['<img src="/graphics/tree-button2.jpg" alt=" " width=16 height=16 border=0 align="absbottom"> Community Resources', "/start/local.shtml", null],
		['<img src="/graphics/tree-button2.jpg" alt=" " width=16 height=16 border=0 align="absbottom"> Customer Sites'+raquo, null, null,
		 [tt1+'Personal Pages', "http://www.sover.net/personalpages-index.html", "return pop_off(this)"],
		 [tt1+'Nonprofit Sites', "http://www.sover.net/nonprofit-index.html", "return pop_off(this)"],
		 [tt1+'Business Sites', "http://www.sover.net/business-index.html", "return pop_off(this)"],
		 [tt1+'List Your Site', "/support/webfaq/websetup.shtml", null],
	],
	['<img src="/graphics/tree-button2.jpg" alt=" " width=16 height=16 border=0 align="absbottom"> Misc. Links'+raquo, null, null,
		[tt1+'Research, Reference', "/start/links.shtml#search", null],
		[tt1+'Family', "/start/links.shtml#social", null],		
		[tt1+'Law', "/start/links.shtml#legal", null],
		[tt1+'Business', "/start/links.shtml#business", null],
		[tt1+'Government', "/start/links.shtml#vt", null],
		[tt1+'more...', "/start/links.shtml", null],
	],
];
