var layerRef="null",styleSwitch="null",pxSwitch="null"; 
var leftStopPoint=160; 
var leftStopPoint2=400;
var topStopPoint=140;
var currLeft=600; 
var currLeft2=-400;;
var currTop=800;
function init(){ 
    if (navigator.appName == "Netscape") { 
        layerRef="document.layers"; 
        styleSwitch=""; 
        pxSwitch=""; 
}    else{ 
        layerRef="document.all"; 
        styleSwitch=".style"; 
        pxSwitch="px"; 
}} 
function showLayer(layerName){ 
    eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"'); 
} 
function hideLayer(layerName){ 
    eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"'); 
} 
function moveLayerLeft(layerName){ 
    if (eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.left != leftStopPoint+pxSwitch')){ 
        currLeft-=20; 
        eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.left = currLeft+pxSwitch'); 
        setTimeout('moveLayerLeft("'+layerName+'")',10); 
 }} 
function moveLayerRight(layerName){ 
    if (eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.left != leftStopPoint2+pxSwitch')){ 
        currLeft2+=20; 
        eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.left = currLeft2+pxSwitch'); 
        setTimeout('moveLayerRight("'+layerName+'")',10); 
}} 
function moveLayerTop(layerName){ 
    if (eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.top != topStopPoint+pxSwitch')){ 
        currTop-=20; 
        eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.top = currTop+pxSwitch'); 
        setTimeout('moveLayerTop("'+layerName+'")',10); 
}} 
