I am new to jquery please help me

I am new to jquery please help me

I have a very simple question I am sending a function to javascript using flash, i have it working in regular javascript its a simple hide div,  here is the code,

function launch(com){
document.getElementById('content1').style.display=(document.getElementById('content1').style.display=='none')?'block':'none'

}

how would I write it jquery???

I want the div to fade out when it receives the data from flash??

$('#content1').fadeOut("slow");'  will fade it out but

how do i trigger the event using a function?