/*jslint onevar: true, browser: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true */
// Suckerfish menu preparation for IE, found on htmldog.com - modified to use jQuery
$(document).ready(function () {
	// Set the onload event for the page to be this sfHover function
	if (window.attachEvent) {
		$("ul.menu > li").not("ul.menu > li li").mouseover(function() {
			$(this).addClass("sfhover");
		}).mouseout(function() {
			$(this).removeClass("sfhover");
		});
	}
});

//Initialize Javascript on site load
function init()
{
	$('.searchform-query').click(function() {
		this.select();
	});
	$('.selectOnClick').click(function() {
		this.select();
	});
	
	//This next line isn't necessary since we've created some CSS rules
	//$('.bios').not('#intro').hide();	//For development
	
	$('.alt-images-text').click(function() {
		$('div.alt-images').not('#text').hide();
		$('#text').fadeIn(800);
		return false;
	});
	$('.alt-images-driven').click(function() {
		$('div.alt-images').not('#driven').hide();
		$('#driven').fadeIn(800);
		return false;
	});
	$('.alt-images-combo').click(function() {
		$('div.alt-images').not('#combo').hide();
		$('#combo').fadeIn(800);
		return false;
	});
	$('.alt-images-blank').click(function() {
		$('div.alt-images').not('#blank').hide();
		$('#blank').fadeIn(800);
		return false;
	});
}
$(document).ready(init);

