var fDesc=new Array(); fDesc[0] = "This applet illustrates the forces on a current carrying coil sitting on the axis of a permanent magnet. For current flowing in one direction in the coil the force on the coil will be upward, and if the current is strong enough the coil will levitate, floating on the magnetic fields of the coil plus the magnet. This is the way one form of MagLev works. For the other direction of current the coil is attracted to the magnet has its north pole at the top, and the direction of positive current is counterclockwise when viewed from above. The coil initially rests at one coil radius above the magnet on a platform. There is a marker at two coil radii above the magnet"; function tShowHide(id, show) { var s = document.getElementById("desc"); if ((s.innerHTML.length<=212 || show==1) && show!=2) { s.innerHTML = fDesc[id]; if (document.getElementById('m1')) document.getElementById('m1').style.display='none'; if (document.getElementById('m2')) document.getElementById('m2').style.display='none'; if (document.getElementById('more_txt')) document.getElementById('more_txt').style.display='inline'; } else { s.innerHTML = ''; } }