function show_slow(el) {
	$(el).fadeIn('slow');
}

function next_test() {
	var t = $('.unit');
	
	t.each(function(i) {
		if ($(this).is(':visible')) {
			testNum = i;
		}
	});
	
	$(t[testNum]).fadeOut('normal', function() {
		var next = testNum+1;
		if (next == t.length) {
			next = 0;
		}
	    $(t[next]).fadeIn('normal');
	});
}

$(document).ready(function() {
	$('#geek-logo').hover(
		function() {
			$('#logo').hide();
			$('#logo-over').show();
		},
		function() {
			$('#logo').show();
			$('#logo-over').hide();
		}
	);
	
	$('#cust').hover( function() { $('#cust div.hover').animate( { width:"220px", opacity:"1.0" }, 400 );}, function() { $('#cust div.hover').animate( { width:"0px", opacity:"0.0" }, 400 );} );
	$('#website').hover( function() { $('#website div.hover').animate( { width:"220px", opacity:"1.0" }, 400 );}, function() { $('#website div.hover').animate( { width:"0px", opacity:"0.0" }, 400 );} );
	$('#backup').hover( function() { $('#backup div.hover').animate( { width:"220px", opacity:"1.0" }, 400 );}, function() { $('#backup div.hover').animate( { width:"0px", opacity:"0.0" }, 400 );} );
	$('#safety').hover( function() { $('#safety div.hover').animate( { width:"220px", opacity:"1.0" }, 400 );}, function() { $('#safety div.hover').animate( { width:"0px", opacity:"0.0" }, 400 );} );
	$('#remote').hover( function() { $('#remote div.hover').animate( { width:"220px", opacity:"1.0" }, 400 );}, function() { $('#remote div.hover').animate( { width:"0px", opacity:"0.0" }, 400 );} );
	$('#contact').hover( function() { $('#contact div.hover').animate( { width:"220px", opacity:"1.0" }, 400 );}, function() { $('#contact div.hover').animate( { width:"0px", opacity:"0.0" }, 400 );} );
	$('#cellphone').hover( function() { $('#cellphone div.hover').animate( { width:"220px", opacity:"1.0" }, 400 );}, function() { $('#cellphone div.hover').animate( { width:"0px", opacity:"0.0" }, 400 );} );
	$('#xbox').hover( function() { $('#xbox div.hover').animate( { width:"220px", opacity:"1.0" }, 400 );}, function() { $('#xbox div.hover').animate( { width:"0px", opacity:"0.0" }, 400 );} );
});
