//BLANK_IMAGE = 'add-space.gif';

var lastTip = null;
var POS1 = "relative";

function setVis(id, value) {
	var o;
	if (document.getElementById && (o = document.getElementById(id)) && o.style)
		o.style.visibility = value;
}
function show(id) {
	setVis(id, 'visible');
}
function hide(id) {
	setVis(id, 'hidden');
}
function navTip(id) {
	if (lastTip)
		hide(lastTip);
	show(id);
	lastTip = id;
}


var sep_color = {border:"#666666", shadow:"#DBD8D1", bgON:"white", bgOVER:"white"};
var sep_css = {ON:"clsCMOn", OVER:"clsCMOver"};

var SEPARATOR= {
	border:0,
	shadow:0,
	color:{
		border:'#CCCCCC',
		shadow:'#333333',
		bgON:'',
		bgOVER:''
	},
	css:{
		ON:'clsCMOn',
		OVER:'clsCMOver'
	}
};

var STYLE2 = {
	border:0,			// item's border width, pixels; zero means "none"
	shadow:0,			// item's shadow size, pixels; zero means "none"
	color:{
		border:"#CCCCCC",	// color of the item border, if any
		shadow:'#333333',	// color of the item shadow, if any
		bgON:'',		// background color for the items
		bgOVER:''	// background color for the item which is under mouse right now
	},
	css:{
		ON:"clsCMOn2",		// CSS class for items
		OVER:"clsCMOver2"	// CSS class  for item which is under mouse
	}
};

var STYLE3 = {
	border:0,			// item's border width, pixels; zero means "none"
	shadow:0,			// item's shadow size, pixels; zero means "none"
	color:{
		border:"",	// color of the item border, if any
		shadow:'#EFEFEF',	// color of the item shadow, if any
		bgON:'#382A07',		// background color for the items
		bgOVER:'#6E4D24'	// background color for the item which is under mouse right now
	},
	css:{
		ON:"clsCMOn3",		// CSS class for items
		OVER:"clsCMOver3"	// CSS class  for item which is under mouse
	}
};


var MENU_ITEMS_ARROWS =
[
	{pos:"relative", itemoff:[20,20], "leveloff":[20,20], "style":STYLE2, "size":[20,20], "delay":[200]},
    	{code:"HOME", url:"/lab/index.php", format:{size:[20,50], itemoff:[0,0]}, 
			sub:[
				{"style":STYLE3, itemoff:[20,0], "leveloff":[20,-6], "size":[20,120]},
				{code:"Announcements", url:"/lab/announcements.php"},
				{code:"About the Lab", url:"/lab/about.php"},
				]
				},
		{code:"|", format:{size:[20,8], itemoff:[0,40],  style:SEPARATOR}},
    	{code:"PEOPLE", url:"/lab/people.php", format:{size:[20,60], itemoff:[0,10]}, 
			sub:[
				{"style":STYLE3, itemoff:[20,0], "leveloff":[20,-6], "size":[20,140]},
				{code:"Professors", url:"/lab/people.php?cat=1"},
				{code:"Instructors", url:"/lab/people.php?cat=7"},
				{code:"Post-Doctorates", url:"/lab/people.php?cat=2"},
				{code:"Graduates", url:"/lab/people.php?cat=3"},
				{code:"Visiting Scientists", url:"/lab/people.php?cat=6"},
				{code:"Undergrads", url:"/lab/people.php?cat=4"},
				{code:"Alumni", url:"/lab/people.php?cat=5"},
				{code:"Lab Manager / Administrators", url:"/lab/people.php?cat=8"},
				]
				},
		
		{code:"|", format:{size:[20,8], itemoff:[0,50],  style:SEPARATOR}},
		
    	{code:"EDUCATION", "format":{size:[20,80], itemoff:[0,10]},
	    	sub:[
				{"style":STYLE3, itemoff:[20,0], "leveloff":[20,-6], "size":[20,120]},
				{code:"Graduate", url:"/lab/education-graduate.php"},
				{code:"Undergraduate", url:"/lab/education-undergraduate.php"},
				{code:"High School", url:"/lab/education-highschool.php"},
				{code:"Minorities", url:"/lab/education-minorities.php"},
				
			]
    	},
		{code:"|", format:{size:[20,8], itemoff:[0,75],  style:SEPARATOR}},
    	{code:"RESEARCH", url:"/lab/research.php", "format":{size:[20,70], itemoff:[0,12]},
			sub:[
				{"style":STYLE3, itemoff:[20,0], "leveloff":[20,-6], "size":[20,160]},
				{code:"BioMEMS", url:"/lab/research-biomems.php"},
				{code:"Tissue Engineering", url:"/lab/research-tissueeng.php"},
				{code:"Stem Cell Bioengineering", url:"/lab/research-stemcell.php"},
				{code:"Biomaterials", url:"/lab/research-biomaterials.php"},
				]  	
    	},
		{code:"|", format:{size:[20,8], itemoff:[0,70],  style:SEPARATOR}},
		{code:"PAPERS", url:"/lab/papers.php", format:{size:[20,65], itemoff:[0,12]},
			sub:[
				{"style":STYLE3, itemoff:[20,0], "leveloff":[20,-6], "size":[20,160]},
				{code:"Most Recent", url:"/lab/papers-recent.php"},
				{code:"Complete Papers Archive", url:"/lab/papers.php"},
				{code:"Patents", url:"/lab/papers-patents.php"},
				
				]
		
		},
		{code:"|", format:{size:[20,8], itemoff:[0,55],  style:SEPARATOR}},
		{code:"RESOURCES", format:{size:[20,80], itemoff:[0,10]},
			sub:[
				{"style":STYLE3, itemoff:[20,0], "leveloff":[20,-6], "size":[20,130]},
				{code:"Facilities", url:"/lab/resources-facilities.php"},
				{code:"Equipment", url:"/lab/resources-equipment.php"},
				{code:"Links", url:"/lab/resources-links.php"},
				{code:"Collaborators", url:"/lab/resources-collaborators.php"},
				
				]
		},
	{code:"|", format:{size:[20,8], itemoff:[0,75],  style:SEPARATOR}},
	{code:"POSITIONS",  url: "/lab/positions.php", format:{size:[20,70], itemoff:[0,10]}},
	{code:"|", format:{size:[20,8], itemoff:[0,75],  style:SEPARATOR}},
	{code:"LINKS",  url: "/lab/resources-links.php", format:{size:[20,55], itemoff:[0,10]}},
	{code:"|", format:{size:[20,8], itemoff:[0,40],  style:SEPARATOR}},
	{code:"CONTACT",  url: "/lab/contact.php", format:{size:[20,75], itemoff:[0,10]}}];
