/**
 * mouseRegistration.js 
 * registers the event handlers for mouseoverPopupText.js, textShow.js & popupFrameText.js
 * @author: Ryan Winger
 * Modified by Johan Baer
 */
 
/*if (document.captureEvents && Event.MOUSEMOVE) 
{
  document.captureEvents(Event.MOUSEMOVE)
}
document.onmousemove=getMouseXY;*/

if (document.getElementById("learning"))
{
  document.getElementById("learning").onmouseover=showTip;
  document.getElementById("learning").onmouseout=hideTip;
}
if (document.getElementById("preparation"))
{
  document.getElementById("preparation").onmouseover=showTip;
  document.getElementById("preparation").onmouseout=hideTip;
  document.getElementById("preparation").onclick=showText;
}
if (document.getElementById("input"))
{
  document.getElementById("input").onmouseover=showTip;
  document.getElementById("input").onmouseout=hideTip;
  document.getElementById("input").onclick=showText;
}
if (document.getElementById("processing"))
{
  document.getElementById("processing").onmouseover=showTip;
  document.getElementById("processing").onmouseout=hideTip;
  document.getElementById("processing").onclick=showText;
}
if (document.getElementById("storage"))
{
  document.getElementById("storage").onmouseover=showTip;
  document.getElementById("storage").onmouseout=hideTip;
  document.getElementById("storage").onclick=showText;
}
if (document.getElementById("output"))
{
  document.getElementById("output").onmouseover=showTip;
  document.getElementById("output").onmouseout=hideTip;
  document.getElementById("output").onclick=showText;
}

//document.addEventListener('click', hideFrame, true); // not in IE
document.onclick=hideFrame;
if (document.getElementById("physNeed"))
{
  document.getElementById("physNeed").onclick=showFrame;
}
if (document.getElementById("HG"))
{
  document.getElementById("HG").onclick=showFrame;
}
if (document.getElementById("social"))
{
  document.getElementById("social").onclick=showFrame;
}
if (document.getElementById("attitude"))
{
  document.getElementById("attitude").onclick=showFrame;
}
if (document.getElementById("organize"))
{
  document.getElementById("organize").onclick=showFrame;
}
if (document.getElementById("time"))
{
  document.getElementById("time").onclick=showFrame;
}
if (document.getElementById("environment"))
{
  document.getElementById("environment").onclick=showFrame;
}
if (document.getElementById("learningStyle"))
{
  document.getElementById("learningStyle").onclick=showFrame;
}
if (document.getElementById("background"))
{
  document.getElementById("background").onclick=showFrame;
}
if (document.getElementById("purpose"))
{
  document.getElementById("purpose").onclick=showFrame;
}
if (document.getElementById("activelyEngaged"))
{
  document.getElementById("activelyEngaged").onclick=showFrame;
}
if (document.getElementById("vocab"))
{
  document.getElementById("vocab").onclick=showFrame;
}
if (document.getElementById("graphics"))
{
  document.getElementById("graphics").onclick=showFrame;
}
if (document.getElementById("auditory"))
{
  document.getElementById("auditory").onclick=showFrame;
}
if (document.getElementById("notes"))
{
  document.getElementById("notes").onclick=showFrame;
}
if (document.getElementById("reference"))
{
  document.getElementById("reference").onclick=showFrame;
}
if (document.getElementById("understanding"))
{
  document.getElementById("understanding").onclick=showFrame;
}
if (document.getElementById("selfQues"))
{
  document.getElementById("selfQues").onclick=showFrame;
}
if (document.getElementById("seekLearn"))
{
  document.getElementById("seekLearn").onclick=showFrame;
}
if (document.getElementById("reading"))
{
  document.getElementById("reading").onclick=showFrame;
}
if (document.getElementById("memory"))
{
  document.getElementById("memory").onclick=showFrame;
}
if (document.getElementById("examPrep"))
{
  document.getElementById("examPrep").onclick=showFrame;
}
if (document.getElementById("teach"))
{
  document.getElementById("teach").onclick=showFrame;
}
if (document.getElementById("written"))
{
  document.getElementById("written").onclick=showFrame;
}
if (document.getElementById("oral"))
{
  document.getElementById("oral").onclick=showFrame;
}
if (document.getElementById("exam"))
{
  document.getElementById("exam").onclick=showFrame;
}

if (document.getElementById("popupfrm"))
{
  document.getElementById("popupfrm").onclick=keepFrame;
}
