$(document).ready(function() {
 
    // setup button action. it will fire our overlay  
    $("a.overVideo").overlay({ 
		onLoad: function(content) {
			// find the player contained inside this overlay and load it
			this.getContent().find("a.player").flowplayer(0).load();
		},
		onClose: function(content) {
			$f().unload();
		}
	});				
	// install flowplayers
	$("a.player").flowplayer("http://www.geax.com/wp-content/themes/geax/swf/flowplayer-3.1.2.swf"); 	

	$('div.videos a').parent().find('img').animate({opacity: 0.6}, 001 );

	$('div.videos a img').hover(
		function(){
			$(this).animate({opacity: 1}, 200 );
		},
		function(){
			$(this).animate({opacity: 0.6}, 001 );
		}
	);
/*
	$('div.videos a img').mouseenter(
		function(){
			//$(this).parent().find('img').animate({opacity: 1}, 200 );
			$(this).animate({opacity: 1}, 200 );
		}
	);
	$('div.videos a').mouseleave(
		function(){
			//$(this).parent().find('img').animate({opacity: 0.6}, 001 );
			$(this).animate({opacity: 0.6}, 001 );
		}
	);
*/            
});
