// This JavaScript code is from LCHE 
// Copyright 2007 by London College for Higher Education, London, UK
// Script Mouse Over/

var dom = (document.getElementById) ? true : false;
var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ns4 = (document.layers && !dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

var origWidth, origHeight;
if (ns4) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

if (nodyn) { event = "nope" }
var tipFollowMouse	= true;	
var tipWidth		= 250;
var offX		 	= 15;	// how far from mouse to show tip
var offY		 	= 15; 
var tipFontFamily 	= "Verdana, arial, helvetica, sans-serif";
var tipFontSize		= "7pt";
var tipFontColor	= "#000000";
var tipBgColor		= "#FFFFFF"; 
var origBgColor 	= tipBgColor; // in case no bgColor set in array
var tipBorderColor 	= "#000080";
var tipBorderWidth 	= 1;
var tipBorderStyle 	= "ridge";
var tipPadding	 	= 3;

var messages = new Array();
messages[0] = new Array('http://www.collegeoflondon.org/jpg/hoya_p.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> MSc in Engineering, MSc in Chemistry, MBA in International Business, DSc in Chemistry, PhD in Business Economics<br> <b>Professional Experience:</b><br> Managing Director of international asset trust corp., CEO and Director Project Management, Director Marketing for US aircraft manufacturer, Consultant and Advisor for companies in finance and banking, Senior Professor of Business Economics and Academic Dean. </p>',"#F2FCFF");
messages[1] = new Array('http://www.collegeoflondon.org/jpg/murthy_n.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> Master in Human Resource Management and Quality Systems, MBA in Marketing Management, MA in Public Administration, PhD in Management Technology, awarded "Vidya Vachaspathi" (Honorary PhD)<br> <b>Professional Experience:</b><br> Secretary & Executive Editor for human rights organisation, Consultant for companies and government in HRD and industrial management, Professor of Management and Quality Systems, Academic Dean. </p>',"#F2FCFF");
messages[2] = new Array('http://www.collegeoflondon.org/jpg/lee_a.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> Bachelor of Arts, Master of Philosophy in Physical Education, Doctor of Education, Doctor of Humanities (honoris causa)<br> <b>Professional Experience:</b><br> Lecturer at University of Hong Kong, Lecturer at Hong Kong Institute of Vocational Education, Lecturer and Corporate Trainer for major insurance companies, C.E.O. of Hong Kong Life Coach Academy, Professor at HuaShang Institute of Technology, Associate Dean. </p>',"#F2FCFF");
messages[3] = new Array('http://www.collegeoflondon.org/jpg/chan_g.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> Master of Arts, Master Business Administration, DPsy Doctor of Psychology, Honorary PhD<br> <b>Professional Experience:</b><br> Vice-President of International Integration and Program Development, Chief Consultant New Market Development, Professor and Academic Dean. </p>',"#F2FCFF");
messages[4] = new Array('http://www.collegeoflondon.org/jpg/beckham_b.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> Bachelor of Science (BS), Doctor of Naturopathic Medicine (ND), Doctor of Medicine (MD), Doctor of Philosophy in Psychology (PhD)<br> <b>Professional Experience:</b><br> Chief of Staff Life Management Clinic in Louisville (Kentucky), Certified Alcohol and Drug Counselor, Certified Criminal Justice Professional Addiction, Board Certified Hypnotherapist (USA). </p>',"#F2FCFF");
messages[5] = new Array('http://www.collegeoflondon.org/jpg/phipps_eg.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> Master of Science, Doctor of Homeopathy, MD Medical Doctor, Doctor of Psychology<br> <b>Professional Experience:</b><br> Senior Professor and Associate Dean, Professor Emeritus of International University, Member of Academic Board.</p>',"#F2FCFF");
messages[6] = new Array('http://www.collegeoflondon.org/jpg/brenda.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> Bachelor of Arts, Master of Education<br> <b>Professional Experience:</b><br>Office of Admissions Secretary <br> <b>LCHE Campus:</b> London, U.K.</p>',"#F2FCFF");
messages[7] = new Array('http://www.collegeoflondon.org/jpg/hale_i.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> Master of Arts, Doctor of Education<br> <b>Professional Experience:</b><br> Professor at University of Bath, Consultant and Advisor for universities in the fields of distance education, Professor of Education and Academic Dean. </p>',"#F2FCFF");
messages[8] = new Array('http://www.collegeoflondon.org/jpg/beckham_t.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> Bacholor of Arts (BA), Doctor of Naturopathic Medicine (ND), Doctor of Philosophy (PhD), Doctor of Osteopathic (MD)<br> <b>Professional Experience:</b><br> Consultant and Advisor for companies and government in education and health sciences, Chancellor of American International University (USA), Certified Criminal Justice Professional Addiction, Certified Alcohol and Drug Counselor, Board Certified Hypnotherapist (USA). </p>',"#F2FCFF");
messages[9] = new Array('http://www.collegeoflondon.org/jpg/wong_t.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> Master in Engineering, MSc Chemical Engineering, MBA in International Business, DSc in Chemistry, DBA International Business, PhD Business Economics<br> <b>Professional Experience:</b><br> Managing Director of international asset trust corp., CEO and Director Project Management, Director Marketing for US aircraft manufacturer, Consultant and Advisor for companies in finance and banking, Senior Professor of Business Economics and Associate Dean. </p>',"#F2FCFF");
messages[10] = new Array('http://www.collegeoflondon.org/jpg/gardner.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> MA in Education, Doctor of Education<br> <b>Professional Experience:</b><br>Professor of Education and Academic Dean, Professor Emeritus of University in England, Member of Academic Board and Trustee at several institutions <br> <b>LCHE Campus:</b> London, U.K.</p>',"#F2FCFF");
messages[11] = new Array('http://www.collegeoflondon.org/jpg/cammarano_c.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> Master of Arts, Doctor of Education<br> <b>Professional Experience:</b><br>Principal at College of Salerno, Professor of Education and Associate Dean. </p>',"#F2FCFF");
messages[12] = new Array('http://www.collegeoflondon.org/jpg/karczag_l.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> MSc in Engineering, MSc in Economics, Doctor of Science<br> <b>Professional Experience:</b><br>Managing Director of international asset trust company, Consultant and Advisor for international companies in finance and asset protection, Senior Professor of Finance & Banking and Associate Dean. </p>',"#F2FCFF");
messages[13] = new Array('http://www.collegeoflondon.org/jpg/gavalda_r.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> Master of Etiquette and Protocol, PhD in Social Sciences<br> <b>Professional Experience:</b><br>President of Academia Argentina de Etiqueta, Professor for Ceremonial and Protocol at Universidad Torcuato Di Tella in Buenos Aires, Profesor at Instituto Superior de Ceremonial y Relaciones Publicas de la Plata, Academic Director for Protocol of the Republic of Argentina, Associate Dean. </p>',"#F2FCFF");
messages[14] = new Array('http://www.collegeoflondon.org/jpg/sahar_k.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> BA in Psychology, MA in Clinical Psychology, DSc in Health Sciences, PhD in Clinical Psychology<br> <b>Professional Experience:</b><br>Director of The Canadian Health Sciences Institute in Toronto (Canada), Director and Professor of Health Sciences in Dubai (UAE), Health Care, Clinical Hypnotherapy, Clinical Psychotherapy, Mental Health and Parapsychology, Associate Dean for Middle East Studies. </p>',"#F2FCFF");
messages[15] = new Array('http://www.collegeoflondon.org/jpg/sahar_k.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> BA in Psychology, MA in Clinical Psychology, DSc in Health Sciences, PhD in Clinical Psychology<br> <b>Professional Experience:</b><br>Director of The Canadian Health Sciences Institute in Toronto (Canada), Director and Professor of Health Sciences in Dubai (UAE), Health Care, Clinical Hypnotherapy, Clinical Psychotherapy, Mental Health and Parapsychology, Associate Dean. </p>',"#F2FCFF");
messages[16] = new Array('http://www.collegeoflondon.org/jpg/chan_b.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> MD in Naturopathic, PhD in Health Sciences<br> <b>Professional Experience:</b><br>Professor at York University (Canada) and Xian Institute (China), Lecturer at Lingnan University (Hong Kong), Director of One Theory Holistic Health Centre in Hong Kong, Professor of Health Sciences in Hong Kong, Bio Cranial System Therapist, Craniosacral Therapist, Asian Cranial Practioner, Academic Dean, Director Faculty of Allied Health Sciences (China, Taiwan, Malaysia, Japan, Singapore, Indonesia). </p>',"#F2FCFF");
messages[17] = new Array('http://www.collegeoflondon.org/jpg/ziegler_d.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> BSc in Journalism and Music; MA in Radio and Television; PhD in Academic Administration<br> <b>Professional Experience:</b><br>Board of Trustees at Florida Virtual School; Professor of Journalism and Assistant Vice President for Instructional Technology and Academic Affairs; Acting Vice President for Research and Director of International Programs at Florida A&M University (Tallahassee). Professor of Broadcasting; Associate Director of Diversity Research and Educational Services, Office of the Chancellor;  President of the Faculty Senate at University of Tennessee (Knoxville). </p>',"#F2FCFF");
messages[18] = new Array('http://www.collegeoflondon.org/jpg/pauline_h.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> BA in Psychology, MTh in Christian Psychology, Psychological License, Certified Psychologist, Certified Psychotherapist, Certified Counselor (eligible)<br> <b>Professional Experience:</b><br> Certified Psychotherapist at Life Management Clinic in Louisville Kentucky; Certified Drug and Alcohol Counselor in Kentucky (eligible); Clinic Counseling in the areas of domestic violence, substance abuse, anger management, marriage and family therapy. </p>',"#F2FCFF");
messages[19] = new Array('http://www.collegeoflondon.org/jpg/lai_n.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> MSc in International Marketing, MBA, PhD in Philosophy, Doctor of Letters (logistics)<br> <b>Professional Experience:</b><br> Director Education of South China University of Technology Research Center (China), Senior Advisor and Visiting Professor of School of Commerce (China), Visiting Professor of International American University (USA), Chairman of Institute of Supply Chain Management (Hong Kong), VP of Hong Kong Professional Development Alliance.</p>',"#F2FCFF");
messages[20] = new Array('http://www.collegeoflondon.org/jpg/creighton_w.jpg','<P ALIGN=justify><b>Academic Experience:</b><br> Bacholor in Psychology (BA), Doctor of Naturopathic Medicine (ND), Doctor of Philosophy (PhD)<br> <b>Professional Experience:</b><br> Clinic Counseling in the areas of domestic violence, substance abuse, anger management, marriage and family therapy; Professor and Clinic Director in Louisville (Kentucky) </p>',"#F2FCFF");
messages[21] = new Array('http://planmagic.com/images/plmfinance.jpg','Financial calculations and projections made easy.',"#E9E9E9");

if (document.images) {
	var theImgs = new Array();
	for (var i=0; i<messages.length; i++) {
  	theImgs[i] = new Image();
		theImgs[i].src = messages[i][0];
  }
}

var startStr = '<table width="' + tipWidth + '"><tr><td align="center" width="100%"><img src="';
var midStr = '" border="0"></td></tr><tr><td valign="top">';
var endStr = '</td></tr></table>';

var tooltip, tipcss;
function initTip() {
	if (nodyn) return;
	tooltip = (ns4)? document.tipDiv.document: (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;
	tipcss = (ns4)? document.tipDiv: tooltip.style;
	if (ie4||ie5||ns5) {	// ns4 would lose all this on rewrites
		tipcss.width = tipWidth+"px";
		tipcss.fontFamily = tipFontFamily;
		tipcss.fontSize = tipFontSize;
		tipcss.color = tipFontColor;
		tipcss.backgroundColor = tipBgColor;
		tipcss.borderColor = tipBorderColor;
		tipcss.borderWidth = tipBorderWidth+"px";
		tipcss.padding = tipPadding+"px";
		tipcss.borderStyle = tipBorderStyle;
	}
	if (tooltip&&tipFollowMouse) {
		if (ns4) document.captureEvents(Event.MOUSEMOVE);
		document.onmousemove = trackMouse;
	}
}

window.onload = initTip;

var t1,t2;	// for setTimeouts
var tipOn = false;	// check if over tooltip link
function doTooltip(evt,num) {

	if (!tooltip) return;
	if (t1) clearTimeout(t1);	if (t2) clearTimeout(t2);
	tipOn = true;
	// set colors if included in messages array
	if (messages[num][2])	var curBgColor = messages[num][2];
	else curBgColor = tipBgColor;
	if (messages[num][3])	var curFontColor = messages[num][3];
	else curFontColor = tipFontColor;
	if (ns4) {
		var tip = '<table bgcolor="' + tipBorderColor + '" width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table bgcolor="' + curBgColor + '" width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td>'+ startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr + '</td></tr></table></td></tr></table>';
		tooltip.write(tip);
		tooltip.close();
	} else if (ie4||ie5||ns5) {
		var tip = startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr;
		tipcss.backgroundColor = curBgColor;
	 	tooltip.innerHTML = tip;
	}
	if (!tipFollowMouse) positionTip(evt);
	else t1=setTimeout("tipcss.visibility='visible'",100);
}

var mouseX, mouseY;
function trackMouse(evt) {
	mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
	mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
	if (tipOn) positionTip(evt);
}

function positionTip(evt) {
	if (!tipFollowMouse) {
		mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
		mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
	}
	// tooltip width and height
	var tpWd = (ns4)? tooltip.width: (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
	var tpHt = (ns4)? tooltip.height: (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;
	// document area in view (subtract scrollbar width for ns)
	var winWd = (ns4||ns5)? window.innerWidth-20+window.pageXOffset: document.body.clientWidth+document.body.scrollLeft;
	var winHt = (ns4||ns5)? window.innerHeight-20+window.pageYOffset: document.body.clientHeight+document.body.scrollTop;
	// check mouse position against tip and window dimensions
	// and position the tooltip 
	if ((mouseX+offX+tpWd)>winWd) 
		tipcss.left = (ns4)? mouseX-(tpWd+offX): mouseX-(tpWd+offX)+"px";
	else tipcss.left = (ns4)? mouseX+offX: mouseX+offX+"px";
	if ((mouseY+offY+tpHt)>winHt) 
		tipcss.top = (ns4)? winHt-(tpHt+offY): winHt-(tpHt+offY)+"px";
	else tipcss.top = (ns4)? mouseY+offY: mouseY+offY+"px";
	if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);
}

function hideTip() {
	if (!tooltip) return;
	t2=setTimeout("tipcss.visibility='hidden'",100);
	tipOn = false;
}

