
 function ToggleHelp()
 {
   if (document.getElementById("help").className == 'helpoff')
   {
      document.getElementById("help").className = 'helpon';
   }
   else
   {
      document.getElementById("help").className = 'helpoff';
   }
 }

 function ToggleInfo()
 {
   if (document.getElementById("info").className == 'helpoff')
   {
      document.getElementById("info").className = 'helpon';
   }
   else
   {
      document.getElementById("info").className = 'helpoff';
   }
 }

 function HridelOn(n)
 {
    if (n == 1)
    {
      document["vibCHA"].src = "images/sous_new_3_2low.gif";
      document["vibCHB"].src = "images/sous_new_3_3low.gif";
    }
    if (n == 2)
    {
      document["vibCHA"].src = "images/sous_new_3_2high.gif";
      document["vibCHB"].src = "images/sous_new_3_3high.gif";
    }
 }
 
 function HridelOff()
 {
   document["vibCHA"].src = "images/sous_new_3_2.png";
   document["vibCHB"].src = "images/sous_new_3_3.png";
 }

 function NoAction()
 {
 }


function turnOn()
{
    document["icoOn"].src = "images/ico_power_on.png";
//    preload();
    init();
}

function stopClick()
{
    document["icoStop"].src = "images/ico_stop01_down.png";
    document["icoVibr01"].src = "images/ico_vibr01.png";
    document["icoVibr02"].src = "images/ico_vibr02.png";
    
    SetSpd(0);
}

function stopUnclick()
{
    document["icoStop"].src = "images/ico_stop01.png";
}

function vib1Click()
{
    document["icoVibr01"].src = "images/ico_vibr01_on.png";
    document["icoVibr02"].src = "images/ico_vibr02.png";
    
        SetSpd(1);
}

function vib2Click()
{
    document["icoVibr02"].src = "images/ico_vibr02_on.png";
    document["icoVibr01"].src = "images/ico_vibr01.png";    

    SetSpd(2);
}

function resetMouseOver()
{
    document["btnL"].src = "images/btn-left_arrow.png";
    document["btnR"].src = "images/btn-right_arrow.png";

}

function resetMouseOut()
{
    document["btnL"].src = "images/btn-left.png";
    document["btnR"].src = "images/btn-right.png";

}

function resetClick()
{
    document["icoRestart"].src = "images/ico_restart01_down.png";
    
    document["btn1"].src = "images/butt_1on.png";
    document["btn4"].src = "images/butt_4on.png";
    init();
}

function resetUnclick()
{
    document["icoRestart"].src = "images/ico_restart01.png";
     document["btn1"].src = "images/butt_1off.png";
    document["btn4"].src = "images/butt_4off.png";
}

function nextscreen()
{
  var sScreen = '';
  sScreen = screenPC++;
  //document["screenPC"].src = "images/sous_new_1_1" +  sScreen  +  ".png"
}

function prevscreen()
{
  var sScreen = '';
  sScreen = screenPC--;
  //document["screenPC"].src = "images/sous_new_1_1" +  sScreen  +  ".png"
}


function showSchema()
{
   if (document.getElementById('schema').style.visibility == 'visible')
   {
      document.getElementById('schema').style.visibility='hidden';
      document.getElementById('schema').style.display='none';
   }
   else
   {
      document.getElementById('schema').style.visibility='visible';
      document.getElementById('schema').style.display='block';
   }
}

function ShowCanConduct(onoff)
{
   if (onoff == 'off')
   {
      document.getElementById('can').style.visibility='hidden';
      document.getElementById('can').style.display='none';
   }
   else if (onoff == 'on')
   {
      document.getElementById('can').style.visibility='visible';
      document.getElementById('can').style.display='block';
   }
}

function ShowSensorConn(onoff)
{
   if (onoff == 'off')
   {
      document.getElementById('sensor').style.visibility='hidden';
      document.getElementById('sensor').style.display='none';
   }
   else if (onoff == 'on')
   {
      document.getElementById('sensor').style.visibility='visible';
      document.getElementById('sensor').style.display='block';
   }
}

function ShowBubKlaxon(onoff)
{
  if (onoff == 'off')
   {
      document.getElementById('klaxon').style.visibility='hidden';
      document.getElementById('klaxon').style.display='none';
   }
   else if (onoff == 'on')
   {
      document.getElementById('klaxon').style.visibility='visible';
      document.getElementById('klaxon').style.display='block';
   }

}

function ShowBubStop(onoff)
{
  if (onoff == 'off')
   {
      document.getElementById('stop').style.visibility='hidden';
      document.getElementById('stop').style.display='none';
   }
   else if (onoff == 'on')
   {
      document.getElementById('stop').style.visibility='visible';
      document.getElementById('stop').style.display='block';
   }

}

function ShowBubDC(onoff)
{
  if (onoff == 'off')
   {
      document.getElementById('dc').style.visibility='hidden';
      document.getElementById('dc').style.display='none';
   }
   else if (onoff == 'on')
   {
      document.getElementById('dc').style.visibility='visible';
      document.getElementById('dc').style.display='block';
   }

}

function ShowBubReset(onoff)
{
  if (onoff == 'off')
   {
      document.getElementById('reset').style.visibility='hidden';
      document.getElementById('reset').style.display='none';
   }
   else if (onoff == 'on')
   {
      document.getElementById('reset').style.visibility='visible';
      document.getElementById('reset').style.display='block';
   }

}

function showSizes()
{
   if (document.getElementById('koty').style.visibility == 'visible')
   {
      document.getElementById('koty').style.visibility='hidden';
      document.getElementById('koty').style.display='none';
   }
   else
   {
      document.getElementById('koty').style.visibility='visible';
      document.getElementById('koty').style.display='block';
   }
}

