function handleJqueryHome(){
    
    /*********************************************************
       Slideshow 
    *********************************************************/
    var slideshowSpeed = 800;
    var slideshowTimeout = 4000;    
    
    $('#home-left').cycle({ 
        fx:      'fade', 
        speed:    slideshowSpeed, 
        timeout:  slideshowTimeout,
        continuous: 0, // set this to 0 so timeout will work
        slideExpr: 'li',
        cleartype: '1'
    });
    
    $('#home-center').cycle({ 
        fx:      'fade', 
        speed:    slideshowSpeed, 
        timeout:  slideshowTimeout,
        continuous: 0, // set this to 0 so timeout will work
        slideExpr: 'li',
        cleartype: '1'
    });
    
    $('#home-right').cycle({ 
        fx:      'fade', 
        speed:    slideshowSpeed, 
        timeout:  slideshowTimeout,
        continuous: 0, // set this to 0 so timeout will work
        slideExpr: 'li',
        cleartype: '1'
    });
};

function handleJquery(){

	//by default, the scroll is only done vertically ('y'), change it to both.
	$.scrollTo.defaults.axis = 'x'; 			
	//this one is important, many browsers don't reset scroll on refreshes
	$('div.pane').scrollTo( 0 );//reset all scrollable panes to (0,0)
	$.scrollTo( 0 );//reset the screen to (0,0)
		
	//Target examples bindings
	var $paneTarget = $('#pane-target');			
	
	$('#right-arrow').click(function(){
		//$paneTarget.stop().scrollTo( 'li:eq(14)', 800 );
		
		$paneTarget.stop().scrollTo( '+=375px', 400 );
	});

	$('#left-arrow').click(function(){
		//$paneTarget.stop().scrollTo( 'li:eq(14)', 800 );
		
		$paneTarget.stop().scrollTo( '-=375px', 400 );
	});

/*

    $('ul.sf-menu') 
    .find('li.current_page_parent,li.current_page_ancestor') 
    .addClass('current') 
    .end() 
    .superfish({ 
        pathClass: 'current',
        autoArrows: false,
        dropShadows: false,
        pathLevels:    2
    });
*/

    /*********************************************************
       Slideshow 
    *********************************************************/
    var slideshowSpeed = 800;
    var slideshowTimeout = 4000;    
    
    $('.gallery').cycle({ 
        fx:      'fade', 
        speed:    slideshowSpeed, 
        timeout:  0,
        continuous: 0, // set this to 0 so timeout will work
        slideExpr: 'li.gallery-item',
        cleartype: '1',
        next: '.slideshow-next',
        prev: '.slideshow-prev',
        pager: '#pane-target',
        pagerEvent: 'mouseover',

        pagerAnchorBuilder: function(idx, slide) { 
            // return selector string for existing anchor 
            return '#pane-target li:eq(' + idx + ') a'; 
        }
    });

};
