// JavaScript Document
$(document).ready(function(){

$('img.aboutImg').bind({
	mouseenter: function() {//function for mouse enter	
	var origImg = $(this).attr("src"); // grabs the target's src
	var hostImg = origImg.substring(0,61);
	var rollImg = origImg.substring(61,64); //takes the string before the "."
	if($(this).is(':animated')){ // check if it is animating
		$(this).stop().fadeTo(200,1);
	} else {
	$(this).fadeOut('fast', function(){
									 $(this).attr("src",hostImg+""+rollImg+"_ro.jpg");
									 $(this).fadeIn('fast',function(){});
									 });
	}},
	mouseleave: function() {//function for mouse leave	
	var origImg = $(this).attr("src"); // grabs the target's src
	var hostImg = origImg.substring(0,61);
	var rollImg = origImg.substring(61,64); //takes the string before the "."
	if($(this).is(':animated')){ // check if it is animating
	$(this).stop().fadeTo(200,1);
	} else {
	$(this).fadeOut('fast', function(){
								     $(this).attr("src",hostImg+""+rollImg+".jpg");
									 $(this).fadeIn('fast',function(){});
									 });
	}}
	});

});//close for ready event


//$('img.aboutImg').bind({
//	mouseenter: function() {//function for mouse enter				 
//	$(this).animate({opacity:0},500);//$(this).attr("src","images/pat.jpg");
//	},
//	mouseleave: function() {//function for mouse leave	
//	$(this).animate({opacity:1},500);//$(this).attr("src","images/pete.jpg");
//	}
//	});

