// JavaScript
 $(document).ready(function(){
 
 // Cufon.replace('#top_menu a',{hover:true})('.entry h2.title',{hover:true});
 
 // jQuery Cycle function with pager added
        $('#slider').cycle({ 
            fx: 'scrollHorz', 
            pause: 1, pauseOnPagerHover: 1,
            speed: 'slow', 
            timeout: 6000,
            next: '.content_next', // next slide button class
            prev: '.content_prev', // previous slide button class
			// autostop: 1,      // true to end slideshow after autostopCount number 
    		autostopCount: 4,
            // callback fn that uses the li title as pager anchor 
			pager:  '#titlenav', 
     		pagerAnchorBuilder: function(idx, slide) { 
            return '<li><a href="#">' + slide.title + '</a></li>';} 
            });
 
 // Start out paused due to having this as initial state:
$('#slider').cycle('pause');
$('.content_pause').addClass('paused');		
 
   // jQuery Cycle pause-play button: : Use when it starts out paused
	 	$('.content_pause').toggle(function(){
    		$('#slider').cycle('resume');	
			$('.content_pause').removeClass('paused');
			},
    		function(){
    		$('#slider').cycle('pause');
			$('.content_pause').addClass('paused');}
  	);
		
  // jQuery Cycle pause-play button: Use when it is playing automatically
	/*  	$('.content_pause').toggle(function(){
    		$('#slider').cycle('pause');
			$('.content_pause').addClass('paused');},
    		function(){
    		$('#slider').cycle('resume');	
			$('.content_pause').removeClass('paused');}
  	); */

	  
	  
	  
	$('.fbConnectWidgetTopmost').css('border','none');
});
 
 

