Is there a way to get the style: display attribute which would have either none or block?
DIV :
If you're using jquery 1.6.2 you only need to code
$('#theid').css('display')
for example:
if($('#theid').css('display') == 'none'){ $('#theid').show('slow'); } else { $('#theid').hide('slow'); }