code: function(graph)
  	{
  		var wnd = window.open();
  		var bounds = graph.getGraphBounds();
  		mxUtils.show(graph, wnd.document);
  		
  		var print = function()
  		{
  			wnd.focus();
  			wnd.print();
  			wnd.close();
  		};
  		
  		// Workaround for Google Chrome which needs a bit of a
  		// delay in order to render the SVG contents
  		if (mxClient.IS_GC)
  		{
  			wnd.setTimeout(print, 500);
  		}
  		else
  		{
  			print();
  		}
  	}
docs: Function: printScreen
  
  Prints the specified graph using a new window and the built-in print
  dialog.
  
  This function should be called from within the document with the graph.
  
  Parameters:
  
  graph - <mxGraph> to be printed.