Jquery conflict with mootools. Help me!!!

Jquery conflict with mootools. Help me!!!

Hello. I red your tutorial about using jquery with other libraries. I know that this tutorial is only an example to solve it. I don't know to create ceode to solve my problem, so please someone can help me to solve this conflict with mootools? I use joomla to build a website and the problem is that my template use mootools and a component (jomsocial) use jquery. I need to know where i have to insert the code (maybe in index.php of my template) and which code i have to insert. Thank you to all.
Please help me.
Regards.