Java detection

Hi

Im working on a new website that includes abit javascript (lightbox plug-in tbh) and i was wondering if there was some code i could implement in to my site that detects if the user has java enabled or not? if it had display this… else display this… ??

Anyone?

Cheers.