So basically you need two things :
1. FreiChat should be invisible on pageload
2. FreiChat should be shown onclick
Add the following after FreiChat code.
For 1. , Run the following after page load (i.e on document ready)
FreiChat.freichatopt('goOffline');
jQuery('#friechtahtml').hide();
For 2. Run the following on your menu button click
FreiChat.freichatopt('goOnline');
jQuery('#friechtahtml').show();
So basically you need two things :
1. FreiChat should be invisible on pageload
2. FreiChat should be shown onclick
Add the following after FreiChat code.
For 1. , Run the following after page load (i.e on document ready)
<code>
FreiChat.freichatopt('goOffline');
jQuery('#friechtahtml').hide();
</code>
For 2. Run the following on your menu button click
<code>
FreiChat.freichatopt('goOnline');
jQuery('#friechtahtml').show();
</code>
Necessity is the mother of all inventions!