////
//// DO NOT EDIT CODE FROM HERE...
////
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false

if (ie||ns6)
	var tipobj=document.all? document.all["menutip"] : document.getElementById? document.getElementById("menutip") : ""

function ietruebody() {
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function menutipdisplay(texttype, thecolor, thewidth) {
	if (ns6||ie){
		if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
		if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
		tipobj.innerHTML=displaytext(texttype)
		enabletip=true
		return false
	}
}

function positiontip(e) {
	if (enabletip) {
		//position the horizontal position of the menu where the mouse is positioned
		tipobj.style.left=285+"px"
		//same concept with the vertical position
		tipobj.style.top=150+"px"
		tipobj.style.visibility="visible"
	}
}

function menutiphide() {
	if (ns6||ie) {
		enabletip=false
		tipobj.style.visibility="hidden"
		tipobj.style.left="-1000px"
		tipobj.style.backgroundColor=''
		tipobj.style.width=''
	}
}
////
//// ...TO HERE
////

//
// Edit menutip here!!!
//   Use HTML tags to format text
//   To type ' do \' (e.g. to display yahoo's, type yahoo\'s)
//
function displaytext(texttype) {
	switch (texttype) {
	case 1: // Research
		thetext='Main Research Interests<ul><li>Speciation: Comparative Landscape Genetics<li>Community assembly: Behavioural mechanisms of invasion</ol>'
		break
	case 2: // People
		thetext='<ul><li>Current lab members and summaries of their research</ul>'
		break
	case 3: // Publications
		thetext='<ul><li>List of publications with .pdf reprints</ul>'
		break
	case 4: // Teaching
		thetext='<ul><li>Courses taught</ul>'
		break
	case 5: // Prospective Students
		thetext='<ul><li>For students interested in joining the team</ul>'
		break
	case 6: // Contact information
		thetext='<ul><li>Contact information</ul>'
		break
	case 7: // Links
		thetext='<ul><li>Useful and interesting web links</ul>'
		break
	default:
		thetext=''
	}
	return thetext
}

document.onmousemove=positiontip