/*
  nav_panel.js -- a collection of objects and functions that may serve as a navigation panel for any
  website, needing only minor adjustments here and there to suit one's purposes.
  created: 20 September 2006 by sms.
*/

// the hrefs of the nav links
var links = new Object();
  links.home = '/index.html';
  links.students = '/students/students01.html';
  links.academia = '/academia/academia.html';
  links.wfs = 'http://www.workforstudents.com';
  //links.wfs = '/wfs/wfs.html';

function navigate_me(id, win)
/*	allow any element to link to new documents (a la anchors)
	called from the element's onClick event
	params:
		id -- the id of the affected element (usually the caller)
		win -- an optional string which names an external window in which to open the linked document
	call like: <span onClick='navigate_me(this.id, "window1")'>...</span>
*/
{
	var dest = links[id];
	
	/*i = set_navstate(id);*/
				
	if (win)
	{
		window.open(dest, win);
	}
	else
	{
		location = dest;
	}

	return false;
}
