	function ShowOverlay(to)
	{
		
	   var docHeight = screen.height + 1500;
	   var docPos = $("#art-page-background-glare").position();
		$(".art-nav").hide();

		
					
		strLoader = '	<div id="overlay"><div  class="ui-overlay"><div class="ui-widget-overlay" style=" z-index: 1001;"></div><div class="ui-widget-shadow ui-corner-all" style="width: 283px; height: 92px; position: absolute; left: 40%; top: 30%;z-index:1002;"></div></div>'
		strLoader += '	<div style="position: absolute; width: 260px; height: 70px;left: 40%; top: 30%; padding: 10px;z-index:1003;" class="ui-widget ui-widget-content ui-corner-all">'
		strLoader += '		<div class="ui-dialog-content ui-widget-content" style="background: none; border: 0;">'
		strLoader += "		<img alt='' src='/img/ajax-loader.gif' style='float:left;padding-right:10px' />";
		strLoader += "		<p style='font-family:arial'>Elaborazione in corso<br>attendere...</p><br>";
		strLoader += '		</div>'
		strLoader += '	</div></div>'
			
		$("#art-page-background-glare").append(strLoader);
		$("#overlayer").css({'opacity' : 0.4});
	    $("#overlay").fadeIn('fast');
	    $("#overlay").height($(document).height());
		$("#overlay").width($(document).width());
		//$("body").css('overflow','hidden');
	}
	$(document).ready(
		function()
		{
			//ShowOverlay();
		}
	)
	
	function HideOverlay()
	{
	   $(".art-nav").show();
	   $("#overlay").hide();
	   $("#overlay").remove();
	   $("body").css('overflow','auto');
	}
