var n4 = (document.layers)? true:false;
var ie = (document.all)? true:false;
var dom2 = (document.getElementById)? true:false;
//var opera = (document.navigator.userAgent.indexOf ("Opera")>-1)? true:false;
if (ie) dom2=false;
//Show Layer ****************************************************************
function showlay(name)
{if (n4) document.layers[name].visibility='show';
 if (ie) document.all[name].style.visibility='visible';
 if (dom2) document.getElementById(name).style.visibility='visible';}
//Hide Layer ****************************************************************
function hidelay(name)
{if (n4) document.layers[name].visibility='hide';
 if (ie) document.all[name].style.visibility='hidden';
 if (dom2) document.getElementById(name).style.visibility='hidden';}
//Moving Layers*************************************************************
function movelay(lay1,fx,fy) {
if (n4) document.layers[lay1].moveTo(fx,fy);
if (ie) {document.all[lay1].style.pixelLeft=fx;
         document.all[lay1].style.pixelTop=fy;}
if (dom2) {document.getElementById(lay1).style.left=fx+"px";
         document.getElementById(lay1).style.top=fy+"px";}}

//Clip Layer function **************************************************
function cliplay(lay1,fy1) {
if (fy1>rehigh(lay1)) fy1=rehigh(lay1);
if (n4) {document.layers[lay1].clip.top=fy1;
         document.layers[lay1].clip.bottom=rehigh(lay1);
         document.layers[lay1].clip.left=0;
         document.layers[lay1].clip.right=rewide(lay1);}
if (ie) document.all[lay1].style.clip= 'rect('+fy1+','+rewide(lay1)+','+rehigh(lay1)+',0)';
if (dom2) {document.getElementById(lay1).style.clip= 'rect('+fy1+'px,0px,0px,0px)';
         document.getElementById(lay1).style.overflow= 'hidden';
		 }}
		 
/*
Event Capture ********************************************************
function capEvents() 
{if (n4) {window.captureEvents(Event.MOUSEMOVE);
          window.onMouseMove = MouseMove;}
 if (ie) document.onmousemove = MouseMove;
 if (dom2) document.addEventListener('mousemove',MouseMove,false);}
*/
//Get Height********************************************************
function rehigh(lay1) {
var layhigh=0;
if (n4) layhigh = document.layers[lay1].document.height;
if (ie) layhigh = document.all[lay1].offsetHeight;
if (dom2) layhigh = parseInt(document.getElementById(lay1).style.height);
return (layhigh);}
//Get Width********************************************************
function rewide(lay1) {
var layhigh=0;
if (n4) layhigh = document.layers[lay1].document.width;
if (ie) layhigh = document.all[lay1].offsetWidth;
if (dom2) layhigh = parseInt(document.getElementById(lay1).style.width);
return (layhigh);}
//Get X ********************************************************
function rex(lay1) {
var layx=0;
if (n4) layx = document.layers[lay1].pageX;
if (ie) layx = document.all[lay1].style.pixelLeft;
if (dom2) layx = parseInt(document.getElementById(lay1).style.left);
return (layx);}
//Get X ********************************************************
var didit=true;
function rey(lay1) {
var layx=0;
if (n4) layx = document.layers[lay1].pageY;
if (ie) layx = document.all[lay1].style.pixelTop;
if (dom2) layx = parseInt(document.getElementById(lay1).style.top);
return (layx);}
//Main Thread ************************************************************
var curdrop = -1;
var timeout = 0;
var finished = true;
function going()
{
if   (navigator.appName != "Netscape") //function for all browsers except netscape version 6.x

{
//if (timeout!=0) clearTimeout(timeout);


finished = true;
 for (var i=0;i<2;++i)

   if (i!=curdrop)
   {
	if (rey('drop'+i)>(145-rehigh('drop'+i))) {movelay('drop'+i,103,rey('drop'+i)-7);
	                           cliplay('drop'+i,145-rey('drop'+i));
							   finished = false;}
	 else hidelay('drop'+i);}

 if ((curdrop!=-1)&&(finished))
{

  if (rey('drop'+curdrop)<=(145-rehigh('drop'+curdrop))) showlay('drop'+curdrop); 
  if (rey('drop'+curdrop)<0) {movelay('drop'+curdrop,103,rey('drop'+curdrop)-10);
	                      cliplay('drop'+curdrop,145-rey('drop'+curdrop));
							       finished = false;}
  if ((rey('drop'+curdrop)>=0)&&(rey('drop'+curdrop)<145))  {movelay('drop'+curdrop,103,145);
	                      cliplay('drop'+curdrop,145-rey('drop'+curdrop));
							       finished = false;
}}

 timeout=setTimeout('going()',100);}
 
 else    //fix for netscape versions 6.x 
 
 {
if (timeout!=0) clearTimeout(timeout);


finished = true;
 for (var i=0;i<2;++i)

   if (i!=curdrop) //actual fix begins here (up/down moving and clipping of layers removed)
   {
	hidelay('drop'+i);
	}
	 

 if ((curdrop!=-1)&&(finished))
 showlay('drop'+curdrop); 


 timeout=setTimeout('going()',1);
 
 
 
 }}
//Drop Boxes ************************************************************
function drop(num)
{if (num==curdrop) num=-1;

curdrop=num;

}
<!-- Begin
function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var htsite = "http://" + username + ":" + password + "@" + server;
window.location = htsite;
}
else {
alert("Please enter your username and password.");
   }
}
//  End -->
