function dimensionLayer(nLay) {
	/*$(document).ready(function() {
		//switchDisplay('superwrapper');
		switchDisplay(nLay);
		
		//$('#superwrapper').css({left:0});
		//$('#superwrapper').animate({opacity: 0.5});
		var windowWidth  = $(window).width();	
		var windowHeight = $(window).height();
		var windowScroolTop = $(window).scrollTop();
		var divWidth = $('#'+nLay).width();
		var divHeight = $('#'+nLay).height();
		
		var totalHeight = windowHeight/2 - divHeight/2 + windowScroolTop;
		if (document.all)
			var totalWidth = (windowWidth/2 - divWidth/2) - 240;
		else
			var totalWidth = windowWidth/2 - divWidth/2;
		
		$('#'+nLay).css({'margin-left':totalWidth});
		$('#'+nLay).css({'margin-top':totalHeight});
		//$('#superwrapper').width($(document).width());
		//$('#superwrapper').height($(document).height());
	});	*/
	
	posY= document.documentElement.scrollTop + (screen.height / 2) - 400;
	document.getElementById(nLay).style.top = posY + 'px';
	/*posX= document.documentElement.scrollLeft + (screen.width / 2) - 190;
	document.getElementById(nLay).style.left = posX + 'px';*/
	
	if(document.getElementById(nLay).style.display == "block") document.getElementById(nLay).style.display = "none";
	else document.getElementById(nLay).style.display = "block";
}
