/*************************************************************************
 ** Add opacity animation effect to NiO PhotoShelter RSS gallery 
 ** Copyright (C) 2011 Johan Peijnenburg | NiO Photography
 ** 
 ** This program is free software: you can redistribute it and/or modify
 ** it under the terms of the GNU General Public License as published by
 ** the Free Software Foundation, either version 3 of the License, or
 ** (at your option) any later version.
 ** 
 ** This program is distributed in the hope that it will be useful,
 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 ** GNU General Public License for more details.
 ** You should have received a copy of the GNU General Public License
 ** along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ** 
 ** For more information contact me at: nio (at) niophoto (dot)com
 *************************************************************************/

var $a = jQuery.noConflict();

$a(document).ready(function(){
	// Parameters
	var fromOpac = 1.0, toOpac = 0.6, duration = 'normal';
	// Execution
	$a(".niothumb img").fadeTo(duration, fromOpac);
	$a(".niothumb img").hover(function(){
		$a(this).fadeTo(duration,toOpac); // ON HOVER EFFECT: SETS THE OPACITY TO 60% ON HOVER
	},function(){
   		$a(this).fadeTo(duration,fromOpac); // ON MOUSE OUT EFFECT: RESETS THE OPACITY TO 100% ON MOUSEOUT
	});
});

