jquery with 2 functions in source page..

jquery with 2 functions in source page..

In my Home page ,,
I have 2 image slide shows...
I used different jquery for that..
Problem is that..
each is working fine individually ..
when integrated ,i am runtime error....

one script is ..(1st function)
<script type="text/javascript">
$(function() {
$(".newsticker-jcarousellite").jCarouselLite({
vertical: true,
hoverPause:true,
visible: 2,
auto:500,
speed:1000
});
});
</script>


another..
<script type="text/javascript">
$(document).ready(function() {
$('#ctl00_ContentPlaceHolder1_photos').galleryView({
panel_width: 650,
panel_height: 300,
frame_width: 30,
frame_height: 30,
overlay_color: '#393939',
overlay_text_color: '#ffffff',
caption_text_color: '#ffffff',
background_color: 'transparent',
border: 'none',
nav_theme: 'light',
easing: 'easeInOutQuad',
pause_on_hover: true
});
});


</script>

Where am getting error..
Can i club these 2 into one function..
i downloaded from net ..different style sheets ,jquery the slide shows..


I am getting runtime script error:Object not found....at 1st javascript function.. Home page has master page too..
I am binding images dynamically by creating div tags using string builder class..
Thanks in advance..