//easing equation, borrowed from jQuery easing plugin
		//http://gsgd.co.uk/sandbox/jquery/easing/
		$.easing.easeOutQuart = function (x, t, b, c, d) {
			return -c * ((t=t/d-1)*t*t*t - 1) + b;
		};
	
		jQuery(function( $ ){
			
			$('#slideshow').serialScroll({
				items:'li',
				prev:'#screen2 a.prev',
				next:'#screen2 a.next',
				axis:'y',
				offset:0, //when scrolling to photo, stop 230 before reaching it (from the left)
				start:0, //as we are centering it, start at the 2nd
				duration:700,
				force:true,
				step:5,
				stop:true,
				lock:false,
				cycle:false, //don't pull back once you reach the end
				easing:'easeOutQuart', //use this easing equation for a funny effect
				jump: false //click on the images to scroll to them
			});
			
		});

        $(function() {
            $('#contentPane').jScrollPane({ showArrows: true, scrollbarWidth: 8, dragMaxHeight: 28 });
        });

        function showcontent(item_no) {
            $('#layer' + item_no).bind('mouseover', function() {
                $('#contentPane').empty().append($('<p></p>').html($('#divLayer' + item_no).html())).jScrollPane({ showArrows: true, scrollbarWidth: 8, dragMaxHeight: 28 });
                var textPanel = document.getElementById('contentPane');
                textPanel.scrollTo(-1);
			$(".aactive").removeClass("aactive");
			$('#layer' + item_no).addClass("aactive");
			
            });

        }
        function up() {
            $('#slideshow').trigger('prev');
        }

        function down() {
            $('#slideshow').trigger('next');
        }
//HScrollCompanyLogo:

		$(function() {
		    $(".jMyCarousel").jMyCarousel({
            visible: '660px',  
            auto:true,  
			speed:10000,
            eltByElt: true
		    });
		});
//nowhiring:
$(function(){
	$('.news-container').vTicker({
   speed: 500,
   pause: 5000,
   showItems: 1,
   animation: 'fade',
   mousePause: true
});
});