$jQ = jQuery.noConflict();//Avoids conflict with mooTools

/////////////////////////////////
//      FADE IMAGE LINKS       //
/////////////////////////////////

// Add class of fade to images contained within a link, remove any eternal link background
$jQ(document).ready(function() {
   $jQ("a:has(img)").addClass("fade").removeClass("new_win");
});

// Fade images with a class of fade on mouseover
$jQ(document).ready(function() {
     
  // make sure the image is at full opacity on load
  $jQ(".fade").css("opacity", "1.0");

	// Change speed/opactity of mouseover state
	$jQ('.fade').mouseover(function() {
		$jQ(this).stop().fadeTo(400, 0.4);
	});

	// Change speed/opactity of mouseout state
	$jQ('.fade').mouseout(function() {
		$jQ(this).stop().fadeTo(500, 1.0);
	});
	
});
