
ie=(document.all)? true:false;								
n6=(navigator.vendor == ("Netscape6") || navigator.product == ("Gecko"));		

function ShowLayer(layer,x,y)							
{											
    xWidth=100;	

    if (ie) {	
	xWidth=document.body.offsetWidth-20;
    }

    if (n6) {	
	xWidth=innerWidth-16;
    }

	if (xWidth<780) {pos=x;} else {pos=((xWidth-780)/2)+x;}
	xLeft=parseInt(pos);
	yTop=parseInt(y);

    if (ie) {
	document.all[layer].style.left=xLeft;
	document.all[layer].style.top=yTop;
	document.all[layer].style.visibility="visible"; 				
    } 											
    if (n6) {	
	document.getElementById(layer).style.left=xLeft;
	document.getElementById(layer).style.top=yTop;
  	document.getElementById(layer).style.visibility="visible";			
    }											
}											

function ShowLayerPict(layer)							
{											

    if (ie) {
	yTop=parseInt(35);
	document.all[layer].style.visibility="visible"; 				
	document.all[layer].style.top=yTop;
    } 											
    if (n6) {									
	yTop=parseInt(35);
  	document.getElementById(layer).style.visibility="visible";			
	document.getElementById(layer).style.top=yTop;
    }											
}											

function HiddenLayer(layer)									
{											
    if (ie) { 											
	document.all[layer].style.visibility="hidden";				
    } 											
    if (n6) {									
	document.getElementById(layer).style.visibility="hidden"; 			
    }											
}											
