// JavaScript Document

$(function()
{
	$('#restOfMyName').hide(); // hides the rest of my name in the title at start.
	
var activeItem;

/*
	$('li a').not('sup a').not(":has(img)").mouseover(function() {
		var ner = "img/" + $(this).attr('class') + "/" + $(this).attr('name') + ".jpg";
		$('body').css({ backgroundImage : "url("+ner+")" });
	});
*/
	
	
/*
$('a, p, li ul li').not('h1 a').not('sup a').hover( function() {
		if($(this).parent().parent().is('li')) {
			activeItem = $(this).parent().parent();
		} else {
			activeItem = $(this).parent();
		}
		activeItem.css({ backgroundColor : "white" })
	}, function() {
		activeItem.css({ background : "none" }); // there is a logic error here that is causing toggling effect!!!
	});
*/

	

/*
	// This is busted ass!
		
	$('h1 a').hover( function(){ 
		$('body').css({ backgroundImage : "none"});
		$('#restOfMyName').animate({width: '6em'});
	}, function(){
		$('#restOfMyName').animate({width: '0em'});
	});
*/
	
	$('h1 a').hover( function(){ 
		$("#restOfMyName").stop(true, true);
		$('body').css({ backgroundImage : "none"});
		$('#restOfMyName').fadeIn(500);
	}, function(){
		$('#restOfMyName').fadeOut(250);
	});
	
});




// Load the iframe into the background, collapse the lists, then show the current info at the top.