	function overlayInfo(url){ 
		//waitWindow();
			var win;
		if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPad/i)) || (navigator.userAgent.match(/iPod/i))) { 
				$(function() {
				win=$( "#dialog-modal" ).dialog({
						width:620,
						position:['center',100],
						modal: true,
						resizable: false,
						draggable: false,
						beforeClose: function(event, ui) {$("body").css("overflow", "auto");return true;} });
					});
			}else{
				$(function() {
				win=$( "#dialog-modal" ).dialog({
						height:350,
						width:620,
						position:'center',
						modal: true,
						resizable: false,
						draggable: false,
						beforeClose: function(event, ui) {$("body").css("overflow", "auto");return true;} });	
				});
			}
		$('#dialog-modal').html('<div id="lightbox-loading" style="	position: absolute;top: 40%;left: 0%;height: 25%;	width: 100%;	text-align: center;	line-height: 0;	"><a href="#" id="lightbox-loading-link"><img src="/shared/images/jqueryUiImages/lightbox-ico-loading2.gif"></a></div>');
		$.get(url, function(data) {
	  	$('#dialog-modal').html(data);
	  	$( "#dialog:ui-dialog" ).dialog( "destroy" );
			
			// Als een iphone,een ipad of een ipod is dan is de height variabel anders is de height vast en de div content krijgt een scroll baar indien nodig is.  
			jQuery(function () {
		  	$(document).ready(function(){	
		  	
		  		$('.ui-widget-overlay').click(function() {
		  				if(win.dialog( "isOpen" )){
		  					win.dialog("close");
				  	    $("body").css("overflow", "auto");}
				 	}); 
					$('.ui-widget-overlay').live("click",function() {
		  				if(win.dialog( "isOpen" )){
		  					win.dialog("close");
		  			     $("body").css("overflow", "auto");
				  		 }
						}); 
					/*$('.ui-widget-overlay').live("touchstart",function() {
		  				if($( "#dialog:ui-dialog" ).dialog( "isOpen" )){
				  	    $(".ui-dialog").hide();	
				  	    $("#dialog-modal").hide();	
				  		  $(".ui-widget-overlay").hide();
				  		  $("body").css("overflow", "auto");
				  		 }
						}); 
					 */
					});
				}); 
			});
			if(win.dialog( "isOpen" )){
					$("body").css("overflow", "hidden");
			}
				
		return false;
	}

		//show: 'slide',
