/*
	Client Module

	Client page animations

	Dependency:
*/
Core.register("clients", function(sandbox){
	// Variables privadas


	// Método privados
	var _init = function () {

	    $("div.clientLogo").hover(function() { //On hover...

		    var thumbOver = $(this).find("img").attr("src");
		    //Set a background image(thumbOver) on the <a> tag - Set position to bottom
		    $(this).find("div.logo").css({'background' : 'url(/' + thumbOver + ') no-repeat 6px -110px'});

		    //Animate the image to 0 opacity (fade it out)
		    $(this).find("a img").stop().fadeOut();
	    } , function() { //on hover out...
		    //Fade the image to full opacity
		    $(this).find("a img").stop().fadeIn();
	    });

	}


	return {
		init: function(){
			try{
                _init();

			} catch(ex) {
				sandbox.alert("Error Client Module.\nDesc.:"+ex.message);
			}
		},
		destroy: function(){
			// destructor
		}
	};
});

