/*
 ______________________________________________________
/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\
|                TabStrip 1.0 by EAE                   |
|                                                      |
|   Feel free to copy, use and change this script as   |
|   long as this part remains unchanged.               |
|                                                      |
|   If you have any questions and or comments please   |
|   E-mail me 'eae@eae.net'. If you're looking for     |
|   more JavaScripts etc, please check out my webpage  |
|                 'www.eae.net/webfx'                  |
|                                                      |
|             Last Updated: October 18, 1998           |
\______________________________________________________/
 ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
*/

document.onmouseover = TabOver;
document.onmouseout  = TabOut;
document.onmousedown = TabDown;
document.onmouseup   = TabUp;

var eOld = null;

function TabOver() {
 var eSrc = window.event.srcElement;
  if (eSrc != null) {
    if (eSrc.className == "tab-button") {
      eSrc.className = "tab-button2"; 
    }
    if (eSrc.className == "tab-button4") {
      eSrc.className = "tab-button3";
    }
  }
}
function TabOut() {
 var eSrc = window.event.srcElement;
  if (eSrc != null) {
    if (eSrc.className == "tab-button2") {
      eSrc.className = "tab-button";
    }
    if (eSrc.className == "tab-button3") {
      eSrc.className = "tab-button4";
    }
  }
}
function TabDown() {
 var eSrc = window.event.srcElement;
  if (eSrc != null) {
    if (eSrc.className == "tab-button2") {
      eSrc.className = "tab-button3";
    }
  }
}
function TabUp() {
 var eSrc = window.event.srcElement;
  if (eSrc != null) {
    if (eSrc.className == "tab-button3") {
      var eTxt = eval("txt" + eSrc.id)
      eSrc.className = "tab-button3";
      if (eOld != null) {
        eOld.className = "tab-button";
        var eTxt2 = eval("txt" + eOld.id)
        eTxt2.style.display = "none";
      }
      eOld = eSrc;
      eTxt.style.display = ""; 
    }
  }
}

