$(document).ready(function(){
			$(".nav")
			.superfish({
				animation : { opacity:"show",height:"show"}
			});
});

$(document).ready(function(){
	var windowHeight = $(window).height();
	windowHeight = windowHeight + 1;
	$("#outerwrapper").css({'height':windowHeight+'px'})
});

$(document).ready(function() {
	if ($(".section").is(":hidden")) 
	{
		$('.section').show();
	}
});

$(document).ready(function() {
	if ($("#factorytour").is(":hidden")) 
	{
		$('#factorytour').show();
	}
});


$(document).ready(function() { 
    $("table#searchResults") 
    .tablesorter({
    	headers: {0: {sorter: false}},
    	widthFixed: true, 
    	widgets: ['zebra']
    }) 
    .tablesorterPager({
    	container: $("#pager"),
    	positionFixed: false
    }); 
}); 

$(document).ready(function(){
	$('#machinesForSaleGallery, #productRangeGallery').cycle({ 
    fx:      'scrollDown', 
    speed:    900, 
    timeout:  4000,
    pause:   1
	});
})

$(document).ready(function(){
	$('#factorytour').cycle({
    fx:     'scrollUp',
    timeout: 6000,
    delay:  -2000
	});
});


$(document).ready(function(){
$('#pauseButton').click(function() { 
    $('#factorytour').cycle('pause'); 
	});
});

$(document).ready(function(){
$('#resumeButton').click(function() { 
    $('#factorytour').cycle('resume'); 
	});
});

$(document).ready(function(){
	$('#subcontent ul li a:last').css({'border-bottom':'none'});
});