/**
 * jQuery.imgChange - Easy img alpha changer using jQuery.
 * Copyright (c) 2010 Satoshi Miwa 310430@gmail.com | http://www.310430.org
 * Date: 10/07/2010
 * @author Satoshi Miwa
 * @version 1.0.0
 */

jQuery(function($){
	$(".alpha").each(function(){

		$(this).hover(hide,show);

		function hide() {
			$(this).find("img").fadeTo(0,0.7);
		}
		function show() {
			$(this).find("img").fadeTo(0,1);
		}
	});
	$(".alpha_self").each(function(){
		$(this).hover(hide,show);

		function hide() {
			var index = $(".alpha_self").index(this);
			$(".alpha_self:eq("+index+") img").fadeTo(0,0.7);
		}
		function show() {
			var index = $(".alpha_self").index(this);
			$(".alpha_self:eq("+index+") img").fadeTo(0,1);
		}
	});
});

