$(document).ready(function() {
   
    $myWindow = jQuery('#dialog');

	 $myWindow.dialog({ height: 400,
                        width: 800,
						title: 'Ladda ner',
						resizable: false,
                        modal: true,
                        autoOpen:false,
                        overlay: { opacity: 0.5, background: 'black'}
                        });
       

});

var showDialog = function() {
	//if the contents have been hidden with css, you need this
	$myWindow.show(); 
	//open the dialog
	$myWindow.dialog("open");
}

//function to close dialog, probably called by a button in the dialog
var closeDialog = function() {
	$myWindow.dialog("close");
}
