The GenoConnect.draw() function accepts 3 parameters: data, container and callBack.
data
The data needed to draw the first Genogram. Mandatory.
container
The HTML container (<div>) in which to draw the Genogram. Optional but recommended. If left null the Genogram will be added to the HTML page.
callBack
A javascript function that will be executed when a person symbol is clicked. The callBack function uses the ID of the person clicked to retrieve the data for that person and then redraws the Genogram with that person in context. Optional.
Here is an example:
You can see a live demo here.